CN116418865A - Control method and device of network data, storage medium and electronic equipment - Google Patents

Control method and device of network data, storage medium and electronic equipment Download PDF

Info

Publication number
CN116418865A
CN116418865A CN202111649731.5A CN202111649731A CN116418865A CN 116418865 A CN116418865 A CN 116418865A CN 202111649731 A CN202111649731 A CN 202111649731A CN 116418865 A CN116418865 A CN 116418865A
Authority
CN
China
Prior art keywords
data
format
network data
network
ethernet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111649731.5A
Other languages
Chinese (zh)
Inventor
张思渊
胥平春
戚晨希
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202111649731.5A priority Critical patent/CN116418865A/en
Priority to PCT/CN2022/139372 priority patent/WO2023125056A1/en
Publication of CN116418865A publication Critical patent/CN116418865A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a control method and device of network data, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring first network data to be controlled from a flexible Ethernet; converting the 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 flexible Ethernet allowed transmission data format, and the second format is a traditional Ethernet allowed transmission data format; the second network data is forwarded to the legacy ethernet network. The invention solves the technical problem that network data can not be transmitted between the flexible Ethernet and the traditional Ethernet.

Description

Control method and device of network data, storage medium and electronic equipment
Technical Field
The present invention relates to the field of ethernet, and in particular, to a method and apparatus for controlling network data, a storage medium, and an electronic device.
Background
The flexible Ethernet technology (FlexE) is a low-cost, high-reliability and dynamically configurable carrier-class interface technology realized by decoupling an MAC layer and a PHY layer of Ethernet on the basis of the traditional Ethernet (Ethernet) technology, and the flexible Ethernet technology meets the development requirements of services such as video, cloud computing, 5G and the like, and has wide application scenes, but most of network devices are devices based on the Ethernet protocol at present, the data of the flexible Ethernet cannot be transmitted to the traditional Ethernet, and the processing capability and the like of the data of the flexible Ethernet are limited.
Aiming at the problems that network data cannot be transmitted between the flexible Ethernet and the traditional Ethernet in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a control method and device of network data, a storage medium and electronic equipment, which at least solve the technical problem that the network data cannot be transmitted between a flexible Ethernet and a traditional Ethernet.
According to an aspect of the embodiments of the present application, there is provided a method for controlling network data, including: acquiring first network data to be controlled from a flexible Ethernet;
converting the 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 which is allowed to be transmitted by the flexible Ethernet, and the second format is a data format which is allowed to be transmitted by the traditional Ethernet;
forwarding the second network data to the legacy ethernet network.
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 includes:
searching a target position from the first network data, wherein the target position comprises a position which is different from the second format in the first format;
and inserting first target data into the target position according to the data information of the first network data to obtain the second network data.
Optionally, the inserting the first target data at the target location according to the data information of the first network data to obtain the second network data includes:
extracting flexible ethernet interface client information from the first network data, wherein the flexible ethernet interface client information is used for indicating a client transmitting the first network data in the flexible ethernet, and the data information comprises the flexible ethernet interface client information;
constructing initial data conforming to 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.
Optionally, the forwarding the second network data to the legacy ethernet includes:
acquiring a transmission address of a data analysis server included in the conventional 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 carrying out data analysis and/or data processing on the second network data.
Optionally, after forwarding the second network data to the data analysis server according to the transport address, the method further includes:
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 the data format of the third network data from the second format to the first format to obtain fourth network data;
forwarding the fourth network data to the flexible ethernet.
Optionally, the converting the data format of the third network data from the second format to the first format to obtain fourth network data includes:
searching a target position from the first network data, wherein the target position comprises a position which is different from the first format in the second format;
and deleting the second target data from the target position to obtain the fourth network data.
Optionally, the deleting the second target data from the target location to obtain the fourth network data includes:
determining network data of a target data volume starting from the target position in the third network data as the second target data, wherein the target data volume is a data volume conforming to a VLAN TAG format;
and deleting the second target data from the third network data to obtain the fourth network data.
According to another embodiment of the present invention, there is also provided a control device for network data, including: the acquisition module is used for acquiring first network data to be controlled from the flexible Ethernet;
the first conversion module is used for converting the 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 which is allowed to be transmitted by the flexible Ethernet, and the second format is a data format which is allowed to be transmitted by the traditional Ethernet;
and the first forwarding module is used for forwarding the second network data to the traditional Ethernet.
According to still another aspect of the embodiments of the present invention, there is further provided a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, and wherein the program executes the above-described method for controlling network data.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the control method of network data described above by the computer program.
In the embodiment of the application, first network data to be controlled is obtained from a flexible Ethernet; converting the 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 flexible Ethernet allowed transmission data format, and the second format is a traditional Ethernet allowed transmission data format; the second network data is forwarded to the traditional Ethernet, namely, the flexible Ethernet is different from the traditional Ethernet in data format, wherein the data format of the first network data transmitted in the flexible Ethernet is the first format, the data format of the second network data transmitted in the traditional Ethernet is the second format, the first network data transmitted in the flexible Ethernet is converted from the first format into the second format which can be transmitted in the traditional Ethernet, and then the data is forwarded to the traditional Ethernet.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a hardware block diagram of a computer terminal of a control method of network data according to an embodiment of the present invention;
fig. 2 is a flowchart of a control method of network data according to an embodiment of the present invention;
FIG. 3 is a diagram of network data frame conversion according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a network data format interconversion technique in accordance with an embodiment of the present invention;
FIG. 5 is a schematic diagram of network data translation parallel transmission according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of network data conversion serial transmission according to an embodiment of the present invention;
fig. 7 is a block diagram of a control apparatus for network data according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present invention may be performed in a computer terminal, or a similar computing device. Taking a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal of a control method of network data according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, a computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a control method of network data in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for controlling network data is provided and applied to the computer terminal, and fig. 2 is a flowchart of a method for controlling network data according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, acquiring first network data to be controlled from a flexible Ethernet;
step S204, converting the data format of the first network data from a first format to a second format, and obtaining second network data, wherein the first format is the data format which is allowed to be transmitted by the flexible Ethernet, and the second format is the data format which is allowed to be transmitted by the traditional Ethernet;
step S206, forwarding the second network data to the legacy ethernet.
Through the steps, the flexible Ethernet is different from the conventional Ethernet in data format, wherein the data format of the first network data transmitted in the flexible Ethernet is the first format, the data format of the second network data transmitted in the conventional Ethernet is the second format, the first network data transmitted in the flexible Ethernet is converted from the first format into the second format capable of being transmitted in the conventional Ethernet, and the data is forwarded to the conventional Ethernet.
In the technical solution provided in step S202, the first network data to be controlled is obtained from the flexible ethernet. That is, the first network data may be, but not limited to, data to be controlled in the flexible ethernet, the controlling may be, but not limited to, controlling traffic to be transmitted to the conventional ethernet, and the main body of the subsequent operation may be, but not limited to, based on the first network data.
Alternatively, in the present embodiment, the flexible Ethernet may be, but is not limited to, a low-cost, highly reliable, dynamically configurable carrier-level interface technology implemented by decoupling the Ethernet MAC layer from the PHY layer based on a high-speed Ethernet interface.
Alternatively, in the present embodiment, the first network data may be, but is not limited to, a flexible ethernet-based network protocol, allowing data to be transmitted and run in the flexible ethernet.
In the technical solution provided in step S204, the data format of the first network data is converted from a first format to a second format, so as to obtain second network data, where 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 conventional ethernet. That is, the flexible ethernet is different from the conventional ethernet in terms of data format, wherein the data format of the first network data transmitted in the flexible ethernet may be, but not limited to, a first format, and the data format of the second network data transmitted in the conventional ethernet may be, but not limited to, a second format, and may be, but not limited to, a second format that may be transmitted in the conventional ethernet by converting the first network data transmitted in the flexible ethernet from the first format described above to the second format that may be transmitted in the conventional ethernet described above. Therefore, the data running in the flexible Ethernet is converted into the format, and the data running in the traditional Ethernet is realized.
Optionally, in this embodiment, the first format may be, but is not limited to, a flexible ethernet data frame format based on a flexible ethernet protocol, and fig. 3 is a schematic diagram of converting a network data frame according to an embodiment of the present invention, as shown in fig. 3, and the first format may be, but is not limited to, a flexible ethernet data frame format of fig. 3, where the flexible ethernet data frame format may include, but is not limited to: preamble, S, MAC, paylosd, FCS.
Optionally, in this embodiment, the second format may be, but is not limited to, a flexible ethernet data frame format based on a flexible ethernet protocol, and fig. 3 is a schematic diagram of converting a network data frame according to an embodiment of the present invention, as shown in fig. 3, and the second format may be, but is not limited to, a conventional ethernet data frame format of fig. 3, where the conventional ethernet data frame format may include, but is not limited to: a preamble, S, MAC, VLAN, paylosd, FCS, wherein the VLAN may be, but is not limited to, in a VLAN TAG format, which may include, but is not limited to: TPID, priority, CFI VLAN ID.
In an exemplary embodiment, the second network data may be obtained by, but not limited to, inserting first target data at the target location according to data information of the first network data by: extracting flexible ethernet interface client information from the first network data, wherein the flexible ethernet interface client information is used for indicating a client transmitting the first network data in the flexible ethernet, and the data information comprises the flexible ethernet interface client information; constructing initial data conforming to 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.
Optionally, in this embodiment, fig. 4 is a schematic diagram of a network data format conversion technology according to an embodiment of the present invention, as shown in fig. 4, the first network data may be, but is not limited to, flexE data in the drawing, and the FlexE data may be converted into second network data by a splitting device, where the second network data may be, but is not limited to, eth data allowed to be transmitted on a conventional ethernet, and a splitter is used to complete data conversion from FlexE interface to Eth interface, so as to complete a bridging function from a new-generation FlexE interface network device to an Eth interface data analysis server, and complete data bridging by adding VLAN identifiers to FlexE interface data.
Optionally, in this embodiment, extracting the flexible ethernet interface Client information from the first network data may, but is not limited to, extracting data from the FlexE Client through a FlexE interface of a splitter, adding different VLAN TAGs to the data of different FlexE clients, inserting FlexE interface Client information into the VLAN ID of the VLAN TAG, and sending the VLAN TAG carried in a data packet to the data analysis server through an Eth interface, where a standard VLAN TAG format may be used.
Optionally, in this embodiment, the VLAN ID field may, but is not limited to, carry FlexE Client ID information, after the data analysis server of the conventional ethernet completes data analysis, the data is sent back to the splitter device through the Eth interface, and the splitter device sends the data through FlexE Client corresponding to the FlexE interface according to the original Client ID information in the VLAN tag, so that forward and reverse data interchange between the FlexE interface and the Eth interface is completed.
In the technical solution provided in step S204, the second network data is forwarded to the conventional ethernet, that is, after the first data is converted into the second data, the second data may be run and transmitted in the conventional ethernet, so as to implement the data analysis of the first data of the flexible ethernet indirectly by using the data server of the conventional ethernet.
Optionally, in this embodiment, forwarding the second network data to the legacy ethernet may, 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.
In one exemplary embodiment, the second network data may be forwarded to the legacy ethernet network by, but not limited to,: acquiring a transmission address of a data analysis server included in the conventional 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 carrying out data analysis and/or data processing on the second network data.
Optionally, in this embodiment, fig. 5 is a schematic diagram of parallel transmission of network data conversion, as shown in fig. 5, where a FlexE interface network splitter is used in serial application, and is mainly aimed at performing mirror analysis on data through parallel existing networks, and implementing real-time monitoring on traffic by combining the splitter with a data analysis server.
Alternatively, in the present embodiment, the transmission address of the data analysis server may be, but is not limited to, an IP address for indicating the transmission of the second network data to the destination. In order to enable data to be properly sent to the target host, the IP address on the network may identify the location of the host.
Alternatively, in this embodiment, the data analysis server may be, but is not limited to, any server capable of providing data analysis operations, and the data analysis server may analyze, summarize and understand and digest a large amount of collected data by using a suitable statistical analysis method, so as to develop the function of data maximally, perform the function of data, and extract useful information and form conclusions to study and summarize the data in detail, so as to monitor and manage the data.
In an exemplary embodiment, after forwarding the second network data to the data analysis server according to the transport address, the method further includes: 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 the data format of the third network data from the second format to the first format to obtain fourth network data; forwarding the fourth network data to the flexible ethernet.
Optionally, in this embodiment, fig. 6 is a schematic diagram of network data conversion serial transmission according to an embodiment of the present invention, as shown in fig. 6, a main purpose of serial application of a FlexE interface network splitter is to realize real-time monitoring and control on traffic by means of a mode of entering an existing network in serial through a splitter and combining with a data analysis server, and complete extraction and recovery of data by integrating FlexE interfaces through the splitter, so as not to affect overall network deployment, where the splitter device is connected in series to a network through a routing switch, and is connected with a new generation FlexE interface networking device through FlexE to complete extraction of FlexE interface data, and sends the data to a data analysis server through an Eth interface, after corresponding analysis processing is performed on the data analysis server, the data is returned to the splitter device, and the splitter corresponds the data to FlexE time slot to complete data packet sending.
Alternatively, in the present embodiment, the third network data may refer to, but is not limited to, data after the data analysis operation is performed through the data analysis server.
In one exemplary embodiment, the data format of the third network data may be converted from the second format to the first format to obtain fourth network data by, but not limited to: searching a target position from the first network data, wherein the target position comprises a position which is different from the first format in the second format; and deleting the second target data from the target position to obtain the fourth network data.
Optionally, in this embodiment, as shown in fig. 3, the conventional ethernet data frame format is converted into the flexible ethernet data frame format, first, the target location is found to include a VLAN 3, which is a location in the second format different from the first format, and the VLAN is deleted to obtain the flexible ethernet data frame format.
In one exemplary embodiment, the fourth network data may be obtained by, but is not limited to, deleting the second target data from the target location by: determining network data of a target data volume starting from the target position in the third network data as the second target data, wherein the target data volume is a data volume conforming to a VLAN TAG format; and deleting the second target data from the third network data to obtain the fourth network data.
Alternatively, in the present embodiment, the second target data may be, but is not limited to, VLAN in fig. 3, and the target data amount may be, but is not limited to, 4 bytes.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
Fig. 7 is a block diagram of a control apparatus of network data according to an embodiment of the present invention; as shown in fig. 7, includes:
an obtaining module 702, configured to obtain first network data to be controlled from a flexible ethernet;
a first conversion module 704, configured to convert a data format of the first network data from a first format to a second format, to obtain second network data, where the first format is a data format that the flexible ethernet allows transmission, and the second format is a data format that the conventional ethernet allows transmission;
a first forwarding module 706, configured to forward the second network data to the legacy ethernet network.
Through the above embodiment, the flexible ethernet is different from the conventional ethernet in data format, where the data format of the first network data transmitted in the flexible ethernet is the first format, the data format of the second network data transmitted in the conventional ethernet is the second format, and 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 conventional ethernet and forwarding the data to the conventional ethernet, by adopting the above technical scheme, the problems that in the related art, the network data cannot be transmitted between the flexible ethernet and the conventional ethernet, etc. are solved, and the technical effect of the transmission of the network data between the flexible ethernet and the conventional ethernet is achieved.
In one exemplary embodiment, the first conversion module 704 includes:
a first searching unit 704-2, configured to search a target location from the first network data, where the target location includes a location in the first format that is different from the second format;
and an inserting unit 704-4, configured to insert first target data at the target location according to the data information of the first network data, so as to obtain the second network data.
In an exemplary embodiment, the inserting unit 704-4 is configured to:
extracting flexible ethernet interface client information from the first network data, wherein the flexible ethernet interface client information is used for indicating a client transmitting the first network data in the flexible ethernet, and the data information comprises the flexible ethernet interface client information;
constructing initial data conforming to 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.
In one exemplary embodiment, the first forwarding module 706 includes:
an obtaining unit, configured to obtain a transmission address of a data analysis server included in the legacy ethernet;
and the forwarding unit is used for forwarding the second network data to the data analysis server according to the transmission address, wherein the data analysis server is used for carrying out data analysis and/or data processing on the second network data.
In an exemplary embodiment, the apparatus further comprises:
a receiving module 708, configured to receive third network data returned by the data analysis server after forwarding the second network data to the data analysis server according to the transmission address, where 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;
a second conversion module 710, configured to convert the data format of the third network data from the second format to the first format, to obtain fourth network data;
a second forwarding module 712, configured to forward the fourth network data to the flexible ethernet network.
In one exemplary embodiment, the second conversion module 710 includes:
a second searching unit 710-2, configured to search for a target location from the first network data, where the target location includes a location in the second format that is different from the first format;
and a deleting unit 710-4, configured to delete the second target data from the target location, to obtain the fourth network data.
In one exemplary embodiment, the deletion unit 710-4 is configured to:
determining network data of a target data volume starting from the target position in the third network data as the second target data, wherein the target data volume is a data volume conforming to a VLAN TAG format;
and deleting the second target data from the third network data to obtain the fourth network data.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
acquiring first network data to be controlled from a flexible Ethernet;
converting the 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 which is allowed to be transmitted by the flexible Ethernet, and the second format is a data format which is allowed to be transmitted by the traditional Ethernet;
forwarding the second network data to the legacy ethernet network.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
acquiring first network data to be controlled from a flexible Ethernet;
converting the 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 which is allowed to be transmitted by the flexible Ethernet, and the second format is a data format which is allowed to be transmitted by the traditional Ethernet;
forwarding the second network data to the legacy ethernet network.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for controlling network data, comprising:
acquiring first network data to be controlled from a flexible Ethernet;
converting the 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 which is allowed to be transmitted by the flexible Ethernet, and the second format is a data format which is allowed to be transmitted by the traditional Ethernet;
forwarding the second network data to the legacy ethernet network.
2. The method of claim 1, wherein converting the data format of the first network data from the first format to the second format to obtain the second network data comprises:
searching a target position from the first network data, wherein the target position comprises a position which is different from the second format in the first format;
and inserting first target data into the target position according to the data information of the first network data to obtain the second network data.
3. The method according to claim 2, wherein the inserting the first target data at the target location according to the data information of the first network data to obtain the second network data includes:
extracting flexible ethernet interface client information from the first network data, wherein the flexible ethernet interface client information is used for indicating a client transmitting the first network data in the flexible ethernet, and the data information comprises the flexible ethernet interface client information;
constructing initial data conforming to 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.
4. The method of claim 1, wherein forwarding the second network data to the legacy ethernet network comprises:
acquiring a transmission address of a data analysis server included in the conventional 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 carrying out data analysis and/or data processing on the second network data.
5. The method of claim 4, wherein after forwarding the second network data to the data analysis server at the transport address, 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 the data format of the third network data from the second format to the first format to obtain fourth network data;
forwarding the fourth network data to the flexible ethernet.
6. The method of claim 5, wherein converting the data format of the third network data from the second format to the first format results in fourth network data, comprising:
searching a target position from the first network data, wherein the target position comprises a position which is different from the first format in the second format;
and deleting the second target data from the target position to obtain the fourth network data.
7. The method of claim 6, wherein deleting the second target data from the target location to obtain the fourth network data comprises:
determining network data of a target data amount starting 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 vlant ag format;
and deleting the second target data from the third network data to obtain the fourth network data.
8. A control device for network data, comprising:
the acquisition module is used for acquiring first network data to be controlled from the flexible Ethernet;
the first conversion module is used for converting the 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 which is allowed to be transmitted by the flexible Ethernet, and the second format is a data format which is allowed to be transmitted by the traditional Ethernet;
and the first forwarding module is used for forwarding the second network data to the traditional Ethernet.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202111649731.5A 2021-12-29 2021-12-29 Control method and device of network data, storage medium and electronic equipment Pending CN116418865A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111649731.5A CN116418865A (en) 2021-12-29 2021-12-29 Control method and device of network data, storage medium and electronic equipment
PCT/CN2022/139372 WO2023125056A1 (en) 2021-12-29 2022-12-15 Network data control method and apparatus, and storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111649731.5A CN116418865A (en) 2021-12-29 2021-12-29 Control method and device of network data, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116418865A true CN116418865A (en) 2023-07-11

Family

ID=86997667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111649731.5A Pending CN116418865A (en) 2021-12-29 2021-12-29 Control method and device of network data, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN116418865A (en)
WO (1) WO2023125056A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116915767B (en) * 2023-09-13 2024-03-29 重庆华悦生态环境工程研究院有限公司深圳分公司 Document transmission method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965157B (en) * 2017-05-19 2020-08-07 华为技术有限公司 Data transmission method, device, equipment and system
CN109861781B (en) * 2017-11-30 2021-02-12 华为技术有限公司 Interface transmission method, device and equipment
CN110248260B (en) * 2018-03-07 2021-10-26 华为技术有限公司 Method, device and system for processing Ethernet data in optical network
CN110875862B (en) * 2018-08-31 2022-07-19 中兴通讯股份有限公司 Message transmission method and device and computer storage medium
CN113645258A (en) * 2021-10-18 2021-11-12 阿里云计算有限公司 Data transmission method and device, storage medium, processor and electronic equipment

Also Published As

Publication number Publication date
WO2023125056A1 (en) 2023-07-06

Similar Documents

Publication Publication Date Title
CN109391500B (en) Configuration management method, device and equipment
US20170244792A1 (en) Power-Line Carrier Terminal Control Apparatus, System, and Method
CN108270699B (en) Message processing method, shunt switch and aggregation network
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
CN103248724A (en) SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method
CN107360205B (en) Data message transmission method, device and system
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN110198229B (en) Network configuration method and device, storage medium and electronic device
CN109379764B (en) Message sending method and device
CN108173763B (en) Message processing method, device and system
CN100417088C (en) Method for synchronization of fore-and-aft alarm
CN107623752B (en) Network management method and device based on link layer
CN107204924B (en) Link discovery method and device
CN103947165A (en) Method of promoting a quick data flow of data packets in a communication network, communication network and data processing unit
CN116418865A (en) Control method and device of network data, storage medium and electronic equipment
WO2016110070A1 (en) Data acquiring method and device, and storage medium
CN108881178B (en) Information transmission method and apparatus, device, storage medium, and electronic apparatus
CN108574637B (en) Address self-learning method and device and switch
CN114143385B (en) Network traffic data identification method, device, equipment and medium
WO2017193814A1 (en) Service chain generation method and system
US11464057B2 (en) Method and apparatus for high speed processing of GTP-U packet in a mobile network
CN111092772B (en) Network service processing method, device and system
CN105282034B (en) ARP/NDP learning system and learning method
CN114449051A (en) Data packet transmission method and device and communication equipment
CN114189565B (en) Head area restoration system, method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination