CN104717142B - Method for carrying out mobility management based on OpenFlow protocol - Google Patents
Method for carrying out mobility management based on OpenFlow protocol Download PDFInfo
- Publication number
- CN104717142B CN104717142B CN201510069728.4A CN201510069728A CN104717142B CN 104717142 B CN104717142 B CN 104717142B CN 201510069728 A CN201510069728 A CN 201510069728A CN 104717142 B CN104717142 B CN 104717142B
- Authority
- CN
- China
- Prior art keywords
- mobile node
- openflow switch
- address
- controller
- openflow
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000006870 function Effects 0.000 claims abstract description 81
- 230000006399 behavior Effects 0.000 claims abstract 2
- 238000004891 communication Methods 0.000 claims description 24
- 238000007726 management method Methods 0.000 description 25
- 239000003795 chemical substances by application Substances 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 4
- 230000008447 perception Effects 0.000 description 4
- 230000011664 signaling Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明公开了一种基于OpenFlow协议进行移动性管理的方法和装置,属于移动通信技术领域。The invention discloses a method and device for mobility management based on OpenFlow protocol, belonging to the technical field of mobile communication.
背景技术Background technique
移动IP是为了满足移动节点(MN,Mobile Node)在移动中保持其连接性而设计的。Mobile IP现在有两个版本,分别为Mobile IPv4和Mobile IPv6。Mobile IP is designed to meet the needs of mobile nodes (MN, Mobile Node) to maintain their connectivity while moving. Mobile IP now has two versions, namely Mobile IPv4 and Mobile IPv6.
软件定义网络(SDN,Software-defined networking)是一种网络虚拟化(Networkvirtualization)技术。利用OpenFlow协议,把路由器的控制平面(control plane)从数据平面(data plane)中分离出来,以软件方式实现。这个架构可以让网络管理员,在不更动硬件设备的前提下,以中央控制方式,用程序重新规划网络,为控制网络流量提供了新的方法,也提供了核心网络及应用创新的良好平台。Software-defined networking (SDN, Software-defined networking) is a network virtualization (Networkvirtualization) technology. Using the OpenFlow protocol, the router's control plane (control plane) is separated from the data plane (data plane) and implemented in software. This architecture allows network administrators to re-plan the network with programs in a central control mode without changing hardware devices, providing a new method for controlling network traffic and a good platform for core network and application innovation .
OpenFlow技术最早由斯坦福大学提出,旨在基于现有TCP/IP技术条件,以创新的网络互联理念解决当前网络面对新业务产生的种种瓶颈。OpenFlow technology was first proposed by Stanford University. It aims to solve various bottlenecks caused by the current network facing new services with innovative network interconnection concepts based on the existing TCP/IP technical conditions.
它的核心思想是将原本完全由交换机/路由器控制的数据包转发过程,转化为由OpenFlow交换机(OpenFlow Switch)和控制器(Controller)分别完成的独立过程。Its core idea is to transform the packet forwarding process originally completely controlled by the switch/router into an independent process completed by the OpenFlow switch (OpenFlow Switch) and the controller (Controller).
转变背后进行的实际上是控制权的更迭:传统网络中数据包的流向是人为指定的,虽然交换机、路由器拥有控制权,却没有数据流的概念,只进行数据包级别的交换;而在OpenFlow网络中,统一的控制服务器取代路由,决定了所有数据包在网络中传输路径。Behind the transformation is actually the change of control rights: the flow direction of data packets in traditional networks is artificially specified. Although switches and routers have control rights, they do not have the concept of data flow, and only exchange at the packet level; while in OpenFlow In the network, a unified control server replaces the routing and determines the transmission path of all data packets in the network.
OpenFlow交换机会在本地维护一个与转发表不同的流表(Flow Table),如果要转发的数据包在流表中有对应项,则直接进行快速转发;若流表中没有此项,数据包就会被发送到控制服务器进行传输路径的确认,再根据下发结果进行转发。The OpenFlow switch will maintain a local flow table (Flow Table) that is different from the forwarding table. If the packet to be forwarded has a corresponding entry in the flow table, it will be forwarded directly; if there is no entry in the flow table, the packet will be forwarded directly. It will be sent to the control server for confirmation of the transmission path, and then forwarded according to the delivery result.
OpenFlow交换机的每条流表项中都有一个优先级字段,表示流表项的匹配次序。优先级的取值范围为0~65535。数据包匹配流表时,优先匹配优先级高的流表项。所有字段通配(所有字段省略)和优先级等于0的流表项被称为table-miss流表项。Each flow entry of an OpenFlow switch has a priority field, which indicates the matching order of the flow entries. The priority value ranges from 0 to 65535. When the data packet matches the flow table, the flow table entry with the higher priority is matched first. All fields are wildcarded (all fields omitted) and a flow entry with a priority equal to 0 is called a table-miss flow entry.
在IPv4中,节点的IP地址唯一标识该节点在网络中的接入点。因此,节点必须处在它的IP地址表示的网络中,以接受发送给它的消息;否则发送给该节点的数据包不可达。为了使节点在移动中保持通信的连续性,目前有两种方法:改变接入点的同时改变其IP地址;使用基于主机的路由。通常情况下这两种方式都是不可取的。因此提出了移动IP的机制来解决这一问题。In IPv4, a node's IP address uniquely identifies the node's access point in the network. Therefore, a node must be on the network represented by its IP address in order to accept messages sent to it; otherwise packets sent to this node are unreachable. In order to make the node maintain the continuity of communication while moving, there are currently two methods: changing the access point while changing its IP address; using host-based routing. Both of these approaches are usually not advisable. Therefore, the mechanism of Mobile IP is proposed to solve this problem.
每个节点不管其在网络中的接入点,由它的家乡地址(home address)唯一标识。当离开家乡网络时,移动节点分配到一个转交地址(care-of address),表示移动节点当前在网络中的位置。移动节点向家乡代理(home agent)注册转交地址,告知其现在所处的位置。家乡代理通过隧道的方式将发送给移动节点的数据包发送到移动节点的转交地址,到达隧道的另一端后,数据包被转发给移动节点。Each node is uniquely identified by its home address regardless of its access point in the network. When leaving the home network, the mobile node is assigned a care-of address, which represents the current location of the mobile node in the network. The mobile node registers its care-of address with the home agent to inform it of its current location. The home agent sends the data packet sent to the mobile node to the care-of address of the mobile node through the tunnel. After reaching the other end of the tunnel, the data packet is forwarded to the mobile node.
代理移动IPv6(PMIP,Proxy Mobile IP)是基于网络的区域移动管理方案,不需要移动节点参与任何与IP移动相关的信令流程。网络中的移动实体会跟踪移动节点的移动并且初始化移动信令过程以及设置必需的路由状态。PMIPv6中核心实体是LMA(LocalMobility Anchor)和MAG(Mobile Access Gateway)。Proxy Mobile IPv6 (PMIP, Proxy Mobile IP) is a network-based regional mobility management solution that does not require mobile nodes to participate in any signaling process related to IP mobility. A mobile entity in the network tracks the movement of the mobile node and initiates mobility signaling procedures and sets the necessary routing states. The core entities in PMIPv6 are LMA (LocalMobility Anchor) and MAG (Mobile Access Gateway).
LMA用来维持MN的接入状态和MN的家乡网络前缀,用于维护MN家乡地址同网络的连接。MAG作为一个接入路由器位于接入链路上。MN在移动的过程中直接接入MAG,MAG检测到MN的接入或移动信息后代表MN来执行移动性管理,向LMA发送绑定注册消息。MAG对MN进行状态检测,并代表MN进行绑定消息的发送接收和绑定状态建立的过程减少了MN参与切换的信令交互,节省了无线链路的带宽,减小了对信令消息的处理时延。The LMA is used to maintain the access state of the MN and the prefix of the home network of the MN, and is used to maintain the connection between the home address of the MN and the network. The MAG acts as an access router on the access link. The MN directly accesses the MAG in the process of moving, and the MAG performs mobility management on behalf of the MN after detecting the access or moving information of the MN, and sends a binding registration message to the LMA. The MAG detects the state of the MN, and sends and receives the binding message on behalf of the MN and establishes the binding state, which reduces the signaling interaction of the MN participating in the handover, saves the bandwidth of the wireless link, and reduces the complexity of signaling messages. processing delay.
传统的移动性管理方案,多数基于隧道管理机制。移动IP中通过在家乡代理与外地代理间建立隧道,实现终端在移动过程中业务的连续性;代理移动IPv6中LMA和MAG之间通过建立双向隧道通信。由此带来了三角路由、隧道状态维护等问题。Most of the traditional mobility management solutions are based on tunnel management mechanisms. In Mobile IP, a tunnel is established between the home agent and the foreign agent, so as to realize the service continuity of the terminal in the moving process; in the agent mobile IPv6, the LMA and the MAG communicate through the establishment of a bidirectional tunnel. This brings problems such as triangular routing and tunnel state maintenance.
三角路由问题是指发向移动节点MN的数据包都要经过家乡代理或MAG的转发,加重了移动节点MN的家乡代理或MAG所在的路由器的工作量,同时使得数据包从源地址到目的地址的路由不是最佳路径;通信实体间的隧道需要定期维护状态信息,必须时还要进行拆除。The triangular routing problem means that the data packets sent to the mobile node MN must be forwarded by the home agent or MAG, which increases the workload of the mobile node MN's home agent or the router where the MAG is located, and at the same time makes the data packets from the source address to the destination address. The route is not the best path; the tunnel between communicating entities needs to maintain state information regularly and tear down when necessary.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题是提供一种利用OpenFlow协议进行移动性管理的方法,其通过控制器Controller对整个网络拓扑情况的感知,下发流表使MN和对端通信;当MN移动后,抛弃传统的隧道管理机制而采用删除已有流表,重新下发流表的方式保持MN与对端通信的连续性。The technical problem to be solved by the present invention is to provide a method for mobility management using the OpenFlow protocol, which, through the controller's perception of the topology of the entire network, issues a flow table to enable the MN to communicate with the opposite end; when the MN moves, The traditional tunnel management mechanism is abandoned and the existing flow table is deleted and the flow table is re-issued to maintain the continuity of communication between the MN and the peer.
本发明解决上述技术问题所采取的技术方案如下:The technical scheme adopted by the present invention to solve the above-mentioned technical problems is as follows:
一种基于OpenFlow协议进行移动性管理的方法,包括:A method for mobility management based on OpenFlow protocol, comprising:
步骤1)控制器Controller维护一记录有具有AP功能的多个OpenFlow交换机与其连接在每个网关的端口号的对应关系表;Step 1) Controller maintains a correspondence table that records a plurality of OpenFlow switches with AP function and the port numbers that are connected to each gateway;
步骤2)接收具有AP功能的第一OpenFlow交换机传递的包含移动节点MN的标识信息、移动节点MN附着的第一OpenFlow交换机的上报信息,所述移动节点MN的标识信息为移动节点的MAC地址和/或IP地址;Step 2) Receive the identification information of the mobile node MN and the report information of the first OpenFlow switch to which the mobile node MN is attached and transmitted by the first OpenFlow switch with the AP function, where the identification information of the mobile node MN is the mobile node's MAC address and / or IP address;
步骤3)根据所述上报信息检查所述对应关系表,并基于所述移动节点MN的标识信息、移动节点MN附着的第一OpenFlow交换机的上报信息的查询结果以执行不同的路由行为。Step 3) Check the correspondence table according to the report information, and perform different routing actions based on the identification information of the mobile node MN and the query result of the report information of the first OpenFlow switch attached to the mobile node MN.
优选的是,进一步包括:Preferably, it further includes:
通过在Vendor message中定义一字段,以保存移动节点MN的标识信息;所述Vendor message由具有AP功能的OpenFlow交换机发送给控制器Controller;或者,By defining a field in the Vendor message, the identification information of the mobile node MN is stored; the Vendor message is sent to the controller by the OpenFlow switch with AP function; or,
通过在Experimenter message中定义一字段,以保存移动节点MN的标识信息;所述Experimenter message由具有AP功能的OpenFlow交换机发送给控制器Controller。By defining a field in the Experimenter message, the identification information of the mobile node MN is stored; the Experimenter message is sent to the controller by the OpenFlow switch with the AP function.
优选的是,所述步骤3)中,具体包括:根据所述上报信息检查所述对应关系表,其中,如果对应关系表中没有移动MN的信息;Preferably, the step 3) specifically includes: checking the correspondence table according to the reported information, wherein, if there is no mobile MN information in the correspondence table;
则将其及附着的第一OpenFlow交换机记录,与此同时,控制器为移动节点所在网络的网关的其他OpenFlow交换机下发对应该移动节点的流表,使移动节点与对端的移动节点建立通信。Then record it and the attached first OpenFlow switch, and at the same time, the controller delivers the flow table corresponding to the mobile node to other OpenFlow switches of the gateway of the network where the mobile node is located, so that the mobile node can establish communication with the mobile node of the opposite end.
优选的是,步骤3)中,进一步包括:Preferably, in step 3), further comprise:
如果所述上报信息中没有移动节点的IP地址,则根据控制器的自身DHCP功能为所述移动节点MN分配IP地址,并根据移动节点MN的IP地址、具有AP功能的OpenFlow交换机与具有AP功能的OpenFlow交换机连接在每个网关的端口号的对应关系,在移动节点MN的IP地址对应的网关中添加一条到达该移动节点MN的流表。If there is no IP address of the mobile node in the reported information, assign an IP address to the mobile node MN according to the controller's own DHCP function, and allocate an IP address to the mobile node MN according to the IP address of the mobile node MN, the OpenFlow switch with AP function and the AP function The OpenFlow switch is connected to the corresponding relationship of the port numbers of each gateway, and a flow table to reach the mobile node MN is added to the gateway corresponding to the IP address of the mobile node MN.
优选的是,所述控制器Controller记录着每个网关对应的网络地址段及每个网络地址段中可分配给移动节点MN的IP地址、IP地址数目;Preferably, the controller records the network address segment corresponding to each gateway and the IP address and the number of IP addresses that can be allocated to the mobile node MN in each network address segment;
其中,当判断移动节点MN没有IP地址时,则控制器Controller从中选出可分配IP地址数目最多的网络地址段,从该网络地址段可分配给移动节点MN的IP地址选择一IP地址分配给MN并写入DHCP OFFER数据包,同时修改该网络地址段中可分配给移动节点MN的IP地址、IP地址数目;When judging that the mobile node MN does not have an IP address, the controller selects a network address segment with the largest number of assignable IP addresses, and selects an IP address from the IP addresses that can be assigned to the mobile node MN from the network address segment to assign to MN and write the DHCP OFFER data packet, and at the same time modify the IP address and the number of IP addresses that can be allocated to the mobile node MN in the network address segment;
将DHCP OFFER数据包封装在Packet_out数据包发送到具有AP功能的OpenFlow交换机,具有AP功能的OpenFlow交换机再将DHCP OFFER数据包发送给移动节点MN;The DHCP OFFER data packet is encapsulated in the Packet_out data packet and sent to the OpenFlow switch with AP function, and the OpenFlow switch with AP function then sends the DHCP OFFER data packet to the mobile node MN;
移动节点MN向具有AP功能的OpenFlow交换机发送DHCP REQUEST数据包,具有AP功能的OpenFlow交换机将DHCP REQUEST数据包封装在Packet_in数据包中发送给控制器Controller,控制器Controller将DHCP ACK数据包封装在Packet_out数据包发送到具有AP功能的OpenFlow交换机,具有AP功能的OpenFlow交换机再将DHCP ACK数据包发送给移动节点MN;此时,移动节点MN获取到IP地址。The mobile node MN sends a DHCP REQUEST packet to the OpenFlow switch with AP function, and the OpenFlow switch with AP function encapsulates the DHCP REQUEST packet in a Packet_in packet and sends it to the controller Controller, which encapsulates the DHCP ACK packet in Packet_out The data packet is sent to the OpenFlow switch with the AP function, and the OpenFlow switch with the AP function sends the DHCP ACK data packet to the mobile node MN; at this time, the mobile node MN obtains the IP address.
优选的是,步骤3)中,具体包括:根据所述上报信息检查所述对应关系表,其中,如果对应关系表中已经有该移动节点的信息;Preferably, in step 3), it specifically includes: checking the corresponding relationship table according to the reported information, wherein, if the corresponding relationship table already has the information of the mobile node;
并且,附着的OpenFlow交换机与新上报的不同,将该条记录删除,并将移动节点、新上报的OpenFlow交换机的信息作为新的记录添加到对应关系表中。In addition, if the attached OpenFlow switch is different from the newly reported one, the record is deleted, and the information of the mobile node and the newly reported OpenFlow switch is added to the correspondence table as a new record.
优选的是,进一步包括:Preferably, it further includes:
控制器Controller与其他域的控制器共同维护一张移动节点MN的标识信息、所附着的具有AP功能的OpenFlow交换机的对应关系表,其管理的网络地址段不同;The controller and the controllers of other domains jointly maintain a piece of identification information of the mobile node MN and a correspondence table of the attached OpenFlow switches with the AP function, and the network address segments managed by them are different;
所述控制器Controller根据所述移动节点的IP地址,判断所述移动节点是在跨域还是在区域内进行运动。The controller determines, according to the IP address of the mobile node, whether the mobile node is moving across domains or within an area.
优选的是,进一步包括:Preferably, it further includes:
如果检测到移动节点MN是在同一区域内移动;If it is detected that the mobile node MN is moving in the same area;
所述控制器删除掉移动节点所在网络的网关的OpenFlow交换机中对应该移动节点的流表,同时为移动节点所在网络的网关的其他OpenFlow交换机下发对应该移动节点的新流表,使移动节点与对端通信不中断。The controller deletes the flow table corresponding to the mobile node in the OpenFlow switch of the gateway of the network where the mobile node is located, and simultaneously issues a new flow table corresponding to the mobile node to other OpenFlow switches of the gateway of the network where the mobile node is located, so that the mobile node Communication with the peer end is not interrupted.
优选的是,步骤3)中,进一步包括:Preferably, in step 3), further comprise:
如果检测到移动节点MN是跨域移动,控制器删除掉移动节点所在网络的网关的OpenFlow交换机中对应该移动节点的流表;If it is detected that the mobile node MN is moving across domains, the controller deletes the flow table corresponding to the mobile node in the OpenFlow switch of the gateway of the network where the mobile node is located;
并根据新加入网络的加权值,选择一条合适的通信路径,并为路径上的所有OpenFlow交换机下个针对移动节点MN的流表,使移动节点与对端通信不中断。According to the weighted value of the newly added network, an appropriate communication path is selected, and the next flow table for the mobile node MN is set for all OpenFlow switches on the path, so that the communication between the mobile node and the opposite end is not interrupted.
优选的是,所述新加入网络的加权值因素选取每条链路的链路状态和每个OpenFlow交换机的负载。Preferably, the weighting factor of the newly added network selects the link state of each link and the load of each OpenFlow switch.
本发明采取了上述方案以后,抛弃传统的隧道管理机制,很好的解决三角路由的问题,同时避免了隧道状态维护带来的额外开销;使用SDN技术,使网络的管理更加方便灵活,且其通过对移动节点MN当前位置的感知、控制器对其所控制的网络中各个OpenFlow交换机中流表的灵活控制,可以有效地进行移动性管理。After the present invention adopts the above scheme, the traditional tunnel management mechanism is abandoned, the problem of triangular routing is well solved, and the extra overhead caused by the maintenance of the tunnel state is avoided at the same time; the use of SDN technology makes the management of the network more convenient and flexible, and its Mobility management can be effectively performed through the perception of the current location of the mobile node MN and the flexible control of the flow table in each OpenFlow switch in the network controlled by the controller.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description, claims, and drawings.
附图说明Description of drawings
下面结合附图对本发明进行详细的描述,以使得本发明的上述优点更加明确。其中,The present invention will be described in detail below with reference to the accompanying drawings, so as to make the above advantages of the present invention more clear. in,
图1是本发明一个实施例的网络拓扑图;1 is a network topology diagram of an embodiment of the present invention;
图2是本发明另一实施例的网络拓扑图。FIG. 2 is a network topology diagram of another embodiment of the present invention.
具体实施方式Detailed ways
以下将结合附图及实施例来详细说明本发明的实施方式,借此对本发明如何应用技术手段来解决技术问题,并达成技术效果的实现过程能充分理解并据以实施。需要说明的是,只要不构成冲突,本发明中的各个实施例以及各实施例中的各个特征可以相互结合,所形成的技术方案均在本发明的保护范围之内。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples, so as to fully understand and implement the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects. It should be noted that, as long as there is no conflict, each embodiment of the present invention and each feature of each embodiment can be combined with each other, and the formed technical solutions all fall within the protection scope of the present invention.
另外,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。Additionally, the steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions, and, although shown in a logical order in the flowcharts, in some cases, may be executed differently The steps shown or described are performed in the order shown herein.
具体来说,本发明一个实施例中,基于OpenFlow实现,通过控制器Controller对整个网络拓扑情况的感知,下发流表使MN和对端通信;当MN移动后,抛弃传统的隧道管理机制而采用删除已有流表,重新下发流表的方式保持MN与对端通信的连续性。Specifically, in an embodiment of the present invention, based on the implementation of OpenFlow, through the controller's perception of the entire network topology, a flow table is issued to enable the MN to communicate with the peer; when the MN moves, the traditional tunnel management mechanism is abandoned and the The continuity of communication between the MN and the peer is maintained by deleting the existing flow table and re-delivering the flow table.
具体来说,本发明的详细方案如下:Specifically, the detailed scheme of the present invention is as follows:
实施例一:Example 1:
一种基于OpenFlow协议进行移动性管理的方法,包括:A method for mobility management based on OpenFlow protocol, comprising:
步骤1)控制器Controller维护一记录有具有AP功能的多个OpenFlow交换机与其连接在每个网关的端口号的对应关系表;Step 1) Controller maintains a correspondence table that records a plurality of OpenFlow switches with AP function and the port numbers that are connected to each gateway;
步骤2)接收具有AP功能的第一OpenFlow交换机传递的包含移动节点MN的标识信息、移动节点MN附着的第一OpenFlow交换机的上报信息,所述移动节点MN的标识信息为移动节点的MAC地址和/或IP地址;Step 2) Receive the identification information of the mobile node MN and the report information of the first OpenFlow switch to which the mobile node MN is attached and transmitted by the first OpenFlow switch with the AP function, where the identification information of the mobile node MN is the mobile node's MAC address and / or IP address;
步骤3)根据所述上报信息检查所述对应关系表,并基于所述移动节点MN的标识信息、移动节点MN附着的第一OpenFlow交换机的上报信息的查询结果以执行不同的路由行为。Step 3) Check the correspondence table according to the report information, and perform different routing actions based on the identification information of the mobile node MN and the query result of the report information of the first OpenFlow switch attached to the mobile node MN.
优选的是,进一步包括:Preferably, it further includes:
通过在Vendor message中定义一字段,以保存移动节点MN的标识信息;所述Vendor message由具有AP功能的OpenFlow交换机发送给控制器Controller;或者,By defining a field in the Vendor message, the identification information of the mobile node MN is stored; the Vendor message is sent to the controller by the OpenFlow switch with AP function; or,
通过在Experimenter message中定义一字段,以保存移动节点MN的标识信息;所述Experimenter message由具有AP功能的OpenFlow交换机发送给控制器Controller。By defining a field in the Experimenter message, the identification information of the mobile node MN is stored; the Experimenter message is sent to the controller by the OpenFlow switch with the AP function.
优选的是,所述步骤3)中,具体包括:根据所述上报信息检查所述对应关系表,其中,如果对应关系表中没有移动MN的信息;Preferably, the step 3) specifically includes: checking the correspondence table according to the reported information, wherein, if there is no mobile MN information in the correspondence table;
则将其及附着的第一OpenFlow交换机记录,与此同时,控制器为移动节点所在网络的网关的其他OpenFlow交换机下发对应该移动节点的流表,使移动节点与对端的移动节点建立通信。Then record it and the attached first OpenFlow switch, and at the same time, the controller delivers the flow table corresponding to the mobile node to other OpenFlow switches of the gateway of the network where the mobile node is located, so that the mobile node can establish communication with the mobile node of the opposite end.
优选的是,步骤3)中,进一步包括:Preferably, in step 3), further comprise:
如果所述上报信息中没有移动节点的IP地址,则根据控制器的自身DHCP功能为所述移动节点MN分配IP地址,并根据移动节点MN的IP地址、具有AP功能的OpenFlow交换机与具有AP功能的OpenFlow交换机连接在每个网关的端口号的对应关系,在移动节点MN的IP地址对应的网关中添加一条到达该移动节点MN的流表。If there is no IP address of the mobile node in the reported information, assign an IP address to the mobile node MN according to the controller's own DHCP function, and allocate an IP address to the mobile node MN according to the IP address of the mobile node MN, the OpenFlow switch with AP function and the AP function The OpenFlow switch is connected to the corresponding relationship of the port numbers of each gateway, and a flow table to reach the mobile node MN is added to the gateway corresponding to the IP address of the mobile node MN.
优选的是,所述控制器Controller记录着每个网关对应的网络地址段及每个网络地址段中可分配给移动节点MN的IP地址、IP地址数目;Preferably, the controller records the network address segment corresponding to each gateway and the IP address and the number of IP addresses that can be allocated to the mobile node MN in each network address segment;
其中,当判断移动节点MN没有IP地址时,则控制器Controller从中选出可分配IP地址数目最多的网络地址段,从该网络地址段可分配给移动节点MN的IP地址选择一IP地址分配给MN并写入DHCP OFFER数据包,同时修改该网络地址段中可分配给移动节点MN的IP地址、IP地址数目;When judging that the mobile node MN does not have an IP address, the controller selects a network address segment with the largest number of assignable IP addresses, and selects an IP address from the IP addresses that can be assigned to the mobile node MN from the network address segment to assign to MN and write the DHCP OFFER data packet, and at the same time modify the IP address and the number of IP addresses that can be allocated to the mobile node MN in the network address segment;
将DHCP OFFER数据包封装在Packet_out数据包发送到具有AP功能的OpenFlow交换机,具有AP功能的OpenFlow交换机再将DHCP OFFER数据包发送给移动节点MN;The DHCP OFFER data packet is encapsulated in the Packet_out data packet and sent to the OpenFlow switch with AP function, and the OpenFlow switch with AP function then sends the DHCP OFFER data packet to the mobile node MN;
移动节点MN向具有AP功能的OpenFlow交换机发送DHCP REQUEST数据包,具有AP功能的OpenFlow交换机将DHCP REQUEST数据包封装在Packet_in数据包中发送给控制器Controller,控制器Controller将DHCP ACK数据包封装在Packet_out数据包发送到具有AP功能的OpenFlow交换机,具有AP功能的OpenFlow交换机再将DHCP ACK数据包发送给移动节点MN;此时,移动节点MN获取到IP地址。The mobile node MN sends a DHCP REQUEST packet to the OpenFlow switch with AP function, and the OpenFlow switch with AP function encapsulates the DHCP REQUEST packet in a Packet_in packet and sends it to the controller Controller, which encapsulates the DHCP ACK packet in Packet_out The data packet is sent to the OpenFlow switch with the AP function, and the OpenFlow switch with the AP function sends the DHCP ACK data packet to the mobile node MN; at this time, the mobile node MN obtains the IP address.
优选的是,步骤3)中,具体包括:根据所述上报信息检查所述对应关系表,其中,如果对应关系表中已经有该移动节点的信息;Preferably, in step 3), it specifically includes: checking the corresponding relationship table according to the reported information, wherein, if the corresponding relationship table already has the information of the mobile node;
并且,附着的OpenFlow交换机与新上报的不同,将该条记录删除,并将移动节点、新上报的OpenFlow交换机的信息作为新的记录添加到对应关系表中。In addition, if the attached OpenFlow switch is different from the newly reported one, the record is deleted, and the information of the mobile node and the newly reported OpenFlow switch is added to the correspondence table as a new record.
优选的是,进一步包括:Preferably, it further includes:
控制器Controller与其他域的控制器共同维护一张移动节点MN的标识信息、所附着的具有AP功能的OpenFlow交换机的对应关系表,其管理的网络地址段不同;The controller and the controllers of other domains jointly maintain a piece of identification information of the mobile node MN and a correspondence table of the attached OpenFlow switches with the AP function, and the network address segments managed by them are different;
所述控制器Controller根据所述移动节点的IP地址,判断所述移动节点是在跨域还是在区域内进行运动。The controller determines, according to the IP address of the mobile node, whether the mobile node is moving across domains or within an area.
优选的是,进一步包括:Preferably, it further includes:
如果检测到移动节点MN是在同一区域内移动;If it is detected that the mobile node MN is moving in the same area;
所述控制器删除掉移动节点所在网络的网关的OpenFlow交换机中对应该移动节点的流表,同时为移动节点所在网络的网关的其他OpenFlow交换机下发对应该移动节点的新流表,使移动节点与对端通信不中断。The controller deletes the flow table corresponding to the mobile node in the OpenFlow switch of the gateway of the network where the mobile node is located, and simultaneously issues a new flow table corresponding to the mobile node to other OpenFlow switches of the gateway of the network where the mobile node is located, so that the mobile node Communication with the peer end is not interrupted.
优选的是,步骤3)中,进一步包括:Preferably, in step 3), further comprise:
如果检测到移动节点MN是跨域移动,控制器删除掉移动节点所在网络的网关的OpenFlow交换机中对应该移动节点的流表;If it is detected that the mobile node MN is moving across domains, the controller deletes the flow table corresponding to the mobile node in the OpenFlow switch of the gateway of the network where the mobile node is located;
并根据新加入网络的加权值,选择一条合适的通信路径,并为路径上的所有OpenFlow交换机下个针对移动节点MN的流表,使移动节点与对端通信不中断。According to the weighted value of the newly added network, an appropriate communication path is selected, and the next flow table for the mobile node MN is set for all OpenFlow switches on the path, so that the communication between the mobile node and the opposite end is not interrupted.
优选的是,所述新加入网络的加权值因素选取每条链路的链路状态和每个OpenFlow交换机的负载。Preferably, the weighting factor of the newly added network selects the link state of each link and the load of each OpenFlow switch.
本发明采取了上述方案以后,抛弃传统的隧道管理机制,很好的解决三角路由的问题,同时避免了隧道状态维护带来的额外开销;使用SDN技术,使网络的管理更加方便灵活,且其通过对移动节点MN当前位置的感知、控制器对其所控制的网络中各个OpenFlow交换机中流表的灵活控制,可以有效地进行移动性管理。After the present invention adopts the above scheme, the traditional tunnel management mechanism is abandoned, the problem of triangular routing is well solved, and the extra overhead caused by the maintenance of the tunnel state is avoided at the same time; the use of SDN technology makes the management of the network more convenient and flexible, and its Mobility management can be effectively performed through the perception of the current location of the mobile node MN and the flexible control of the flow table in each OpenFlow switch in the network controlled by the controller.
实施例二:Embodiment 2:
OpenFlow协议是软件定义网络(SDN)的基本协议之一。控制器与OpenFlow交换机之间的通信应遵循OpenFlow协议。The OpenFlow protocol is one of the basic protocols of software-defined networking (SDN). The communication between the controller and the OpenFlow switch should follow the OpenFlow protocol.
并且,为了使具有AP功能的OpenFlow交换机向控制器上报移动节点MN的信息,本发明实施例中,在现有的OpenFlow协议消息格式的基础上定义了一种新的消息字段:And, in order to make the OpenFlow switch with the AP function report the information of the mobile node MN to the controller, in this embodiment of the present invention, a new message field is defined on the basis of the existing OpenFlow protocol message format:
具体来说,在OpenFlow协议1.0版本下,在Vendor message中,定义一6字节6的新字段MN’s MAC,以保存移动节点MN的标识信息;Vendor message由具有AP功能的OpenFlow交换机发送给控制器Controller,Vendor message结构如下:Specifically, under the OpenFlow protocol version 1.0, in the Vendor message, a new field of 6
具体来说,在OpenFlow协议1.3版本下,在Experimenter message中,定义一6字节的新字段MN’s MAC,以保存移动节点MN的标识信息;Experimenter message由具有AP功能的OpenFlow交换机发送给控制器Controller,Experimenter message结构如下:Specifically, under the OpenFlow protocol version 1.3, in the Experimenter message, a new field of MN's MAC of 6 bytes is defined to store the identification information of the mobile node MN; the Experimenter message is sent by the OpenFlow switch with AP function to the controller Controller , the structure of the Experimenter message is as follows:
其中,将一个控制器所管理的网络称为一个域,图1、图2分别对应域内移动性管理与跨域移动性管理的拓扑,也就是说,本发明实施例中,主要针对图1、图2所示的拓扑进行研究。The network managed by one controller is referred to as a domain, and FIG. 1 and FIG. 2 correspond to the topologies of intra-domain mobility management and cross-domain mobility management respectively. That is to say, in the embodiment of the present invention, FIG. The topology shown in Figure 2 was studied.
当移动节点MN在一个域内移动时,如图1所示,s1为非OpenFlow交换机,不需要与控制器Controller进行连接;s2、s3、s4为传统OpenFlow交换机,充当网关的角色,需要与控制器Controller进行连接,但不需要支持专利中提到的新的OpenFlow协议字段,s2、s3、s4的网络地址段分别为A、B、C;When the mobile node MN moves within a domain, as shown in Figure 1, s1 is a non-OpenFlow switch and does not need to be connected to the controller; s2, s3, and s4 are traditional OpenFlow switches, which act as gateways and need to communicate with the controller. The Controller connects, but does not need to support the new OpenFlow protocol fields mentioned in the patent. The network address segments of s2, s3, and s4 are A, B, and C respectively;
s5、s6、s7为具有AP功能的OpenFlow交换机,需要与控制器Controller进行连接,同时需要支持专利中提到的新的OpenFlow协议字段。s5, s6, and s7 are OpenFlow switches with AP function, which need to be connected with the controller and support the new OpenFlow protocol fields mentioned in the patent.
当移动节点MN在跨域移动时,如图2所示,s1、s2、s3、s4、s1’、s2’、s3’、s4’均为传统OpenFlow交换机,需要与控制器Controller进行连接;s2、s3、s4、s2’、s3’、s4’充当网关的角色,不需要支持专利中提到的新的OpenFlow协议字段,s2、s3、s4、s2’、s3’、s4’的网络地址段分别为A、B、C、A’、B’、C’;s5、s6、s7、s5’、s6’、s7’为具有AP功能的OpenFlow交换机,需要与控制器Controller进行连接,同时需要支持专利中提到的新的OpenFlow协议字段。When the mobile node MN moves across domains, as shown in Figure 2, s1, s2, s3, s4, s1', s2', s3', and s4' are traditional OpenFlow switches, which need to be connected to the controller; s2 , s3, s4, s2', s3', s4' acts as a gateway and does not need to support the new OpenFlow protocol fields mentioned in the patent, the network address segments of s2, s3, s4, s2', s3', s4' A, B, C, A', B', C' respectively; s5, s6, s7, s5', s6', s7' are OpenFlow switches with AP function, which need to be connected to the controller and support New OpenFlow protocol fields mentioned in the patent.
控制器Controller具有DHCP服务器的功能,可以向接入的移动节点MN分配IP地址,过程描述如下:The controller Controller has the function of a DHCP server and can assign an IP address to the accessing mobile node MN. The process is described as follows:
控制器Controller记录着每个网关对应的网络地址段及每个网络地址段中可分配给移动节点MN的IP地址、IP地址数目;The controller Controller records the network address segment corresponding to each gateway and the IP address and the number of IP addresses that can be allocated to the mobile node MN in each network address segment;
当收到移动节点MN的地址请求时,控制器Controller从中选出可分配IP地址数目最多的网络地址段,从该网络地址段可分配给移动节点MN的IP地址选择一IP地址分配给MN,同时修改该网络地址段中可分配给移动节点MN的IP地址、IP地址数目;When receiving an address request from the mobile node MN, the controller selects a network address segment with the largest number of assignable IP addresses, and selects an IP address to assign to the MN from the IP addresses that can be assigned to the mobile node MN in the network address segment. At the same time, modify the IP address and the number of IP addresses that can be allocated to the mobile node MN in the network address segment;
移动节点MN向具有AP功能的OpenFlow交换机发送DHCP DISCOVER数据包,请求IP地址,具有AP功能的OpenFlow交换机将DHCP DISCOVER数据包封装在Packet_in数据包中发送给控制器Controller,控制器Controller选择一IP地址,写入DHCP OFFER数据包,并将DHCP OFFER数据包封装在Packet_out数据包发送到具有AP功能的OpenFlow交换机,具有AP功能的OpenFlow交换机再将DHCP OFFER数据包发送给移动节点MN;The mobile node MN sends a DHCP DISCOVER data packet to the OpenFlow switch with AP function, requesting an IP address, the OpenFlow switch with AP function encapsulates the DHCP DISCOVER data packet in a Packet_in data packet and sends it to the controller Controller, and the controller Controller selects an IP address , write the DHCP OFFER data packet, encapsulate the DHCP OFFER data packet in the Packet_out data packet and send it to the OpenFlow switch with AP function, and the OpenFlow switch with AP function then sends the DHCP OFFER data packet to the mobile node MN;
移动节点MN向具有AP功能的OpenFlow交换机发送DHCP REQUEST数据包,具有AP功能的OpenFlow交换机将DHCP REQUEST数据包封装在Packet_in数据包中发送给控制器Controller,控制器Controller将DHCP ACK数据包封装在Packet_out数据包发送到具有AP功能的OpenFlow交换机,具有AP功能的OpenFlow交换机再将DHCP ACK数据包发送给移动节点MN;此时,移动节点MN获取到IP地址。The mobile node MN sends a DHCP REQUEST packet to the OpenFlow switch with AP function, and the OpenFlow switch with AP function encapsulates the DHCP REQUEST packet in a Packet_in packet and sends it to the controller Controller, which encapsulates the DHCP ACK packet in Packet_out The data packet is sent to the OpenFlow switch with the AP function, and the OpenFlow switch with the AP function sends the DHCP ACK data packet to the mobile node MN; at this time, the mobile node MN obtains the IP address.
在进行移动性管理前,需要对网络进行一些必要的初始化配置。Before performing mobility management, some necessary initial configurations of the network are required.
图1中,非OpenFlow交换机s1中配置有4条路由信息,使得发往s2、s3、s4、CN的数据包可以从对应的接口中发出;In Figure 1, the non-OpenFlow switch s1 is configured with 4 pieces of routing information, so that the data packets sent to s2, s3, s4, and CN can be sent from the corresponding interfaces;
网络中的传统OpenFlow交换机与控制器Controller建立连接,控制器Controller为传统OpenFlow交换机下发两条流表,一条流表将发往该传统OpenFlow交换机的网关地址的数据包发送到LOCAL接口,另一条流表将目的地址不是传统OpenFlow交换机的网关地址对应网络中数据包发送到s1;The traditional OpenFlow switch in the network establishes a connection with the controller. The controller sends two flow tables to the traditional OpenFlow switch. One flow table sends packets destined for the gateway address of the traditional OpenFlow switch to the LOCAL interface, and the other The flow table sends the data packets in the network corresponding to the gateway address of the traditional OpenFlow switch to s1;
网络中的具有AP功能的OpenFlow交换机与控制器Controller建立连接,控制器Controller为具有AP功能的OpenFlow交换机下发三条流表,三条流表分别判断所收到数据包的源地址,检查源地址属于s2、s3、s4所在网络中哪一个,然后从对应的端口发出。The OpenFlow switch with AP function in the network establishes a connection with the controller. The controller sends three flow tables to the OpenFlow switch with AP function. Which one of the network s2, s3, and s4 are located in, and then send it out from the corresponding port.
图2中,传统OpenFlow交换机s1、s1’中分别配置7条初始化流表,使得发往s2、s3、s4、s2’、s3’、s4’、CN的数据包可以从对应的接口中发出。In Figure 2, the traditional OpenFlow switches s1 and s1' are respectively configured with 7 initialization flow tables, so that the data packets sent to s2, s3, s4, s2', s3', s4', and CN can be sent from the corresponding interfaces.
s2、s3、s4、s2’、s3’、s4’与控制器Controller建立连接,控制器Controller1、Controller2分别为s2、s3、s4与s2’、s3’、s4’各下发两条流表,一条将发往该传统OpenFlow交换机的网关地址的数据包发送到LOCAL接口,另一条流表将目的地址不是传统OpenFlow交换机的网关地址对应网络中数据包发送到s1与s1’。网络中的具有AP功能的OpenFlow交换机与控制器Controller建立连接,控制器Controller为具有AP功能的OpenFlow交换机下发三条流表,三条流表分别判断所收到数据包的源地址,在区域一中检查源地址属于s2、s3、s4所在网络中哪一个,在区域二中检查源地址属于s2’、s3’、s4’所在网络中哪一个,然后从对应的端口发出。s2, s3, s4, s2', s3', s4' establish connections with the controller Controller, and the controllers Controller1 and Controller2 respectively send two flow tables for s2, s3, s4 and s2', s3', s4', respectively. One sends the data packets destined to the gateway address of the traditional OpenFlow switch to the LOCAL interface, and the other flow table sends the data packets in the network corresponding to the gateway address of the traditional OpenFlow switch to s1 and s1'. The OpenFlow switch with AP function in the network establishes a connection with the controller. The controller sends three flow tables to the OpenFlow switch with AP function. The three flow tables determine the source address of the received data packet respectively. Check which of the networks where the source address belongs to s2, s3, and s4. In
初始化配置时的流表项的优先级都设置为1,以避免与移动性管理中添加的流表相冲突。s2、s3、s4、s2’、s3’、s4’中各有一块缓存区域,可以缓存在移动节点MN移动、修改流表过程中的通信数据,并在移动完成后进行发送,以保持通信的连续性。The priority of the flow table entry during initial configuration is set to 1 to avoid conflict with the flow table added in the mobility management. Each of s2, s3, s4, s2', s3', and s4' has a buffer area, which can buffer the communication data in the process of the mobile node MN moving and modifying the flow table, and send it after the movement is completed to maintain the communication data. continuity.
实施例三:Embodiment three:
域内移动性管理工作流程如下:The intra-domain mobility management workflow is as follows:
当具有AP功能的OpenFlow交换机感知到MN的附着后,会将MN的标识信息(MAC地址,IP地址等)、MN所附着的AP主动上报给控制器。如果检测到移动节点没有IP地址,需要通过控制器的DHCP功能获取IP地址。When the OpenFlow switch with the AP function senses the attachment of the MN, it will actively report the identification information (MAC address, IP address, etc.) of the MN and the AP to which the MN is attached to the controller. If it is detected that the mobile node does not have an IP address, it needs to obtain an IP address through the DHCP function of the controller.
控制器Controller中记录着具有AP功能的OpenFlow交换机与具有AP功能的OpenFlow交换机连接在每个网关的端口号的对应关系,当控制器Controller为移动节点MN分配IP地址后,根据移动节点MN的IP地址、具有AP功能的OpenFlow交换机与具有AP功能的OpenFlow交换机连接在每个网关的端口号的对应关系,在移动节点MN的IP地址对应的网关中添加一条到达该移动节点MN的流表。The controller records the correspondence between the OpenFlow switch with AP function and the port number of the OpenFlow switch with AP function connected to each gateway. After the controller assigns an IP address to the mobile node MN, according to the IP address of the mobile node MN The corresponding relationship between the address, the OpenFlow switch with AP function and the port number of the OpenFlow switch with AP function connected to each gateway, add a flow table to the mobile node MN in the gateway corresponding to the IP address of the mobile node MN.
控制器记录有它所控制的网络中MN与该MN附着的具有AP功能的OpenFlow交换机的对应关系表,收到具有AP功能的OpenFlow交换机的上报信息后,控制器检查对应关系表;The controller records the correspondence table between the MN in the network it controls and the OpenFlow switch with the AP function attached to the MN, and after receiving the report information of the OpenFlow switch with the AP function, the controller checks the correspondence table;
如果对应关系表中没有该MN的信息,说明该MN是新加入网络的主机,则将其及对应的具有AP功能的OpenFlow交换机记录。与此同时,控制器为移动节点所在网络的网关的OpenFlow交换机下发对应该移动节点的流表,使移动节点MN与对端的移动节点CN建立通信。If there is no information about the MN in the correspondence table, it means that the MN is a host newly added to the network, then record it and the corresponding OpenFlow switch with the AP function. At the same time, the controller issues a flow table corresponding to the mobile node to the OpenFlow switch of the gateway of the network where the mobile node is located, so that the mobile node MN establishes communication with the mobile node CN of the opposite end.
如果对应关系表中已经有该移动节点的信息,附着的OpenFlow交换机与新上报的不同,将该条记录删除,并将移动节点、新上报的OpenFlow交换机的信息作为新的记录添加到对应关系表中;与此同时,控制器删除掉移动节点所在网络的网关的OpenFlow交换机中对应该移动节点的流表,同时为移动节点所在网络的网关的OpenFlow交换机下发对应该移动节点的新流表,使移动节点与对端通信不中断。If the information of the mobile node already exists in the correspondence table and the attached OpenFlow switch is different from the newly reported one, delete the record, and add the information of the mobile node and the newly reported OpenFlow switch as a new record to the correspondence table At the same time, the controller deletes the flow table corresponding to the mobile node in the OpenFlow switch of the gateway of the network where the mobile node is located, and issues a new flow table corresponding to the mobile node to the OpenFlow switch of the gateway of the network where the mobile node is located. Make the communication between the mobile node and the peer end uninterrupted.
实施例四:Embodiment 4:
跨域移动性管理工作流程如下:The cross-domain mobility management workflow is as follows:
当具有AP功能的OpenFlow交换机感知到MN的附着后,会将MN的标识信息(MAC地址,IP地址等)、MN所附着的AP主动上报给控制器。如果检测到移动节点没有IP地址,需要通过控制器的DHCP功能获取IP地址。When the OpenFlow switch with the AP function senses the attachment of the MN, it will actively report the identification information (MAC address, IP address, etc.) of the MN and the AP to which the MN is attached to the controller. If it is detected that the mobile node does not have an IP address, it needs to obtain an IP address through the DHCP function of the controller.
控制器Controller中记录着具有AP功能的OpenFlow交换机与具有AP功能的OpenFlow交换机连接在每个网关的端口号的对应关系,当控制器Controller为移动节点MN分配IP地址后,根据移动节点MN的IP地址、具有AP功能的OpenFlow交换机与具有AP功能的OpenFlow交换机连接在每个网关的端口号的对应关系,在移动节点MN的IP地址对应的网关中添加一条到达该移动节点MN的流表。The controller records the correspondence between the OpenFlow switch with AP function and the port number of the OpenFlow switch with AP function connected to each gateway. After the controller assigns an IP address to the mobile node MN, according to the IP address of the mobile node MN The corresponding relationship between the address, the OpenFlow switch with AP function and the port number of the OpenFlow switch with AP function connected to each gateway, add a flow table to the mobile node MN in the gateway corresponding to the IP address of the mobile node MN.
两个域内的控制器Controller共同维护一张移动节点MN的标识信息、所附着的具有AP功能的OpenFlow交换机的对应关系表,收到具有AP功能的OpenFlow交换机的上报信息后,控制器检查对应关系表;The controllers in the two domains jointly maintain a table of the identification information of the mobile node MN and the correspondence table of the attached OpenFlow switches with the AP function. After receiving the information reported by the OpenFlow switches with the AP function, the controllers check the correspondence surface;
如果对应关系表中没有该MN的信息,说明该MN是新加入网络的主机,则将其及对应的具有AP功能的OpenFlow交换机记录。与此同时,控制器为移动节点所在网络的网关的OpenFlow交换机下发对应该移动节点的流表,使移动节点与对端的移动节点建立通信。If there is no information about the MN in the correspondence table, it means that the MN is a host newly added to the network, then record it and the corresponding OpenFlow switch with the AP function. At the same time, the controller issues a flow table corresponding to the mobile node to the OpenFlow switch of the gateway of the network where the mobile node is located, so that the mobile node can establish communication with the mobile node of the opposite end.
如果对应关系表中已经有该移动节点的信息,附着的OpenFlow交换机与新上报的不同,将该条记录删除,并将移动节点、新上报的OpenFlow交换机的信息作为新的记录添加到对应关系表中。If the information of the mobile node already exists in the correspondence table and the attached OpenFlow switch is different from the newly reported one, delete the record, and add the information of the mobile node and the newly reported OpenFlow switch as a new record to the correspondence table middle.
控制器Controller1、Controller2管理的网络地址段分别为A、B、C和A’、B’、C’。如果检测到移动节点MN是在同一区域内移动,控制器删除掉移动节点所在网络的网关的OpenFlow交换机中对应该移动节点的流表,同时为移动节点所在网络的网关的OpenFlow交换机下发对应该移动节点的新流表,使移动节点与对端通信不中断;如果检测到移动节点MN是跨域移动,控制器删除掉移动节点所在网络的网关的OpenFlow交换机中对应该移动节点的流表,并根据新加入网络的加权值(如每条链路的链路状态、每个OpenFlow交换机的负载等),选择一条合适的与CN的通信路径,并为路径上的OpenFlow交换机下个针对移动节点MN的流表,使移动节点与对端通信不中断。The network address segments managed by controllers Controller1 and Controller2 are A, B, C and A', B', C' respectively. If it is detected that the mobile node MN is moving in the same area, the controller deletes the flow table corresponding to the mobile node in the OpenFlow switch of the gateway of the network where the mobile node is located, and delivers the corresponding flow table to the OpenFlow switch of the gateway of the network where the mobile node is located. The new flow table of the mobile node, so that the communication between the mobile node and the opposite end is not interrupted; if it is detected that the mobile node MN is moving across domains, the controller deletes the flow table corresponding to the mobile node in the OpenFlow switch of the gateway of the network where the mobile node is located, And according to the weighted value of the newly added network (such as the link status of each link, the load of each OpenFlow switch, etc.), select an appropriate communication path with the CN, and assign the next OpenFlow switch on the path to the mobile node. MN's flow table, so that the communication between the mobile node and the opposite end is not interrupted.
也就是说,本发明在控制器中记录移动节点MN与具有AP功能的OpenFlow交换机OVS AP的对应关系表、网络中存在移动节点MN的流表的OpenFlow交换机,通过OpenFlow协议,实现移动性管理。That is to say, the present invention records the correspondence table between the mobile node MN and the OpenFlow switch OVS AP with AP function in the controller, and the OpenFlow switch with the flow table of the mobile node MN in the network, and implements mobility management through the OpenFlow protocol.
其抛弃传统的隧道管理机制,很好的解决三角路由的问题,同时避免了隧道状态维护带来的额外开销;且使用SDN技术,使网络的管理更加方便灵活。It abandons the traditional tunnel management mechanism, solves the problem of triangular routing well, and avoids the extra overhead caused by tunnel state maintenance; and uses SDN technology to make network management more convenient and flexible.
需要说明的是,对于上述方法实施例而言,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the above-mentioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence, Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, the The technical solutions described in the foregoing embodiments may be modified, or some technical features thereof may be equivalently replaced. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510069728.4A CN104717142B (en) | 2015-02-10 | 2015-02-10 | Method for carrying out mobility management based on OpenFlow protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510069728.4A CN104717142B (en) | 2015-02-10 | 2015-02-10 | Method for carrying out mobility management based on OpenFlow protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104717142A CN104717142A (en) | 2015-06-17 |
CN104717142B true CN104717142B (en) | 2020-01-10 |
Family
ID=53416121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510069728.4A Expired - Fee Related CN104717142B (en) | 2015-02-10 | 2015-02-10 | Method for carrying out mobility management based on OpenFlow protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104717142B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106411972A (en) * | 2015-07-29 | 2017-02-15 | 中国科学院沈阳自动化研究所 | Real-time data distribution system and method based on Openflow protocol |
CN106790734B (en) * | 2016-01-29 | 2021-04-30 | 新华三技术有限公司 | Network address allocation method and device |
CN106027527B (en) * | 2016-05-23 | 2019-04-12 | 华中科技大学 | A kind of anonymous communication method based on SDN environment |
CN106506371A (en) * | 2016-11-11 | 2017-03-15 | 清华大学 | IP mobility processing method and device based on ID/Locator separation based on OpenFlow protocol |
CN107135282A (en) * | 2017-04-12 | 2017-09-05 | 清华大学 | A kind of internet mobility method based on SDN |
CN113055968A (en) * | 2019-12-26 | 2021-06-29 | 国网山西省电力公司信息通信分公司 | SDN-based IPV6 network layer mobility management method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101330460A (en) * | 2008-05-13 | 2008-12-24 | 武汉理工大学 | A New Structure Model and Routing Method of Mobile IP |
CN103369613A (en) * | 2013-07-05 | 2013-10-23 | 中国科学院计算机网络信息中心 | System and method for realizing mobile switching based on Open Flow |
CN104065764A (en) * | 2014-07-05 | 2014-09-24 | 中国科学技术大学 | A Mobile Management System Based on Address Replacement in Software Defined Networking |
CN104104744A (en) * | 2014-07-09 | 2014-10-15 | 杭州华三通信技术有限公司 | IP address assignment method and device |
-
2015
- 2015-02-10 CN CN201510069728.4A patent/CN104717142B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101330460A (en) * | 2008-05-13 | 2008-12-24 | 武汉理工大学 | A New Structure Model and Routing Method of Mobile IP |
CN103369613A (en) * | 2013-07-05 | 2013-10-23 | 中国科学院计算机网络信息中心 | System and method for realizing mobile switching based on Open Flow |
CN104065764A (en) * | 2014-07-05 | 2014-09-24 | 中国科学技术大学 | A Mobile Management System Based on Address Replacement in Software Defined Networking |
CN104104744A (en) * | 2014-07-09 | 2014-10-15 | 杭州华三通信技术有限公司 | IP address assignment method and device |
Non-Patent Citations (1)
Title |
---|
"基于OpenFlow技术实现移动通信的方法";崔大凯,葛敬国等;《计算机应用》;20131231;第14-15页以及图4,表1-2 * |
Also Published As
Publication number | Publication date |
---|---|
CN104717142A (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104717142B (en) | Method for carrying out mobility management based on OpenFlow protocol | |
JP6146451B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, CONTROL DEVICE, PACKET FLOW TRANSFER ROUTE CONTROL METHOD, AND PROGRAM | |
JP4226553B2 (en) | Routing in data communication networks | |
US9008084B2 (en) | Method of IPv6 at data center network with VM mobility using graceful address migration | |
CN104065764B (en) | A Mobile Management System Based on Address Replacement in Software Defined Networking | |
CN101621449B (en) | Methods and device for terminal access and proxy update in mesh network | |
CN101127758B (en) | Method and system for obtaining IP address of mobile node | |
Cominardi et al. | Distributed mobility management solutions for next mobile network architectures | |
CN105264835A (en) | Gre tunnel implementation method, access device and convergence gateway | |
CN116647834B (en) | A mobile network communication method and system for low-latency, high-reliability services | |
CN116368860A (en) | Network Layer Support for 5G Edge Computing Sticky Services | |
JP5777713B2 (en) | System and method for providing mobility using a split home agent structure | |
US9253623B2 (en) | Method, system, mapping forward server and access router for mobile communication controlling | |
CN101699886A (en) | Method for binding stream to multi-homed mobile node in proxy mobile IPv6 | |
CN109743726B (en) | Method for sharing static terminal in LTE system roaming scene | |
KR101680137B1 (en) | Sdn-based terminal mobility management framework and management methof thereof | |
CN107135118A (en) | A kind of unicast communication method, gateway and VXLAN access devices | |
US12341749B2 (en) | Proxy address resolution protocol for distributed local area network communications | |
US20090147759A1 (en) | Method and apparatus for supporting mobility of node using layer 2/layer 3 addresses | |
CN114157724B (en) | Identity/position identification hybrid forwarding method based on source route | |
CN102547908B (en) | Listing maintenance, system and IAD router | |
Elsadek et al. | IP mobility management using software defined networking: A review | |
CN107135282A (en) | A kind of internet mobility method based on SDN | |
CN103108300B (en) | Location updating method and mobile router access service router | |
CN102546356A (en) | Method and system capable of ensuring service quality of mobile nodes in logo network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200110 Termination date: 20210210 |
|
CF01 | Termination of patent right due to non-payment of annual fee |