CN114760249A - 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
CN114760249A
CN114760249A CN202110026323.8A CN202110026323A CN114760249A CN 114760249 A CN114760249 A CN 114760249A CN 202110026323 A CN202110026323 A CN 202110026323A CN 114760249 A CN114760249 A CN 114760249A
Authority
CN
China
Prior art keywords
message
arp
sdn
receiving
sdn switch
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.)
Granted
Application number
CN202110026323.8A
Other languages
Chinese (zh)
Other versions
CN114760249B (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

Images

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; sending processing logic located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message and forward 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, reduces the transmission delay of data messages, can effectively reduce the number of sent processing logics and improves the utilization rate of SDN switch logic resources.

Description

SDN-based data processing method, device and equipment
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a data processing method, device, and apparatus based on an SDN network.
Background
An SDN (Software Defined Network) Network realizes separation of a control plane and a data plane, and the SDN Network centralizes the control plane into an SDN controller, so as to conveniently perform centralized management and control on devices in the whole Network, provide a smooth evolution capability meeting current and future requirements for the internet, and become a development direction of the future Network.
The SDN switch is connected with the 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 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 sent flow table item requires to be matched with a target MAC and a source MAC at the same time, so that more logic resources are occupied; the flow Table entry learned by the MAC learning method is in the same level in the processing logic of the switch as the flow Table entry for processing the normal packet, that is, in Table0, which results in a great increase in complexity of the design and arrangement of the processing logic of the switch; because the flow table entry for MAC learning is directly forwarded after matching the destination MAC and the source MAC, it means that no other flow table skips are performed, and no other processing logic operation can be performed, such as the header information of the network layer and/or the transmission layer cannot be verified, which may cause the forwarding of an illegal message; the header information of the data message cannot be modified, etc.
Disclosure of Invention
The invention provides a data processing method, a data processing device and data processing equipment based on an SDN (software defined network), which are used for solving the problems that the existing topology is high in complexity, the data message transmission delay is increased, the switch is complex in processing logic coding, so that more logic resources are occupied, and other processing logic operations cannot be performed.
According to a first aspect of the embodiments 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;
sending processing logic located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message and forward the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
As an optional implementation, the method further comprises:
sending, to an SDN switch connected to the SDN controller, processing logic at a level 1 to instruct the SDN switch to report the received ARP packet to the SDN controller.
As an optional implementation, the method further comprises:
and sending processing logic located at the nth stage to an SDN switch connected with the SDN controller to indicate that the message is subjected to logic processing operation.
As an optional implementation manner, the ARP packet includes an ARP request packet and an ARP response packet, 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 a non-SDN device 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 of the ARP packet, and the action domain is to perform forwarding from a port receiving the ARP packet.
As an optional implementation manner, the packet is uplink data, and the destination MAC is an MAC address of a DN node in a data network; or
The message is downlink data, and the destination MAC is an MAC address of a Radio Access Network (RAN) node.
According to a second aspect of the embodiments 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 a non-SDN device;
reporting the ARP message to an SDN controller;
receiving processing logic located at an mth stage and sent by the SDN controller, wherein m is a positive integer greater than 1;
and when the received message is jumped to the m-th level processing logic, forwarding the message of which the destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message.
According to a third aspect of embodiments of the present invention, there is provided a data processing device based on an SDN network, the device serving as an SDN control, including: a memory and a processor;
wherein the memory is for storing a computer program;
the processor is used for reading the program in the memory and executing:
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;
sending processing logic located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message and forward the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
As an optional implementation, the processor is further configured to:
sending, to an SDN switch connected to the SDN controller, processing logic at a level 1 to instruct the SDN switch to report the received ARP packet to the SDN controller.
As an optional implementation, the processor is further configured to:
and sending processing logic located at the nth stage to an SDN switch connected with the SDN controller to indicate that the message is subjected to logic processing operation.
As an optional implementation manner, the ARP packet includes an ARP request packet and an ARP response packet, 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 of the ARP packet, and the action domain is to perform forwarding from a port receiving the ARP packet.
As an optional implementation manner, the packet is uplink data, and the destination MAC is an MAC address of a DN node in a data network; or alternatively
The message is downlink data, and the destination MAC is an MAC address of a Radio Access Network (RAN) node.
According to a fourth aspect of the embodiments of the present invention, there is provided a data processing device based on an SDN network, where the device serves as a switch, and includes: a memory and a processor;
wherein the memory is for storing a computer program;
the processor is used for reading the program in the memory and executing:
receiving a message, wherein the message comprises an ARP message sent by a non-SDN device;
reporting the ARP message to an SDN controller;
receiving processing logic located at an mth stage and sent by the SDN controller, wherein m is a positive integer greater than 1;
and when the received message is jumped to the m-th level processing logic, forwarding the message of which the destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message.
According to a fourth aspect of the embodiments of the present invention, there is provided a data processing apparatus based on an SDN network, the apparatus including:
the message receiving module is used for receiving the ARP message 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 item sending module is used for sending processing logic positioned at the mth level to the SDN switch so as to indicate that a target MAC is a Sender MAC message of the ARP message and forward the message from a port for receiving the ARP message, wherein m is a positive integer larger than 1.
According to a fifth aspect of the embodiments of the present invention, there is provided a data processing apparatus based on an SDN network, the apparatus including:
the message receiving module is used for receiving a message, wherein the message comprises an ARP message sent by a non-SDN device;
a flow message reporting module, configured to report the ARP message to an SDN controller;
a flow table entry receiving module, configured to receive processing logic located at an mth level and 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 destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message when the received message is jumped to the mth level processing logic.
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 of the first aspect described above, or performs the steps of the method of the second aspect described above.
According to a seventh aspect of the embodiments of the present invention, there is provided a chip, which is coupled to a memory in a device, so that when the chip calls a program instruction stored in the memory during running, the chip implements the above aspects of the embodiments of the present application and any method that may be involved in 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 a method that implements the various aspects of the embodiments of the present application and any possible ones of the various aspects.
The data processing method, the data processing device and the data processing equipment based on the SDN network have the following beneficial effects that:
by sending the flow entries with the destination addresses as matching entries, direct forwarding of data of the non-SDN devices is supported, namely, an SDN switch is supported to be directly connected with the non-SDN devices, so that the complexity of network topology is reduced, and the transmission delay of data messages is reduced;
because the flow table items are only matched with the destination MAC, corresponding data channels cannot be established from different source MACs to the same destination MAC, the number of sent processing logics can be effectively reduced, and the utilization rate of SDN switch logic resources is improved;
and sending the flow entry for data forwarding to the m-level processing logic, so that the flow entry 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 SDN switch processing logic.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an SDN network architecture in the related art;
fig. 2 is a schematic diagram illustrating connection between an SDN switch and a non-SDN device in the related art;
FIG. 3 is a diagram illustrating a logic of processing a multi-stage flow table according to the related art;
fig. 4 is a schematic diagram of a data processing system based on an SDN network according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a SDN network-based data processing method applied to an SDN controller according to 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 according to 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 according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of a data processing method based on an SDN network applied to a switch according to 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 provided in an embodiment of the present invention;
fig. 10 is a schematic diagram of an SDN switch according to an embodiment of the present invention directly connected to a plurality of DN nodes through an N6 interface;
fig. 11 is a schematic diagram illustrating 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 apparatus based on an SDN network according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another SDN network-based data processing apparatus 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 clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the present application, "and/or" describes an association relationship of associated objects, which means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
For convenience of understanding, terms referred to 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 programmability allows the application to program and schedule the network resources, and realizes the seamless combination of the application and the network resources.
Architecture of SDN network as shown in fig. 1, network devices in the SDN network are typically OpenFlow switches, and in a broader sense, the network devices may include forwarding devices with all forwarding rules 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 node is called an SDN switch and is responsible for forwarding data according to entries in a flow table, and the current SDN switches all support an OpenFlow protocol. The communication between the controller and the switch depends on the OpenFlow protocol, and mainly reports unknown packets, reports of network states and flow statistics, and sends flow rules.
The data forwarding mechanism in an SDN network is very different from the packet forwarding mechanism in a traditional IP network. In the SDN domain, the SDN switch performs packet processing strictly according to flow entries, and the composition of the flow entries is shown in table 1:
TABLE 1
Figure BDA0002890399630000081
According to services of different users, corresponding flow table items are sent to corresponding switches through a controller according to service requirements, a plurality of different flow table items exist in each switch, when an SDN switch receives a packet data packet, header information of the packet data packet is analyzed firstly, matching is carried out in a table according to the priority of the flow table items from high to low, and when matching is carried out specifically with a matching domain in the flow table items, if matching is successful, corresponding operation is carried out according to Instructions in the flow table items. If the header information of the packet does not match the flow table entry, the SDN switch discards the packet data packet or executes the instruction(s) of the table-miss flow table entry (if present). Each flow entry is distinguished by a cookie and Flags, and an expired flow entry is deleted after timeout. And counting the number of the data packets successfully matched through a counter in the flow table entry.
As shown in fig. 2, the SDN switch is connected to a plurality of non-SDN devices, and the SDN edge switch is connected to the plurality of non-SDN devices (S1, S2, …, Sn) through an ethernet switch or a route, wherein 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 a non-SDN device (S1/S2/…/Sn), the data message is processed according to the processing logic matched with the switch, and finally the specified message is 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, and as shown in fig. 3, the processing procedure is that after receiving a packet, the packet is switched and received, the packet passes through multi-stage processing logic, where 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 flow Table entry successfully matched. After receiving the data packet, the switch first executes the processing logic of level 1, that is, first matches with the flow Table entry in Table0, specifically matches according to the priority in the flow Table entry in Table 0. After the processing logic of Table0 is completed, jump to the next-level Table according to the processing logic level jump instruction and the corresponding flow Table entry, the jump sequence is not necessarily in sequence, but may be interval jump, and the sequence number m of the next-level Table to jump 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, a MAC address table learning is performed by a two-layer ethernet switch or a route, and a MAC address learning is also performed by an ODL (open Day light) controller, where the ODL controller is a modular, extensible, upgradeable, and multi-protocol-supporting controller developed based on SDN, and a MAC address learning method 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 SDN switch can completely report the received ARP (Address Resolution Protocol) message to the controller, and the ARP message is uniformly processed by the controller.
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 the ARP request message. And the ODL controller sends the ARP request message to all SDN switches or a certain switch managed by the ODL controller through a Packet-Out message and instructs the SDN switches to broadcast or forward from a certain port. And 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 completes processing of ARP request and response of one ARP process, it can learn the source MAC and the destination MAC, and the ODL sends a flow entry located at the 1 st level processing logical flow table0 to the SDN switch: the matching domain is { source MAC and destination MAC }, the action domain is { forwarding from the corresponding port }, and a data transmission channel from the source MAC to the destination MAC is opened.
As can be seen, the SDN switch is connected to the multiple non-SDN devices through the two-layer ethernet switch/route, so that the topology complexity is increased, the transmission delay of the data packet is increased, and the problem caused by direct connection between the SDN switch and the multiple non-SDN devices is not solved effectively.
In addition, the flow table item sent by the ODL controller requires to be matched with a target MAC and a source MAC at the same time, and occupies more logic resources; the flow Table entry learned by the MAC learning method is in the same processing logic level as the flow Table entry for processing the normal packet in the processing logic of the switch, that is, in Table0, which results in a great increase in complexity of the design and arrangement of the processing logic of the switch; because the flow table entry for MAC learning is directly forwarded after matching the destination MAC and the source MAC, it means that no other flow table skips are performed, and no other logic processing operation can be performed, such as the header information of the network layer and/or the transmission layer cannot be verified, which may cause the forwarding of an illegal message; the header information of the data message cannot be modified, etc.
In view of this, an embodiment of the present invention provides a data processing system based on an SDN network, as shown in fig. 4, the system includes:
the SDN controller 401 is configured to receive an ARP packet 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; sending processing logic located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message and forward the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
An SDN switch 402, which is an SDN switch, directly connected to a non-SDN device 403, and configured to receive a message, where the message includes an ARP message sent by the non-SDN device; reporting the ARP message to an SDN controller, and receiving processing logic which is sent by the SDN controller and is positioned at an m-th level, wherein m is a positive integer larger than 1; and when the received message is jumped to the m-th level processing logic, forwarding the message of which the destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message.
The ARP message referred to in the embodiments of the present invention includes an ARP request message and an ARP response message, and the ARP message referred to in the embodiments 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 data processing system based on the SDN network 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 sent processing logic can be effectively reduced, and the utilization rate of SDN switch logic resources is improved;
the data forwarding processing logic learned by the invention is positioned at m level and is positioned at different levels from the logic for processing normal messages in the switch, so that the complexity of the SDN switch processing logic design arrangement is reduced;
the data forwarding processing logic learned by the invention is positioned at m level in the processing logic of the SDN switch, and the SDN switch can perform processing logic operations such as matching, checking, modifying and the like on the header information of the data message in the processing logic of 1 to m-1 level, thereby improving the message security.
For convenience of description, only one SDN switch and one SDN controller are illustrated in fig. 4, and in an actual system, multiple SDN switches and SDN controllers may coexist, which is not described herein again.
It should be noted that the above-mentioned system architecture is only an example of the system architecture applicable to the embodiment of the present invention, and the system architecture applicable to the embodiment of the present invention may further add other entities or reduce some entities compared with 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 an ARP process, 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 receiving a first port of the ARP request message by the first switch;
and analyzing the ARP response message to obtain a second Sender MAC address of the ARP response message, and receiving a second port of the ARP response message by the second switch.
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 a non-SDN device which receives 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 different SDN switches.
Step 503, sending a processing logic located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message, and forwarding the message from a port receiving 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 located at an m-th level to the first SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message, and forwarding the message from a first port receiving the ARP message.
After receiving an ARP response message from a second SDN switch, sending processing logic located at an m-th level to the second SDN switch to indicate that a destination MAC is a Sender MAC message 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 each stage of processing logic, the switch matches each item in the flow table entry according to the flow table corresponding to the stage of processing logic, and executes the corresponding processing logic operation when the matching is successful, the format of the flow table entry can be designed by adopting the existing format, and the content in different matching fields and the executed logic operation are different.
As an optional implementation, the matching domain of the processing logic is a Sender MAC of the ARP packet, the action domain is to perform forwarding from a port receiving the ARP packet, and the flow entry includes a plurality of different domains. Other fields such as priority and counters may also be included in the flow table entry, and specifically, reference may be made to designs of different existing fields, which is not described in detail herein.
As an alternative embodiment, as shown in fig. 6, the method further includes:
sending, to an SDN switch connected to the SDN controller, processing logic at a level 1 to instruct the SDN switch to report the received ARP packet to the SDN controller.
Since the switch first executes the processing logic of level 1 when receiving the ARP packet from the non-SDN device, the switch can be enabled to report all ARP request packets and ARP response packets to the SDN controller through the processing logic of level 1, so as to support the subsequent sending of flow table entries of level m.
As an optional implementation, the method further comprises: and sending processing logic located at the nth stage to an SDN switch connected with the SDN controller to indicate that the message is subjected to logic processing operation, wherein n is a positive integer with a value range except m.
In the embodiment of the present invention, the m-level processing logic is the last-level processing logic corresponding to packet forwarding, and thus other-level processing logic may perform a logic processing operation on a packet, and specifically may perform operations such as matching, checking, modifying, and the like on header information of a data packet.
The following provides a specific process of the data processing method based on the SDN network in the embodiment of the present invention:
1) pre-send level 1 processing logic
The SDN controller sends 1-stage processing logic to the SDN switch in advance: and the SDN switch reports the received ARP message to the SDN controller.
Taking an OpenFlow protocol as an example of an interface between the SDN switch and the SDN CONTROLLER, as shown In fig. 7, the SDN CONTROLLER sends a FLOW entry { table is 0, ARP, actions is 65535} to the SDN switch In advance through an OFPT _ FLOW _ MOD message, so that the SDN switch reports the received ARP message to the SDN CONTROLLER through a Packet-In message.
2) Processing of ARP requests
The SDN switch x receives the ARP request, firstly executes the processing logic of the level 1, and reports the ARP request to the SDN controller through a Packet-In message according to the corresponding flow table item.
And 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 the ARP request and a port y of the SDN switch receiving the ARP request.
And 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.
The SDN controller sends a processing logic to m-level processing logic in the SDN switch x according to the reported ARP request: 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 adopted by an interface between an SDN switch and an SDN controller, the processing procedure is as follows:
SDN switch x receives the ARP request, and performs flow entry matching for the processing logic at stage 1. And according to the matched flow table entry, the SDN switch reports the ARP request to the SDN controller through a Packet-In message. And the SDN controller receives the Packet-In message, performs decoding analysis, and records a Sender IP (Internet protocol), a Sender MAC (media access control), an SDN switch x reporting the ARP request and a port y of the SDN switch receiving the ARP request.
The SDN controller sends the ARP request to all SDN switches managed by the SDN controller 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 flow table entry to a table m in an SDN switch x: the matching field is { destination MAC is Sender MAC }, and the action field is { forwarding from port y }.
3) Processing of ARP responses
Assuming that the SDN switch a receives the ARP response packet, the processing logic of level 1 is executed first, and the SDN switch reports the ARP response packet to the SDN controller. And 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 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.
And the SDN controller sends the ARP response message to an SDN switch x and instructs the switch x to forward the ARP response message from a port y.
According to the reported ARP response message, the SDN controller sends the processing logic positioned at the m 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 adopted by 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. And according to the matched flow table entry, the SDN switch reports the ARP response to the SDN controller through a Packet-In message. And the SDN controller receives the Packet-In message, performs decoding analysis, records a Sender IP, a Sender MAC, an SDN switch a reporting the ARP response and a port b of the SDN switch 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 the SDN switch x through a Packet-Out message, and the switch x is instructed to forward the ARP response from the port y.
According to the reported ARP response, the SDN controller sends a flow table entry to a table m in the 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 packet received in the packet switch received in the switch is uplink data, and the destination MAC is an MAC address of a DN node in a data network; or the message is downlink data, and the destination MAC is an MAC address of a RAN node of the radio access network.
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, and the method includes:
step 801, receiving a message, wherein the message comprises an ARP message sent by a non-SDN device;
the SDN switch is directly connected with the non-SDN device, 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 also comprise other messages such as 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 a processing logic at the mth level sent by the SDN controller, where m is a positive integer greater than 1;
the manner of generating the mth-level processing logic by the SDN controller is referred to the above description, and is not repeated here, and it should be noted that when the SDN switch receives the packet, the SDN switch first executes the processing logic operation according to the 1 st-level processing logic, and then performs level hopping, which may be step-by-step hopping or cross-level hopping, according to the processing logic level hopping instruction in the process of executing the processing logic.
As an optional implementation manner, the SDN switch receives the level 1 processing logic sent by the SDN controller, and the specific content of the level 1 processing logic sent by the SDN controller is described in the foregoing embodiment and is not repeated here. Through the level 1 processing logic sent by the SDN controller, the SDN switch is enabled to report all ARP messages received from the non-SDN equipment to the SDN controller. For ARP request and ARP response packets, the SDN switch reports the ARP packet to the SDN controller according to the level 1 processing logic.
Step 804, when the received message is jumped to the m-th level processing logic, forwarding the message of which the destination MAC is the Sender MAC of the ARP message from the port receiving the ARP message.
When the SDN switch receives a message, firstly, processing logic operation is executed according to the level 1 processing logic, then, in the process of executing the processing logic, level jump is carried out according to the level jump indication of the processing logic, when the SDN switch jumps to the level m processing logic, the matching domain of the processing logic is the Sender MAC of the ARP message, the action domain is the port forwarding which receives the ARP message, and if the target MAC of the received message is successfully matched with the target MAC of the matching domain, the message is forwarded from the corresponding port according to the indication of the action domain.
As shown in fig. 9, in the embodiment of the present invention, the 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 subjected to matching processing step by step from the 1-stage processing logic, and finally, the SDN switch jumps to the m-stage processing logic for matching forwarding. The m-level processing logic corresponds to multiple flow entries, each corresponding to a processing logic operation, for example, one of the flow entries is used to implement the logic: forwarding the message of which the destination MAC is the MAC of S1 from port 1, where another flow entry is used to implement logic: and forwarding the message with the destination MAC being the MAC of S2 from the port 2.
When an OpenFlow protocol is adopted for an interface between the SDN switch and the SDN controller, the processing procedure is as follows:
the SDN switch receives the data message, performs matching processing on the message according to processing logic of a multi-level flow table from table0, and finally performs matching forwarding on the data message by jumping to table m through an instruction Goto-table.
As an optional implementation manner, in order to support the logical processing operation on the packet, the method further includes:
and when the received message is jumped to the nth-stage processing logic, carrying out logic processing operation on the message according to the nth-stage processing sent by the SDN controller, wherein n is a positive integer with a value except m. Specifically, the header information of the network layer and/or the transport layer may be checked, and the header information of the data message may be modified.
The method provided by the embodiment of the invention can be applied to a 5G network, but is not limited to the 5G network, in the 5G network based on the SDN, the core network is realized by adopting the SDN technology, and the forwarding plane equipment adopts an SDN switch. And the SDN switch is connected with the DN node through an N6 interface and 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 an MAC address of a DN node in the data network.
And the SDN controller sends processing logic located in the mth level to the SDN switch according to an ARP message from a DN node reported by the SDN switch, wherein a matching domain of the processing logic is a Sender MAC of the ARP message, and an action domain is a 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 the upstream data forwarding of the N6 interface is as follows:
when the SDN switch receives the data message, matching processing is carried out on the data message from the 1-level processing logic, and finally, the SDN switch jumps to the m-level processing logic for matching forwarding.
The SDN switch is connected with the RAN node through an N3 interface and used for sending the downstream data sent by the UPF to the RAN node. As another optional implementation, the message is downlink data, and the destination MAC is a MAC address of a RAN node in a radio access network. And the SDN controller sends processing logic at the m level to the SDN switch according to an ARP message from the RAN reported by the SDN switch, the processing logic matching domain is a Sender MAC of the ARP message, and the action domain is a 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 (RAN1, RAN2, …, RANn) through an N3 interface, and downstream data forwarding of an N3 interface is as follows:
when the SDN switch receives the data message, matching processing is carried out on the data message from the 1-level processing logic, and finally, the SDN switch jumps to the m-level processing logic for matching forwarding.
When an OpenFlow protocol is adopted for an interface between the SDN switch and the SDN controller, the processing procedure is as follows:
and after receiving the data message, the SDN switch performs matching processing on the message according to the processing logic of the multilevel flow table from table0, and finally jumps to table m through an instruction Goto-table for matching forwarding.
Example 3
A data processing method based on the SDN network in the present invention is explained above, and an apparatus and a device for performing the data processing based on the SDN network are explained below.
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 the SDN switch;
a message analyzing module 1202, configured to analyze the ARP message to obtain a Sender MAC of the ARP message and a port of the SDN switch that receives the ARP message;
a flow entry sending module 1203, configured to send processing logic located at an m-th level to the SDN switch, so as to indicate that a destination MAC is a Sender MAC packet of the ARP packet, and forward the packet from a port that receives the ARP packet, where m is a positive integer greater than 1.
Optionally, the flow table entry sending module is further configured to:
sending, to an SDN switch connected to the SDN controller, processing logic at a level 1 to instruct the SDN switch to report the received ARP packet to the SDN controller.
Optionally, the flow table entry sending module is further configured to:
and sending processing logic located at the nth stage to an SDN switch connected with the SDN controller to indicate that the message is subjected to logic processing operation.
Optionally, the ARP packet includes an ARP request packet and an ARP response packet, 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 a non-SDN device 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 of the ARP packet, and the action domain is a port that performs forwarding from the port that receives the ARP packet.
Optionally, the packet is uplink data, and the destination MAC is an MAC address of a DN node of a data network; or
The message is downlink data, and the target MAC is an MAC address of a Radio Access Network (RAN) node.
The SDN network-based data processing apparatus provided in the embodiment of the present invention and the SDN network-based data processing method provided in the embodiment 1 of the present invention belong to the same inventive concept, and various embodiments of the SDN network-based data processing method applied to the SDN controller provided in the embodiment 1 may be applied to the SDN network-based data processing apparatus in the embodiment to be implemented, and are not 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 the SDN switch;
a message reporting module 1302, configured to report the ARP message to an SDN controller;
a flow entry receiving module 1303, configured to receive processing logic in an mth stage sent by the SDN controller, where m is a positive integer greater than 1;
the message processing module 1304 is configured to forward, from a port that receives the ARP message, a message whose destination MAC is a Sender MAC of the ARP message when the received message is forwarded to an mth level processing logic.
Optionally, the flow 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 processing logic of the level 1.
Optionally, the message processing module is further configured to:
and when the received message is jumped to the nth-level processing logic, carrying out logic processing operation on the message according to the nth-level processing sent by the SDN controller.
Optionally, the ARP packet includes an ARP request packet and an ARP response packet.
Optionally, the matching domain of the processing logic is a destination MAC of the ARP packet, and the action domain is a port that performs forwarding from the port that receives the ARP packet.
Optionally, the packet is uplink data, and the destination MAC is an MAC address of a DN node of the data network; or
The message is downlink data, and the destination MAC is an MAC address of a Radio Access Network (RAN) node.
The SDN network-based data processing apparatus provided in the embodiment of the present invention and the SDN network-based data processing method provided in the embodiment 1 of the present invention belong to the same inventive concept, and various embodiments of the SDN network-based data processing method applied to the switch provided in the embodiment 1 may be applied to the SDN network-based data processing apparatus in the embodiment to be implemented, and are not repeated here.
The SDN network-based data processing apparatus in the embodiment of the present application is described above from the perspective of a modular functional entity, and the SDN network-based data processing apparatus in the embodiment of the present application is described below from the perspective of hardware processing.
Example 4
Referring to fig. 14, another embodiment of the data processing apparatus based on an SDN network in the embodiment of the present application includes:
a processor 1400, a memory 1401, a transceiver 1402, and a 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 interconnected buses and bridges, with one or more processors represented by processor 700 and various circuits of memory represented by memory 1401 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any 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 processes 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 circuits of hardware or instructions in the form of software in the 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, discrete hardware components, or the like that implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A 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 directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is 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 the hardware thereof.
Specifically, the processor 1400 is configured to read a program in the memory 1401 and execute:
the processor is used for reading the program in the memory and executing:
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;
sending processing logic located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message and forward 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:
sending, to an SDN switch connected to the SDN controller, processing logic at a level 1 to instruct the SDN switch to report the received ARP packet to the SDN controller.
Optionally, the processor is further configured to:
and sending processing logic located at the nth stage to an SDN switch connected with the SDN controller to indicate that the message is subjected to logic processing operation.
Optionally, the ARP packet includes an ARP request packet and an ARP response packet, 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 of the ARP packet, and the action domain is a port that performs forwarding from the port that receives the ARP packet.
Optionally, the packet is uplink data, and the destination MAC is an MAC address of a DN node of the data network; or
The message is downlink data, and the destination MAC is an MAC address of a Radio Access Network (RAN) node.
The data processing device based on the SDN network provided in the embodiment of the present invention and the data processing method based on the SDN network applied to the SDN controller provided in the embodiment 1 of the present invention belong to the same inventive concept, and various implementation manners of the data processing method based on the SDN network provided in the embodiment 1 may be applied to the data processing device based on the SDN network in the embodiment to implement, and are not repeated here.
Referring to fig. 15, another embodiment of a data processing device based on an SDN network in the embodiment of the present application includes:
a processor 1500, a memory 1501, a transceiver 1502, and a 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 used to receive and transmit data under the control of the processor 1500.
The bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 1500, and various circuits of memory, represented by memory 1501, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any 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 processes disclosed in the embodiments of the present invention can be applied to the processor 1500, or implemented by the processor 1500. In implementation, the steps of the signal processing flow may be implemented by integrated logic circuits in hardware or instructions in software in the processor 1500. 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, discrete hardware components, or the like that implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A 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 directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 1501, and the processor 1500 reads the information in the memory 1501 and completes the steps of the signal processing flow in combination with the hardware thereof.
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 a non-SDN device;
reporting the ARP message to an SDN controller, and receiving processing logic which is sent by the SDN controller and is positioned at an m-th level, wherein m is a positive integer larger than 1;
and when the received message is jumped to the m-th level processing logic, forwarding the message of which the destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message.
Optionally, the processor is further configured to:
receiving processing logic at 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 processor is further configured to:
and when the received message is jumped to the nth-level processing logic, carrying out logic processing operation on the message according to the nth-level processing logic sent by the SDN controller.
Optionally, the ARP packet includes an ARP request packet and an ARP response packet.
Optionally, the matching domain of the processing logic is a destination MAC of the ARP packet, and the action domain is a port that performs forwarding from the port that receives the ARP packet.
Optionally, the packet is uplink data, and the destination MAC is an MAC address of a DN node of the data network; or
The message is downlink data, and the destination MAC is an MAC address of a Radio Access Network (RAN) node.
The SDN network-based data processing device provided in the embodiment of the present invention and the SDN network-based data processing method applied to the switch provided in the embodiment 1 of the present invention belong to the same inventive concept, and various embodiments of the SDN network-based data processing method provided in the embodiment 1 may be applied to the SDN network-based data processing device in the embodiment to be implemented, and are not repeated here.
Embodiments of the present invention also provide a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the random access configuration and the random access method provided in the foregoing embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on 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 the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
In the above embodiments, the implementation may be wholly or partially realized 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, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with 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)), among others.
The technical solutions provided by the present application are introduced in detail, and the present application applies specific examples to explain the principles and embodiments of the present application, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (17)

1. A data processing method based on an SDN network is applied to an SDN controller and is characterized by comprising the following steps:
receiving an ARP message reported by an SDN switch;
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 located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message and forward the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
2. The method of claim 1, further comprising:
sending processing logic located at a level 1 to an SDN switch connected with the SDN controller to instruct the SDN switch to report the received ARP message to the SDN controller.
3. The method of claim 1, further comprising:
and sending processing logic located at the nth stage to an SDN switch connected with the SDN controller to indicate that the message is subjected to logic processing operation.
4. 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 a non-SDN device 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.
5. The method of claim 1, wherein the matching domain of the processing logic is destination MAC of the ARP packet and the action domain is performing forwarding from a port receiving the ARP packet.
6. The method of claim 1,
the message is uplink data, and the target MAC is an MAC address of a DN node of the data network; or
The message is downlink data, and the destination MAC is an MAC address of a Radio Access Network (RAN) node.
7. A data processing method based on an SDN network is applied to an SDN switch and is characterized by comprising the following steps:
receiving a message, wherein the message comprises an ARP message sent by a non-SDN device;
reporting the ARP message to an SDN controller;
receiving processing logic located at an mth stage and sent by the SDN controller, wherein m is a positive integer greater than 1;
and when the received message is jumped to the m-th level processing logic, forwarding the message of which the destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message.
8. A data processing device based on an SDN network, the device serving as an SDN controller, comprising: a memory and a processor;
wherein the memory is for storing a computer program;
the processor is used for reading the program in the memory and executing:
receiving an ARP message reported by an SDN switch;
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 located at the mth level to the SDN switch to indicate that a destination MAC is a Sender MAC message of the ARP message and forward the message from a port receiving the ARP message, wherein m is a positive integer greater than 1.
9. The device of claim 8, wherein the processor is further configured to:
sending, to an SDN switch connected to the SDN controller, processing logic at a level 1 to instruct the SDN switch to report the received ARP packet to the SDN controller.
10. The device of claim 8, wherein the processor is further configured to:
and sending processing logic located at the nth stage to an SDN switch connected with the SDN controller to indicate that the message is subjected to logic processing operation.
11. The device of claim 8, wherein the ARP packet comprises an ARP request packet and an ARP response packet, and wherein 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 a non-SDN device 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.
12. The apparatus of claim 8, wherein the matching domain of the processing logic is destination MAC of the ARP packet and the action domain is performing forwarding from a port receiving the ARP packet.
13. The apparatus of claim 8,
the message is uplink data, and the target MAC is an MAC address of a DN node of the data network; or alternatively
The message is downlink data, and the destination MAC is an MAC address of a Radio Access Network (RAN) node.
14. A data processing device based on an SDN network, the device acting as an SDN switch, comprising: a memory and a processor;
wherein the memory is for storing a computer program;
the processor is used for reading the program in the memory and executing:
receiving a message, wherein the message comprises an ARP message sent by a non-SDN device;
reporting the ARP message to an SDN controller;
receiving processing logic located at an mth stage and sent by the SDN controller, wherein m is a positive integer greater than 1;
and when the received message is jumped to the m-th level processing logic, forwarding the message of which the destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message.
15. A data processing apparatus based on an SDN network, comprising:
the message receiving module is used for receiving the ARP message reported by the SDN switch;
a message analysis module, configured to analyze the ARP message to obtain a Sender media access control Sender MAC of the ARP message and a port of the SDN switch, where the SDN switch receives the ARP message;
and the flow table item sending module is used for sending processing logic positioned at the mth level to the SDN switch so as to indicate that a destination MAC is a Sender MAC message of the ARP message and forward the message from a port for receiving the ARP message, wherein m is a positive integer larger than 1.
16. A data processing apparatus based on an SDN network, comprising:
the message receiving module is used for receiving a message, wherein the message comprises an ARP message sent by a non-SDN device;
a message reporting module, configured to report the ARP message to an SDN controller;
a flow table entry receiving module, configured to receive processing logic located at an mth level and 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 destination MAC is the Sender MAC of the ARP message from a port for receiving the ARP message when the received message is jumped to the mth level processing logic.
17. A computer program medium, having a computer program stored thereon, wherein the program, when executed by a processor, performs the steps of the method as claimed in any one of claims 1 to 6, or performs the steps of the method as claimed in claim 7.
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 true CN114760249A (en) 2022-07-15
CN114760249B 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)

Cited By (1)

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

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150071289A1 (en) * 2013-09-11 2015-03-12 Electronics And Telecommunications Research Institute 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
US20160337236A1 (en) * 2015-05-12 2016-11-17 Industrial Technology Research Institute Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
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

Patent Citations (15)

* 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
US20150071289A1 (en) * 2013-09-11 2015-03-12 Electronics And Telecommunications Research Institute 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
US20160337236A1 (en) * 2015-05-12 2016-11-17 Industrial Technology Research Institute Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
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

Cited By (2)

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

Also Published As

Publication number Publication date
CN114760249B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN102546383B (en) The method and apparatus of the standard agreement authentication mechanism of switching fabric system deploy
US8233399B2 (en) Generic packet generator and method
WO2021008533A1 (en) Method for determining path, and related device
US9998298B2 (en) Data transmission method, apparatus, and computer storage medium
US9325613B2 (en) Communication device and address learning method
CN101471854A (en) Method and device for forwarding message
JP7313480B2 (en) Congestion Avoidance in Slice-Based Networks
CN108632099B (en) Fault detection method and device for link aggregation
CN108768866A (en) Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
CN112616168B (en) Data transmission method and device, electronic equipment and storage medium
WO2016091156A1 (en) Node fault judgement method and device
CN111010343B (en) Method, device, network equipment and storage medium for forwarding multicast message
Ahmed et al. Performance evaluation of best route and broadcast strategy for NDN producer’s mobility
CN111026324A (en) Updating method and device of forwarding table entry
CN114760249B (en) SDN network-based data processing method, device and equipment
JP2015537454A (en) Queue scheduling method, apparatus and system
US11489762B2 (en) Distributed sub-controller permission for control of data-traffic flow within software-defined networking (SDN) mesh network
US11153214B2 (en) In service flow capability update in guaranteed bandwidth multicast network
CN108337181B (en) Method and device for managing congestion of switching network
CN116938851A (en) Message transmission method and related equipment
US10965532B2 (en) Software-defined networking device based on service profile learning
CN112995068B (en) Data transmission method, device and system
CN114422437A (en) Method and device for forwarding heterogeneous messages
CN104320333B (en) A kind of method and apparatus for detecting asymmetric static polymerization
Lotfimahyari et al. Data-Plane-Assisted State Replication With Network Function Virtualization

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