Network data control method and device, storage medium and electronic device

By converting the flexible Ethernet data format to the traditional Ethernet format and inserting VLAN TAG information, the problem of flexible Ethernet data being unable to be transmitted to traditional Ethernet is solved, enabling data interoperability and improving processing capabilities between the two Ethernet types.

CN116418865BActive Publication Date: 2026-03-27SUZHOU CENTEC COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, Flexible Ethernet data cannot be transmitted in traditional Ethernet, which limits the data processing capabilities of Flexible Ethernet.

Method used

By converting the network data format in Flexible Ethernet from a first format to a second format allowed by Traditional Ethernet, and inserting necessary information such as VLAN TAG format data during the conversion process, data transmission between the two Ethernet types is achieved.

Benefits of technology

It enables data transmission between flexible Ethernet and traditional Ethernet, improves data processing capabilities, and supports data interoperability between different Ethernet networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116418865B_ABST
    Figure CN116418865B_ABST
Patent Text Reader

Abstract

The application discloses a network data control method and device, a storage medium and an electronic equipment, and relates to the technical field of network data control. The method comprises the following steps: obtaining first network data to be controlled from a flexible Ethernet; converting the data format of the first network data from a first format into a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by a traditional Ethernet; and forwarding the second network data to the traditional Ethernet. The application solves the technical problem that network data cannot be transmitted between the flexible Ethernet and the traditional Ethernet.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Ethernet, in particular to a network data control method and device, a storage medium and an electronic equipment. BACKGROUND

[0002] FlexE (Flexible Ethernet) is a low-cost, high-reliability and dynamically configurable telecom-level interface technology realized by decoupling the MAC layer and the PHY layer of Ethernet based on the traditional Ethernet technology. FlexE meets the development needs of video, cloud computing and 5G services and has a wide range of application scenarios. However, most network devices are currently based on Ethernet protocol, and the FlexE data cannot be transmitted to the traditional Ethernet, which limits the processing capacity of the FlexE data.

[0003] For the problem that the network data cannot be transmitted between the FlexE and the traditional Ethernet in the related art, an effective solution has not been proposed. SUMMARY

[0004] Embodiments of the present application provide a network data control method and device, a storage medium and an electronic equipment to at least solve the technical problem that the network data cannot be transmitted between the FlexE and the traditional Ethernet.

[0005] According to an aspect of an embodiment of the present application, a network data control method is provided, comprising: obtaining first network data to be controlled from a FlexE;

[0006] converting a data format of the first network data from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the FlexE, and the second format is a data format allowed to be transmitted by a traditional Ethernet;

[0007] forwarding the second network data to the traditional Ethernet.

[0008] Optionally, the converting the data format of the first network data from the first format to the second format to obtain the second network data comprises:

[0009] finding a target position from the first network data, wherein the target position comprises a position in the first format that is different from the second format;

[0010] inserting first target data at the target position according to data information of the first network data to obtain the second network data.

[0011] Optionally, the inserting the first target data into the target position of the first network data to obtain the second network data according to the data information of the first network data comprises:

[0012] extracting flexible Ethernet interface client information from the first network data, wherein the flexible Ethernet interface client information is used to indicate a client transmitting the first network data in the flexible Ethernet, and the data information comprises the flexible Ethernet interface client information;

[0013] constructing initial data conforming to a VLAN TAG format;

[0014] adding the flexible Ethernet interface client information to a VLAN ID field in the initial data to obtain the first target data;

[0015] inserting the first target data into the target position of the first network data to obtain the second network data.

[0016] Optionally, the forwarding the second network data to the traditional Ethernet comprises:

[0017] obtaining a transmission address of a data analysis server comprised in the traditional Ethernet;

[0018] forwarding the second network data to the data analysis server according to the transmission address, wherein the data analysis server is used to perform data analysis and / or data processing on the second network data.

[0019] Optionally, after the forwarding the second network data to the data analysis server according to the transmission address, the method further comprises:

[0020] receiving third network data returned by the data analysis server, wherein the third network data is network data obtained after the data analysis server performs data analysis and / or data processing on the second network data;

[0021] converting a data format of the third network data from the second format to the first format to obtain fourth network data;

[0022] forwarding the fourth network data to the flexible Ethernet.

[0023] Optionally, the converting the data format of the third network data from the second format to the first format to obtain the fourth network data comprises:

[0024] finding a target position from the first network data, wherein the target position comprises a position different from the first format in the second format;

[0025] deleting the second target data from the target position to obtain the fourth network data.

[0026] Optionally, the deleting the second target data from the target position to obtain the fourth network data comprises:

[0027] determining network data of a target data amount from the target position in the third network data as the second target data, wherein the target data amount is a data amount conforming to a VLAN TAG format;

[0028] deleting the second target data from the third network data to obtain the fourth network data.

[0029] According to another embodiment of the embodiment of the present application, a network data control device is further provided, comprising: an acquisition module, configured to acquire first network data to be controlled from a flexible Ethernet;

[0030] a first conversion module, configured to convert a data format of the first network data from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by a traditional Ethernet;

[0031] a first forwarding module, configured to forward the second network data to the traditional Ethernet.

[0032] According to still another aspect of the embodiment of the present application, a computer readable storage medium is further provided, characterized in that the computer readable storage medium comprises a stored program, wherein the program performs the above network data control method when running.

[0033] According to still another aspect of the embodiment of the present application, an electronic device is further provided, comprising a memory and a processor, characterized in that the memory stores a computer program, and the processor is configured to execute the above network data control method through the computer program.

[0034] In the embodiment of the present application, the first network data to be controlled is acquired from the flexible Ethernet, the data format of the first network data is converted from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by the traditional Ethernet; and the second network data is forwarded to the traditional Ethernet, that is, the data formats transmitted by the flexible Ethernet and the traditional Ethernet are different, wherein the data format of the first network data transmitted in the flexible Ethernet is the first format, and the data format of the second network data transmitted in the traditional Ethernet is the second format, by converting the first network data transmitted in the flexible Ethernet from the first format to the second format which can be transmitted in the traditional Ethernet, and then forwarding the data to the traditional Ethernet, the technical scheme is adopted, the problems in the prior art that the network data cannot be transmitted between the flexible Ethernet and the traditional Ethernet are solved, and the technical effect that the network data is transmitted between the flexible Ethernet and the traditional Ethernet is achieved. BRIEF DESCRIPTION OF DRAWINGS

[0035] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

[0037] Figure 1 is a hardware structure block diagram of a computer terminal of a network data control method according to an embodiment of the present application;

[0038] Figure 2 is a flowchart of a network data control method according to an embodiment of the present application;

[0039] Figure 3 is a network data frame conversion schematic diagram according to an embodiment of the present application;

[0040] Figure 4 is a network data format mutual conversion technical schematic diagram according to an embodiment of the present application;

[0041] Figure 5 is a network data conversion and parallel transmission schematic diagram according to an embodiment of the present application;

[0042] Figure 6 is a network data conversion and serial transmission schematic diagram according to an embodiment of the present application;

[0043] Figure 7is a structural block diagram of a network data control device according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the personnel in the technical field better understand the present application scheme, the technical scheme in the embodiment of the present application will be described clearly and completely below in combination with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all. Based on the embodiment in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the protection scope of the present application.

[0045] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, 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 "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0046] The method embodiment provided by the embodiment of the present application can be executed in a computer terminal, a computer terminal or similar computing device. Taking the running on the computer terminal as an example, Figure 1 is a hardware structural block diagram of a computer terminal of a network data control method according to an embodiment of the present application. As shown in Figure 1 , the computer terminal can include one or more (only one is shown in Figure 1 ) processor 102 (the processor 102 can include but not limited to processing device such as microprocessor MCU or programmable logic device FPGA) and memory 104 for storing data, in an exemplary embodiment, the above-mentioned computer terminal can also include transmission device 106 for communication function and input and output device 108. Those skilled in the art can understand, Figure 1 The structure shown is only schematic, which does not limit the structure of the above-mentioned computer terminal. For example, the computer terminal can also include more or less components than Figure 1 shown, or have different configurations with the same function as Figure 1 or more functions than Figure 1 shown.

[0047] The memory 104 can be configured to store computer programs, for example, software programs of application software and modules, such as a computer program corresponding to the network data control method of an embodiment of the present application. The processor 102 can execute various functional applications and data processing, i.e., implement the above method, by running the computer programs stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to the computer terminal through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0048] The transmission device 106 is configured to receive or send data via a network. A specific example of the above network can include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to be capable of communicating with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is configured to communicate with the Internet in a wireless manner.

[0049] In the present embodiment, a network data control method is provided, which is applied to the above computer terminal, Figure 2 FIG. 1 is a flowchart of a network data control method according to an embodiment of the present application, which includes the following steps:

[0050] In step S202, first network data to be controlled is obtained from a flexible Ethernet.

[0051] In step S204, a data format of the first network data is converted from a first format to a second format, to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by a traditional Ethernet.

[0052] In step S206, the second network data is forwarded to the traditional Ethernet.

[0053] Through the above steps, the data formats transmitted by the flexible Ethernet and the traditional Ethernet are different, wherein the data format of the first network data transmitted in the flexible Ethernet is a first format, the data format of the second network data transmitted in the traditional Ethernet is a second format, the first network data transmitted in the flexible Ethernet is converted from the above-mentioned first format into the second format which can be transmitted in the above-mentioned traditional Ethernet, and the data is forwarded to the traditional Ethernet. By adopting the technical solution, the problems in the prior art that network data cannot be transmitted between the flexible Ethernet and the traditional Ethernet are solved, and the technical effect that the network data is transmitted between the flexible Ethernet and the traditional Ethernet is achieved.

[0054] In the technical solution provided in the above step S202, the first network data to be controlled is acquired from the flexible Ethernet. That is, the above-mentioned first network data can be but is not limited to data to be controlled in the above-mentioned flexible Ethernet, the above-mentioned control can be but is not limited to traffic to be transmitted to the traditional Ethernet for control, and the subject of the subsequent operation can be but is not limited to being based on the first network data.

[0055] Optionally, in the embodiment, the flexible Ethernet can be but is not limited to a low-cost, high-reliability, and dynamically configurable telecom-level interface technology realized by decoupling Ethernet MAC and PHY layers based on a high-speed Ethernet interface.

[0056] Optionally, in the embodiment, the first network data can be but is not limited to data allowed to be transmitted and run in the flexible Ethernet based on a network protocol of the flexible Ethernet.

[0057] In the technical solution provided in the above step S204, the data format of the first network data is converted from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by the traditional Ethernet. That is, the data formats transmitted by the flexible Ethernet and the traditional Ethernet are different, wherein the data format of the first network data transmitted in the flexible Ethernet can be but is not limited to the first format, the data format of the second network data transmitted in the traditional Ethernet can be but is not limited to the second format, and the first network data transmitted in the flexible Ethernet can be but is not limited to being converted from the above-mentioned first format into the second format which can be transmitted in the above-mentioned traditional Ethernet. Thus, the data run in the flexible Ethernet is converted in format, and running in the traditional Ethernet is achieved.

[0058] Optionally, in the embodiment, the first format can be but is not limited to a flexible Ethernet data frame format based on a flexible Ethernet protocol, Figure 3 is a network data frame conversion schematic diagram according to an embodiment of the application, as Figure 3The first format can be, but is not limited to, a flexible Ethernet data frame format as shown in Figure 3 , wherein the flexible Ethernet data frame format can be, but is not limited to, including a preamble, S, MAC, Paylosd, and FCS.

[0059] Optionally, in the embodiment, the second format can be, but is not limited to, a flexible Ethernet data frame format based on a flexible Ethernet protocol, Figure 3 is a schematic diagram of network data frame conversion according to an embodiment of the present application, as shown in Figure 3 The second format can be, but is not limited to, a traditional Ethernet data frame format as shown in Figure 3 , wherein the traditional Ethernet data frame format can be, but is not limited to, including a preamble, S, MAC, VLAN, Paylosd, and FCS, wherein the VLAN can be, but is not limited to, in a VLAN TAG format, and the VLAN TAG format can be, but is not limited to, including TPID, Priority, CFI, and VLAN ID.

[0060] In an example embodiment, the first target data can be inserted into the target position of the first network data according to the data information of the first network data to obtain the second network data in the following manner, but is not limited thereto: extracting flexible Ethernet interface client information from the first network data, wherein the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, and the data information includes the flexible Ethernet interface client information; constructing initial data conforming to a VLAN TAG format; adding the flexible Ethernet interface client information to a VLAN ID field in the initial data to obtain the first target data; and inserting the first target data into the target position of the first network data to obtain the second network data.

[0061] Optionally, in the embodiment, Figure 4 is a schematic diagram of network data format mutual conversion technology according to an embodiment of the present application, as shown in Figure 4 The first network data can be, but is not limited to, FlexE data in the diagram, and the FlexE data is converted into second network data by a shunt device, wherein the second network data can be, but is not limited to, Eth data allowed to be transmitted on a traditional Ethernet, and a shunt is used to complete data mutual conversion from a FlexE interface to an Eth interface to complete a bridging function of a new generation of FlexE interface network device to an Eth interface data analysis server, and data bridging is completed by adding a VLAN identifier to FlexE interface data.

[0062] Optionally, in the embodiment, the extracting the FlexE interface client information from the first network data can be, but is not limited to, extracting data from the FlexE Client through the FlexE interface without the splitter, adding different VLAN tags for the data of different FlexE Clients, inserting the FlexE interface client information into the VLAN ID of the VLAN tag, and sending the data message carrying the VLAN tag through the Eth interface to the data analysis server. Here, the standard VLAN TAG format can be used.

[0063] Optionally, in the embodiment, the VLAN ID field can carry FlexE Client ID information. After the data analysis server for traditional Ethernet completes data analysis, the data is sent back to the splitter device through the Eth interface. The splitter device sends the data through the corresponding FlexE Client of the FlexE interface according to the original Client ID information in the VLAN tag, thereby completing the forward and reverse data conversion between the FlexE interface and the Eth interface.

[0064] In the technical solution provided in the above step S204, the second network data is forwarded to the traditional Ethernet, that is, after the first data is converted into the second data, the second data can run and be transmitted in the traditional Ethernet, thereby realizing the indirect data analysis of the first data of the flexible Ethernet by the data server of the traditional Ethernet.

[0065] Optionally, in the embodiment, forwarding the second network data to the traditional Ethernet can be, but is not limited to, converting the first data into the second data, and then sending the second data to the data analysis server through the Eth interface.

[0066] In one example embodiment, the second network data can be forwarded to the traditional Ethernet by the following way, including: obtaining a transmission address of a data analysis server included in the traditional Ethernet; and forwarding the second network data to the data analysis server according to the transmission address, wherein the data analysis server is configured to perform data analysis and / or data processing on the second network data.

[0067] Optionally, in the embodiment, Figure 5 is a schematic diagram of network data conversion and parallel transmission according to an embodiment of the present application, as Figure 5As shown, the main purpose of the FlexE interface network shunt serial application is to analyze the data by mirroring the existing network in parallel, and to realize real-time monitoring of the traffic by combining the data analysis server with the shunt. Since it is in parallel mode, it does not control the traffic, and is suitable for scenarios where only data analysis is required. The FlexE interface data is mirrored to the shunt device through the optical splitter, the shunt extracts the data through the FlexE interface, and sends the data to the data analysis server through the Eth interface. The data analysis server completes the data analysis.

[0068] Optionally, in this embodiment, the transmission address of the data analysis server can be but is not limited to an IP address, which is used to indicate the transmission of the second network data to the destination. In order to enable the data to be correctly sent to the target host, the IP address on the network can identify the location of the host.

[0069] Optionally, in this embodiment, the data analysis server can be but is not limited to any server capable of providing data analysis operations. The data analysis server can analyze a large amount of collected data by using appropriate statistical analysis methods, summarize and understand them, and digest them in order to maximize the development of the functions of the data and the role of the data. It can achieve detailed research and generalization of data by extracting useful information and forming conclusions, and further monitor and control the data.

[0070] In one example embodiment, after forwarding the second network data to the data analysis server according to the transmission address, it further includes: receiving third network data returned by the data analysis server, wherein the third network data is network data obtained after the data analysis server performs data analysis and / or data processing on the second network data; converting the data format of the third network data from the second format to the first format to obtain fourth network data; and forwarding the fourth network data to the flexible Ethernet.

[0071] Optionally, in this embodiment, Figure 6 is a schematic diagram of network data conversion serial transmission according to an embodiment of the present application, as Figure 6As shown, the main purpose of the FlexE interface network shunt serial application is to realize real-time monitoring and control of traffic through the shunt combined with the data analysis server through the serial way of the existing network, and complete the extraction and recovery of data through the shunt integrated FlexE interface without affecting the overall network deployment. Among them, the shunt device is serially connected to the network through the routing switch, the shunt is connected to the new generation of FlexE interface networking device through FlexE, the extraction of FlexE interface data is completed, the data is sent to the data analysis server through the Eth interface, after the data analysis server performs corresponding analysis and processing, it is sent back to the shunt device, and the shunt device sends the data to the FlexE time slot to complete the data packet transmission.

[0072] Optionally, in the embodiment, the third network data can be but is not limited to data after data analysis operation by the data analysis server.

[0073] In one example embodiment, the data format of the third network data can be but is not limited to converted from the second format to the first format to obtain fourth network data by the following way: finding a target position from the first network data, wherein the target position includes a position in the second format that is different from the first format; deleting second target data from the target position to obtain the fourth network data.

[0074] Optionally, in the embodiment, as Figure 3 shown, the traditional Ethernet data frame format is converted into the flexible Ethernet data frame format, first find the target position including the position in the second format that is different from the first format, that is, VLAN 3, delete VLAN to obtain the flexible Ethernet data frame format.

[0075] In one example embodiment, the second target data can be but is not limited to deleted from the target position to obtain the fourth network data by the following way: determining the network data of the target data amount in the third network data from the target position as the second target data, wherein the target data amount is the data amount conforming to the VLAN TAG format; deleting the second target data from the third network data to obtain the fourth network data.

[0076] Optionally, in the embodiment, the second target data can be but is not limited to Figure 3 VLAN in the above, and the target data amount can be but is not limited to 4 bytes.

[0077] Those skilled in the art can clearly understand that the method according to the above-mentioned embodiments can be realized by means of software on a general hardware platform as necessary, and of course, can also be realized by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device) to execute the method of each embodiment of the present application.

[0078] Figure 7 is a structural block diagram of a network data control device according to an embodiment of the present application; as shown in Figure 7 , comprising:

[0079] The acquisition module 702 is configured to acquire first network data to be controlled from the flexible Ethernet.

[0080] The first conversion module 704 is configured to convert a data format of the first network data from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted in the flexible Ethernet, and the second format is a data format allowed to be transmitted in the traditional Ethernet.

[0081] The first forwarding module 706 is configured to forward the second network data to the traditional Ethernet.

[0082] Through the above-mentioned embodiments, the data formats transmitted in the flexible Ethernet and the traditional Ethernet are different, wherein a data format of first network data transmitted in the flexible Ethernet is a first format, and a data format of second network data transmitted in the traditional Ethernet is a second format. By converting the first network data transmitted in the flexible Ethernet from the first format to the second format that can be transmitted in the traditional Ethernet, and then forwarding the data to the traditional Ethernet, the above-mentioned technical solution solves the problem in the related art that network data cannot be transmitted between the flexible Ethernet and the traditional Ethernet, and achieves the technical effect of transmitting network data between the flexible Ethernet and the traditional Ethernet.

[0083] In one exemplary embodiment, the first conversion module 704 comprises:

[0084] The first lookup unit 704-2 is configured to find a target position from the first network data, wherein the target position comprises a position in the first format that is different from the second format.

[0085] The inserting unit 704-4 is configured to insert first target data into the target position of the first network data according to data information of the first network data, so as to obtain the second network data.

[0086] In an example embodiment, the inserting unit 704-4 is configured to:

[0087] extract flexible Ethernet interface client information from the first network data, wherein the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, and the data information comprises the flexible Ethernet interface client information;

[0088] construct initial data in a VLAN TAG format;

[0089] add the flexible Ethernet interface client information to a VLAN ID field in the initial data, so as to obtain the first target data;

[0090] insert the first target data into the target position of the first network data, so as to obtain the second network data.

[0091] In an example embodiment, the first forwarding module 706 comprises:

[0092] an obtaining unit configured to obtain a transmission address of a data analysis server included in the legacy Ethernet;

[0093] a forwarding unit configured to forward the second network data to the data analysis server according to the transmission address, wherein the data analysis server is configured to perform data analysis and / or data processing on the second network data.

[0094] In an example embodiment, the apparatus further comprises:

[0095] a receiving module 708 configured to receive third network data returned by the data analysis server after the second network data is forwarded to the data analysis server according to the transmission address, wherein the third network data is network data obtained after the data analysis server performs data analysis and / or data processing on the second network data;

[0096] a second conversion module 710 configured to convert a data format of the third network data from the second format to the first format, so as to obtain fourth network data;

[0097] a second forwarding module 712 configured to forward the fourth network data to the flexible Ethernet.

[0098] In an example embodiment, the second conversion module 710 comprises:

[0099] The second searching unit 710-2 is configured to search for a target position from the first network data, wherein the target position comprises a position in the second format that is different from the first format.

[0100] The deleting unit 710-4 is configured to delete second target data from the target position to obtain the fourth network data.

[0101] In an example embodiment, the deleting unit 710-4 is configured to:

[0102] determine network data of a target data amount from the target position in the third network data as the second target data, wherein the target data amount is an amount of data conforming to the VLAN TAG format;

[0103] delete the second target data from the third network data to obtain the fourth network data.

[0104] Embodiments of the present application also provide a storage medium comprising a stored program, wherein the program performs any of the above methods when executed.

[0105] Optionally, in the present embodiment, the storage medium can be configured to store program code for performing the following steps:

[0106] obtaining first network data to be controlled from a flexible Ethernet;

[0107] converting a data format of the first network data from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by a traditional Ethernet;

[0108] forwarding the second network data to the traditional Ethernet.

[0109] Embodiments of the present application also provide an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above method embodiments.

[0110] Optionally, the electronic device can further comprise 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.

[0111] Optionally, in the present embodiment, the processor can be configured to perform the following steps through the computer program:

[0112] obtaining first network data to be controlled from a flexible Ethernet;

[0113] convert a data format of the first network data from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by the traditional Ethernet;

[0114] forward the second network data to the traditional Ethernet.

[0115] Embodiments of the present application also provide an electronic device, comprising a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above method embodiments.

[0116] Optionally, in the embodiment, the storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.

[0117] Optionally, specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, and the embodiment will not be described here.

[0118] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be realized by general computing devices, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps among them can be manufactured into a single integrated circuit module to realize. Thus, the present application is not limited to any specific hardware and software combination.

[0119] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A control method of network data, characterized by, The method comprises: obtaining first network data to be controlled from a flexible Ethernet; converting a data format of the first network data from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by a traditional Ethernet; forwarding the second network data to the traditional Ethernet; wherein the converting the data format of the first network data from the first format to the second format to obtain the second network data comprises: finding a target position from the first network data, wherein the target position comprises a position in the first format that is different from the second format; and inserting first target data according to data information of the first network data at the target position to obtain the second network data; wherein the first format comprises a preamble, an S, a MAC, a Payload, and a FCS, the second format comprises a preamble, an S, a MAC, a VLAN, a Payload, and a FCS, and the finding the target position from the first network data comprises finding a position between the MAC and the Payload in the first format as the target position; wherein the VLAN in the second format allows a VLAN TAG format, and the VLAN TAG format comprises a TPID, a Priority, a CFI, and a VLAN ID; wherein the inserting the first target data according to the data information of the first network data at the target position to obtain the second network data comprises: extracting flexible Ethernet interface client information from the first network data, wherein the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, and the data information comprises the flexible Ethernet interface client information; constructing initial data conforming to the VLAN TAG format; adding the flexible Ethernet interface client information to the VLAN ID in the initial data to obtain the first target data; and inserting the first target data into the target position of the first network data to obtain the second network data; wherein the forwarding the second network data to the traditional Ethernet comprises: obtaining a transmission address of a data analysis server included in the traditional Ethernet; and forwarding the second network data to the data analysis server according to the transmission address, wherein the data analysis server is used for data analysis and / or data processing on the second network data. The method further comprises: receiving third network data returned by the data analysis server, wherein the third network data is obtained after the data analysis server performs data analysis and / or data processing on the second network data; converting a data format of the third network data from the second format to the first format to obtain fourth network data; and forwarding the fourth network data to the flexible Ethernet. The forwarding of the fourth network data to the flexible Ethernet comprises: forwarding the fourth network data to a client indicated by the flexible Ethernet interface client information in the VLAN ID.

2. The method of claim 1, wherein, The conversion of the data format of the third network data from the second format to the first format to obtain the fourth network data comprises: finding a target position from the third network data, wherein the target position comprises a position different from the first format in the second format; deleting second target data from the target position to obtain the fourth network data.

3. The method of claim 2, wherein, The deletion of the second target data from the target position to obtain the fourth network data comprises: determining network data of a target data amount from the target position in the third network data as the second target data, wherein the target data amount is a data amount conforming to a VLAN TAG format; deleting the second target data from the third network data to obtain the fourth network data.

4. A network data control device, characterized by comprising: The method comprises: obtaining, by an obtaining module, first network data to be controlled from a flexible Ethernet; converting, by a first conversion module, a data format of the first network data from a first format to a second format to obtain second network data, wherein the first format is a data format allowed to be transmitted by the flexible Ethernet, and the second format is a data format allowed to be transmitted by a traditional Ethernet; forwarding, by a first forwarding module, the second network data to the traditional Ethernet; The first conversion module comprises: a first finding unit configured to find a target position from the first network data, wherein the target position comprises a position different from the second format in the first format; and an insertion unit configured to insert first target data into the target position according to data information of the first network data to obtain the second network data. The first format comprises: a preamble, an S, a MAC, a Payload, and a FCS; the second format comprises: a preamble, an S, a MAC, a VLAN, a Payload, and a FCS; and the first finding unit is further configured to find a position between the MAC and the Payload in the first format as the target position. The VLAN in the second format allows to adopt a VLAN TAG format, and the VLAN TAG format comprises: a TPID, a Priority, a CFI, and a VLAN ID. The inserting unit is configured to: extract flexible Ethernet interface client information from the first network data, wherein the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, and the data information comprises the flexible Ethernet interface client information; construct initial data conforming to the VLAN TAG format; add the flexible Ethernet interface client information to the VLAN ID in the initial data to obtain the first target data; and insert the first target data into the target position of the first network data to obtain the second network data. The first forwarding module comprises: an obtaining unit configured to obtain a transmission address of a data analysis server comprised in the traditional Ethernet; and a forwarding unit configured to forward the second network data to the data analysis server according to the transmission address, wherein the data analysis server is configured to perform data analysis and / or data processing on the second network data. The apparatus further comprises: a receiving module configured to receive third network data returned by the data analysis server after the second network data is forwarded to the data analysis server according to the transmission address, wherein the third network data is obtained after the data analysis server performs data analysis and / or data processing on the second network data; a second conversion module configured to convert a data format of the third network data from the second format to the first format to obtain fourth network data; and a second forwarding module configured to forward the fourth network data to the flexible Ethernet. The second forwarding module is further configured to forward the fourth network data to a client indicated by the flexible Ethernet interface client information in the VLAN ID.

5. A computer readable storage medium, characterized in that, The computer readable storage medium comprises a stored program, wherein the program performs the method described in any one of claims 1 to 3 when executed. 6.An electronic device comprising a memory and a processor, the electronic device comprising: The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 3 by using the computer program.

Citation Information

Patent Citations

  • Method, device and system for processing Ethernet data in optical network

    CN110248260A