WO2018000856A1 - 一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质 - Google Patents
一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2018000856A1 WO2018000856A1 PCT/CN2017/076516 CN2017076516W WO2018000856A1 WO 2018000856 A1 WO2018000856 A1 WO 2018000856A1 CN 2017076516 W CN2017076516 W CN 2017076516W WO 2018000856 A1 WO2018000856 A1 WO 2018000856A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- packet
- mac address
- local
- arp table
- remote
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000004044 response Effects 0.000 claims abstract description 30
- 238000012217 deletion Methods 0.000 claims description 4
- 230000037430 deletion Effects 0.000 claims description 4
- 230000003993 interaction Effects 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
Definitions
- the present invention relates to the field of communication technologies, and in particular, to implementing an SDN Method, terminal, device and computer readable storage medium for overlay network message forwarding.
- the forwarding logic of the message needs to be centrally controlled by the SDN controller. Whether it is between servers, or between the server and the Internet, packet forwarding needs to be performed through the forwarding logic of the SDN controller.
- the forwarding entries stored in the SDN controller and the reporting mechanism on which the packets are forwarded will also become the bottleneck of the SDN network system.
- an embodiment of the present invention provides an implementation of SDN.
- the method, the terminal, the device, and the computer-readable storage medium of the overlay network packet are directly forwarded locally without forwarding through the SDN controller, and the SDN controller storage entry and the packet forwarding are reduced.
- the pressure has effectively solved the bottleneck problem of the SDN network system.
- a method for implementing packet forwarding of an SDN Overlay network includes:
- the local switch determines the local address resolution protocol (Address Resolution The protocol (ARP) table has a MAC address corresponding to the destination IP address of the request packet, and the local ARP table is an ARP table in the local switch;
- ARP Address Resolution The protocol
- the remote ARP table performs an ARP response according to the MAC address corresponding to the destination IP address of the request packet; the remote ARP table is an ARP table in the remote switch, and the remote switch The SDN controller is determined according to the target IP address.
- the method further includes: obtaining a forwarding packet, where the forwarding packet is a report that is fed back according to the request packet. Determining whether the destination MAC address of the forwarded packet is a gateway MAC address;
- the destination MAC address of the forwarding packet is not the gateway MAC address, and the forwarding packet is forwarded according to the local ARP table.
- the remote ARP table corresponds to a destination IP address of the request packet.
- the method further includes: obtaining a forwarding packet; determining whether the destination MAC address of the forwarding packet is a gateway MAC address; and if the destination MAC address of the forwarding packet is a gateway MAC address, according to the The remote ARP table corresponding to the forwarding packet forwards the forwarded packet.
- the method further includes: when the message forwarding is completed, the local ARP table or the remote ARP table is automatically deleted.
- An implementation of SDN The method for forwarding the packet in the overlay network, the method includes: if the SDN controller receives the request packet, the SDN controller determines a corresponding remote switch according to the destination IP address of the request packet; the SDN controller sends A remote command is issued to the determined remote switch to control the remote switch to send a remote.
- a terminal comprising:
- the first determining module is configured to: if the local switch receives the request packet from the network, determine whether the local ARP table has a MAC address corresponding to the destination IP address of the request packet, where the local ARP table is a local switch.
- ARP table ;
- control module configured to: if not present, control the local switch to send the request message to an SDN controller;
- the answering module is configured to: when the local switch receives the remote ARP table, perform an ARP response according to the MAC address corresponding to the destination IP address of the request packet according to the remote ARP table; the remote ARP table is an ARP table in the remote switch.
- the remote switch is determined by the SDN controller according to the target IP address.
- the terminal further includes: a first acquiring module, configured to obtain a forwarding packet, where the forwarding packet is a packet that is fed back according to the request packet; and a second determining module, configured to determine the forwarding Whether the destination MAC address of the packet is a gateway MAC address, and the first forwarding module is configured to forward the forwarded packet according to the local ARP table if the destination MAC address of the forwarded packet is not the gateway MAC address.
- the terminal further includes: a second acquiring module, configured to obtain a forwarding packet; a third determining module, configured to determine whether the destination MAC address of the forwarding packet is a gateway MAC address; and the second forwarding module uses And if the destination MAC address of the forwarded packet is a gateway MAC address, the forwarded packet is forwarded according to the remote ARP table corresponding to the forwarded packet.
- the terminal further includes: an automatic deletion module, configured to automatically delete the local ARP table or the remote ARP table after the packet forwarding is completed.
- a terminal includes: a determining module, configured to: if the SDN controller receives the request packet, the SDN controller determines a corresponding remote switch according to the destination IP address of the request packet; and the sending module is configured to: The SDN controller sends a remote command to the determined remote switch to control the remote switch to send a remote.
- a local switch includes: a transceiver, a memory, and a processor;
- a transceiver device configured to receive the input request data and send the received request data to the SDN controller
- a memory for storing a message forwarding program and data
- a processor configured to run a message forwarding program stored in the memory to perform the following operations:
- ARP Address Resolution The protocol
- the ARP response is performed according to the MAC address corresponding to the destination IP address of the request packet, and the remote ARP table is an ARP table in the remote switch, where the remote switch is The SDN controller is determined according to the target IP address.
- the processor further performs the following operations:
- the forwarding packet is a packet that is fed back according to the request packet
- the forwarding packet is forwarded according to the local ARP table.
- the processor After performing the ARP response according to the MAC address corresponding to the destination IP address of the request packet, the processor further performs the following operations:
- the forwarded packet is forwarded according to the remote ARP table corresponding to the forwarded packet.
- processor further performs the following operations:
- the local ARP table or remote ARP table is deleted.
- An implementation of SDN A system for overlaying network packet forwarding, the system comprising: a local switch and an SDN controller capable of data interaction with the local switch, the local switch comprising a memory and a processor, wherein the memory is used to store a message forwarding program And data, the processor is configured to run a message forwarding program stored in the memory to perform the following operations;
- ARP Address Resolution The protocol
- the ARP response is performed according to the MAC address corresponding to the destination IP address of the request packet, and the remote ARP table is an ARP table in the remote switch, where the remote switch is The SDN controller is determined according to the target IP address.
- a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to control a local switch to perform the following steps:
- ARP Address Resolution The protocol
- the ARP response is performed according to the MAC address corresponding to the destination IP address of the request packet, and the remote ARP table is an ARP table in the remote switch, where the remote switch is The SDN controller is determined according to the target IP address.
- the step further includes:
- the forwarding packet is a packet that is fed back according to the request packet
- the forwarding packet is forwarded according to the local ARP table.
- the step further includes:
- the forwarded packet is forwarded according to the remote ARP table corresponding to the forwarded packet.
- steps further include:
- the local ARP table or remote ARP table is deleted.
- the present invention has the following beneficial effects: the present invention, through the foregoing method and the terminal, directly performs local forwarding when forwarding packets, without forwarding through the SDN controller, and reducing SDN controller storage entries and reports.
- the pressure of text forwarding effectively solves the bottleneck problem of the SDN network system.
- FIG. 1 is a schematic flowchart of a method for implementing packet forwarding of an SDN Overlay network according to an embodiment of the present invention.
- FIG. 2 is another schematic flowchart of a method for implementing packet forwarding of an SDN Overlay network according to an embodiment of the present invention.
- FIG. 3 is a functional block diagram of a terminal according to an embodiment of the present invention.
- FIG. 4 is another functional block diagram of a terminal according to an embodiment of the present invention.
- FIG. 5 is another functional block diagram of a terminal according to an embodiment of the present invention.
- FIG. 6 is another functional block diagram of a terminal according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a local switch according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a system structure for implementing packet forwarding of an SDN Overlay network according to an embodiment of the present invention.
- an embodiment of the present invention provides an implementation of an SDN (Software Defined Network,
- SDN SDN
- SDN Overlay network packet forwarding method
- Step S1 The user sends a request packet to the local switch through the cloud network.
- the request packet mainly carries the destination IP address of the request packet, and the request packet is accurately sent to the target switch by using the destination IP address.
- Step S2 If the local switch receives the request packet from the network, determine the local address resolution.
- the MAC address corresponding to the destination IP address of the request packet exists in the protocol, ARP table.
- the local ARP table is the ARP table in the local switch.
- the local controller on the local switch acquires the genus from the local switch.
- the local switch After the local switch receives the request packet, the local switch uploads the request packet to the local controller on the local switch, and the local controller on the local switch determines whether the local ARP table is used according to the local ARP table. There is a MAC address corresponding to the destination IP address of the request message.
- step S3 if the local switch determines that the local ARP table has a MAC address corresponding to the destination IP address of the request packet, the ARP response is performed, and step S4 is performed; otherwise, step S7 is performed.
- the local controller on the local switch searches for the corresponding MAC address in the local ARP table according to the destination IP address of the request packet. Specifically, the local ARP table on the local switch records the switch. Correspondence between the IP address and the MAC address. Therefore, once the local controller on the local switch queries the MAC address corresponding to the destination IP address of the request packet on the local ARP table, the ARP response can be directly performed without Uploading the request message to the SDN controller can reduce the pressure on the SDN controller to store entries.
- Step S4 The local controller on the local switch acquires the forwarding packet of the local switch, and the forwarding packet is a packet that is fed back according to the request packet.
- the local switch after the local switch completes the ARP response, the local switch generates a forwarding packet according to the request packet to complete the packet forwarding process. Specifically, after the local switch generates the forwarding packet, the local switch locally The local controller on the switch obtains the forwarding packet and forwards the packet based on the mapping between the IP address and the MAC address on the local ARP table.
- step S5 the local controller on the local switch determines whether the destination MAC address of the forwarded packet is the gateway MAC address.
- the local controller on the local switch forwards the forwarded packet.
- the destination MAC address of the forwarded packet is a gateway MAC address to determine whether the forwarded packet should be forwarded by Layer 2 or Layer 3.
- step S6 if the destination MAC address of the forwarding packet is not the gateway MAC address, the forwarding packet is forwarded according to the local ARP table.
- the address is used to determine the forwarding of the packet.
- the local controller on the local switch can process the Layer 2 forwarding function independently according to the local ARP table and the data stream entry. The forwarding pressure of the SDN controller is reduced, and the reliability of the SDN network is improved.
- Step S7 If the local switch determines that the local ARP table does not have a MAC address corresponding to the destination IP address of the request packet, the local switch sends a request packet to the SDN controller.
- Step S8 The SDN controller queries the local controller on the corresponding remote switch according to the destination IP address of the request packet, and controls the local controller on the remote switch to send a remote ARP table to the local controller on the local switch.
- the remote ARP table is an ARP table in the remote switch, and the remote switch is determined by the SDN controller according to the target IP address of the request packet.
- Step S9 If the local switch receives the remote ARP table, performs an ARP response according to the MAC address corresponding to the destination IP address of the request packet according to the remote ARP table.
- the local controller on the local switch receives the ARP table from the local controller on the remote switch, and uses this table as the remote ARP table for ARP reply.
- Step S10 The local controller on the local switch acquires the forwarding packet of the local switch.
- Step S11 The local controller on the local switch determines whether the destination MAC address of the forwarded packet is a gateway MAC address.
- Step S12 If the destination MAC address of the forwarded packet is a gateway MAC address, forward the forwarded packet according to the remote ARP table corresponding to the forwarded packet.
- the destination MAC address of the forwarded packet is a gateway MAC address, to determine that the forwarded packet is forwarded by the third layer.
- the forwarding packet is uploaded to the SDN controller, and the SDN controller notifies the local controller on the local switch to switch according to the corresponding relationship of the remote ARP table.
- the SDN controller controls the local controller to complete the forwarding of forwarding packets.
- the local controller shares the SDN controller.
- Forwarding pressure can improve the processing performance of the SDN controller.
- Step S13 after completing the packet forwarding, the local controller on the local switch will automatically delete the local controller.
- ARP table or remote ARP table.
- the present invention has the beneficial effects that: when the packet is forwarded, the local forwarding is performed directly, and the SDN controller does not need to forward the SDN controller, thereby reducing the storage entry of the SDN controller and the pressure of packet forwarding. Effectively solve the bottleneck problem of the SDN network system.
- the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM) or Random Access Memory (RAM).
- the method for forwarding the packet in the Overlay network may further include the following steps:
- Step S14 If the SDN controller receives the request message, the SDN controller determines the corresponding remote switch according to the destination IP address of the request message.
- step S15 the SDN controller sends a remote command to the determined remote switch to control the remote switch to send the remote.
- the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM) or Random Access Memory (RAM).
- the present invention further provides a terminal, and the terminal includes: a first determining module 010, a control module 020, a response module 030, and an automatic deletion module 040.
- the first determining module 010 is configured to: if the local switch receives the request packet from the network, determine whether the local ARP table has a MAC address corresponding to the destination IP address of the request packet, where the local ARP table is ARP table in the local switch.
- the control module 020 is configured to: if not present, control the local switch to send the request message to the SDN controller.
- the answering module 030 is configured to: when the local switch receives the remote ARP table, perform an ARP response according to the MAC address corresponding to the destination IP address of the request packet according to the remote ARP table; the remote ARP table is an ARP in the remote switch.
- the remote switch is determined by the SDN controller according to the target IP address.
- the automatic deletion module 040 is configured to automatically delete the local ARP table or the remote ARP table after the packet forwarding is completed.
- the terminal further includes: the first obtaining module 050, the second determining The module 060, the sending module 070, and the first forwarding module 080.
- the first obtaining module 050 is configured to obtain a forwarding packet, where the forwarding packet is a packet that is fed back according to the request packet.
- the second determining module 060 is configured to determine whether the destination MAC address of the forwarded packet is a gateway MAC address.
- the first forwarding module 070 is configured to: if the destination MAC address of the forwarded packet is not a gateway MAC address
- the address is forwarded according to the local ARP table.
- the terminal further includes: a second acquiring module. 080.
- the second obtaining module 080 is configured to obtain a forwarding packet.
- the third determining module 090 is configured to determine whether the destination MAC address of the forwarded packet is a gateway MAC address.
- the second forwarding module 011 is configured to forward the forwarded packet according to the remote ARP table corresponding to the forwarded packet if the destination MAC address of the forwarded packet is a gateway MAC address.
- the above first determining module 010, the control module 020, the answering module 030, the automatic deleting module 040, and the like may be embedded in the hardware processing device or in the hardware processing device, or may be stored in the data processing device in software.
- the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
- a terminal of the present invention may further include:
- the determining module 012 is configured to: if the SDN controller receives the request message, the SDN controller determines the corresponding remote switch according to the destination IP address of the request message.
- the sending module 013 is configured to send, by the SDN controller, a remote command to the determined remote switch to control the remote switch to send the remote.
- the above determining module 012 and the sending module 013 may be embedded in or independent of the data processing device in hardware, or may be stored in the memory of the data processing device in software, so that the processor calls to execute the above.
- the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
- FIG. 7 is a schematic structural diagram of a local switch according to the present invention.
- the local exchange 200 can include an input device 201, an output device 202, a transceiver 203, a memory 204, and a processor 205, where:
- the input device 201 is configured to receive data input by an external access control device.
- the input device 201 in the embodiment of the present invention may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
- the output device 202 is configured to output input data of the access control device to the outside.
- the output device 202 in the embodiment of the present invention may include a display, a speaker, a printer, and the like.
- the transceiver device 203 is configured to receive the input request data and send the received request data to the SDN controller.
- the transceiver device 203 of the embodiment of the present invention may include a transceiver device such as a radio frequency antenna.
- the memory 204 is configured to store a message forwarding program and data.
- the memory 204 of the embodiment of the present invention may be a system memory such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of the two.
- the memory 204 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
- the processor 205 is configured to run a message forwarding program stored in the memory 204, and perform the following operations:
- ARP Address Resolution The protocol
- the ARP response is performed according to the MAC address corresponding to the destination IP address of the request packet, and the remote ARP table is an ARP table in the remote switch, where the remote switch is The SDN controller is determined according to the target IP address.
- the processor 205 further performs the following operations:
- the forwarding packet is a packet that is fed back according to the request packet
- the forwarding packet is forwarded according to the local ARP table.
- the processor After performing the ARP response according to the MAC address corresponding to the destination IP address of the request packet, the processor further performs the following operations:
- the forwarded packet is forwarded according to the remote ARP table corresponding to the forwarded packet.
- processor further performs the following operations:
- the local ARP table or remote ARP table is deleted.
- the local switch embodiment shown in FIG. 7 does not constitute a specific configuration of the local switch.
- the local switch may include more or less components than illustrated, or Combine some components, or different component arrangements.
- the local switch may include only the memory and the processor. In such an embodiment, the structure and functions of the memory and the processor are the same as those of the embodiment shown in FIG. 7, and details are not described herein again.
- FIG. 8 is an implementation SDN of the present invention Schematic diagram of the structure of the system for overlay network packet forwarding.
- the system 300 can include a local exchange 301, and an SDN controller 302 that can perform data interaction with the local exchange 301, the local exchange 301 including a memory 303 and a processor 304, wherein:
- the memory 304 is configured to store a message forwarding program and data.
- the memory 304 of the embodiment of the present invention may be a system memory such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of the two.
- the memory 304 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
- the processor 305 runs a message forwarding program stored in the memory and performs the following operations:
- ARP Address Resolution The protocol
- the ARP response is performed according to the MAC address corresponding to the destination IP address of the request packet, and the remote ARP table is an ARP table in the remote switch, where the remote switch is The SDN controller is determined according to the target IP address.
- the present invention provides a computer readable storage medium having stored one or more programs that can be executed by one or more processors to control a local switch to complete the following step:
- ARP Address Resolution The protocol
- the ARP response is performed according to the MAC address corresponding to the destination IP address of the request packet, and the remote ARP table is an ARP table in the remote switch, where the remote switch is The SDN controller is determined according to the target IP address.
- the step further includes:
- the forwarding packet is a packet that is fed back according to the request packet
- the forwarding packet is forwarded according to the local ARP table.
- the step further includes:
- the forwarded packet is forwarded according to the remote ARP table corresponding to the forwarded packet.
- steps further include:
- the local ARP table or remote ARP table is deleted.
- the foregoing storage medium of the present invention includes: a magnetic disk, an optical disk, and a read-only storage memory (Read-Only) Memory, ROM) or random access memory (RAM), etc., which can store various program codes.
- ROM read-only storage memory
- RAM random access memory
- the units in all embodiments of the present invention may be implemented by a general-purpose integrated circuit such as a CPU (Central Processing) Unit, central processing unit, or implemented by an ASIC (Application Specific Integrated Circuit).
- a general-purpose integrated circuit such as a CPU (Central Processing) Unit, central processing unit, or implemented by an ASIC (Application Specific Integrated Circuit).
- the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例公开了一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质,其中,所述方法包括:若本地交换机接收到来自网络上的请求报文,判断本地ARP表是否存在与请求报文的目的IP地址对应的MAC地址;若不存在,控制本地交换机发送请求报文至SDN控制器;若本地交换机接收到远程ARP表,根据远程ARP表与请求报文的目的IP地址对应的MAC地址进行ARP应答。本发明当进行报文的转发时,直接进行本地转发,无需通过SDN控制器进行转发,减少SDN控制器存储表项以及报文转发的压力,有效解决了SDN网络系统的瓶颈问题。
Description
技术领域
本发明涉及通信技术领域,尤其涉及一种实现SDN
Overlay网络报文转发的方法、终端、设备及计算机可读存储介质。
背景技术
在现有的SDN(Software Defined Network,SDN
)Overlay网络中,报文的转发逻辑都需要通过SDN控制器集中控制。不管是服务器之间,还是服务器与因特网之间的报文转发都需要通过SDN控制器的转发逻辑进行。当SDN网络中的转发资源数量庞大时,SDN控制器中存储的转发表项和报文转发所依赖的汇报机制也将会成为SDN网络系统的瓶颈。
发明内容
有鉴于此,实有必要本发明实施例提供一种实现SDN
Overlay网络报文转发的方法、终端、设备及计算机可读存储介质,当进行报文的转发时,直接进行本地转发,无需通过SDN控制器进行转发,减少SDN控制器存储表项以及报文转发的压力,有效解决了SDN网络系统的瓶颈问题。
一种实现SDN Overlay网络报文转发的方法,所述方法包括:
若本地交换机接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution
Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;
若不存在,控制所述本地交换机发送所述请求报文至SDN控制器;
若本地交换机接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
进一步地,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,还包括:获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所
述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
进一步地,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的
MAC地址进行ARP应答后,还包括:获取转发报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
进一步地,所述方法还包括:当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
一种实现SDN
Overlay网络报文转发的方法,所述方法包括:若SDN控制器接收到请求报文,所述SDN控制器根据所述请求报文的目的IP地址确定相应的远程交换机;所述SDN控制器发送远程指令给所述确定的远程交换机以控制所述远程交换机发送远程。
一种终端,所述终端包括:
第一判断模块,用于若本地交换机接收到来自网络上的请求报文,判断本地ARP表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;
控制模块,用于若不存在,控制所述本地交换机发送所述请求报文至SDN控制器;
应答模块,用于若本地交换机接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
进一步地,所述终端还包括:第一获取模块,用于获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;第二判断模块,用于判断所述转发报文的目的MAC地址是否为网关MAC地址;第一转发模块,用于若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
进一步地,所述终端还包括:第二获取模块,用于获取转发报文;第三判断模块,用于判断所述转发报文的目的MAC地址是否为网关MAC地址;第二转发模块,用于若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
进一步地,所述终端还包括:自动删除模块,用于当完成报文转发后,所述本地控制器将自动删除所述本地ARP表或远程ARP表。
一种终端,所述终端包括:确定模块,用于若SDN控制器接收到请求报文,所述SDN控制器根据所述请求报文的目的IP地址确定相应的远程交换机;发送模块,用于所述SDN控制器发送远程指令给所述确定的远程交换机以控制所述远程交换机发送远程。
一种本地交换机,所述本地交换机包括:收发装置、存储器以及处理器;
收发装置,用于接收输入的请求数据以及发送所接收的请求数据至SDN控制器;
存储器,用于存储报文转发程序和数据;
处理器,用于运行所述存储器中存储的报文转发程序,以执行如下操作:
若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution
Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;
若不存在,发送所述请求报文至SDN控制器;
若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
进一步地,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,所述处理器还执行如下操作:
获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
进一步地,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答后,所述处理器还执行如下操作:
获取转发报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
进一步地,所述处理器还执行如下操作:
当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
一种实现SDN
Overlay网络报文转发的系统,所述系统包括:本地交换机及可与所述本地交换机进行数据交互的SDN控制器,所述本地交换机包括存储器及处理器,所述存储器用于存储报文转发程序和数据,所述处理器用于运行所述存储器中存储的报文转发程序,以执行如下操作;
若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution
Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为所述本地交换机中的ARP表;
若不存在,发送 所述请求报文至SDN控制器;
若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器用来执行,以控制本地交换机完成以下步骤:
若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution
Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;
若不存在,发送所述请求报文至SDN控制器;
若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
进一步地,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,所述步骤还包括:
获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
进一步地,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答后,所述步骤还包括:
获取转发报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
进一步地,所述步骤还包括:
当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
综上所述,本发明具有以下有益效果:本发明通过上述方法和终端,当进行报文的转发时,直接进行本地转发,无需通过SDN控制器进行转发,减少SDN控制器存储表项以及报文转发的压力,有效解决了SDN网络系统的瓶颈问题。
附图说明
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种实现SDN Overlay网络报文转发的方法的示意流程图。
图2为本发明实施例提供的一种实现SDN Overlay网络报文转发的方法的另一示意流程图。
图3为本发明实施例提供的一种终端的功能框图。
图4为本发明实施例提供的一种终端的另一功能框图。
图5为本发明实施例提供的一种终端的另一功能框图。
图6为本发明实施例提供的一种终端的另一功能框图。
图7为本发明实施例提供的一种本地交换机的结构组成示意图。
图8为本发明实施例提供的一种实现SDN Overlay网络报文转发的系统结构组成示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
如图1所示,本发明实施例提供一种实现SDN(Software Defined Network,
SDN )Overlay网络报文转发的方法,该方法包括以下步骤:
步骤S1,用户通过云网络向本地交换机发送请求报文;
具体的,在本步骤中,所述请求报文主要携带有请求报文的目的IP地址,通过该目的IP地址可使所述请求报文准确的发送至目标交换机。
步骤S2,若本地交换机接收到来自网络上的请求报文,判断本地地址解析
协议(Address Resolution
Protocol,ARP)表是否存在与请求报文的目的IP地址对应的MAC地址,本地ARP表为本地交换机中的ARP表。
具体的,在本步骤中,本地交换机上的本地控制器将从本地交换机获取属
于该本地交换机的本地ARP表,当本地交换机接收到请求报文后,会将该请求报文上传至该本地交换机上的本地控制器,由本地交换机上的本地控制器根据本地ARP表判断是否存在与所述请求报文的目的IP地址对应的MAC地址。
步骤S3,若本地交换机判断本地ARP表存在与请求报文的目的IP地址对应的MAC地址,则进行ARP应答,并执行步骤S4;否则,执行步骤S7。
具体的,在本步骤中,由本地交换机上的本地控制器根据请求报文的目的IP地址查询本地ARP表中存在对应的MAC地址,准确的说,由于本地交换机上的本地ARP表记录着交换机的IP地址和MAC地址的对应关系,因此,一旦本地交换机上的本地控制器在本地ARP表上查询到与请求报文的目的IP地址对应的MAC地址时,便可直接进行ARP应答,而不必将请求报文上传至SDN控制器,可以减少SDN控制器存储表项的压力。
步骤S4,本地交换机上的本地控制器获取本地交换机的转发报文,转发报文为根据请求报文进行反馈的报文。
具体的,在本步骤中,在本地交换机进行完ARP应答之后,本地交换机根据请求报文生成转发报文,以完成报文的转发过程;准确的说,当本地交换机生成转发报文后,本地交换机上的本地控制器会获取该转发报文,并根据本地ARP表上的IP地址和MAC地址的对应关系进行转发。
步骤S5,本地交换机上的本地控制器判断转发报文的目的MAC地址是否为网关MAC地址。
具体的,在本步骤中,本地交换机上的本地控制器在进行转发报文的转发
过程中,还需判断所述转发报文的目的MAC地址是否为网关MAC地址以确定转发报文应进行二层转发还是三层转发。
步骤S6,若转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
具体的,在本步骤中,判断所述转发报文的目的MAC地址不为网关MAC
地址,以确定转发报文进行二层转发;需要说明的是,只需本地交换机上的本地控制器根据本地ARP表配合所下发的数据流条目即可独立处理二层转发的功能,从而大大降低了SDN控制器的转发压力,提高SDN网络的可靠性。
步骤S7,若本地交换机判断本地ARP表不存在与请求报文的目的IP地址对应的MAC地址,本地交换机发送请求报文至SDN控制器。
步骤S8,SDN控制器根据请求报文的目的IP地址查询对应的远程交换机上的本地控制器,并控制远程交换机上的本地控制器向本地交换机上的本地控制器发送远程ARP表。
具体的,在本步骤中,所述远程ARP表为远程交换机中的ARP表,所述远程交换机为SDN控制器根据请求报文的目标IP地址确定的。
步骤S9,若本地交换机接收到远程ARP表,根据远程ARP表与请求报文的目的IP地址对应的MAC地址进行ARP应答。
具体的,在本步骤中,本地交换机上的本地控制器会接收到来自远程交换机上的本地控制器的ARP表,并将此表作为远程ARP表进行ARP应答。
步骤S10,本地交换机上的本地控制器获取本地交换机的转发报文。
步骤S11,本地交换机上的本地控制器判断所述转发报文的目的MAC地址是否为网关MAC地址。
步骤S12,若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
具体的,在本步骤中,判断所述转发报文的目的MAC地址为网关MAC地址,以确定转发报文进行三层转发;需要说明的是,当本地交换机上的本地控制器发现转发报文需要进行三层转发时,将转发报文上传至SDN控制器,并由SDN控制器通知本地交换机上的本地控制器根据远程ARP表的对应关系进行转
发报文的转发。在三层转发的过程中,通过SDN控制器控制本地控制器完成转发报文的转发功能,实现在三层转发的过程中,本地控制器为SDN控制器分担
转发压力,可以提升SDN控制器的处理报文性能。
步骤S13,当完成报文转发后,本地交换机上的本地控制器将自动删除本地
ARP表或远程ARP表。
相比现有技术,本发明的有益效果在于:本发明当进行报文的转发时,直接进行本地转发,无需通过SDN控制器进行转发,减少SDN控制器存储表项以及报文转发的压力,有效解决了SDN网络系统的瓶颈问题。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only
Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
请参阅图2,对应上述SDN控制器,本发明一种实现SDN
Overlay网络报文转发的方法,其还可以包括以下步骤:
步骤S14,若SDN控制器接收到请求报文,SDN控制器根据请求报文的目的IP地址确定相应的远程交换机。
步骤S15,SDN控制器发送远程指令给确定的远程交换机以控制远程交换机发送远程。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only
Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
如图3所示,对应上述实现SDN
Overlay网络报文转发的方法,本发明还提出一种终端,该终端包括:第一判断模块010、控制模块020、应答模块030和自动删除模块040。
第一判断模块010,用于若本地交换机接收到来自网络上的请求报文,判断所述本地ARP表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表。
控制模块020,用于若不存在,控制所述本地交换机发送所述请求报文至SDN控制器。
应答模块030,用于若本地交换机接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
自动删除模块040,用于当完成报文转发后,所述本地控制器将自动删除所述本地ARP表或远程ARP表。
具体的,如图4所示,当本地交换机判断本地ARP表存在与请求报文的目的IP地址对应的MAC地址,进行ARP应答后,所述终端还包括:第一获取模块050、第二判断模块060、下发模块070和第一转发模块080。
第一获取模块050,用于获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文。
第二判断模块060,用于判断所述转发报文的目的MAC地址是否为网关MAC地址。
第一转发模块070,用于若所述转发报文的目的MAC地址不为网关MAC
地址,根据所述本地ARP表转发所述转发报文。
具体的,如图5所示,当本地交换机接收到远程ARP表,根据远程ARP表与请求报文的目的IP地址对应的MAC地址,进行ARP应答后,所述终端还包括:第二获取模块080、第三判断模块090和第二转发模块011。
第二获取模块080,用于获取转发报文。
第三判断模块090,用于判断所述转发报文的目的MAC地址是否为网关MAC地址。
第二转发模块011,用于若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
在硬件实现上,以上第一判断模块010、控制模块020、应答模块030和自动删除模块040等可以以硬件形式内嵌于或独立于数据处理装置中,也可以以软件形式存储于数据处理装置的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。
请参阅图6,本发明一种终端,其还可以包括:
确定模块012,用于若SDN控制器接收到请求报文,所述SDN控制器根据所述请求报文的目的IP地址确定相应的远程交换机。
发送模块013,用于所述SDN控制器发送远程指令给所述确定的远程交换机以控制所述远程交换机发送远程。
在硬件实现上,以上确定模块012、发送模块013可以以硬件形式内嵌于或独立于数据处理装置中,也可以以软件形式存储于数据处理装置的存储器中,以便于处理器调用执行以上各个单元对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。
图7为本发明一种本地交换机的结构组成示意图。如图7所示,该本地交换机200可包括:输入装置201、输出装置202、收发装置203、存储器204以及处理器205,其中:
所述输入装置201,用于接收外部访问控制设备输入的数据。具体实现中,本发明实施例所述的输入装置201可包括键盘、鼠标、光电输入装置、声音输入装置、触摸式输入装置、扫描仪等。
所述输出装置202,用于对外输出访问控制设备的输入数据。具体实现中,本发明实施例所述的输出装置202可包括显示器、扬声器、打印机等。
所述收发装置203,用于接收输入的请求数据以及发送所接收的请求数据至SDN控制器。具体实现中,本发明实施例的收发装置203可包括射频天线等收发器件。
所述存储器204,用于存储报文转发程序和数据。具体实现中,本发明实施例的存储器204可以是系统存储器,比如,挥发性的(诸如RAM),非易失性的(诸如ROM,闪存等),或者两者的结合。具体实现中,本发明实施例的存储器204还可以是系统之外的外部存储器,比如,磁盘、光盘、磁带等。
所述处理器205,用于运行所述存储器204中存储的报文转发程序,并执行如下操作:
若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution
Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;
若不存在,发送所述请求报文至SDN控制器;
若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
进一步地,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,所述处理器205还执行如下操作:
获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
进一步地,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答后,所述处理器还执行如下操作:
获取转发报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
进一步地,所述处理器还执行如下操作:
当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
本领域技术人员可以理解,图7中示出的本地交换机实施例并不构成对本地交换机具体构成的限定,在其他实施例中,本地交换机可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,本地交换机可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图7所示实施例一致,在此不再赘述。
图8为本发明一种实现SDN
Overlay网络报文转发的系统的结构组成示意图。如图8所示,该系统300可包括:本地交换机301,以及可与所述本地交换机301进行数据交互的SDN控制器302,所述本地交换机301包括存储器303及处理器304,其中:
所述存储器304,用于存储报文转发程序和数据。具体实现中,本发明实施例的存储器304可以是系统存储器,比如,挥发性的(诸如RAM),非易失性的(诸如ROM,闪存等),或者两者的结合。具体实现中,本发明实施例的存储器304还可以是系统之外的外部存储器,比如,磁盘、光盘、磁带等。
所述处理器305,运行所述存储器中存储的报文转发程序,并执行如下操作:
若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution
Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为所述本地交换机中的ARP表;
若不存在,发送 所述请求报文至SDN控制器;
若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
本发明提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器用来执行,以控制本地交换机完成以下步骤:
若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution
Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;
若不存在,发送所述请求报文至SDN控制器;
若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
进一步地,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,所述步骤还包括:
获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
进一步地,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答后,所述步骤还包括:
获取转发报文;
判断所述转发报文的目的MAC地址是否为网关MAC地址;
若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
进一步地,所述步骤还包括:
当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
本发明前述的存储介质包括:磁碟、光盘、只读存储记忆体(Read-Only
Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等各种可以存储程序代码的介质。
本发明所有实施例中的单元可以通过通用集成电路,例如CPU(Central Processing
Unit,中央处理器),或通过ASIC (Application Specific Integrated Circuit,专用集成电路)来实现。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。
以上所述,为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。
Claims (19)
- 一种实现SDN Overlay网络报文转发的方法,其特征在于,所述方法包括:若本地交换机接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;若不存在,控制所述本地交换机发送所述请求报文至SDN控制器;若本地交换机接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
- 根据权利要求1所述的方法,其特征在于,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,还包括:获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
- 根据权利要求1所述的方法,其特征在于,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答后,还包括:获取转发报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
- 一种实现SDN Overlay网络报文转发的方法,其特征在于,所述方法包括:若SDN控制器接收到请求报文,所述SDN控制器根据所述请求报文的目的IP地址确定相应的远程交换机;所述SDN控制器发送远程指令给所述确定的远程交换机以控制所述远程交换机发送远程。
- 一种终端,其特征在于,所述终端包括:第一判断模块,用于若本地交换机接收到来自网络上的请求报文,判断本地ARP表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;控制模块,用于若不存在,控制所述本地交换机发送所述请求报文至SDN控制器;应答模块,用于若本地交换机接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
- 如权利要求6所述的终端,其特征在于,所述终端还包括:第一获取模块,用于获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;第二判断模块,用于判断所述转发报文的目的MAC地址是否为网关MAC地址;第一转发模块,用于若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
- 根据权利要求6所述的终端,其特征在于,所述终端还包括:第二获取模块,用于获取转发报文;第三判断模块,用于判断所述转发报文的目的MAC地址是否为网关MAC地址;第二转发模块,用于若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
- 根据权利要求6所述的终端,其特征在于,所述终端还包括:自动删除模块,用于当完成报文转发后,所述本地控制器将自动删除所述本地ARP表或远程ARP表。
- 一种终端,其特征在于,所述终端包括:确定模块,用于若SDN控制器接收到请求报文,所述SDN控制器根据所述请求报文的目的IP地址确定相应的远程交换机;发送模块,用于所述SDN控制器发送远程指令给所述确定的远程交换机以控制所述远程交换机发送远程。
- 一种本地交换机,其特征在于,所述本地交换机包括:收发装置、存储器以及处理器;收发装置,用于接收输入的请求数据以及发送所接收的请求数据至SDN控制器;存储器,用于存储报文转发程序和数据;处理器,用于运行所述存储器中存储的报文转发程序,以执行如下操作:若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为所述本地交换机中的ARP表;若不存在,发送所述请求报文至SDN控制器;若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
- 如权利要求11所述的本地交换机,其特征在于,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,所述处理器还执行如下操作:获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
- 如权利要求11所述的本地交换机,其特征在于,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答后,所述处理器还执行如下操作:获取转发报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
- 如权利要求11所述的本地交换机,其特征在于,所述处理器还执行如下操作:当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
- 一种实现SDN Overlay网络报文转发的系统,其特征在于,所述系统包括:本地交换机及可与所述本地交换机进行数据交互的SDN控制器,所述本地交换机包括存储器及处理器,所述存储器用于存储报文转发程序和数据,所述处理器用于运行所述存储器中存储的报文转发程序,以执行如下操作:若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为所述本地交换机中的ARP表;若不存在,发送 所述请求报文至SDN控制器;若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
- 一种计算机可读存储介质,其特征在于,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,以控制本地交换机完成以下步骤:若接收到来自网络上的请求报文,判断本地地址解析协议(Address Resolution Protocol,ARP)表是否存在与所述请求报文的目的IP地址对应的MAC地址,所述本地ARP表为本地交换机中的ARP表;若不存在,发送所述请求报文至SDN控制器;若接收到远程ARP表,根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答;所述远程ARP表为远程交换机中的ARP表,所述远程交换机为所述SDN控制器根据所述目标IP地址确定的。
- 如权利要求16所述的计算机可读存储介质,其特征在于,若所述本地ARP表存在与所述请求报文的目的IP地址对应的MAC地址后,所述步骤还包括:获取转发报文,所述转发报文为根据所述请求报文进行反馈的报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所述转发报文的目的MAC地址不为网关MAC地址,根据所述本地ARP表转发所述转发报文。
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据所述远程ARP表与所述请求报文的目的IP地址对应的MAC地址进行ARP应答后,所述步骤还包括:获取转发报文;判断所述转发报文的目的MAC地址是否为网关MAC地址;若所述转发报文的目的MAC地址为网关MAC地址,根据与所述转发报文对应的远程ARP表转发所述转发报文。
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述步骤还包括:当完成报文转发后,将自动删除所述本地ARP表或远程ARP表。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610512355.8A CN106453672A (zh) | 2016-06-30 | 2016-06-30 | 一种实现SDN Overlay网络报文转发的方法及终端 |
CN201610512355.8 | 2016-06-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018000856A1 true WO2018000856A1 (zh) | 2018-01-04 |
Family
ID=58183888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/076516 WO2018000856A1 (zh) | 2016-06-30 | 2017-03-14 | 一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106453672A (zh) |
WO (1) | WO2018000856A1 (zh) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108306888A (zh) * | 2018-02-05 | 2018-07-20 | 刘昱 | 一种基于sdn的网络防护方法、装置及存储介质 |
CN114124690A (zh) * | 2021-08-30 | 2022-03-01 | 济南浪潮数据技术有限公司 | 一种数据中心的告警配置方法、系统及相关装置 |
CN114285818A (zh) * | 2021-12-16 | 2022-04-05 | 江西电力职业技术学院 | 终端设备的定位方法、装置及终端设备 |
CN114465798A (zh) * | 2022-02-10 | 2022-05-10 | 深圳市共进电子股份有限公司 | 一种报文过滤方法、网关设备及存储介质 |
CN118450534A (zh) * | 2023-11-20 | 2024-08-06 | 荣耀终端有限公司 | 通信方法及电子设备 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453672A (zh) * | 2016-06-30 | 2017-02-22 | 平安科技(深圳)有限公司 | 一种实现SDN Overlay网络报文转发的方法及终端 |
CN107404546B (zh) * | 2017-08-07 | 2022-10-14 | 刘昱 | 一种sdn网络内的通信方法及装置 |
CN110224942B (zh) * | 2018-03-01 | 2023-08-04 | 中兴通讯股份有限公司 | 一种报文处理方法、装置及存储介质 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938794A (zh) * | 2012-11-14 | 2013-02-20 | 华为技术有限公司 | 地址解析协议arp消息转发方法、交换机和控制器 |
CN103905577A (zh) * | 2012-12-28 | 2014-07-02 | 中兴通讯股份有限公司 | 一种地址解析协议报文的处理方法和系统 |
CN106453672A (zh) * | 2016-06-30 | 2017-02-22 | 平安科技(深圳)有限公司 | 一种实现SDN Overlay网络报文转发的方法及终端 |
-
2016
- 2016-06-30 CN CN201610512355.8A patent/CN106453672A/zh active Pending
-
2017
- 2017-03-14 WO PCT/CN2017/076516 patent/WO2018000856A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938794A (zh) * | 2012-11-14 | 2013-02-20 | 华为技术有限公司 | 地址解析协议arp消息转发方法、交换机和控制器 |
CN103905577A (zh) * | 2012-12-28 | 2014-07-02 | 中兴通讯股份有限公司 | 一种地址解析协议报文的处理方法和系统 |
CN106453672A (zh) * | 2016-06-30 | 2017-02-22 | 平安科技(深圳)有限公司 | 一种实现SDN Overlay网络报文转发的方法及终端 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108306888A (zh) * | 2018-02-05 | 2018-07-20 | 刘昱 | 一种基于sdn的网络防护方法、装置及存储介质 |
CN108306888B (zh) * | 2018-02-05 | 2022-05-27 | 刘昱 | 一种基于sdn的网络防护方法、装置及存储介质 |
CN114124690A (zh) * | 2021-08-30 | 2022-03-01 | 济南浪潮数据技术有限公司 | 一种数据中心的告警配置方法、系统及相关装置 |
CN114285818A (zh) * | 2021-12-16 | 2022-04-05 | 江西电力职业技术学院 | 终端设备的定位方法、装置及终端设备 |
CN114465798A (zh) * | 2022-02-10 | 2022-05-10 | 深圳市共进电子股份有限公司 | 一种报文过滤方法、网关设备及存储介质 |
CN114465798B (zh) * | 2022-02-10 | 2024-03-19 | 深圳市共进电子股份有限公司 | 一种报文过滤方法、网关设备及存储介质 |
CN118450534A (zh) * | 2023-11-20 | 2024-08-06 | 荣耀终端有限公司 | 通信方法及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN106453672A (zh) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018000856A1 (zh) | 一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质 | |
WO2019019374A1 (zh) | 智能语音设备控制家电的方法、装置及系统 | |
WO2017201899A1 (zh) | 连接蓝牙设备的方法及装置 | |
WO2014186986A1 (zh) | 流转发方法、设备及系统 | |
WO2018028135A1 (zh) | 一种下行数据的信息反馈方法及相关设备 | |
WO2018082482A1 (zh) | 一种网络共享方法、接入网络方法及系统 | |
WO2019051890A1 (zh) | 终端控制方法、装置及计算机可读存储介质 | |
WO2015139232A1 (zh) | 一种应用的推荐方法、系统及服务器 | |
WO2018058919A1 (zh) | 标识信息生成方法、装置、设备和计算机可读存储介质 | |
WO2019114269A1 (zh) | 一种节目续播方法、电视设备及计算机可读存储介质 | |
WO2018233367A1 (zh) | 立案方法、装置、终端和计算机可读存储介质 | |
WO2016089009A1 (en) | Method and cloud server for managing device | |
WO2015127859A1 (en) | Sensitive text detecting method and apparatus | |
WO2019062194A1 (zh) | 家电设备及其控制方法、系统及计算机可读存储介质 | |
WO2012165794A2 (ko) | 이기종 네트워크 기반 데이터 동시 전송 서비스 시스템 및 그 방법 | |
WO2015158132A1 (zh) | 语音控制方法和系统 | |
WO2019024336A1 (zh) | 数据查询方法、装置及计算机可读存储介质 | |
WO2019071762A1 (zh) | 楼层位置定位方法、系统、服务器和计算机可读存储介质 | |
WO2017185480A1 (zh) | 多屏互动连接方法、装置及系统 | |
WO2019037395A1 (zh) | 密钥管理方法、装置及可读存储介质 | |
WO2018032688A1 (zh) | 一种终端设备播放开机视频的控制方法及装置 | |
WO2017080403A1 (zh) | 投影设备控制方法、投影设备及智能终端 | |
WO2017148028A1 (zh) | 基于智能电视的远端网络连接方法和系统 | |
WO2019090966A1 (zh) | 双通道卫星导航差分数据接收方法、接收机及存储介质 | |
WO2017113596A1 (zh) | 单独听控制方法及系统、移动终端及智能电视 |
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: 17818855 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 26/04/2019) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17818855 Country of ref document: EP Kind code of ref document: A1 |