CN106453144B - Message processing method and device in software defined network - Google Patents

Message processing method and device in software defined network Download PDF

Info

Publication number
CN106453144B
CN106453144B CN201510486107.6A CN201510486107A CN106453144B CN 106453144 B CN106453144 B CN 106453144B CN 201510486107 A CN201510486107 A CN 201510486107A CN 106453144 B CN106453144 B CN 106453144B
Authority
CN
China
Prior art keywords
bum
flow table
packet
message
input
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
CN201510486107.6A
Other languages
Chinese (zh)
Other versions
CN106453144A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510486107.6A priority Critical patent/CN106453144B/en
Publication of CN106453144A publication Critical patent/CN106453144A/en
Application granted granted Critical
Publication of CN106453144B publication Critical patent/CN106453144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and equipment for processing messages in a software defined network, the method comprises the steps that an SDN forwarding device determines that an input message is an broadcast unknown unicast and multicast BUM message according to a classification flow table and a Media Access Control (MAC) address of the input message, the SDN forwarding device uses a BUM message suppression flow table to match the input message, the BUM message suppression flow table comprises at least table entries, the table entries comprise matching items and operation instructions, and the SDN forwarding device processes the input message according to a matching result.

Description

Message processing method and device in software defined network
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a message processing method and device in a software defined network.
Background
Software Defined Networking (SDN) converts a forwarding process originally controlled by a Switch/router into a forwarding process which is completed by an SDN Switch and a Controller together through an OpenFlow (english) technology, so as to separate data forwarding and routing control.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for processing a packet in a software defined network, which can accurately control a BUM packet in a data flow, and improve a network bandwidth and forwarding performance.
, an embodiment of the present invention provides a method for processing a packet in a software defined network SDN, including that an SDN forwarding device determines, according to a classification flow table and a media access control MAC address of an input packet, that the input packet is a broadcast unknown unicast multicast BUM packet, the SDN forwarding device matches the input packet using a BUM packet suppression flow table, the BUM packet suppression flow table includes at least entries, the entries include a matching entry and an operation instruction, and the SDN forwarding device processes the input packet according to a matching result.
With reference to the , in a possible implementation manner of the , the determining, by the SDN forwarding device, that the incoming packet is matched using a BUM packet suppression flow table includes searching, by the SDN forwarding device, whether an entry matching the incoming packet exists in the BUM packet suppression flow table according to the incoming packet.
With reference to possible implementation manners of the aspect of , in a second possible implementation manner of the aspect of , the SDN forwarding device processes the input packet according to the matching result, where the processing includes discarding the input packet if no entry matching the input packet exists in the BUM packet suppression flow table, and processing the input packet according to an operation instruction in the target entry if a target entry matching the input packet exists in the BUM packet suppression flow table.
With reference to the , in a third possible implementation manner of the , the matching, by the SDN forwarding device, the input packet using a BUM packet suppression flow table includes determining, by the SDN forwarding device, a target entry in the BUM packet suppression flow table, where the target entry is matched with the input packet, and processing, by the SDN forwarding device, the input packet according to a matching result, where the processing, by the SDN forwarding device, is performed on the input packet according to an operation instruction in the target entry.
With reference to or any of the possible implementations described above in , in a fourth possible implementation of , the matching entry includes at least of an ingress interface, a destination MAC address, a source MAC address, a destination internet protocol IP address, a source IP address, a protocol type, and a port number of a user data protocol/transmission control protocol.
With reference to any possible implementation manners of the or aspect, in a fifth possible implementation manner of the aspect, before the SDN forwarding device determines, according to a classification flow table and a media access control MAC address of an input packet, that the input packet is an broadcast unknown unicast multicast BUM packet, the method further includes the SDN forwarding device receiving a BUM packet processing instruction sent by an SDN controller and executing the BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the SDN forwarding device to process the input packet according to the BUM packet suppression flow table if the SDN forwarding device determines that the input packet is a BUM packet according to the classification flow table.
In a second aspect, an embodiment of the present invention provides an method for processing a packet in a software defined network SDN, where the method includes determining, by an SDN controller, a classification flow table, determining, by the SDN controller, a broadcast unknown unicast and multicast BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, where the entries include matching entries and operation instructions, generating, by the SDN controller, a BUM packet processing instruction, where the BUM packet processing instruction is used to instruct an SDN forwarding device to process an input packet according to the BUM packet suppression flow table when the input packet is determined to be a BUM packet according to the classification flow table, and sending, by the SDN controller, the classification flow table, the BUM packet suppression flow table, and the BUM packet processing instruction to the SDN forwarding device.
With reference to the second aspect, in an th possible implementation manner of the second aspect, the matching entries of the BUM packet suppression flow table include at least of an ingress interface, a destination MAC address, a source MAC address, a destination internet protocol IP address, a source IP address, a protocol type, and a port number of a user data protocol/transmission control protocol.
In a third aspect, an software-defined network SDN forwarding device includes a receiving unit configured to receive an input packet, a determining unit configured to determine that the input packet is a broadcast unknown unicast multicast BUM packet according to a classification flow table and a media access control MAC address of the input packet received by the receiving unit, a second determining unit configured to match the input packet using a BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, and the entries include a matching entry and an operation instruction, and a third determining unit configured to process the input packet according to a matching result determined by the second determining unit.
With reference to the third aspect, in an possible implementation manner of the third aspect, the second determining unit is specifically configured to search, according to the input packet, whether an entry matching the input packet exists in the BUM packet suppression flow table.
With reference to the possible implementation manners of the third aspect, in a second possible implementation manner of the third aspect, the third determining unit is specifically configured to discard the input packet if the entry matching the input packet does not exist in the BUM packet suppression flow table, and process the input packet according to an operation instruction in the target entry if the target entry matching the input packet exists in the BUM packet suppression flow table.
With reference to the third aspect, in a third possible implementation manner of the third aspect, the second determining unit is specifically configured to determine a target entry, which is matched with the input packet, in the BUM packet throttling flow table; the third determining unit is specifically configured to process the input packet according to the operation instruction in the target table entry.
With reference to the third aspect or any possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, the matching entry of the BUM packet suppression flow table includes at least of an ingress interface, a destination MAC address, a source MAC address, a destination internet protocol IP address, a source IP address, a protocol type, and a port number of a user data protocol/transmission control protocol.
With reference to the third aspect or any possible implementation manners of the third aspect, in a fifth possible implementation manner of the third aspect, the receiving unit is further configured to receive a BUM packet processing instruction sent by an SDN controller, and the second determining unit and the third determining unit are further configured to execute the BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the determining unit to, when determining that the input packet is a BUM packet according to the classification flow table, process the input packet according to the BUM packet suppression flow table
In a fourth aspect, an embodiment of the present invention provides software-defined network SDN controller, including a determining unit configured to determine a classification flow table, a second determining unit configured to determine a broadcast unknown unicast and multicast BUM message suppression flow table, where the BUM message suppression flow table includes at least entries, where the entries include matching entries and operation instructions, a third determining unit configured to generate BUM message processing instructions, where the BUM message processing instructions are used to instruct an SDN forwarding device to process an input message according to the BUM message suppression flow table when the input message is determined to be a BUM message according to the classification flow table, and a sending unit configured to send the classification flow table determined by the determining unit, the BUM message suppression flow table determined by the second determining unit, and the BUM message processing instructions generated by the third determining unit to an SDN forwarding device.
With reference to the fourth aspect, in an possible implementation manner of the fourth aspect, the matching entries of the BUM packet suppression flow table include at least of an ingress interface, a destination MAC address, a source MAC address, a destination internet protocol IP address, a source IP address, a protocol type, and a port number of a user data protocol/transmission control protocol.
In the above technical scheme, the SDN forwarding device can accurately control the BUM packet by using the BUM packet control flow table. Therefore, the scheme can avoid the reduction of network performance caused by no fixed BUM control rule, thereby improving the network bandwidth and the forwarding performance.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for processing a packet in an SDN according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a method for processing a packet in an SDN according to an embodiment of the present invention.
Fig. 3 is a block diagram of an SDN forwarding device provided in an embodiment of the present invention.
Fig. 4 is a block diagram of an SDN controller provided according to an embodiment of the present invention.
Fig. 5 is a block diagram of an SDN forwarding device provided in an embodiment of the present invention.
Fig. 6 is a block diagram of an SDN controller provided according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the embodiments are partial embodiments of the present invention, rather than all embodiments.
Fig. 1 is a schematic flow chart of a method for processing a packet in an SDN according to an embodiment of the present invention. The method comprises the following steps:
101, the SDN forwarding device determines that the input message is a BUM message according to the classification flow table and a Media Access Control (MAC) address of the input message.
102, the SDN forwarding device matches the input packet using a BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, and the entry includes a matching entry and an operation instruction.
103, the SDN forwarding device processes the input packet according to the matching result.
In the method shown in fig. 1, the SDN forwarding device can accurately control the BUM packet by using the BUM packet control flow table. Therefore, the scheme can avoid the reduction of network performance caused by no fixed BUM control rule, thereby improving the network bandwidth and the forwarding performance.
Optionally, as embodiments, the determining, by the SDN forwarding device, that the incoming packet is matched using a BUM packet suppression flow table includes determining, by the SDN forwarding device, whether a target entry matching the incoming packet exists in entries of the BUM packet suppression flow table, processing, by the SDN forwarding device, the incoming packet according to a matching result, where the processing includes discarding the incoming packet if a target entry matching the incoming packet does not exist in entries of the BUM packet suppression flow table, and processing the incoming packet according to an operation of the target entry if a target entry matching the incoming packet exists in entries of the BUM packet suppression flow table.
Optionally, as another embodiments, the determining, by the SDN forwarding device, that the incoming packet is matched using a BUM packet suppression flow table includes determining, by the SDN forwarding device, a target entry that matches the incoming packet in entries of the BUM packet suppression flow table.
For example, if the operation instruction of the target table entry is discard, the input message is discarded. If the operation instruction of the target table item is forwarding, the input message is forwarded.
Specifically, the matching items of the BUM message flow suppression table comprise at least port numbers of an input interface, a destination MAC address, a source MAC address, a destination Internet Protocol (IP) address, a source IP address, a Protocol type, and a User Data Protocol (UDP)/Transmission Control Protocol (TCP).
, before the SDN forwarding device determines that the input packet is a BUM packet according to the classification flow table and the MAC address of the input packet, the method further includes that the SDN forwarding device receives a BUM packet processing instruction sent by an SDN controller and executes the BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the SDN forwarding device to suppress processing of the input packet according to the BUM packet suppression flow table when the SDN forwarding device determines that the input packet is a BUM packet according to the classification flow table.
As will be appreciated by those skilled in the art, the classification flow table and the BUM suppression flow table are determined by the SDN controller and sent to the SDN forwarding device. Under the condition of executing the BUM message processing instruction, after receiving a classification flow table and a BUM suppression flow table sent by an SDN controller, an SDN forwarding device determines whether an input message is the BUM message according to the classification flow table, and under the condition that the input message is determined to be the BUM message, the SDN forwarding device processes the BUM message according to the BUM suppression flow table. In addition, the SDN controller may further update the determined BUM suppression flow table and send the updated BUM suppression flow table to the SDN forwarding device. In this case, the SDN forwarding device may process the BUM packet according to the updated BUM packet suppression flow table.
Fig. 2 is a schematic flow chart of a method for processing a packet in an SDN according to an embodiment of the present invention. The method comprises the following steps:
201, the SDN controller determines a classification flow table.
202, the SDN controller determining a BUM message suppression flow table, the BUM message suppression flow table including at least entries, the entries including matching entries and operation instructions.
203, the SDN controller generates a BUM packet processing instruction, where the BUM packet processing instruction is used to instruct an SDN forwarding device to process an input packet according to the BUM packet suppression flow table when the input packet is determined to be a BUM packet according to the classification flow table.
204, the SDN controller sends the classification flow table, the BUM packet suppression flow table, and the BUM packet processing instruction to the SDN forwarding device.
According to the method shown in fig. 2, the SDN controller can determine a classification flow table and a BUM packet suppression flow table, and send the classification flow table and the BUM packet suppression flow table to the SDN forwarding device. In this way, under the condition that the SDN forwarding device executes the BUM message processing instruction, after the BUM message is identified by using the classification flow table, the BUM message is controlled by using the BUM message control flow table to accurately control the BUM message. Therefore, the scheme can avoid the reduction of network performance caused by no fixed BUM control rule, thereby improving the network bandwidth and the forwarding performance.
Specifically, the matching items of the BUM message suppression flow table comprise at least of input interfaces, destination MAC addresses, source MAC addresses, destination IP addresses, source IP addresses, protocol types and port numbers of UDP/TCP.
To assist those skilled in the art in better understanding the present invention, the present invention will be further described in conjunction with the following specific examples.
The SDN controller determines a classification flow table and sends the classification flow table to the SDN forwarding device, the classification flow table including the MAC address. In other words, the classification flow table can be used to distinguish between BUM messages and non-BUM messages.
Alternatively, as embodiments, the SDN controller may set a message for which the destination MAC address of the incoming message belongs to a particular destination MAC address to be a BUM message.
Optionally, as another embodiments, the SDN controller may set a message for which the destination MAC address of the incoming message belongs to a particular destination MAC address to be a non-BUM message.
Optionally, as another embodiments, the SDN controller may set an input packet whose destination MAC address of the input packet belongs to the th MAC address set as a BUM packet, and an input packet whose destination MAC address of the input packet belongs to the second MAC address set as a non-BUM packet, that is, the MAC address information of the classification flow table includes two MAC address sets, the th MAC address set is a MAC address set of the BUM packet, and the second MAC address set is a non-BUM packet MAC address set.
Those skilled in the art will appreciate that the MAC addresses in the specific MAC address, the th MAC address set and the second MAC address set in the above embodiments may be determined complete MAC addresses, or MAC addresses that meet specific rules, for example, the first N items in the MAC addresses are all MAC addresses of D8:96: 83.
As will be understood by those skilled in the art, in addition to setting the classification flow table by setting the destination MAC address, the SDN controller may also set the classification flow table by setting the source MAC address, or by setting both the destination MAC address and the source MAC address. The specific manner is similar to the manner of setting the destination MAC address, and therefore, the detailed description thereof is omitted.
The SDN controller may also determine a BUM packet suppression flow table and send the BUM packet suppression flow table to the SDN forwarding device.
The SDN controller may further generate a BUM packet processing instruction and send the BUM packet processing instruction to the SDN forwarding device. The BUM message processing instruction is used for instructing the SDN forwarding device to process the input message according to the BUM message suppression flow table when the input message is determined to be the BUM message according to the classification flow table.
And after receiving the BUM message processing instruction, the SDN forwarding equipment executes the BUM message processing instruction. In this case, the SDN forwarding device may determine that the input packet is matched using the received BUM packet suppression flow table and process the input packet according to a matching result, when determining that the input packet is a BUM packet using the received classification flow table.
Table 1 is an illustration of packet suppression flow tables, where matching entries of entries in the packet suppression flow table include a source MAC address, a destination MAC address, a source IP, and a destination IP.
It is understood that table 1 is only illustrative of BUM message suppression flow tables, which may be configured with matching entries as needed, which may include at least of the message input interface, the message destination MAC address, the message source MAC address, the message destination IP address, the message source IP address, the message protocol type, the port number of UDP/TCP.
TABLE 1
Figure BDA0000778242330000091
The method comprises the steps that after an SDN forwarding device determines that an input message is a BUM message, whether a target entry matched with the characteristics of the input message exists in entries of a BUM message suppression Flow table or not can be determined, taking table 1 as an example, instructions in the BUM message suppression Flow table can comprise forwarding and continuing, wherein continuing indicates continuing a subsequent Open Flow table lookup matching process, forwarding indicates forwarding the input message, if the SDN forwarding device determines that the characteristics of the input message are matched with each matching entry in entries in the BUM message suppression Flow table, an operation instruction of the entry is executed, if the SDN forwarding device determines that the characteristics of the input message do not match with the matching entries in the entries of the BUM message suppression Flow table, the input message is discarded, for example, if the SDN forwarding device determines that the input message 1 is a BUM message and determines that the source MAC address of the input message 1 is MAC 1, the destination MAC address is MAC 2, the source IP address is 3, the destination address is an IP address 7, the corresponding operation instruction is executed, that the source MAC address of the SDN forwarding device 1 is a MAC address is matched with the MAC 1, the destination MAC address, if the SDN forwarding device determines that the IP address is a destination MAC address of the input message 3, if the input message is a destination MAC address, the MAC address of the MAC forwarding device is a MAC address, if the MAC address of the MAC forwarding device determines that the IP address is a destination MAC address is matched, if the MAC address of the MAC forwarding device is a MAC forwarding device 3, the MAC address of the MAC forwarding device is an IP address, if the IP address of the MAC forwarding device is a MAC forwarding device, and an IP address of the MAC forwarding device is determined that the IP address of the IP address is matched, if.
It can be seen from the above embodiments that, if a target entry completely matching an input message can be found from the BUM message throttling flow table, an instruction corresponding to the target matching entry can be executed; if the complete matching table entry can not be found from the BUM message suppression flow table, the input message is discarded.
Optionally, as another embodiments, the instructions in the BUM packet suppression flow table may include forwarding, continuing, and discarding, that is, if the SDN forwarding device determines that the characteristics of the input packet match the entries in the BUM packet suppression flow table whose operation instructions are discarded, the input packet may be discarded.
Optionally, as another embodiments, the SDN forwarding device may further determine a target entry in the BUM message throttling flow table that matches the input message, table 2 is an illustration of another BUM message throttling flow tables, where the matching entry of the entry in the message throttling flow table includes a source MAC address, a destination MAC address, a source IP, and a destination IP.
It is understood that table 2, like table 1, is also only illustrative of BUM message suppression flow tables the message suppression flow tables may be configured with matching entries as needed, which may include at least of the message input interface, message destination MAC address, message source MAC address, message destination IP address, message source IP address, message protocol type, port number for UDP/TCP.
TABLE 2
Figure BDA0000778242330000101
In table 2 ". star" indicates that the term may be any value. After determining that an input message is a BUM message, the SDN forwarding device may determine a target entry, which is matched with the characteristics of the input message, in entries of a BUM message throttling flow table, and process the input message according to an operation instruction of the target entry. In the embodiment shown in table 2, the instruction in the BUM message suppression Flow table may include forwarding, continuing, and discarding, where continuing indicates to continue the subsequent Open Flow table lookup matching process; forwarding means forwarding the input message; discarding means discarding the incoming message.
In this embodiment, specific entries may exist in the BUM message suppression Flow table, values of matching entries in the specific entries are all arbitrary values, for example, an entry with a sequence number of 6 shown in table 2 is the specific entry, a priority of the specific entry is the lowest, in this case, if the SDN forwarding device determines that the input message matches entries except for the specific entry, entries except for the specific entry are target entries, an operation instruction of the target entry is executed, if no SDN input message matches other entries, the specific entry may be finally matched, the input message is discarded, in other words, it is determined preferentially whether the BUM message matches an entry except for the specific entry, if no other matched entry exists, the SDN forwarding device may finally match the specific entry, for example, if the forwarding device determines that the input message 1 is a BUM message, and determines that a source MAC address of the input message 1 is a MAC address, a destination MAC address is a MAC 2, a source IP address is an IP address 56, an IP address is an IP address 463, and determines that the input message is a destination MAC address of a source MAC message, if the input message is a destination MAC address of a sink, an IP device, and an IP address of an IP forwarding device, if the corresponding entry is determined that the input message is a source MAC address of a sink MAC 1, an IP address is a sink MAC address, a sink IP address, a destination IP address is an IP address of a sink MAC address, a sink IP device, a sink IP address, a sink IP device, a sink IP address is determined that an IP address is an IP address of a sink IP device, a sink IP address is an IP address, a sink IP device, a sink IP address is an IP address of a sink IP device, a sink IP address, a sink IP device, a sink IP address is an IP address is determined that an IP address is an IP address, a sink IP device, a sink IP address is an IP address, a sink IP address is an IP address, a sink IP device, a sink IP address, a sink IP device, a sink.
As will be understood by those skilled in the art, the SDN forwarding device may first determine whether all entries in the BUM packet suppression flow table except for the specific entry have an entry matching the input packet, and if it is determined that an entry matching the input packet exists, stop the matching process, and determine that the matched entry is a target entry matching the input packet. The SDN forwarding device may also determine a target entry of the input packet according to the priority of the entry. The BUM message suppresses the flow table, wherein the priority of the specific table entry is the lowest. In this case, the SDN forwarding device may necessarily determine that the specific entry is an entry matching the input packet. However, the SDN forwarding device needs to determine whether there are entries matching the input packet in other entries except the specific entry. If the entry exists, the SDN forwarding device may determine that the matched entry other than the specific entry is the target entry of the input packet because the entry other than the specific entry has higher priority than the specific entry. If not, the SDN forwarding device determines that the specific entry is a target entry of the input packet.
Those skilled in the art will appreciate that the specific contents of the classification flow table and the BUM suppression flow table can be set by the administrator and can be modified as needed.
Fig. 3 is a block diagram of an SDN forwarding device according to an embodiment of the present invention, configured to implement the method for processing a packet in the SDN shown in fig. 1, as shown in fig. 3, the SDN forwarding device 300 includes a receiving unit 301, an -th determining unit 302, a second determining unit 303, and a third determining unit 304.
The receiving unit 301 is configured to receive an input message.
An rd determining unit 302, configured to determine, according to the sorted flow table and the MAC address of the incoming packet received by the receiving unit 301, that the incoming packet is a broadcast unknown unicast multicast BUM packet.
A second determining unit 303, configured to match the input packet by using a BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, and the entry includes a matching entry and an operation instruction.
A third determining unit 304, configured to process the input packet according to the matching result determined by the second determining unit 303.
The SDN forwarding device 300 shown in fig. 3 can accurately control the BUM packet by using the BUM packet control flow table. Therefore, the scheme can avoid the reduction of network performance caused by no fixed BUM control rule, thereby improving the network bandwidth and the forwarding performance.
Optionally, as embodiments, the second determining unit 303 is specifically configured to search, according to the input packet, whether an entry matching the input packet exists in the BUM packet suppression flow table, and the third determining unit 304 is specifically configured to discard the input packet if the entry matching the input packet does not exist in the BUM packet suppression flow table, and process the input packet according to an operation instruction in the target entry if a target entry matching the input packet exists in the BUM packet suppression flow table.
Optionally, as another embodiments, the second determining unit 303 is specifically configured to determine a target entry in the BUM message throttling flow table, where the target entry is matched with the input message, and the third determining unit 304 is specifically configured to process the input message according to an operation instruction in the target entry.
Specifically, the matching items of the BUM message suppression flow table comprise at least of an incoming interface, a destination MAC address, a source MAC address, a destination Internet Protocol (IP) address, a source IP address, a protocol type and a port number of a user data protocol/transmission control protocol (UDP).
, the receiving unit 301 is further configured to receive a BUM message processing instruction sent by the SDN controller, and the second determining unit 303 and the third determining unit 304 are further configured to execute the BUM message processing instruction, where the BUM message processing instruction is used to instruct the determining unit to, when determining that the input message is a BUM message according to the classification flow table, suppress processing of the input message according to the BUM message flow table
Furthermore, as will be understood by those skilled in the art, the receiving unit 301 may also be configured to receive a classification flow table and a BUM packet suppression flow table sent by the SDN controller. Meanwhile, the receiving unit 301 may be further configured to receive an updated BUM packet suppression flow table sent by the SDN controller.
Fig. 4 is a block diagram of an SDN controller according to an embodiment of the present invention, configured to implement the method for processing a packet in the SDN shown in fig. 2 of the present invention, as shown in fig. 4, an SDN controller 400 includes an -th determining unit 401, a second determining unit 402, a third determining unit 403, and a sending unit 404.
, a determining unit 401 for determining the classification flow table.
A second determining unit 402, configured to determine to broadcast an unknown unicast-multicast BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, and the entries include matching entries and operation instructions.
A third determining unit 403, configured to generate a BUM packet processing instruction, where the BUM packet processing instruction is used to instruct an SDN forwarding device to, when determining that an input packet is a BUM packet according to the classification flow table, suppress the flow table according to the BUM packet to process the input packet.
A sending unit 404, configured to send the classification flow table determined by the determining unit , the BUM packet suppression flow table determined by the second determining unit 402, and the BUM packet processing instruction generated by the third determining unit 403 to an SDN forwarding device.
The SDN controller 400 shown in fig. 4 is capable of determining a classification flow table and a BUM packet suppression flow table, and sending the classification flow table and the BUM packet suppression flow table to an SDN forwarding device. Therefore, the SDN forwarding device can identify the BUM message by using the classification flow table and accurately control the BUM message by using the BUM message to control the flow table. Therefore, the scheme can avoid the reduction of network performance caused by no fixed BUM control rule, thereby improving the network bandwidth and the forwarding performance.
Specifically, the matching items of the BUM message suppression flow table comprise at least of an incoming interface, a destination MAC address, a source MAC address, a destination Internet Protocol (IP) address, a source IP address, a protocol type and a port number of a user data protocol/transmission control protocol (UDP).
Fig. 5 is a block diagram of an SDN forwarding device according to an embodiment of the present invention, configured to implement the method for processing a packet in the SDN shown in fig. 1 of the present invention. As shown in fig. 5, the SDN forwarding device 500 includes a processor 501, a memory 502, and a communication interface 503.
The processor 501, the memory 502 and the communication interface 503 are interconnected by a bus system 504, wherein the bus system 504 comprises a power bus, a control bus and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5.
The processor 501 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Array (FPGA) or other Programmable logic device, discrete or transistor logic device, discrete hardware components.
Memory 502 may comprise Random Access Memory (RAM), and may also include non-volatile memory, such as at least disk drives.
The processor 501 executes a program stored in the memory 502, and is configured to receive an input packet through the communication interface 503, determine that the input packet is a BUM packet according to the classification flow table and the MAC address of the input packet, match the input packet using a BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, and the entries include matching entries and operation instructions, and process the input packet according to a matching result.
The SDN forwarding device 500 shown in fig. 5 can accurately control the BUM packet by using the BUM packet suppression flow table. Therefore, the scheme can avoid the reduction of network performance caused by no fixed BUM control rule, thereby improving the network bandwidth and the forwarding performance.
The processor 501 is specifically configured to search, according to the input packet, whether an entry matching the input packet exists in the BUM packet suppression flow table, and discard the input packet if the entry matching the input packet does not exist in the BUM packet suppression flow table; and if a target table item matched with the input message exists in the BUM message suppression flow table, processing the input message according to an operation instruction in the target table item.
The processor 501 may be specifically configured to determine a target entry in the BUM message throttling flow table, where the target entry is matched with the input message; and processing the input message according to the operation instruction in the target table item.
Specifically, the matching items of the BUM message suppression flow table comprise at least of an incoming interface, a destination MAC address, a source MAC address, a destination Internet Protocol (IP) address, a source IP address, a protocol type and a port number of a user data protocol/transmission control protocol (UDP).
, the processor 501 further receives a BUM packet processing instruction sent by the SDN controller through the communication interface 503, and executes the BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the determining unit to process the input packet according to the BUM packet suppression flow table when the input packet is determined to be a BUM packet according to the classification flow table.
Furthermore, as will be understood by those skilled in the art, the processor 501 may further receive a classification flow table and a BUM packet suppression flow table sent by an SDN controller through the communication interface 503.
The memory 502 is also used to store the classification flow table and the BUM message suppression flow table.
The processor 501 may also be configured to receive an updated BUM packet suppression flow table sent by the SDN controller, and update the BUM packet suppression flow table stored in the memory 502.
Fig. 6 is a block diagram of an SDN controller according to an embodiment of the present invention, configured to implement the method for processing a packet in the SDN shown in fig. 2 according to the present invention. As shown in fig. 6, SDN controller 600 includes a processor 601, a memory 602, and a communication interface 603.
The processor 601, the memory 602 and the communication interface 603 are interconnected by a bus system 604, wherein the bus system 604 comprises a power bus, a control bus and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 604 in fig. 6.
The processor 601 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Array (FPGA) or other Programmable logic device, discrete or a transistor logic device, discrete hardware components, the memory 602 may be used for storing programs, in particular, programs including computer operating instructions, the memory 602 may include RAM, and may also include non-volatile memory, such as at least disk storage.
The processor 601 executes a program stored in the memory 602, and is configured to determine a classification flow table, determine a suppression flow table for broadcasting unknown unicast and multicast BUM messages, where the suppression flow table for the BUM messages includes at least entries, where the entries include matching entries and operation instructions, generate a BUM message processing instruction, where the BUM message processing instruction is used to instruct an SDN forwarding device to process an input message according to the suppression flow table for the BUM message when the input message is determined to be the BUM message according to the classification flow table, and send the classification flow table and the suppression flow table for the BUM messages to the SDN forwarding device through the communication interface 603.
The SDN controller 600 shown in fig. 6 can determine a classification flow table and a BUM packet suppression flow table, and send the classification flow table and the BUM packet suppression flow table to an SDN forwarding device. Therefore, the SDN forwarding device can identify the BUM message by using the classification flow table and accurately control the BUM message by using the BUM message to control the flow table. Therefore, the scheme can avoid the reduction of network performance caused by no fixed BUM control rule, thereby improving the network bandwidth and the forwarding performance.
Specifically, the matching items of the BUM message suppression flow table comprise at least of an incoming interface, a destination MAC address, a source MAC address, a destination Internet Protocol (IP) address, a source IP address, a protocol type and a port number of a user data protocol/transmission control protocol (UDP).
The processor 601 is further configured to send an updated BUM packet suppression flow table to the SDN forwarding device through the communication interface 603.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units into logical functional divisions may be realized in other ways, for example, multiple units or components may be combined or integrated into another systems, or features may be omitted or not executed, in another point, the shown or discussed coupling or direct coupling or communication connection between each other may be through interfaces, indirect coupling or communication connection between units or devices may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in places, or may also be distributed on multiple network units.
In addition, functional units in the embodiments of the present invention may be integrated into processing units, or each unit may exist alone physically, or two or more units are integrated into units.
Based on the understanding, the technical solution of the present invention, which is essentially or partially contributed to by the prior art, or the technical solution thereof, may be embodied in the form of a software product stored in storage media, which includes several instructions for causing computer devices (which may be personal computers, servers, or network devices) or processors to execute all or part of the steps of the methods according to the embodiments of the present invention.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention, and therefore, the scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1, A message processing method in SDN, comprising:
the SDN forwarding equipment determines that the input message is broadcast unknown unicast and multicast BUM message according to the classification flow table and the Media Access Control (MAC) address of the input message;
the SDN forwarding device matches the input message by using a BUM message suppression flow table, wherein the BUM message suppression flow table comprises at least table entries, and each table entry comprises a matching entry and an operation instruction;
and the SDN forwarding equipment processes the input message according to a matching result.
2. The method of claim 1, wherein the SDN forwarding device determining to match the incoming packet using a BUM packet throttling flow table comprises:
and the SDN forwarding equipment searches whether an entry matched with the input message exists in the BUM message suppression flow table or not according to the input message.
3. The method of claim 2, wherein the SDN forwarding device processes the incoming packet according to the matching result, comprising:
if the BUM message suppression flow table does not have the table entry matched with the input message, discarding the input message; and if a target table item matched with the input message exists in the BUM message suppression flow table, processing the input message according to an operation instruction in the target table item.
4. The method of claim 1,
the SDN forwarding device uses a BUM message suppression flow table to match the input message, and the method comprises the following steps:
the SDN forwarding equipment determines a target table entry matched with the input message in the BUM message suppression flow table;
the SDN forwarding device processes the input message according to the matching result, and the processing comprises:
and the SDN forwarding equipment processes the input message according to the operation instruction in the target table entry.
5. The method of any of claims 1-4, wherein before the SDN forwarding device determines an incoming packet is a -cast unknown unicast-multicast BUM packet based on a classification flow table and a Media Access Control (MAC) address of the incoming packet, the method further comprises:
the SDN forwarding device receives a BUM message processing instruction sent by an SDN controller and executes the BUM message processing instruction, wherein the BUM message processing instruction is used for instructing the SDN forwarding device to process the input message according to the BUM message suppression flow table under the condition that the input message is determined to be the BUM message according to the classification flow table.
6, A message processing method in SDN, comprising:
the SDN controller determines a classification flow table;
the SDN controller determines to broadcast an unknown unicast and multicast BUM message suppression flow table, wherein the BUM message suppression flow table comprises at least table entries, and the table entries comprise matching entries and operation instructions;
the SDN controller generates a BUM message processing instruction, wherein the BUM message processing instruction is used for instructing SDN forwarding equipment to inhibit a flow table to process an input message according to the BUM message under the condition that the input message is determined to be the BUM message according to the classification flow table;
and the SDN controller sends the classification flow table, the BUM message suppression flow table and the BUM message processing instruction to the SDN forwarding equipment.
7. The method of claim 6, wherein the matching entries of the BUM packet suppression flow table comprise at least of an incoming interface, a destination MAC address, a source MAC address, a destination Internet protocol IP address, a source IP address, a protocol type, a port number of a user data protocol/transport control protocol.
8, Software Defined Network (SDN) forwarding equipment, comprising:
a receiving unit, configured to receive an input message;
an determining unit, configured to determine, according to the classified flow table and the MAC address of the incoming packet received by the receiving unit, that the incoming packet is a broadcast unknown unicast and multicast BUM packet;
a second determining unit, configured to match the input packet using a BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, and the entry includes a matching entry and an operation instruction;
and the third determining unit is used for processing the input message according to the matching result determined by the second determining unit.
9. The SDN forwarding device of claim 8, wherein the second determining unit is specifically configured to search, according to the input packet, whether an entry matching the input packet exists in the BUM packet suppression flow table.
10. The SDN forwarding device of claim 9, wherein the third determining unit is specifically configured to discard the incoming packet if no entry matching the incoming packet exists in the BUM packet suppression flow table; and if a target table item matched with the input message exists in the BUM message suppression flow table, processing the input message according to an operation instruction in the target table item.
11. The SDN forwarding device of claim 8, wherein the second determining unit is specifically configured to determine a target entry in the BUM packet suppression flow table that matches the input packet;
the third determining unit is specifically configured to process the input packet according to the operation instruction in the target entry.
12. The SDN forwarding device of any of claims 8 through 11, wherein the receiving unit is further configured to receive BUM packet processing instructions sent by an SDN controller;
the second determining unit and the third determining unit are further configured to execute the BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the determining unit to process the input packet according to the BUM packet suppression flow table when the input packet is determined to be a BUM packet according to the classification flow table.
An SDN controller of , comprising:
an th determination unit for determining a classification flow table;
a second determining unit, configured to determine to broadcast an unknown unicast and multicast BUM packet suppression flow table, where the BUM packet suppression flow table includes at least entries, and the entries include matching entries and operation instructions;
a third determining unit, configured to generate a BUM packet processing instruction, where the BUM packet processing instruction is used to instruct an SDN forwarding device to, when determining that an input packet is a BUM packet according to the classification flow table, suppress the flow table according to the BUM packet to process the input packet;
a sending unit, configured to send the classification flow table determined by the -th determining unit, the BUM packet suppression flow table determined by the second determining unit, and the BUM packet processing instruction generated by the third determining unit to an SDN forwarding device.
14. The SDN controller of claim 13, wherein the match of the BUM packet suppression flow table includes at least of an ingress interface, a destination MAC address, a source MAC address, a destination internet protocol IP address, a source IP address, a protocol type, a port number of a user data protocol/transmission control protocol.
CN201510486107.6A 2015-08-10 2015-08-10 Message processing method and device in software defined network Active CN106453144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510486107.6A CN106453144B (en) 2015-08-10 2015-08-10 Message processing method and device in software defined network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510486107.6A CN106453144B (en) 2015-08-10 2015-08-10 Message processing method and device in software defined network

Publications (2)

Publication Number Publication Date
CN106453144A CN106453144A (en) 2017-02-22
CN106453144B true CN106453144B (en) 2020-01-31

Family

ID=58093775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510486107.6A Active CN106453144B (en) 2015-08-10 2015-08-10 Message processing method and device in software defined network

Country Status (1)

Country Link
CN (1) CN106453144B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971526B (en) * 2020-01-06 2021-10-29 苏州盛科通信股份有限公司 Flow table expansion method and device for FDB (fully drawn bus) resources of hybrid switch
CN115987912A (en) * 2022-12-21 2023-04-18 迈普通信技术股份有限公司 Message forwarding control method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2572473B1 (en) * 2010-05-19 2014-02-26 Telefonaktiebolaget L M Ericsson (PUBL) Methods and apparatus for use in an openflow network
CN103248724A (en) * 2013-04-19 2013-08-14 中国(南京)未来网络产业创新中心 SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method
CN103312611B (en) * 2013-06-03 2016-12-28 华为技术有限公司 Message processing method, device label processing method and equipment
CN104348716B (en) * 2013-07-23 2018-03-23 新华三技术有限公司 A kind of message processing method and equipment

Also Published As

Publication number Publication date
CN106453144A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN109952746B (en) Integrating physical and virtual network functions in a business-linked network environment
US10742722B2 (en) Server load balancing
US8913613B2 (en) Method and system for classification and management of inter-blade network traffic in a blade server
US9602428B2 (en) Method and apparatus for locality sensitive hash-based load balancing
WO2015096513A1 (en) Packet processing method, node and system
CN106878194B (en) Message processing method and device
US20140022894A1 (en) Network system, switch and connected terminal detection method
US10798000B2 (en) Method and apparatus of compressing network forwarding entry information
US10313154B2 (en) Packet forwarding
US9729446B1 (en) Protocol-independent packet routing
US20190020584A1 (en) Packet Processing Method and System, and Device
US20210399908A1 (en) Multicast routing
CN109067585B (en) Method and device for issuing query ACL (access control list) table items
WO2016115698A1 (en) Data packet forwarding method, apparatus and device
US10313275B2 (en) Packet forwarding
US20160330117A1 (en) Scalable network address translation at high speed in a network environment
US20200028779A1 (en) Packet processing method and apparatus
CN106453144B (en) Message processing method and device in software defined network
US9749262B2 (en) Packet processing method and forwarding element
US20160352637A1 (en) Client-based port filter table
US9847929B2 (en) Cluster and forwarding method
US10505834B2 (en) Session aware adaptive packet filtering
CN105450527A (en) Message processing, information transmitting and information receiving method and device
US20150172176A1 (en) Control device, communication system, communication method and program
US10063487B2 (en) Pattern matching values of a packet which may result in false-positive matches

Legal Events

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