WO2020108182A1 - System and method for implementing zero proxy ip fast roaming - Google Patents

System and method for implementing zero proxy ip fast roaming Download PDF

Info

Publication number
WO2020108182A1
WO2020108182A1 PCT/CN2019/112847 CN2019112847W WO2020108182A1 WO 2020108182 A1 WO2020108182 A1 WO 2020108182A1 CN 2019112847 W CN2019112847 W CN 2019112847W WO 2020108182 A1 WO2020108182 A1 WO 2020108182A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
dns
subnet
dhcp
arp
Prior art date
Application number
PCT/CN2019/112847
Other languages
French (fr)
Chinese (zh)
Inventor
潘甦
王亚利
Original Assignee
南京邮电大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 南京邮电大学 filed Critical 南京邮电大学
Publication of WO2020108182A1 publication Critical patent/WO2020108182A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Definitions

  • the present invention relates to the field of wireless communication and mobile Internet, and in particular to a system and method for reducing the delay of IP address switching in a process in which a mobile terminal crosses different subnets in a wireless communication network.
  • a DHCP server in the wireless network to assign IP addresses to the accessed terminals, and the mobile terminal is the DHCP client.
  • the mobile terminal accesses another wireless network, the mobile terminal will initiate a DHCP Request.
  • the DHCP server responds to the NCK, the mobile terminal initiates DHCP Discovery, the DHCP server responds to the DHCP offer, the terminal sends a DHCP Request according to the DHCP offer, and the server returns DHCP to complete the IP acquisition.
  • ARP Address Resolution Protocol
  • NAT Network Address Translation
  • the gateway is the main device that implements NAT technology.
  • the gateway converts the connection of the host in the LAN through NAT and records the related conversion information as a NAT entry, it converts the source address of the IP packet to the IP of the upstream port of the gateway The address communicates with the exit of the upper-level gateway.
  • the gateway When receiving the upper-level gateway data, the gateway first queries the NAT table. If it can find the corresponding NAT information, it reverses the NAT conversion and sends it back to the host in the LAN. The host can complete two-way transmission with the public network server.
  • the gateway is an outlet and entrance device for the host in the LAN to communicate with the external network.
  • the gateway has at least two IP addresses and corresponding physical communication ports.
  • One of the external network IP is used to communicate with the superior gateway, and the other internal and external IP is connected to the local area network. Host communication.
  • the gateway wants to communicate with the local area network host, it determines the physical communication port to which the internal network host is connected by looking up the IP routing table. After finding the port, the data is handed over to the link layer for transmission.
  • DNS Domain Name System
  • the main function of DNS is to convert human-recognized domain names into IP address.
  • the DNS resolution process is a hierarchical recursive query. When the client accesses a web address, instead of directly searching for the root, (1) first check the hosts file; (2) if not, check the local DNS cache; (3) if not , Looking for the DNS server; now check the local DNS cache of the DNS server, if not, then query the DNS server's resolution library, none. DNS initiates a request to the root domain and starts iterative query. Until the IP address is found.
  • the mobile terminal After receiving the IP address, the mobile terminal obtains that the IP is a private network IP address.
  • the network can communicate normally, and the private network IP needs to be converted into a public network IP address that can be connected to the Internet.
  • NAT technology is used to initiate connection requests from hosts in the private network. Data packets are transferred to a higher-level gateway through a NAT address conversion via a gateway, and then sent to a public network server through multiple routes. After the connection is established, data can be transmitted in both directions; the gateway is NAT.
  • the gateway converts the connection of the host in the LAN through NAT and records the relevant conversion information as a NAT entry, then converts the source address of the IP packet to the IP address of the upstream port of the gateway and communicates with the upper gateway exit, and After receiving the data from the upper-level gateway, the gateway first queries the NAT table. If it can find the corresponding NAT information, it reverses the NAT conversion and sends it back to the host in the LAN. In this way, the host in the LAN can completely communicate with the public network server. Two-way transmission.
  • Static routing It is a routing method. The routing items are manually configured and will not change, even if the network conditions have changed or are reconfigured. Generally speaking, static routing is added to the routing table item by item by the network management.
  • IP Mobile Internet Protocol
  • the MIP protocol describes those actions, that is, the mobile terminal is connected from one access router to another. The action of keeping the connection during the switch into the router.
  • the typical handover of mobile terminals requires link layer and IP layer signaling. And during the handover, the mobile terminal cannot send or receive data packets. This period of time is called the switching delay. In many cases, when delay-sensitive network services come, they are unacceptable during handover. Therefore, for such services, seamless mobility management technology may be required.
  • the object of the present invention is to provide a system and method for implementing fast roaming with zero proxy IP to solve the problems of data service interruption and data packet loss due to roaming switching delay.
  • a system for implementing zero-agent IP fast roaming including:
  • the DHCP processing unit which is composed of a DHCP receiving module and a DHCP response module, is used to receive the DHCP request sent by the mobile terminal and perform a DHCP ACK response, so that the mobile terminal obtains the IP address again when accessing the new subnet;
  • the ARP processing unit is composed of an ARP receiving module and an ARP reply module. It is used to receive ARP requests from the mobile terminal. Regardless of whether the ARP request sent by the mobile terminal is the address of the subnet, the MAC address of the gateway of the subnet is used to respond;
  • the DNS processing unit is composed of a DNS receiving module and a DNS conversion module. It is used to receive and analyze the DNS request sent by the mobile terminal, convert the DNS request DNS server IP to the subnet DNS server IP, and forward it to the subnet DNS server. Parsing; the data returned by the DNS server in this subnet is then reverse converted by the DNS conversion module and then returned to the mobile terminal;
  • the static route management unit is used to dynamically add corresponding static route items according to the roaming access terminal, and periodically clean out the expired static route items that are no longer used.
  • a method for implementing zero-agent IP fast roaming includes the following steps:
  • the mobile terminal switches from one subnet to another subnet.
  • the mobile terminal does not need to change the original IP configuration.
  • this subnet directly responds to ACK;
  • the subnet When the subnet receives the DHCP request from the mobile terminal, it analyzes the DHCP request to determine whether it belongs to the network segment. If it is an IP request for the network segment, DHCP is normally allocated; if it is not, the steps are performed ( 3);
  • the subnet responds to the ACK, and records the IP address of the DHCP request, add the IP address to the static reason table; and set a timer to check the static routing table regularly, if it is not received within the specified time When the terminal requests again, the record is deleted;
  • the mobile terminal After receiving the DHCP response, the mobile terminal issues an ARP request.
  • the ARP processing unit finds that the IP requested by the mobile terminal and its own are not in the same network segment, the ARP processing unit will send its own gateway address as a response, making the mobile The terminal communicates normally;
  • the mobile terminal is still the gateway of the original subnet.
  • the gateway of the subnet judges whether the destination IP is the DNS of the home network. If it is, it responds normally. If it is not, the subnet light pipe replacement purpose IP is the DNS of this network and recorded in the DNS conversion table, and sent to the DNS of this subnet;
  • the mobile terminal judges whether there is a record in the conversion table according to the recorded DNS conversion table, if there is a record to reverse conversion, it is returned to the mobile terminal, if there is no record, then proceed Normal response.
  • step (1) no proxy association is required for the network that the mobile terminal last accessed, and there is no need to know the network that the terminal was connected to last time, and a complete proxy can be implemented for any gateway.
  • the ARP processing unit processes the request, inquires whether the destination IP is the local subnet, and if so, responds normally; if not, uses The MAC address of the gateway and the requested IP address send a Response.
  • the system and method for realizing zero-agent IP fast roaming of the present invention the adaptation of any IP without agents does not require any agent association for the last network of the mobile terminal, and the gateway adopting this method does not need to know the last connection of the terminal
  • the network can realize full proxy for any gateway; when a new terminal accesses, the terminal does not need to change the original IP configuration, thereby greatly reducing the delay of IP switching.
  • the present invention provides a simple method with simple principles, easy implementation, and easy operation.
  • the invention can effectively solve data service interruption and data packet loss due to roaming switching delay.
  • the invention can shorten the network switching delay caused by reacquiring the IP address during the roaming process of the mobile terminal, and simplify the proxy configuration between the subnets.
  • 1 is a schematic diagram of a mobile terminal switching from one local area network to another local area network
  • FIG. 3 is a schematic diagram of normal requests and responses when a mobile terminal enters a subnet
  • FIG. 4 is a schematic diagram of the DHCP processing flow
  • FIG. 5 is a schematic diagram of the ARP processing flow
  • FIG. 6 is a schematic diagram of the DNS processing flow.
  • the system for realizing zero-agent IP fast roaming of the present invention includes:
  • the DHCP processing unit is composed of a DHCP receiving module and a DHCP response module, and is used to receive the DHCP request sent by the mobile terminal and perform a DHCP ACK response to enable the mobile terminal to reacquire an IP address when accessing a new subnet; when the mobile terminal (Referred to as STA)
  • STA mobile terminal
  • the process of switching from one subnet to another is shown in Figure 1.
  • the IP address obtained by STA in subnet 1 is an IP address in 192.168.1.0/24; when the mobile node When subnet 1 is switched to another subnet 2, the terminal will first issue a DHCP request.
  • the gateways of subnet 1 and subnet 2 are different, the IP requested by the mobile terminal is still the IP address obtained during subnet 1, and GW2 will send a NAK response. Then the mobile terminal will initiate DHCP Discovery, DHCP Server responds to the DHCP offer, the terminal sends out a DHCP Request according to the DHCP offer, and the server returns DHCP to complete the IP acquisition.
  • the gateway 2 no matter what IP address the mobile terminal uses to send the request, the gateway 2 (Gateway, GW2 for short) will make an ACK response. When the STA receives the ACK, it considers the configuration of the newly accessed subnet 2 and the subnet 1 The configuration is the same, no need to re-initiate the DHCP request.
  • the ARP processing unit is composed of an ARP receiving module and an ARP reply module. It is used to receive the ARP request of the mobile terminal. Regardless of whether the ARP request sent by the mobile terminal is the address of the subnet, the MAC address of the gateway of the subnet is used to respond; ARP receiving and The difference between the response unit and the normal ARP protocol is that when an ARP request from the mobile terminal is received, and then an ARP request is initiated to the gateway according to the ARP protocol, the request sent by the host broadcasts the ARP request containing the target IP address to the network. After all the hosts, GW2 receives the ARP request, it responds to the mobile terminal with the MAC address of GW2.
  • the roaming mobile terminal has completed the network layer switching and established the communication link.
  • the mobile terminal completes the switching of the communication link, but still uses the IP configuration in subnet 1, in order to realize the roaming access STA can perform bidirectional communication in subnet 2, GW2 will roaming access STA in The IP address is added to the local routing table as a static route.
  • the static route corresponds to the GW2 LAN port, so that GW2's routing process can automatically implement proxy for different network segments of the roaming terminal.
  • the DNS processing unit is composed of a DNS receiving module and a DNS conversion module. It is used to receive and analyze the DNS request sent by the mobile terminal, convert the DNS request DNS server IP to the subnet DNS server IP, and forward it to the subnet DNS server. Resolution; the data returned by the DNS server in this subnet is then reverse converted by the DNS conversion module and then returned to the mobile terminal; when the terminal needs to access the public website, it will first perform DNS resolution to obtain the corresponding IP address of the website, and GW2 receives the DNS of the STA When requesting, modify the destination IP of the DNS request to the DNS IP in subnet 2 and then forward it. At the same time, the DNS conversion table is established. When the DNS server returns a response, the information in the DNS conversion table is reverse converted, which makes STA can complete the DNS resolution process exactly as in Atomic Network 1.
  • the static route management unit is used to dynamically add the corresponding static route items according to the roaming access terminal, and regularly clean out the expired static route items that are no longer used.
  • a method for implementing zero-agent IP fast roaming includes the following steps:
  • the mobile terminal switches from one subnet to another.
  • the mobile terminal does not need to change the original IP configuration.
  • this subnet directly responds to the ACK.
  • the subnet When the subnet receives the DHCP request from the mobile terminal, it analyzes the DHCP request to determine whether it belongs to the network segment. If it is an IP request for the network segment, DHCP is normally allocated; if it is not, the steps are performed ( 3);
  • the subnet responds to the ACK, and records the IP address of the DHCP request, add the IP address to the static reason table; and set a timer to check the static routing table regularly, if it is not received within the specified time When the terminal requests again, the record is deleted;
  • the mobile terminal After receiving the DHCP response, the mobile terminal issues an ARP request.
  • the ARP processing unit finds that the IP requested by the mobile terminal and its own are not in the same network segment, the ARP processing unit will send its own gateway address as a response, making the mobile The terminal communicates normally; when the ARP processing unit receives the ARP request from the mobile terminal, the ARP processing unit processes the request, inquires whether the destination IP is the local subnet, and if so, responds normally; if not, uses the MAC of the gateway Address and requested IP address, send Response response.
  • the mobile terminal is still the gateway of the original subnet.
  • the gateway of the subnet judges whether the destination IP is the DNS of the home network. If it is, it responds normally. If it is not, the subnet light pipe replacement purpose IP is the DNS of this network and recorded in the DNS conversion table, and sent to the DNS of this subnet;
  • the mobile terminal judges whether there is a record in the conversion table according to the recorded DNS conversion table, if there is a record to reverse conversion, it is returned to the mobile terminal, if there is no record, then proceed Normal response.
  • this subnet refers to the subnet to which the mobile terminal is to be connected when switching from one subnet to another subnet, that is, as shown in FIG. 1, this subnet refers to the mobile terminal (STA) in the subnet 1 Subnet 2 in the process of moving to subnet 2.
  • STA mobile terminal
  • FIG. 1 a general implementation process of a terminal switching from an access point in one local area network to an access point in another local area network is shown.
  • the gateway (Gateway, GW2 for short) responds directly to the DHCP request sent by the mobile terminal.
  • the request sent by the mobile terminal will be as shown in Figure 3.
  • the STA will initiate DHCP Discovery, DHCP Server responds to the DHCP offer, the terminal sends a DHCP Request according to the DHCP offer, and the server returns DHCP to complete the IP acquisition.
  • This method proposes a proxy-free adaptation of any IP, which does not require any proxy association for the network that the mobile terminal last accessed.
  • the gateway adopting this method does not need to know the network that the terminal was last connected to, and can be any gateway.
  • a complete proxy is implemented; when a new terminal accesses, the terminal does not need to change the original IP configuration.
  • GW2 For DHCP Request, GW2 directly responds to ACK. As shown in FIG. 4, when receiving the request from DHCP, GW2 analyzes the request to determine whether it belongs to the network segment. If it is an IP request to change the network segment, DHCP is normally allocated. If not, GW2 responds to the ACK and records the Request IP address and adds the IP address to the static reason table. And set a timer to check the static routing table regularly. If no further request is received from the terminal within the specified time, the record will be deleted.
  • the STA After receiving the DHCP response, the STA issues an ARP request.
  • ARP finds that the IP requested by the mobile terminal is not on the same network segment as its own, ARP will send its own gateway address as a response, allowing the mobile terminal to communicate normally.
  • the ARP proxy technology is used to replace hosts on different network segments to answer the host's ARP request.
  • the ARP processes the request and queries whether the destination IP is the local subnet. If yes, normal response processing; if not, use the MAC address of the gateway and the requested IP address to send a Response response.
  • the STA is still the gateway of the original subnet.
  • GW2 determines whether the destination IP is the DNS of the home network, and if so, it responds normally. If not, GW2 replaces the destination IP with the local network DNS and records it in the DNS conversion table, and sends it to the local subnet DNS. After processing this process, when responding to the mobile terminal, GW2 judges whether there is a record in the conversion table according to the recorded DNS conversion table. If there is a record, perform the inverse conversion and return it to the mobile terminal. If there is no record, then respond normally.
  • the present invention can be used as a software module of a gateway device, run in the gateway device, or can be an independent device connected to the gateway device in a serial manner.
  • the present invention greatly shortens the time delay during the roaming and switching process. Compared with the prior art, the present invention not only shortens the time delay caused by the switching, but also does not need to establish a tunnel communication between two subnets, and does not need to perform any Agent configuration greatly simplifies network management overhead.

Landscapes

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

Abstract

The present invention provides a system and method for implementing zero proxy IP fast roaming. The system comprises: a DHCP processing unit, used for receiving a DHCP request sent by a mobile terminal and making a DHCP ACK response; an ARP processing unit, used for receiving an ARP request from the mobile terminal; an DNS processing unit, used for receiving and analyzing an DNS request sent by the mobile terminal; and a static routing management unit, used for dynamically adding corresponding static routing entries according to a roaming access terminal, and periodically cleaning up expired static routing entries that are no longer used. The present invention can effectively solve the problems of data service interruption and data packet loss due to roaming handover delay, can shorten the network handover delay caused by re-acquisition of an IP address during the roaming process of the mobile terminal, and simplify the proxy configuration between subnets.

Description

一种实现零代理IP快速漫游的系统及方法A system and method for realizing zero-agent IP fast roaming 技术领域Technical field
本发明涉及无线通信和移动互联网领域,特别涉及一种移动终端在无线通信网络中进行跨越不同子网过程中的如何降低IP地址切换时延的系统及方法。The present invention relates to the field of wireless communication and mobile Internet, and in particular to a system and method for reducing the delay of IP address switching in a process in which a mobile terminal crosses different subnets in a wireless communication network.
背景技术Background technique
随着移动通信的发展,WLAN、LTE等不同的网络同时在为终端提供服务,当移动终端在移动过程中经常在不同子网间切换。如图1所示,移动终端(STA)在从子网1移动到子网2的过程中,通常情况下移动终端在不同子网使用不同的子网IP地址,这是由于子网部署来决定的。With the development of mobile communication, different networks such as WLAN and LTE are simultaneously providing services for terminals. When mobile terminals are moving, they often switch between different subnets. As shown in Figure 1, when a mobile terminal (STA) moves from subnet 1 to subnet 2, usually the mobile terminal uses different subnet IP addresses in different subnets, which is determined by the subnet deployment of.
一般无线网络中存在一个DHCP服务器,为接入的终端分配IP地址,移动终端为DHCP客户端,如图2所示,当移动终端接入到另一个无线网络后,移动终端会发起DHCP Request,DHCP服务器响应NCK时,移动终端会发起DHCP Discovery,DHCP Server应答DHCP offer,终端根据DHCP offer发出DHCP Request,服务器返回DHCP ACK完成IP获取。Generally, there is a DHCP server in the wireless network to assign IP addresses to the accessed terminals, and the mobile terminal is the DHCP client. As shown in Figure 2, when the mobile terminal accesses another wireless network, the mobile terminal will initiate a DHCP Request. When the DHCP server responds to the NCK, the mobile terminal initiates DHCP Discovery, the DHCP server responds to the DHCP offer, the terminal sends a DHCP Request according to the DHCP offer, and the server returns DHCP to complete the IP acquisition.
地址解析协议(Address Resolution Protocol,ARP)实现了通过IP地址得知其物理地址,当移动终端接入到网络后,获得IP地址后即会对外发送广播的ARP报文,实现(1)确定其它主机的IP地址是否与本机的IP地址冲突,当其它主机收到免费ARP报文后,如果发现该报文中的IP地址和自己的IP地址相同,则返回一个ARP回应给发送免费ARP报文的主机,告知该主机所用的IP地址有冲突。(2)当主机改变MAC地址时,通过发送免费ARP报文通知其它主机更新ARP缓存表。其中,ARP缓存表用于存储网络中各主机和路由器的IP地址到MAC地址映射。Address Resolution Protocol (ARP) realizes to know its physical address through IP address. When the mobile terminal accesses the network, it will send out broadcast ARP packets after obtaining the IP address to achieve (1) determine other Whether the IP address of the host machine conflicts with the IP address of the machine. When other hosts receive the free ARP message, if they find that the IP address in the message is the same as their own IP address, an ARP response is returned to send the free ARP message The host of the document informs the host that the IP address used is in conflict. (2) When the host changes the MAC address, it notifies other hosts to update the ARP cache table by sending free ARP messages. Among them, the ARP cache table is used to store the IP address to MAC address mapping of each host and router in the network.
网络地址转换(Network Address Translation,简称NAT)是用于私网内主机主动发起连接请求,数据包经由网关进行NAT地址转换后向上一级网关传输,经过多条路由送达公网服务器,连接建立以后可以双向传输数据;网关是NAT技术的实现主体设备,网关将局域网内主机的连接经过NAT转换并记录相关的转换信息为NAT表项后,将IP数据包源地址转换为网关上行端口的IP地址与上级一网关出口通信,而当收到上一级网关数据后,网关首先查询NAT表,如果能找到相应的NAT信息,则进行逆NAT转换后发回给局域网内主机,如此实现局域网内主机能完全的与公网服务器进行双向的传输。Network Address Translation (NAT) is used for private network hosts to initiate connection requests. Data packets are transferred to the next-level gateway through the gateway through NAT address translation. After multiple routes are sent to the public network server, the connection is established. The data can be transmitted in both directions in the future; the gateway is the main device that implements NAT technology. After the gateway converts the connection of the host in the LAN through NAT and records the related conversion information as a NAT entry, it converts the source address of the IP packet to the IP of the upstream port of the gateway The address communicates with the exit of the upper-level gateway. When receiving the upper-level gateway data, the gateway first queries the NAT table. If it can find the corresponding NAT information, it reverses the NAT conversion and sends it back to the host in the LAN. The host can complete two-way transmission with the public network server.
网关是为局域网内主机与外网进行通信的出口和入口设备,网关至少具有两个IP地址和对应的物理通信端口,其中一个外网IP用于与上级网关通信,另一个内外IP与局域网内主机通信。网关要与局域网主机进行通信时,通过查找IP路由表确定内网主机所连接的物理通信端口,查找到端口后将数据交给链路层进行发送。The gateway is an outlet and entrance device for the host in the LAN to communicate with the external network. The gateway has at least two IP addresses and corresponding physical communication ports. One of the external network IP is used to communicate with the superior gateway, and the other internal and external IP is connected to the local area network. Host communication. When the gateway wants to communicate with the local area network host, it determines the physical communication port to which the internal network host is connected by looking up the IP routing table. After finding the port, the data is handed over to the link layer for transmission.
DNS(Domain Name System,域名系统)是互联网运行最重要的基础设施,互联网中的任何一件事情几乎都是开始与一次的DNS查询,DNS主要的功能是将人类更好辨识的域名转换为IP地址。DNS的解析过程是是层级递归查询,当客户端访问一个网址时,不是直接去找根,而是(1)先查hosts文件;(2)如果没有,查本地DNS缓存;(3)如果没有,在查找DNS服务器;现查DNS服务器的本地DNS缓存,如果没有,再查询DNS服务器的解析库,都没有。DNS向根域发起请求,开始迭代查询。直到查到IP地址为止。DNS (Domain Name System) is the most important infrastructure for the operation of the Internet. Almost anything in the Internet is started with a DNS query. The main function of DNS is to convert human-recognized domain names into IP address. The DNS resolution process is a hierarchical recursive query. When the client accesses a web address, instead of directly searching for the root, (1) first check the hosts file; (2) if not, check the local DNS cache; (3) if not , Looking for the DNS server; now check the local DNS cache of the DNS server, if not, then query the DNS server's resolution library, none. DNS initiates a request to the root domain and starts iterative query. Until the IP address is found.
移动终端收到该IP地址之后,得到IP是私网IP地址,网络能够进行正常的通信,需要将私网IP转换成可以与Internet连接的公网IP地址。After receiving the IP address, the mobile terminal obtains that the IP is a private network IP address. The network can communicate normally, and the private network IP needs to be converted into a public network IP address that can be connected to the Internet.
NAT技术是用于私网内主机主动发起连接请求,数据包经由网关进行NAT地址转换后向上一级网关传输,经过多条路由送达公网服务器,连接建立以后可以双向传输数据;网关是NAT技术的实现主体设备,网关将局域网内主机的连接经过NAT转换并记录相关的转换信息为NAT表项后,将IP数据包源地址转换为网关上行端口的IP地址与上级一网关出口通信,而当收到上一级网关数据后,网关首先查询NAT表,如果能找到相应的NAT信息,则进行逆NAT转换后发回给局域网内主机,如此实现局域网内主机能完全的与公网服务器进行双向的传输。NAT technology is used to initiate connection requests from hosts in the private network. Data packets are transferred to a higher-level gateway through a NAT address conversion via a gateway, and then sent to a public network server through multiple routes. After the connection is established, data can be transmitted in both directions; the gateway is NAT The main equipment of the technology, the gateway converts the connection of the host in the LAN through NAT and records the relevant conversion information as a NAT entry, then converts the source address of the IP packet to the IP address of the upstream port of the gateway and communicates with the upper gateway exit, and After receiving the data from the upper-level gateway, the gateway first queries the NAT table. If it can find the corresponding NAT information, it reverses the NAT conversion and sends it back to the host in the LAN. In this way, the host in the LAN can completely communicate with the public network server. Two-way transmission.
静态路由:是一种路由的方式,路由项由手动配置,不会改变,即使网络状况已经改变或是重新被组态。一般来说,静态路由是由网络管理逐项加入路由表。Static routing: It is a routing method. The routing items are manually configured and will not change, even if the network conditions have changed or are reconfigured. Generally speaking, static routing is added to the routing table item by item by the network management.
移动因特网协议(IP)移动终端在沿它的路由拜访的各种网络中从一个网络自由切换到另一个网络,MIP协议描述了那些动作,即实现移动终端在从一个接入路由器到另外一个接入路由器的切换期间保持连接的动作。然而,移动终端的典型切换需要链路层和IP层信令。并且在切换期间移动终端无法发送或接收数据分组。该时间段被称作为切换延迟。在许多情况下,对于延迟敏感网络业务来时,切换时不可接收的。因此对于此类服务,可能需要无缝移动性管理技术。Mobile Internet Protocol (IP) mobile terminals switch freely from one network to another in various networks visited along its route. The MIP protocol describes those actions, that is, the mobile terminal is connected from one access router to another. The action of keeping the connection during the switch into the router. However, the typical handover of mobile terminals requires link layer and IP layer signaling. And during the handover, the mobile terminal cannot send or receive data packets. This period of time is called the switching delay. In many cases, when delay-sensitive network services come, they are unacceptable during handover. Therefore, for such services, seamless mobility management technology may be required.
对于这种时延,可以通过快速切换和上下文传输实现无缝切换。然而,一般地快速切换机制仅减少IP层信令延迟而不解决链路层延迟。但是链路层辅助有助于消除或者 减少由于链路层建立而造成的延迟。For this delay, seamless switching can be achieved through fast switching and context transmission. However, the general fast switching mechanism only reduces the IP layer signaling delay and does not solve the link layer delay. But link layer assistance helps to eliminate or reduce the delay caused by link layer establishment.
发明内容Summary of the invention
针对上述现有技术中存在的问题,本发明的目的是提供一种实现零代理IP快速漫游的系统及方法,以解决由于漫游切换时延造成数据服务中断,数据分组丢失的问题。In view of the above problems in the prior art, the object of the present invention is to provide a system and method for implementing fast roaming with zero proxy IP to solve the problems of data service interruption and data packet loss due to roaming switching delay.
为实现上述目的,本发明采用的技术方案为:To achieve the above objectives, the technical solutions adopted by the present invention are:
一种实现零代理IP快速漫游的系统,包括:A system for implementing zero-agent IP fast roaming, including:
DHCP处理单元,由DHCP接收模块和DHCP应答模块组成,用于接收移动终端发送的DHCP请求,并进行DHCP ACK响应,以使得移动终端在接入到新子网时重新获取IP地址;The DHCP processing unit, which is composed of a DHCP receiving module and a DHCP response module, is used to receive the DHCP request sent by the mobile terminal and perform a DHCP ACK response, so that the mobile terminal obtains the IP address again when accessing the new subnet;
ARP处理单元,由ARP接收模块和ARP应答模块组成,用于接收移动终端的ARP请求,不管移动终端发送的ARP请求是否为本子网地址,都使用本子网网关的MAC地址进行应答;The ARP processing unit is composed of an ARP receiving module and an ARP reply module. It is used to receive ARP requests from the mobile terminal. Regardless of whether the ARP request sent by the mobile terminal is the address of the subnet, the MAC address of the gateway of the subnet is used to respond;
DNS处理单元,由DNS接收模块和DNS转换模块组成,用于接收和分析移动终端发送的DNS请求,将DNS请求的DNS server IP转换为本子网的DNS server IP,转发给本子网的DNS server进行解析;本子网DNS server返回的数据再经过DNS转换模块经过逆向转换再返回给移动终端;The DNS processing unit is composed of a DNS receiving module and a DNS conversion module. It is used to receive and analyze the DNS request sent by the mobile terminal, convert the DNS request DNS server IP to the subnet DNS server IP, and forward it to the subnet DNS server. Parsing; the data returned by the DNS server in this subnet is then reverse converted by the DNS conversion module and then returned to the mobile terminal;
静态路由管理单元,用于根据漫游接入的终端动态添加相应的静态路由项,并定期的进行清理不再使用的过期静态路由项。The static route management unit is used to dynamically add corresponding static route items according to the roaming access terminal, and periodically clean out the expired static route items that are no longer used.
一种实现零代理IP快速漫游的方法,包括以下步骤:A method for implementing zero-agent IP fast roaming includes the following steps:
(1)移动终端从一个子网切换到另一个子网,移动终端不需要改变原有的IP配置,对于DHCP请求,本子网直接响应ACK;(1) The mobile terminal switches from one subnet to another subnet. The mobile terminal does not need to change the original IP configuration. For DHCP requests, this subnet directly responds to ACK;
(2)本子网收到来自移动终端的DHCP请求时,对DHCP请求进行分析,判断是否是属于该网段,如果是该网段的IP请求,则DHCP正常分配;如果不是,则执行步骤(3);(2) When the subnet receives the DHCP request from the mobile terminal, it analyzes the DHCP request to determine whether it belongs to the network segment. If it is an IP request for the network segment, DHCP is normally allocated; if it is not, the steps are performed ( 3);
(3)本子网响应ACK,并且记录DHCP请求的IP地址,把该IP地址加入到静态理由表中;并且设置一个定时器,定时检查一次该静态路由表,如果在规定的时间内没有收到终端的再次请求,则删除该条记录;(3) The subnet responds to the ACK, and records the IP address of the DHCP request, add the IP address to the static reason table; and set a timer to check the static routing table regularly, if it is not received within the specified time When the terminal requests again, the record is deleted;
(4)移动终端收到DHCP响应之后,发出ARP请求,当ARP处理单元发现移动终端所请求的IP和自己的不在同一网段时,ARP处理单元将会发送自己的网关地址作为响应,使得移动终端正常通信;(4) After receiving the DHCP response, the mobile terminal issues an ARP request. When the ARP processing unit finds that the IP requested by the mobile terminal and its own are not in the same network segment, the ARP processing unit will send its own gateway address as a response, making the mobile The terminal communicates normally;
(5)DNS处理单元收到DNS请求之后,移动终端还是原来子网的网关,本子网网关判断目的IP是否是本网的DNS,如果是,则正常响应,如果不是,本子网光管替换目的IP为本网DNS IP并记录在DNS转换表中,发送给本子网DNS;(5) After the DNS processing unit receives the DNS request, the mobile terminal is still the gateway of the original subnet. The gateway of the subnet judges whether the destination IP is the DNS of the home network. If it is, it responds normally. If it is not, the subnet light pipe replacement purpose IP is the DNS of this network and recorded in the DNS conversion table, and sent to the DNS of this subnet;
(6)上述步骤处理完之后,响应给移动终端时,移动终端根据记录的DNS转换表判断是否在转换表中有记录,如果有记录进行逆转换,返回给移动终端,如果没有记录,则进行正常的响应。(6) After the above steps are processed, when responding to the mobile terminal, the mobile terminal judges whether there is a record in the conversion table according to the recorded DNS conversion table, if there is a record to reverse conversion, it is returned to the mobile terminal, if there is no record, then proceed Normal response.
所述步骤(1)中,对移动终端上一次接入的网络不需要任何的代理关联,无需要知道终端上一次连接的网络,能够为任意的网关实现完全代理。In the step (1), no proxy association is required for the network that the mobile terminal last accessed, and there is no need to know the network that the terminal was connected to last time, and a complete proxy can be implemented for any gateway.
所述步骤(4)中,当ARP处理单元接收到移动终端发来的ARP请求时,ARP处理单元处理该请求,查询该目的IP是否为本子网,如果是则正常应答处理;如果不是,使用本网关的MAC地址及请求的IP地址,发送Response响应。In the step (4), when the ARP processing unit receives the ARP request sent by the mobile terminal, the ARP processing unit processes the request, inquires whether the destination IP is the local subnet, and if so, responds normally; if not, uses The MAC address of the gateway and the requested IP address send a Response.
有益效果:本发明的实现零代理IP快速漫游的系统及方法,无代理的任意IP的适配,对移动终端上一次的网络不需要任何代理关联,采用本方法的网关无需知道终端上一次连接的网络,可以为任意网关实现完全代理;当新终端接入时,终端不需要改变原有的IP配置,从而大大缩短IP切换的时延。通过分析以上问题,本发明提供了一种原理简单,易于实施,易于操作的简单方法。本发明能够有效解决由于漫游切换时延造成数据服务中断,数据分组丢失。本发明可以缩短移动终端漫游过程中由于重新获取IP地址所产生的网络切换时延,简化了子网间的代理配置。Beneficial effect: The system and method for realizing zero-agent IP fast roaming of the present invention, the adaptation of any IP without agents does not require any agent association for the last network of the mobile terminal, and the gateway adopting this method does not need to know the last connection of the terminal The network can realize full proxy for any gateway; when a new terminal accesses, the terminal does not need to change the original IP configuration, thereby greatly reducing the delay of IP switching. By analyzing the above problems, the present invention provides a simple method with simple principles, easy implementation, and easy operation. The invention can effectively solve data service interruption and data packet loss due to roaming switching delay. The invention can shorten the network switching delay caused by reacquiring the IP address during the roaming process of the mobile terminal, and simplify the proxy configuration between the subnets.
附图说明BRIEF DESCRIPTION
图1为移动终端从一个局域网切换到另外一个局域网的示意图;1 is a schematic diagram of a mobile terminal switching from one local area network to another local area network;
图2为本发明的系统的构架图;2 is a structural diagram of the system of the present invention;
图3为移动终端进入到一个子网时,正常的请求和应答的示意;3 is a schematic diagram of normal requests and responses when a mobile terminal enters a subnet;
图4为DHCP处理流程示意图;Figure 4 is a schematic diagram of the DHCP processing flow;
图5为ARP处理流程示意图;Figure 5 is a schematic diagram of the ARP processing flow;
图6为DNS处理流程示意图。Figure 6 is a schematic diagram of the DNS processing flow.
具体实施方式detailed description
下面结合附图对本发明做更进一步的解释。The present invention will be further explained below with reference to the drawings.
本发明的一种实现零代理IP快速漫游的系统,包括:The system for realizing zero-agent IP fast roaming of the present invention includes:
DHCP处理单元,由DHCP接收模块和DHCP应答模块组成,用于接收移动终端发送 的DHCP请求,并进行DHCP ACK响应,以使得移动终端在接入到新子网时重新获取IP地址;当移动终端(简称STA)从一个子网切换到另一个子网的过程如图1所示,STA在子网1中获取到的IP地址是192.168.1.0/24中的一个IP地址;当移动节点从一个子网1切换到另外一个子网2时,终端会首先发出DHCP请求。由于子网1和子网2的网关不同,移动终端请求的IP还是在子网1时获得的IP地址,GW2会发出NAK的响应。接着移动终端会发起DHCP Discovery,DHCP Server应答DHCP offer,终端根据DHCP offer发出DHCP Request,服务器返回DHCP ACK完成IP获取。本发明中,不管移动终端用什么样的IP地址发送请求,网关2(Gateway,简称GW2)都会做出ACK响应,当STA收到ACK后认为新接入的子网2的配置与子网1的配置相同,不需要重新发起DHCP请求。The DHCP processing unit is composed of a DHCP receiving module and a DHCP response module, and is used to receive the DHCP request sent by the mobile terminal and perform a DHCP ACK response to enable the mobile terminal to reacquire an IP address when accessing a new subnet; when the mobile terminal (Referred to as STA) The process of switching from one subnet to another is shown in Figure 1. The IP address obtained by STA in subnet 1 is an IP address in 192.168.1.0/24; when the mobile node When subnet 1 is switched to another subnet 2, the terminal will first issue a DHCP request. Because the gateways of subnet 1 and subnet 2 are different, the IP requested by the mobile terminal is still the IP address obtained during subnet 1, and GW2 will send a NAK response. Then the mobile terminal will initiate DHCP Discovery, DHCP Server responds to the DHCP offer, the terminal sends out a DHCP Request according to the DHCP offer, and the server returns DHCP to complete the IP acquisition. In the present invention, no matter what IP address the mobile terminal uses to send the request, the gateway 2 (Gateway, GW2 for short) will make an ACK response. When the STA receives the ACK, it considers the configuration of the newly accessed subnet 2 and the subnet 1 The configuration is the same, no need to re-initiate the DHCP request.
ARP处理单元,由ARP接收模块和ARP应答模块组成,用于接收移动终端的ARP请求,不管移动终端发送的ARP请求是否为本子网地址,都使用本子网网关的MAC地址进行应答;ARP接收和应答单元与通常的ARP协议处理不同的地方在于,当收到移动终端的ARP请求,接着根据ARP协议发起对网关发出ARP请求,主机发送的请求将包含目标IP地址的ARP请求广播到网络上的所有主机,GW2接收到ARP请求之后,将GW2的MAC地址响应给移动终端。此时漫游接入的移动终端完成了网络层的切换,建立了通信链路。当移动终端完成通信链路的切换后,但是仍然使用的是子网1中的IP配置,为实现漫游接入的STA能在子网2中进行双向通信,GW2中将漫游接入的STA在的IP地址作为静态路由加入本地路由表,该静态路由对应于GW2局域网端口,如此GW2的路由处理即可自动的实现对漫游终端的不同网段代理。The ARP processing unit is composed of an ARP receiving module and an ARP reply module. It is used to receive the ARP request of the mobile terminal. Regardless of whether the ARP request sent by the mobile terminal is the address of the subnet, the MAC address of the gateway of the subnet is used to respond; ARP receiving and The difference between the response unit and the normal ARP protocol is that when an ARP request from the mobile terminal is received, and then an ARP request is initiated to the gateway according to the ARP protocol, the request sent by the host broadcasts the ARP request containing the target IP address to the network. After all the hosts, GW2 receives the ARP request, it responds to the mobile terminal with the MAC address of GW2. At this time, the roaming mobile terminal has completed the network layer switching and established the communication link. After the mobile terminal completes the switching of the communication link, but still uses the IP configuration in subnet 1, in order to realize the roaming access STA can perform bidirectional communication in subnet 2, GW2 will roaming access STA in The IP address is added to the local routing table as a static route. The static route corresponds to the GW2 LAN port, so that GW2's routing process can automatically implement proxy for different network segments of the roaming terminal.
DNS处理单元,由DNS接收模块和DNS转换模块组成,用于接收和分析移动终端发送的DNS请求,将DNS请求的DNS server IP转换为本子网的DNS server IP,转发给本子网的DNS server进行解析;本子网DNS server返回的数据再经过DNS转换模块经过逆向转换再返回给移动终端;终端需要访问公网网站时,会先进行DNS解析,获取网站对应的IP地址,GW2接收到STA的DNS请求时,将DNS请求的目的IP修改为子网2中的DNS IP,再进行转发,同时建立DNS转换表,当DNS服务器返回应答时,将DNS转换表中的信息再进行逆转换,这样使得STA能完全像在原子网1一样完成DNS的解析过程。The DNS processing unit is composed of a DNS receiving module and a DNS conversion module. It is used to receive and analyze the DNS request sent by the mobile terminal, convert the DNS request DNS server IP to the subnet DNS server IP, and forward it to the subnet DNS server. Resolution; the data returned by the DNS server in this subnet is then reverse converted by the DNS conversion module and then returned to the mobile terminal; when the terminal needs to access the public website, it will first perform DNS resolution to obtain the corresponding IP address of the website, and GW2 receives the DNS of the STA When requesting, modify the destination IP of the DNS request to the DNS IP in subnet 2 and then forward it. At the same time, the DNS conversion table is established. When the DNS server returns a response, the information in the DNS conversion table is reverse converted, which makes STA can complete the DNS resolution process exactly as in Atomic Network 1.
静态路由管理单元,用于根据漫游接入的终端动态添加相应的静态路由项,并定期 的进行清理不再使用的过期静态路由项。The static route management unit is used to dynamically add the corresponding static route items according to the roaming access terminal, and regularly clean out the expired static route items that are no longer used.
一种实现零代理IP快速漫游的方法,包括以下步骤:A method for implementing zero-agent IP fast roaming includes the following steps:
(1)移动终端从一个子网切换到另一个子网,移动终端不需要改变原有的IP配置,对于DHCP请求,本子网直接响应ACK;其中,对移动终端上一次接入的网络不需要任何的代理关联,无需要知道终端上一次连接的网络,能够为任意的网关实现完全代理;(1) The mobile terminal switches from one subnet to another. The mobile terminal does not need to change the original IP configuration. For DHCP requests, this subnet directly responds to the ACK. Among them, it is not necessary for the network that the mobile terminal last accessed. Any proxy association, without the need to know the network that the terminal was connected to last time, can realize a complete proxy for any gateway;
(2)本子网收到来自移动终端的DHCP请求时,对DHCP请求进行分析,判断是否是属于该网段,如果是该网段的IP请求,则DHCP正常分配;如果不是,则执行步骤(3);(2) When the subnet receives the DHCP request from the mobile terminal, it analyzes the DHCP request to determine whether it belongs to the network segment. If it is an IP request for the network segment, DHCP is normally allocated; if it is not, the steps are performed ( 3);
(3)本子网响应ACK,并且记录DHCP请求的IP地址,把该IP地址加入到静态理由表中;并且设置一个定时器,定时检查一次该静态路由表,如果在规定的时间内没有收到终端的再次请求,则删除该条记录;(3) The subnet responds to the ACK, and records the IP address of the DHCP request, add the IP address to the static reason table; and set a timer to check the static routing table regularly, if it is not received within the specified time When the terminal requests again, the record is deleted;
(4)移动终端收到DHCP响应之后,发出ARP请求,当ARP处理单元发现移动终端所请求的IP和自己的不在同一网段时,ARP处理单元将会发送自己的网关地址作为响应,使得移动终端正常通信;当ARP处理单元接收到移动终端发来的ARP请求时,ARP处理单元处理该请求,查询该目的IP是否为本子网,如果是则正常应答处理;如果不是,使用本网关的MAC地址及请求的IP地址,发送Response响应。(4) After receiving the DHCP response, the mobile terminal issues an ARP request. When the ARP processing unit finds that the IP requested by the mobile terminal and its own are not in the same network segment, the ARP processing unit will send its own gateway address as a response, making the mobile The terminal communicates normally; when the ARP processing unit receives the ARP request from the mobile terminal, the ARP processing unit processes the request, inquires whether the destination IP is the local subnet, and if so, responds normally; if not, uses the MAC of the gateway Address and requested IP address, send Response response.
(5)DNS处理单元收到DNS请求之后,移动终端还是原来子网的网关,本子网网关判断目的IP是否是本网的DNS,如果是,则正常响应,如果不是,本子网光管替换目的IP为本网DNS IP并记录在DNS转换表中,发送给本子网DNS;(5) After the DNS processing unit receives the DNS request, the mobile terminal is still the gateway of the original subnet. The gateway of the subnet judges whether the destination IP is the DNS of the home network. If it is, it responds normally. If it is not, the subnet light pipe replacement purpose IP is the DNS of this network and recorded in the DNS conversion table, and sent to the DNS of this subnet;
(6)上述步骤处理完之后,响应给移动终端时,移动终端根据记录的DNS转换表判断是否在转换表中有记录,如果有记录进行逆转换,返回给移动终端,如果没有记录,则进行正常的响应。(6) After the above steps are processed, when responding to the mobile terminal, the mobile terminal judges whether there is a record in the conversion table according to the recorded DNS conversion table, if there is a record to reverse conversion, it is returned to the mobile terminal, if there is no record, then proceed Normal response.
本发明中,本子网是指移动终端从一个子网切换到另一个子网的过程中要连接的子网,即:如图1所示,本子网是指移动终端(STA)在从子网1移动到子网2的过程中的子网2。In the present invention, this subnet refers to the subnet to which the mobile terminal is to be connected when switching from one subnet to another subnet, that is, as shown in FIG. 1, this subnet refers to the mobile terminal (STA) in the subnet 1 Subnet 2 in the process of moving to subnet 2.
实施例Examples
如图1所示,展示了一种终端从一个局域网的接入点切换到另一个局域网的接入点的一般实施过程。移动终端从子网1移动到子网2时,对于移动终端发出的DHCP请求网关(Gateway,简称GW2)直接响应。一般情况下移动终端发出的请求会按照如图3所示,STA移会发起DHCP Discovery,DHCP Server应答DHCP offer,终端根据DHCP offer 发出DHCP Request,服务器返回DHCP ACK完成IP获取。本方法提出一种无代理的任意IP的适配,对移动终端上一次接入的网络不需要任何的代理关联,采用本方法的网关无需要知道终端上一次连接的网络,可以为任意的网关实现完全代理;当新终端接入时,终端不需要改变原有的IP配置,对于DHCP Request,GW2直接响应ACK。如图4所示,GW2收到来自DHCP Request请求时,对request进行分析,判断是否是属于该网段,如果是改网段的IP请求,则DHCP正常分配。如果不是,GW2响应ACK,并且记录Request IP地址,把该IP地址加入到静态理由表中。并且设置一个定时器,定时检查一次该静态路由表。如果在规定的时间内没有收到终端的再次请求,则删除该条记录。As shown in FIG. 1, a general implementation process of a terminal switching from an access point in one local area network to an access point in another local area network is shown. When the mobile terminal moves from subnet 1 to subnet 2, the gateway (Gateway, GW2 for short) responds directly to the DHCP request sent by the mobile terminal. Under normal circumstances, the request sent by the mobile terminal will be as shown in Figure 3. The STA will initiate DHCP Discovery, DHCP Server responds to the DHCP offer, the terminal sends a DHCP Request according to the DHCP offer, and the server returns DHCP to complete the IP acquisition. This method proposes a proxy-free adaptation of any IP, which does not require any proxy association for the network that the mobile terminal last accessed. The gateway adopting this method does not need to know the network that the terminal was last connected to, and can be any gateway. A complete proxy is implemented; when a new terminal accesses, the terminal does not need to change the original IP configuration. For DHCP Request, GW2 directly responds to ACK. As shown in FIG. 4, when receiving the request from DHCP, GW2 analyzes the request to determine whether it belongs to the network segment. If it is an IP request to change the network segment, DHCP is normally allocated. If not, GW2 responds to the ACK and records the Request IP address and adds the IP address to the static reason table. And set a timer to check the static routing table regularly. If no further request is received from the terminal within the specified time, the record will be deleted.
STA收到DHCP响应之后,发出ARP请求,当ARP发现移动终端所请求的IP和自己的不在同一网段时,ARP将会发送自己的网关地址作为响应,使得移动终端正常通信。ARP代理技术用来代替处于不同网段的主机回答本主机的ARP请求。如图5所示,当移动终端收到ARP请求时,ARP处理该请求,查询该目的IP是否为本子网。如果是则正常应答处理;如果不是,使用本网关的MAC地址及请求的IP地址,发送Response响应。After receiving the DHCP response, the STA issues an ARP request. When ARP finds that the IP requested by the mobile terminal is not on the same network segment as its own, ARP will send its own gateway address as a response, allowing the mobile terminal to communicate normally. The ARP proxy technology is used to replace hosts on different network segments to answer the host's ARP request. As shown in FIG. 5, when the mobile terminal receives the ARP request, the ARP processes the request and queries whether the destination IP is the local subnet. If yes, normal response processing; if not, use the MAC address of the gateway and the requested IP address to send a Response response.
如图6所示,收到DNS请求之后,STA还是原来子网的网关。GW2判断目的IP是否是本网的DNS,如果是,则正常响应。如果不是,GW2替换目的IP为本网DNS IP并记录在DNS转换表中,发送给本子网DNS。处理完这一过程之后,响应给移动终端时,GW2根据记录的DNS转换表判断是否在转换表中有记录。如果有记录进行逆转换,返回给移动终端,如果没有记录,则进行正常的响应。As shown in Figure 6, after receiving the DNS request, the STA is still the gateway of the original subnet. GW2 determines whether the destination IP is the DNS of the home network, and if so, it responds normally. If not, GW2 replaces the destination IP with the local network DNS and records it in the DNS conversion table, and sends it to the local subnet DNS. After processing this process, when responding to the mobile terminal, GW2 judges whether there is a record in the conversion table according to the recorded DNS conversion table. If there is a record, perform the inverse conversion and return it to the mobile terminal. If there is no record, then respond normally.
本发明在具体实施中可以作为网关设备的软件模块,运行在网关设备中,也可以是一个独立的装置以串联方式接入到网关设备之前。In a specific implementation of the present invention, the present invention can be used as a software module of a gateway device, run in the gateway device, or can be an independent device connected to the gateway device in a serial manner.
本发明在漫游切换的过程中大大缩短了时延,与现有技术的对比,本发明即缩短了切换带来的时延,又不需要在两个子网间建立隧道通信,不需要进行任何的代理配置,大大简化了网络的管理开销。The present invention greatly shortens the time delay during the roaming and switching process. Compared with the prior art, the present invention not only shortens the time delay caused by the switching, but also does not need to establish a tunnel communication between two subnets, and does not need to perform any Agent configuration greatly simplifies network management overhead.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only the preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and retouches can be made. These improvements and retouches also It should be regarded as the protection scope of the present invention.

Claims (4)

  1. 一种实现零代理IP快速漫游的系统,其特征在于:包括:A system for realizing zero-agent IP fast roaming, which is characterized by:
    DHCP处理单元,由DHCP接收模块和DHCP应答模块组成,用于接收移动终端发送的DHCP请求,并进行DHCP ACK响应,以使得移动终端在接入到新子网时重新获取IP地址;The DHCP processing unit, which is composed of a DHCP receiving module and a DHCP response module, is used to receive the DHCP request sent by the mobile terminal and perform a DHCP ACK response, so that the mobile terminal obtains the IP address again when accessing the new subnet;
    ARP处理单元,由ARP接收模块和ARP应答模块组成,用于接收移动终端的ARP请求,不管移动终端发送的ARP请求是否为本子网地址,都使用本子网网关的MAC地址进行应答;The ARP processing unit is composed of an ARP receiving module and an ARP reply module. It is used to receive ARP requests from the mobile terminal. Regardless of whether the ARP request sent by the mobile terminal is the address of the subnet, the MAC address of the gateway of the subnet is used to respond;
    DNS处理单元,由DNS接收模块和DNS转换模块组成,用于接收和分析移动终端发送的DNS请求,将DNS请求的DNS server IP转换为本子网的DNS server IP,转发给本子网的DNS server进行解析;本子网DNS server返回的数据再经过DNS转换模块经过逆向转换再返回给移动终端;The DNS processing unit is composed of a DNS receiving module and a DNS conversion module. It is used to receive and analyze the DNS request sent by the mobile terminal, convert the DNS request DNS server IP to the subnet DNS server IP, and forward it to the subnet DNS server. Parsing; the data returned by the DNS server in this subnet is then reverse converted by the DNS conversion module and then returned to the mobile terminal;
    静态路由管理单元,用于根据漫游接入的终端动态添加相应的静态路由项,并定期的进行清理不再使用的过期静态路由项。The static route management unit is used to dynamically add corresponding static route items according to the roaming access terminal, and periodically clean out the expired static route items that are no longer used.
  2. 一种实现零代理IP快速漫游的方法,其特征在于:包括以下步骤:A method for implementing zero-agent IP fast roaming, which is characterized by the following steps:
    (1)移动终端从一个子网切换到另一个子网,移动终端不需要改变原有的IP配置,对于DHCP请求,本子网直接响应ACK;(1) The mobile terminal switches from one subnet to another subnet. The mobile terminal does not need to change the original IP configuration. For DHCP requests, this subnet directly responds to ACK;
    (2)本子网收到来自移动终端的DHCP请求时,对DHCP请求进行分析,判断是否是属于该网段,如果是该网段的IP请求,则DHCP正常分配;如果不是,则执行步骤(3);(2) When the subnet receives the DHCP request from the mobile terminal, it analyzes the DHCP request to determine whether it belongs to the network segment. If it is an IP request for the network segment, DHCP is normally allocated; if it is not, the steps are performed ( 3);
    (3)本子网响应ACK,并且记录DHCP请求的IP地址,把该IP地址加入到静态理由表中;并且设置一个定时器,定时检查一次该静态路由表,如果在规定的时间内没有收到终端的再次请求,则删除该条记录;(3) The subnet responds to the ACK, and records the IP address of the DHCP request, add the IP address to the static reason table; and set a timer to check the static routing table regularly, if it is not received within the specified time When the terminal requests again, the record is deleted;
    (4)移动终端收到DHCP响应之后,发出ARP请求,当ARP处理单元发现移动终端所请求的IP和自己的不在同一网段时,ARP处理单元将会发送自己的网关地址作为响应,使得移动终端正常通信;(4) After receiving the DHCP response, the mobile terminal issues an ARP request. When the ARP processing unit finds that the IP requested by the mobile terminal and its own are not in the same network segment, the ARP processing unit will send its own gateway address as a response, making the mobile The terminal communicates normally;
    (5)DNS处理单元收到DNS请求之后,移动终端还是原来子网的网关,本子网网关判断目的IP是否是本网的DNS,如果是,则正常响应,如果不是,本子网光管替换目的IP为本网DNS IP并记录在DNS转换表中,发送给本子网DNS;(5) After the DNS processing unit receives the DNS request, the mobile terminal is still the gateway of the original subnet. The gateway of this subnet judges whether the destination IP is the DNS of this network. If it is, it responds normally. IP is the DNS of this network and recorded in the DNS conversion table, and sent to the DNS of this subnet;
    (6)上述步骤处理完之后,响应给移动终端时,移动终端根据记录的DNS转换表判断是否在转换表中有记录,如果有记录进行逆转换,返回给移动终端,如果没有记录, 则进行正常的响应。(6) After the above steps are processed, when responding to the mobile terminal, the mobile terminal judges whether there is a record in the conversion table according to the recorded DNS conversion table. If there is a record, it reverses the conversion and returns to the mobile terminal. Normal response.
  3. 根据权利要求2所述的实现零代理IP快速漫游的方法,其特征在于:所述步骤(1)中,对移动终端上一次接入的网络不需要任何的代理关联,无需要知道终端上一次连接的网络,能够为任意的网关实现完全代理。The method for implementing zero-agent IP fast roaming according to claim 2, characterized in that: in the step (1), no agent association is required for the network last accessed by the mobile terminal, and there is no need to know the terminal last time The connected network can realize complete proxy for any gateway.
  4. 根据权利要求2所述的实现零代理IP快速漫游的方法,其特征在于:所述步骤(4)中,当ARP处理单元接收到移动终端发来的ARP请求时,ARP处理单元处理该请求,查询该目的IP是否为本子网,如果是则正常应答处理;如果不是,使用本网关的MAC地址及请求的IP地址,发送Response响应。The method for implementing zero-agent IP fast roaming according to claim 2, wherein in step (4), when the ARP processing unit receives the ARP request from the mobile terminal, the ARP processing unit processes the request, Inquire whether the destination IP is the subnet, if it is, then respond normally; if not, use the MAC address of the gateway and the requested IP address to send a Response.
PCT/CN2019/112847 2018-11-30 2019-10-23 System and method for implementing zero proxy ip fast roaming WO2020108182A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811454747.9 2018-11-30
CN201811454747.9A CN109413226A (en) 2018-11-30 2018-11-30 A kind of system and method for realizing zero Agent IP fast roaming

Publications (1)

Publication Number Publication Date
WO2020108182A1 true WO2020108182A1 (en) 2020-06-04

Family

ID=65456513

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/112847 WO2020108182A1 (en) 2018-11-30 2019-10-23 System and method for implementing zero proxy ip fast roaming

Country Status (2)

Country Link
CN (1) CN109413226A (en)
WO (1) WO2020108182A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413226A (en) * 2018-11-30 2019-03-01 南京邮电大学 A kind of system and method for realizing zero Agent IP fast roaming
CN109861892A (en) * 2019-03-28 2019-06-07 新华三技术有限公司 A kind of terminal roaming method and device
CN111741500B (en) * 2020-08-03 2020-12-01 成都极米科技股份有限公司 Roaming method in multilink scene, multilink device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621449A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Methods and device for terminal access and proxy update in mesh network
US20100293250A1 (en) * 2009-05-14 2010-11-18 Avaya Inc. Method to allow seamless connectivity for wireless devices in dhcp snooping/dynamic arp inspection/ip source guard enabled unified network
CN102571516A (en) * 2012-02-09 2012-07-11 北京傲天动联技术有限公司 Method for employing random static IP address by user equipment to get online
CN109413226A (en) * 2018-11-30 2019-03-01 南京邮电大学 A kind of system and method for realizing zero Agent IP fast roaming

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1133350C (en) * 2002-08-15 2003-12-31 西安西电捷通无线网络通信有限公司 Method for implementing roaming of mobile terminal over IP networks by active ARP
WO2008073438A2 (en) * 2006-12-08 2008-06-19 Wefi, Inc. Expiditing seamless roaming in heterogenous networking
CN101510900A (en) * 2008-12-19 2009-08-19 北京交通大学 Method for configuring route of mobile terminal in PMIPv4
US9119121B2 (en) * 2013-05-10 2015-08-25 Qualcomm Incorporated Systems and methods for WLAN roaming
CN104468866B (en) * 2014-12-26 2017-11-21 陈晨 A kind of multiple gateway terminal fast roaming method in WLAN
CN108055254B (en) * 2017-12-07 2021-01-15 锐捷网络股份有限公司 Method and device for non-perception authentication
CN108063839A (en) * 2017-12-29 2018-05-22 深圳市九洲电器有限公司 A kind of method for accessing network and the device for accessing network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621449A (en) * 2008-06-30 2010-01-06 华为技术有限公司 Methods and device for terminal access and proxy update in mesh network
US20100293250A1 (en) * 2009-05-14 2010-11-18 Avaya Inc. Method to allow seamless connectivity for wireless devices in dhcp snooping/dynamic arp inspection/ip source guard enabled unified network
CN102571516A (en) * 2012-02-09 2012-07-11 北京傲天动联技术有限公司 Method for employing random static IP address by user equipment to get online
CN109413226A (en) * 2018-11-30 2019-03-01 南京邮电大学 A kind of system and method for realizing zero Agent IP fast roaming

Also Published As

Publication number Publication date
CN109413226A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
US7586879B2 (en) Client roaming from a first access node to a second access node within a wireless network
US8064404B2 (en) Method of subnet roaming within a network
US9307393B2 (en) Peer-to-peer mobility management in heterogeneous IPV4 networks
US8804746B2 (en) Network based on identity identifier and location separation architecture backbone network, and network element thereof
CN106790732B (en) Address translation method, device and system, and network identification control method and device
US8711749B2 (en) Information obtaining and notification, data message forwarding and handover method and access node
US20080288614A1 (en) Client Addressing And Roaming In A Wireless Network
US9628377B2 (en) Method for link failure detection and session transfer to a lively link in the multihoming environment of ID/locator split-based networks
WO2020108182A1 (en) System and method for implementing zero proxy ip fast roaming
US20080107096A1 (en) User locating system, method and server in packet-based netwok
EP3754949B1 (en) Method for acquiring and providing service, and user equipment and management server
JP3538527B2 (en) Wireless communication system and wireless communication method
KR100884434B1 (en) Method and apparatus for obtaining server information in a wireless network
JP3745616B2 (en) Relay device
CN110691150A (en) SDN-based IPv4 and IPv6 interconnection method and system
JP2013526107A (en) Data message processing method, system, and access service node
US8705471B2 (en) Method and system for implementing ID/locator mapping
JP2002217941A (en) Network address reallocating method and router
WO2011050679A1 (en) Communication network and terminal access method implemented based on wimax network framework
JP4076701B2 (en) Node equipment
KR100355288B1 (en) Apparatus and method for providing service server functionality to the hosts of a private network
WO2012088828A1 (en) Method, system and access gateway router for table maintenance
JP5342070B2 (en) Method and system for realizing information interaction in next generation network
JP2006203560A (en) Ha address acquisition method and inter-heterogeneous-network interconnection system
KR100931383B1 (en) Handover Method and Terminal Registration Method in IP-based Mobile Communication System

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: 19889283

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19889283

Country of ref document: EP

Kind code of ref document: A1