[go: up one dir, main page]

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

Packet 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
packet
flow table
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

本发明实施例提供软件定义网络中的报文处理的方法和设备,该方法包括:SDN转发设备根据分类流表以及输入报文的媒体接入控制MAC地址确定该输入报文为广播未知单播多播BUM报文;该SDN转发设备使用BUM报文抑制流表对该输入报文进行匹配,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令;该SDN转发设备根据匹配结果,对该输入报文进行处理。上述技术方案能够对数据流中的BUM报文进行精确的控制,提高网络带宽和转发性能。

Figure 201510486107

Embodiments of the present invention provide a method and device for processing a packet in a software-defined network. The method includes: an SDN forwarding device determines that the input packet is a broadcast unknown unicast according to a classification flow table and a media access control MAC address of the input packet multicasting the BUM message; the SDN forwarding device uses the BUM message suppression flow table to match the input message, the BUM message suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction; the SDN The forwarding device processes the input packet according to the matching result. The above technical solutions can accurately control the BUM packets in the data flow, thereby improving network bandwidth and forwarding performance.

Figure 201510486107

Description

软件定义网络中的报文处理方法和设备Packet processing method and device in software-defined network

技术领域technical field

本发明实施例涉及通信领域,尤其涉及软件定义网络中的报文处理方法和设备。Embodiments of the present invention relate to the field of communications, and in particular, to a packet processing method and device in a software-defined network.

背景技术Background technique

软件定义网络(英文:Software Defined Network,简称“SDN”)通过开放流(英文:OpenFlow)技术将原来完全由交换机/路由器控制的转发过程转化为由SDN交换机(英文:SDN Switch)和控制器(英文:Controller)共同完成,实现数据转发和路由控制的分离。SDN技术采用多级流表的流水线完成报文从输入到输出的转发处理过程。但是,目前SDN中存在大量的广播未知单播多播(英文:Broadcast Unknown unicast and Multicast,简称“BUM”)报文被复制广播发送,占用网络带宽,影响网络性能。Software Defined Network (English: Software Defined Network, referred to as "SDN") uses OpenFlow (English: OpenFlow) technology to convert the forwarding process that was completely controlled by switches/routers into SDN switches (English: SDN Switch) and controllers ( English: Controller) together to achieve the separation of data forwarding and routing control. SDN technology uses a multi-level flow table pipeline to complete the forwarding process of packets from input to output. However, at present, a large number of broadcast unknown unicast and multicast (English: Broadcast Unknown unicast and Multicast, "BUM") packets are duplicated and broadcast and sent in SDN, occupying network bandwidth and affecting network performance.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供软件定义网络中的报文处理方法和设备,能够对数据流中的BUM报文进行精确的控制,提高网络带宽和转发性能。The embodiments of the present invention provide a packet processing method and device in a software-defined network, which can accurately control BUM packets in a data flow, and improve network bandwidth and forwarding performance.

第一方面,本发明实施例提供一种软件定义网络SDN中的报文处理方法,包括:SDN转发设备根据分类流表以及输入报文的媒体接入控制MAC地址确定该输入报文为广播未知单播多播BUM报文;该SDN转发设备使用BUM报文抑制流表对该输入报文进行匹配,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令;该SDN转发设备根据匹配结果,对该输入报文进行处理。In a first aspect, an embodiment of the present invention provides a packet processing method in a software-defined network SDN, including: the SDN forwarding device determines that the input packet is broadcast unknown according to the classification flow table and the media access control MAC address of the input packet Unicast multicast BUM message; the SDN forwarding device uses a BUM message suppression flow table to match the input message, and the BUM message suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction; The SDN forwarding device processes the input packet according to the matching result.

结合第一方面,在第一方面的第一种可能的实现方式中,该SDN转发设备确定使用BUM报文抑制流表对该输入报文进行匹配,包括:该SDN转发设备根据该输入报文,查找该BUM报文抑制流表中是否存在与该输入报文相匹配的表项。With reference to the first aspect, in a first possible implementation manner of the first aspect, determining by the SDN forwarding device to use the BUM packet suppression flow table to match the input packet includes: the SDN forwarding device according to the input packet , to check whether there is an entry matching the input packet in the BUM packet suppression flow table.

结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,该SDN转发设备根据匹配结果,对该输入报文进行处理,包括:若该BUM报文抑制流表中不存在与该输入报文相匹配的表项,将该输入报文丢弃;若该BUM报文抑制流表中存在与该输入报文相匹配的目标表项,根据该目标表项中的操作指令对该输入报文进行处理。With reference to the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the SDN forwarding device processes the input message according to the matching result, including: if the BUM message If there is no entry matching the input packet in the suppression flow table, the input packet is discarded; if there is a target entry matching the input packet in the BUM packet suppression flow table, according to the target table The operation instruction in the item processes the input message.

结合第一方面,在第一方面的第三种可能的实现方式中,该SDN转发设备使用BUM报文抑制流表对该输入报文进行匹配,包括:该SDN转发设备确定该BUM报文抑制流表中与该输入报文相匹配的目标表项;该SDN转发设备根据匹配结果,对该输入报文进行处理,包括:该SDN转发设备根据该目标表项中的操作指令对该输入报文进行处理。With reference to the first aspect, in a third possible implementation manner of the first aspect, the SDN forwarding device uses the BUM packet suppression flow table to match the input packet, including: the SDN forwarding device determining the BUM packet suppression The target entry in the flow table that matches the input message; the SDN forwarding device processes the input message according to the matching result, including: the SDN forwarding device reports the input message according to the operation instruction in the target entry text is processed.

结合第一方面或第一方面的上述任一种可能的实现方式,在第一方面的第四种可能的实现方式中,该匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。With reference to the first aspect or any of the above possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the matching item includes at least one of the following: an ingress interface, a destination MAC address, a source MAC address, destination IP address, source IP address, protocol type, user data protocol/transmission control protocol port number.

结合第一方面或第一方面的上述任一种可能的实现方式,在第一方面的第五种可能的实现方式中,在该SDN转发设备根据分类流表以及输入报文的媒体接入控制MAC地址确定该输入报文为广播未知单播多播BUM报文之前,该方法还包括:该SDN转发设备接收SDN控制器发送的BUM报文处理指令并执行该BUM报文处理指令,该BUM报文处理指令用于指示该SDN转发设备在根据该分类流表确定该输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文。With reference to the first aspect or any of the above-mentioned possible implementations of the first aspect, in a fifth possible implementation of the first aspect, the SDN forwarding device performs media access control according to the classified flow table and the input message. Before the MAC address determines that the input message is a broadcast unknown unicast multicast BUM message, the method further includes: the SDN forwarding device receives the BUM message processing instruction sent by the SDN controller and executes the BUM message processing instruction. The packet processing instruction is used to instruct the SDN forwarding device to process the input packet according to the BUM packet suppression flow table under the condition that the input packet is determined to be a BUM packet according to the classified flow table.

第二方面,本发明实施例提供一种软件定义网络SDN中的报文处理方法,包括:SDN控制器确定分类流表;该SDN控制器确定广播未知单播多播BUM报文抑制流表,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令;该SDN控制器还用于生成BUM报文处理指令,该BUM报文处理指令用于指示SDN转发设备在根据该分类流表确定输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文;该SDN控制器将该分类流表、该BUM报文抑制流表以及该BUM报文处理指令发送至该SDN转发设备。In a second aspect, an embodiment of the present invention provides a packet processing method in a software-defined network SDN, including: an SDN controller determining a classification flow table; the SDN controller determining a broadcast unknown unicast multicast BUM packet suppression flow table, The BUM packet suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction; the SDN controller is further configured to generate a BUM packet processing instruction, and the BUM packet processing instruction is used to instruct the SDN forwarding device in If it is determined according to the classified flow table that the input message is a BUM message, the input message is processed according to the BUM message suppression flow table; the SDN controller uses the classified flow table, the BUM message suppression flow table and the BUM message The packet processing instruction is sent to the SDN forwarding device.

结合第二方面,在第二方面的第一种可能的实现方式中,该BUM报文抑制流表的匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。With reference to the second aspect, in a first possible implementation manner of the second aspect, the matching item of the BUM packet suppression flow table includes at least one of the following: ingress interface, destination MAC address, source MAC address, destination Internet Protocol IP address, source IP address, protocol type, user data protocol/transmission control protocol port number.

第三方面,本发明实施例提供一种软件定义网络SDN转发设备,包括:接收单元,用于接收输入报文;第一确定单元,用于根据分类流表以及该接收单元接收的该输入报文的媒体接入控制MAC地址,确定该输入报文为广播未知单播多播BUM报文;第二确定单元,用于使用BUM报文抑制流表对该输入报文进行匹配,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令;第三确定单元,用于根据该第二确定单元的确定的匹配结果,对该输入报文进行处理。In a third aspect, an embodiment of the present invention provides a software-defined network SDN forwarding device, including: a receiving unit, configured to receive an input packet; and a first determining unit, configured to classify flow table and the input packet received by the receiving unit. the media access control MAC address of the message, to determine that the input message is a broadcast unknown unicast multicast BUM message; the second determination unit is configured to use the BUM message suppression flow table to match the input message, and the BUM message The message suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction; a third determining unit is configured to process the input message according to the matching result determined by the second determining unit.

结合第三方面,在第三方面的第一种可能的实现方式中,该第二确定单元,具体用于根据该输入报文,查找该BUM报文抑制流表中是否存在与该输入报文相匹配的表项。With reference to the third aspect, in a first possible implementation manner of the third aspect, the second determining unit is specifically configured to, according to the input message, search whether there is a correlation with the input message in the BUM message suppression flow table matching entries.

结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,该第三确定单元,具体用于若该BUM报文抑制流表中不存在与该输入报文相匹配的表项,将该输入报文丢弃;若该BUM报文抑制流表中存在与该输入报文相匹配的目标表项,根据该目标表项中的操作指令对该输入报文进行处理。In combination with the first possible implementation manner of the third aspect, in the second possible implementation manner of the third aspect, the third determining unit is specifically configured to be used if the BUM packet suppression flow table does not exist and the input If there is a target entry matching the input packet in the BUM packet suppression flow table, the input packet is reported according to the operation command in the target entry. text is processed.

结合第三方面,在第三方面的第三种可能的实现方式中,该第二确定单元,具体用于确定该BUM报文抑制流表中与该输入报文相匹配的目标表项;该第三确定单元,具体用于根据该目标表项中的操作指令对该输入报文进行处理。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 in the BUM packet suppression flow table that matches the input packet; the The third determining unit is specifically configured to process the input message according to the operation instruction in the target entry.

结合第三方面或第三方面的上述任一种可能的实现方式,在第三方面的第四种可能的实现方式中,该BUM报文抑制流表的匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。With reference to the third aspect or any of the foregoing possible implementations of the third aspect, in a fourth possible implementation of the third aspect, the matching item of the BUM packet suppression flow table includes at least one of the following: Interface, destination MAC address, source MAC address, destination IP address, source IP address, protocol type, user data protocol/transmission control protocol port number.

结合第三方面或第三方面的上述任一种可能的实现方式,在第三方面的第五种可能的实现方式中,该接收单元,还用于接收SDN控制器发送的BUM报文处理指令;该第二确定单元和该第三确定单元,还用于执行该BUM报文处理指令,该BUM报文处理指令用于指示该第一确定单元在根据该分类流表确定该输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文With reference to the third aspect or any of the above possible implementations of the third aspect, in a fifth possible implementation of the third aspect, the receiving unit is further configured to receive a BUM packet processing instruction sent by the SDN controller ; The second determination unit and the third determination unit are also used to execute the BUM message processing instruction, and the BUM message processing instruction is used to instruct the first determination unit to determine that the input message is based on the classification flow table. In the case of a BUM packet, the input packet is processed according to the BUM packet suppression flow table

第四方面,本发明实施例提供一种软件定义网络SDN控制器,包括:第一确定单元,用于确定分类流表;第二确定单元,用于确定广播未知单播多播BUM报文抑制流表,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令;第三确定单元,用于生成BUM报文处理指令,该BUM报文处理指令用于指示SDN转发设备在根据该分类流表确定输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文;发送单元,用于将该第一确定单元确定的该分类流表、该第二确定单元确定的该BUM报文抑制流表以及该第三确定单元生成的该BUM报文处理指令发送至SDN转发设备。In a fourth aspect, an embodiment of the present invention provides a software-defined network SDN controller, including: a first determination unit configured to determine a classified flow table; a second determination unit configured to determine broadcast unknown unicast multicast BUM packet suppression a flow table, the BUM packet suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction; a third determining unit is used to generate a BUM packet processing instruction, and the BUM packet processing instruction is used to indicate the SDN When the forwarding device determines that the input message is a BUM message according to the classified flow table, the input message is processed according to the BUM message suppression flow table; the sending unit is used for the classified flow table determined by the first 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 are sent to the SDN forwarding device.

结合第四方面,在第四方面的第一种可能的实现方式中,该BUM报文抑制流表的匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the matching item of the BUM packet suppression flow table includes at least one of the following: ingress interface, destination MAC address, source MAC address, destination Internet Protocol IP address, source IP address, protocol type, user data protocol/transmission control protocol port number.

上述技术方案中,SDN转发设备能够利用BUM报文控制流表对BUM报文进行精确控制。因此,上述方案可以避免因没有固定的BUM控制规则导致的网络性能的降低,从而提高网络带宽和转发性能。In the above technical solution, the SDN forwarding device can precisely control the BUM message by using the BUM message control flow table. Therefore, the above solution can avoid the reduction of network performance caused by the lack of fixed BUM control rules, thereby improving network bandwidth and forwarding performance.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1是根据本发明实施例提供的SDN中的处理报文的方法的示意性流程图。FIG. 1 is a schematic flowchart of a method for processing a packet in an SDN according to an embodiment of the present invention.

图2是根据本发明实施例提供的SDN中的处理报文的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for processing a packet in an SDN according to an embodiment of the present invention.

图3是根据本发明实施例提供的SDN转发设备的结构框图。FIG. 3 is a structural block diagram of an SDN forwarding device provided according to an embodiment of the present invention.

图4是根据本发明实施例提供的SDN控制器的结构框图。FIG. 4 is a structural block diagram of an SDN controller provided according to an embodiment of the present invention.

图5是根据本发明实施例提供的SDN转发设备的结构框图。FIG. 5 is a structural block diagram of an SDN forwarding device provided according to an embodiment of the present invention.

图6是根据本发明实施例提供的SDN控制器的结构框图。FIG. 6 is a structural block diagram of an SDN controller provided according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

图1是根据本发明实施例提供的SDN中的处理报文的方法的示意性流程图。所述方法包括:FIG. 1 is a schematic flowchart of a method for processing a packet in an SDN according to an embodiment of the present invention. The method includes:

101,SDN转发设备根据分类流表以及输入报文的媒体接入控制(英文:MediaAccess Control,简称:MAC)地址确定该输入报文为BUM报文。101. The SDN forwarding device determines that the input message is a BUM message according to the classification flow table and the media access control (English: Media Access Control, MAC for short) address of the input message.

102,该SDN转发设备使用BUM报文抑制流表对该输入报文进行匹配,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令。102. The SDN forwarding device uses a BUM packet suppression flow table to match the input packet, where the BUM packet suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction.

103,该SDN转发设备根据匹配结果,对该输入报文进行处理。103. The SDN forwarding device processes the input packet according to the matching result.

图1所示的方法中,SDN转发设备能够利用BUM报文控制流表对BUM报文进行精确控制。因此,上述方案可以避免因没有固定的BUM控制规则导致的网络性能的降低,从而提高网络带宽和转发性能。In the method shown in FIG. 1 , the SDN forwarding device can precisely control the BUM message by using the BUM message control flow table. Therefore, the above solution can avoid the reduction of network performance caused by the lack of fixed BUM control rules, thereby improving network bandwidth and forwarding performance.

可选的,作为一个实施例,该SDN转发设备确定使用BUM报文抑制流表对该输入报文进行匹配,包括:该SDN转发设备确定该BUM报文抑制流表的表项中是否存在与该输入报文相匹配的目标表项。该SDN转发设备根据匹配结果,对该输入报文进行处理,包括:若该BUM报文抑制流表的表项中不存在与该输入报文相匹配的目标表项,将该输入报文丢弃;若该BUM报文抑制流表的表项中存在与该输入报文相匹配的目标表项,根据该目标表项的操作能够对该输入报文进行处理。Optionally, as an embodiment, determining by the SDN forwarding device to use the BUM packet suppression flow table to match the input packet includes: determining, by the SDN forwarding device, whether there is an entry in the BUM packet suppression flow table that matches the input packet. The target entry that matches this input packet. The SDN forwarding device processes the input message according to the matching result, including: if there is no target entry matching the input message in the entry of the BUM message suppression flow table, discarding the input message ; If there is a target entry matching the input packet in the entry of the BUM packet suppression flow table, the input packet can be processed according to the operation of the target entry.

可选的,作为另一个实施例,该SDN转发设备确定使用BUM报文抑制流表对该输入报文进行匹配,包括:该SDN转发设备确定该BUM报文抑制流表的表项中与该输入报文相匹配的目标表项。该SDN转发设备根据匹配结果,对该输入报文进行处理,包括:该SDN转发设备根据该目标表项的操作指令对该输入报文进行处理。Optionally, as another embodiment, determining by the SDN forwarding device to use the BUM packet suppression flow table to match the input packet includes: determining, by the SDN forwarding device, that an entry in the BUM packet suppression flow table matches the BUM packet suppression flow table. Enter the destination entry that matches the packet. The SDN forwarding device processes the input message according to the matching result, including: the SDN forwarding device processes the input message according to the operation instruction of the target entry.

例如,如果该目标表项的操作指令为丢弃,则将该输入报文丢弃处理。如果该目标表项的操作指令为转发,则将该输入报文进行转发处理。For example, if the operation instruction of the target entry is discard, the input packet is discarded. If the operation instruction of the target entry is forwarding, the input packet is forwarded.

具体地,该BUM报文抑制流表的匹配项包括以下中的至少一个:输入接口、目的MAC地址、源MAC地址、目的互联网协议(英文:Internet Protocol,简称:IP)地址、源IP地址、协议类型、用户数据协议(英文:User Datagram Protocol,简称:UDP)/传输控制协议(英文:Transmission Control Protocol,简称:TCP)的端口号。Specifically, the matching item in the BUM packet suppression flow table includes at least one of the following: input interface, destination MAC address, source MAC address, destination Internet Protocol (English: Internet Protocol, IP for short) address, source IP address, Protocol type, User Datagram Protocol (English: User Datagram Protocol, referred to as: UDP)/Transmission Control Protocol (English: Transmission Control Protocol, referred to as: TCP) port number.

进一步,在该SDN转发设备根据分类流表以及输入报文的MAC地址确定该输入报文为BUM报文之前,该方法还包括:该SDN转发设备接收SDN控制器发送的BUM报文处理指令并执行该BUM报文处理指令,该BUM报文处理指令用于指示该SDN转发设备在根据该分类流表确定该输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文。Further, before the SDN forwarding device determines that the input message is a BUM message according to the classification flow table and the MAC address of the input message, the method further includes: the SDN forwarding device receives the BUM message processing instruction sent by the SDN controller and Execute the BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the SDN forwarding device to process the input according to the BUM packet suppression flow table under the condition that the input packet is determined to be a BUM packet according to the classified flow table message.

本领域技术人员可以理解的是,该分类流表和该BUM抑制流表是SDN控制器确定并发送给SDN转发设备的。在执行BUM报文处理指令的情况下,SDN转发设备在接收SDN控制器发送的分类流表和BUM抑制流表后,根据分类流表确定输入报文是否为BUM报文,并在确定输入报文为BUM报文的情况下,根据BUM抑制流表对BUM报文进行处理。此外,SDN控制器还可以对确定的BUM抑制流表进行更新并将更新后的BUM抑制流表发送给SDN转发设备。在此情况下,SDN转发设备可以根据更新后的BUM报文抑制流表对BUM报文进行处理。Those skilled in the art can understand that the classified flow table and the BUM suppression flow table are determined by the SDN controller and sent to the SDN forwarding device. In the case of executing the BUM packet processing instruction, after receiving the classified flow table and the BUM suppression flow table sent by the SDN controller, the SDN forwarding device determines whether the input packet is a BUM packet according to the classified flow table, and determines whether the input packet is a BUM packet. If the message is a BUM message, the BUM message is processed according to the BUM suppression flow table. In addition, the SDN controller may also 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 message according to the updated BUM message suppression flow table.

图2是根据本发明实施例提供SDN中的处理报文的方法的示意性流程图。所述方法包括:FIG. 2 is a schematic flowchart of a method for providing a packet processing in an SDN according to an embodiment of the present invention. The method includes:

201,SDN控制器确定分类流表。201. The SDN controller determines a classification flow table.

202,该SDN控制器确定BUM报文抑制流表,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令。202. The SDN controller determines a BUM packet suppression flow table, where the BUM packet suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction.

203,该SDN控制器生成BUM报文处理指令,该BUM报文处理指令用于指示SDN转发设备在根据该分类流表确定输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文。203. The SDN controller generates a BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the SDN forwarding device to suppress the flow table according to the BUM packet under the condition that the input packet is determined to be a BUM packet according to the classified flow table Process the incoming message.

204,该SDN控制器将该分类流表、该BUM报文抑制流表以及该BUM报文处理指令发送至该SDN转发设备。204. The SDN controller sends the classified flow table, the BUM packet suppression flow table, and the BUM packet processing instruction to the SDN forwarding device.

根据图2所示的方法,SDN控制器能够确定分类流表以及BUM报文抑制流表,并将该分类流表和该BUM报文抑制流表发送给SDN转发设备。这样,SDN转发设备在执行BUM报文处理指令的情况下,在利用分类流表识别出BUM报文后,利用BUM报文控制流表对BUM报文进行精确控制。因此,上述方案可以避免因没有固定的BUM控制规则导致的网络性能的降低,从而提高网络带宽和转发性能。According to the method shown in FIG. 2 , the SDN controller can determine the classified flow table and the BUM message suppression flow table, and send the classified flow table and the BUM message suppression flow table to the SDN forwarding device. In this way, when the SDN forwarding device executes the BUM packet processing instruction, after identifying the BUM packet using the classified flow table, the SDN forwarding device uses the BUM packet control flow table to precisely control the BUM packet. Therefore, the above solution can avoid the reduction of network performance caused by the lack of fixed BUM control rules, thereby improving network bandwidth and forwarding performance.

具体地,该BUM报文抑制流表的匹配项包括以下中的至少一个:输入接口、目的MAC地址、源MAC地址、目的IP地址、源IP地址、协议类型、UDP/TCP的端口号。Specifically, the matching item of the BUM packet suppression flow table includes at least one of the following: input interface, destination MAC address, source MAC address, destination IP address, source IP address, protocol type, and UDP/TCP port number.

为了帮助本领域技术人员更好地理解本发明,下面将结合具体实施例对本发明进行进一步描述。可以理解的是,该具体实施例仅是为了帮助更好地理解本发明,而并非对本发明的限制。In order to help those skilled in the art better understand the present invention, the present invention will be further described below with reference to specific embodiments. It can be understood that, the specific embodiments are only for helping better understanding of the present invention, rather than limiting the present invention.

SDN控制器确定分类流表并将该分类流表发送给SDN转发设备,该分类流表包括MAC地址。换句话说,该分类流表能够用于区分BUM报文与非BUM报文。The SDN controller determines the classified flow table and sends the classified flow table to the SDN forwarding device, the classified flow table including the MAC address. In other words, the classified flow table can be used to distinguish BUM packets from non-BUM packets.

可选的,作为一个实施例,SDN控制器可以设置输入报文的目的MAC地址属于特定的目的MAC地址的报文为BUM报文。也就是说,该分类流表中的MAC地址信息包括BUM报文的目的MAC地址。在此情况下,SDN转发设备可以确定输入报文的目的MAC地址,并确定该目的MAC地址是否属于该分类流表。如果SDN转发设备确定该输入报文的目的MAC地址属于该分类流表,则确定该输入报文为BUM报文。如果SDN转发设备确定该输入报文的目的MAC地址不属于该分类流表,则确定该输入报文为非BUM报文。Optionally, as an embodiment, the SDN controller may set a packet whose destination MAC address of the input packet belongs to a specific destination MAC address as a BUM packet. That is, the MAC address information in the classified flow table includes the destination MAC address of the BUM packet. In this case, the SDN forwarding device can determine the destination MAC address of the input packet, and determine whether the destination MAC address belongs to the classified flow table. If the SDN forwarding device determines that the destination MAC address of the input message belongs to the classified flow table, it determines that the input message is a BUM message. If the SDN forwarding device determines that the destination MAC address of the input packet does not belong to the classified flow table, it determines that the input packet is a non-BUM packet.

可选的,作为另一个实施例,SDN控制器可以设置输入报文的目的MAC地址属于特定的目的MAC地址的报文为非BUM报文。也就是说,该分类流表中的MAC地址信息包括非BUM报文的目的MAC地址。在此情况下,SDN转发设备可以确定输入报文的目的MAC地址,确定该目的MAC地址是否属于该分类流表。如果SDN转发设备确定该输入报文的目的MAC地址属于该分类流表,则确定该输入报文为非BUM报文。如果SDN转发设备确定该输入报文的目的MAC地址不属于该分类流表,则确定该输入报文为BUM报文。Optionally, as another embodiment, the SDN controller may set a packet whose destination MAC address of the input packet belongs to a specific destination MAC address as a non-BUM packet. That is, the MAC address information in the classified flow table includes the destination MAC address of the non-BUM packet. In this case, the SDN forwarding device can determine the destination MAC address of the input packet, and determine whether the destination MAC address belongs to the classified flow table. If the SDN forwarding device determines that the destination MAC address of the input packet belongs to the classified flow table, it determines that the input packet is a non-BUM packet. If the SDN forwarding device determines that the destination MAC address of the input message does not belong to the classified flow table, it determines that the input message is a BUM message.

可选的,作为另一个实施例,SDN控制器可以设置输入报文的目的MAC地址属于第一MAC地址集合的输入报文为BUM报文,输入报文的目的MAC地址属于第二MAC地址集合的输入报文为非BUM报文。也就是说,该分类流表的MAC地址信息中包括两个MAC地址集合,第一MAC地址集合为BUM报文的MAC地址集合,第二MAC地址集合为非BUM报文MAC地址集合。在此情况下,SDN转发设备可以确定输入报文的目的MAC地址,确定该目的MAC地址属于该分类流表中的哪一个MAC地址集合。如果SDN转发设备确定该输入报文的目的MAC地址属于该第一MAC地址集合,则确定该输入报文为BUM报文。如果SDN转发设备确定该输入报文的目的MAC地址属于该第二MAC地址集合,则确定该输入报文为非MUB报文。Optionally, as another embodiment, the SDN controller may set the input packet whose destination MAC address of the input packet belongs to the first MAC address set as a BUM packet, and the destination MAC address of the input packet belongs to the second MAC address set. The input packet is a non-BUM packet. That is, the MAC address information of the classified flow table includes two sets of MAC addresses, the first set of MAC addresses is the set of MAC addresses of BUM packets, and the second set of MAC addresses is the set of MAC addresses of non-BUM packets. In this case, the SDN forwarding device can determine the destination MAC address of the input packet, and determine which MAC address set in the classified flow table the destination MAC address belongs to. If the SDN forwarding device determines that the destination MAC address of the input packet belongs to the first MAC address set, it determines that the input packet is a BUM packet. If the SDN forwarding device determines that the destination MAC address of the input packet belongs to the second MAC address set, it determines that the input packet is a non-MUB packet.

本领域技术人员可以理解,上述实施例中的特定MAC地址、第一MAC地址集合以及第二MAC地址集合中的MAC地址可以是确定的完整MAC地址;也可以符合特定规则的MAC地址,例如MAC地址中的前N项均为D8:96:83的MAC地址。Those skilled in the art can understand that the specific MAC address, the first MAC address set, and the MAC addresses in the second MAC address set in the above-mentioned embodiments may be determined complete MAC addresses; they may also be MAC addresses that conform to specific rules, such as MAC addresses. The first N items in the address are the MAC addresses of D8:96:83.

本领域技术人员可以理解,SDN控制器除了可以通过设定目的MAC地址的方式设置该分类流表外,还可以通过设定源MAC地址的方式设置分类流表,或者同时设置目的MAC地址和源MAC地址的方式设置分类流表。具体方式与设定目的MAC地址的方式类似,在此就不必赘述。Those skilled in the art can understand that the SDN controller can not only set the classified flow table by setting the destination MAC address, but also set the classified flow table by setting the source MAC address, or set the destination MAC address and the source MAC address at the same time. Set the classification flow table by means of MAC address. The specific manner is similar to the manner of setting the destination MAC address, and it is unnecessary to describe it here.

SDN控制器还可以确定BUM报文抑制流表并将该BUM报文抑制流表发送给SDN转发设备。The SDN controller may also determine the BUM packet suppression flow table and send the BUM packet suppression flow table to the SDN forwarding device.

SDN控制器还可以生成BUM报文处理指令并将该BUM报文处理指令发送给该SDN转发设备。该BUM报文处理指令用于指示SDN转发设备在根据该分类流表确定输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文。The SDN controller may also generate a BUM packet processing instruction and send the BUM packet processing instruction to the SDN forwarding device. 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 under the condition that the input packet is determined to be a BUM packet according to the classified flow table.

SDN转发设备在接收到该BUM报文处理指令后,执行该BUM报文处理指令。在此情况下,该SDN转发设备在利用接收到的分类流表确定出输入报文为BUM报文的情况下,可以确定使用接收到的BUM报文抑制流表对该输入报文进行匹配,并根据匹配结果对该输入报文进行处理。After receiving the BUM packet processing instruction, the SDN forwarding device executes the BUM packet processing instruction. In this case, when the SDN forwarding device determines that the input packet is a BUM packet by using the received classification flow table, it can determine to use the received BUM packet suppression flow table to match the input packet, And process the input message according to the matching result.

可选的,作为一个实施例,该SDN转发设备可以确定该BUM报文抑制流表的表项中是否存在与该输入报文匹配的表项。表1是一个报文抑制流表的示意,其中该报文抑制流表中的表项的匹配项包括源MAC地址、目的MAC地址、源IP和目的IP。Optionally, as an embodiment, the SDN forwarding device may determine whether there is an entry matching the input packet in the entry of the BUM packet suppression flow table. Table 1 is a schematic diagram of a packet suppression flow table, wherein the matching items of the entries in the packet suppression flow table include a source MAC address, a destination MAC address, a source IP and a destination IP.

可以理解的是,表1仅是一种BUM报文抑制流表的示意。报文抑制流表可以根据需要设定匹配项,匹配项可以包括以下中的至少一个:报文输入接口、报文目的MAC地址、报文源MAC地址、报文目的IP地址、报文源IP地址、报文协议类型、UDP/TCP的端口号。此外,可以理解的是,需要确定的输入报文的属性与表项中的匹配项是相同的。例如,如果表项中的匹配项仅包括目的IP地址,则确定输入报文的目的IP地址即可,而不需要确定输入报文的其他特征,例如目的MAC地址等。It can be understood that Table 1 is only a schematic representation of a BUM packet suppression flow table. In the packet suppression flow table, matching items can be set as required. The matching items can include at least one of the following: packet input interface, packet destination MAC address, packet source MAC address, packet destination IP address, packet source IP address address, packet protocol type, and UDP/TCP port number. In addition, it can be understood that the attributes of the input message to be determined are the same as the matching items in the table entry. For example, if the matching item in the table entry only includes the destination IP address, it is sufficient to determine the destination IP address of the input packet without determining other characteristics of the input packet, such as the destination MAC address.

表1Table 1

Figure BDA0000778242330000091
Figure BDA0000778242330000091

SDN转发设备在确定输入报文为BUM报文后,可以确定该BUM报文抑制流表的表项的中是否存在与该输入报文的特征相匹配的目标表项。以表1为例,BUM报文抑制流表中的指令可以包括转发和继续,其中继续表示继续后续的Open Flow查表匹配流程;转发表示转发该输入报文。如果SDN转发设备确定输入报文的特征与BUM报文抑制流表中的一个表项中的每个匹配项相匹配,则执行该表项的操作指令;如果SDN转发设备确定输入报文的特征中存在不与BUM报文抑制流表的表项中的匹配项相匹配的特征,则将该输入报文进行丢弃。例如,如果SDN转发设备确定输入报文1为BUM报文,并且确定输入报文1的源MAC地址为MAC 1,目的MAC地址为MAC 2,源IP地址为IP3,目的IP地址为IP7,则执行相应的操作指令,即继续后续的Open Flow查表匹配流程。如果SDN转发设备确定输入报文2为BUM报文,并且确定输入报文2的源MAC地址为MAC 3,目的MAC地址为MAC 5,源IP为IP 7,目的IP地址为IP 9,则执行相应的操作指令,即转发输入报文2至MAC地址为MAC 5,IP地址为IP 9的设备。如果SDN转发设备确定输入报文3为BUM报文,并且确定输入报文3的源MAC地址为MAC 10,目的MAC地址为MAC 5,源IP地址为IP 7,目的IP地址为IP 9。可以看出,表1中并没有完全匹配的匹配项。在此情况下,SDN转发设备可以将输入报文3丢弃。After determining that the input packet is a BUM packet, the SDN forwarding device may determine whether there is a target entry matching the characteristics of the input packet in the entries of the BUM packet suppression flow table. Taking Table 1 as an example, the instructions in the BUM packet suppression flow table may include forwarding and continue, where continue means continuing the subsequent Open Flow table lookup and matching process; forward means forwarding the input packet. If the SDN forwarding device determines that the feature of the input packet matches each matching item in an entry in the BUM packet suppression flow table, the operation instruction of the entry is executed; if the SDN forwarding device determines that the feature of the input message matches If there is a feature that does not match the matching item in the entry of the BUM packet suppression flow table, the input packet is discarded. For example, if the SDN forwarding device determines that incoming packet 1 is a BUM packet, and determines that the source MAC address of incoming packet 1 is MAC 1, the destination MAC address is MAC 2, the source IP address is IP3, and the destination IP address is IP7, then Execute the corresponding operation instruction, that is, continue the subsequent Open Flow lookup table matching process. If the SDN forwarding device determines that the input packet 2 is a BUM packet, and determines that the source MAC address of the input packet 2 is MAC 3, the destination MAC address is MAC 5, the source IP is IP 7, and the destination IP address is IP 9, execute The corresponding operation command is to forward the input packet 2 to the device whose MAC address is MAC 5 and whose IP address is IP 9. If the SDN forwarding device determines that the incoming packet 3 is a BUM packet, and determines that the source MAC address of the incoming packet 3 is MAC 10, the destination MAC address is MAC 5, the source IP address is IP 7, and the destination IP address is IP 9. It can be seen that there are no exact matches in Table 1. In this case, the SDN forwarding device may discard the incoming packet 3.

通过上述实施例可以看出,如果可以从BUM报文抑制流表中找到与输入报文完全匹配的目标表项,则可以执行该目标匹配项对应的指令;不能从该BUM报文抑制流表中找到完全匹配的表项,则将该输入报文丢弃。It can be seen from the above embodiment that if a target entry that completely matches the input packet can be found from the BUM packet suppression flow table, the instruction corresponding to the target matching item can be executed; the BUM packet suppression flow table cannot be If an exact match is found, the input packet is discarded.

可选的,作为另一个实施例,BUM报文抑制流表中的指令可以包括:转发、继续和丢弃。也就是说,如果SDN转发设备确定输入报文的特征与BUM报文抑制流表中操作指令为丢弃的表项相匹配,则可以将该输入报文丢弃。此外,如果SDN转发设备确定输入报文的特征与报文抑制流表中的任一个表项均不匹配,则SDN转发设备可以将该输入报文进行丢弃处理。Optionally, as another embodiment, the instructions in the BUM packet suppression flow table may include: forwarding, continuing, and discarding. That is to say, if the SDN forwarding device determines that the feature of the input packet matches the entry in the BUM packet suppression flow table whose operation instruction is discard, the input packet may be discarded. In addition, if the SDN forwarding device determines that the characteristics of the input packet do not match any entry in the packet suppression flow table, the SDN forwarding device may discard the input packet.

可选的,作为另一个实施例,该SDN转发设备还可以确定该BUM报文抑制流表中与该输入报文相匹配的目标表项。表2是另一种BUM报文抑制流表的示意。其中该报文抑制流表中的表项的匹配项包括源MAC地址、目的MAC地址、源IP和目的IP。Optionally, as another embodiment, the SDN forwarding device may further determine a target entry in the BUM packet suppression flow table that matches the input packet. Table 2 is a schematic diagram of another BUM packet suppression flow table. The matching items of the entry in the packet suppression flow table include source MAC address, destination MAC address, source IP and destination IP.

可以理解的是,与表1类似,表2也仅是一种BUM报文抑制流表的示意。报文抑制流表可以根据需要设定匹配项,匹配项可以包括以下中的至少一个:报文输入接口、报文目的MAC地址、报文源MAC地址、报文目的IP地址、报文源IP地址、报文协议类型、UDP/TCP的端口号。此外,可以理解的是,需要确定的输入报文的属性与表项中的匹配项是相同的。例如,如果表项中的匹配项仅包括目的IP地址,则确定输入报文的目的IP地址即可,而不需要确定输入报文的其他特征,例如目的MAC地址等。It can be understood that, similar to Table 1, Table 2 is only a schematic representation of a BUM packet suppression flow table. In the packet suppression flow table, matching items can be set as required. The matching items can include at least one of the following: packet input interface, packet destination MAC address, packet source MAC address, packet destination IP address, packet source IP address address, packet protocol type, and UDP/TCP port number. In addition, it can be understood that the attributes of the input message to be determined are the same as the matching items in the table entry. For example, if the matching item in the table entry only includes the destination IP address, it is sufficient to determine the destination IP address of the input packet without determining other characteristics of the input packet, such as the destination MAC address.

表2Table 2

Figure BDA0000778242330000101
Figure BDA0000778242330000101

表2中“**”表示该项可以是任意值。SDN转发设备在确定输入报文为BUM报文后,可以确定该BUM报文抑制流表的表项的中与该输入报文的特征相匹配的目标表项,并根据该目标表项的操作指令对该输入报文进行处理。在表2所示的实施例中,BUM报文抑制流表中的指令可以包括转发、继续和丢弃,其中继续表示继续后续的Open Flow查表匹配流程;转发表示转发该输入报文;丢弃表示丢弃该输入报文。"**" in Table 2 indicates that this item can be any value. After determining that the input packet is a BUM packet, the SDN forwarding device may determine a target entry in the BUM packet suppression flow table that matches the characteristics of the input packet, and perform operations according to the target entry. The instruction processes the input message. In the embodiment shown in Table 2, the instructions in the BUM packet suppression flow table may include forwarding, continuing and discarding, where continuing means continuing the subsequent Open Flow table lookup and matching process; forwarding means forwarding the input packet; discarding means The incoming message is discarded.

在本实施例中,BUM报文抑制流表中会存在一条特定表项,该特定表项中的匹配项的取值均为任意值。例如,表2所示的序号为6的表项即为该特定表项。该特定表项的优先级最低。在此情况下,如果SDN转发设备确定该输入报文与除特定表项以外的任一个表项相匹配的话,则该特定表项以外的任一个表项为目标表项,执行该目标表项的操作指令。而任一输入报文如果没有与其他表项相匹配,则最终都能匹配到该特定表项,则对该输入报文做丢弃处理。换句话说,优先判断BUM报文是否与该特定表项之外的表项匹配,如果没有其他相匹配的表项,则最终会与该特定表项相匹配。例如,如果SDN转发设备确定输入报文1为BUM报文,并且确定输入报文1的源MAC地址为MAC 1,目的MAC地址为MAC 2,源IP地址为IP3,目的IP地址为IP7,则可以确定输入报文1与序号为3的表项相匹配,执行序号为3的操作指令,即继续后续的Open Flow查表匹配流程。在此情况下,序号为3的表项为输入报文1的目标表项。如果SDN转发设备确定输入报文2为BUM报文,并且确定输入报文2的源MAC地址为MAC 3,目的MAC地址为MAC 5,源IP为IP 7,目的IP地址为IP 9,则确定输入报文2与序号为4的表项相匹配,执行序号为4的操作指令,即转发输入报文2至MAC地址为MAC 5,IP地址为IP9的设备。。在此情况下,序号为4的表项为输入报文1的目标表项。如果SDN转发设备确定输入报文3为BUM报文,并且确定输入报文3的源MAC地址为MAC 7,目的MAC地址为MAC 5,源IP为IP 7,目的IP地址为IP 9。可以看出,表2中除特定表项外没有与输入报文3相匹配的表项。输入报文3的目标表项为该特定表项。在此情况下,执行相应的操作指令,即将输入报文3丢弃。In this embodiment, a specific entry exists in the BUM packet suppression flow table, and the values of the matching items in the specific entry are all arbitrary values. For example, the entry with the serial number 6 shown in Table 2 is the specific entry. This particular entry has the lowest priority. In this case, if the SDN forwarding device determines that the input packet matches any entry except the specific entry, any entry other than the specific entry is the target entry, and the target entry is executed. operation instructions. However, if any input packet does not match other entries, the specific entry can be finally matched, and the input packet is discarded. In other words, the priority is to determine whether the BUM packet matches an entry other than the specific entry. If there is no other matching entry, it will eventually match the specific entry. For example, if the SDN forwarding device determines that incoming packet 1 is a BUM packet, and determines that the source MAC address of incoming packet 1 is MAC 1, the destination MAC address is MAC 2, the source IP address is IP3, and the destination IP address is IP7, then It can be determined that the input message 1 matches the entry with the sequence number 3, and the operation instruction with the sequence number 3 is executed, that is, the subsequent Open Flow table lookup and matching process is continued. In this case, the entry with the sequence number 3 is the target entry of the input message 1. If the SDN forwarding device determines that the input packet 2 is a BUM packet, and determines that the source MAC address of the input packet 2 is MAC 3, the destination MAC address is MAC 5, the source IP is IP 7, and the destination IP address is IP 9, then determine The input packet 2 matches the entry with the sequence number 4, and the operation command with the sequence number 4 is executed, that is, the input packet 2 is forwarded to the device whose MAC address is MAC 5 and whose IP address is IP9. . In this case, the entry with the sequence number 4 is the target entry of the input message 1. If the SDN forwarding device determines that the input packet 3 is a BUM packet, and determines that the source MAC address of the input packet 3 is MAC 7, the destination MAC address is MAC 5, the source IP is IP 7, and the destination IP address is IP 9. It can be seen that, except for the specific entry in Table 2, there is no entry matching the input packet 3. The target entry of the input message 3 is the specific entry. In this case, the corresponding operation instruction is executed, that is, the input message 3 is discarded.

本领域技术人员可以理解,该SDN转发设备可以先确定BUM报文抑制流表中的除该特定表项以外的所有表项是否存在与该输入报文相匹配的表项,如果确定存在与该输入报文相匹配的表项,则停止匹配过程,确定匹配到的表项为该输入报文相匹配的目标表项。该SDN转发设备也可以根据表项的优先级确定该输入报文的目标表项。该BUM报文抑制流表中,该特定表项的优先级最低。在此情况下,该SDN转发设备必然可以确定该特定表项是与该输入报文相匹配的表项。但是,该SDN转发设备还需要确定除该特定表项以外的其他表项中是否还有与该输入报文相匹配的表项。如果存在,那么由于除该特定表项以外的表项的优先级高于该特定表项,SDN转发设备会确定匹配到的除该特定表项以外的表项为该输入报文的目标表项。如果不存在,那么SDN转发设备确定该特定表项为该输入报文的目标表项。Those skilled in the art can understand that the SDN forwarding device can first determine whether all entries in the BUM packet suppression flow table except the specific entry have entries that match the input If the entry matches the input packet, the matching process is stopped, and the matching entry is determined to be the target entry matching the input packet. The SDN forwarding device may also determine the target entry of the input packet according to the priority of the entry. In the BUM packet suppression flow table, the specific entry has the lowest priority. In this case, the SDN forwarding device can definitely determine that the specific entry is an entry matching the input message. However, the SDN forwarding device also needs to determine whether there are other entries other than the specific entry that match the input packet. If it exists, because the priority of the entry other than the specific entry is higher than the specific entry, the SDN forwarding device will determine that the matched entry except the specific entry is the target entry of the input packet . If it does not exist, the SDN forwarding device determines that the specific entry is the target entry of the input message.

本领域技术人员可以理解,该分类流表和该BUM抑制流表的具体内容可以使管理人员设定的,并且可以根据需要对分类流表和BUM抑制流表的具体内容进行修改。Those skilled in the art can understand that the specific content of the classified flow table and the BUM suppressed flow table can be set by the administrator, and the specific content of the classified flow table and the BUM suppressed flow table can be modified as required.

图3是根据本发明实施例提供的SDN转发设备的结构框图,用于实现如本发明图1所示SDN中的处理报文的方法。如图3所示,SDN转发设备300包括接收单元301,第一确定单元302,第二确定单元303和第三确定单元304。FIG. 3 is a structural block diagram of an SDN forwarding device provided according to an embodiment of the present invention, which is used to implement the packet processing method in the SDN shown in FIG. 1 of the present invention. As shown in FIG. 3 , the SDN forwarding device 300 includes a receiving unit 301 , a first determining unit 302 , a second determining unit 303 and a third determining unit 304 .

接收单元301,用于接收输入报文。The receiving unit 301 is used for receiving an input message.

第一确定单元302,用于根据分类流表以及接收单元301接收的该输入报文的媒体接入控制MAC地址,确定该输入报文为广播未知单播多播BUM报文。The first determining unit 302 is configured to determine that the input message is a broadcast unknown unicast multicast BUM message according to the classification flow table and the MAC address of the input message received by the receiving unit 301 .

第二确定单元303,用于使用BUM报文抑制流表对该输入报文进行匹配,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令。The second determining unit 303 is configured to match the input packet by using a BUM packet suppression flow table, where the BUM packet suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction.

第三确定单元304,用于根据第二确定单元303的确定的匹配结果,对该输入报文进行处理。The third determining unit 304 is configured to process the input message according to the matching result determined by the second determining unit 303 .

图3所示的SDN转发设备300能够利用BUM报文控制流表对BUM报文进行精确控制。因此,上述方案可以避免因没有固定的BUM控制规则导致的网络性能的降低,从而提高网络带宽和转发性能。The SDN forwarding device 300 shown in FIG. 3 can precisely control the BUM message by using the BUM message control flow table. Therefore, the above solution can avoid the reduction of network performance caused by the lack of fixed BUM control rules, thereby improving network bandwidth and forwarding performance.

可选的,作为一个实施例,第二确定单元303,具体用于根据该输入报文,查找该BUM报文抑制流表中是否存在与该输入报文相匹配的表项。第三确定单元304,具体用于若该BUM报文抑制流表中不存在与该输入报文相匹配的表项,将该输入报文丢弃;若该BUM报文抑制流表中存在与该输入报文相匹配的目标表项,根据该目标表项中的操作指令对该输入报文进行处理。Optionally, as an embodiment, the second determining unit 303 is specifically configured to search, according to the input message, whether there is an entry matching the input message in the BUM message suppression flow table. The third determining unit 304 is specifically configured to discard the input packet if there is no entry matching the input packet in the BUM packet suppression flow table; if there is an entry matching the input packet in the BUM packet suppression flow table The target entry that matches the input message is processed, and the input message is processed according to the operation instruction in the target entry.

可选的,作为另一个实施例,第二确定单元303,具体用于确定该BUM报文抑制流表中与该输入报文相匹配的目标表项;第三确定单元304,具体用于根据该目标表项中的操作指令对该输入报文进行处理。Optionally, as another embodiment, the second determining unit 303 is specifically configured to determine the target entry in the BUM packet suppression flow table that matches the input packet; the third determining unit 304 is specifically configured to determine according to the The operation instruction in the target entry processes the input message.

具体地,该BUM报文抑制流表的匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。Specifically, the matching items in the BUM packet suppression flow table include at least one of the following: ingress interface, destination MAC address, source MAC address, destination Internet Protocol IP address, source IP address, protocol type, user data protocol/transmission control The port number of the protocol.

进一步,接收单元301,还用于接收SDN控制器发送的BUM报文处理指令;第二确定单元303和第三确定单元304,还用于执行该BUM报文处理指令,该BUM报文处理指令用于指示该第一确定单元在根据该分类流表确定该输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文Further, the receiving unit 301 is further configured to receive the BUM packet processing instruction sent by the SDN controller; the second determining unit 303 and the third determining unit 304 are further configured to execute the BUM packet processing instruction, the BUM packet processing instruction is used to instruct the first determination unit to process the input message according to the BUM message suppression flow table under the condition that the input message is determined to be a BUM message according to the classified flow table

此外,本领域技术人员可以理解,接收单元301,还可以用于接收SDN控制器发送的分类流表以及BUM报文抑制流表。同时,接收单元301,还可以用于接收SDN控制器发送的更新的BUM报文抑制流表。In addition, those skilled in the art can understand that the receiving unit 301 may also be configured to receive the classified flow table and the BUM packet suppression flow table sent by the SDN controller. Meanwhile, the receiving unit 301 may also be configured to receive the updated BUM packet suppression flow table sent by the SDN controller.

图4是根据本发明实施例提供的SDN控制器的结构框图,用于实现如本发明图2所示SDN中的处理报文的方法。如图4所示,SDN控制器400包括第一确定单元401,第二确定单元402、第三确定单元403和发送单元404。FIG. 4 is a structural block diagram of an SDN controller provided according to an embodiment of the present invention, which is used to implement the packet processing method in the SDN shown in FIG. 2 of the present invention. As shown in FIG. 4 , the SDN controller 400 includes a first determining unit 401 , a second determining unit 402 , a third determining unit 403 and a sending unit 404 .

第一确定单元401,用于确定分类流表。The first determining unit 401 is configured to determine the classification flow table.

第二确定单元402,用于确定广播未知单播多播BUM报文抑制流表,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令。The second determining unit 402 is configured to determine a broadcast-unknown unicast-multicast BUM message suppression flow table, where the BUM message suppression flow table includes at least one entry, and the entry includes a matching item and an operation instruction.

第三确定单元403,用于生成BUM报文处理指令,该BUM报文处理指令用于指示SDN转发设备在根据该分类流表确定输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文。The third determining unit 403 is configured to generate a BUM packet processing instruction, where the BUM packet processing instruction is used to instruct the SDN forwarding device to suppress the BUM packet according to the BUM packet when the input packet is determined to be a BUM packet according to the classification flow table The flow table processes the incoming message.

发送单元404,用于将第一确定单元401确定的该分类流表、第二确定单元402确定的该BUM报文抑制流表以及第三确定单元403生成的该BUM报文处理指令发送至SDN转发设备。The sending unit 404 is configured to send the classified flow table determined by the first determining unit 401, 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 the SDN forwarding device.

图4所示的SDN控制器400能够确定分类流表以及BUM报文抑制流表,并将该分类流表和该BUM报文抑制流表发送给SDN转发设备。这样,SDN转发设备能够利用分类流表识别出BUM报文,并利用BUM报文控制流表对BUM报文进行精确控制。因此,上述方案可以避免因没有固定的BUM控制规则导致的网络性能的降低,从而提高网络带宽和转发性能。The SDN controller 400 shown in FIG. 4 can determine the classified flow table and the BUM message suppression flow table, and send the classified flow table and the BUM message suppression flow table to the SDN forwarding device. In this way, the SDN forwarding device can identify the BUM packet by using the classified flow table, and accurately control the BUM packet by using the BUM packet control flow table. Therefore, the above solution can avoid the reduction of network performance caused by the lack of fixed BUM control rules, thereby improving network bandwidth and forwarding performance.

具体地,该BUM报文抑制流表的匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。Specifically, the matching items in the BUM packet suppression flow table include at least one of the following: ingress interface, destination MAC address, source MAC address, destination Internet Protocol IP address, source IP address, protocol type, user data protocol/transmission control The port number of the protocol.

图5是根据本发明实施例提供的SDN转发设备的结构框图,用于实现如本发明图1所示SDN中的处理报文的方法。如图5所示,SDN转发设备500包括处理器501、存储器502和通信接口503。FIG. 5 is a structural block diagram of an SDN forwarding device provided according to an embodiment of the present invention, which is used to implement the packet processing method 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 .

所述处理器501、存储器502和通信接口503通过总线系统504相互连接,其中总线系统504除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统504。The processor 501, the memory 502 and the communication interface 503 are connected to each other through a bus system 504, wherein the bus system 504 includes a power bus, a control bus and a status signal bus in addition to a data bus. For clarity, however, the various buses are labeled as bus system 504 in FIG. 5 .

上述的处理器501可以是通用处理器、数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The aforementioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA), or other available Programming logic devices, discrete gate or transistor logic devices, discrete hardware components.

所述存储器502用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器502可能包含随机存取存储器(random access memory,简称RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 502 is used for storing programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 502 may include random access memory (random access memory, RAM for short), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.

处理器501,执行所述存储器502所存放的程序,用于通过所述通信接口503接收输入报文;根据分类流表以及该输入报文的MAC地址,确定该输入报文为BUM报文;使用BUM报文抑制流表对该输入报文进行匹配,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令;根据匹配结果,对该输入报文进行处理。The processor 501 executes the program stored in the memory 502 for receiving the input message through the communication interface 503; according to the classification flow table and the MAC address of the input message, it is determined that the input message is a BUM message; Matching the input message by using a BUM message suppression flow table, where the BUM message suppression flow table includes at least one entry, the entry including a matching item and an operation instruction; and processing the input message according to the matching result.

图5所示的SDN转发设备500能够利用BUM报文抑制流表对BUM报文进行精确控制。因此,上述方案可以避免因没有固定的BUM控制规则导致的网络性能的降低,从而提高网络带宽和转发性能。The SDN forwarding device 500 shown in FIG. 5 can precisely control the BUM message by using the BUM message suppression flow table. Therefore, the above solution can avoid the reduction of network performance caused by the lack of fixed BUM control rules, thereby improving network bandwidth and forwarding performance.

处理器501,具体可用于根据该输入报文,查找该BUM报文抑制流表中是否存在与该输入报文相匹配的表项,若该BUM报文抑制流表中不存在与该输入报文相匹配的表项,将该输入报文丢弃;若该BUM报文抑制流表中存在与该输入报文相匹配的目标表项,根据该目标表项中的操作指令对该输入报文进行处理。The processor 501 can be specifically configured to, according to the input message, look up whether there is an entry matching the input message in the BUM message suppression flow table, if there is no entry matching the input message in the BUM message suppression flow table. If there is a target entry matching the input packet in the BUM packet suppression flow table, the input packet will be discarded according to the operation instruction in the target entry. to be processed.

处理器501,具体也可用于确定该BUM报文抑制流表中与该输入报文相匹配的目标表项;根据该目标表项中的操作指令对该输入报文进行处理。The processor 501 may also be specifically configured to determine a target entry in the BUM packet suppression flow table that matches the input packet; and process the input packet according to an operation instruction in the target entry.

具体地,该BUM报文抑制流表的匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。Specifically, the matching items in the BUM packet suppression flow table include at least one of the following: ingress interface, destination MAC address, source MAC address, destination Internet Protocol IP address, source IP address, protocol type, user data protocol/transmission control The port number of the protocol.

进一步,所述处理器501,还通过所述通信接口503接收SDN控制器发送的BUM报文处理指令;执行该BUM报文处理指令,该BUM报文处理指令用于指示该第一确定单元在根据该分类流表确定该输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文。Further, the processor 501 further receives the BUM packet processing instruction sent by the SDN controller through the communication interface 503; executes the BUM packet processing instruction, and the BUM packet processing instruction is used to instruct the first determining unit to When it is determined according to the classified flow table that the input message is a BUM message, the input message is processed according to the BUM message suppression flow table.

此外,本领域技术人员可以理解,所述处理器501,还可以通过所述通信接口503接收SDN控制器发送的分类流表以及BUM报文抑制流表。In addition, those skilled in the art can understand that the processor 501 can also receive, through the communication interface 503, the classified flow table and the BUM packet suppression flow table sent by the SDN controller.

所述存储器502还用于存储所述分类流表和所述BUM报文抑制流表。The memory 502 is further configured to store the classified flow table and the BUM packet suppression flow table.

所述处理器501还可以用于接收SDN控制器发送的更新的BUM报文抑制流表,并更新所述存储器502中存储的BUM报文抑制流表。The processor 501 may also be configured to receive the updated BUM packet suppression flow table sent by the SDN controller, and update the BUM packet suppression flow table stored in the memory 502 .

图6是根据本发明实施例提供的SDN控制器的结构框图,用于实现如本发明图2所示SDN中的处理报文的方法。如图6所示,SDN控制器600包括处理器601、存储器602和通信接口603。FIG. 6 is a structural block diagram of an SDN controller provided according to an embodiment of the present invention, which is used to implement the packet processing method in the SDN shown in FIG. 2 of the present invention. As shown in FIG. 6 , the SDN controller 600 includes a processor 601 , a memory 602 and a communication interface 603 .

所述处理器601、所述存储器602和所述通信接口603通过总线系统604相互连接,其中总线系统604除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统604。The processor 601, the memory 602 and the communication interface 603 are connected to each other through a bus system 604, wherein the bus system 604 includes a power bus, a control bus and a status signal bus in addition to a data bus. However, for clarity of illustration, the various buses are labeled as bus system 604 in FIG. 6 .

上述的处理器601可以是通用处理器、数字信号处理器(Digital SignalProcessor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现成可编程门阵列(Field Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。所述存储器602用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器602可能包含RAM,也可能还包括非易失性存储器,例如至少一个磁盘存储器。The above-mentioned processor 601 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP for short), an application specific integrated circuit (ASIC for short), and a Field Programmable Gate Array (Field Programmable Gate Array for short, FPGA for short) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The memory 602 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. Memory 602 may include RAM and may also include non-volatile memory, such as at least one disk storage.

所述处理器601,执行所述存储器602所存放的程序,用于确定分类流表;确定广播未知单播多播BUM报文抑制流表,该BUM报文抑制流表包括至少一个表项,该表项包括匹配项和操作指令;生成BUM报文处理指令,该BUM报文处理指令用于指示SDN转发设备在根据该分类流表确定输入报文为BUM报文的情况下根据该BUM报文抑制流表处理该输入报文;将该分类流表以及BUM报文抑制流表通过所述通信接口603发送至SDN转发设备。The processor 601 executes the program stored in the memory 602 to determine a classified flow table; determines a broadcast unknown unicast multicast BUM message suppression flow table, where the BUM message suppression flow table includes at least one entry, The table entry includes a matching item and an operation instruction; a BUM packet processing instruction is generated, and the BUM packet processing instruction is used to instruct the SDN forwarding device to use the BUM packet according to the classification flow table when determining that the input packet is a BUM packet. The incoming message is processed by the message suppression flow table; the classified flow table and the BUM message suppression flow table are sent to the SDN forwarding device through the communication interface 603 .

图6所示的SDN控制器600能够确定分类流表以及BUM报文抑制流表,并将该分类流表和该BUM报文抑制流表发送给SDN转发设备。这样,SDN转发设备能够利用分类流表识别出BUM报文,并利用BUM报文控制流表对BUM报文进行精确控制。因此,上述方案可以避免因没有固定的BUM控制规则导致的网络性能的降低,从而提高网络带宽和转发性能。The SDN controller 600 shown in FIG. 6 can determine the classified flow table and the BUM message suppression flow table, and send the classified flow table and the BUM message suppression flow table to the SDN forwarding device. In this way, the SDN forwarding device can identify the BUM packet by using the classified flow table, and accurately control the BUM packet by using the BUM packet control flow table. Therefore, the above solution can avoid the reduction of network performance caused by the lack of fixed BUM control rules, thereby improving network bandwidth and forwarding performance.

具体地,该BUM报文抑制流表的匹配项包括以下中的至少一个:入接口、目的MAC地址、源MAC地址、目的互联网协议IP地址、源IP地址、协议类型、用户数据协议/传输控制协议的端口号。Specifically, the matching items in the BUM packet suppression flow table include at least one of the following: ingress interface, destination MAC address, source MAC address, destination Internet Protocol IP address, source IP address, protocol type, user data protocol/transmission control The port number of the protocol.

所述处理器601,还用于通过所述通信接口603向所述SDN转发设备发送更新的BUM报文抑制流表。The processor 601 is further configured to send the updated BUM packet suppression flow table to the SDN forwarding device through the communication interface 603 .

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:优盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM for short), a RAM, a magnetic disk or an optical disk and other media that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内,因此本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical scope disclosed by the present invention can easily think of changes or substitutions. All should be covered within the protection scope of the present invention, so the protection scope of the present invention should 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 Packet 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 Packet 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 Packet 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 Packet 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
CN115987912B (en) * 2022-12-21 2024-08-20 迈普通信技术股份有限公司 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
US11444868B2 (en) Systems and methods for software defined networking service function chaining
US9876704B2 (en) Packet tracing in a software-defined networking environment
EP3281369B1 (en) Server load balancing
US10284458B2 (en) Flow table modifying method, flow table modifying apparatus, and openflow network system
US9419895B2 (en) Techniques for customizing forwarding decisions via a hardware lookup result
CN104734964B (en) Message processing method, node and system
US20160234097A1 (en) Packet forwarding in software defined networking
CN104394083B (en) Method, the method and its device and system of message forwarding of forwarding-table item processing
CN106789759B (en) Message uploading method and exchange chip
WO2016115698A1 (en) Data packet forwarding method, apparatus and device
CN105450525B (en) The method and apparatus used for route exchange device
US20200028779A1 (en) Packet processing method and apparatus
CN104641607B (en) A kind of method and device for being used to make ultralow delay disposal decision-making
WO2016177314A1 (en) Packet forwarding
CN106656615B (en) Message processing method and device based on TRACERT command
US20160352637A1 (en) Client-based port filter table
CN106453144B (en) Packet processing method and device in software-defined network
CN115361214A (en) Message access control method, device, equipment, medium and program
CN103534999B (en) Method and device for message forwarding
CN105471756B (en) A kind of data package processing method and device
WO2015149367A1 (en) Method and device for processing packet
EP3687123B1 (en) Packet processing method and forwarding element
EP2930890A1 (en) Network device and message processing method
CN106416150A (en) Route query method and network device
US9356864B2 (en) Packet transfer apparatus and packet relay method

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