CN114760249B - SDN network-based data processing method, device and equipment - Google Patents

SDN network-based data processing method, device and equipment Download PDF

Info

Publication number
CN114760249B
CN114760249B CN202110026323.8A CN202110026323A CN114760249B CN 114760249 B CN114760249 B CN 114760249B CN 202110026323 A CN202110026323 A CN 202110026323A CN 114760249 B CN114760249 B CN 114760249B
Authority
CN
China
Prior art keywords
message
sdn
arp
processing logic
receiving
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.)
Active
Application number
CN202110026323.8A
Other languages
Chinese (zh)
Other versions
CN114760249A (en
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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202110026323.8A priority Critical patent/CN114760249B/en
Publication of CN114760249A publication Critical patent/CN114760249A/en
Application granted granted Critical
Publication of CN114760249B publication Critical patent/CN114760249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

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

Abstract

The invention provides a data processing method, a device and equipment based on an SDN network, wherein the method comprises the following steps: receiving an ARP message reported by an SDN switch; analyzing the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message; and sending processing logic at the mth level to the SDN switch to indicate a message of which the target MAC is a Sender MAC of the ARP message, forwarding the message from a port receiving the ARP message, wherein m is a positive integer greater than 1. The invention reduces the complexity of network topology and the transmission delay of data messages, can effectively reduce the number of processing logics sent, and improves the utilization rate of logic resources of SDN switches.

Description

SDN network-based data processing method, device and equipment
Technical Field
The present invention relates to the field of data communications technologies, and in particular, to a data processing method, apparatus, and device based on an SDN network.
Background
SDN (Software Defined Network, software defined networking) network realizes separation of control plane and data plane, and concentrates the control plane into SDN controller, thereby conveniently performing centralized management and control on the whole network equipment, providing smooth evolution capability for the Internet to meet current and future demands, and becoming the development direction of future networks.
The SDN switch is connected with a plurality of non-SDN devices through the two-layer Ethernet switch/route, so that the topology complexity is improved, the transmission delay of the data message is improved, and the problem caused by direct connection of the SDN switch and the plurality of non-SDN devices is not effectively solved.
In addition, the ODL (Open Day Light) controller performs MAC address learning through an ARP process, and the transmitted flow table item requires to match the destination MAC and the source MAC at the same time, so that more logic resources are occupied; the flow Table items learned by the MAC learning method are in the same level as the flow Table items for processing the normal message in the processing logic of the switch, namely in Table0, so that the complexity of the processing logic design arrangement of the switch is greatly increased; the flow table item for MAC learning means that other flow table jumps are not performed and other processing logic operations cannot be performed because the data forwarding is directly performed after the destination MAC and the source MAC are matched, for example, the header information of a network layer and/or a transmission layer cannot be checked, and illegal message forwarding can be caused; and the header information of the data message cannot be modified.
Disclosure of Invention
The invention provides a data processing method, device and equipment based on an SDN (software defined network), which are used for solving the problems that the existing topology is high in complexity, the transmission delay of data messages is improved, more logic resources are occupied due to complex switch processing logic coding, and other processing logic operations cannot be performed.
According to a first aspect of an embodiment of the present invention, there is provided a data processing method based on an SDN network, applied to an SDN controller, including:
receiving an ARP message reported by an SDN switch;
analyzing the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
and sending processing logic at the mth level to the SDN switch to indicate a message of which the target MAC is a Sender MAC of the ARP message, forwarding the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
As an alternative embodiment, the method further comprises:
and sending processing logic at the 1 st level to an SDN switch connected with the SDN controller to instruct the SDN switch to report the received ARP message to the SDN controller.
As an alternative embodiment, the method further comprises:
and sending processing logic at the nth stage to an SDN switch connected with the SDN controller to indicate to perform logic processing operation on the message.
As an optional implementation manner, the ARP message includes an ARP request message and an ARP response message, where:
broadcasting the ARP request message through an SDN switch;
Receiving an ARP response message reported by a connected switch, wherein the ARP response message is a message sent by non-SDN equipment which receives the ARP request message;
and sending the ARP response message to an SDN switch reporting the ARP request message, and indicating the SDN switch to forward from a port receiving the ARP request message.
As an optional implementation manner, the matching domain of the processing logic is a destination MAC and the action domain is a Sender MAC of the ARP message, and the forwarding is performed from a port that receives the ARP message.
As an optional implementation manner, the message is uplink data, and the destination MAC is a MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
According to a second aspect of the embodiment of the present invention, there is provided a data processing method based on an SDN network, applied to an SDN switch, the method including:
receiving a message, wherein the message comprises an ARP message sent by non-SDN equipment;
reporting the ARP message to an SDN controller;
receiving processing logic at an mth level sent by the SDN controller, wherein m is a positive integer greater than 1;
when the received message is jumped to the processing logic of the mth level, the message of which the target MAC is the Sender MAC of the ARP message is forwarded from a port for receiving the ARP message.
According to a third aspect of the embodiments of the present invention, there is provided an SDN network-based data processing device, as SDN control, including: a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to read the program in the memory and execute:
receiving an ARP message reported by an SDN switch;
analyzing the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
and sending processing logic at the mth level to the SDN switch to indicate a message of which the target MAC is a Sender MAC of the ARP message, forwarding the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
As an alternative embodiment, the processor is further configured to:
and sending processing logic at the 1 st level to an SDN switch connected with the SDN controller to instruct the SDN switch to report the received ARP message to the SDN controller.
As an alternative embodiment, the processor is further configured to:
and sending processing logic at the nth stage to an SDN switch connected with the SDN controller to indicate to perform logic processing operation on the message.
As an optional implementation manner, the ARP message includes an ARP request message and an ARP response message, where the processor is specifically configured to:
broadcasting the ARP request message through an SDN switch;
receiving an ARP response message reported by a connected switch, wherein the ARP response message is a message sent by non-SDN equipment which receives the ARP request message;
and sending the ARP response message to an SDN switch reporting the ARP request message, and indicating the SDN switch to forward from a port receiving the ARP request message.
As an optional implementation manner, the matching domain of the processing logic is a destination MAC and the action domain is a Sender MAC of the ARP message, and the forwarding is performed from a port that receives the ARP message.
As an optional implementation manner, the message is uplink data, and the destination MAC is a MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
According to a fourth aspect of an embodiment of the present invention, there is provided an SDN network-based data processing device, the device serving as a switch and including: a memory and a processor;
Wherein the memory is used for storing a computer program;
the processor is configured to read the program in the memory and execute:
receiving a message, wherein the message comprises an ARP message sent by non-SDN equipment;
reporting the ARP message to an SDN controller;
receiving processing logic at an mth level sent by the SDN controller, wherein m is a positive integer greater than 1;
when the received message is jumped to the processing logic of the mth level, the message of which the target MAC is the Sender MAC of the ARP message is forwarded from a port for receiving the ARP message.
According to a fourth aspect of an embodiment of the present invention, there is provided an SDN network-based data processing apparatus, including:
the message receiving module is used for receiving ARP messages reported by the SDN switch;
the message analysis module is used for analyzing the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
and the flow table entry sending module is used for sending processing logic at the mth level to the SDN switch so as to indicate that a message with the target MAC as a Sender MAC of the ARP message is forwarded from a port receiving the ARP message, and m is a positive integer greater than 1.
According to a fifth aspect of an embodiment of the present invention, there is provided an SDN network-based data processing apparatus, including:
the message receiving module is used for receiving messages, wherein the messages comprise ARP messages sent by non-SDN equipment;
a flow message reporting module for reporting the ARP message to an SDN controller;
a flow table entry receiving module, configured to receive processing logic at an mth stage sent by the SDN controller, where m is a positive integer greater than 1;
and the message processing module is used for forwarding the message of which the target MAC is the Sender MAC of the ARP message from a port receiving the ARP message when the received message is jumped to the processing logic of the mth level.
According to a sixth aspect of embodiments of the present invention, there is provided a computer program medium having a computer program stored thereon, which when executed by a processor, performs the steps of the method according to the first aspect or performs the steps of the method according to the second aspect.
According to a seventh aspect of embodiments of the present invention, there is provided a chip coupled to a memory in a device, such that the chip, when running, invokes program instructions stored in the memory, implementing the aspects of embodiments of the present application and any possible related methods related to the aspects.
According to an eighth aspect of embodiments of the present invention, there is provided a computer program product which, when run on an electronic device, causes the electronic device to perform any one of the possible ways of implementing the above aspects of the embodiments of the present application and related thereto.
The SDN-based data processing method, the SDN-based data processing device and the SDN-based data processing equipment have the following beneficial effects:
by sending the flow table item taking the destination address as the matching item, the direct forwarding of the data of the non-SDN equipment is supported, namely, an SDN switch is supported to be directly connected with the non-SDN equipment, so that the complexity of network topology is reduced and the transmission delay of a data message is reduced;
because the flow table item is only matched with the destination MAC, a corresponding data channel is not established from different source MAC to the same destination MAC, the number of transmitted processing logics can be effectively reduced, and the utilization rate of SDN switch logic resources is improved;
and sending the flow table item of the data forwarding to m-level processing logic so that the flow table item is in a different level from the logic for processing the normal message in the switch, thereby reducing the complexity of the design and arrangement of the processing logic of the SDN switch.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an SDN network architecture in the related art;
fig. 2 is a schematic diagram of connection between an SDN switch and a non-SDN device in the related art;
FIG. 3 is a schematic diagram of a multi-stage flow table processing logic in the related art;
FIG. 4 is a schematic diagram of a data processing system based on SDN network according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a data processing method based on an SDN network, which is applied to an SDN controller and provided in an embodiment of the present invention;
fig. 6 is a schematic diagram of an SDN controller sending a flow entry of level 1 processing logic to an SDN switch provided in an embodiment of the present invention;
fig. 7 is a schematic diagram of an SDN controller sending a FLOW entry of level 1 processing logic to an SDN switch through an ofpt_flow_mod message in an embodiment of the present invention;
fig. 8 is a schematic flow chart of a data processing method based on an SDN network, which is applied to a switch and provided in an embodiment of the present invention;
fig. 9 is a schematic diagram of an SDN switch directly connected to a plurality of non-SDN devices according to an embodiment of the present invention;
fig. 10 is a schematic diagram of an SDN switch directly connected to a plurality of DN nodes through an N6 interface according to an embodiment of the present invention;
fig. 11 is a schematic diagram of an SDN switch directly connected to a plurality of base stations through an N3 interface according to an embodiment of the present invention;
Fig. 12 is a schematic structural diagram of a data processing device based on an SDN network according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another data processing apparatus based on an SDN network according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a data processing device based on an SDN network according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of another data processing device based on an SDN network according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the embodiment of the present application, "and/or" describes the association relationship of the association object, which indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
For convenience of understanding, the terms involved in the embodiments of the present invention are explained below:
the main idea of the software defined network SDN is control and forwarding separation; centralized control and scheduling of network resources; the open programmable capability allows the application to program and schedule the network resources, thus realizing seamless combination of the application and the network resources.
The architecture of an SDN network as shown in fig. 1, network devices in an SDN network are typically OpenFlow switches, and it is understood more broadly that a network device may include forwarding devices where all forwarding rules are controlled by an SDN controller.
The control plane is separated from the forwarding plane in the SDN network. The control plane node is an SDN controller and is responsible for network topology calculation, network state monitoring, path calculation, path rule generation and the like. The forwarding plane nodes are called SDN switches and are responsible for forwarding data according to the table items in the flow table, and the current SDN switches all support the OpenFlow protocol. Communication between the controller and the switch relies on the OpenFlow protocol, and mainly reports unknown packets, reports of network states and traffic statistics, transmission of flow rules, and the like.
The data forwarding mechanism in an SDN network is quite different from the packet forwarding mechanism in a traditional IP network. In the SDN domain, an SDN switch performs packet processing strictly according to flow entries, where the composition of the flow entries is shown in table 1:
TABLE 1
For the services of different users, corresponding flow table items are sent to corresponding switches through a controller according to service requirements, when each switch has a plurality of different flow table items and the SDN switch receives a packet data packet, header information of the packet data packet is firstly analyzed, matching is carried out in a table according to the priority of the flow table item from high to low, and when matching is carried out with a matching domain in the flow table item, if matching is successful, corresponding operation is executed according to Instructions in the flow table item. If the packet header information does not match the flow entry, the SDN switch discards the packet data packet or performs instruction(s) of the table-miss flow entry (if present). The flow entries are distinguished by cookies and Flags, and expired flow entries are deleted after a timeout. The number of successfully matched data packets is counted by a counter in the flow table entry.
Fig. 2 is a schematic diagram of an SDN switch connected to a plurality of non-SDN devices, where an SDN edge switch is connected to the plurality of non-SDN devices (S1, S2, …, sn) through an ethernet switch or a route, where a port x of the SDN switch is connected to a two-layer ethernet switch/route. When the SDN switch receives a data message which needs to be forwarded to non-SDN equipment (S1/S2/…/Sn), processing the data message according to processing logic matched with the switch, and finally designating the message to be forwarded from a port x. In this way, data packets may reach non-SDN devices through a two-layer ethernet switch/route.
The SDN switch further supports multi-stage flow Table forwarding, a processing procedure is shown in fig. 3, and after receiving a data packet in a switching manner, the data packet is subjected to multi-stage processing logic, wherein each stage of processing logic performs matching by using a flow Table entry in a corresponding Table, and performs corresponding logic processing by using a successfully matched flow Table entry. After receiving the data packet, the switch firstly executes the 1 st stage processing logic, namely firstly matches with the stream Table entry in Table0, and particularly matches according to the priority in the stream Table entry in Table 0. After the processing logic of Table0 is completed, the next stage of Table is skipped according to the processing logic level skip instruction, the skip sequence is not necessarily sequential skip, and may be interval skip, and the sequence number m of the next stage of Table is gradually increased.
As shown in fig. 2, the SDN edge switch is connected to a plurality of non-SDN devices (S1, S2, …, sn) through an ethernet switch or a route, the two-layer ethernet switch or the route performs learning of a MAC address table, and at the same time, the ODL (Open Day Light) controller also performs learning of a MAC address, and the ODL controller is a modularized, scalable, multi-protocol supported controller developed based on SDN, where the method for learning a MAC address is as follows:
When the SDN switch is connected with the ODL, the ODL sends a flow table to the SDN switch, so that the flow table reports all received ARP (Address Resolution Protocol ) messages to the controller, and the controller performs unified processing.
When the ODL controller receives an ARP request message reported by the SDN switch through the Packet-In message, decoding and analyzing the Packet-In message to obtain a corresponding original data Packet, an Ethernet message and an ARP request message. The ODL controller sends ARP request messages to all SDN switches or a certain switch managed by the ODL controller through Packet-Out messages and instructs the SDN switches to broadcast or forward from a certain port. The ODL controller receives the ARP response message reported by the SDN switch and analyzes the ARP response message to obtain the destination MAC address. When the ODL controller finishes processing the ARP request and response of an ARP process, the source MAC and the destination MAC may be learned, and the ODL sends a flow table entry located in the level 1 processing logic flow table 0 to the SDN switch: the matching domain is { source MAC and destination MAC }, the action domain is { forward from the corresponding port }, and the data transmission channel from the source MAC to the destination MAC is opened.
Therefore, the SDN switch is connected with a plurality of non-SDN devices through the two-layer Ethernet switch/route, so that the topology complexity is improved, the transmission delay of the data message is improved, and the problem caused by direct connection of the SDN switch and the plurality of non-SDN devices is not effectively solved.
In addition, the stream entry sent by the ODL controller is required to be matched with the destination MAC and the source MAC at the same time, so that more logic resources are occupied; the flow Table items learned by the MAC learning method are in the same processing logic level as the flow Table items for processing the normal message in the processing logic of the switch, namely in the same Table0, so that the complexity of the processing logic design arrangement of the switch is greatly increased; the flow table item for MAC learning means that other flow table jumps are not performed and other logic processing operations cannot be performed because the data forwarding is directly performed after the destination MAC and the source MAC are matched, for example, the header information of a network layer and/or a transmission layer cannot be checked, and illegal message forwarding can be caused; and the header information of the data message cannot be modified.
In view of this, an embodiment of the present invention proposes a data processing system based on an SDN network, as shown in fig. 4, where the system includes:
an SDN controller 401, configured to receive an ARP message reported by an SDN switch; analyzing the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message; and sending processing logic at the mth level to the SDN switch to indicate a message of which the target MAC is a Sender MAC of the ARP message, forwarding the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
An SDN switch 402, where the switch is an SDN switch and is directly connected to a non-SDN device 403, and is configured to receive a packet, where the packet includes an ARP packet sent by the non-SDN device; reporting the ARP message to an SDN controller, and receiving processing logic at an mth level sent by the SDN controller, wherein m is a positive integer greater than 1; when the received message is jumped to the processing logic of the mth level, the message of which the target MAC is the Sender MAC of the ARP message is forwarded from a port for receiving the ARP message.
The ARP message in the embodiment of the present invention includes an ARP request message and an ARP response message, and the message in the embodiment of the present invention may include other data messages in addition to the ARP request message and the ARP response message. For an SDN switch, the received messages include messages received from an SDN controller and messages received from non-SDN devices.
Compared with the prior art, the SDN network-based data processing system provided by the embodiment of the invention has the following beneficial effects:
the SDN switch is directly connected with a plurality of non-SDN devices, so that the complexity of network topology is reduced and the transmission delay of data messages is reduced;
because the processing logic is only matched with the target MAC, the number of the transmitted processing logic can be effectively reduced, and the utilization rate of logic resources of the SDN switch is improved;
The data forwarding processing logic learned by the invention is positioned at m levels and is positioned at different levels from the logic for processing the normal message in the switch, so that the complexity of the design and arrangement of the processing logic of the SDN switch is reduced;
the data forwarding processing logic learned by the invention is positioned at the m level in the processing logic of the SDN switch, the SDN switch can perform processing logic operations such as matching check and modification on the header information of the data message in the processing logic of the 1-m-1 level, and the message security is improved.
For convenience of description, only one SDN switch and one SDN controller are illustrated in fig. 4, and in an actual system, there may exist a plurality of SDN switches and SDN controllers that coexist, which will not be described herein.
It should be noted that the system architecture described above is merely an example of a system architecture to which the embodiments of the present invention are applicable, and the system architecture to which the embodiments of the present invention are applicable may further add other entities or reduce some entities compared to the system architecture shown in fig. 4.
Example 1
The embodiment of the invention provides a data processing method based on an SDN network, which is applied to an SDN controller. As shown in fig. 5, the method includes:
step 501, receiving an ARP message reported by an SDN switch;
The ARP message is a message sent in the ARP process of the address resolution protocol, the SDN switch receives the ARP message from the non-SDN equipment and reports the ARP message to the SDN controller, and the reported ARP message is an ARP request message or an ARP response message;
step 502, analyzing the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
analyzing the ARP request message to obtain a first Sender MAC address of the ARP request message and a first port of the first switch for receiving the ARP request message;
analyzing the ARP response message to obtain a second Sender MAC address of the ARP response message and a second port of the second switch for receiving the ARP response message.
For an SDN controller, when an ARP request message reported by a first SDN switch is received, broadcasting the ARP request message through the SDN switch; receiving an ARP response message reported by a second SDN switch, wherein the ARP response message is a message sent by non-SDN equipment receiving an ARP request; and sending the ARP response message to an SDN switch reporting the ARP request message, and indicating the SDN switch to forward from a port receiving the ARP request message.
The first SDN switch and the second SDN switch may be the same SDN switch or may be different SDN switches.
Step 503, send processing logic at the mth level to the SDN switch to instruct that a message with a destination MAC being a Sender MAC of the ARP message is forwarded from a port that receives the ARP message, where m is a positive integer greater than 1.
After receiving an ARP request message from a first SDN switch, sending processing logic at an mth level to the first SDN switch to indicate a message of which the target MAC is a Sender MAC of the ARP message, and forwarding the message from a first port for receiving the ARP message.
After receiving the ARP response message from the second SDN switch, sending processing logic at the mth level to the second SDN switch to indicate the message of which the target MAC is the Sender MAC of the ARP message, and forwarding the message from a second port receiving the ARP message.
For the OPenFlow protocol, each stage of processing logic corresponds to one flow table, when the switch executes to each stage of processing logic, the switch matches each item in the flow table according to the flow table corresponding to the stage of processing logic, and executes corresponding processing logic operation when the matching is successful, the format of the flow table can be designed by adopting the existing format, and the content in different matching domains and the executed logic operation are different.
In the embodiment of the present invention, the matching field of the processing logic is the Sender MAC of the ARP packet, the action field is the port for forwarding the ARP packet, the flow table entry includes a plurality of different fields, as an optional implementation manner, the matching field is the Match field, the Sender MAC of the ARP packet is the destination MAC, and the action field is the Instructions, for forwarding the ARP packet from the port for forwarding the ARP packet. Other fields such as priorities and counters may also be included in the flow table entry, and reference may be made specifically to the design of the existing different fields, which will not be described in detail herein.
As an alternative embodiment, as shown in fig. 6, the method further includes:
and sending processing logic at the 1 st level to an SDN switch connected with the SDN controller to instruct the SDN switch to report the received ARP message to the SDN controller.
Because the switch firstly executes the processing logic of the 1 st level when receiving the ARP message from the non-SDN device, the switch can report all the ARP request message and the ARP response message to the SDN controller when receiving the ARP request message and the ARP response message through the processing logic of the 1 st level, so as to support the transmission of the following flow table items of the m-th level.
As an alternative embodiment, the method further comprises: and sending processing logic at the nth stage to an SDN switch connected with the SDN controller to instruct logic processing operation to the message, wherein n is a positive integer with a value range of m.
In the embodiment of the invention, the m-level processing logic is the last-level processing logic corresponding to message forwarding, so that other-level processing logic can perform logic processing operation of the message, and can particularly perform operations such as matching check and modification on header information of the data message.
The following provides a specific procedure of the data processing method based on the SDN network in the embodiment of the present invention:
1) Pre-sending level 1 processing logic
The SDN controller sends 1-level processing logic to the SDN switch in advance: the SDN switch reports the received ARP message to the SDN controller.
Taking an OpenFlow protocol as an example of an interface between an SDN switch and an SDN CONTROLLER, as shown In fig. 7, the SDN CONTROLLER sends a FLOW entry { table=0, ARP, actions=control:65535 } to the SDN switch In advance through an ofpt_flow_mod message, so that the SDN switch reports a received ARP message to the SDN CONTROLLER through a Packet-In message.
2) ARP request processing
The SDN switch x receives the ARP request, firstly executes the 1 st stage processing logic, reports the ARP request to the SDN controller through a Packet-In message according to the corresponding flow table item.
After receiving the Packet-In message, the SDN controller performs decoding analysis, and records a Sender IP, a Sender MAC, an SDN switch x reporting an ARP request and a port y of the SDN switch for receiving the ARP request.
The SDN controller sends the ARP request message to all SDN switches managed by the SDN controller and instructs the SDN switches to broadcast the ARP request message.
According to the reported ARP request, the SDN controller sends a piece of processing logic to m-level processing logic in the SDN switch x: the matching field is { destination MAC is Sender MAC }, and the action field is { forwarding from port y }.
Taking an OpenFlow protocol as an example for an interface between an SDN switch and an SDN controller, the processing procedure is as follows:
the SDN switch x receives the ARP request and performs flow entry matching for the level 1 processing logic. According to the matched flow table items, the SDN switch reports the ARP request to the SDN controller through a Packet-In message. The SDN controller receives the Packet-In message, performs decoding analysis, and records a Sender IP, a Sender MAC, an SDN switch x reporting the ARP request and a port y of the SDN switch for receiving the ARP request.
The SDN controller sends an ARP request to all SDN switches it manages through a Packet-Out message and instructs the SDN switches to broadcast the ARP request.
According to the reported ARP request, the SDN controller sends a stream table item to table m in SDN switch x: the matching field is { destination MAC is Sender MAC }, and the action field is { forwarding from port y }.
3) ARP response processing
Assuming that the SDN switch a receives the ARP response message, first executing the level 1 processing logic, the SDN switch reports the ARP response message to the SDN controller. The SDN controller receives the report message, performs decoding analysis, records the Sender IP, the Sender MAC, the SDN switch a reporting the ARP response and the port b of the SDN switch for receiving the ARP response message, and searches the corresponding SDN switch x and the port y according to the Target IP address Target IP and the Target MAC address Target MAC in the ARP response message.
The SDN controller sends an ARP response message to SDN switch x, instructing switch x to forward the ARP response message from port y.
According to the reported ARP response message, the SDN controller sends processing logic at the mth level to the SDN switch a: the matching field is { destination MAC is Sender MAC }, and the action field is { forwarding from port b }.
Taking an OpenFlow protocol as an example for an interface between an SDN switch and an SDN controller, the processing procedure is as follows:
and the SDN switch a receives the ARP response and performs flow table item matching. According to the matched flow table items, the SDN switch reports the ARP response to the SDN controller through a Packet-In message. The SDN controller receives the Packet-In message, performs decoding analysis, records a Sender IP, a Sender MAC, an SDN switch a reporting an ARP response and a port b of the SDN switch for receiving the ARP response, and searches a corresponding SDN switch x and a corresponding port y according to a Target IP and a Target MAC In the ARP response. The SDN controller sends an ARP response to SDN switch x through a Packet-Out message, instructing switch x to forward the ARP response from port y.
According to the reported ARP response, the SDN controller sends a flow table entry to table m in SDN switch a: the matching field is { destination MAC is Sender MAC }, and the action field is { forwarding from port b }.
As an optional implementation manner, the message received in the message switch received in the switch is uplink data, and the destination MAC is a MAC address of a DN node of the data network; or the message is downlink data, and the destination MAC is the MAC address of the RAN node.
As shown in fig. 8, an embodiment of the present invention further provides a data processing method based on an SDN network, which is applied to an SDN switch, where the method includes:
step 801, receiving a message, where the message includes an ARP message sent by a non-SDN device;
the SDN switch is directly connected with the non-SDN device, the messages received by the SDN switch comprise messages received from the SDN controller and messages received from the non-SDN device, and the messages received from the non-SDN device can comprise other data messages besides ARP messages, wherein the ARP messages comprise ARP request messages and ARP response messages.
Step 802, reporting the ARP message to an SDN controller;
step 803, receiving processing logic at an mth level sent by the SDN controller, where m is a positive integer greater than 1;
The manner in which the SDN controller generates the mth level processing logic refers to the above description, and it is not repeated here, and it is to be noted that when the SDN switch receives a packet, the SDN controller first executes processing logic operation according to the 1 st level processing logic, and then, in the process of executing the processing logic, performs level jump according to a processing logic level jump instruction, which may be a step-by-step jump or a cross-level jump.
As an optional implementation manner, the SDN switch receives the level 1 processing logic sent by the SDN controller, and details of the level 1 processing logic sent by the SDN controller are described in the foregoing embodiments and are not repeated herein. Through the level 1 processing logic sent by the SDN controller, the SDN switch is enabled to report all ARP messages received from non-SDN devices to the SDN controller. Then for ARP request and ARP response messages, the SDN switch reports the ARP messages to an SDN controller according to the level 1 processing logic.
Step 804, when the received message jumps to the processing logic of the mth level, the message with the destination MAC being the Sender MAC of the ARP message is forwarded from the port that receives the ARP message.
When the SDN switch receives a message, firstly, executing processing logic operation according to the 1 st stage processing logic, then, in the process of executing the processing logic, performing level jump according to the processing logic level jump instruction, when the SDN switch jumps to the m-th stage processing logic, the matching domain of the processing logic is the Sender MAC of the ARP message, the action domain is to execute forwarding from a port for receiving the ARP message, and if the destination MAC of the received message is successfully matched with the destination MAC of the matching domain, forwarding the message from the corresponding port according to the instruction of the action domain.
As shown in fig. 9, in the embodiment of the present invention, an SDN switch is directly connected to a plurality of non-SDN devices (S1, S2, …, sn).
When the SDN switch receives the data message, the data message is matched step by step from the 1-stage processing logic, and finally the data message is jumped to the m-stage processing logic for matching forwarding. The m-level processing logic corresponds to a plurality of flow entries, each flow entry corresponding to a processing logic operation, e.g., one of the flow entries is used to implement logic: forwarding a message with the destination MAC being the MAC of S1 from the port 1, wherein the other flow table entry is used for realizing logic: and forwarding the message with the destination MAC as the MAC of S2 from the port 2.
When an interface between the SDN switch and the SDN controller adopts an OpenFlow protocol, the processing procedure is as follows:
and the SDN switch receives the data message, performs matching processing on the message according to processing logic of the multi-level flow table from table 0, and finally performs matching forwarding on the data message by jumping to table m through construction Goto-table.
As an alternative embodiment, to support a logical processing operation on a packet, the method further includes:
when the received message jumps to the nth processing logic, logic processing operation is carried out on the message according to the nth processing sent by the SDN controller, wherein n is a positive integer except m. The header information of the network layer and/or the transmission layer can be checked, and the header information of the data message can be modified.
The method provided by the embodiment of the invention can be applied to a 5G network, but is not limited to, in the 5G network based on SDN, a core network is realized by adopting SDN technology, and forwarding plane equipment adopts an SDN switch. The SDN switch is connected with the DN node through an N6 interface and is used for sending the uplink data sent by the UPF to the DN node. As an optional implementation manner, the message is uplink data, and the destination MAC is a MAC address of a DN node of the data network.
According to the ARP message from the DN node reported by the SDN switch, the SDN controller sends processing logic at the mth level to the SDN switch, the matching domain of the processing logic is the Sender MAC of the ARP message, and the action domain is the port for receiving the ARP message from the SDN switch for forwarding.
Specifically, as shown in fig. 10, the SDN switch is directly connected to a plurality of non-SDN devices (S1, S2, …, sn) through an N6 interface, and uplink data of the N6 interface is forwarded as follows:
when the SDN switch receives the data message, the data message is subjected to matching processing from the level 1 processing logic, and finally, the matching forwarding is carried out by jumping to the level m processing logic.
The SDN switch is connected with the RAN node through an N3 interface and is used for sending downlink data sent by the UPF to the RAN node. As another optional implementation manner, the message is downlink data, and the destination MAC is a MAC address of a RAN node of the radio access network. According to the ARP message from the RAN reported by the SDN switch, the SDN controller sends processing logic at the mth level to the SDN switch, wherein the processing logic matching domain is the Sender MAC of the ARP message, and the action domain is the port for receiving the ARP message from the SDN switch for forwarding.
Specifically, as shown in fig. 11, the SDN switch is directly connected to a plurality of base stations (RAN 1, RAN2, …, RANn) through an N3 interface, and downstream data of the N3 interface is forwarded as follows:
when the SDN switch receives the data message, the data message is matched from the 1-level processing logic, and finally, the matching forwarding is carried out by jumping to the m-level processing logic.
When an interface between the SDN switch and the SDN controller adopts an OpenFlow protocol, the processing procedure is as follows:
the SDN switch receives the data message, performs matching processing on the message according to the processing logic of the multi-level flow table from table 0, and finally performs matching forwarding by jumping to table m through construction Goto-table.
Example 3
The above description has been given of an SDN network-based data processing method in the present invention, and the following description describes a device and equipment for executing the above SDN network-based data processing.
Referring to fig. 12, an embodiment of the present invention provides a data processing apparatus based on an SDN network, including:
a message receiving module 1201, configured to receive an ARP message reported by an SDN switch;
a message parsing module 1202, configured to parse the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch that receives the ARP message;
The flow table entry sending module 1203 is configured to send, to the SDN switch, processing logic at an mth level to instruct forwarding a message with a destination MAC being a Sender MAC of the ARP message from a port that receives the ARP message, where m is a positive integer greater than 1.
Optionally, the flow table entry sending module is further configured to:
and sending processing logic at the 1 st level to an SDN switch connected with the SDN controller to instruct the SDN switch to report the received ARP message to the SDN controller.
Optionally, the flow table entry sending module is further configured to:
and sending processing logic at the nth stage to an SDN switch connected with the SDN controller to indicate to perform logic processing operation on the message.
Optionally, the ARP message includes an ARP request message and an ARP response message, where:
broadcasting the ARP request message through an SDN switch;
receiving an ARP response message reported by a connected switch, wherein the ARP response message is a message sent by non-SDN equipment which receives the ARP request message;
and sending the ARP response message to an SDN switch reporting the ARP request message, and indicating the SDN switch to forward from a port receiving the ARP request message.
Optionally, the matching domain of the processing logic is a destination MAC and the action domain is a Sender MAC of the ARP message, and the action domain is a port for forwarding the ARP message.
Optionally, the message is uplink data, and the destination MAC is a MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
The above-mentioned data processing device based on an SDN network provided by the embodiment of the present invention and the above-mentioned data processing method based on an SDN network provided by the above-mentioned embodiment 1 of the present invention belong to the same inventive concept, and various implementations of the above-mentioned data processing method based on an SDN network provided by the above-mentioned embodiment 1 and applied to an SDN controller may be applied to the data processing device based on an SDN network in this embodiment to implement the foregoing implementation, and will not be repeated here.
Referring to fig. 13, an embodiment of the present invention further provides a data processing apparatus based on an SDN network, where the apparatus includes:
a message receiving module 1301, configured to receive an ARP message reported by an SDN switch;
a message reporting module 1302, configured to report the ARP message to an SDN controller;
a flow table entry receiving module 1303, configured to receive processing logic at an mth stage sent by the SDN controller, where m is a positive integer greater than 1;
And the message processing module 1304 is configured to forward, when the received message jumps to the processing logic of the mth level, a message whose destination MAC is a Sender MAC of the ARP message from a port that receives the ARP message.
Optionally, the flow table entry receiving module is further configured to receive processing logic of level 1 sent by the SDN controller;
and reporting the ARP message to an SDN controller according to the level 1 processing logic.
Optionally, the message processing module is further configured to:
when the received message jumps to the nth processing logic, logic processing operation is carried out on the message according to the nth processing sent by the SDN controller.
Optionally, the ARP message includes an ARP request message and an ARP response message.
Optionally, the matching domain of the processing logic is a destination MAC and the action domain is a Sender MAC of the ARP message, and the action domain is a port for forwarding the ARP message.
Optionally, the message is uplink data, and the destination MAC is a MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
The above-mentioned data processing device based on an SDN network provided by the embodiment of the present invention and the above-mentioned data processing method based on an SDN network provided by the above-mentioned embodiment 1 of the present invention belong to the same inventive concept, and various implementations of the above-mentioned data processing method based on an SDN network provided by the above-mentioned embodiment 1 and applied to a switch may be implemented by the data processing device based on an SDN network in this embodiment, which will not be repeated here.
The SDN network-based data processing apparatus in the embodiment of the present application is described above from the point of view of a modularized functional entity, and the SDN network-based data processing device in the embodiment of the present application is described below from the point of view of hardware processing.
Example 4
Referring to fig. 14, another embodiment of an SDN network-based data processing device in an embodiment of the present application includes:
processor 1400, memory 1401, transceiver 1402, and bus interface 1403.
The processor 1400 is responsible for managing the bus architecture and general processing, and the memory 1401 may store data used by the processor 1400 in performing operations. The transceiver 1402 is used to receive and transmit data under the control of the processor 1400.
The bus architecture may include any number of interconnecting buses and bridges, and in particular, one or more processors represented by the processor 700 and various circuits of the memory represented by the memory 1401. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The processor 1400 is responsible for managing the bus architecture and general processing, and the memory 1401 may store data used by the processor 1400 in performing operations.
The flow disclosed in the embodiments of the present invention may be applied to the processor 1400 or implemented by the processor 1400. In implementation, the steps of the signal processing flow may be performed by integrated logic circuitry in hardware or instructions in software in processor 1400. The processor 1400 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, and may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 1401, and the processor 1400 reads the information in the memory 1401 and completes the steps of the signal processing flow in combination with its hardware.
Specifically, the processor 1400 is configured to read a program in the memory 1401 and execute:
the processor is configured to read the program in the memory and execute:
receiving an ARP message reported by an SDN switch;
analyzing the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
and sending processing logic at the mth level to the SDN switch to indicate a message of which the target MAC is a Sender MAC of the ARP message, forwarding the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
Optionally, the processor is further configured to:
and sending processing logic at the 1 st level to an SDN switch connected with the SDN controller to instruct the SDN switch to report the received ARP message to the SDN controller.
Optionally, the processor is further configured to:
and sending processing logic at the nth stage to an SDN switch connected with the SDN controller to indicate to perform logic processing operation on the message.
Optionally, the ARP message includes an ARP request message and an ARP response message, where the processor is specifically configured to:
broadcasting the ARP request message through an SDN switch;
Receiving an ARP response message sent by a connected switch, wherein the ARP response message is a message sent by non-SDN equipment which receives the ARP request message;
and sending the ARP response message to an SDN switch reporting the ARP request message, and indicating the SDN switch to forward from a port receiving the ARP request message.
Optionally, the matching domain of the processing logic is a destination MAC and the action domain is a Sender MAC of the ARP message, and the action domain is a port for forwarding the ARP message.
Optionally, the message is uplink data, and the destination MAC is a MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
The above-mentioned data processing device based on an SDN network provided by the embodiment of the present invention and the data processing method based on an SDN network provided by the above-mentioned embodiment 1 of the present invention, which are applied to an SDN controller, belong to the same inventive concept, and various implementations of the data processing method based on an SDN network provided by the above-mentioned embodiment 1 may be applied to the data processing device based on an SDN network in this embodiment to implement the foregoing implementation, and will not be repeated here.
Referring to fig. 15, another embodiment of an SDN network-based data processing device in an embodiment of the present application includes:
Processor 1500, memory 1501, transceiver 1502 and bus interface 1503.
The processor 1500 is responsible for managing the bus architecture and general processing, and the memory 1501 may store data used by the processor 1500 in performing operations. The transceiver 1502 is configured to receive and transmit data under the control of the processor 1500.
The bus architecture may comprise any number of interconnecting buses and bridges, and in particular one or more processors represented by the processor 1500 and various circuits of the memory, represented by the memory 1501. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The processor 1500 is responsible for managing the bus architecture and general processing, and the memory 1501 may store data used by the processor 1500 in performing operations.
The flow disclosed in the embodiments of the present invention may be applied to the processor 1500 or implemented by the processor 1500. In implementation, the steps of the signal processing flow may be performed by integrated logic circuitry of hardware in the processor 1500 or instructions in the form of software. The processor 1500 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, and may implement or perform the methods, steps and logic blocks disclosed in embodiments of the invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 1501, and the processor 1500 reads information in the memory 1501 and completes steps of the signal processing flow in combination with its hardware.
Specifically, the processor 1500 is configured to read a program in the memory 1501 and execute:
receiving a message, wherein the message comprises an ARP message sent by non-SDN equipment;
reporting the ARP message to an SDN controller, and receiving processing logic at an mth level sent by the SDN controller, wherein m is a positive integer greater than 1;
when the received message is jumped to the processing logic of the mth level, the message of which the target MAC is the Sender MAC of the ARP message is forwarded from a port for receiving the ARP message.
Optionally, the processor is further configured to:
receiving processing logic at a 1 st level sent by the SDN controller;
and reporting the ARP message to an SDN controller according to the level 1 processing logic.
Optionally, the processor is further configured to:
when the received message jumps to the nth processing logic, logic processing operation is carried out on the message according to the nth processing logic sent by the SDN controller.
Optionally, the ARP message includes an ARP request message and an ARP response message.
Optionally, the matching domain of the processing logic is a destination MAC and the action domain is a Sender MAC of the ARP message, and the action domain is a port for forwarding the ARP message.
Optionally, the message is uplink data, and the destination MAC is a MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
The above-mentioned data processing device based on an SDN network provided by the embodiment of the present invention and the data processing method based on an SDN network applied to a switch provided by the above-mentioned embodiment 1 of the present invention belong to the same inventive concept, and various implementations of the data processing method based on an SDN network provided by the above-mentioned embodiment 1 may be applied to the data processing device based on an SDN network in this embodiment to implement the foregoing implementation, and will not be repeated here.
The embodiment of the present invention also provides a computer readable storage medium, including instructions, which when executed on a computer, cause the computer to perform the random access configuration and the random access method provided in the above embodiment.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing has described in detail the technical solutions provided herein, and specific examples have been used to illustrate the principles and embodiments of the present application, where the above examples are only used to help understand the methods and core ideas of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (13)

1. The data processing method based on the SDN network is applied to an SDN controller and is characterized by comprising the following steps of:
transmitting processing logic at level 1 to an SDN switch connected to the SDN controller to instruct the SDN switch to report a received ARP message to the SDN controller;
analyzing the ARP message to obtain a Sender media access control Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
sending processing logic at the mth level to the SDN switch to indicate a message with a destination MAC as a Sender MAC of the ARP message, forwarding the message from a port for receiving the ARP message, wherein m is a positive integer greater than 1, and the processing logic at the mth level is the processing logic at the last level corresponding to the message forwarding;
and sending processing logic at the nth stage to an SDN switch connected with the SDN controller to instruct logic processing operation to the message, wherein the value range of n is a positive integer which is more than 1 except m.
2. The method of claim 1, wherein the ARP message comprises an ARP request message and an ARP response message, wherein:
broadcasting the ARP request message through an SDN switch;
Receiving an ARP response message reported by a connected SDN switch, wherein the ARP response message is a message sent by non-SDN equipment which receives the ARP request message;
and sending the ARP response message to an SDN switch reporting the ARP request message, and indicating the SDN switch to forward from a port receiving the ARP request message.
3. The method of claim 1, wherein the matching field of the processing logic is a destination MAC for the ARP message and the action field is to perform forwarding from a port that receives the ARP message.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the message is uplink data, and the destination MAC is the MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
5. A data processing method based on an SDN network, applied to an SDN switch, characterized in that the method includes:
receiving a 1 st stage processing logic sent by an SDN controller, and receiving a message, wherein the message comprises an ARP message sent by non-SDN equipment;
reporting the ARP message to an SDN controller;
receiving processing logic at an mth level, wherein m is a positive integer greater than 1, sent by the SDN controller, and the processing logic at the mth level is processing logic at a last level corresponding to message forwarding;
When the received message is jumped to the processing logic of the mth level, forwarding the message of which the target MAC is the Sender MAC of the ARP message from a port for receiving the ARP message;
receiving processing logic at an nth stage sent by the SDN controller, wherein the value range of n is a positive integer which is more than 1 except m;
when the received message jumps to the processing logic of the nth stage, logic processing operation is carried out on the message according to the processing of the nth stage sent by the SDN controller.
6. A SDN network based data processing device, characterized in that the device acts as an SDN controller, comprising: a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to read the program in the memory and execute:
transmitting processing logic at level 1 to an SDN switch connected to the SDN controller to instruct the SDN switch to report a received ARP message to the SDN controller;
analyzing the ARP message to obtain a Sender media access control Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
sending processing logic at the mth level to the SDN switch to indicate a message with a destination MAC as a Sender MAC of the ARP message, forwarding the message from a port for receiving the ARP message, wherein m is a positive integer greater than 1, and the processing logic at the mth level is the processing logic at the last level corresponding to the message forwarding;
And sending processing logic at the nth stage to an SDN switch connected with the SDN controller to instruct logic processing operation to the message, wherein the value range of n is a positive integer which is more than 1 except m.
7. The apparatus of claim 6, wherein the ARP message comprises an ARP request message and an ARP response message, and wherein the processor is configured to:
broadcasting the ARP request message through an SDN switch;
receiving an ARP response message reported by a connected switch, wherein the ARP response message is a message sent by non-SDN equipment which receives the ARP request message;
and sending the ARP response message to an SDN switch reporting the ARP request message, and indicating the SDN switch to forward from a port receiving the ARP request message.
8. The apparatus of claim 6, wherein the matching field of the processing logic is a destination MAC for the ARP message and the action field is to perform forwarding from a port that receives the ARP message.
9. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the message is uplink data, and the destination MAC is the MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is the MAC address of the RAN node.
10. A data processing device based on an SDN network, wherein the device acts as an SDN switch, comprising: a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to read the program in the memory and execute:
receiving a 1 st stage processing logic sent by an SDN controller, and receiving a message, wherein the message comprises an ARP message sent by non-SDN equipment;
reporting the ARP message to an SDN controller;
receiving processing logic at an mth level, wherein m is a positive integer greater than 1, sent by the SDN controller, and the processing logic at the mth level is processing logic at a last level corresponding to message forwarding;
when the received message is jumped to the processing logic of the mth level, forwarding the message of which the target MAC is the Sender MAC of the ARP message from a port for receiving the ARP message;
receiving processing logic at an nth stage sent by the SDN controller, wherein the value range of n is a positive integer which is more than 1 except m;
when the received message jumps to the processing logic of the nth stage, logic processing operation is carried out on the message according to the processing of the nth stage sent by the SDN controller.
11. A data processing apparatus based on an SDN network, the apparatus acting as an SDN controller, comprising:
a message receiving module, configured to send processing logic located at level 1 to an SDN switch connected to the SDN controller, so as to instruct the SDN switch to report a received ARP message to the SDN controller;
the message analysis module is used for analyzing the ARP message to obtain a Sender media access control Sender MAC of the ARP message and a port of the SDN switch for receiving the ARP message;
a flow table entry sending module, configured to send processing logic at an mth stage to the SDN switch, to instruct a message with a destination MAC being a Sender MAC of the ARP message to be forwarded from a port that receives the ARP message, where m is a positive integer greater than 1, where the processing logic at the mth stage is processing logic at a last stage corresponding to forwarding the message; and the processing logic at the nth stage is further used for sending the processing logic at the nth stage to an SDN switch connected with the SDN controller so as to instruct the logical processing operation to the message, wherein the value range of n is a positive integer which is larger than 1 except m.
12. A data processing apparatus based on an SDN network, the apparatus acting as an SDN switch, comprising:
The message receiving module is used for receiving the 1 st stage processing logic sent by the SDN controller and receiving a message, wherein the message comprises an ARP message sent by non-SDN equipment;
a message reporting module, configured to report the ARP message to an SDN controller;
the flow table entry receiving module is used for receiving processing logic at an mth level sent by the SDN controller, wherein m is a positive integer greater than 1, and the processing logic at the mth level is the processing logic at the last level corresponding to message forwarding; the processing logic is further used for receiving processing logic which is sent by the SDN controller and is positioned at an nth stage, and the value range of n is a positive integer which is more than 1 except m;
the message processing module is used for forwarding a message with the target MAC as the Sender MAC of the ARP message from a port for receiving the ARP message when the received message is jumped to the processing logic of the mth level; and the logic processing operation is performed on the received message according to the nth stage processing sent by the SDN controller when the received message is jumped to the nth stage processing logic.
13. A computer program medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4 or the steps of the method according to claim 5.
CN202110026323.8A 2021-01-08 2021-01-08 SDN network-based data processing method, device and equipment Active CN114760249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110026323.8A CN114760249B (en) 2021-01-08 2021-01-08 SDN network-based data processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110026323.8A CN114760249B (en) 2021-01-08 2021-01-08 SDN network-based data processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN114760249A CN114760249A (en) 2022-07-15
CN114760249B true CN114760249B (en) 2023-08-04

Family

ID=82325602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110026323.8A Active CN114760249B (en) 2021-01-08 2021-01-08 SDN network-based data processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN114760249B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248539B (en) * 2023-01-04 2023-10-24 国网安徽省电力有限公司信息通信分公司 SDN logic network state information monitoring system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150030099A (en) * 2013-09-11 2015-03-19 한국전자통신연구원 System and method for address resolution
WO2015184584A1 (en) * 2014-06-03 2015-12-10 华为技术有限公司 Method, controller, switch and system for transmitting information between openflow tables
CN105338003A (en) * 2015-12-09 2016-02-17 中国电子科技集团公司第二十八研究所 Firewall implementation method applied to software defined networking
CN105591963A (en) * 2015-08-27 2016-05-18 杭州华三通信技术有限公司 Message forwarding method and equipment in SDN
WO2016090900A1 (en) * 2014-12-12 2016-06-16 中兴通讯股份有限公司 Flow table update method and device
WO2016115698A1 (en) * 2015-01-21 2016-07-28 华为技术有限公司 Data packet forwarding method, apparatus and device
CN105992297A (en) * 2015-02-12 2016-10-05 电信科学技术研究院 SDN-based connection management and forwarding control method and related equipment
WO2017015839A1 (en) * 2015-07-27 2017-02-02 华为技术有限公司 Sdn-based arp realization method and apparatus
CN107395532A (en) * 2017-07-11 2017-11-24 北京航空航天大学 A kind of multi-tenant virtual network partition method based on SDN
CN108390833A (en) * 2018-02-11 2018-08-10 北京邮电大学 A kind of software defined network transmission control method based on virtual Domain
CN109428949A (en) * 2017-08-30 2019-03-05 杭州达乎科技有限公司 A kind of method and apparatus that ARP proxy is realized based on SDN
CN111182085A (en) * 2018-11-12 2020-05-19 中移(杭州)信息技术有限公司 Method, system, device and storage medium for controlling message forwarding based on multi-stage flow table
CN112187517A (en) * 2020-09-07 2021-01-05 烽火通信科技股份有限公司 Configuration method, platform and controller for SDN virtual routing of data center

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI543566B (en) * 2015-05-12 2016-07-21 財團法人工業技術研究院 Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150030099A (en) * 2013-09-11 2015-03-19 한국전자통신연구원 System and method for address resolution
WO2015184584A1 (en) * 2014-06-03 2015-12-10 华为技术有限公司 Method, controller, switch and system for transmitting information between openflow tables
WO2016090900A1 (en) * 2014-12-12 2016-06-16 中兴通讯股份有限公司 Flow table update method and device
WO2016115698A1 (en) * 2015-01-21 2016-07-28 华为技术有限公司 Data packet forwarding method, apparatus and device
CN105992297A (en) * 2015-02-12 2016-10-05 电信科学技术研究院 SDN-based connection management and forwarding control method and related equipment
WO2017015839A1 (en) * 2015-07-27 2017-02-02 华为技术有限公司 Sdn-based arp realization method and apparatus
CN105591963A (en) * 2015-08-27 2016-05-18 杭州华三通信技术有限公司 Message forwarding method and equipment in SDN
CN105338003A (en) * 2015-12-09 2016-02-17 中国电子科技集团公司第二十八研究所 Firewall implementation method applied to software defined networking
CN107395532A (en) * 2017-07-11 2017-11-24 北京航空航天大学 A kind of multi-tenant virtual network partition method based on SDN
CN109428949A (en) * 2017-08-30 2019-03-05 杭州达乎科技有限公司 A kind of method and apparatus that ARP proxy is realized based on SDN
CN108390833A (en) * 2018-02-11 2018-08-10 北京邮电大学 A kind of software defined network transmission control method based on virtual Domain
CN111182085A (en) * 2018-11-12 2020-05-19 中移(杭州)信息技术有限公司 Method, system, device and storage medium for controlling message forwarding based on multi-stage flow table
CN112187517A (en) * 2020-09-07 2021-01-05 烽火通信科技股份有限公司 Configuration method, platform and controller for SDN virtual routing of data center

Also Published As

Publication number Publication date
CN114760249A (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN109412964B (en) Message control method and network device
CN102546383B (en) The method and apparatus of the standard agreement authentication mechanism of switching fabric system deploy
RU2587677C2 (en) Load reduction system and method of reducing load
CN113676361A (en) On-demand probing for quality of experience metrics
US20210184982A1 (en) Method, device and system for controlling quality of service
US9325613B2 (en) Communication device and address learning method
US9998298B2 (en) Data transmission method, apparatus, and computer storage medium
US8233390B2 (en) Priority and source aware packet memory reservation and flow control in forwarding planes
CN101471854A (en) Method and device for forwarding message
JP2022532731A (en) Avoiding congestion in slice-based networks
JP2006506845A (en) How to select a logical link for a packet in a router
CN112866435B (en) MAC address aging processing method and equipment
US20110022721A1 (en) Method and system for packetizing data for servicing traffic end-to-end
WO2023093727A1 (en) Data transmission method and system for time-sensitive network
CN115022182B (en) Real-time flow scheduling optimization method for train communication network based on QSILP algorithm
CN114760249B (en) SDN network-based data processing method, device and equipment
CN113259252A (en) Using protocol independent multicast join/prune response control protocol independent multicast join/prune messages
JP6055553B2 (en) Queue scheduling method, apparatus and system
US11153214B2 (en) In service flow capability update in guaranteed bandwidth multicast network
WO2023216726A1 (en) Various network transmission methods and devices related thereto
CN108337181B (en) Method and device for managing congestion of switching network
US11916770B2 (en) Pinpointing sources of jitter in network flows
CN116938851A (en) Message transmission method and related equipment
CN114070784A (en) Message processing method and device, electronic equipment and storage medium
US11362928B2 (en) Method, electronic device and computer program product for generating network topology

Legal Events

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