[go: up one dir, main page]

WO2023125056A1 - Network data control method and apparatus, and storage medium and electronic device - Google Patents

Network data control method and apparatus, and storage medium and electronic device Download PDF

Info

Publication number
WO2023125056A1
WO2023125056A1 PCT/CN2022/139372 CN2022139372W WO2023125056A1 WO 2023125056 A1 WO2023125056 A1 WO 2023125056A1 CN 2022139372 W CN2022139372 W CN 2022139372W WO 2023125056 A1 WO2023125056 A1 WO 2023125056A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
format
network data
network
target
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.)
Ceased
Application number
PCT/CN2022/139372
Other languages
French (fr)
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
Publication of WO2023125056A1 publication Critical patent/WO2023125056A1/en
Anticipated expiration legal-status Critical
Ceased 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

Definitions

  • the present application relates to the field of Ethernet, in particular, to a network data control method, device, storage medium and electronic equipment.
  • Flexible Ethernet technology is based on traditional Ethernet (Ethernet) technology, through Ethernet MAC (Media Access Control, data link) layer and PHY (Physical Layer, physical) layer decoupling to achieve low cost , highly reliable, and dynamically configurable carrier-grade interface technology, flexible Ethernet technology meets the development needs of video, cloud computing, and 5G services, and has a wide range of application scenarios, but most of the current network devices are based on the Ethernet protocol. , the data of the flexible Ethernet cannot be transmitted to the traditional Ethernet, which limits the processing capability of the data of the flexible Ethernet.
  • the embodiment of the present application provides a network data control method, device, storage medium and electronic equipment to at least solve the problem in the related art that the user will request to continue loading other scroll view information only after the user browses all the scroll view information that has been loaded.
  • the technical problems of long waiting time and poor user experience caused by scrolling view information are not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to the problem in the related art that the user will request to continue loading other scroll view information only after the user browses all the scroll view information that has been loaded.
  • a method for controlling network data including: acquiring first network data to be controlled from a flexible Ethernet;
  • the first format is a data format that the flexible Ethernet allows transmission
  • the second format It is the data format that traditional Ethernet allows to transmit
  • converting the data format of the first network data from the first format to the second format to obtain the second network data includes:
  • inserting the first target data at the target position according to the data information of the first network data to obtain the second network data includes:
  • Extract flexible Ethernet interface client information from the first network data where the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, so
  • the data information includes the flexible Ethernet interface client information
  • the forwarding the second network data to the traditional Ethernet includes:
  • the method further includes:
  • 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 includes:
  • the deleting the second target data from the target location to obtain the fourth network data includes:
  • the target data amount is a data amount conforming to the VLAN TAG format
  • a device for controlling network data including: an obtaining module configured to obtain the first network data to be controlled from the flexible Ethernet;
  • the first conversion module is configured to convert 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 allowed to be transmitted by the flexible Ethernet A data format, the second format is a data format that traditional Ethernet allows transmission;
  • the first forwarding module is configured to forward the second network data to the traditional Ethernet.
  • a computer-readable storage medium which is characterized in that the computer-readable storage medium includes a stored program, wherein, when the program runs, the above-mentioned one A control method for network data.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the computer program through the computer program.
  • the first network data to be controlled is obtained from the flexible Ethernet; the data format of the first network data is converted from the first format to the second format to obtain the second network data, wherein the first format is the data format allowed to be transmitted by flexible Ethernet, and the second format is the data format allowed to be transmitted by traditional Ethernet; forward the second network data to traditional Ethernet, that is, the data format transmitted by flexible Ethernet and traditional Ethernet is different, 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 traditional Ethernet is the second format, and the first network transmitted in the flexible Ethernet
  • the data is converted from the above-mentioned first format into the second format that can be transmitted in the above-mentioned traditional Ethernet, and then the data is forwarded to the traditional Ethernet.
  • the above-mentioned technical solution solves the problem in the related technology that only when the user browses After finishing all the scroll view information that has been loaded by the scroll view, it will request to continue loading other scroll view information, resulting in long waiting time and poor user experience, etc. It realizes the transmission of network data between flexible Ethernet and traditional Ethernet technical effect.
  • Fig. 1 is a block diagram of the hardware structure of a computer terminal of a method for controlling network data according to an embodiment of the present application
  • FIG. 2 is a flowchart of a network data control method according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of network data frame conversion according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a network data format interconversion technology according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of parallel transmission of network data conversion according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of network data conversion and serial transmission according to an embodiment of the present application.
  • Fig. 7 is a structural block diagram of an apparatus for controlling network data according to an embodiment of the present application.
  • FIG. 1 is a block diagram of a hardware structure of a computer terminal according to a method for controlling network data according to an embodiment of the present application.
  • the computer terminal can include one or more (only one is shown in Figure 1) processor 102 (processor 102 can include but not limited to microprocessor MCU (Microcontroller Unit, MCU) or programmable logic device Processing devices such as FPGA (Field Programmable Gate Array)) and a memory 104 configured to store data, in an exemplary embodiment, the above-mentioned computer terminal may also include a transmission device 106 and an input/output device 108 configured as a communication function .
  • processor 102 can include but not limited to microprocessor MCU (Microcontroller Unit, MCU) or programmable logic device Processing devices such as FPGA (Field Programmable Gate Array)
  • a memory 104 configured to store data
  • the above-mentioned computer terminal may also include a transmission device 106 and an input/output device 108 configured as a communication function .
  • the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above computer terminal.
  • the computer terminal may also include more or less
  • the memory 104 can be set to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a network data control method in the embodiment of the present application, and the processor 102 runs the stored in the memory 104.
  • the 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.
  • the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to a computer terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is arranged to receive or transmit data via a network.
  • the optional example of the network mentioned above may include a wireless network provided by the communication provider of the computer terminal.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is configured to communicate with the Internet in a wireless manner.
  • RF radio frequency
  • FIG. 2 is a flowchart of a method for controlling network data according to an embodiment of the present application. The process includes the following steps:
  • Step S202 acquiring the first network data to be controlled from the flexible Ethernet
  • Step S204 converting the data format of the first network data from the first format to a second format to obtain the second network data, wherein the first format is a data format that the flexible Ethernet allows transmission, and the The second format is the data format allowed by traditional Ethernet;
  • Step S206 forwarding the second network data to the traditional Ethernet.
  • the data formats transmitted by flexible Ethernet and traditional Ethernet are different, wherein the data format of the first network data transmitted in flexible Ethernet is the first format, and the data format of the second network data transmitted in traditional Ethernet is The data format is the second format.
  • the first network data to be controlled is obtained from the flexible Ethernet. That is to say, the above-mentioned first network data may be, but not limited to, the data to be controlled in the above-mentioned flexible Ethernet, and the above-mentioned control may be, but not limited to, the traffic to be transmitted to the traditional Ethernet for control, and the subject of subsequent operations may be, but not limited to Limited to data based on the first network.
  • flexible Ethernet can be, but is not limited to, a low-cost, highly reliable, and dynamically configurable carrier-class interface technology based on a high-speed Ethernet interface and decoupling the Ethernet MAC layer from the PHY layer.
  • the first network data may be, but is not limited to, a flexible Ethernet-based network protocol, which allows data to be transmitted and run in the flexible Ethernet.
  • the data format of the first network data is converted from the first format to the second format to obtain the second network data, wherein the first format is the flexible Ethernet allowed A data format for transmission, where the second format is a data format allowed for transmission by traditional Ethernet. That is to say, the data formats transmitted by flexible Ethernet and traditional Ethernet are different, wherein, the data format of the first network data transmitted in flexible Ethernet can be but not limited to the first format, and the second format transmitted in traditional Ethernet.
  • the data format of the network data can be but not limited to the second format, and can be but not limited to converting the first network data transmitted in the flexible Ethernet from the above-mentioned first format to the second format that can be transmitted in the above-mentioned traditional Ethernet . In this way, the format conversion of the data running on the flexible Ethernet is realized, and the running on the traditional Ethernet is realized.
  • the first format may be, but not limited to, a flexible Ethernet data frame format based on a flexible Ethernet protocol.
  • FIG. 3 is a schematic diagram of network data frame conversion according to an embodiment of the present application, as shown in FIG. 3 As shown, the first format may be, but not limited to, the flexible Ethernet data frame format of FIG. Frame Check Sequence, frame check sequence).
  • the second format may be, but not limited to, a flexible Ethernet data frame format based on a flexible Ethernet protocol.
  • FIG. 3 is a schematic diagram of network data frame conversion according to an embodiment of the present application, as shown in FIG. 3 As shown, the second format may be, but not limited to, the traditional Ethernet data frame format of FIG.
  • the above-mentioned traditional Ethernet data frame format may include, but is not limited to: preamble, S, MAC, VLAN, Payload, FCS, wherein, Above-mentioned VLAN can but not be limited to adopt VLAN TAG (Virtual Local Area Network TAG, virtual local area network tag) format, VLAN TAG format can but not be limited to include: TPID (Tag Protocol Identifier, label protocol identifier), Priority (priority), CFI (Canonical Format Indicator, standard format indicator), VLAN ID (the number of the VLAN to which the data frame belongs).
  • TPID Tag Protocol Identifier, label protocol identifier
  • Priority priority
  • CFI Canonical Format Indicator, standard format indicator
  • VLAN ID the number of the VLAN to which the data frame belongs.
  • the second network data may be obtained by inserting the first target data at the target position according to the data information of the first network data in the following manner: from the first network Extract flexible Ethernet interface client information from the data, where the flexible Ethernet interface client information is used to indicate the client that transmits the first network data in the flexible Ethernet, and the data information includes the Flexible Ethernet interface client information; structure conforms to the initial data of VLAN TAG format; Described flexible Ethernet interface client information is added to the VLAN ID field in the described initial data, obtains described first target data; Described The first target data is inserted into the target position of the first network data to obtain the second network data.
  • FIG. 4 is a schematic diagram of a network data format interconversion technology according to an embodiment of the present application.
  • the first network data may be, but not limited to, the FlexE data in the figure, through
  • the distribution device converts the above-mentioned FlexE data into the second network data, wherein the second network data can be but not limited to the Eth data that is allowed to be transmitted on the traditional Ethernet, and the data transfer from the FlexE interface to the Eth interface is completed by using the splitter to complete the new
  • the bridging function of the first-generation FlexE interface network device to the Eth interface data analysis server completes data bridging by adding a VLAN tag to the FlexE interface data.
  • extracting the flexible Ethernet interface client information from the first network data may be, but not limited to, extracting from the FlexE Client (flexible Ethernet client) without passing through the FlexE interface of the splitter Data, and add different VLAN tags for the data of different FlexE Clients, insert the FlexE interface Client information into the VLAN ID of the VLAN tag, and at the same time carry the VLAN tag in the data packet and send it to the data analysis server through the Eth interface, here you can Use the standard VLAN TAG format.
  • the VLAN ID field may, but is not limited to, carry the FlexE Client ID information.
  • the data analysis server of the traditional Ethernet completes the data analysis, the data is sent back to the splitter device through the Eth interface, and the splitter device According to the original Client ID information in the VLAN tag, the data is sent through the FlexE Client corresponding to the FlexE interface, thus completing the forward and reverse data exchange between the FlexE interface and the Eth interface.
  • the second network data is forwarded to the traditional Ethernet, that is to say, after the first data is converted into the second data, the second data can be stored in the traditional Ethernet run and transmit, so as to realize the indirect data analysis of the first data of the flexible Ethernet by using the data server of the traditional Ethernet.
  • forwarding the second network data to the traditional Ethernet may be but 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 .
  • the second network data may be forwarded to the traditional Ethernet in the following manner, but not limited to, including: obtaining the transmission address of the data analysis server included in the traditional Ethernet; The second network data is forwarded 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.
  • FIG. 5 is a schematic diagram of parallel transmission of network data conversion according to the embodiment of the present application.
  • the main purpose of the serial application of the FlexE interface network splitter is to pass through the existing network in parallel , to perform mirror analysis on the data, and realize real-time monitoring of the flow through the splitter combined with the data analysis server. Because it is a parallel method, the flow is not controlled, and it is suitable for the scene where the data is only analyzed.
  • the splitter completes the data extraction through the FlexE interface, and sends the data to the data analysis server through the Eth interface, and the data analysis server completes the data analysis.
  • the transmission address of the data analysis server may be, but not limited to, an IP address, and the foregoing IP address is used to indicate the second network data transmission destination.
  • the IP address on the network can identify the location of the host.
  • the data analysis server may be, but not limited to, any server capable of providing data analysis operations, and the data analysis server may analyze a large amount of collected data through appropriate statistical analysis methods, and summarize them And understand and digest, in order to maximize the development of data functions, give full play to the role of data, can extract useful information and form conclusions, conduct detailed research and summary of data, and then monitor and control data.
  • the second network data 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 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 Obtaining fourth network data in the first format; forwarding the fourth network data to the flexible Ethernet.
  • FIG. 6 is a schematic diagram of serial transmission of network data conversion according to an embodiment of the present application.
  • the traffic can be monitored and controlled in real time, and the data extraction and recovery can be completed through the integrated FlexE interface of the splitter, so as not to affect the overall network deployment.
  • the route selection switch will The splitter device is serially connected to the network, and the splitter connects with the new generation of FlexE interface networking equipment through FlexE, completes the extraction of FlexE interface data, and sends the data to the data analysis server through the Eth interface, and the data analysis server performs corresponding analysis on the data. After analysis and processing, it is sent back to the splitter device, and the splitter corresponds the data to the FlexE time slot to complete the sending of the data message.
  • the third network data may, but is not limited to, refer to the data after the data analysis operation is performed by the data analysis server.
  • the fourth network data may be obtained by converting the data format of the third network data from the second format to the first format in the following manner: from the first Searching for a target position in the network data, wherein the target position includes a position in the second format that is different from the first format; deleting the second target data from the target position to obtain the fourth network data.
  • the traditional Ethernet data frame format is converted into a flexible Ethernet data frame format, and the target position is first found including the second format and the first Where there is a difference in the format, that is, VLAN 3, delete the VLAN to obtain a flexible Ethernet data frame format.
  • the fourth network data can be obtained by deleting the second target data from the target position in the following manner: adding the data starting from the target position in the third network data
  • the network data of the target data volume is determined as the second target data, wherein the target data volume is a data volume conforming to the VLAN TAG format; the second target data is deleted from the third network data to obtain the Fourth network data.
  • the second target data may be, but not limited to, the VLAN shown in FIG. 3
  • the amount of target data may be, but not limited to, 4 bytes.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the method of each embodiment of the present application.
  • a storage medium such as ROM/RAM, disk, CD
  • Fig. 7 is a structural block diagram of a device for controlling network data according to an embodiment of the present application; as shown in Fig. 7 , it includes:
  • the first converting module 704 is configured to convert the data format of the first network data from the first format to the second format to obtain the second network data, wherein the first format is that the flexible Ethernet allows transmission A data format, the second format is a data format that traditional Ethernet allows transmission;
  • the first forwarding module 706 is configured to forward the second network data to the traditional Ethernet.
  • the data formats transmitted by flexible Ethernet and traditional Ethernet are different, wherein the data format of the first network data transmitted in flexible Ethernet is the first format, and the data format of the second network data transmitted in traditional Ethernet is The data format is the second format, by converting the first network data transmitted in the flexible Ethernet from the above-mentioned first format to the second format that can be transmitted in the above-mentioned traditional Ethernet, and then forwarding the data to the traditional Ethernet, Adopting the above-mentioned technical solution solves the problem of long waiting time and poor user experience in the related art because the user only requests to continue loading other scroll view information after browsing all the scroll view information that has been loaded in the scroll view. To solve the problem, the technical effect of network data transmission between flexible Ethernet and traditional Ethernet is realized.
  • the first conversion module 704 includes:
  • the first search unit 704-2 is configured to search for a target position from the first network data, where the target position includes a position in the first format that is different from the second format;
  • the inserting unit 704-4 is configured to insert the first target data at the target position according to the data information of the first network data to obtain the second network data.
  • the insertion unit 704-4 is set to:
  • Extract flexible Ethernet interface client information from the first network data where the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, so
  • the data information includes the flexible Ethernet interface client information
  • the first forwarding module 706 includes:
  • An acquisition unit configured to acquire the transmission address of the data analysis server included in the traditional Ethernet
  • 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 analysis on the second network data deal with.
  • the device further includes:
  • the receiving module 708 is configured to receive the 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, 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;
  • the second conversion module 710 is configured to convert the data format of the third network data from the second format to the first format to obtain fourth network data;
  • the second forwarding module 712 is configured to forward the fourth network data to the flexible Ethernet.
  • the second conversion module 710 includes:
  • the second search unit 710-2 is configured to search for a target position from the first network data, where the target position includes a position in the second format that is different from the first format;
  • the deleting unit 710-4 is configured to delete the second target data from the target location to obtain the fourth network data.
  • the deleting unit 710-4 is set to:
  • the target data amount is a data amount conforming to the VLAN TAG format
  • An embodiment of the present application further provides a storage medium, the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.
  • the above-mentioned storage medium may be configured to store program codes for performing the following steps:
  • the first format is a data format that the flexible Ethernet allows transmission
  • the second format It is the data format that traditional Ethernet allows to transmit
  • An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • the first format is a data format that the flexible Ethernet allows transmission
  • the second format It is the data format that traditional Ethernet allows to transmit
  • An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
  • the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), Various media that can store program codes such as removable hard disks, magnetic disks, or optical disks.
  • ROM read-only memory
  • RAM random access memory
  • Various media that can store program codes such as removable hard disks, magnetic disks, or optical disks.
  • each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here
  • the steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation.
  • the present application is not limited to any specific combination of hardware and software.

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

Disclosed in the present application are a network data control method and apparatus, and a storage medium and an electronic device. The method comprises: acquiring, from a flexible Ethernet, first network data to be controlled; converting the data format of the first network data from a first format into a second format, so as to obtain second network data, wherein the first format is a data format that the flexible Ethernet allows to transmit, and the second format is a data format that a traditional Ethernet allows to transmit; and forwarding the second network data to the traditional Ethernet. The present application solves the technical problems in the related art of long waiting time and poor experience of a user due to it being possible to request to continue loading other rolling view information only after the user has browsed all loaded rolling view information of a rolling view.

Description

网络数据的控制方法、装置和存储介质及电子设备Network data control method, device, storage medium and electronic equipment

本申请要求于2021年12月29日提交中国专利局、申请号为202111649731.5、发明名称“网络数据的控制方法、装置和存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111649731.5 and the title of the invention "Network data control method, device, storage medium and electronic equipment" filed with the China Patent Office on December 29, 2021, the entire contents of which are incorporated by reference incorporated in this application.

技术领域technical field

本申请涉及以太网领域,特别而言,涉及一种网络数据的控制方法、装置和存储介质及电子设备。The present application relates to the field of Ethernet, in particular, to a network data control method, device, storage medium and electronic equipment.

背景技术Background technique

灵活以太网技术(FlexE)是在传统以太网(Ethernet)技术的基础上,通过Ethernet的MAC(Media Access Control,数据链路)层与PHY(Physical Layer,物理)层解耦而实现的低成本、高可靠、可动态配置的电信级接口技术,灵活以太网技术契合了视频、云计算以及5G等业务的发展需求,具有广泛的应用场景,但是目前大多数网络设备都是基于Ethernet协议的设备,灵活以太网的数据无法传输到传统以太网中,限制了对灵活以太网的数据的处理能力等。Flexible Ethernet technology (FlexE) is based on traditional Ethernet (Ethernet) technology, through Ethernet MAC (Media Access Control, data link) layer and PHY (Physical Layer, physical) layer decoupling to achieve low cost , highly reliable, and dynamically configurable carrier-grade interface technology, flexible Ethernet technology meets the development needs of video, cloud computing, and 5G services, and has a wide range of application scenarios, but most of the current network devices are based on the Ethernet protocol. , the data of the flexible Ethernet cannot be transmitted to the traditional Ethernet, which limits the processing capability of the data of the flexible Ethernet.

针对相关技术中,对网络数据无法在灵活以太网和传统以太网之间传输等问题,尚未提出有效的解决方案。In the related art, no effective solution has been proposed for the problem that network data cannot be transmitted between the flexible Ethernet and the traditional Ethernet.

发明内容Contents of the invention

本申请实施例提供了一种网络数据的控制方法、装置和存储介质及电子设备,以至少解决相关技术中由于只有在用户浏览完滚动视图已加载的全部滚动视图信息后才会请求继续加载其他滚动视图信息造成的用户等待时间长、体验度差的技术问题。The embodiment of the present application provides a network data control method, device, storage medium and electronic equipment to at least solve the problem in the related art that the user will request to continue loading other scroll view information only after the user browses all the scroll view information that has been loaded. The technical problems of long waiting time and poor user experience caused by scrolling view information.

根据本申请实施例的一个方面,提供了一种网络数据的控制方法,包括:从灵活以太网中获取待控制的第一网络数据;According to an aspect of an embodiment of the present application, a method for controlling network data is provided, 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 that the flexible Ethernet allows transmission, and the second format It is the data format that traditional Ethernet allows to transmit;

将所述第二网络数据转发至所述传统以太网。Forwarding the second network data to the traditional Ethernet.

可选的,所述将所述第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,包括:Optionally, converting the data format of the first network data from the first format to the second format to obtain the second network data includes:

从所述第一网络数据中查找目标位置,其中,所述目标位置包括所述第一格式中与所述第二格式存在差异的位置;Finding a target location from the first network data, wherein the target location includes a location in the first format that is different from the second format;

根据所述第一网络数据的数据信息在所述目标位置插入第一目标数据,得到所述第二网络数据。Inserting the first target data at the target position according to the data information of the first network data to obtain the second network data.

可选的,所述根据所述第一网络数据的数据信息在所述目标位置插入第一目标数据,得到所述第二网络数据,包括:Optionally, inserting the first target data at the target position according to the data information of the first network data to obtain the second network data includes:

从所述第一网络数据中提取灵活以太网接口客户端信息,其中,所述灵活以太网接口客户端信息用于指示在所述灵活以太网中传输所述第一网络数据的客户端,所述数据信息包括所述灵活以太网接口客户端信息;Extract flexible Ethernet interface client information from the first network data, where the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, so The data information includes the flexible Ethernet interface client information;

构造符合VLAN TAG格式的初始数据;Construct initial data conforming to VLAN TAG format;

将所述灵活以太网接口客户端信息添加到所述初始数据中的VLAN ID字段,得到所述第一目标数据;Add the flexible Ethernet interface client information to the VLAN ID field in the initial data to obtain the first target data;

将所述第一目标数据插入所述第一网络数据的所述目标位置,得到所述第二网络数据。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 traditional Ethernet includes:

获取所述传统以太网所包括的数据分析服务器的传输地址;Obtain the transmission address of the data analysis server included in the traditional Ethernet;

将所述第二网络数据按照所述传输地址转发至所述数据分析服务器,其中,所述数据分析服务器被设置为对所述第二网络数据进行数据分析和 /或数据处理。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.

可选的,在将所述第二网络数据按照所述传输地址转发至所述数据分析服务器之后,所述方法还包括:Optionally, after forwarding the second network data to the data analysis server according to the transmission address, the method 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;

将所述第四网络数据转发至所述灵活以太网。Forwarding the fourth network data to the flexible Ethernet.

可选的,所述将所述第三网络数据的数据格式从所述第二格式转换为所述第一格式,得到第四网络数据,包括:Optionally, converting the data format of the third network data from the second format to the first format to obtain fourth network data includes:

从所述第一网络数据中查找目标位置,其中,所述目标位置包括所述第二格式中与所述第一格式存在差异的位置;Finding a target location from the first network data, wherein the target location includes a location in the second format that is different from the first format;

从所述目标位置删除第二目标数据,得到所述第四网络数据。Deleting the second target data from the target location to obtain the fourth network data.

可选的,所述从所述目标位置删除第二目标数据,得到所述第四网络数据,包括:Optionally, the deleting the second target data from the target location to obtain the fourth network data includes:

将所述第三网络数据中从所述目标位置起始的目标数据量的网络数据确定为所述第二目标数据,其中,所述目标数据量是符合VLAN TAG格式的数据量;Determining the network data of the 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 the VLAN TAG format;

从所述第三网络数据中删除所述第二目标数据,得到所述第四网络数据。Deleting the second target data from the third network data to obtain the fourth network data.

根据本申请实施例的另一个实施例,还提供了一种网络数据的控制装置,包括:获取模块,被设置为从灵活以太网中获取待控制的第一网络数据;According to another embodiment of the embodiment of the present application, there is also provided a device for controlling network data, including: an obtaining module configured to obtain the first network data to be controlled from the flexible Ethernet;

第一转换模块,被设置为将所述第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,其中,所述第一格式是所述灵活以太网允许传输的数据格式,所述第二格式是传统以太网允许传输的数据格式;The first conversion module is configured to convert 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 allowed to be transmitted by the flexible Ethernet A data format, the second format is a data format that traditional Ethernet allows transmission;

第一转发模块,被设置为将所述第二网络数据转发至所述传统以太网。The first forwarding module is configured to forward the second network data to the traditional Ethernet.

根据本申请实施例的又一方面,还提供了一种计算机可读的存储介质,其特征在于,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行上述一种网络数据的控制方法。According to yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, which is characterized in that the computer-readable storage medium includes a stored program, wherein, when the program runs, the above-mentioned one A control method for network data.

根据本申请实施例的又一方面,还提供了一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行上述一种网络数据的控制方法。According to yet another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the computer program through the computer program. The above-mentioned method for controlling network data.

在本申请实施例中,从灵活以太网中获取待控制的第一网络数据;将第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,其中,第一格式是灵活以太网允许传输的数据格式,第二格式是传统以太网允许传输的数据格式;将第二网络数据转发至传统以太网,即,灵活以太网和传统以太网传输的数据格式不同,其中,在灵活以太网中传输的第一网络数据的数据格式是第一格式,在传统以太网中传输的第二网络数据的数据格式是第二格式,通过将灵活以太网中传输的第一网络数据从上述的第一格式转化为可以在上述传统以太网中传输的第二格式,再将数据转发到传统以太网,采用上述技术方案,解决了相关技术中,相关技术中由于只有在用户浏览完滚动视图已加载的全部滚动视图信息后才会请求继续加载其他滚动视图信息造成的用户等待时间长、体验度差等问题,实现了网络数据在灵活以太网和传统以太网之间的传输的技术效果。In the embodiment of the present application, the first network data to be controlled is obtained from the flexible Ethernet; the data format of the first network data is converted from the first format to the second format to obtain the second network data, wherein the first format is the data format allowed to be transmitted by flexible Ethernet, and the second format is the data format allowed to be transmitted by traditional Ethernet; forward the second network data to traditional Ethernet, that is, the data format transmitted by flexible Ethernet and traditional Ethernet is different, 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 traditional Ethernet is the second format, and the first network transmitted in the flexible Ethernet The data is converted from the above-mentioned first format into the second format that can be transmitted in the above-mentioned traditional Ethernet, and then the data is forwarded to the traditional Ethernet. The above-mentioned technical solution solves the problem in the related technology that only when the user browses After finishing all the scroll view information that has been loaded by the scroll view, it will request to continue loading other scroll view information, resulting in long waiting time and poor user experience, etc. It realizes the transmission of network data between flexible Ethernet and traditional Ethernet technical effect.

附图说明Description of 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 technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.

图1是本申请实施例的一种网络数据的控制方法的计算机终端的硬件结构框图;Fig. 1 is a block diagram of the hardware structure of a computer terminal of a method for controlling network data according to an embodiment of the present application;

图2是根据本申请实施例的一种网络数据的控制方法的流程图;FIG. 2 is a flowchart of a network data control method according to an embodiment of the present application;

图3是根据本申请实施例的网络数据帧转化示意图;FIG. 3 is a schematic diagram of network data frame conversion according to an embodiment of the present application;

图4是根据本申请实施例的网络数据格式互转技术的示意图;FIG. 4 is a schematic diagram of a network data format interconversion technology according to an embodiment of the present application;

图5是根据本申请实施例的网络数据转化并行传输的示意图;FIG. 5 is a schematic diagram of parallel transmission of network data conversion according to an embodiment of the present application;

图6是根据本申请实施例的网络数据转化串行传输的示意图;6 is a schematic diagram of network data conversion and serial transmission according to an embodiment of the present application;

图7是根据本申请实施例的一种网络数据的控制装置的结构框图。Fig. 7 is a structural block diagram of an apparatus for controlling network data according to an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚 地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

本申请实施例所提供的方法实施例可以在计算机终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图1是本申请实施例的一种网络数据的控制方法的计算机终端的硬件结构框图。如图1所示,计算机终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU(Microcontroller Unit,MCU)或可编程逻辑器件FPGA(Field Programmable Gate Array)等的处理装置)和被设置为存储数据的存储器104,在一个示例性实施例中,上述计算机终端还可以包括被设置为通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述计算机终端的结构造成限定。例如,计算机终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided in the embodiments of the present application may be executed in a computer terminal, a computer terminal, or a similar computing device. Taking running on a computer terminal as an example, FIG. 1 is a block diagram of a hardware structure of a computer terminal according to a method for controlling network data 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 (processor 102 can include but not limited to microprocessor MCU (Microcontroller Unit, MCU) or programmable logic device Processing devices such as FPGA (Field Programmable Gate Array)) and a memory 104 configured to store data, in an exemplary embodiment, the above-mentioned computer terminal may also include a transmission device 106 and an input/output device 108 configured as a communication function . Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above computer terminal. For example, the computer terminal may also include more or less components than those shown in FIG. 1 , or have a different configuration with functions equivalent to those shown in FIG. 1 or more functions than those shown in FIG. 1 .

存储器104可被设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的一种网络数据的控制方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be set to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a network data control method in the embodiment of the present application, and the processor 102 runs the stored in the memory 104. A computer program to perform various functional applications and data processing, that is, to realize the above-mentioned methods. The 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 a memory that is remotely located relative to the processor 102, and these remote memories may be connected to a computer terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输装置106被设置为经由一个网络接收或者发送数据。上述的网络可选实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF) 模块,其被设置为通过无线方式与互联网进行通讯。The transmission device 106 is arranged to receive or transmit data via a network. The optional example of the network mentioned above may include a wireless network provided by the communication provider of the computer terminal. In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is configured to communicate with the Internet in a wireless manner.

在本实施例中提供了一种网络数据的控制方法,应用于上述计算机终端,图2是根据本申请实施例的一种网络数据的控制方法的流程图,该流程包括如下步骤:In this embodiment, a method for controlling network data is provided, which is applied to the above-mentioned computer terminal. FIG. 2 is a flowchart of a method for controlling network data according to an embodiment of the present application. The process includes the following steps:

步骤S202,从灵活以太网中获取待控制的第一网络数据;Step S202, acquiring the first network data to be controlled from the flexible Ethernet;

步骤S204,将所述第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,其中,所述第一格式是所述灵活以太网允许传输的数据格式,所述第二格式是传统以太网允许传输的数据格式;Step S204, converting the data format of the first network data from the first format to a second format to obtain the second network data, wherein the first format is a data format that the flexible Ethernet allows transmission, and the The second format is the data format allowed by traditional Ethernet;

步骤S206,将所述第二网络数据转发至所述传统以太网。Step S206, forwarding the second network data to the traditional Ethernet.

通过上述步骤,灵活以太网和传统以太网传输的数据格式不同,其中,在灵活以太网中传输的第一网络数据的数据格式是第一格式,在传统以太网中传输的第二网络数据的数据格式是第二格式,通过将灵活以太网中传输的第一网络数据从上述的第一格式转化为可以在上述传统以太网中传输的第二格式,再将数据转发到传统以太网,采用上述技术方案,解决了相关技术中,相关技术中由于只有在用户浏览完滚动视图已加载的全部滚动视图信息后才会请求继续加载其他滚动视图信息造成的用户等待时间长、体验度差等问题,实现了网络数据在灵活以太网和传统以太网之间的传输的技术效果。Through the above steps, the data formats transmitted by flexible Ethernet and traditional Ethernet are different, wherein the data format of the first network data transmitted in flexible Ethernet is the first format, and the data format of the second network data transmitted in traditional Ethernet is The data format is the second format. By converting the first network data transmitted in the flexible Ethernet from the above-mentioned first format to the second format that can be transmitted in the above-mentioned traditional Ethernet, and then forwarding the data to the traditional Ethernet, adopt The above technical solution solves the problems in related technologies, such as long waiting time and poor user experience caused by the user requesting to continue loading other scroll view information only after the user browses all the scroll view information that has been loaded in the scroll view. , realizing the technical effect of network data transmission between flexible Ethernet and traditional Ethernet.

在上述步骤S202提供的技术方案中,从灵活以太网中获取待控制的第一网络数据。也就是说上述第一网络数据可以但不限于为在上述灵活以太网中待控制的数据,上述控制可以但不限于为指待传输至传统以太网进行控制的流量,后续操作的主体可以但不限于为基于第一网络数据。In the technical solution provided in step S202 above, the first network data to be controlled is obtained from the flexible Ethernet. That is to say, the above-mentioned first network data may be, but not limited to, the data to be controlled in the above-mentioned flexible Ethernet, and the above-mentioned control may be, but not limited to, the traffic to be transmitted to the traditional Ethernet for control, and the subject of subsequent operations may be, but not limited to Limited to data based on the first network.

可选地,在本实施例中,灵活以太网可以但不限于为基于高速Ethernet接口,通过Ethernet MAC层与PHY层解耦而实现的低成本、高可靠、可动态配置的电信级接口技术。Optionally, in this embodiment, flexible Ethernet can be, but is not limited to, a low-cost, highly reliable, and dynamically configurable carrier-class interface technology based on a high-speed Ethernet interface and decoupling the Ethernet MAC layer from the PHY layer.

可选地,在本实施例中,第一网络数据可以但不限于为基于灵活以太网的网络协议,允许在灵活以太网中传输和运行的数据。Optionally, in this embodiment, the first network data may be, but is not limited to, a flexible Ethernet-based network protocol, which allows data to be transmitted and run in the flexible Ethernet.

在上述步骤S204提供的技术方案中,将所述第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,其中,所述第一格式是所述灵活以太网允许传输的数据格式,所述第二格式是传统以太网允许传输的数据格式。也就是说灵活以太网和传统以太网传输的数据格式不同,其中,在灵活以太网中传输的第一网络数据的数据格式可以但不限于是第一格式,在传统以太网中传输的第二网络数据的数据格式可以但不限于是第二格式,可以但不限于通过将灵活以太网中传输的第一网络数据从上述的第一格式转化为可以在上述传统以太网中传输的第二格式。从而实现将灵活以太网中运行的数据进行格式转化,实现在传统以太网中运行。In the technical solution provided in step S204 above, the data format of the first network data is converted from the first format to the second format to obtain the second network data, wherein the first format is the flexible Ethernet allowed A data format for transmission, where the second format is a data format allowed for transmission by traditional Ethernet. That is to say, the data formats transmitted by flexible Ethernet and traditional Ethernet are different, wherein, the data format of the first network data transmitted in flexible Ethernet can be but not limited to the first format, and the second format transmitted in traditional Ethernet The data format of the network data can be but not limited to the second format, and can be but not limited to converting the first network data transmitted in the flexible Ethernet from the above-mentioned first format to the second format that can be transmitted in the above-mentioned traditional Ethernet . In this way, the format conversion of the data running on the flexible Ethernet is realized, and the running on the traditional Ethernet is realized.

可选地,在本实施例中,第一格式可以但不限于是基于灵活以太网协议的灵活以太网数据帧格式,图3是根据本申请实施例的网络数据帧转化示意图,如图3所示,第一格式可以但不限于为图3的灵活以太网数据帧格式,其中,上述灵活以太网数据帧格式可以但不限于包括:前导码、S、MAC、Payload(有效载荷)、FCS(Frame Check Sequence,帧校验序列)。Optionally, in this embodiment, the first format may be, but not limited to, a flexible Ethernet data frame format based on a flexible Ethernet protocol. FIG. 3 is a schematic diagram of network data frame conversion according to an embodiment of the present application, as shown in FIG. 3 As shown, the first format may be, but not limited to, the flexible Ethernet data frame format of FIG. Frame Check Sequence, frame check sequence).

可选地,在本实施例中,第二格式可以但不限于是基于灵活以太网协议的灵活以太网数据帧格式,图3是根据本申请实施例的网络数据帧转化示意图,如图3所示,第二格式可以但不限于为图3的传统以太网数据帧格式,其中,上述传统以太网数据帧格式可以但不限于包括:前导码、S、MAC、VLAN、Payload、FCS,其中,上述VLAN可以但不限于采用VLAN TAG(Virtual Local Area Network TAG,虚拟局域网标签)格式,VLAN TAG格式可以但不限于包括:TPID(Tag Protocol Identifier,标签协议标识符)、Priority(优先级)、CFI(Canonical Format Indicator,标准格式指示位)、VLAN ID(数据帧所属VLAN的编号)。Optionally, in this embodiment, the second format may be, but not limited to, a flexible Ethernet data frame format based on a flexible Ethernet protocol. FIG. 3 is a schematic diagram of network data frame conversion according to an embodiment of the present application, as shown in FIG. 3 As shown, the second format may be, but not limited to, the traditional Ethernet data frame format of FIG. 3, wherein, the above-mentioned traditional Ethernet data frame format may include, but is not limited to: preamble, S, MAC, VLAN, Payload, FCS, wherein, Above-mentioned VLAN can but not be limited to adopt VLAN TAG (Virtual Local Area Network TAG, virtual local area network tag) format, VLAN TAG format can but not be limited to include: TPID (Tag Protocol Identifier, label protocol identifier), Priority (priority), CFI (Canonical Format Indicator, standard format indicator), VLAN ID (the number of the VLAN to which the data frame belongs).

在一个示例性实施例中,可以但不限于通过以下方式根据所述第一网络数据的数据信息在所述目标位置插入第一目标数据,得到所述第二网络 数据:从所述第一网络数据中提取灵活以太网接口客户端信息,其中,所述灵活以太网接口客户端信息用于指示在所述灵活以太网中传输所述第一网络数据的客户端,所述数据信息包括所述灵活以太网接口客户端信息;构造符合VLAN TAG格式的初始数据;将所述灵活以太网接口客户端信息添加到所述初始数据中的VLAN ID字段,得到所述第一目标数据;将所述第一目标数据插入所述第一网络数据的所述目标位置,得到所述第二网络数据。In an exemplary embodiment, the second network data may be obtained by inserting the first target data at the target position according to the data information of the first network data in the following manner: from the first network Extract flexible Ethernet interface client information from the data, where the flexible Ethernet interface client information is used to indicate the client that transmits the first network data in the flexible Ethernet, and the data information includes the Flexible Ethernet interface client information; structure conforms to the initial data of VLAN TAG format; Described flexible Ethernet interface client information is added to the VLAN ID field in the described initial data, obtains described first target data; Described The first target data is inserted into the target position of the first network data to obtain the second network data.

可选地,在本实施例中,图4是根据本申请实施例的网络数据格式互转技术的示意图,如图4所示,第一网络数据可以但不限于为图中的FlexE数据,通过分流设备将上述FlexE数据转化为第二网络数据,其中,第二网络数据可以但不限于为传统以太网上允许传输的Eth数据,使用分流器完成FlexE接口至Eth接口的数据互转,以完成新一代FlexE接口网络设备到Eth接口数据分析服务器的桥接功能,通过对FlexE接口数据添加VLAN标识的方式完成数据桥接。Optionally, in this embodiment, FIG. 4 is a schematic diagram of a network data format interconversion technology according to an embodiment of the present application. As shown in FIG. 4, the first network data may be, but not limited to, the FlexE data in the figure, through The distribution device converts the above-mentioned FlexE data into the second network data, wherein the second network data can be but not limited to the Eth data that is allowed to be transmitted on the traditional Ethernet, and the data transfer from the FlexE interface to the Eth interface is completed by using the splitter to complete the new The bridging function of the first-generation FlexE interface network device to the Eth interface data analysis server completes data bridging by adding a VLAN tag to the FlexE interface data.

可选地,在本实施例中,从所述第一网络数据中提取灵活以太网接口客户端信息可以但不限于不通过分流器的FlexE接口,从FlexE Client(灵活以太网客户端)中提取数据,并针对不同FlexE Client的数据添加不同的VLAN标签,将FlexE接口Client信息插入VLAN标签的VLAN ID中,同时将VLAN标签携带在数据报文中通过Eth接口发送至数据分析服务器,此处可以使用标准VLAN TAG格式。Optionally, in this embodiment, extracting the flexible Ethernet interface client information from the first network data may be, but not limited to, extracting from the FlexE Client (flexible Ethernet client) without passing through the FlexE interface of the splitter Data, and add different VLAN tags for the data of different FlexE Clients, insert the FlexE interface Client information into the VLAN ID of the VLAN tag, and at the same time carry the VLAN tag in the data packet and send it to the data analysis server through the Eth interface, here you can Use the standard VLAN TAG format.

可选地,在本实施例中,VLAN ID字段可以但不限于携带FlexE Client ID信息,待传统以太网的数据分析服务器完成数据分析后,数据通过Eth接口回发至分流器设备,分流器设备根据VLAN标签中的原始Client ID信息,将数据通过FlexE接口对应的FlexE Client进行发送,由此完成FlexE接口与Eth接口正反向的数据互转。Optionally, in this embodiment, the VLAN ID field may, but is not limited to, carry the FlexE Client ID information. After the data analysis server of the traditional Ethernet completes the data analysis, the data is sent back to the splitter device through the Eth interface, and the splitter device According to the original Client ID information in the VLAN tag, the data is sent through the FlexE Client corresponding to the FlexE interface, thus completing the forward and reverse data exchange between the FlexE interface and the Eth interface.

在上述步骤S204提供的技术方案中,将所述第二网络数据转发至所述传统以太网,也就是说在将第一数据转化成第二数据之后,第二数据即 可以在传统以太网中运行和传输,从而实现使用传统以太网的数据服务器间接对灵活以太网的第一数据进行数据分析。In the technical solution provided by the above step S204, the second network data is forwarded to the traditional Ethernet, that is to say, after the first data is converted into the second data, the second data can be stored in the traditional Ethernet run and transmit, so as to realize the indirect data analysis of the first data of the flexible Ethernet by using the data server of the traditional Ethernet.

可选地,在本实施例中,将所述第二网络数据转发至所述传统以太网可以但不限于将第一数据转化第二数据,然后将第二数据通过Eth接口发送至数据分析服务器。Optionally, in this embodiment, forwarding the second network data to the traditional Ethernet may be but 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 an exemplary embodiment, the second network data may be forwarded to the traditional Ethernet in the following manner, but not limited to, including: obtaining the transmission address of the data analysis server included in the traditional Ethernet; The second network data is forwarded 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.

可选地,在本实施例中,图5是根据本申请实施例的网络数据转化并行传输的示意图,如图5所示,FlexE接口网络分流器串行应用主要目的为通过并行进现有网络,对数据进行镜像分析,通过分流器结合数据分析服务器,对流量实现实时监测,由于是并行方式,不对流量进行管控,适用于仅对数据进行分析的场景,其中,通过分光器将FlexE接口数据镜像至分流器设备,分流器通过FlexE接口完成数据的提取,通过Eth接口将数据发送至数据分析服务器,数据分析服务器完成数据分析。Optionally, in this embodiment, FIG. 5 is a schematic diagram of parallel transmission of network data conversion according to the embodiment of the present application. As shown in FIG. 5, the main purpose of the serial application of the FlexE interface network splitter is to pass through the existing network in parallel , to perform mirror analysis on the data, and realize real-time monitoring of the flow through the splitter combined with the data analysis server. Because it is a parallel method, the flow is not controlled, and it is suitable for the scene where the data is only analyzed. Mirrored to the splitter device, the splitter completes the data extraction through the FlexE interface, and sends the data to the data analysis server through the Eth interface, and the data analysis server completes the data analysis.

可选地,在本实施例中,数据分析服务器的传输地址可以但不限于为IP地址,上述IP地址用于指示第二网络数据传输到目的地。为了能够使数据正确地发送到目标主机上,网络上的IP地址可以识别主机的位置。Optionally, in this embodiment, the transmission address of the data analysis server may be, but not limited to, an IP address, and the foregoing IP address is used to indicate the second network data transmission destination. In order to enable data to be sent to the target host correctly, the IP address on the network can identify the location of the host.

可选地,在本实施例中,数据分析服务器可以但不限于为任何能够提供数据分析操作的服务器,数据分析服务器可以通过适当的统计分析方法对收集来的大量数据进行分析,将它们加以汇总和理解并消化,以求最大化地开发数据的功能,发挥数据的作用,可以实现提取有用信息和形成结论而对数据加以详细研究和概括总结,进而对数据进行监测以及管控。Optionally, in this embodiment, the data analysis server may be, but not limited to, any server capable of providing data analysis operations, and the data analysis server may analyze a large amount of collected data through appropriate statistical analysis methods, and summarize them And understand and digest, in order to maximize the development of data functions, give full play to the role of data, can extract useful information and form conclusions, conduct detailed research and summary of data, and then monitor and control data.

在一个示例性实施例中,在将所述第二网络数据按照所述传输地址转 发至所述数据分析服务器之后,还包括:接收所述数据分析服务器返回的第三网络数据,其中,所述第三网络数据是在所述数据分析服务器对所述第二网络数据进行数据分析和/或数据处理之后得到的网络数据;将所述第三网络数据的数据格式从所述第二格式转换为所述第一格式,得到第四网络数据;将所述第四网络数据转发至所述灵活以太网。In an exemplary 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 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 Obtaining fourth network data in the first format; forwarding the fourth network data to the flexible Ethernet.

可选地,在本实施例中,图6是根据本申请实施例的网络数据转化串行传输的示意图,如图6所示,FlexE接口网络分流器串行应用主要目的为通过串行进现有网络的方式,通过分流器结合数据分析服务器,对流量实现实时监测以及管控,并通过分流器集成FlexE接口完成数据的提取、恢复,做到不影响整体网络部署,其中,通过选路开关将分流器设备串行接入网络,分流器通过FlexE与新一代FlexE接口组网设备对接,完成FlexE接口数据的提取,通过Eth接口将数据发送至数据分析服务器,待数据分析服务器对数据进行对应的分析处理后,回发至分流器设备,分流器将数据对应到FlexE时隙完成数据报文发送。Optionally, in this embodiment, FIG. 6 is a schematic diagram of serial transmission of network data conversion according to an embodiment of the present application. As shown in FIG. In the network mode, through the splitter combined with the data analysis server, the traffic can be monitored and controlled in real time, and the data extraction and recovery can be completed through the integrated FlexE interface of the splitter, so as not to affect the overall network deployment. Among them, the route selection switch will The splitter device is serially connected to the network, and the splitter connects with the new generation of FlexE interface networking equipment through FlexE, completes the extraction of FlexE interface data, and sends the data to the data analysis server through the Eth interface, and the data analysis server performs corresponding analysis on the data. After analysis and processing, it is sent back to the splitter device, and the splitter corresponds the data to the FlexE time slot to complete the sending of the data message.

可选地,在本实施例中,第三网络数据可以但不限于指经过数据分析服务器进行数据分析操作之后的数据。Optionally, in this embodiment, the third network data may, but is not limited to, refer to the data after the data analysis operation is performed by the data analysis server.

在一个示例性实施例中,可以但不限于通过以下方式将所述第三网络数据的数据格式从所述第二格式转换为所述第一格式,得到第四网络数据:从所述第一网络数据中查找目标位置,其中,所述目标位置包括所述第二格式中与所述第一格式存在差异的位置;从所述目标位置删除第二目标数据,得到所述第四网络数据。In an exemplary embodiment, the fourth network data may be obtained by converting the data format of the third network data from the second format to the first format in the following manner: from the first Searching for a target position in the network data, wherein the target position includes a position in the second format that is different from the first format; deleting the second target data from the target position to obtain the fourth network data.

可选地,在本实施例中,如图3所示,将传统以太网数据帧格式转化为灵活以太网数据帧格式,首先找到所述目标位置包括所述第二格式中与所述第一格式存在差异的位置,即3的VLAN,删除VLAN获得灵活以太网数据帧格式。Optionally, in this embodiment, as shown in FIG. 3 , the traditional Ethernet data frame format is converted into a flexible Ethernet data frame format, and the target position is first found including the second format and the first Where there is a difference in the format, that is, VLAN 3, delete the VLAN to obtain a flexible Ethernet data frame format.

在一个示例性实施例中,可以但不限于通过以下方式从所述目标位置 删除第二目标数据,得到所述第四网络数据:将所述第三网络数据中从所述目标位置起始的目标数据量的网络数据确定为所述第二目标数据,其中,所述目标数据量是符合VLAN TAG格式的数据量;从所述第三网络数据中删除所述第二目标数据,得到所述第四网络数据。In an exemplary embodiment, the fourth network data can be obtained by deleting the second target data from the target position in the following manner: adding the data starting from the target position in the third network data The network data of the target data volume is determined as the second target data, wherein the target data volume is a data volume conforming to the VLAN TAG format; the second target data is deleted from the third network data to obtain the Fourth network data.

可选地,在本实施例中,第二目标数据可以但不限于为图3中的VLAN,目标数据量可以但不限于为4字节。Optionally, in this embodiment, the second target data may be, but not limited to, the VLAN shown in FIG. 3 , and the amount of target data may be, but not limited to, 4 bytes.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the method of each embodiment of the present application.

图7是根据本申请实施例的一种网络数据的控制装置的结构框图;如图7所示,包括:Fig. 7 is a structural block diagram of a device for controlling network data according to an embodiment of the present application; as shown in Fig. 7 , it includes:

获取模块702,被设置为从灵活以太网中获取待控制的第一网络数据;An acquisition module 702, configured to acquire the first network data to be controlled from the flexible Ethernet;

第一转换模块704,被设置为将所述第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,其中,所述第一格式是所述灵活以太网允许传输的数据格式,所述第二格式是传统以太网允许传输的数据格式;The first converting module 704 is configured to convert the data format of the first network data from the first format to the second format to obtain the second network data, wherein the first format is that the flexible Ethernet allows transmission A data format, the second format is a data format that traditional Ethernet allows transmission;

第一转发模块706,被设置为将所述第二网络数据转发至所述传统以太网。The first forwarding module 706 is configured to forward the second network data to the traditional Ethernet.

通过上述实施例,灵活以太网和传统以太网传输的数据格式不同,其中,在灵活以太网中传输的第一网络数据的数据格式是第一格式,在传统以太网中传输的第二网络数据的数据格式是第二格式,通过将灵活以太网 中传输的第一网络数据从上述的第一格式转化为可以在上述传统以太网中传输的第二格式,再将数据转发到传统以太网,采用上述技术方案,解决了相关技术中,相关技术中由于只有在用户浏览完滚动视图已加载的全部滚动视图信息后才会请求继续加载其他滚动视图信息造成的用户等待时间长、体验度差等问题,实现了网络数据在灵活以太网和传统以太网之间的传输的技术效果。Through the above-mentioned embodiment, the data formats transmitted by flexible Ethernet and traditional Ethernet are different, wherein the data format of the first network data transmitted in flexible Ethernet is the first format, and the data format of the second network data transmitted in traditional Ethernet is The data format is the second format, by converting the first network data transmitted in the flexible Ethernet from the above-mentioned first format to the second format that can be transmitted in the above-mentioned traditional Ethernet, and then forwarding the data to the traditional Ethernet, Adopting the above-mentioned technical solution solves the problem of long waiting time and poor user experience in the related art because the user only requests to continue loading other scroll view information after browsing all the scroll view information that has been loaded in the scroll view. To solve the problem, the technical effect of network data transmission between flexible Ethernet and traditional Ethernet is realized.

在一个示例性实施例中,第一转换模块704,包括:In an exemplary embodiment, the first conversion module 704 includes:

第一查找单元704-2,被设置为从所述第一网络数据中查找目标位置,其中,所述目标位置包括所述第一格式中与所述第二格式存在差异的位置;The first search unit 704-2 is configured to search for a target position from the first network data, where the target position includes a position in the first format that is different from the second format;

插入单元704-4,被设置为根据所述第一网络数据的数据信息在所述目标位置插入第一目标数据,得到所述第二网络数据。The inserting unit 704-4 is configured to insert the first target data at the target position according to the data information of the first network data to obtain the second network data.

在一个示例性实施例中,插入单元704-4,被设置为:In an exemplary embodiment, the insertion unit 704-4 is set to:

从所述第一网络数据中提取灵活以太网接口客户端信息,其中,所述灵活以太网接口客户端信息用于指示在所述灵活以太网中传输所述第一网络数据的客户端,所述数据信息包括所述灵活以太网接口客户端信息;Extract flexible Ethernet interface client information from the first network data, where the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, so The data information includes the flexible Ethernet interface client information;

构造符合VLAN TAG格式的初始数据;Construct initial data conforming to VLAN TAG format;

将所述灵活以太网接口客户端信息添加到所述初始数据中的VLAN ID字段,得到所述第一目标数据;Add the flexible Ethernet interface client information to the VLAN ID field in the initial data to obtain the first target data;

将所述第一目标数据插入所述第一网络数据的所述目标位置,得到所述第二网络数据。Inserting the first target data into the target position of the first network data to obtain the second network data.

在一个示例性实施例中,第一转发模块706,包括:In an exemplary embodiment, the first forwarding module 706 includes:

获取单元,被设置为获取所述传统以太网所包括的数据分析服务器的传输地址;An acquisition unit configured to acquire the transmission address of the data analysis server included in the traditional Ethernet;

转发单元,被设置为将所述第二网络数据按照所述传输地址转发至所 述数据分析服务器,其中,所述数据分析服务器被设置为对所述第二网络数据进行数据分析和/或数据处理。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 analysis on the second network data deal with.

在一个示例性实施例中,所述装置,还包括:In an exemplary embodiment, the device further includes:

接收模块708,被设置为在将所述第二网络数据按照所述传输地址转发至所述数据分析服务器之后接收所述数据分析服务器返回的第三网络数据,其中,所述第三网络数据是在所述数据分析服务器对所述第二网络数据进行数据分析和/或数据处理之后得到的网络数据;The receiving module 708 is configured to receive the 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, 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;

第二转换模块710,被设置为将所述第三网络数据的数据格式从所述第二格式转换为所述第一格式,得到第四网络数据;The second conversion module 710 is configured to convert the data format of the third network data from the second format to the first format to obtain fourth network data;

第二转发模块712,被设置为将所述第四网络数据转发至所述灵活以太网。The second forwarding module 712 is configured to forward the fourth network data to the flexible Ethernet.

在一个示例性实施例中,第二转换模块710,包括:In an exemplary embodiment, the second conversion module 710 includes:

第二查找单元710-2,被设置为从所述第一网络数据中查找目标位置,其中,所述目标位置包括所述第二格式中与所述第一格式存在差异的位置;The second search unit 710-2 is configured to search for a target position from the first network data, where the target position includes a position in the second format that is different from the first format;

删除单元710-4,被设置为从所述目标位置删除第二目标数据,得到所述第四网络数据。The deleting unit 710-4 is configured to delete the second target data from the target location to obtain the fourth network data.

在一个示例性实施例中,删除单元710-4,被设置为:In an exemplary embodiment, the deleting unit 710-4 is set to:

将所述第三网络数据中从所述目标位置起始的目标数据量的网络数据确定为所述第二目标数据,其中,所述目标数据量是符合VLAN TAG格式的数据量;Determining the network data of the 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 the VLAN TAG format;

从所述第三网络数据中删除所述第二目标数据,得到所述第四网络数据。Deleting the second target data from the third network data to obtain the fourth network data.

本申请的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项的方法。An embodiment of the present application further provides a storage medium, the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:

从灵活以太网中获取待控制的第一网络数据;Obtaining the first network data to be controlled from the 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 that the flexible Ethernet allows transmission, and the second format It is the data format that traditional Ethernet allows to transmit;

将所述第二网络数据转发至所述传统以太网。Forwarding the second network data to the traditional Ethernet.

本申请的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

从灵活以太网中获取待控制的第一网络数据;Obtaining the first network data to be controlled from the 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 that the flexible Ethernet allows transmission, and the second format It is the data format that traditional Ethernet allows to transmit;

将所述第二网络数据转发至所述传统以太网。Forwarding the second network data to the traditional Ethernet.

本申请的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random  Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), Various media that can store program codes such as removable hard disks, magnetic disks, or optical disks.

可选地,本实施例中的可选示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for optional examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and optional implementation manners, and details are not repeated in this embodiment.

显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present application is not limited to any specific combination of hardware and software.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of this application shall be included within the scope of protection of this application.

Claims (10)

一种网络数据的控制方法,包括:A method for controlling network data, comprising: 从灵活以太网中获取待控制的第一网络数据;Obtaining the first network data to be controlled from the 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 that the flexible Ethernet allows transmission, and the second format It is the data format that traditional Ethernet allows to transmit; 将所述第二网络数据转发至所述传统以太网。Forwarding the second network data to the traditional Ethernet. 根据权利要求1所述的方法,其中,所述将所述第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,包括:The method according to claim 1, wherein said 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 location from the first network data, wherein the target location includes a location in the first format that is different from the second format; 根据所述第一网络数据的数据信息在所述目标位置插入第一目标数据,得到所述第二网络数据。Inserting the first target data at the target position according to the data information of the first network data to obtain the second network data. 根据权利要求2所述的方法,其中,所述根据所述第一网络数据的数据信息在所述目标位置插入第一目标数据,得到所述第二网络数据,包括:The method according to claim 2, wherein said inserting the first target data at the target position according to the data information of the first network data to obtain the second network data comprises: 从所述第一网络数据中提取灵活以太网接口客户端信息,其中,所述灵活以太网接口客户端信息用于指示在所述灵活以太网中传输所述第一网络数据的客户端,所述数据信息包括所述灵活以太网接口客户端信息;Extract flexible Ethernet interface client information from the first network data, where the flexible Ethernet interface client information is used to indicate a client that transmits the first network data in the flexible Ethernet, so The data information includes the flexible Ethernet interface client information; 构造符合VLAN TAG格式的初始数据;Construct the initial data conforming to the VLAN TAG format; 将所述灵活以太网接口客户端信息添加到所述初始数据中的VLAN ID字段,得到所述第一目标数据;Add the flexible Ethernet interface client information to the VLAN ID field in the initial data to obtain the first target data; 将所述第一目标数据插入所述第一网络数据的所述目标位置,得到 所述第二网络数据。Inserting the first target data into the target position of the first network data to obtain the second network data. 根据权利要求1所述的方法,其中,所述将所述第二网络数据转发至所述传统以太网,包括:The method according to claim 1, wherein said forwarding said second network data to said traditional Ethernet comprises: 获取所述传统以太网所包括的数据分析服务器的传输地址;Obtain the transmission address of the data analysis server included in the traditional Ethernet; 将所述第二网络数据按照所述传输地址转发至所述数据分析服务器,其中,所述数据分析服务器被设置为对所述第二网络数据进行数据分析和/或数据处理。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. 根据权利要求4所述的方法,其中,在将所述第二网络数据按照所述传输地址转发至所述数据分析服务器之后,所述方法还包括:The method according to claim 4, wherein, after forwarding the second network data to the data analysis server according to the transmission address, the method further comprises: 接收所述数据分析服务器返回的第三网络数据,其中,所述第三网络数据是在所述数据分析服务器对所述第二网络数据进行数据分析和/或数据处理之后得到的网络数据;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; 将所述第四网络数据转发至所述灵活以太网。Forwarding the fourth network data to the flexible Ethernet. 根据权利要求5所述的方法,其中,所述将所述第三网络数据的数据格式从所述第二格式转换为所述第一格式,得到第四网络数据,包括:The method according to claim 5, wherein said converting 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 location from the first network data, wherein the target location includes a location in the second format that is different from the first format; 从所述目标位置删除第二目标数据,得到所述第四网络数据。Deleting the second target data from the target location to obtain the fourth network data. 根据权利要求6所述的方法,其中,所述从所述目标位置删除第二目标数据,得到所述第四网络数据,包括:The method according to claim 6, wherein said deleting the second target data from the target location to obtain the fourth network data comprises: 将所述第三网络数据中从所述目标位置起始的目标数据量的网络数据确定为所述第二目标数据,其中,所述目标数据量是符合VLAN TAG格式的数据量;Determining the network data of the 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 the VLAN TAG format; 从所述第三网络数据中删除所述第二目标数据,得到所述第四网络数据。Deleting the second target data from the third network data to obtain the fourth network data. 一种网络数据的控制装置,包括:A control device for network data, comprising: 获取模块,被设置为从灵活以太网中获取待控制的第一网络数据;The obtaining module is configured to obtain the first network data to be controlled from the flexible Ethernet; 第一转换模块,被设置为将所述第一网络数据的数据格式从第一格式转换为第二格式,得到第二网络数据,其中,所述第一格式是所述灵活以太网允许传输的数据格式,所述第二格式是传统以太网允许传输的数据格式;The first conversion module is configured to convert 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 allowed to be transmitted by the flexible Ethernet A data format, the second format is a data format that traditional Ethernet allows transmission; 第一转发模块,被设置为将所述第二网络数据转发至所述传统以太网。The first forwarding module is configured to forward the second network data to the traditional Ethernet. 一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至7任一项中所述的方法。A computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when running. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至7任一项中所述的方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.
PCT/CN2022/139372 2021-12-29 2022-12-15 Network data control method and apparatus, and storage medium and electronic device Ceased WO2023125056A1 (en)

Applications Claiming Priority (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
CN202111649731.5 2021-12-29

Publications (1)

Publication Number Publication Date
WO2023125056A1 true WO2023125056A1 (en) 2023-07-06

Family

ID=86997667

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/139372 Ceased WO2023125056A1 (en) 2021-12-29 2022-12-15 Network data control method and apparatus, and storage medium and electronic device

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116915767A (en) * 2023-09-13 2023-10-20 重庆华悦生态环境工程研究院有限公司深圳分公司 Document transmission method and device
CN119520193A (en) * 2024-11-22 2025-02-25 新华三技术有限公司 Network device and data processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965157A (en) * 2017-05-19 2018-12-07 华为技术有限公司 Data transmission method, device, equipment and system
CN110248260A (en) * 2018-03-07 2019-09-17 华为技术有限公司 The methods, devices and systems of ether data processing in optical-fiber network
CN110875862A (en) * 2018-08-31 2020-03-10 中兴通讯股份有限公司 Message transmission method and device and computer storage medium
US20200296486A1 (en) * 2017-11-30 2020-09-17 Huawei Technologies Co., Ltd. Method and apparatus for transmission using interface, and device
CN113645258A (en) * 2021-10-18 2021-11-12 阿里云计算有限公司 Data transmission method and device, storage medium, processor and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106788855B (en) * 2015-11-23 2018-12-07 华为技术有限公司 A kind of the optical transfer network bearing method and device of flexible Ethernet service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965157A (en) * 2017-05-19 2018-12-07 华为技术有限公司 Data transmission method, device, equipment and system
US20200296486A1 (en) * 2017-11-30 2020-09-17 Huawei Technologies Co., Ltd. Method and apparatus for transmission using interface, and device
CN110248260A (en) * 2018-03-07 2019-09-17 华为技术有限公司 The methods, devices and systems of ether data processing in optical-fiber network
CN110875862A (en) * 2018-08-31 2020-03-10 中兴通讯股份有限公司 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116915767A (en) * 2023-09-13 2023-10-20 重庆华悦生态环境工程研究院有限公司深圳分公司 Document transmission method and device
CN116915767B (en) * 2023-09-13 2024-03-29 重庆华悦生态环境工程研究院有限公司深圳分公司 Document transmission method and device
CN119520193A (en) * 2024-11-22 2025-02-25 新华三技术有限公司 Network device and data processing method
CN119520193B (en) * 2024-11-22 2025-10-28 新华三技术有限公司 Network device and data processing method

Also Published As

Publication number Publication date
CN116418865A (en) 2023-07-11

Similar Documents

Publication Publication Date Title
USRE49126E1 (en) Real-time adaptive processing of network data packets for analysis
EP3208974A1 (en) Power line carrier communication terminal control device, system and method
US11689501B2 (en) Data transfer method and virtual switch
US10791051B2 (en) System and method to bypass the forwarding information base (FIB) for interest packet forwarding in an information-centric networking (ICN) environment
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
WO2015085748A1 (en) Switching device and packet loss method therefor
WO2023125056A1 (en) Network data control method and apparatus, and storage medium and electronic device
CN108200018B (en) Flow forwarding method and equipment, computer equipment and readable medium in cloud computing
CN109981329A (en) Determine the method, equipment and system of network equipment connection relationship
CN102710965A (en) Video monitoring data acquisition method and system and special bearing network
WO2024098816A1 (en) Data transmission processing method and device, storage medium, and electronic device
CN106789655A (en) The sending method and device of a kind of advertising of route message
CN118764398A (en) Message processing method, device and electronic device
CN113422760B (en) Data transmission method, device, electronic device and storage medium
CN114301960B (en) Processing method and device for cluster asymmetric traffic, electronic equipment and storage medium
WO2017005118A1 (en) Method, device, terminal and server for maintaining communication connection
CN116708609A (en) Method and device for extracting message character data, storage medium and electronic device
WO2023173876A1 (en) Data communication method and apparatus, device and medium
CN105052207A (en) Method, device and system for querying for information
CN103414768B (en) Data processing method, system and gateway
CN116095003A (en) Address mapping method and device for Ethernet data frame and FC data frame
CN118869466B (en) A configuration distribution method, device, equipment and storage medium
CN116781796A (en) Information statistics system and method
CN116760795B (en) Network address translation NAT gateway equipment, message processing method and device
CN116567053B (en) A method and related apparatus for managing session connections

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22914310

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22914310

Country of ref document: EP

Kind code of ref document: A1