WO2019165805A1 - 一种报文处理方法、装置及存储介质 - Google Patents

一种报文处理方法、装置及存储介质 Download PDF

Info

Publication number
WO2019165805A1
WO2019165805A1 PCT/CN2018/117043 CN2018117043W WO2019165805A1 WO 2019165805 A1 WO2019165805 A1 WO 2019165805A1 CN 2018117043 W CN2018117043 W CN 2018117043W WO 2019165805 A1 WO2019165805 A1 WO 2019165805A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
type
plane device
generation processing
processing
Prior art date
Application number
PCT/CN2018/117043
Other languages
English (en)
French (fr)
Inventor
黄晨城
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US16/977,358 priority Critical patent/US20210112007A1/en
Priority to EP18908174.8A priority patent/EP3761577A4/en
Publication of WO2019165805A1 publication Critical patent/WO2019165805A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/64Routing or path finding of packets in data switching networks using an overlay routing layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • the present invention relates to the field of communications, and in particular, to a packet processing method, apparatus, and storage medium.
  • SDN Software Defined Network
  • the core function of SDN is to separate the control plane of the network device from the forwarding plane of the network device.
  • the control plane after separation is open and is subject to the OpenFlow protocol.
  • the controller is centrally controlled.
  • the controller provides flexible control over network traffic and enables centralized changes to information without the need for separate configuration and changes on each network device.
  • a schematic flowchart of a packet processing method in an SDN when a network device receives a service-triggered packet, the network device sends the packet to the controller (step 1) to request the controller to indicate the network device.
  • the packet includes at least an address resolving protocol (ARP) packet, an Internet Protocol Message Protocol (ICMP) packet, and a Dynamic Host Configuration Protocol (DHCP) packet. Text, broadcast protocol request message or multicast protocol request message.
  • ARP address resolving protocol
  • ICMP Internet Protocol Message Protocol
  • DHCP Dynamic Host Configuration Protocol
  • the controller After receiving the packet sent by the network device, the controller sends the forwarding logic to the forwarding plane of the network device according to its own service settings (step 2).
  • the forwarding logic is carried in multiple flow tables of the network device, and the flow table includes at least a matching domain, an instruction set, and the like.
  • the network device matches the flow table to obtain the processing mode of the network service, and processes the network service according to the obtained processing method (step 3), thereby implementing the network service function.
  • the controller will receive a large number of processing packets; due to the limited processing capacity of the controller, the number of contemporary processing packets If the controller's processing capacity is congested, the processing efficiency of the network service is reduced.
  • the embodiment of the present invention is to provide a message processing method, device, and storage medium, which can reduce the processing amount of the message by the controller and improve the processing efficiency of the network service.
  • the embodiment of the invention provides a packet processing method, including:
  • the forwarding plane device receives the first generation processing table, where the first generation processing table is used to indicate the processing manner of the first type of packet by the forwarding plane device;
  • the method before the forwarding plane device receives the first generation processing table, the method further includes:
  • the forwarding plane device receives the second packet; the second packet is a packet having a first type; and the second packet is sent to the control plane device.
  • the processing, by the first generation processing table, the received first packet includes:
  • the first packet is processed according to a processing manner corresponding to the packet type obtained by the matching.
  • the processing, by the first generation processing table, the received first packet includes:
  • the first packet is forwarded to the control plane device.
  • the method further includes:
  • the forwarding plane device receives a second generation processing table
  • the first generation processing table is updated with the second generation processing table.
  • the embodiment of the invention further provides a packet processing method, including:
  • the control plane device constructs a first generation processing table based on the processing manner of the first type of message and the first type of message;
  • the method further includes:
  • the control plane device receives the second packet sent by the forwarding plane device; the second packet is a packet having the first type.
  • control plane device constructs the first generation processing table based on the processing manner of the first type of packet and the first type of packet, including:
  • the control plane device parses the second packet, and acquires a first type corresponding to the second packet and a processing manner of the first type packet;
  • the first correspondence is stored to the first generation processing table.
  • the method further includes:
  • the second correspondence is stored to a second generation processing table.
  • the method further includes: the control plane device sending the second generation processing table to the forwarding plane device.
  • the embodiment of the invention further provides a message processing device, including:
  • the first receiving module is configured to receive a first generation processing table, where the first generation processing table is used to indicate a processing manner of the first type of packet by the forwarding plane device;
  • the processing module is configured to process the received first packet based on the first generation processing table.
  • the first receiving module is further configured to receive the second packet;
  • the second packet is a packet having the first type;
  • the device further comprises:
  • the first sending module is configured to send the second packet to the control plane device.
  • the processing module is specifically configured to acquire a type of the first packet.
  • the first packet is processed according to a processing manner corresponding to the packet type obtained by the matching.
  • the processing module is specifically configured to acquire a type of the first packet.
  • the first packet is forwarded to the control plane device.
  • the first receiving module is further configured to receive a second generation processing table
  • the processing module is further configured to update the first generation processing table by using the second generation processing table.
  • the embodiment of the invention further provides a message processing device, including:
  • Constructing a module configured to construct a first generation processing table based on a processing manner of the first type of message and the first type of message;
  • the second sending module is configured to send the first generation processing table to the forwarding plane device.
  • the device further includes:
  • the second receiving module is configured to receive the second packet sent by the forwarding plane device; the second packet is a packet having the first type.
  • the constructing module is configured to parse the second packet, and obtain a processing manner of the first type corresponding to the second packet and the first type packet;
  • the first correspondence is stored to the first generation processing table.
  • the second receiving module is further configured to receive the first packet sent by the forwarding plane device, where the packet type of the first packet does not exist in the first generation processing table;
  • the constructing module is further configured to parse the first packet, and obtain a processing manner of the second type corresponding to the first packet and the second type of packet;
  • the second correspondence is stored to a second generation processing table.
  • the second sending module is further configured to send the second generation processing table to the forwarding plane device.
  • the embodiment of the invention further provides a message processing device, including:
  • processors and memory for storing a computer program capable of running on the processor
  • processor is configured to perform the steps of the above method when the computer program is run.
  • Embodiments of the present invention also provide a storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the above method.
  • the control plane device constructs a first generation processing table based on the processing manner of the first type of message and the first type of message, and sends the first generation processing table
  • the first generation processing table is configured to instruct the forwarding plane device to process the first type of packet.
  • the forwarding plane device receives the first generation processing table and processes the received first message based on the first generation processing table. In this manner, the forwarding plane device can obtain the processing mode of the specific type of packet, so that the forwarding plane device can be based on the packet type in the first generation processing table when the type of the received packet matches the packet type in the first generation processing table.
  • the packet processing mode is processed; the forwarding plane device does not need to send the received packet to the control plane device for processing, which alleviates the processing pressure of the control plane device, improves the processing speed of the control plane device, and improves the processing efficiency of the network service. .
  • FIG. 1 is a schematic flowchart of a packet processing method in an SDN in related art
  • FIG. 2 is a schematic flowchart of processing of a packet processing method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of processing a first packet received by a forwarding plane device based on a first generation processing table according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of processing of a packet processing method according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic flowchart of processing a packet processing method according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic flowchart of processing processing of a packet processing method according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic flowchart of processing processing of a packet processing method according to Embodiment 5 of the present invention.
  • FIG. 8 is a schematic flowchart of a process for constructing a first-generation processing table by a control plane device according to a processing manner of a first type of packet and a first type of packet according to an embodiment of the present disclosure
  • FIG. 9 is a schematic diagram of a process flow of a packet processing method according to Embodiment 6 of the present invention.
  • FIG. 10 is a schematic flowchart of processing processing of a packet processing method according to Embodiment 7 of the present invention.
  • FIG. 11 is a schematic flowchart of processing of a packet processing method according to Embodiment 8 of the present invention.
  • FIG. 12 is a schematic flowchart of processing of a packet processing method according to Embodiment 9 of the present invention.
  • FIG. 13 is a schematic flowchart of processing processing of a packet processing method according to Embodiment 10 of the present invention.
  • FIG. 14 is a schematic structural diagram of a packet processing apparatus according to Embodiment 11 of the present invention.
  • FIG. 15 is a schematic structural diagram of a packet processing apparatus according to Embodiment 12 of the present invention.
  • FIG. 16 is a schematic structural diagram of hardware components of a message processing apparatus according to an embodiment of the present invention.
  • the processing flow of the packet processing method provided by the first embodiment of the present invention, as shown in FIG. 2, includes the following steps:
  • step S101 the forwarding plane device receives the first generation processing table.
  • the first generation processing table includes at least a generation response table and a generation forwarding table according to the type of the message; the first generation processing table is sent by the control plane device, and the first generation processing table is used to indicate the first type The way the message is processed.
  • the forwarding plane device can also receive the processing mode of multiple types of packets sent by the control plane device.
  • the forwarding plane device needs to perform different processing processes for different types of packets. For example, for the ARP request packet, the DHCP request packet, and the ICMP request packet, the forwarding plane device can respond to the first generation processing table; for the ARP request packet, the DHCP request packet, and the ICMP request packet, The content of the forwarding surface device generation response is also different. For the broadcast request packet or the multicast request packet, the forwarding plane device can forward the packet according to the first generation processing table. For the broadcast request packet and the multicast request packet, the forwarding device forwards the content differently.
  • Step S102 Process the received first message based on the first generation processing table.
  • the processing includes at least: a generation forwarding or a generation response.
  • the specific processing procedure for the forwarding plane device to process the received first packet based on the first generation processing table, as described in FIG. 3, includes the following steps:
  • Step S1021 The forwarding plane device acquires the type of the first packet.
  • the forwarding plane device obtains the type of the first packet according to the received first packet.
  • the type of the first packet includes at least an ARP request packet, a DHCP request packet, an ICMP request packet, a multicast request packet, a rebroadcast request packet, and the like.
  • Step S1022 Match the same packet type as the first packet in the first generation processing table; when the matching result is yes, execute step S1023; if the matching result is no, perform step S1024.
  • the forwarding plane device searches for the same packet type as the first packet in the first generation processing table.
  • Step S1023 The first packet is processed according to a processing manner corresponding to the matched packet type.
  • the forwarding plane device finds the same packet type as the first packet type in the first generation processing table, the processing corresponding to the packet type described in the first generation processing table is The first message is processed.
  • the forwarding plane device can directly process the received first packet according to the processing manner described in the first generation processing table by matching the first generation processing table obtained by the first generation processing table, and does not need to report the first packet to the control.
  • the processing of the surface device alleviates the processing pressure of the control surface device, improves the processing speed of the control surface device, and further improves the processing efficiency of the network service.
  • Step S1024 forwarding the first packet to the control plane device.
  • the forwarding device does not match the packet type of the first packet in the first-generation processing table that is acquired by itself, that is, the first-generation processing table does not describe the processing manner of the first packet by the forwarding device. Therefore, the forwarding plane device needs to send the first packet to the control plane device, and the control plane device processes the first packet.
  • the processing flow of the packet processing method provided by the second embodiment of the present invention, as shown in FIG. 4, includes the following steps:
  • Step S201 The forwarding plane device receives the second packet sent by the electronic device.
  • the second message is a message having a first type.
  • Step S202 The forwarding plane device sends the second packet to the control plane device.
  • Step S203 the forwarding plane device receives the first generation processing table.
  • the forwarding plane device receives the first generation processing table sent by the control plane device; the first generation processing table is constructed by the control plane device based on information such as the type of the second packet and the processing mode corresponding to the type of the second packet. .
  • Step S204 The forwarding plane device receives the first packet sent by the electronic device.
  • Step S205 The forwarding plane device processes the first packet according to the first generation processing table.
  • the processing procedure of the first packet in the forwarding plane device is the same as the processing procedure in step S102 in the first embodiment, and details are not described herein again.
  • the processing flow of the packet processing method provided by the third embodiment of the present invention is as shown in FIG. 5; the processing flow of the packet processing method provided by the third embodiment of the present invention is similar to that of the first embodiment and the second embodiment, except that After step S102, or after step S205, the method further includes:
  • Step S103 the forwarding plane device receives the second generation processing table.
  • the forwarding plane device receives a second generation processing table sent by the control plane device, the first generation processing table is different from the packet type described in the first generation processing table, or for the same type of packet, The processing method described in the second generation processing table is different from the processing method described in the first generation processing table.
  • Step S104 The forwarding plane device updates the first generation processing table by using the second generation processing table.
  • the forwarding plane device adds a packet type and a corresponding processing manner in the second generation processing table to the first generation processing table.
  • the forwarding plane device updates the processing manner corresponding to the same packet type described in the first generation processing table by using a processing manner corresponding to the packet type described in the second generation processing table.
  • the processing flow of the packet processing method provided in Embodiment 4 of the present invention, as shown in FIG. 6, includes the following steps:
  • Step S301 The control plane device constructs a first generation processing table based on a processing manner of the first type of message and the first type of message.
  • the field value of the packet of the specific type such as the multicast request packet or the broadcast request packet
  • the field value of the packet is fixed, that is, the control plane device does not need to pass the forwarding plane.
  • the packet sent by the device is used to obtain the field value of the packet. Therefore, the control plane device establishes a first correspondence between the pre-acquired first type packet and the first type packet processing mode.
  • a correspondence relationship is stored to the first generation processing table to implement construction of the first generation processing table.
  • Step S302 the control plane device sends the first generation processing table to the forwarding plane device.
  • the key segment value of a specific type of packet such as an ARP request packet, a DHCP request packet, or an ICMP request packet, cannot be obtained in advance, and the field value of the packet is not fixed. Therefore, the control plane device must pass The packet sent by the device on the forwarding plane is parsed, and the key segment value of the packet is obtained to obtain the packet type and corresponding processing mode.
  • the processing procedure of the packet processing method provided by the fifth embodiment of the present invention is as shown in FIG. 7.
  • the packet processing method provided in the fifth embodiment of the present invention is similar to the packet processing method provided in the fourth embodiment of the present invention.
  • the step is that before step S301, the method further includes the steps of:
  • Step S300 The control plane device receives the second packet sent by the forwarding plane device.
  • the second packet is a packet having a first type.
  • control plane device constructs the processing process of the first generation processing table based on the processing manner of the first type of message and the first type of message, as shown in FIG. 8 , including the following steps:
  • Step S401 the control plane device parses the second packet.
  • control plane device obtains the key segment value of the second packet, and the first type corresponding to the second packet and the processing manner of the first type packet by parsing the second packet.
  • Step S402 establishing a first correspondence between the first type of message and the processing mode of the first type of message.
  • control plane device establishes a first correspondence according to the processing manner of the first type of message and the first type of message.
  • Step S403 storing the first correspondence relationship to the first generation processing table.
  • control plane device stores the established first correspondence relationship to the first generation processing table.
  • the processing flow of the packet processing method provided by the sixth embodiment of the present invention is as shown in FIG. 9.
  • the processing flow of the packet processing method provided by the sixth embodiment of the present invention is similar to that of the fourth embodiment and the fifth embodiment, except that After step S302, the method further includes:
  • Step S303 The control plane device receives the first packet sent by the forwarding plane device.
  • the forwarding plane device receives the first packet sent by the electronic device, matches the first packet with the first-generation processing table stored by the first device, and determines that the first packet does not exist in the first generation processing table. After the same packet type, the forwarding plane device sends the first packet to the control plane device.
  • Step S304 The control plane device parses the first packet, and acquires a processing manner of the second type and the second type packet corresponding to the first packet.
  • Step S305 The control plane device establishes a second correspondence between the processing manner of the second type of packet and the processing manner of the second type of packet.
  • Step S306 the control plane device stores the second correspondence relationship to the second generation processing table.
  • Step S307 the control plane device sends the second generation processing table to the forwarding plane device.
  • control plane device obtains the processing manner of the second type of message described in the second generation processing table by using the second generation processing table to the forwarding plane device.
  • the processing flow of the packet processing method in the seventh embodiment of the present invention is as follows:
  • Step S801 The forwarding plane device receives the ARP request packet sent by the electronic device for the first time.
  • the forwarding plane device may be an OpenFlow device
  • the electronic device may be a host connected to the forwarding plane device, or may be a forwarding plane device adjacent to the forwarding plane device.
  • the forwarding plane device receives the ARP request packet sent by the electronic device for the first time, the forwarding plane device performs step S402 according to the existing implementation manner in the existing SDN networking scenario.
  • Step S802 The forwarding plane device sends the ARP request packet to the control plane device.
  • Step S803 The control plane device sends an ARP Reply packet to the forwarding plane device.
  • the control plane device after receiving the ARP request packet sent by the forwarding plane device, parses the ARP request packet, and sends the destination IP address information of the ARP request packet to the forwarding plane device according to the destination IP address information of the ARP request packet. Send an ARP Reply packet.
  • Step S804 The control plane device determines whether the ARP Reply message can be processed by the forwarding plane device. If the determination result is yes, step S805 is performed, and if the determination result is no, step S809 is performed.
  • the ARP Reply message is a gratuitous ARP packet or an ARP probe packet, it is determined that the ARP Reply message cannot be processed by the forwarding plane device.
  • the free ARP packet is used by the electronic device to determine whether the currently used IP address is in use by another electronic device; the electronic device determines whether the currently used IP address has other electronic devices in use, and the electronic device sends the forwarding device to the forwarding device. If the ARP packet does not receive a response to the free ARP packet, the IP address currently used by the electronic device does not conflict with the IP address used by other electronic devices. Otherwise, if the electronic device receives the corresponding ARP report. The response indicates that the IP address currently used by the electronic device conflicts with the IP address used by other electronic devices. When the IP address currently used by the electronic device conflicts with the IP address used by other electronic devices, and the IP address currently used by the electronic device has taken effect, the electronic device notifies the network device that the IP address is already occupied.
  • the ARP detection packet is used by the electronic device to detect whether the IP address has been used by the ARP detection packet before the electronic device uses an IP address; if the IP address is not used, the electronic device uses the IP address; if the IP address is used The address has been used and the electronic device will request the server to assign another IP address to it.
  • the forwarding plane device can only know the usage of some ARPs in the entire SDN network, and respond to the free ARP packets and ARP detection packets, you need to refer to the usage of ARP in the entire network. Therefore, the forwarding plane device cannot be the control plane.
  • the device responds to gratuitous ARP packets and ARP probe packets.
  • the control plane device responds to gratuitous ARP packets and ARP probe packets based on the ARP usage of the entire SDN network.
  • Step S805 the control plane device sends an ARP pickup table to the forwarding plane device.
  • control plane device encapsulates the ARP proxy table according to the destination IP address information of the ARP request packet, the flow table number pre-agreed by the control plane device and the forwarding plane device, and the flow table format, and encapsulates the packet.
  • the ARP pickup table is sent to the forwarding plane device.
  • Step S806 the forwarding plane device receives and saves the ARP pickup table.
  • the forwarding plane device receives the ARP pickup table sent by the control plane device, and has no jump relationship with any other table stored by the forwarding plane device itself. That is, for a forwarding plane device, the ARP pickup table is a separate table.
  • Step S807 When the forwarding plane device receives the ARP request packet again, the device performs processing based on the ARP proxy table.
  • the forwarding plane device when the forwarding plane device receives the ARP request packet again, it parses the ARP request packet, and obtains at least the source IP address information and the destination IP address information of the ARP request packet; and the obtained source IP address information and When the destination IP address information is consistent with the corresponding information in the ARP proxy table, the forwarding plane device encapsulates the ARP Reply packet according to the information in the ARP proxy table. When the obtained source IP address information or the destination IP address information is inconsistent with the corresponding information in the ARP proxy table, the forwarding plane device sends the ARP request packet to the control plane device.
  • Step S808 The control plane device processes the ARP request packet.
  • the control plane device when the forwarding plane device sends an ARP request packet to the control plane device because the destination IP address information in the ARP request packet is inconsistent with the corresponding information in the ARP proxy table, the control plane device forwards the packet to the forwarding plane.
  • the device sends a pickup list that carries the new destination IP address information.
  • the forwarding plane device when the forwarding plane device sends an ARP request packet to the control plane device because the source IP address information in the ARP request packet is inconsistent with the corresponding information in the ARP proxy table, the control plane device needs to be encapsulated. A new ARP reply message is sent to the forwarding device.
  • the forwarding plane device when the forwarding plane device itself sends an ARP request packet to the control plane device after the ARP proxy table is stored, the forwarding plane device needs to send an ARP request packet when sending the ARP request packet to the control plane device.
  • the specific reason is that the control plane device performs corresponding processing on the ARP request packet according to the cause.
  • step S809 the control plane device directly processes the message based on the ARP request message.
  • control plane device when the control plane device receives the gratuitous ARP packet or the ARP probe packet sent by the forwarding plane device, the control plane device directly performs the process of performing the pickup process without the forwarding plane device.
  • the forwarding plane device for example, the OpenFlow device sends the received ARP request packet to the control plane device after receiving the ARP request packet sent by the host, and the control plane device uniformly learns and Pick up processing.
  • the ARP request packet sent by the electronic device cannot be obtained when the control plane device is offline.
  • the packet processing method of the embodiment of the present invention moves the partial ARP pickup function of the control plane device to the forwarding plane device, which reduces the processing pressure of the control plane device on the ARP request packet, and improves the ARP request packet. Processing rate increases the stability of the entire network.
  • Step S501 The control plane device sends a broadcast multicast proxy table to the forwarding plane device in advance.
  • control plane device sends a corresponding broadcast multicast proxy table to the forwarding plane device according to different broadcast domains in the networking.
  • the port type of the broadcast multicast packet entering the forwarding plane device is two types: a fabric port and an access port.
  • the fabric port is the tunnel interface connected to the device on the adjacent forwarding plane, and the access port is the forwarding interface.
  • the port of the host connected to the device.
  • the control plane device respectively delivers a generation conversion table; that is, the control plane device sends two generation conversion tables to the forwarding plane device, and the two generation conversion tables correspond to the fabric port and the access port respectively.
  • the two generations of the transfer table are sent to the destination media access control (MAC) table of the forwarding plane device, and the use of the broadcast multicast proxy table is triggered by the pipeline.
  • MAC media access control
  • the destination MAC address of the two broadcast multicast forwarding tables in the same broadcast domain is 01:00:00:00:00:00.
  • the broadcast multicast forwarding table can match all broadcast multicast packets.
  • the specific port type and broadcast domain value are used as the basis for matching broadcast multicast packets.
  • Step S502 The forwarding plane device receives the broadcast multicast packet sent by the electronic device.
  • the forwarding plane device receives the broadcast multicast packet sent by the host connected to the local device, or the forwarding device receives the broadcast multicast packet sent by the neighboring forwarding device.
  • Step S503 The forwarding plane device forwards the broadcast multicast packet based on the stored proxy forwarding table.
  • the forwarding plane device receives the broadcast multicast packet sent by the electronic device, and then arrives at the destination MAC of the forwarding device according to the pipeline flow of the flow table. Indicates whether the inbound port type of the broadcast multicast packet is an access port or a fabric port.
  • the forwarding plane device matches the broadcast multicast forwarding table corresponding to the pre-stored access port type according to the port type, the broadcast domain value, and the destination MAC address;
  • the obtained processing procedure forwards the broadcast multicast packet;
  • the processing flow in the broadcast multicast proxy table is a group table, and the egress port in the group table is all related to the broadcast domain value on the forwarding plane device.
  • the forwarding port device and the fabric port forward the broadcast multicast packet to all ports except the access port that receives the broadcast multicast packet from the broadcast multicast forwarding table to complete the ingress port.
  • the process of forwarding broadcast multicast packets for the access port type is a group table, and the egress port in the group table is all related to the broadcast domain value on the forwarding plane device.
  • the forwarding plane device When the inbound port type of the broadcast multicast packet is a fabric port, the forwarding plane device matches the broadcast multicast forwarding table corresponding to the pre-stored fabric port type according to the port type, the broadcast domain value, and the destination MAC address; The obtained processing procedure forwards the broadcast multicast packet; the processing flow in the broadcast multicast proxy table is a group table, and the egress port in the group table is all related to the broadcast domain value on the forwarding plane device. For example, the forwarding port device forwards the broadcast multicast packet to the broadcast port type in the broadcast multicast forwarding table to complete the forwarding of the broadcast multicast packet whose inbound port is the fabric port type. Process.
  • the forwarding plane forwards the packet according to the flow table pipeline process.
  • the destination MAC address is usually only sent.
  • the destination MAC address table of the host that exists in real time. Therefore, the broadcast multicast packet is sent to the controller in many cases.
  • the controller queries the broadcast domain to which the broadcast multicast packet belongs.
  • the broadcast multicast message is broadcast multicast from the port of the broadcast domain.
  • the packet processing method of the embodiment of the present invention moves the forwarding function of the broadcast multicast packet of the control plane device to the forwarding plane device, which reduces the processing pressure of the control plane device on the broadcast multicast packet, and improves the The processing rate of broadcast multicast packets improves the stability of the entire network.
  • the controller acts as the HDCP server; the host sends the DHCP discover message to the forwarding device in broadcast form, and the forwarding device is pre-delivered to the forwarding device based on the DHCP discover message matching controller.
  • the DHCP base flow table sends the DHCP discover message to the controller.
  • the controller receives and parses the DHCP discover message, and selects an IP address from the IP addresses that have not been leased to be assigned to the host. At the same time, the controller sends a DHCP offer message including the outgoing IP address and other settings to the forwarding device.
  • the forwarding device forwards the DHCP offer message to the corresponding connected host according to the basic forwarding flow table.
  • the host When multiple controllers simultaneously respond to the DHCP offer message to the host, the host only accepts the first received DHCP offer message and responds with a DHCP request message in the form of a broadcast.
  • the DHCP request message contains the message to it.
  • the selected controller requests the contents of the IP address.
  • the host responds to the DHCP request message in the form of a broadcast, so that the host notifies all controllers of the controller corresponding to its selected IP address.
  • the forwarding plane device After receiving the DHCP request message, the forwarding plane device matches the DHCP basic flow table and sends the DHCP request message to the controller.
  • the controller receives and parses the DHCP request message, and sends an IP address and a DHCP ack message provided by the controller to the forwarding device to notify the host that the IP address provided by the controller can be used; the forwarding device receives the DHCP ack. After the packet is sent, the DHCP ack packet is sent to the host connected to the forwarding device.
  • the host binds its TCP/IP protocol to the network adapter. Except for the controller selected by the host, other controllers will reclaim the IP address that was provided.
  • the above process is a basic implementation process for the host to obtain an IP address in the SDN network scenario.
  • the IP address that the controller leases to the host has a lease term, and the controller needs to reclaim the leased IP address when the deadline is reached.
  • the IP lease needs to be updated. That is, when the time when the host uses the IP address to reach the lease of the IP address, the host sends a renewal packet to the controller.
  • the renewal packet is still encapsulated in the DHCP request packet.
  • the DHCP basic flow table is sent to the controller, and the controller updates the lease time of the IP address, and encapsulates it in the DHCP ack packet, and forwards it to the corresponding host through the forwarding device to complete the renewal process.
  • the processing flow of the packet processing method of the ninth embodiment of the present invention is as follows:
  • Step S601 The forwarding plane device receives the DHCP discover broadcast packet sent by the host for the first time.
  • the forwarding plane device receives the DHCP discover broadcast packet sent by the host connected to the forwarding plane device for the first time, or the forwarding plane device receives the DHCP discover broadcast packet sent by the adjacent forwarding plane device for the first time.
  • Step S602 The forwarding plane device sends the DHCP discover broadcast message to the control plane device.
  • control plane device sends a DHCP basic flow table to the forwarding plane device in advance, and after receiving the DHCP discover broadcast message, the forwarding plane device matches the DHCP basic flow table by using the DHCP discover broadcast packet, and the DHCP is matched according to the matching result.
  • the discover broadcast message is sent to the control plane device for processing.
  • Step S603 The control plane device allocates an IP address to the host, and sends a DHCP offer message to the forwarding plane device.
  • the control plane device after receiving the DHCP discover broadcast packet sent by the forwarding plane device, parses and processes the DHCP discover broadcast packet, and selects an IP address from the IP address that has not been leased to send to the IP address.
  • the host sends a DHCP offer message containing the leased IP address and other related settings to the forwarding device at the same time.
  • Step S604 The forwarding plane device receives the DHCP offer message, and forwards the DHCP offer message to the host.
  • Step S605 The host sends a DHCP request broadcast message to the forwarding plane device.
  • the DHCP request broadcast message includes the content that the host requests the IP address of the control plane device.
  • Step S606 The forwarding plane device matches the pre-stored basic flow table, and sends the DHCP request broadcast message to the control plane device according to the matching result.
  • Step S607 The control plane device sends a DHCP ack message and a DHCP renewal lease pickup table to the forwarding plane device.
  • the control plane device receives and parses the DHCP request broadcast message, and simultaneously sends a DHCP ack message including the IP address and related settings provided by the control plane device to the forwarding plane device, so that the host learns the IP address that the host can use. address.
  • the control plane device also encapsulates a brand new DHCP renewal lease pickup table according to the source MAC address of the host and the IP address information assigned to the host, according to the flow table number and flow table format of the forwarding device in advance, and continues the DHCP The rental pickup form is sent to the forwarding device.
  • Step S608 The forwarding plane device forwards the DHCP ack packet to the host, and locally saves the DHCP renewal lease pickup table.
  • step S609 the forwarding plane device receives the DHCP request broadcast packet sent by the host again, and matches the DHCP request broadcast packet with the DHCP renewal lease pickup table. If the matching result is yes, step S610 is performed, and if the matching result is no, Step S606 is performed.
  • Step S610 The forwarding plane device matches the DHCP renewal lease pickup table according to the DHCP renewal lease message, and responds to the DHCP ack message to complete the DHCP renewal lease pickup.
  • the forwarding plane device matches the DHCP renewal lease pickup message according to the DHCP renewal lease message, performs the pickup processing according to the corresponding processing manner in the matched DHCP renewal lease pickup form, and encapsulates the response to the DHCP ack message.
  • the forwarding plane device matches the DHCP renewal lease pickup message according to the DHCP renewal lease message, performs the pickup processing according to the corresponding processing manner in the matched DHCP renewal lease pickup form, and encapsulates the response to the DHCP ack message.
  • the packet processing method of the embodiment of the present invention moves the pickup function of the DHCP renewing request message of the control plane device to the forwarding plane device, which reduces the processing pressure of the control plane device for the DHCP renewed request message and improves
  • the processing rate of broadcast multicast packets improves the stability of the entire network.
  • the basic forwarding table sent by the control plane device between the hosts connected to the forwarding plane implements basic service forwarding. If no new host is added, the basic services are forwarded between the original hosts. It does not need to be sent to the control plane device for processing, and only needs to be implemented according to the basic forwarding table saved by the forwarding plane device. Even if there is a new host, only the service request is sent to the control plane device, and the control plane device sends a new basic service forwarding table to the forwarding plane device, so that the forwarding plane device completes the subsequent service forwarding process. Therefore, the basic service forwarding in the ICMP process does not increase the processing pressure of the control plane device.
  • the gateways of the network segments in the SDC networking scenario are uniformly configured on the control plane device, and the communication between the gateway and the gateway is completed by the control plane device.
  • Step S701 The control plane device sends a gateway proxy table of the network segment where the forwarding plane device is connected to the forwarding plane device in advance.
  • the control plane device obtains the network segment information of the local device on the forwarding plane according to the pre-configuration, and delivers the local device to the forwarding device in advance according to the flow table number and the flow table format agreed in advance with the forwarding device.
  • the matching fields in the pickup table are vrf and destination IP address information. The vrf field is used to distinguish different routes. In the live network scenario, different routes are allowed to have the same. Network segment; destination IP address refers to the gateway address of each network segment. In this way, the gateway request packet sent by a certain network segment of a certain route can be matched.
  • Step S702 The forwarding plane device receives the gateway ICMP request packet sent by the host to be matched, and matches the gateway gateway pickup table. If the matching result is yes, step S703 is performed; if the matching result is no, step S704 is performed.
  • Step S703 The forwarding plane device encapsulates the corresponding gateway ICMP reply packet according to the gateway proxy table to complete the gateway pickup.
  • the forwarding plane device encapsulates the corresponding gateway ICMP reply packet according to the requirements in the gateway pickup table.
  • Step S704 the forwarding plane device sends the gateway ICMP request packet to the control plane device.
  • Step S705 The control plane device encapsulates the corresponding gateway ICMP reply message and sends a new gateway pickup table.
  • control plane device receives and parses the gateway ICMP request message sent by the forwarding plane device, encapsulates the corresponding gateway ICMP reply message, and completes the response. Then, according to the vrf and the destination IP address information in the gateway ICMP request message, a new gateway pickup table is sent to the forwarding device.
  • Step S706 the forwarding plane device receives and saves the gateway pickup table.
  • the gateway proxy table is used as a processing basis for the gateway ICMP request message received by the forwarding plane again; that is, when the received gateway ICMP request message can be matched to the gateway pickup table, step S703 is executed, and the received message is received again.
  • step S704 is performed.
  • the packet processing method of the embodiment of the present invention moves the function of the gateway ICMP request packet of the control plane device to the forwarding plane device, which reduces the processing pressure of the control plane device on the gateway ICMP request packet, and improves the broadcast group.
  • the processing rate of the broadcast message improves the stability of the entire network.
  • control plane device may be implemented by a controller.
  • the eleventh embodiment of the present invention further provides a packet processing apparatus, and the composition of the packet processing apparatus, as shown in FIG. 14, includes: a first receiving module 11 and a processing module 12; among them,
  • the first receiving module 11 is configured to receive a first generation processing table, where the first generation processing table is used to indicate a processing manner of the first type of packet by the forwarding plane device;
  • the processing module 12 is configured to process the received first packet based on the first generation processing table.
  • the first receiving module 11 is further configured to receive the second packet, where the second packet is a packet of the first type.
  • the device further includes: a first sending module 13 configured to send the second message to the control plane device.
  • the processing module 12 is specifically configured to acquire a type of the first packet.
  • the first packet is processed according to a processing manner corresponding to the packet type obtained by the matching.
  • the processing module 12 is specifically configured to acquire a type of the first packet.
  • the first packet is forwarded to the control plane device.
  • the first receiving module 11 is further configured to receive a second generation processing table
  • the processing module 12 is further configured to update the first generation processing table by using the second generation processing table.
  • the twelfth embodiment of the present invention further provides a packet processing apparatus, and the composition of the packet processing apparatus, as shown in FIG.
  • the building module 21 is configured to construct a first generation processing table based on the processing manner of the first type of message and the first type of message;
  • the second sending module 22 is configured to send the first generation processing table to the forwarding plane device.
  • the device further includes:
  • the second receiving module 23 is configured to receive the second packet sent by the forwarding plane device, where the second packet is a packet of the first type.
  • the constructing module 21 is configured to parse the second packet, and obtain a processing manner of the first type corresponding to the second packet and the first type of packet;
  • the first correspondence is stored to the first generation processing table.
  • the second receiving module 23 is further configured to receive the first packet sent by the forwarding plane device, where the packet type of the first packet does not exist in the first generation processing table;
  • the constructing module 21 is further configured to parse the first packet, and obtain a processing manner of the second type corresponding to the first packet and the second type of packet;
  • the second sending module 22 is further configured to send the second generation processing table to the forwarding plane device.
  • the first receiving module 11, the processing module 12, and the first sending module 13 may each be a central processing unit (CPU), a microprocessor (MPU, Micro Processor Unit) located on the forwarding plane device, Digital signal processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA) implementation.
  • CPU central processing unit
  • MPU Microprocessor
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the building module 21, the second sending module 22, and the second receiving module 23 can all be implemented by a CPU, an MPU, a DSP, an FPGA, or the like located on the control plane device.
  • the control surface device can be a controller.
  • the embodiment of the present invention further provides a message processing apparatus.
  • the hardware component structure of the message processing apparatus 700 includes: a processor 701 and a computer program for storing the processor 701. Memory 702,
  • processor 701 when the processor 701 is configured to run the computer program, execute:
  • the method further includes: receiving a second packet; the second packet is a packet having a first type;
  • the method further includes: acquiring a type of the first packet; and matching, in the first generation processing table, a packet type that is the same as the first packet; When the matching result is YES, the first packet is processed according to a processing manner corresponding to the packet type obtained by the matching.
  • the method further includes: acquiring a type of the first packet; and matching, in the first generation processing table, a packet type that is the same as the first packet; When the matching result is no, the first packet is forwarded to the control plane device.
  • the processor 701 When the processor 701 is configured to run the computer program, the processor 701 further performs: receiving a second generation processing table;
  • the first generation processing table is updated with the second generation processing table.
  • processor 701 when the processor 701 is configured to run the computer program, execute:
  • the first generation processing table is constructed based on the processing manner of the first type of the message and the first type of the message; and the first generation processing table is sent to the forwarding plane device.
  • the method further includes: receiving a second packet sent by the forwarding plane device; and the second packet is a packet having a first type.
  • the method further includes: parsing the second packet, acquiring a first type corresponding to the second packet, and processing the first type of packet; a first correspondence between the processing of the first type of packets and the processing manner of the first type of packets; storing the first corresponding relationship to the first generation processing table.
  • the method further includes: receiving a first packet sent by the forwarding plane device, where the packet type of the first packet does not exist in the first generation processing table Parsing the first packet, obtaining a processing manner of the second type and the second type packet corresponding to the first packet, and establishing the second type of packet and the second type of packet a second correspondence between the processing modes; storing the second correspondence to the second generation processing table.
  • the processor 701 When the processor 701 is configured to run the computer program, the processor 701 further executes: sending the second generation processing table to the forwarding plane device.
  • memory 702 can be either volatile memory or non-volatile memory, and can include both volatile and nonvolatile memory.
  • the non-volatile memory may be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), or an Erasable Programmable Read (EPROM). Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a disk storage or a tape storage.
  • the volatile memory can be a random access memory (RAM) that acts as an external cache.
  • RAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • SSRAM Dynamic Random Access
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM enhancement Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Dynamic Random Access Memory
  • DRRAM Direct Memory Bus Random Access Memory
  • the memory 702 in the embodiment of the present invention is used to store various types of data to support the operation of the message processing apparatus 700.
  • Examples of such data include any computer program for operating on the message processing device 700, such as an operating system 7021 and an application 7022.
  • the operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
  • the application 7022 can include various applications, and the program that implements the method of the embodiment of the present invention is also included in the application 7022.
  • An embodiment of the present invention further provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by the processor, executing: receiving a first generation processing table; the first generation processing table is used to indicate The manner in which the forwarding plane device processes the first type of packet;
  • the method when the computer program is executed by the processor, the method further comprises: receiving a second message; the second message is a message having a first type;
  • the first packet is processed according to a processing manner corresponding to the packet type obtained by the matching.
  • the first packet is forwarded to the control plane device.
  • the method when the computer program is executed by the processor, the method further comprises: receiving a second generation processing table; and updating the first generation processing table by using the second generation processing table.
  • the embodiment of the present invention further provides another storage medium, where the computer program is stored, wherein when the computer program is executed by the processor, executing: constructing based on the processing manner of the first type of message and the first type of message First generation processing table;
  • the method when the computer program is executed by the processor, the method further comprises: receiving a second message sent by the forwarding plane device; and the second packet is a packet having a first type.
  • the method when the computer program is executed by the processor, the method further includes: parsing the second packet, and acquiring a first type corresponding to the second packet and a processing manner of the first type packet; Establishing a first correspondence between the processing manner of the first type of packet and the first type of packet; storing the first correspondence relationship to the first generation processing table.
  • the method when the computer program is executed by the processor, the method further comprises: receiving a first packet sent by the forwarding plane device, where the packet type of the first packet does not exist in the first generation processing In the table;
  • the computer program when executed by the processor, it is further executed to: send the second generation processing table to the forwarding plane device.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明公开了一种报文处理方法,包括:控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表,发送所述第一代处理表至转发面设备;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式。转发面设备接收第一代处理表,并基于所述第一代处理表对接收的第一报文进行处理。本发明还同时公开了另一种报文处理装置及存储介质。

Description

一种报文处理方法、装置及存储介质
相关申请的交叉引用
本申请基于申请号为201810172804.8、申请日为2018年03月01日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明涉及通信领域,尤其涉及一种报文处理方法、装置及存储介质。
背景技术
软件定义网络(Software Defined Network,SDN)是一种新型的网络架构,SDN的核心功能是将网络设备的控制面与网络设备的转发面分离;分离之后的控制面是开放的,通过OpenFlow协议受控制器集中控制。控制器可对网络业务灵活控制,并且能够对信息进行集中更改,无需在每个网络设备上分别进行配置和更改。
相关技术中,SDN中报文处理方法的流程示意图,如图1所示,网络设备接收到业务触发的报文时,将报文发送至控制器(步骤1),以请求控制器指示网络设备针对该报文的处理方式。其中,所述报文至少包括:地址解析协议(Address Resoltion Protocol,ARP)报文、控制报文协议(Internet Control Message Protocol,ICMP)报文、动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)报文、广播协议请求报文或组播协议请求报文等。控制器接收到网络设备发送的报文后,根据自身的业务设置将转发逻辑下发至网络设备的转发面(步骤2)。其中,转发逻辑承载在网络设备的多张流表中,流表至少包括匹配域、指令集等部分。网络设备接收到网络业务时,匹配流表以获取网络业务的处理方式,并按照获取的处理方法对网络业务进行处理(步骤3),进而实现网络业务功能。
根据图1所示的报文处理流程,随着网络规模的扩大,以及网路业务需求的增加,控制器将接收海量的代处理报文;由于控制器的处理能力有限,当代处理报文数量过多,导致控制器的处理能力出现拥塞时,降低网络业务的处理效率。
发明内容
有鉴于此,本发明实施例期望提供一种报文处理方法、装置及存储介质,能够减少控制器对报文的处理量,提高网络业务的处理效率。
为达到上述目的,本发明实施例的技术方案是这样实现的:
本发明实施例提供一种报文处理方法,包括:
转发面设备接收第一代处理表;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式;
基于所述第一代处理表对接收的第一报文进行处理。
上述方案中,所述转发面设备接收第一代处理表之前,所述方法还包括:
所述转发面设备接收第二报文;所述第二报文为具有第一类型的报文;将所述第二报文发送至控制面设备。
上述方案中,所述基于所述第一代处理表对接收的第一报文进行处理,包括:
获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为是时,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
上述方案中,所述基于所述第一代处理表对接收的第一报文进行处理,包括:
获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为否时,将所述第一报文转发至所述控制面设备。
上述方案中,所述方法还包括:
所述转发面设备接收第二代处理表;
利用所述第二代处理表更新所述第一代处理表。
本发明实施例还提供一种报文处理方法,包括:
控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表;
发送所述第一代处理表至转发面设备。
上述方案中,所述控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表之前,所述方法还包括:
所述控制面设备接收所述转发面设备发送的第二报文;所述第二报文为具有第一类型的报文。
上述方案中,所述控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表,包括:
所述控制面设备解析所述第二报文,获取所述第二报文对应的第一类型以及所述第一类型报文的处理方式;
建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系;
将所述第一对应关系存储至所述第一代处理表。
上述方案中,所述发送所述第一代处理表至转发面设备之后,所述方法还包括:
所述控制面设备接收所述转发面设备发送的第一报文,所述第一报文的报文类型不存在于所述第一代处理表中;
解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式;
建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系;
将所述第二对应关系存储至第二代处理表。
上述方案中,所述方法还包括:所述控制面设备发送所述第二代处理表至所述转发面设备。
本发明实施例还提供一种报文处理装置,包括:
第一接收模块和处理模块;其中,
所述第一接收模块,配置为接收第一代处理表;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式;
所述处理模块,配置为基于所述第一代处理表对接收的第一报文进行处理。
上述方案中,所述第一接收模块,还配置为接收第二报文;所述第二报文为具有第一类型的报文;
相应的,所述装置还包括:
第一发送模块,配置为将所述第二报文发送至控制面设备。
上述方案中,所述处理模块,具体配置为获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为是时,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
上述方案中,所述处理模块,具体配置为获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为否时,将所述第一报文转发至所述控制面设备。
上述方案中,所述第一接收模块,还配置为接收第二代处理表;
所述处理模块,还配置为利用所述第二代处理表更新所述第一代处理表。
本发明实施例还提供一种报文处理装置,包括:
构建模块,配置为基于第一类型报文和第一类型报文的处理方式构建第一代处理表;
第二发送模块,配置为发送所述第一代处理表至转发面设备。
上述方案中,所述装置还包括:
第二接收模块,配置为接收所述转发面设备发送的第二报文;所述第二报文为具有第一类型的报文。
上述方案中,所述构建模块,具体配置为解析所述第二报文,获取所述第二报文对应的第一类型以及所述第一类型报文的处理方式;
建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系;
将所述第一对应关系存储至所述第一代处理表。
上述方案中,所述第二接收模块,还配置为接收所述转发面设备发送的第一报文,所述第一报文的报文类型不存在于所述第一代处理表中;
所述构建模块,还配置为解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式;
建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系;
将所述第二对应关系存储至第二代处理表。
上述方案中,所述第二发送模块,还配置为发送所述第二代处理表至所述转发面设备。
本发明实施例还提供一种报文处理装置,包括:
处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,
其中,所述处理器用于运行所述计算机程序时,执行上述方法的步骤。
本发明实施例还提供一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法的步骤。
本发明实施例提供的报文处理方法、装置及存储介质,控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表,并发送所述第一代处理表至转发面设备;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式。转发面设备接收第一代处理表,并基于所 述第一代处理表对接收的第一报文进行处理。如此,转发面设备通过获取特定类型报文的处理方式,使得转发面设备在接收到报文的类型与第一代处理表中的报文类型匹配时,能够基于第一代处理表中记载的报文处理方式进行处理;转发面设备无需将接收的报文发送至控制面设备进行处理,缓解了控制面设备的处理压力,提高了控制面设备的处理速度,进而提高了网络业务的处理效率。
附图说明
图1为相关技术中SDN中报文处理方法的流程示意图;
图2为本发明实施例一报文处理方法的处理流程示意图;
图3为本发明实施例转发面设备基于第一代处理表对接收的第一报文进行处理的流程示意图;
图4为本发明实施例二报文处理方法的处理流程示意图;
图5为本发明实施例三报文处理方法的处理流程示意图;
图6为本发明实施例四报文处理方法的处理流程示意图;
图7为本发明实施例五报文处理方法的处理流程示意图;
图8为本发明实施例控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表的处理流程示意图;
图9为本发明实施例六报文处理方法的处理流程示意图;
图10为本发明实施例七报文处理方法的处理流程示意图;
图11为本发明实施例八报文处理方法的处理流程示意图;
图12为本发明实施例九报文处理方法的处理流程示意图;
图13为本发明实施例十报文处理方法的处理流程示意图;
图14为本发明实施例十一报文处理装置的组成结构示意图;
图15为本发明实施例十二报文处理装置的组成结构示意图;
图16为本发明实施例报文处理装置的硬件组成结构示意图。
具体实施方式
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。
实施例一
本发明实施例一提供的报文处理方法的处理流程,如图2所示,包括以下步骤:
步骤S101,转发面设备接收第一代处理表。
这里,所述第一代处理表根据报文的类型至少包括代应答表和代转发表;所述第一代处理表由控制面设备发送,所述第一代处理表用于指示第一类型报文的处理方式。转发面设备也可以接收控制面设备发送的多种类型报文的处理方式。
可以理解为,转发面设备针对不同类型的报文,需要执行的处理过程不同。举例来说,针对ARP请求报文、DHCP请求报文、ICMP请求报文,转发面设备可根据第一代处理表进行代应答;对于ARP请求报文、DHCP请求报文、ICMP请求报文,转发面设备代应答的内容也不相同。针对广播请求报文或组播请求报文,转发面设备可根据第一代处理表进行代转发;对于广播请求报文和组播请求报文,转发面设备代转发的内容也不相同。
步骤S102,基于所述第一代处理表对接收的第一报文进行处理。
这里,处理至少包括:代转发或代应答。
在一可选实施方式中,转发面设备基于第一代处理表对接收的第一报文进行处理的具体处理过程,如图3所述,包括以下步骤:
步骤S1021,转发面设备获取第一报文的类型。
这里,转发面设备根据接收的第一报文,获取第一报文的类型。
其中,所述第一报文的类型至少包括:ARP请求报文、DHCP请求报文、ICMP请求报文、组播请求报文、转播请求报文等。
步骤S1022,在所述第一代处理表中匹配与所述第一报文相同的报文类 型;在匹配结果为是时,执行步骤S1023;在匹配结果为否时,执行步骤S1024。
在一可选实施方式中,转发面设备在所述第一代处理表中查找与所述第一报文相同的报文类型。
步骤S1023,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
转发面设备在所述第一代处理表中查到与所述第一报文类型相同的报文类型时,按照所述第一代处理表中记载的报文类型对应的处理凡是对所述第一报文进行处理。
这里,转发面设备通过匹配自身获取的第一代处理表,可直接根据第一代处理表记载的处理方式对接收到的第一报文进行处理,无需将所述第一报文上报至控制面设备处理,缓解了控制面设备的处理压力,提高了控制面设备的处理速度,进而提高了网络业务的处理效率。
步骤S1024,将所述第一报文转发至所述控制面设备。
这里,由于转发面设备在自身获取的第一代处理表中未匹配到与第一报文相同的报文类型,即第一代处理表未记载转发面设备对第一报文的处理方式,因此转发面设备需将第一报文发送至控制面设备,由控制面设备对第一报文进行处理。
实施例二
本发明实施例二提供的报文处理方法的处理流程,如图4所示,包括以下步骤:
步骤S201,转发面设备接收电子设备发送的第二报文。
这里,所述第二报文为具有第一类型的报文。
步骤S202,转发面设备将所述第二报文发送至控制面设备。
步骤S203,转发面设备接收第一代处理表。
这里,转发面设备接收控制面设备发送的第一代处理表;所述第一代处理表由控制面设备基于第二报文的类型、第二报文的类型对应的处理方式等信息构建得到。
步骤S204,转发面设备接收电子设备发送的第一报文。
步骤S205,转发面设备基于所述第一代处理表对所述第一报文进行处理。
这里,转发面设备对所述第一报文的处理过程,与实施例一中步骤S102的处理过程相同,这里不再赘述。
实施例三
本发明实施例三提供的报文处理方法处理流程,如图5所示;本发明实施例三提供的报文处理方法的处理流程与上述实施例一和实施例二相似,不同之处在于,在步骤S102之后,或在步骤S205之后,还包括:
步骤S103,转发面设备接收第二代处理表。
这里,转发面设备接收控制面设备发送的第二代处理表,所述第一代处理表与所述第一代处理表中记载的报文类型不同,或对于相同类型的报文,所述第二代处理表中记载的处理方式与所述第一代处理表中记载的处理方式不同。
步骤S104,转发面设备利用所述第二代处理表更新所述第一代处理表。
在一可选实施例中,转发面设备在第一代处理表中增加第二代处理表中记载的报文类型及对应的处理方式。
在另一可选实施例中,转发面设备利用第二代处理表记载的报文类型对应的处理方式,更新第一代处理表记载的相同报文类型对应的处理方式。
实施例四
本发明实施例四提供的报文处理方法的处理流程,如图6所示,包括以下步骤:
步骤S301,控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表。
在一实施例中,由于组播请求报文或广播请求报文等特定类型的报文的字段值是可以预先获取的,并且报文的字段值是固定的,即控制面设备无需通过转发面设备发送的报文来获取报文的字段值;因此,控制面设备建立预先获取的第一类型报文与所述第一类型报文的处理方式之间的第一 对应关系,将所述第一对应关系存储至所述第一代处理表,以实现所述第一代处理表的构建。
步骤S302,控制面设备发送所述第一代处理表至转发面设备。
实施例五
由于ARP请求报文、DHCP请求报文、ICMP请求报文等特定类型的报文的关键字段值是无法预先获得的,并且报文的字段值是不固定的;因此,控制面设备必须通过解析转发面设备发送的报文,获知报文的关键字段值才能获取报文类型及对应的处理方式。
基于此,本发明实施例五提供的报文处理方法的处理流程,如图7所示,本发明实施例五提供的报文处理方法与本发明实施例四提供的报文处理方法相似,不同之处在于,在步骤S301之前,还包括步骤:
步骤S300,控制面设备接收所述转发面设备发送的第二报文。
所述第二报文为具有第一类型的报文。
相应的,控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表的处理过程,如图8所示,包括以下步骤:
步骤S401,控制面设备解析所述第二报文。
这里,控制面设备通过解析所述第二报文,获得所述第二报文的关键字段值,以及第二报文对应的第一类型以及所述第一类型报文的处理方式。
步骤S402,建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系。
这里,控制面设备根据第一类型报文以及第一类型报文的处理方式建立第一对应关系。
步骤S403,将所述第一对应关系存储至所述第一代处理表。
这里,控制面设备将建立的第一对应关系存储至第一代处理表。
实施例六
本发明实施例六提供的报文处理方法处理流程,如图9所示;本发明实施例六提供的报文处理方法的处理流程与上述实施例四和实施例五相 似,不同之处在于,在步骤S302之后,还包括:
步骤S303,控制面设备接收所述转发面设备发送的第一报文。
在一实施例中,转发面设备接收到电子设备发送的第一报文,将第一报文与自身存储的第一代处理表进行匹配,确定第一代处理表中不存在与第一报文相同的报文类型后,转发面设备将第一报文发送至控制面设备。
步骤S304,控制面设备解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式。
步骤S305,控制面设备建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系。
步骤S306,控制面设备将所述第二对应关系存储至第二代处理表。
步骤S307,控制面设备发送所述第二代处理表至所述转发面设备。
这里,控制面设备通过将所述第二代处理表至所述转发面设备,使得转发面设备获得第二代处理表中记载的第二类型报文的处理方式。
实施例七
以转发面设备接收到电子设备发送的ARP请求报文为例,本发明实施例七报文处理方法的处理流程,如图10所示,包括:
步骤S801,转发面设备第一次接收到电子设备发送的ARP请求报文。
这里,所述转发面设备可以是开放流(OpenFlow)设备,所述电子设备可以是所述转发面设备下挂的主机,也可以是与所述转发面设备相邻的转发面设备。
此时,由于转发面设备是第一次接收到电子设备发送的ARP请求报文,因此转发面设备将按照现有的SDN组网场景中已有的实现方式,执行步骤S402。
步骤S802,转发面设备将所述ARP请求报文上送至控制面设备。
步骤S803,控制面设备向转发面设备发送ARP Reply报文。
本发明实施例中,控制面设备接收到转发面设备发送的ARP请求报文后,对所述ARP请求报文进行解析,根据所述ARP请求报文的目的IP地 址信息向所述转发面设备发送ARP Reply报文。
步骤S804,控制面设备判断所述ARP Reply报文是否可以由转发面设备代答处理,判断结果为是时,执行步骤S805,判断结果为否时,执行步骤S809。
这里,如果所述ARP Reply报文为免费ARP报文或ARP探测报文,则判断为该ARP Reply报文不可以由转发面设备代答处理。
免费ARP报文是电子设备用于确定当前使用的IP地址是否有其他电子设备在使用;电子设备确定当前使用的IP地址是否有其他电子设备在使用的过程为,电子设备向转发面设备发送一个免费ARP报文,如果没有收到对应该免费ARP报文的回应,说明该电子设备当前使用的IP地址没有与其他电子设备使用的IP地址冲突;反之,若电子设备收到对应该免费ARP报文的回应,说明该电子设备当前使用的IP地址与其他电子设备使用的IP地址冲突。当该电子设备当前使用的IP地址与其他电子设备使用的IP地址冲突,并且该电子设备当前使用的IP地址已经生效时,电子设备会通知网络设备,该IP地址已经占用。
ARP探测报文用于在电子设备使用一个IP地址之前,电子设备通过ARP探测报文检测该IP地址是否已经被使用;若该IP地址未被使用,电子设备将使用该IP地址;若该IP地址已经被使用,电子设备将请求服务器为其分配其他的IP地址。
由于转发面设备仅能获知整个SDN网络中部分ARP的使用情形,而回应免费ARP报文和ARP探测报文时,需要参照对整个网络中的ARP的使用情形,因此转发面设备无法为控制面设备代答免费ARP报文和ARP探测报文,需要控制面设备基于整个SDN网络中ARP的使用情形,对免费ARP报文和ARP探测报文进行回应。
步骤S805,控制面设备向转发面设备发送ARP代答表。
在一具体实施例中,控制面设备根据ARP请求报文的目的IP地址信息、以及控制面设备与转发面设备预先约定的流表号以及流表格式封装ARP代答表,并将封装好的ARP代答表发送至转发面设备。
步骤S806,转发面设备接收并保存ARP代答表。
转发面设备接收控制面设备发送的ARP代答表,与转发面设备自身存储的其他任何表没有跳转关系。也就是说,对于转发面设备,ARP代答表是一个独立的表。
步骤S807,转发面设备再次接收到ARP请求报文时,基于ARP代答表进行处理。
在一具体实施方式中,转发面设备再次接收到ARP请求报文时,解析ARP请求报文,至少获得ARP请求报文的源IP地址信息和目的IP地址信息;当获得的源IP地址信息和目的IP地址信息与ARP代答表中的相应信息一致时,由转发面设备按照ARP代答表中的信息封装回应ARP Reply报文。当获得的源IP地址信息或目的IP地址信息与ARP代答表中的相应信息不一致时,转发面设备将该ARP请求报文发送至控制面设备。
步骤S808,控制面设备对ARP请求报文进行处理。
在一实施例中,当转发面设备由于ARP请求报文中的目的IP地址信息与ARP代答表中的相应信息不一致,而向控制面设备发送ARP请求报文时,控制面设备向转发面设备下发携带新的目的IP地址信息的代答表。
在另一实施例中,当转发面设备由于ARP请求报文中的源IP地址信息与ARP代答表中的相应信息不一致,而向控制面设备发送ARP请求报文时,控制面设备需要封装ARP Reply报文,并向转发面设备下发新的ARP代答表。
因此,当转发面设备自身存储由ARP代答表后,还向控制面设备发送ARP请求报文时,转发面设备需要在向控制面设备发送ARP请求报文时,说明发送ARP请求报文的具体原因,以使控制面设备根据原因对ARP请求报文进行相应的处理。
步骤S809,控制面设备基于ARP请求报文直接进行处理。
可以理解为,当控制面设备接收到转发面设备发送的免费ARP报文或ARP探测报文时,控制面设备直接进行处理,不经转发面设备执行代答流程。
相关技术中,转发面设备,如开放流(OpenFlow)设备接收到主机发送的ARP请求报文后,均会将接收到的ARP请求报文发送至控制面设备,由控制面设备统一进行学习和代答处理。导致对于大规模的组网或业务叠加的场景,控制面设备处理ARP请求报文的业务量大;或者控制面设备不在线时,电子设备(主机或转发面设备)发送的ARP请求报文无法解析。通过本发明实施例的报文处理方法,将控制面设备的部分ARP代答功能下移至转发面设备,减轻了控制面设备对ARP请求报文的处理压力,提高了对ARP请求报文的处理速率,提高了整个网络的稳定性。
实施例八
以转发面设备接收到电子设备发送的广播组播报文为例,本发明实施例八报文处理方法的处理流程,如图11所示,包括:
步骤S501,控制面设备预先向转发面设备发送广播组播代转表。
本发明实施例中,控制面设备根据组网中不同的广播域向转发面设备发送对应的广播组播代转表。
对于SDN组网场景,广播组播报文进入转发面设备的端口类型包括两种,分别是fabric端口和access端口;其中,fabric端口为连接相邻转发面设备的隧道口,access端口为转发面设备下挂主机的端口。针对fabric端口和access端口,控制面设备分别下发一张代转表;也就是说,控制面设备向转发面设备下发两张代转表,两张代转表分别对应fabric端口和access端口。并且,两张代转表均下发到转发面设备的目的介质访问控制(MAC,Media Access Control)表中,广播组播代转表的使用通过流水线触发。同一广播域的两张广播组播代转表中的目的MAC都是01:00:00:00:00:00,广播组播代转表能够匹配所有的广播组播报文,转发面设备根据具体的端口类型以及广播域值作为匹配广播组播报文的依据。
步骤S502,转发面设备接收电子设备发送的广播组播报文。
本发明实施例中,转发面设备接收转发面设备本端下挂的主机发送的广播组播报文,或者转发面设备接收相邻的转发面设备发送的广播组播报文。
步骤S503,转发面设备基于存储的代转表转发广播组播报文。
本发明实施例中,由于代转表的使用通过流水线触发,转发面设备接收到电子设备发送的广播组播报文之后,根据流表的流水线流程,到达转发面设备的目的MAC时,判断所述广播组播报文的入端口类型为access端口还是fabric端口。
在所述广播组播报文的入端口类型为access端口时,转发面设备根据端口类型、广播域值以及目的MAC地址,匹配预先存储的access端口类型对应的广播组播代转表;根据匹配得到的处理流程对广播组播报文进行转发;以所述广播组播代转表中的处理流程为走一张组表,组表中的出端口为该转发面设备上所有的与广播域值相关的access端口和fabric端口为例,转发面设备向除从所述广播组播代转表中接收所述广播组播报文access端口以外的所有端口转发该广播组播报文,以完成入端口为access端口类型的广播组播报文的代转流程。
在所述广播组播报文的入端口类型为fabric端口时,转发面设备根据端口类型、广播域值以及目的MAC地址,匹配预先存储的fabric端口类型对应的广播组播代转表;根据匹配得到的处理流程对广播组播报文进行转发;以所述广播组播代转表中的处理流程为走一张组表,组表中的出端口为该转发面设备上所有的与广播域值相关的access端口为例,转发面设备向所述广播组播代转表中所述有access端口类型转发该广播组播报文,以完成入端口为fabric端口类型的广播组播报文的代转流程。
相关技术中,对于SDN组网场景,转发面接收到广播组播报文后,按照流表流水线流程进行转发,当转发至转发面设备的目的MAC表时,由于目的MAC表通常只会下发实时存在的主机的目的MAC表,因此会导致很多时候无法匹配而将广播组播报文上送至控制器,控制器根据上送广播组播报文的上送端口查询其所属的广播域,再将广播组播报文从所述广播域的端口进行广播组播。通过本发明实施例的报文处理方法,将控制面设备的广播组播报文的代转功能下移至转发面设备,减轻了控制面设备对广播组播报文的处理压力,提高了对广播组播报文的处理速率,提高了整个网络的稳定性。
实施例九
在SDN组网场景中,转发面设备下挂的主机在上线时,主机需要通过与控制面设备之间进行DHCP报文的交互,以获取IP地址。当控制面设备为控制器时,控制器充当HDCP服务器的角色;主机以广播形式向转发面设备发送DHCP discover报文,转发面设备基于DHCP discover报文匹配控制器预先下发给转发面设备的DHCP基础流表,并将DHCP discover报文发送给控制器。控制器接收并解析DHCP discover报文,从尚未出租的IP地址中选择一个IP地址分配给主机。同时,控制器向转发面设备发送一个包含出去的IP地址和其他设置的DHCP offer报文;转发面设备按照基本的转发流表将DHCP offer报文转发给对应的下挂主机。当有多台控制器同时向主机回应DHCP offer报文时,主机只接受第一个收到的DHCP offer报文,并以广播的形式回答一个DHCP request报文,DHCP request报文中包含向其所选定的控制器请求IP地址的内容。主机通过以广播的形式回答DHCP request报文,使得主机通知所有控制器其选择的IP地址对应的控制器。转发面设备接收到DHCP request报文之后,匹配DHCP基础流表,并将DHCP request报文发送至控制器。控制器接收并解析DHCP request报文,同时向转发面设备发送一个包含控制器提供的IP地址和DHCP ack报文,以通知主机可使用控制器所提供的IP地址;转发面设备接收到DHCP ack报文后,将DHCP ack报文发送给转发面设备下挂的主机,主机将自身的TCP/IP协议与网卡绑定。除主机选择的控制器外,其他的控制器都将收回曾经提供的IP地址。
上述过程为SDN网络场景下主机获取IP地址的基本实现流程,通常控制器出租给主机使用的IP地址存在一个租借期限,期限到达时控制器需要收回出租的IP地址。如果主机向继续使用该IP地址,延长IP地址的租期,需要更新IP租约。即在主机使用IP地址的时间达到IP地址的租期的一半时,主机主动向控制器发送续租报文;该续租报文仍旧封装在DHCP request报文中,经匹配转发面设备上的DHCP基础流表而上送至控制器,控制器更新IP地址的租约时间,并封装在DHCP ack报文中,通过转发面设备转发至相应的下挂主机,以完成续租流程
以转发面设备接收到主机发送的DHCP续租请求报文为例,本发明实施例九报文处理方法的处理流程,如图12所示,包括:
步骤S601,转发面设备第一次接收主机发送的DHCP discover广播报文。
这里,转发面设备第一次接收转发面设备下挂的主机发送的DHCP discover广播报文,或者转发面设备第一次接收相邻的转发面设备发送的DHCP discover广播报文。
步骤S602,转发面设备将DHCP discover广播报文发送至控制面设备。
在一实施例中,控制面设备预先向转发面设备发送DHCP基础流表,转发面设备接收到DHCP discover广播报文后,利用DHCP discover广播报文匹配该DHCP基础流表,根据匹配结果将DHCP discover广播报文上送至控制面设备进行处理。
步骤S603,控制面设备为主机分配IP地址,向转发面设备发送DHCP offer报文。
在一实施例中,控制面设备接收到转发面设备上送的DHCP discover广播报文后,对所述DHCP discover广播报文进行解析、处理,从尚未出租的IP地址中选择一个IP地址发送给主机,同时向转发面设备发送一个包含出租的IP地址和其他相关设置的DHCP offer报文。
步骤S604,转发面设备接收DHCP offer报文,并将DHCP offer报文转发给主机。
步骤S605,主机向转发面设备发送DHCP request广播报文。
这里,DHCP request广播报文中包括主机向控制面设备请求IP地址的内容。
步骤S606,转发面设备匹配预先存储的基础流表,根据匹配结果将DHCP request广播报文发送至控制面设备。
步骤S607,控制面设备向转发面设备发送DHCP ack报文和DHCP续租代答表。
本发明实施例中,控制面设备接收并解析DHCP request广播报文,同 时向转发面设备发送包含控制面设备提供的IP地址和相关设置的DHCP ack报文,以使主机获知主机可使用的IP地址。控制面设备还根据主机的源MAC地址及为主机分配的IP地址信息,按照预先与转发面设备越好的流表号及流表格式封装一个全新的DHCP续租代答表,并将DHCP续租代答表下发给转发面设备。
步骤S608,转发面设备将DHCP ack报文转发给主机,将DHCP续租代答表进行本地保存。
步骤S609,转发面设备再次接收主机发送的DHCP request广播报文,并将DHCP request广播报文与DHCP续租代答表进行匹配;匹配结果为是时,执行步骤S610,匹配结果为否时,执行步骤S606。
步骤S610,转发面设备根据DHCP续租报文匹配DHCP续租代答表,回应DHCP ack报文,以完成DHCP续租代答。
本发明实施例中,转发面设备根据DHCP续租报文匹配DHCP续租代答表,按照匹配的DHCP续租代答表中对应的处理方式进行代答处理,并封装回应DHCP ack报文,以完成DHCP续租代答
通过本发明实施例的报文处理方法,将控制面设备的DHCP续租请求报文的代答功能下移至转发面设备,减轻了控制面设备对DHCP续租请求报文的处理压力,提高了对广播组播报文的处理速率,提高了整个网络的稳定性。
实施例十
对于SDN组网的场景,转发面设备下挂主机之间通过控制面设备下发的基础转发表来实现基本业务的转发;在没有新增主机的情况下,原有主机之间的基本业务转发不需要上送至控制面设备进行处理,只需要按照转发面设备保存的基础转发表即可实现。即使有新增主机,也仅需向控制面设备上送一次业务请求,控制面设备便下发新的基础业务转发表给转发面设备,以使转发面设备完成后续的业务转发流程。因此,对于ICMP流程中的基本业务转发,并不会增加控制面设备的处理压力。
但是,由于SDC组网场景中各网段的网关都统一配置在控制面设备, 由控制面设备统一代答完成与网关之间的通信。
以转发面设备接收到主机发送的网关ICMPrequest报文为例,本发明实施例十报文处理方法的处理流程,如图13所示,包括:
步骤S701,控制面设备预先向转发面设备下发转发面设备所挂网段的网关代答表。
在一实施例中,控制面设备根据预先配置获取转发面设备本端下挂网段信息,并按照预先与转发面设备约定的流表号以及流表格式,预先给转发面设备下发本端设备所挂网段的网关代答表。每个网段对应一个网关代答表,代答表中匹配字段分别为vrf和目的IP地址信息;其中,vrf字段用于区分不同的路由,在现网场景中,不同的路由下允许拥有相同的网段;目的IP地址是指每个网段的网关地址。如此,便能够匹配某个路由下某个网段上送的网关请求报文。
步骤S702,转发面设备接收下挂主机上送的网关ICMP request报文,匹配培网关代答表;在匹配结果为是时,执行步骤S703;匹配结果为否时,执行步骤S704。
步骤S703,转发面设备根据网关代答表封装相应的网关ICMP reply报文,以完成网关代答。
这里,转发面设备根据网关代答表中的要求封装相应的网关ICMP reply报文。
步骤S704,转发面设备将网关ICMP request报文上送至控制面设备。
步骤S705,控制面设备封装回应相关的网关ICMP reply报文,下发新的网关代答表。
在一实施例中,控制面设备接收并解析转发面设备上送的网关ICMP request报文,封装回应相应的网关ICMP reply报文,完成应答。再根据网关ICMP request报文中的vrf及目的IP地址信息封装下发一张新的网关代答表给转发面设备。
步骤S706,转发面设备接收并保存网关代答表。
这里,该网关代答表作为转发面再次接收到的网关ICMP request报文 的处理依据;即再次接收到的网关ICMP request报文能够匹配到网关代答表时,执行步骤S703,再次接收到的网关ICMP request报文不能够匹配到网关代答表时,执行步骤S704。
通过本发明实施例的报文处理方法,将控制面设备的网关ICMP request报文的功能下移至转发面设备,减轻了控制面设备对网关ICMP request报文的处理压力,提高了对广播组播报文的处理速率,提高了整个网络的稳定性。
需要说明的是,本发明上述实施例所涉及的控制面设备的功能可由控制器实现。
实施例十一
基于上述报文处理方法,本发明实施例十一还提供一种报文处理装置,所述报文处理装置的组成结构,如图14所示,包括:第一接收模块11和处理模块12;其中,
所述第一接收模块11,配置为接收第一代处理表;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式;
所述处理模块12,配置为基于所述第一代处理表对接收的第一报文进行处理。
上述方案中,所述第一接收模块11,还配置为接收第二报文;所述第二报文为具有第一类型的报文。
相应的,所述装置还包括:第一发送模块13,配置为将所述第二报文发送至控制面设备。
上述方案中,所述处理模块12,具体配置为获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为是时,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
上述方案中,所述处理模块12,具体配置为获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为否时,将所述第一报文转发至所述控制面设备。
上述方案中,所述第一接收模块11,还配置为接收第二代处理表;
所述处理模块12,还配置为利用所述第二代处理表更新所述第一代处理表。
实施例十二
基于上述报文处理方法,本发明实施例十二还提供一种报文处理装置,所述报文处理装置的组成结构,如图15所示,包括:
构建模块21,配置为基于第一类型报文和第一类型报文的处理方式构建第一代处理表;
第二发送模块22,配置为发送所述第一代处理表至转发面设备。
上述方案中,所述装置还包括:
第二接收模块23,配置为接收所述转发面设备发送的第二报文;所述第二报文为具有第一类型的报文。
上述方案中,所述构建模块21,具体配置为解析所述第二报文,获取所述第二报文对应的第一类型以及所述第一类型报文的处理方式;
建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系;
将所述第一对应关系存储至所述第一代处理表。
上述方案中,所述第二接收模块23,还配置为接收所述转发面设备发送的第一报文,所述第一报文的报文类型不存在于所述第一代处理表中;
所述构建模块21,还配置为解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式;
建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系;将所述第二对应关系存储至第二代处理表。
上述方案中,所述第二发送模块22,还配置为发送所述第二代处理表至所述转发面设备。
在实际应用中,第一接收模块11、处理模块12和第一发送模块13均 可由位于转发面设备上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。
在实际应用中,构建模块21、第二发送模块22和第二接收模块23均可由位于控制面设备上的CPU、MPU、DSP、或FPGA等实现。所述控制面设备可以是控制器。
本发明实施例还提供一种报文处理装置,所述报文处理装置700的硬件组成结构,如图16所示,包括:处理器701和用于存储能够在处理器701上运行的计算机程序的存储器702,
在一实施例中,所述处理器701用于运行所述计算机程序时,执行:
接收第一代处理表;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式;
基于所述第一代处理表对接收的第一报文进行处理。
所述处理器701用于运行所述计算机程序时,还执行:接收第二报文;所述第二报文为具有第一类型的报文;
将所述第二报文发送至控制面设备。
所述处理器701用于运行所述计算机程序时,还执行:获取所述第一报文的类型;在所述第一代处理表中匹配与所述第一报文相同的报文类型;在匹配结果为是时,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
所述处理器701用于运行所述计算机程序时,还执行:获取所述第一报文的类型;在所述第一代处理表中匹配与所述第一报文相同的报文类型;在匹配结果为否时,将所述第一报文转发至所述控制面设备。
所述处理器701用于运行所述计算机程序时,还执行:接收第二代处理表;
利用所述第二代处理表更新所述第一代处理表。
在另一实施例中,所述处理器701用于运行所述计算机程序时,执行:
基于第一类型报文和第一类型报文的处理方式构建第一代处理表;发送所述第一代处理表至转发面设备。
所述处理器701用于运行所述计算机程序时,还执行:接收所述转发面设备发送的第二报文;所述第二报文为具有第一类型的报文。
所述处理器701用于运行所述计算机程序时,还执行:解析所述第二报文,获取所述第二报文对应的第一类型以及所述第一类型报文的处理方式;建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系;将所述第一对应关系存储至所述第一代处理表。
所述处理器701用于运行所述计算机程序时,还执行:接收所述转发面设备发送的第一报文,所述第一报文的报文类型不存在于所述第一代处理表中;解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式;建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系;将所述第二对应关系存储至第二代处理表。
所述处理器701用于运行所述计算机程序时,还执行:发送所述第二代处理表至所述转发面设备。
可以理解,存储器702可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动 态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。
本发明实施例中的存储器702用于存储各种类型的数据以支持报文处理装置700的操作。这些数据的示例包括:用于在报文处理装置700上操作的任何计算机程序,如操作系统7021和应用程序7022。其中,操作系统7021包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序7022可以包含各种应用程序,实现本发明实施例方法的程序也包含在应用程序7022中。
本发明实施例还提供一种存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器运行时,执行:接收第一代处理表;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式;
基于所述第一代处理表对接收的第一报文进行处理。
在一实施例中,该计算机程序被处理器运行时,还执行:接收第二报文;所述第二报文为具有第一类型的报文;
将所述第二报文发送至控制面设备。
在一实施例中,该计算机程序被处理器运行时,还执行:获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为是时,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
在一实施例中,该计算机程序被处理器运行时,还执行:获取所述第一报文的类型;
在所述第一代处理表中匹配与所述第一报文相同的报文类型;
在匹配结果为否时,将所述第一报文转发至所述控制面设备。
在一实施例中,该计算机程序被处理器运行时,还执行:接收第二代处理表;利用所述第二代处理表更新所述第一代处理表。
本发明实施例还提供另一种存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器运行时,执行:基于第一类型报文和第一类型报文的处理方式构建第一代处理表;
发送所述第一代处理表至转发面设备。
在一实施例中,该计算机程序被处理器运行时,还执行:接收所述转发面设备发送的第二报文;所述第二报文为具有第一类型的报文。
在一实施例中,该计算机程序被处理器运行时,还执行:解析所述第二报文,获取所述第二报文对应的第一类型以及所述第一类型报文的处理方式;建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系;将所述第一对应关系存储至所述第一代处理表。
在一实施例中,该计算机程序被处理器运行时,还执行:接收所述转发面设备发送的第一报文,所述第一报文的报文类型不存在于所述第一代处理表中;
解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式;
建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系;将所述第二对应关系存储至第二代处理表。
在一实施例中,该计算机程序被处理器运行时,还执行:发送所述第二代处理表至所述转发面设备。
本领域的技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、RAM、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、RAM、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (24)

  1. 一种报文处理方法,所述方法包括:
    转发面设备接收第一代处理表;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式;
    基于所述第一代处理表对接收的第一报文进行处理。
  2. 根据权利要求1所述的方法,其中,所述转发面设备接收第一代处理表之前,所述方法还包括:
    所述转发面设备接收第二报文;所述第二报文为具有第一类型的报文;
    将所述第二报文发送至控制面设备。
  3. 根据权利要求2所述的方法,其中,所述基于所述第一代处理表对接收的第一报文进行处理,包括:
    获取所述第一报文的类型;
    在所述第一代处理表中匹配与所述第一报文相同的报文类型;
    在匹配结果为是时,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
  4. 根据权利要求2所述的方法,其中,所述基于所述第一代处理表对接收的第一报文进行处理,包括:
    获取所述第一报文的类型;
    在所述第一代处理表中匹配与所述第一报文相同的报文类型;
    在匹配结果为否时,将所述第一报文转发至所述控制面设备。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    所述转发面设备接收第二代处理表;
    利用所述第二代处理表更新所述第一代处理表。
  6. 一种报文处理方法,所述方法包括:
    控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代 处理表;
    发送所述第一代处理表至转发面设备。
  7. 根据权利要求6所述的方法,其中,所述控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表之前,所述方法还包括:
    所述控制面设备接收所述转发面设备发送的第二报文;所述第二报文为具有第一类型的报文。
  8. 根据权利要求7所述的方法,其中,所述控制面设备基于第一类型报文和第一类型报文的处理方式构建第一代处理表,包括:
    所述控制面设备解析所述第二报文,获取所述第二报文对应的第一类型以及所述第一类型报文的处理方式;
    建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系;
    将所述第一对应关系存储至所述第一代处理表。
  9. 根据权利要求6所述的方法,其中,所述发送所述第一代处理表至转发面设备之后,所述方法还包括:
    所述控制面设备接收所述转发面设备发送的第一报文,所述第一报文的报文类型不存在于所述第一代处理表中;
    解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式;
    建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系;
    将所述第二对应关系存储至第二代处理表。
  10. 根据权利要求9所述的方法,其中,所述方法还包括:
    所述控制面设备发送所述第二代处理表至所述转发面设备。
  11. 一种报文处理装置,包括:第一接收模块和处理模块;其中,
    所述第一接收模块,配置为接收第一代处理表;所述第一代处理表用于指示所述转发面设备对第一类型报文的处理方式;
    所述处理模块,配置为基于所述第一代处理表对接收的第一报文进行处理。
  12. 根据权利要求11所述的装置,其中,所述第一接收模块,还配置为接收第二报文;所述第二报文为具有第一类型的报文;
    相应的,所述装置还包括:
    第一发送模块,配置为将所述第二报文发送至控制面设备。
  13. 根据权利要求12所述的装置,其中,
    所述处理模块,配置为获取所述第一报文的类型;
    在所述第一代处理表中匹配与所述第一报文相同的报文类型;
    在匹配结果为是时,基于匹配得到的报文类型对应的处理方式对所述第一报文进行处理。
  14. 根据权利要求12所述的装置,其中,
    所述处理模块,配置为获取所述第一报文的类型;
    在所述第一代处理表中匹配与所述第一报文相同的报文类型;
    在匹配结果为否时,将所述第一报文转发至所述控制面设备。
  15. 根据权利要求14所述的装置,其中,
    所述第一接收模块,还配置为接收第二代处理表;
    所述处理模块,还配置为利用所述第二代处理表更新所述第一代处理表。
  16. 一种报文处理装置,包括:
    构建模块,配置为基于第一类型报文和第一类型报文的处理方式构建第一代处理表;
    第二发送模块,配置为发送所述第一代处理表至转发面设备。
  17. 根据权利要求16所述的装置,其中,所述装置还包括:
    第二接收模块,配置为接收所述转发面设备发送的第二报文;所述第二报文为具有第一类型的报文。
  18. 根据权利要求17所述的装置,其中,
    所述构建模块,配置为解析所述第二报文,获取所述第二报文对应的第一类型以及所述第一类型报文的处理方式;
    建立所述第一类型报文与所述第一类型报文的处理方式之间的第一对应关系;
    将所述第一对应关系存储至所述第一代处理表。
  19. 根据权利要求16所述的装置,其中,
    所述第二接收模块,还配置为接收所述转发面设备发送的第一报文,所述第一报文的报文类型不存在于所述第一代处理表中;
    所述构建模块,还配置为解析所述第一报文,获取所述第一报文对应的第二类型以及所述第二类型报文的处理方式;
    建立所述第二类型报文与所述第二类型报文的处理方式之间的第二对应关系;
    将所述第二对应关系存储至第二代处理表。
  20. 根据权利要求19所述的装置,其中,
    所述第二发送模块,还用于发送所述第二代处理表至所述转发面设备。
  21. 一种报文处理装置,包括:
    处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行权利要求1至5任一项所述方法的步骤。
  22. 一种报文处理装置,包括:
    处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,
    其中,所述处理器用于运行所述计算机程序时,执行权利要求6至10任一项所述方法的步骤。
  23. 一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现权利要求1至5任一项所述方法的步骤。
  24. 一种存储介质,其上存储有计算机程序,该计算机程序被处理器 执行时实现权利要求6至10任一项所述方法的步骤。
PCT/CN2018/117043 2018-03-01 2018-11-22 一种报文处理方法、装置及存储介质 WO2019165805A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/977,358 US20210112007A1 (en) 2018-03-01 2018-11-22 Message processing method and apparatus, and storage medium
EP18908174.8A EP3761577A4 (en) 2018-03-01 2018-11-22 MESSAGE PROCESSING METHOD AND DEVICE AND STORAGE MEDIUM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810172804.8A CN110224942B (zh) 2018-03-01 2018-03-01 一种报文处理方法、装置及存储介质
CN201810172804.8 2018-03-01

Publications (1)

Publication Number Publication Date
WO2019165805A1 true WO2019165805A1 (zh) 2019-09-06

Family

ID=67805632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117043 WO2019165805A1 (zh) 2018-03-01 2018-11-22 一种报文处理方法、装置及存储介质

Country Status (4)

Country Link
US (1) US20210112007A1 (zh)
EP (1) EP3761577A4 (zh)
CN (1) CN110224942B (zh)
WO (1) WO2019165805A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512758B (zh) * 2018-03-07 2021-09-14 华为技术有限公司 报文处理方法、控制器以及转发设备
US11876710B2 (en) * 2021-01-20 2024-01-16 Oracle International Corporation Dynamic IP routing in a cloud environment
CN114553799B (zh) * 2022-01-10 2023-11-03 珠海高凌信息科技股份有限公司 基于可编程数据平面的组播转发方法、装置、设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739549A (zh) * 2012-07-13 2012-10-17 华为技术有限公司 接收报文的方法、发送报文的方法及装置
WO2014019185A1 (zh) * 2012-08-02 2014-02-06 华为技术有限公司 一种控制和转发解耦下协议处理方法及控制面设备、转发面设备
CN104541481A (zh) * 2013-08-20 2015-04-22 华为技术有限公司 一种处理用户报文的方法及转发面设备
CN106685847A (zh) * 2015-11-06 2017-05-17 华为技术有限公司 一种报文处理方法、装置及设备
CN106878178A (zh) * 2015-12-11 2017-06-20 中国电信股份有限公司 流表下发方法、系统及控制器

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905317B (zh) * 2012-12-28 2017-05-03 中兴通讯股份有限公司 一种软件定义网络的报文处理方法和系统
CN104113484A (zh) * 2013-04-19 2014-10-22 中兴通讯股份有限公司 报文的转发处理方法及装置
CN103312611B (zh) * 2013-06-03 2016-12-28 华为技术有限公司 报文处理方法、设备标签处理方法及设备
CN105379228B (zh) * 2014-01-23 2019-03-19 华为技术有限公司 实现arp的方法、交换设备及控制设备
CN103944974B (zh) * 2014-04-02 2017-10-17 华为技术有限公司 一种协议报文处理方法、控制器故障处理方法及相关设备
US9876712B2 (en) * 2014-09-05 2018-01-23 Kt Corporation Method and device for processing address resolution protocol in software-defined networking environment
CN104219340B (zh) * 2014-09-25 2018-01-09 新华三技术有限公司 一种arp应答代理方法以及装置
US10797996B2 (en) * 2015-03-06 2020-10-06 Futurewei Technologies, Inc. Server-based local address assignment protocol
CN106161289A (zh) * 2015-03-23 2016-11-23 中兴通讯股份有限公司 一种基于sdn的网关中控制报文的处理方法及系统
CN105227466B (zh) * 2015-08-20 2019-01-11 北京百度网讯科技有限公司 通信处理方法和装置
CN105634923B (zh) * 2015-12-29 2018-11-02 北京邮电大学 基于sdn控制器的以太网广播优化处理方法
CN107181681B (zh) * 2016-03-10 2022-02-25 中兴通讯股份有限公司 Sdn二层转发方法及系统
CN106101297B (zh) * 2016-06-02 2019-07-05 新华三技术有限公司 一种报文应答方法及装置
CN106453672A (zh) * 2016-06-30 2017-02-22 平安科技(深圳)有限公司 一种实现SDN Overlay网络报文转发的方法及终端
CN106161673A (zh) * 2016-07-05 2016-11-23 刘昱 基于sdn的arp管理装置及方法
CN106789640A (zh) * 2016-11-10 2017-05-31 上海斐讯数据通信技术有限公司 一种基于sdn的优先级分类方法、装置和系统
CN106559342A (zh) * 2016-11-10 2017-04-05 上海斐讯数据通信技术有限公司 一种基于sdn的协议端口保护方法、装置和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739549A (zh) * 2012-07-13 2012-10-17 华为技术有限公司 接收报文的方法、发送报文的方法及装置
WO2014019185A1 (zh) * 2012-08-02 2014-02-06 华为技术有限公司 一种控制和转发解耦下协议处理方法及控制面设备、转发面设备
CN104541481A (zh) * 2013-08-20 2015-04-22 华为技术有限公司 一种处理用户报文的方法及转发面设备
CN106685847A (zh) * 2015-11-06 2017-05-17 华为技术有限公司 一种报文处理方法、装置及设备
CN106878178A (zh) * 2015-12-11 2017-06-20 中国电信股份有限公司 流表下发方法、系统及控制器

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3761577A4 *

Also Published As

Publication number Publication date
CN110224942B (zh) 2023-08-04
CN110224942A (zh) 2019-09-10
EP3761577A1 (en) 2021-01-06
US20210112007A1 (en) 2021-04-15
EP3761577A4 (en) 2021-11-24

Similar Documents

Publication Publication Date Title
EP3913480B1 (en) Method and apparatus for determining virtual machine migration
JP5817299B2 (ja) アドレス変換装置、通信システム及びアドレス変換方法
EP3070887B1 (en) Communication method, device and system for virtual extensible local area network
KR101574167B1 (ko) 네트워크 시스템 및 경로 제어 방법
CN112910750B (zh) 使用逻辑路由器进行地址解析的方法、设备、系统及介质
CN106412142B (zh) 一种资源设备地址获取方法及装置
RU2441331C2 (ru) Соединение ячеистых сетей с множеством узлов-ретрансляторов с использованием сетевого моста подуровня управления доступом к среде передачи
US9461943B2 (en) Network assisted virtual machine mobility
US9560016B2 (en) Supporting IP address overlapping among different virtual networks
WO2019165805A1 (zh) 一种报文处理方法、装置及存储介质
KR20150113597A (ko) Arp 패킷 처리 방법 및 장치
CN106982163B (zh) 按需获取路由的方法及网关
JP2020520612A (ja) パケット伝送方法、エッジデバイス及び機械可読記憶媒体
US20150200910A1 (en) Control apparatus and transfer control method
EP3493477B1 (en) Message monitoring
CN105591907B (zh) 一种路由获取方法和装置
WO2016115698A1 (zh) 数据报文的转发方法、装置及设备
US7882169B1 (en) Method and apparatus for configuring relay processes used for dynamically configuring hosts in network communications
JP2007081877A (ja) ネットワークシステム及びデータ転送方法
CN116248595B (zh) 一种云内网与物理网通信的方法、装置、设备以及介质
CN113489646A (zh) 基于vxlan的分段路由传输方法、服务器、源节点及存储介质
US9137197B2 (en) IP router and method of allocating IP address
WO2015184979A1 (zh) 处理报文、发送信息、接收信息的方法及装置
US20150281086A1 (en) Information processing system and controlling method and controlling device for the same
US10298481B1 (en) Method and apparatus for testing VLAN

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18908174

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2018908174

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2018908174

Country of ref document: EP

Effective date: 20201001