WO2023104054A1 - Network processing module, data processing method, network node and storage medium - Google Patents

Network processing module, data processing method, network node and storage medium Download PDF

Info

Publication number
WO2023104054A1
WO2023104054A1 PCT/CN2022/137020 CN2022137020W WO2023104054A1 WO 2023104054 A1 WO2023104054 A1 WO 2023104054A1 CN 2022137020 W CN2022137020 W CN 2022137020W WO 2023104054 A1 WO2023104054 A1 WO 2023104054A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration information
data
network
data processing
unit
Prior art date
Application number
PCT/CN2022/137020
Other languages
French (fr)
Chinese (zh)
Inventor
胡韬
柯楚
赵刚
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023104054A1 publication Critical patent/WO2023104054A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
    • 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
    • H04L49/00Packet switching elements
    • H04L49/60Software-defined switches
    • 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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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
    • H04L2212/00Encapsulation of packets

Definitions

  • the embodiments of the present application relate to the technical field of communications, and in particular to a network processing module, a data processing method, a network node, and a storage medium.
  • Network virtualization In communication products, especially in the field of Software Defined Network (Software Defined Network, referred to as "SDN”), the realization of network virtualization is an important part of the core technology.
  • the meaning of network virtualization is that a physical network can be virtualized into multiple virtual networks or network slices. Multiple virtual networks (Virtual Network, referred to as "VN”) or network slices share resources in the physical network but are logically connected to each other. are independent and isolated.
  • Network virtualization includes virtualization of network links and virtualization of forwarding rules.
  • Network link virtualization means that the links in the network are no longer fixed physical links, but virtual links that can be defined and modified by software.
  • the virtualization of forwarding rules means that the forwarding rules of each node in the network are no longer fixed forwarding, but programmable forwarding that can be defined and modified by software.
  • VLAN Virtual Local Area Network
  • the purpose of the embodiments of the present application is to provide a network processing module, a data processing method, a network node and a storage medium, so that the network node has the ability to process message data from different virtual networks.
  • the embodiment of the present application provides a network processing module, including: a message analysis unit, configured to receive the message data encapsulated based on the first transmission protocol, and analyze the message according to the first transmission protocol
  • the configuration information analyzes the message data to obtain the data to be processed; wherein, the data to be processed carries the network identifier representing the virtual network from which the message data comes; the data processing unit and the configuration information storage unit, the data processing unit is used for configuring from The information storage unit obtains the data processing configuration information corresponding to the network identifier, and processes the data to be processed according to the data processing configuration information to obtain the processed data; the message encapsulation unit is used to encapsulate the configuration information according to the message corresponding to the second transmission protocol , encapsulate the processed data into new message data.
  • the embodiment of the present application further provides a network node including the above network processing module.
  • the embodiment of the present application also provides a data processing method, including: receiving packet data encapsulated based on the first transmission protocol, and processing the packet data according to the packet analysis configuration information corresponding to the first transmission protocol Perform analysis to obtain the data to be processed; wherein, the data to be processed carries the network identifier representing the virtual network from which the message data comes; obtain the data processing configuration information corresponding to the network identifier, and process the data to be processed according to the data processing configuration information, The processed data is obtained; according to the packet encapsulation configuration information corresponding to the second transmission protocol, the processed data is encapsulated into new packet data.
  • the embodiment of the present application also provides a network node, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores instructions that can be executed by the at least one processor , the instructions are executed by at least one processor, so that the at least one processor can execute the above data processing method.
  • the embodiments of the present application further provide a computer-readable storage medium storing a computer program, wherein the above data processing method is implemented when the computer program is executed by a processor.
  • FIG. 1 is a schematic structural diagram of a network processing module according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of the data structure of message data before and after analysis according to an embodiment of the present application
  • FIG. 3 is a second structural diagram of a network processing module according to an embodiment of the present application.
  • Fig. 4 is a schematic diagram of information interaction between a data processing subunit and a configuration information storage subunit according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of acquiring data processing configuration information according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a data processing method according to an embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the network processing module includes: a message analysis unit, configured to receive message data encapsulated based on the first transmission protocol, and process the message data according to the message analysis configuration information corresponding to the first transmission protocol Parse to obtain the data to be processed; wherein, the data to be processed carries a network identifier representing the virtual network from which the message data comes; a data processing unit and a configuration information storage unit, and the data processing unit is used to obtain the network identifier from the configuration information storage unit corresponding data processing configuration information, and process the data to be processed according to the data processing configuration information to obtain processed data; the message encapsulation unit is used to encapsulate the processed data into new message data.
  • the structure of the network processing module in this embodiment may be shown in FIG. 1 .
  • the details of the structure of the network processing module in this embodiment will be described in detail below. The following content is only for the convenience of understanding the implementation details of the solution, and is not necessary for implementing the solution.
  • the structure of the network processing module is shown in Figure 1, and may include the following units:
  • the message analysis unit 101 is configured to receive the message data encapsulated based on the first transmission protocol, and analyze the message data according to the message analysis configuration information corresponding to the first transmission protocol to obtain the data to be processed; wherein, the data to be processed It carries the network identifier representing the virtual network from which the packet data comes.
  • the packet parsing unit 101 receives the packet data encapsulated based on the first transmission protocol, that is, the packet data comes from a transmission network that is transmitted according to the first transmission protocol, and can perform the encapsulation corresponding to the packet data.
  • the obtained data to be processed carries the network identifier.
  • the network identifier represents the virtual network from which the packet data comes.
  • the corresponding parsing of message data can be realized because the network processing module is configured with corresponding message parsing configuration information.
  • VN_NO refers to the network identifier representing the virtual network from which the packet data comes
  • mf refers to the actual data to be processed, which is processed by the data processing unit in the next step.
  • a configuration information resetting unit may be set in the network processing module.
  • the configuration information reset unit is configured to update the new configuration information indicated by the new configuration information identifier into the target unit according to the new configuration information identifier carried in the configuration information reset request when receiving the configuration information reset request of the target unit .
  • the new configuration information is new packet parsing configuration information.
  • the message parsing unit sends a configuration information resetting request to the configuration information resetting unit, and obtains new configuration information corresponding to the new configuration information identifier in the request, and then can implement corresponding parsing of message data encapsulated based on different transmission protocols .
  • the new configuration information may correspond to an updated version of the message parsing configuration information of the same protocol, or may correspond to the transmission protocol used by the reconfigured network when the node needs to be reconfigured to access another network.
  • the data processing unit 102 and the configuration information storage unit 103 the data processing unit is used to obtain the data processing configuration information corresponding to the network identifier from the configuration information storage unit, and process the data to be processed according to the data processing configuration information to obtain processed data.
  • the data processing unit may include n data processing subunits connected in series, the input end of the data processing subunit at the head end is connected to the output end of the message analysis unit and is used to receive the data to be processed, and the data processing subunit at the end end The output end of the packet is connected to the input end of the message encapsulation unit and is used for outputting the processed data; wherein, n is an integer greater than or equal to 2.
  • Each of the data processing subunits can be configured to: obtain the data processing configuration information corresponding to the network identifier from the configuration information storage unit, and process the data to be processed according to the data processing configuration information; Each data processing subunit other than the data processing subunit at the end transmits the processed data to the next data processing subunit.
  • a schematic structural diagram of the network processing module involved in this example may be shown in FIG. 3 .
  • Each data processing subunit in this example is independent and isolated for reading configuration information, and does not affect each other, so that the functions of data processing subunits can be the same or different from each other , are connected to each other through a serial pipeline and complete data processing.
  • the configuration information storage unit may include n configuration information storage sub-units, n configuration information storage sub-units and n data processing sub-units
  • the units are connected in one-to-one correspondence; each configuration information storage subunit includes several storage spaces, the storage space stores data processing configuration information corresponding to a network identifier, and each storage space in the several storage spaces stores information corresponding to different network identifiers. data processing configuration information.
  • FIG. 4 A schematic diagram of the interaction between the data processing subunit and the configuration information storage subunit is shown in FIG. 4 .
  • the amount of storage space in different configuration information storage subunits may be different, and the amount of storage space may be determined by the number of virtual networks supported by the corresponding data processing subunit. That is, the number of virtual networks supported by the data processing subunit is the number of network identifiers supported by the data processing configuration information stored in the corresponding configuration information storage subunit, that is, the number of storage spaces included in the configuration information storage subunit.
  • the network processing module can also be configured such that the configuration information storage unit 103 responds to the data processing configuration information acquisition request sent by the data processing unit, and loads the corresponding configuration information into the data processing unit.
  • a schematic diagram of the configuration information storage subunit acquiring corresponding configuration information in the storage space according to the received network identifier sent by the data processing subunit is shown in FIG. 5 .
  • Responding to the configuration information acquisition request issued by the data processing unit may also be implemented by setting a request response unit in the network processing module.
  • the request response unit is used to receive the configuration information acquisition request carrying the network identifier sent by the data processing subunit, identify the configuration information corresponding to the network identifier from the configuration information storage unit, and send the configuration information corresponding to the network identifier to the data Handle subunits.
  • each data processing sub-unit may be specifically configured to: identify the storage space corresponding to the network identifier carried in the data to be processed according to the preset correspondence between the network identifier and the storage space, and select from the identified storage space Get data processing configuration information.
  • all the content stored in the storage space can be controlled and written by the system program in a preloaded manner.
  • the message encapsulation unit 104 is configured to encapsulate the processed data into new message data according to the message encapsulation configuration information corresponding to the second transmission protocol.
  • the network processing module is configured with corresponding packet encapsulation configuration information. Therefore, the packet encapsulation unit 104 can encapsulate the processed data into new packet data according to the transmission protocol followed by the transmission network to which the packet data is sent, so as to realize the continued transmission of the processed new packet data in the network.
  • the message encapsulation unit 104 encapsulates the message data according to the different transmission protocols followed by the transmission network to which the message data is sent, which can also be realized by setting the above configuration information reset unit in the network processing module.
  • the configuration information reset unit is configured to update the new configuration information indicated by the new configuration information identifier into the target unit according to the new configuration information identifier carried in the configuration information reset request when receiving the configuration information reset request of the target unit .
  • the new configuration information is new packet encapsulation configuration information.
  • the packet encapsulation unit sends a configuration information reset request to the configuration information reset unit, and obtains new configuration information corresponding to the new configuration information identifier in the request, and then can follow the transmission protocol to which the packet data is sent to the transmission network. Encapsulate the message data accordingly.
  • Setting the configuration information resetting unit in the network processing module can enable the network processing module to be reconfigured by software.
  • the preset configuration information inside the packet encapsulation unit 104 can be controlled and written by a system program.
  • the network where the new packet data is transmitted may follow the same or different transmission protocol as the transmission network from which the packet data comes, those skilled in the art should understand that the first transmission protocol mentioned in this embodiment and the The second transport protocol may or may not be the same.
  • the network processing module involved in this embodiment can be an independent chip, which can eliminate the limitations of the traditional network virtualization technology application and related products in the SDN field, and realize the upgrade and replacement of the traditional network virtualization technology.
  • the message analysis unit of the network processing module can analyze the message data according to the transmission protocol corresponding to the encapsulated message data, and obtain the network identifier from the parsed data to be processed.
  • the network identifier represents the virtual network from which the message data comes
  • the data processing unit of the network processing module obtains corresponding data processing configuration information in the configuration information storage unit according to the network identifier, and processes the data to be processed according to the data processing configuration information, It can realize different processing of message data from different virtual networks, avoid the limitation of hardware configuration on the processing of message data, and realize the virtualization of forwarding rules of virtual networks.
  • the packet encapsulation unit encapsulates the processed data, so that the processed new packet data can be continuously forwarded.
  • the network node in this embodiment includes the network processing module in the previous embodiment, so it has the same implementation details and beneficial effects as in the previous embodiment.
  • the network nodes in this embodiment not only realize the virtualization of network links, but also realize the virtualization of forwarding rules, realize the improvement and technical upgrade of the original network virtualization technology, and lay the foundation for the realization of network virtualization. foundation.
  • the network processing module receives the message data encapsulated based on the first transmission protocol, and analyzes the message data according to the message analysis configuration information corresponding to the first transmission protocol to obtain the data to be processed;
  • the data carries a network identifier representing the virtual network from which the message data comes; obtains data processing configuration information corresponding to the network identifier, and processes the data to be processed according to the data processing configuration information to obtain processed data; according to the second transmission protocol corresponding
  • the message encapsulates the configuration information, and encapsulates the processed data into new message data.
  • Step 601 receiving packet data encapsulated based on the first transmission protocol, and parsing the packet data according to the packet parsing configuration information corresponding to the first transmission protocol, to obtain data to be processed; wherein, the data to be processed carries a representation message The network ID of the virtual network from which the text data comes.
  • Step 602 Obtain data processing configuration information corresponding to the network identifier, and process the data to be processed according to the data processing configuration information to obtain processed data.
  • Step 603 Encapsulate the processed data into new packet data according to the packet encapsulation configuration information corresponding to the second transmission protocol.
  • the packet data can be analyzed according to the transmission protocol corresponding to the encapsulated packet data, and the network identifier can be obtained from the parsed data to be processed.
  • the network identifier represents the virtual network from which the message data comes.
  • the corresponding data processing configuration information is obtained, and the data to be processed is processed according to the data processing configuration information, so that the message data from different virtual networks can be processed differently. processing, avoiding the limitation of hardware configuration on packet data processing, and realizing the virtualization of forwarding rules in virtual networks.
  • the processed data is encapsulated, so that the processed new message data can be continuously forwarded.
  • modules involved in the above embodiments of the present application are logical modules.
  • a logical unit can be a physical unit, or a part of a physical unit, and can also Combination of physical units.
  • units that are not closely related to solving the technical problems proposed in the present application are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
  • the embodiment of the present application also provides a network node, as shown in FIG. 7 , including at least one processor 701; and a memory 702 communicatively connected to at least one processor 701; wherein, the memory 702 stores information that can be processed by at least one
  • the instructions executed by the processor 701 are executed by at least one processor 701, so that the at least one processor 701 can execute the above data processing method.
  • the memory 702 and the processor 701 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 701 and various circuits of the memory 702 together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • the data processed by the processor 701 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 701 .
  • the processor 701 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management and other control functions. And the memory 702 may be used to store data used by the processor 701 when performing operations.
  • Embodiments of the present application also provide a computer-readable storage medium storing a computer program.
  • the computer program is executed by the processor, the above-mentioned data processing method is realized.
  • a device which can be A single chip microcomputer, a chip, etc.
  • a processor processor
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the technical field of communications. Disclosed are a network processing module, a data processing method, a network node and a storage medium. The network processing module comprises: a packet analysis unit used to receive packet data encapsulated on the basis of a first transmission protocol, and to analyze the packet data according to packet analysis configuration information corresponding to the protocol so as to obtain data carrying a network identifier and awaiting processing, wherein the network identifier represents a virtual network from which the packet data is received; a data processing unit used to acquire, from a configuration information storage unit, data processing configuration information corresponding to the network identifier, and to process the data awaiting processing according to the data processing configuration information so as to obtain processed data; and a packet encapsulation unit used to encapsulate the processed data into new packet data according to packet encapsulation configuration information corresponding to a second transmission protocol.

Description

网络处理模块、数据处理方法、网络节点和存储介质Network processing module, data processing method, network node and storage medium
相关申请related application
本申请要求于2021年12月7日申请的、申请号为202111486400.4的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202111486400.4 filed on December 7, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请实施例涉及通信技术领域,特别涉及一种网络处理模块、数据处理方法、网络节点和存储介质。The embodiments of the present application relate to the technical field of communications, and in particular to a network processing module, a data processing method, a network node, and a storage medium.
背景技术Background technique
在通讯产品,尤其是在软件定义网络(Software Defined Network,简称“SDN”)领域的产品中,实现网络虚拟化是核心技术的重要组成部分。网络虚拟化的含义是一个物理网络可以被虚拟化为多个虚拟的网络或网络切片,多个虚拟网络(Virtual Network,简称“VN”)或网络切片共享物理网络中的资源但彼此在逻辑上是独立并隔离的。网络虚拟化包含网络链路的虚拟化和转发规则的虚拟化这两方面内容。网络链路虚拟化,即网络中的链路不再是固定的物理链接,而是可以通过软件进行定义与修改的虚拟链接。而转发规则虚拟化,即网络中各节点的转发规则也不再是固定转发,而是可以通过软件进行定义与修改的可编程转发。In communication products, especially in the field of Software Defined Network (Software Defined Network, referred to as "SDN"), the realization of network virtualization is an important part of the core technology. The meaning of network virtualization is that a physical network can be virtualized into multiple virtual networks or network slices. Multiple virtual networks (Virtual Network, referred to as "VN") or network slices share resources in the physical network but are logically connected to each other. are independent and isolated. Network virtualization includes virtualization of network links and virtualization of forwarding rules. Network link virtualization means that the links in the network are no longer fixed physical links, but virtual links that can be defined and modified by software. The virtualization of forwarding rules means that the forwarding rules of each node in the network are no longer fixed forwarding, but programmable forwarding that can be defined and modified by software.
传统的虚拟局域网(Virtual Local Area Network,简称“VLAN”)等网络虚拟化技术,通过将一个物理网络内的设备逻辑地划分成若干个属性与实际物理网络相同的网段,摆脱网络设备实际物理端口限制,实现网络的虚拟化。Traditional network virtualization technologies such as virtual local area network (Virtual Local Area Network, referred to as "VLAN"), by logically dividing devices in a physical network into several network segments with the same attributes as the actual physical network, get rid of the actual physical network of network devices. Port restriction to realize network virtualization.
然而,传统的网络虚拟化技术的转发规则固化在交换机中,无法对来自不同虚拟网络的报文进行处理,依然未能实现转发规则的虚拟化。难以满足SDN领域等相关产品的技术要求。However, the forwarding rules of the traditional network virtualization technology are fixed in the switch, which cannot process packets from different virtual networks, and still fails to realize the virtualization of forwarding rules. It is difficult to meet the technical requirements of related products in the SDN field.
发明内容Contents of the invention
本申请实施方式的目的在于提供一种网络处理模块、数据处理方法、网络节点和存储介质,用以使网络节点具备处理来自不同虚拟网络的报文数据的能力。The purpose of the embodiments of the present application is to provide a network processing module, a data processing method, a network node and a storage medium, so that the network node has the ability to process message data from different virtual networks.
为实现上述目的,本申请的实施方式提供了一种网络处理模块,包括:报文解析单元,用于接收基于第一传输协议封装的报文数据,并根据第一传输协议对应的报文解析配置信息对报文数据进行解析,得到待处理数据;其中,待处理数据内携带有表征报文数据来自的虚拟网络的网络标识;数据处理单元和配置信息存储单元,数据处理单元用于从配置信息存储单元中获取网络标识对应的数据处理配置信息,并根据数据处理配置信息对待处理数据进行处理,得到已处理数据;报文封装单元,用于根据第二传输协议对应的报文封装配置信息,将已处理数据封装成新的报文数据。In order to achieve the above object, the embodiment of the present application provides a network processing module, including: a message analysis unit, configured to receive the message data encapsulated based on the first transmission protocol, and analyze the message according to the first transmission protocol The configuration information analyzes the message data to obtain the data to be processed; wherein, the data to be processed carries the network identifier representing the virtual network from which the message data comes; the data processing unit and the configuration information storage unit, the data processing unit is used for configuring from The information storage unit obtains the data processing configuration information corresponding to the network identifier, and processes the data to be processed according to the data processing configuration information to obtain the processed data; the message encapsulation unit is used to encapsulate the configuration information according to the message corresponding to the second transmission protocol , encapsulate the processed data into new message data.
为实现上述目的,本申请的实施方式还提供了一种包含上述网络处理模块的网络节点。To achieve the above object, the embodiment of the present application further provides a network node including the above network processing module.
为实现上述目的,本申请的实施方式还提供了一种数据处理方法,包括:接收基于第一传输协议封装的报文数据,并根据第一传输协议对应的报文解析配置信息对报文数据进行解析,得到待处理数据;其中,待处理数据内携带有表征报文数据来自的虚拟网络的网络标识; 获取网络标识对应的数据处理配置信息,并根据数据处理配置信息对待处理数据进行处理,得到已处理数据;根据第二传输协议对应的报文封装配置信息,将已处理数据封装成新的报文数据。In order to achieve the above purpose, the embodiment of the present application also provides a data processing method, including: receiving packet data encapsulated based on the first transmission protocol, and processing the packet data according to the packet analysis configuration information corresponding to the first transmission protocol Perform analysis to obtain the data to be processed; wherein, the data to be processed carries the network identifier representing the virtual network from which the message data comes; obtain the data processing configuration information corresponding to the network identifier, and process the data to be processed according to the data processing configuration information, The processed data is obtained; according to the packet encapsulation configuration information corresponding to the second transmission protocol, the processed data is encapsulated into new packet data.
为实现上述目的,本申请的实施方式还提供了一种网络节点,包括:至少一处理器;以及与至少一处理器通信连接的存储器;其中,存储器存储有可被至少一处理器执行的指令,指令被至少一处理器执行,以使至少一处理器能够执行上述的数据处理方法。To achieve the above object, the embodiment of the present application also provides a network node, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores instructions that can be executed by the at least one processor , the instructions are executed by at least one processor, so that the at least one processor can execute the above data processing method.
为实现上述目的,本申请的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,其中,计算机程序被处理器执行时实现上述的数据处理方法。To achieve the above object, the embodiments of the present application further provide a computer-readable storage medium storing a computer program, wherein the above data processing method is implemented when the computer program is executed by a processor.
附图说明Description of drawings
一个或多个实施方式通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施方式的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute a limitation to the embodiments. Elements with the same reference numerals in the drawings represent similar elements. Unless otherwise stated, the drawings in the drawings are not limited to scale.
图1是根据本申请一实施方式中的网络处理模块的结构示意图;FIG. 1 is a schematic structural diagram of a network processing module according to an embodiment of the present application;
图2是根据本申请一实施方式中的解析前后报文数据的数据结构示意图;FIG. 2 is a schematic diagram of the data structure of message data before and after analysis according to an embodiment of the present application;
图3是根据本申请一实施方式中的网络处理模块的结构示意图二;FIG. 3 is a second structural diagram of a network processing module according to an embodiment of the present application;
图4是根据本申请一实施方式中的数据处理子单元与配置信息存储子单元信息交互的示意图;Fig. 4 is a schematic diagram of information interaction between a data processing subunit and a configuration information storage subunit according to an embodiment of the present application;
图5是根据本申请一实施方式中的数据处理配置信息获取的示意图;FIG. 5 is a schematic diagram of acquiring data processing configuration information according to an embodiment of the present application;
图6是根据本申请一实施方式中的数据处理方法的流程图;FIG. 6 is a flowchart of a data processing method according to an embodiment of the present application;
图7是根据本申请一实施方式中的电子设备的结构示意图。Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that in each embodiment of the application, many technical details are provided for readers to better understand the application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in this application can also be realized. The division of the following embodiments is for the convenience of description, and should not constitute any limitation to the specific implementation of the present application, and the embodiments can be combined and referred to each other on the premise of no contradiction.
本申请的一实施方式涉及一种网络处理模块。在本实施方式中,该网络处理模块,包括:报文解析单元,用于接收基于第一传输协议封装的报文数据,并根据第一传输协议对应的报文解析配置信息对报文数据进行解析,得到待处理数据;其中,待处理数据内携带有表征报文数据来自的虚拟网络的网络标识;数据处理单元和配置信息存储单元,数据处理单元用于从配置信息存储单元中获取网络标识对应的数据处理配置信息,并根据数据处理配置信息对待处理数据进行处理,得到已处理数据;报文封装单元,用于根据第二传输协议对应的报文封装配置信息,将已处理数据封装成新的报文数据。本实施方式的网络处理模块的结构可以如图1所示。An embodiment of the present application relates to a network processing module. In this embodiment, the network processing module includes: a message analysis unit, configured to receive message data encapsulated based on the first transmission protocol, and process the message data according to the message analysis configuration information corresponding to the first transmission protocol Parse to obtain the data to be processed; wherein, the data to be processed carries a network identifier representing the virtual network from which the message data comes; a data processing unit and a configuration information storage unit, and the data processing unit is used to obtain the network identifier from the configuration information storage unit corresponding data processing configuration information, and process the data to be processed according to the data processing configuration information to obtain processed data; the message encapsulation unit is used to encapsulate the processed data into new message data. The structure of the network processing module in this embodiment may be shown in FIG. 1 .
下面对本实施方式中的网络处理模块结构的细节进行具体的说明,以下内容仅为方便理解本方案的实现细节,并非实施本方案的必须。网络处理模块的结构如图1所示,可以包括 如下单元:The details of the structure of the network processing module in this embodiment will be described in detail below. The following content is only for the convenience of understanding the implementation details of the solution, and is not necessary for implementing the solution. The structure of the network processing module is shown in Figure 1, and may include the following units:
报文解析单元101,用于接收基于第一传输协议封装的报文数据,并根据第一传输协议对应的报文解析配置信息对报文数据进行解析,得到待处理数据;其中,待处理数据内携带有表征报文数据来自的虚拟网络的网络标识。The message analysis unit 101 is configured to receive the message data encapsulated based on the first transmission protocol, and analyze the message data according to the message analysis configuration information corresponding to the first transmission protocol to obtain the data to be processed; wherein, the data to be processed It carries the network identifier representing the virtual network from which the packet data comes.
具体地说,报文解析单元101接收基于第一传输协议封装的报文数据,即该报文数据来自遵循第一传输协议进行传输的传输网络,并能够对报文数据进行与封装所对应的传输协议相对应的解析,得到的待处理数据中携带有网络标识。该网络标识表征报文数据来自的虚拟网络。其中,能够实现对报文数据进行对应解析是由于网络处理模块配置有相应的报文解析配置信息。Specifically, the packet parsing unit 101 receives the packet data encapsulated based on the first transmission protocol, that is, the packet data comes from a transmission network that is transmitted according to the first transmission protocol, and can perform the encapsulation corresponding to the packet data. Corresponding analysis of the transmission protocol, the obtained data to be processed carries the network identifier. The network identifier represents the virtual network from which the packet data comes. Wherein, the corresponding parsing of message data can be realized because the network processing module is configured with corresponding message parsing configuration information.
解析后的待处理数据的数据结构可以如图2所示。其中VN_NO是指表征报文数据来自的虚拟网络的网络标识,mf为实际需进行处理的数据,由数据处理单元对其进行下一步处理。The data structure of the parsed data to be processed may be shown in FIG. 2 . Wherein, VN_NO refers to the network identifier representing the virtual network from which the packet data comes, and mf refers to the actual data to be processed, which is processed by the data processing unit in the next step.
为使得报文解析单元101能够对基于不同传输协议进行封装的报文数据均能够实现对应解析,可以在网络处理模块中设置配置信息重设单元。该配置信息重设单元用于在接收到目标单元的配置信息重设请求时,根据配置信息重设请求中携带的新配置信息标识,将新配置信息标识指示的新配置信息更新到目标单元中。In order to enable the packet parsing unit 101 to perform corresponding parsing of packet data encapsulated based on different transport protocols, a configuration information resetting unit may be set in the network processing module. The configuration information reset unit is configured to update the new configuration information indicated by the new configuration information identifier into the target unit according to the new configuration information identifier carried in the configuration information reset request when receiving the configuration information reset request of the target unit .
当上述目标单元为报文解析单元,新配置信息为新的报文解析配置信息。报文解析单元向配置信息重设单元发送配置信息重设请求,并获取到对应该请求中的新配置信息标识的新配置信息,进而可以对基于不同传输协议进行封装的报文数据实现对应解析。该新配置信息可以对应同一种协议的报文解析配置信息的更新版本,也可以在该节点需要被重新配置为接入另一网络时,与该重新配置的网络所用的传输协议相对应。When the above target unit is a packet parsing unit, the new configuration information is new packet parsing configuration information. The message parsing unit sends a configuration information resetting request to the configuration information resetting unit, and obtains new configuration information corresponding to the new configuration information identifier in the request, and then can implement corresponding parsing of message data encapsulated based on different transmission protocols . The new configuration information may correspond to an updated version of the message parsing configuration information of the same protocol, or may correspond to the transmission protocol used by the reconfigured network when the node needs to be reconfigured to access another network.
数据处理单元102和配置信息存储单元103,数据处理单元用于从配置信息存储单元中获取网络标识对应的数据处理配置信息,并根据数据处理配置信息对待处理数据进行处理,得到已处理数据。The data processing unit 102 and the configuration information storage unit 103, the data processing unit is used to obtain the data processing configuration information corresponding to the network identifier from the configuration information storage unit, and process the data to be processed according to the data processing configuration information to obtain processed data.
在一个例子中,数据处理单元可以包括串联连接的n个数据处理子单元,首端的数据处理子单元的输入端连接报文解析单元的输出端并用于接收待处理数据,尾端的数据处理子单元的输出端连接报文封装单元的输入端并用于输出已处理数据;其中,n为大于或等于2的整数。其中的每个数据处理子单元可以被配置为:从配置信息存储单元中获取网络标识对应的数据处理配置信息,并根据数据处理配置信息对待处理数据进行处理;n个数据处理子单元中除尾端的数据处理子单元之外的每个数据处理子单元将处理后的数据传输至下一个数据处理子单元。本例涉及的网络处理模块的结构示意图可以如图3所示。In one example, the data processing unit may include n data processing subunits connected in series, the input end of the data processing subunit at the head end is connected to the output end of the message analysis unit and is used to receive the data to be processed, and the data processing subunit at the end end The output end of the packet is connected to the input end of the message encapsulation unit and is used for outputting the processed data; wherein, n is an integer greater than or equal to 2. Each of the data processing subunits can be configured to: obtain the data processing configuration information corresponding to the network identifier from the configuration information storage unit, and process the data to be processed according to the data processing configuration information; Each data processing subunit other than the data processing subunit at the end transmits the processed data to the next data processing subunit. A schematic structural diagram of the network processing module involved in this example may be shown in FIG. 3 .
本例中的每个数据处理子单元对于配置信息的读取都是独立且隔离的,相互之间不发生影响,能够使得数据处理子单元彼此之间的功能可以是相同的也可以是不同的,互相通过串行流水线的方式进行连接并完成数据处理。Each data processing subunit in this example is independent and isolated for reading configuration information, and does not affect each other, so that the functions of data processing subunits can be the same or different from each other , are connected to each other through a serial pipeline and complete data processing.
为实现n个数据处理子单元分别根据报文数据中的网络标识获取数据处理配置信息,配置信息存储单元可以包括n个配置信息存储子单元,n个配置信息存储子单元与n个数据处理子单元一一对应连接;每个配置信息存储子单元包括若干个存储空间,存储空间存储有一个网络标识对应的数据处理配置信息,且若干个存储空间中的各存储空间存储有对应于不同网络标识的数据处理配置信息。数据处理子单元与配置信息存储子单元交互的示意图如图4所示。In order to realize that n data processing sub-units respectively obtain data processing configuration information according to the network identifier in the message data, the configuration information storage unit may include n configuration information storage sub-units, n configuration information storage sub-units and n data processing sub-units The units are connected in one-to-one correspondence; each configuration information storage subunit includes several storage spaces, the storage space stores data processing configuration information corresponding to a network identifier, and each storage space in the several storage spaces stores information corresponding to different network identifiers. data processing configuration information. A schematic diagram of the interaction between the data processing subunit and the configuration information storage subunit is shown in FIG. 4 .
不同的配置信息存储子单元中的存储空间数量可以是不同的,存储空间的数量可以由其对应的数据处理子单元所支持的虚拟网络的数量决定。即数据处理子单元所支持的虚拟网络的数目为对应的配置信息存储子单元中存储的数据处理配置信息支持的网络标识数目,也即该配置信息存储子单元包含的存储空间的数目。还可以将网络处理模块设置为由配置信息存储单元103对数据处理单元发出的数据处理配置信息获取请求进行响应,将对应的配置信息加载到数据处理单元中。配置信息存储子单元根据接收到的数据处理子单元发送的网络标识在存储空间中获取对应配置信息的示意图如图5所示。The amount of storage space in different configuration information storage subunits may be different, and the amount of storage space may be determined by the number of virtual networks supported by the corresponding data processing subunit. That is, the number of virtual networks supported by the data processing subunit is the number of network identifiers supported by the data processing configuration information stored in the corresponding configuration information storage subunit, that is, the number of storage spaces included in the configuration information storage subunit. The network processing module can also be configured such that the configuration information storage unit 103 responds to the data processing configuration information acquisition request sent by the data processing unit, and loads the corresponding configuration information into the data processing unit. A schematic diagram of the configuration information storage subunit acquiring corresponding configuration information in the storage space according to the received network identifier sent by the data processing subunit is shown in FIG. 5 .
对数据处理单元发出的配置信息获取请求进行响应还可以通过在网络处理模块中设置请求响应单元来实现。其中,请求响应单元用于接收数据处理子单元发送的携带有网络标识的配置信息获取请求,从配置信息存储单元中识别出网络标识对应的配置信息,并将网络标识对应的配置信息发送给数据处理子单元。Responding to the configuration information acquisition request issued by the data processing unit may also be implemented by setting a request response unit in the network processing module. Wherein, the request response unit is used to receive the configuration information acquisition request carrying the network identifier sent by the data processing subunit, identify the configuration information corresponding to the network identifier from the configuration information storage unit, and send the configuration information corresponding to the network identifier to the data Handle subunits.
为使得数据处理配置信息的获取更加便捷快速,可以预先设置为网络标识与配置信息存储子单元中的存储空间相对应,即以存储空间位置信息表征报文数据来自的虚拟网络。相应地,每个数据处理子单元具体可以被配置为:根据预设的网络标识与存储空间的对应关系,识别待处理数据中携带的网络标识对应的存储空间,并从识别出的存储空间中获取数据处理配置信息。在实际实施中,所有的存储空间中存储的内容均可以通过预加载的方式由***程序进行控制写入。In order to make the acquisition of data processing configuration information more convenient and fast, it can be pre-set that the network identifier corresponds to the storage space in the configuration information storage subunit, that is, the virtual network from which the message data comes is represented by the storage space location information. Correspondingly, each data processing sub-unit may be specifically configured to: identify the storage space corresponding to the network identifier carried in the data to be processed according to the preset correspondence between the network identifier and the storage space, and select from the identified storage space Get data processing configuration information. In actual implementation, all the content stored in the storage space can be controlled and written by the system program in a preloaded manner.
报文封装单元104,用于根据第二传输协议对应的报文封装配置信息,将已处理数据封装成新的报文数据。The message encapsulation unit 104 is configured to encapsulate the processed data into new message data according to the message encapsulation configuration information corresponding to the second transmission protocol.
具体地说,网络处理模块配置有相应的报文封装配置信息。因此报文封装单元104能够根据将报文数据发往的传输网络遵循的传输协议对已处理数据封装成新的报文数据,以实现处理完成的新的报文数据在网络中继续传输。Specifically, the network processing module is configured with corresponding packet encapsulation configuration information. Therefore, the packet encapsulation unit 104 can encapsulate the processed data into new packet data according to the transmission protocol followed by the transmission network to which the packet data is sent, so as to realize the continued transmission of the processed new packet data in the network.
报文封装单元104根据将报文数据发往的传输网络遵循的传输协议的不同对报文数据进行相应的封装,也可以通过在网络处理模块中设置上述配置信息重设单元实现。该配置信息重设单元用于在接收到目标单元的配置信息重设请求时,根据配置信息重设请求中携带的新配置信息标识,将新配置信息标识指示的新配置信息更新到目标单元中。The message encapsulation unit 104 encapsulates the message data according to the different transmission protocols followed by the transmission network to which the message data is sent, which can also be realized by setting the above configuration information reset unit in the network processing module. The configuration information reset unit is configured to update the new configuration information indicated by the new configuration information identifier into the target unit according to the new configuration information identifier carried in the configuration information reset request when receiving the configuration information reset request of the target unit .
当上述目标单元为报文封装单元,新配置信息为新的报文封装配置信息。报文封装单元向配置信息重设单元发送配置信息重设请求,并获取到对应该请求中的新配置信息标识的新配置信息,进而可以根据将报文数据发往的传输网络遵循的传输协议的不同对报文数据进行相应的封装。在网络处理模块中设置配置信息重设单元能够使得网络处理模块能够被软件重新配置。When the above target unit is a packet encapsulation unit, the new configuration information is new packet encapsulation configuration information. The packet encapsulation unit sends a configuration information reset request to the configuration information reset unit, and obtains new configuration information corresponding to the new configuration information identifier in the request, and then can follow the transmission protocol to which the packet data is sent to the transmission network. Encapsulate the message data accordingly. Setting the configuration information resetting unit in the network processing module can enable the network processing module to be reconfigured by software.
在实际实施时,报文封装单元104内部的预置配置信息可以由***程序进行控制写入。In actual implementation, the preset configuration information inside the packet encapsulation unit 104 can be controlled and written by a system program.
由于新的报文数据进行传输的网络可能与报文数据来自的传输网络遵循相同或者不同的传输协议,因此,本领域的相关技术人员应当理解,本实施方式中提及的第一传输协议和第二传输协议可能相同也可能不同。Since the network where the new packet data is transmitted may follow the same or different transmission protocol as the transmission network from which the packet data comes, those skilled in the art should understand that the first transmission protocol mentioned in this embodiment and the The second transport protocol may or may not be the same.
本实施方式中涉及的网络处理模块可以是一个独立芯片,能够消除传统网络虚拟化技术应用与SDN领域相关产品的局限性,对传统网络虚拟化技术实现了升级替代。The network processing module involved in this embodiment can be an independent chip, which can eliminate the limitations of the traditional network virtualization technology application and related products in the SDN field, and realize the upgrade and replacement of the traditional network virtualization technology.
在本申请的实施方式中,网络处理模块的报文解析单元能够根据封装报文数据所对应的传输协议对报文数据进行相应解析,并在解析得到的待处理数据中获取网络标识。该网络标 识表征报文数据来自的虚拟网络,网络处理模块的数据处理单元根据该网络标识在配置信息存储单元中获取相应的数据处理配置信息,并根据该数据处理配置信息对待处理数据进行处理,能够实现对来自不同虚拟网络的报文数据进行不同处理,避免对报文数据的处理受硬件配置的限制,实现虚拟网络的转发规则虚拟化。报文封装单元对已处理数据进行封装,使得进行了处理的新的报文数据能够继续向前传输。In the embodiment of the present application, the message analysis unit of the network processing module can analyze the message data according to the transmission protocol corresponding to the encapsulated message data, and obtain the network identifier from the parsed data to be processed. The network identifier represents the virtual network from which the message data comes, and the data processing unit of the network processing module obtains corresponding data processing configuration information in the configuration information storage unit according to the network identifier, and processes the data to be processed according to the data processing configuration information, It can realize different processing of message data from different virtual networks, avoid the limitation of hardware configuration on the processing of message data, and realize the virtualization of forwarding rules of virtual networks. The packet encapsulation unit encapsulates the processed data, so that the processed new packet data can be continuously forwarded.
本申请的另一实施方式涉及一种网络节点,本实施方式中的网络节点包含上一实施方式中的网络处理模块,因而具备与上一实施方式中相同的实施细节和有益效果,未在本实施方式中详尽描述的技术细节,可参见上一实施方式所提及的相关细节。本实施方式中的网络节点,不仅实现了网络链路的虚拟化,同时也实现了转发规则的虚拟化,对原有的网络虚拟化技术实现了改进与技术升级,为网络虚拟化的实现奠定了基础。Another embodiment of the present application relates to a network node. The network node in this embodiment includes the network processing module in the previous embodiment, so it has the same implementation details and beneficial effects as in the previous embodiment. For the detailed technical details described in the implementation manner, please refer to the relevant details mentioned in the previous implementation manner. The network nodes in this embodiment not only realize the virtualization of network links, but also realize the virtualization of forwarding rules, realize the improvement and technical upgrade of the original network virtualization technology, and lay the foundation for the realization of network virtualization. foundation.
本申请的另一实施方式涉及一种数据处理方法。在本实施方式中,网络处理模块接收基于第一传输协议封装的报文数据,并根据第一传输协议对应的报文解析配置信息对报文数据进行解析,得到待处理数据;其中,待处理数据内携带有表征报文数据来自的虚拟网络的网络标识;获取网络标识对应的数据处理配置信息,并根据数据处理配置信息对待处理数据进行处理,得到已处理数据;根据第二传输协议对应的报文封装配置信息,将已处理数据封装成新的报文数据。Another embodiment of the present application relates to a data processing method. In this embodiment, the network processing module receives the message data encapsulated based on the first transmission protocol, and analyzes the message data according to the message analysis configuration information corresponding to the first transmission protocol to obtain the data to be processed; The data carries a network identifier representing the virtual network from which the message data comes; obtains data processing configuration information corresponding to the network identifier, and processes the data to be processed according to the data processing configuration information to obtain processed data; according to the second transmission protocol corresponding The message encapsulates the configuration information, and encapsulates the processed data into new message data.
下面对本实施方式中的数据处理方法的实现进行说明,以下内容仅为方便理解本方案的实现细节,并非实施本方案的必须。具体流程如图6所示,可包括如下步骤:The implementation of the data processing method in this embodiment will be described below. The following content is only for the convenience of understanding the implementation details of this solution, and is not necessary for implementing this solution. The specific process is shown in Figure 6, and may include the following steps:
步骤601,接收基于第一传输协议封装的报文数据,并根据第一传输协议对应的报文解析配置信息对报文数据进行解析,得到待处理数据;其中,待处理数据内携带有表征报文数据来自的虚拟网络的网络标识。 Step 601, receiving packet data encapsulated based on the first transmission protocol, and parsing the packet data according to the packet parsing configuration information corresponding to the first transmission protocol, to obtain data to be processed; wherein, the data to be processed carries a representation message The network ID of the virtual network from which the text data comes.
步骤602,获取网络标识对应的数据处理配置信息,并根据数据处理配置信息对待处理数据进行处理,得到已处理数据。Step 602: Obtain data processing configuration information corresponding to the network identifier, and process the data to be processed according to the data processing configuration information to obtain processed data.
步骤603,根据第二传输协议对应的报文封装配置信息,将已处理数据封装成新的报文数据。Step 603: Encapsulate the processed data into new packet data according to the packet encapsulation configuration information corresponding to the second transmission protocol.
不难看出,本实施方式中的上述步骤与上一实施方式涉及的网络处理模块的应用细节相对应,上一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。It is not difficult to see that the above steps in this embodiment correspond to the application details of the network processing module involved in the previous embodiment. The relevant technical details mentioned in the previous embodiment are still valid in this embodiment. In order to reduce repetition, I won't go into details here.
在本实施方式中,能够根据封装报文数据所对应的传输协议对报文数据进行相应解析,并在解析得到的待处理数据中获取网络标识。该网络标识表征报文数据来自的虚拟网络,根据该网络标识获取相应的数据处理配置信息,并根据该数据处理配置信息对待处理数据进行处理,能够实现对来自不同虚拟网络的报文数据进行不同处理,避免对报文数据的处理受硬件配置的限制,实现虚拟网络的转发规则虚拟化。进而对已处理数据进行封装,使得进行了处理的新的报文数据能够继续向前传输。In this embodiment, the packet data can be analyzed according to the transmission protocol corresponding to the encapsulated packet data, and the network identifier can be obtained from the parsed data to be processed. The network identifier represents the virtual network from which the message data comes. According to the network identifier, the corresponding data processing configuration information is obtained, and the data to be processed is processed according to the data processing configuration information, so that the message data from different virtual networks can be processed differently. processing, avoiding the limitation of hardware configuration on packet data processing, and realizing the virtualization of forwarding rules in virtual networks. Furthermore, the processed data is encapsulated, so that the processed new message data can be continuously forwarded.
值得一提的是,本申请上述实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施方式中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that all the modules involved in the above embodiments of the present application are logical modules. In practical applications, a logical unit can be a physical unit, or a part of a physical unit, and can also Combination of physical units. In addition, in order to highlight the innovative part of the present application, units that are not closely related to solving the technical problems proposed in the present application are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
本申请的实施方式还提供一种网络节点,如图7所示,包括至少一个处理器701;以及, 与至少一个处理器701通信连接的存储器702;其中,存储器702存储有可被至少一个处理器701执行的指令,指令被至少一个处理器701执行,以使至少一个处理器701能够执行上述数据处理方法。The embodiment of the present application also provides a network node, as shown in FIG. 7 , including at least one processor 701; and a memory 702 communicatively connected to at least one processor 701; wherein, the memory 702 stores information that can be processed by at least one The instructions executed by the processor 701 are executed by at least one processor 701, so that the at least one processor 701 can execute the above data processing method.
其中,存储器702和处理器701采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器701和存储器702的各种电路连接在一起。总线还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器701处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器701。Wherein, the memory 702 and the processor 701 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 701 and various circuits of the memory 702 together. The bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein. The bus interface provides an interface between the bus and the transceivers. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium. The data processed by the processor 701 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 701 .
处理器701负责管理总线和通常的处理,还可以提供各种功能,包括定时,***接口,电压调节、电源管理以及其他控制功能。而存储器702可以被用于存储处理器701在执行操作时所使用的数据。The processor 701 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management and other control functions. And the memory 702 may be used to store data used by the processor 701 when performing operations.
上述产品可执行本申请实施方式所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施方式中详尽描述的技术细节,可参见本申请实施方式所提供的方法。The above-mentioned products can execute the methods provided in the embodiments of this application, and have the corresponding functional modules and beneficial effects for executing the methods. For technical details not described in detail in this embodiment, please refer to the methods provided in the embodiments of this application.
本申请的实施方式还提供一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述的数据处理方法。Embodiments of the present application also provide a computer-readable storage medium storing a computer program. When the computer program is executed by the processor, the above-mentioned data processing method is realized.
本领域技术人员可以理解,实现上述实施方式方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, the program is stored in a storage medium, and includes several instructions to make a device (which can be A single chip microcomputer, a chip, etc.) or a processor (processor) executes all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
上述实施方式是提供给本领域普通技术人员来实现和使用本申请的,本领域普通技术人员可以在不脱离本申请的发明思想的情况下,对上述实施方式做出种种修改或变化,因而本申请的保护范围并不被上述实施方式所限,而应该符合权利要求书所提到的创新性特征的最大范围。The above-mentioned embodiments are provided for those of ordinary skill in the art to implement and use this application. Those of ordinary skill in the art can make various modifications or changes to the above-mentioned embodiments without departing from the inventive idea of this application. Therefore, this The protection scope of the application is not limited by the above-mentioned embodiments, but should conform to the maximum scope of the innovative features mentioned in the claims.

Claims (10)

  1. 一种网络处理模块,包括:A network processing module, comprising:
    报文解析单元,设置为接收基于第一传输协议封装的报文数据,并根据所述第一传输协议对应的报文解析配置信息对所述报文数据进行解析,得到待处理数据;其中,所述待处理数据内携带有表征所述报文数据来自的虚拟网络的网络标识;The message analysis unit is configured to receive the message data encapsulated based on the first transmission protocol, and analyze the message data according to the message analysis configuration information corresponding to the first transmission protocol to obtain the data to be processed; wherein, The data to be processed carries a network identifier representing the virtual network from which the message data comes;
    数据处理单元和配置信息存储单元,所述数据处理单元设置为从所述配置信息存储单元中获取所述网络标识对应的数据处理配置信息,并根据所述数据处理配置信息对所述待处理数据进行处理,得到已处理数据;a data processing unit and a configuration information storage unit, the data processing unit is configured to acquire data processing configuration information corresponding to the network identifier from the configuration information storage unit, and process the data to be processed according to the data processing configuration information Perform processing to obtain processed data;
    报文封装单元,设置为根据第二传输协议对应的报文封装配置信息,将所述已处理数据封装成新的报文数据。The message encapsulation unit is configured to encapsulate the processed data into new message data according to the message encapsulation configuration information corresponding to the second transmission protocol.
  2. 根据权利要求1所述的网络处理模块,其中,所述数据处理单元包括串联连接的n个数据处理子单元,首端的所述数据处理子单元的输入端连接所述报文解析单元的输出端并设置为接收所述待处理数据,尾端的所述数据处理子单元的输出端连接所述报文封装单元的输入端并设置为输出所述已处理数据;其中,n为大于或等于2的整数;The network processing module according to claim 1, wherein the data processing unit includes n data processing subunits connected in series, and the input end of the data processing subunit at the head end is connected to the output end of the message analysis unit And set to receive the data to be processed, the output end of the data processing subunit at the tail end is connected to the input end of the message encapsulation unit and set to output the processed data; wherein, n is greater than or equal to 2 integer;
    每个所述数据处理子单元被配置为:从所述配置信息存储单元中获取所述网络标识对应的数据处理配置信息,并根据所述数据处理配置信息对所述待处理数据进行处理;所述n个数据处理子单元中除尾端的所述数据处理子单元之外的每个所述数据处理子单元将处理后的数据传输至下一个所述数据处理子单元。Each of the data processing subunits is configured to: obtain the data processing configuration information corresponding to the network identifier from the configuration information storage unit, and process the data to be processed according to the data processing configuration information; Each of the n data processing subunits except the last data processing subunit transmits the processed data to the next data processing subunit.
  3. 根据权利要求2所述的网络处理模块,其中,所述配置信息存储单元包括n个配置信息存储子单元,所述n个配置信息存储子单元与所述n个数据处理子单元一一对应连接;The network processing module according to claim 2, wherein the configuration information storage unit includes n configuration information storage subunits, and the n configuration information storage subunits are connected to the n data processing subunits in a one-to-one correspondence ;
    每个所述配置信息存储子单元包括若干个存储空间,所述存储空间存储有一个网络标识对应的所述数据处理配置信息,且所述若干个存储空间中的各所述存储空间存储对应于不同所述网络标识的所述数据处理配置信息。Each of the configuration information storage subunits includes several storage spaces, the storage spaces store the data processing configuration information corresponding to a network identifier, and each of the storage spaces in the several storage spaces stores the corresponding The data processing configuration information of different network identifiers.
  4. 根据权利要求3所述的网络处理模块,其中,每个所述数据处理子单元具体被配置为:根据预设的网络标识与存储空间的对应关系,识别所述待处理数据中携带的所述网络标识对应的存储空间,并从识别出的所述存储空间中获取数据处理配置信息。The network processing module according to claim 3, wherein each of the data processing subunits is specifically configured to: identify the The network identifies the corresponding storage space, and acquires data processing configuration information from the identified storage space.
  5. 根据权利要求2所述的网络处理模块,其中,所述网络处理模块还包括:The network processing module according to claim 2, wherein the network processing module further comprises:
    请求响应单元,设置为接收所述数据处理子单元发送的携带有所述网络标识的配置信息获取请求,从所述配置信息存储单元中识别出所述网络标识对应的配置信息,并将所述网络标识对应的配置信息发送给所述数据处理子单元。The request response unit is configured to receive the configuration information acquisition request carrying the network identifier sent by the data processing subunit, identify the configuration information corresponding to the network identifier from the configuration information storage unit, and send the The configuration information corresponding to the network identifier is sent to the data processing subunit.
  6. 根据权利要求1所述的网络处理模块,其中,所述网络处理模块还包括:The network processing module according to claim 1, wherein the network processing module further comprises:
    配置信息重设单元,设置为在接收到目标单元的配置信息重设请求时,根据所述配置信息重设请求中携带的新配置信息标识,将所述新配置信息标识指示的新配置信息更新到所述目标单元中;The configuration information reset unit is configured to update the new configuration information indicated by the new configuration information identifier according to the new configuration information identifier carried in the configuration information reset request when receiving the configuration information reset request of the target unit into said target unit;
    其中,所述目标单元为所述报文解析单元,所述新配置信息为新的报文解析配置信息;或者,所述目标单元为所述报文封装单元,所述新配置信息为新的报文封装配置信息;或者,所述目标单元为数据处理单元,所述新配置信息为新的数据处理配置信息。Wherein, the target unit is the message parsing unit, and the new configuration information is new message parsing configuration information; or, the target unit is the message encapsulation unit, and the new configuration information is new Packet encapsulation configuration information; or, the target unit is a data processing unit, and the new configuration information is new data processing configuration information.
  7. 一种网络节点,其中,所述网络节点包含权利要求1至6中任一项所述的网络处理模块。A network node, wherein the network node includes the network processing module according to any one of claims 1-6.
  8. 一种数据处理方法,包括:A data processing method, comprising:
    接收基于第一传输协议封装的报文数据,并根据所述第一传输协议对应的报文解析配置信息对所述报文数据进行解析,得到待处理数据;其中,所述待处理数据内携带有表征所述报文数据来自的虚拟网络的网络标识;Receiving packet data encapsulated based on the first transmission protocol, and parsing the packet data according to the packet parsing configuration information corresponding to the first transmission protocol to obtain data to be processed; wherein, the data to be processed carries There is a network identifier representing the virtual network from which the message data comes;
    获取所述网络标识对应的数据处理配置信息,并根据所述数据处理配置信息对所述待处理数据进行处理,得到已处理数据;Obtain data processing configuration information corresponding to the network identifier, and process the data to be processed according to the data processing configuration information to obtain processed data;
    根据第二传输协议对应的报文封装配置信息,将所述已处理数据封装成新的报文数据。According to the packet encapsulation configuration information corresponding to the second transmission protocol, the processed data is encapsulated into new packet data.
  9. 一种网络节点,包括:A network node comprising:
    至少一处理器;以及at least one processor; and
    与所述至少一处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一处理器执行的指令,所述指令被所述至少一处理器执行,以使所述至少一处理器能够执行如权利要求8所述的方法。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform the method as claimed in claim 8 .
  10. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求8所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the method according to claim 8 when executed by a processor.
PCT/CN2022/137020 2021-12-07 2022-12-06 Network processing module, data processing method, network node and storage medium WO2023104054A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111486400.4 2021-12-07
CN202111486400.4A CN116319619A (en) 2021-12-07 2021-12-07 Network processing module, data processing method, network node and storage medium

Publications (1)

Publication Number Publication Date
WO2023104054A1 true WO2023104054A1 (en) 2023-06-15

Family

ID=86729625

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/137020 WO2023104054A1 (en) 2021-12-07 2022-12-06 Network processing module, data processing method, network node and storage medium

Country Status (2)

Country Link
CN (1) CN116319619A (en)
WO (1) WO2023104054A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501684A (en) * 2023-06-25 2023-07-28 苏州浪潮智能科技有限公司 Server system and communication method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018001242A1 (en) * 2016-06-30 2018-01-04 中兴通讯股份有限公司 Data-message processing method and apparatus
CN109302466A (en) * 2018-09-18 2019-02-01 华为技术有限公司 Data processing method, relevant device and computer storage medium
CN109547318A (en) * 2019-01-18 2019-03-29 杭州迪普科技股份有限公司 The processing method of VPN data message, device, electronic equipment
CN112087468A (en) * 2020-09-18 2020-12-15 国网浙江省电力有限公司 Message processing method, related equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018001242A1 (en) * 2016-06-30 2018-01-04 中兴通讯股份有限公司 Data-message processing method and apparatus
CN109302466A (en) * 2018-09-18 2019-02-01 华为技术有限公司 Data processing method, relevant device and computer storage medium
CN109547318A (en) * 2019-01-18 2019-03-29 杭州迪普科技股份有限公司 The processing method of VPN data message, device, electronic equipment
CN112087468A (en) * 2020-09-18 2020-12-15 国网浙江省电力有限公司 Message processing method, related equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501684A (en) * 2023-06-25 2023-07-28 苏州浪潮智能科技有限公司 Server system and communication method thereof
CN116501684B (en) * 2023-06-25 2023-09-12 苏州浪潮智能科技有限公司 Server system and communication method thereof

Also Published As

Publication number Publication date
CN116319619A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US9231849B2 (en) Apparatus and method for controlling virtual switches
US9609065B2 (en) Bridge for implementing a converged network protocol to facilitate communication between different communication protocol networks
US9824080B2 (en) Automatic generation of forms for device configuration
CN113485823A (en) Data transmission method, device, network equipment and storage medium
US9948558B2 (en) Techniques for a switch to receive network controller sideband interface control packets
WO2022032984A1 (en) Mqtt protocol simulation method and simulation device
JP2018166323A (en) Network service configuration method and network management device
US10455038B2 (en) Indirect integration of network connected devices into service function chains
US10609125B2 (en) Method and system for transmitting communication data
WO2017032112A1 (en) Method for communicating with board having no central processing unit and communication device
WO2023104054A1 (en) Network processing module, data processing method, network node and storage medium
WO2023124427A1 (en) Data processing method, network node, computer readable storage medium
US20210019282A1 (en) Packet Transmission Method and Apparatus
US20220045948A1 (en) Path creation method and device for network on chip and electronic apparatus
CN111541688B (en) Embedded system compatible with multiple protocols, data processing method and device
CN111885174A (en) Method and system for processing nodes of different network segments
US20160134522A1 (en) Data flow processing method, device, and system
US20140286175A1 (en) Apparatus and method for controlling packet transfer
US8886913B2 (en) Apparatus and method for identifier management
CN109358820B (en) Data access method and device, electronic equipment and computer readable storage medium
US20220052902A1 (en) Method for managing remote device through management device
CN108616453B (en) Method, device and system for network equipment
US11436172B2 (en) Data frame interface network device
US11784929B2 (en) Heterogeneous link data translation and distribution method, system and device, and storage medium
KR101576518B1 (en) Method and apparatus for expansion and utilization of openflow protocol

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: 22903476

Country of ref document: EP

Kind code of ref document: A1