CN107979854B - Wireless routing switching method, access router and communication terminal - Google Patents

Wireless routing switching method, access router and communication terminal Download PDF

Info

Publication number
CN107979854B
CN107979854B CN201610935058.4A CN201610935058A CN107979854B CN 107979854 B CN107979854 B CN 107979854B CN 201610935058 A CN201610935058 A CN 201610935058A CN 107979854 B CN107979854 B CN 107979854B
Authority
CN
China
Prior art keywords
access router
terminal
message
address
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610935058.4A
Other languages
Chinese (zh)
Other versions
CN107979854A (en
Inventor
刘大伟
胡士辉
于德雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610935058.4A priority Critical patent/CN107979854B/en
Priority to PCT/CN2017/106726 priority patent/WO2018077097A1/en
Publication of CN107979854A publication Critical patent/CN107979854A/en
Application granted granted Critical
Publication of CN107979854B publication Critical patent/CN107979854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0019Control or signalling for completing the hand-off for data sessions of end-to-end connection adapted for mobile IP [MIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/34Modification of an existing route
    • H04W40/36Modification of an existing route due to handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a wireless route switching method, an access router and a communication terminal, wherein the method comprises the following steps: a first access router receives a first notification message sent by a terminal; the first access router caches the terminal data packet based on the first notification message; the first access router receives a second notification message sent by the terminal; the first access router changes the destination IP address of the terminal data packet from the first IP address to the second IP address to obtain an updated terminal data packet; and when the first access router finds that the terminal is switched from the first access router to the second access router, the first access router sends the updated terminal data packet to the terminal. Therefore, the problem of loss of terminal data packets in the terminal switching process is solved.

Description

Wireless routing switching method, access router and communication terminal
Technical Field
The invention relates to the field of communication, in particular to a wireless route switching method, an access router and a communication terminal.
Background
In order to obtain network services, communication terminals such as mobile phones and tablet computers can access a network through a wireless access router, and with the development of network communication technology and user requirements, higher and higher requirements are also put forward on the wireless access technology.
When a communication terminal or a mobile node (mobile node, abbreviated as MN) needs to perform handover between two wireless Access Points (AP) during a moving process, currently, in order to implement seamless handover of a mobile device and provide a better wireless Internet Access experience for a user, an Internet Engineering Task Force (IETF) sets a network transmission Protocol MIPv6 (mobile ipv 6) Protocol, which can solve The mobility problem of an Internet Protocol (IP), and The MIPv6 Protocol forwards a data packet by establishing a bidirectional tunnel between an original Access Router (PAR) and a New Access Router (NAR) to implement continuous communication. However, when the mobile node moves faster, the accessed NAR is not predicted, so that the forwarded data packet is lost, and the handover failure is caused.
Disclosure of Invention
The embodiment of the invention provides a wireless route switching method, an access router and a communication terminal, aiming at preventing a terminal data packet from being lost.
In a first aspect, an embodiment of the present invention provides a wireless routing switching method, where the method includes: the method comprises the steps that a first access router receives a first notification message sent by a terminal, the first notification message is used for notifying the first access router to cache a terminal data packet sent to the terminal, the first notification message comprises a terminal identifier of the terminal and a first Internet protocol number (IP) address of the terminal, and the first notification message is sent when the terminal is switched from the first access router to a second access router; then the first access router caches the terminal data packet based on the first notification message; then the first access router receives a second notification message sent by the terminal, wherein the second notification message comprises a terminal identifier of the terminal and a second IP address, and the second IP address is an IP address corresponding to the second access router; the first access router changes the destination IP address of the terminal data packet from the first IP address to the second IP address to obtain an updated terminal data packet; and finally, after the first access router finds that the terminal is switched from the first access router to the second access router, the first access router sends the updated terminal data packet to the terminal.
In the scheme provided by the embodiment of the invention, the first access router is triggered to cache the terminal data packet by the terminal sending the first notification message, so that the first access router can cache the terminal data packet in the time period of the terminal switching process, and after the terminal switching is finished, the first access router sends the terminal data packet to the terminal, thereby solving the problem of loss of the terminal data packet in the terminal switching process.
Furthermore, compared with the control signaling overhead when the bidirectional tunnel is established between the first access router and the second access router in the prior art, in the embodiment of the present invention, the signaling overhead of HI and HACK messages in the above procedure is reduced, so that the switching delay of the control packet between the access routers can be reduced.
Furthermore, compared to the prior art that when a bidirectional tunnel is established between a first access router and a second access router and a terminal data packet is sent from the first access router to the second access router through the bidirectional tunnel, a certain length of packet header needs to be added before the terminal data packet, so that the actual length of the sent terminal data packet may exceed the actual link length, thereby generating a fragment packet.
In one possible design, the second notification message is further used to notify the first access router to send the terminal data packet to the terminal; the switching of the first access router discovery terminal from the first access router to the second access router at this time includes: and the first access router determines that the terminal is switched to the second access router from the first access router after receiving the second notification message. The first access router is triggered to send the terminal data packet by the terminal sending the second notification message, so that the first access router can be actively notified to send the terminal data packet after the terminal is switched, and the triggering is accurate and timely.
In one possible design, after the first access router receives the first notification message sent by the terminal, the method further includes: the first access router sends a first notification message response message to the terminal to cause the wireless link of the terminal to be switched from the first access router to the second access router triggered by the first notification message response message. And triggering the wireless link switching of the terminal by the first notification message response message, so that the terminal can switch in time.
In a second aspect, an embodiment of the present invention provides a wireless router switching method, where the method includes: under the condition that the terminal is switched from the first access router to the second access router, the terminal acquires access gateway information of the second access router, wherein the access gateway information comprises an internet protocol number (IP) address of the second access router and prefix information of the second access router; then the terminal sends a first notification message to the first access router, wherein the first notification message is used for notifying the first access router to cache a terminal data packet sent to the terminal, and the first notification message comprises a terminal identifier of the terminal and a first IP address of the terminal; then the terminal changes the IP address of the terminal from the first IP address to a second IP address based on the access gateway information and sends a second notification message to the first access router, wherein the second notification message comprises the terminal identifier of the terminal and the second IP address, and the second IP address is the IP address corresponding to the second access router; and finally, the terminal receives an updated terminal data packet sent by the first access router, wherein the terminal data packet is cached by the first access router before the terminal is switched from the first access router to the second access router, and the updated terminal data packet is obtained after the destination IP address of the terminal data packet is changed from the first IP address to the second IP address by the first access router.
In the scheme provided by the embodiment of the invention, the first access router is triggered to cache the terminal data packet by the terminal sending the first notification message, so that the first access router can cache the terminal data packet in the time period of the terminal switching process, and after the terminal switching is finished, the first access router sends the terminal data packet to the terminal, thereby solving the problem of loss of the terminal data packet in the terminal switching process.
Furthermore, compared with the control signaling overhead when the bidirectional tunnel is established between the first access router and the second access router in the prior art, in the embodiment of the present invention, the signaling overhead of HI and HACK messages in the above procedure is reduced, so that the switching delay of the control packet between the access routers can be reduced.
Furthermore, compared to the prior art that when a bidirectional tunnel is established between a first access router and a second access router and a terminal data packet is sent from the first access router to the second access router through the bidirectional tunnel, a certain length of packet header needs to be added before the terminal data packet, so that the actual length of the sent terminal data packet may exceed the actual link length, thereby generating a fragment packet.
In one possible design, the second notification message is further used to notify the first access router to send the terminal data packet to the terminal; when the terminal sends the second notification message to the first access router, the terminal may send the second notification message to the first access router after the terminal is switched from the first access router to the second access router. The first access router is triggered to send the terminal data packet by the terminal sending the second notification message, so that the first access router can be actively notified to send the terminal data packet after the terminal is switched, and the triggering is accurate and timely.
In one possible design, when the terminal sends the first notification message to the first access router, the terminal may: when the strength of an access signal of a first access router received by a terminal is less than or equal to a first preset threshold value, the terminal sends a first notification message to the first access router; or when the strength of the access signal of the second access router received by the terminal is greater than or equal to a second preset threshold value, the terminal sends a first notification message to the first access router. Since the terminal is about to be switched when the signal strength of the first access router becomes weak or the signal strength of the second access router becomes strong, the terminal is triggered to send a first notification message to the first access router by the signal strength of the first access router or the second access router so as to trigger the first access router to cache data, and the terminal data packet cache of the first access router is timely.
In one possible design, the method further includes: a terminal acquires an IP address of a first access router; the terminal sends a second notification message to the first access router, and the second notification message comprises: the terminal sends a second notification message to the first access router based on the IP address of the first access router. When the terminal sends the second notification message, the access router accessed by the terminal is the second access router, and the IP address of the first access router is obtained at the moment and then sent based on the IP address, so that the second notification message is accurately sent.
In one possible design, after the terminal sends the first notification message to the first access router, the method further includes: the terminal receives a first notification message response message returned by the first access router; the terminal is switched from the first access router to the second access router, and the switching method comprises the following steps: the terminal switches from the first access router to the second access router triggered by the first notification message response message. And triggering the wireless link switching of the terminal by the first notification message response message, so that the terminal can switch in time.
In a third aspect, an embodiment of the present invention provides an access router, where the access router has a function of implementing the first aspect, where the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In a fourth aspect, the present invention provides an access router, which includes a processor, a receiver and a transmitter, wherein the processor is configured to support the access router to perform corresponding functions in the above method. The receiver and transmitter are used to support communication between the access router and the terminal. Further, the access router may also include a memory for coupling with the processor that retains program instructions and data necessary for the access router.
In a fifth aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for the access router described in the third aspect, which contains a program designed to execute the above aspects.
In a sixth aspect, an embodiment of the present invention provides a communication terminal, where the communication terminal has a function of implementing the second aspect, where the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In a seventh aspect, an embodiment of the present invention provides a communication terminal, which includes a processor, a receiver, and a transmitter, where the processor is configured to support the communication terminal to execute corresponding functions in the foregoing method. The receiver and transmitter are used to support communication between the communication terminal and the access router. Further, the communication terminal may also include a memory for coupling with the processor that retains program instructions and data necessary for the communication terminal.
In an eighth aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for the communication terminal described above in the sixth aspect, which contains a program designed to execute the above aspects.
In a ninth aspect, an embodiment of the present invention provides a wireless router switching system, where the system includes the access router, the communication terminal, and the second access router in the foregoing aspects.
Compared with the prior art, in the scheme of the embodiment of the invention, the first access router is triggered to cache the terminal data packet by sending the first notification message by the terminal, so that the first access router can cache the terminal data packet in the time period of the terminal switching process, and after the terminal switching is completed, the first access router sends the terminal data packet to the terminal, thereby solving the problem of loss of the terminal data packet in the terminal switching process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a network architecture diagram of a wireless router switching system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a fast mobile IPv6 protocol handover process provided by an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for switching a wireless router according to an embodiment of the present invention;
fig. 4 is a network architecture diagram of another wireless router switching system provided by an embodiment of the present invention;
fig. 5 is a flowchart illustrating another wireless router switching method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an access router according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another access router according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a communication terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another communication terminal according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a wireless route switching method, an access router and a communication terminal, aiming at preventing a terminal data packet from being lost.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and "third," etc. in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
(1) And a terminal. The mobile node is a user equipment with a wireless connection function, also called a mobile node (MN for short), and refers to a mobile version 6 internet protocol IPv6 host, and can communicate with other nodes by virtue of its home agent without changing its IPv6 address under the condition of changing an access point, including a handheld device, a vehicle-mounted device, and the like. In the embodiment of the present invention, the terminal may be, for example: the mobile phone includes a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and a wearable device such as a smart watch, a smart bracelet, a pedometer, and the like.
(2) And an IP address. IP addresses are a unified address format provided by the IP protocol that assigns a logical address to each network and each host on the internet. In the current internet, an IP address is structured in a manner of separating an Identity (Identity, abbreviated as ID) from a location (Locator), so that the IP address can be used as the Identity and the location of a host at the same time. Wherein, the ID represents the host identity of the terminal and has uniqueness. The Locator indicates the current location of the terminal, i.e. the IP address, and the Locator may change as the terminal accesses different networks.
In the mobile IPv6 protocol, the MN uses two different IPv6 addresses to distinguish between identity and location. When the MN is in a local link, just as in the ordinary IPv6, only the home address (HomeAddress, referred to as HoA for short) of the MN is used, when the MN moves to a foreign link, the HoA is used for identifying the identity of the MN, and the Care-of-Address (referred to as CoA for short) is used for identifying the current position of the MN; the mobile IPv6 is implemented by a network layer, transparent to upper and lower layers, so that application layer and transport layer protocols are not affected by changes in node location and address configuration.
Referring first to fig. 1, fig. 1 is a network architecture diagram of a wireless routing switching system according to an embodiment of the present invention, where in the network architecture diagram shown in fig. 1, a terminal 110, a first access router 120, and a second access router 130 are included. In the embodiment of the present invention, the terminal 110 accesses from the first access router 120 to the second access router 130 according to the signal strengths of the first access router 120 and the second access router 130 during the moving process.
Referring to fig. 2, fig. 2 shows a Fast Moving IPv6 (Fast Moving IPv6, FMIPv6 for short) protocol handover procedure provided by the embodiment of the present invention. The handover process is a pre-handover mode based on two-layer triggering (hereinafter referred to as L2), that is, when L2 triggers and predicts that handover will occur, new access point information and corresponding subnet information are provided for the MN under the condition of maintaining communication between the MN and the current network, so that a care-of Address configuration and a Duplicate Address Detection (DAD) process are performed in advance, and the MN can directly use the newly configured CoA for communication after reaching the new network, thereby reducing three-layer handover delay and improving the real-time performance of communication. As shown in fig. 2, the handover procedure includes three phases:
the first stage is a link layer based handover prediction and handover initialization process; in the process, the MN detects that the switching is about to occur, and the configuration of the new care-of address and the DAD detection process are completed in advance by utilizing the RtSolPr message and the PrRtAdv message, so that the new care-of address can be directly used after the MN enters a new access router area;
the second stage is to execute a binding update process and establish a tunnel between a Previous Access Router (PAR for short) and a New Access Router (NAR for short), where the PAR is also the first Access Router shown in fig. 1 and the NAR is also the second Access Router shown in fig. 1; when the MN is to be switched to a new network, a Fast Binding Update (FBU) message is first used to perform a binding update process, and then a bidirectional tunnel is established between PAR and NAR through a handover over verify (HI) message and a handover over acknowledge (HACK) message for forwarding a data packet sent to the MN during the binding update process.
The last stage is the process of forwarding the buffered data packets; the MN informs the NAR to forward the cached data packet by sending an Unsolicited Router Advertisements (UNA) message.
It should be noted that, by establishing a bidirectional tunnel between PAR and NAR to forward the data packet, it is an effective method for the MN moving slowly or accessing to the predicted NAR finally, and can reduce the time delay generated by switching between access routers, and implement seamless switching. However, when the MN moves very fast or the MN does not finally access the predicted NAR, it is an invalid method, and does not reduce the time delay caused by the handover between access routers, and may even generate packet loss. For example, when the MN moves fast, the MN predicts that it may be attached to NAR1, and then the NM sends an FBU message to PAR to perform a binding update procedure. After the PAR and the NAR are subjected to two message interactions, a tunnel relationship is established, then the PAR sends a Fack message to the MN, and data packets sent to the MN are forwarded to the NAR 1. In fact, the MN accesses NAR2, so that the data packets buffered in NAR1 are not successfully sent to the NAR2 to which the NM newly accesses, resulting in packet loss.
The embodiment of the invention is based on that the terminal adopts an ID/Locator separation framework, and when the terminal is in a first link established with PAR, the terminal informs the PAR to cache a terminal data packet; after the terminal accesses the NAR, the PAR modifies the destination IP address of the terminal data packet and forwards the terminal data packet to the terminal, so that the problem of packet loss when the terminal accesses a non-predicted link is solved, and furthermore, the possibility of generating a fragment packet when the buffer data packet is forwarded is avoided.
In a preferred embodiment of the present invention, during an access router handover procedure of a terminal, a format of a Message between communication devices may adopt a Mobility Header Message, as shown in fig. 3, where fig. 3 is a schematic diagram of a Mobility Header Message format provided in an embodiment of the present invention. When the value of the next extension header of IPv6 is 135, it is the message header. The fields of the header are explained as follows:
Figure BDA0001138794850000081
the related content of the message form is explained as follows:
1. next Header, which is used to indicate the protocol number of the Next extension Header, if there is no extension Header, it is set to IPPROTO _ NONE (59).
2. Header Length, prefix Length, in units of 8 bytes, excluding the first 8 bytes.
3. MH Type, for defining a specific message Type.
4. Reserved, 8-bit Reserved field, initial value of 0.
5. Checksum, a 16-bit unsigned integer.
6. Message Data, which is a variable Data field, is used to store different Message contents.
Wherein, when the value of MH Type in the field of the Mobility Header is 1, the Message is an HS Message (Handover Solicitation Message). The role of the HS message is as follows: notifying the first access router to cache the data packet, or notifying the second access router to forward the data packet, where the specific format of the message is as follows:
Figure BDA0001138794850000091
the explanation of each field is as follows:
1. sequence: representing a 16-bit unsigned integer.
2. 'A' flag: 1 indicates that the access router is required to reply to the HACK message.
3. Reserved: and (5) reserving. The initial value is 0.
4. Location Type: 0 indicates that the Locator stores the old IPv6 address (Previous Locator); 1 indicates that the Locator stores the New IPv6 address (New Locator).
5. Life time: and in the access router, the Host Identifier (Host Identifier) identifies the valid time of the corresponding Locator.
6. Host identifier: and (4) host identification of the terminal.
7. A Locator: ipv6 address.
Wherein, when the value of MH Type of the field of the Mobility Header is 2, the message is a HACK message. Role of HACK message: as a response message for HS. The format of the message body is shown below:
Figure BDA0001138794850000101
the fields are explained as follows:
1. status: a 16-bit unsigned integer. 0 for ok, 1 for Sequence error; 2 is used to indicate that the Identifier is not present.
2. Reserved: and (5) reserving. The initial value is 0.
3. Traffic Type: the type of service. 0 is used to represent a control packet; 1 is used to represent a data packet; 2 is used to represent control and data packets.
4. Location Type: 0 is used to indicate that the Locator stores is Previous Locator; 1 is used to indicate that the Locator store is New Locator.
5. Sequence: a 16-bit unsigned integer. For the value of the sequence field in the received HS message.
6. Host Identifier: the host identity of the UE. For the value of the Host Identifier field in the received HS message.
7. A Locator: ipv6 address. For the value of the Locator field in the received HS message.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings so as to be understood by those skilled in the art.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for wireless router handover according to an embodiment of the present invention, and as shown in fig. 3, the method may include the following steps:
step S301, the terminal acquires the access gateway information of the second access router.
The access gateway information includes an internet protocol number (IP) address of the second access router and prefix information of the second access router.
In the embodiment of the invention, the terminal firstly accesses the network through the first access router, the terminal is in a moving state at the moment, when the terminal moves to the overlapping area of the first access router and the second access router, the terminal receives the signal of the second access router, and the terminal is possible to switch from the first access router to the second access router at the moment.
Optionally, the terminal obtains the access gateway information of the second access router through the first wireless link established with the first access router.
Specifically, in the embodiment of the present invention, the terminal obtains the information of the access gateway of the second access router by sending an RtSloPr message to the first access router and receiving a PrRtAdr message returned by the first access router.
Further, optionally, the Access gateway information includes an IP address of the second Access router, a physical address (MAC address), and prefix information of the second Access router, where the prefix information may include an IP address prefix of the second Access router and an IP address prefix length of the second Access router.
In the embodiment of the invention, the terminal acquires the gateway information of the second access router, so that when the terminal wants to access the second access router, the terminal can configure the IP address of the terminal as the IP address corresponding to the second access router based on the gateway information, so that the terminal can access the second access router.
Step S302, the terminal sends a first notification message to the first access router, and the first access router receives the first notification message sent by the terminal.
The first notification message is used for notifying the first access router to cache a terminal data packet sent to the terminal, the first notification message includes a terminal identifier ID of the terminal and a first internet protocol number IP address of the terminal, and the first notification message is sent when the terminal is switched from the first access router to a second access router.
In the embodiment of the invention, the first access router is triggered to cache the terminal data packet sent to the terminal through the first notification message, so that the first access router can receive the terminal imminent router switching and cache the terminal data packet from the moment, the problem that the data packet in the switching process cannot be stored in the prior art is solved, and the terminal data packet is prevented from being lost.
The first IP address refers to an IP address configured when the terminal accesses the gateway through the first access router, for example, when the IP address of the first access router is 10::1 and 12::2, the first IP address of the terminal can be configured to be 10:: 2.
Specifically, the data packet may be cached through the terminal identifier and the first IP address in the first notification message, where the terminal data packet refers to a service data packet when the terminal communicates with the network through the first access router.
Specifically, the first notification Message may be the aforementioned HS Message based on the Mobility Header Message format.
Alternatively, the first notification message may be in other message forms.
Optionally, the sending, by the terminal, a first notification message to the first access router includes:
when the strength of an access signal of the first access router received by the terminal is less than or equal to a first preset threshold value, the terminal sends a first notification message to the first access router; or,
and when the strength of the access signal of the second access router received by the terminal is greater than or equal to a second preset threshold value, the terminal sends a first notification message to the first access router.
The first preset threshold is a signal strength threshold used for indicating that the signal strength of the first access router cannot meet the requirement of the terminal for accessing, and the second preset threshold is a signal strength threshold used for indicating that the signal strength of the second access router can meet the requirement of the terminal for accessing.
For example, in an example of the present invention, when the terminal moves from a first location to a second location, where the first location is closer to the first access router and the second location is farther from the second access router, so that the access signal strength of the first access router will be weaker and the access signal strength of the second access router will be stronger during the movement of the terminal, so that when the terminal detects that the access signal strength of the first access router is less than or equal to a preset value or when the terminal detects that the access signal strength of the second access router is greater than or equal to a preset value, the terminal is triggered to send the first notification message to the first access router.
It will be appreciated that when the access signal strength of the first access router becomes weak or the access signal strength of the second access router becomes strong, this indicates that the terminal is about to switch from the first access router to the second access router, so that the terminal needs to inform the first access router at this time to buffer the terminal data packets addressed to the terminal, so that the terminal data packets are not lost during the handover of the terminal from the first access router to the second access router.
Optionally, after the first access router receives a first notification message sent by the terminal, the first access router sends a first notification message response message to the terminal, so that the wireless link of the terminal is switched from the first access router to the second access router under the trigger of the first notification message response message.
At this time, the terminal receives a first notification message response message returned by the first access router; the wireless link of the terminal is switched from the first access router to the second access router under the trigger of the first notification message response message. Namely, the terminal may be triggered by the first notification message response message to perform step S304 and switch.
Optionally, if the terminal does not receive the first notification message response message returned by the first access router, the terminal sends the first notification message after a certain time interval.
Furthermore, if the terminal still receives the first notification message response message after sending the first notification message for the preset number of times to the first access router, the terminal performs the action of switching the link at this time.
Specifically, if the first notification Message is the HS Message based on the Mobility Header Message format, the first notification Message response Message may be a HACK Message based on the Mobility Header Message format, and is used to respond to the HS Message.
Alternatively, the first notification message response message may be in other message forms.
Step S303, the first access router buffers the terminal data packet based on the first notification message.
And step S304, the terminal changes the IP address of the terminal from the first IP address to the second IP address based on the access gateway information.
Wherein the second IP address is an IP address corresponding to the second access router. For example, when the IP addresses of the second access router are 11::1 and 12::3, the terminal can configure the second IP address as 11::2, so that the terminal establishes network connection through the second access router access gateway based on the second IP address to realize router switching of the terminal.
It can be understood that, before the terminal needs to access the second access router, the IP address of the terminal needs to be configured as the IP address corresponding to the second access router first, so as to enable smooth access to the second access router.
Further, optionally, after the terminal configures the second IP Address, Duplicate Address Detection (DAD) may be performed to prevent the second IP Address from being configured incorrectly.
Alternatively, DAD may not be performed.
It should be noted that there is no necessary order between step S303 and step S304, and in a specific embodiment, step S303 may be executed first, and then step S304 is executed, or step S304 may be executed first, and then step S303 is executed, or step S303 and step S304 are executed simultaneously, which is not limited in the embodiment of the present invention.
Step S305, the terminal sends a second notification message to the first access router, and the first access router receives the second notification message sent by the terminal.
The second notification message includes a terminal identifier of the terminal and a second IP address, where the second IP address is an IP address corresponding to the second access router.
In particular, the second notification message may be an HS message.
Alternatively, the second notification message may be in other message forms.
Step S306, the first access router changes the destination IP address of the terminal data packet from the first IP address to the second IP address to obtain an updated terminal data packet.
Optionally, after receiving the second notification message, the first access router searches whether the first access router caches a terminal data packet corresponding to the terminal identifier according to the terminal identifier carried in the second notification message, if the terminal data packet corresponding to the terminal identifier does not exist, sends a notification message to notify the terminal to serve as a response message of the second notification message, and if the terminal data packet corresponding to the terminal identifier exists, modifies a destination IP address of the terminal data packet to a second IP address to obtain a new terminal data packet, and then sends the new terminal data packet to the terminal.
Specifically, the response Message of the second notification Message may be a HACK Message based on the Mobility Header Message format.
Step S307, after the first access router finds that the terminal is switched from the first access router to the second access router, the first access router sends an updated terminal data packet to the terminal, and the terminal receives the updated terminal data packet sent by the first access router.
Furthermore, the IP address of the terminal in the embodiment of the invention adopts a separation structure based on ID/Locator, so that the gateway does not influence the realization of the scheme even if the gateway is very low, and the problem of triangular routing is completely eliminated.
Optionally, the second notification message is further configured to notify the first access router to send the terminal data packet to the terminal;
and after the terminal is switched from the first access router to the second access router, the terminal sends the second notification message to the first access router.
The first access router discovering that the terminal is handed over from the first access router to the second access router comprises:
and after receiving the second notification message, the first access router determines that the terminal is switched from the first access router to the second access router.
Optionally, the first access router discovers that the terminal is switched from the first access router to the second access router, or detects that the terminal does not access the network through the first access router any more.
In the embodiment of the present invention, after the first access router finds that the terminal has been switched to the second access router, the first access router may send the cached terminal data packet to the terminal, and the first access router may confirm that the terminal has been switched by receiving the notification message of the terminal, thereby triggering the first access router to send the terminal data packet; the first access router may also determine whether to send the terminal data packet by detecting whether the terminal is switched by itself, so that the manner of triggering the first access router to send the terminal data packet is flexible.
Optionally, the method further includes:
the terminal acquires the IP address of the first access router;
the terminal sends a second notification message to the first access router, and the second notification message includes:
and the terminal sends a second notification message to the first access router based on the IP address of the first access router.
In the embodiment of the present invention, after the terminal switches from the first access router to the second access router, the terminal notifies the first access router to send the second notification message, and at this time, since the two-layer link between the first access router and the second access router is disconnected, the IP address of the first access router needs to be acquired first, and then the second notification message is sent to the first access router based on the first access router. Specifically, the IP address of the first access router may be stored by the terminal when accessing the first access router.
Optionally, in the embodiment of the present invention, if the terminal moves too fast, before the terminal acquires the access gateway information of the second access router, the terminal may further acquire the access gateway information of a third access router, where the third access router may be understood as an access router predicted by the terminal, and actually, in the process of fast movement of the terminal, the terminal actually selects an access router to which the terminal accesses as the second access router, so that the terminal acquires the access gateway information of the second access router to replace the access gateway information of the originally acquired third access router. Compared with the prior art that the terminal data packet is forwarded incorrectly by establishing a bidirectional tunnel between the predicted third access router and the first access router to forward the terminal data packet, and the terminal data packet is lost, the embodiment of the invention directly forwards the cached terminal data packet to the terminal through the first access router to prevent the phenomenon of packet loss.
Further, after the terminal switches to the second radio link established with the second access router, the terminal sends an ID/Locator update request to an ID/location Mapping System (ILMS) and a Communication Node (CN) separated based on the ID/Locator, which tells that the Locator has changed, and then the terminal and the CN may communicate directly through the NAR.
It can be seen that, in the embodiment of the present invention, when the terminal is switching from the first access router to the second access router, the terminal sends a first notification message to the first access router to trigger the first access router to cache the terminal data packet, and then after the terminal is switching from the first access router to the second access router, the first access router changes the IP address of the cached terminal data packet from the first IP address to the second IP address, and then sends the IP address to the terminal through the second access router. The first access router is triggered to cache the terminal data packet by the terminal sending the first notification message, so that the first access router can cache the terminal data packet in the time period of the terminal switching process, and after the terminal switching is completed, the first access router sends the terminal data packet to the terminal, and the problem of loss of the terminal data packet in the terminal switching process is solved.
Furthermore, compared with the control signaling overhead when a bidirectional tunnel is established between the first access router and the second access router in the prior art (see fig. 2), in the embodiment of the present invention, the signaling overhead of HI and HACK messages in the above procedure is reduced, so that the switching delay of the control packet between the access routers can be reduced.
Furthermore, compared to the prior art that when a bidirectional tunnel is established between a first access router and a second access router and a terminal data packet is sent from the first access router to the second access router through the bidirectional tunnel, a certain length of packet header needs to be added before the terminal data packet, so that the actual length of the sent terminal data packet may exceed the actual link length, thereby generating a fragment packet.
For better understanding of the present solution, a specific embodiment is described below by way of example, referring to fig. 4 and fig. 5, fig. 4 is a network architecture diagram of another wireless router switching system provided by the embodiment of the present invention, and fig. 5 is a flowchart of another wireless router switching method provided by the embodiment of the present invention, where a terminal is represented by a mobile node MN, a first Access router is PAR, a second Access router is NAR, an original Access Point (PAP) is a wireless Access Point corresponding to PAR, and a New Access Point (NAP) is a wireless Access Point corresponding to NAR. In the method shown in fig. 5, the same or similar contents to those of the method shown in fig. 3 may refer to the detailed description of the embodiment corresponding to fig. 3, and are not repeated here.
In this embodiment, each entity is configured as follows:
ILMS: and maintaining the corresponding relation between the ID and the locator (IP), wherein the IP address is 12:: 4.
CN: ID is 2F::2, IP address (Locator) is 12:: 1.
PAR: the IP addresses are 10::1 and 12:: 2.
NAR: the IP addresses are 11::1 and 12:: 3.
MN: the configuration in the PAP link is that the ID (identification) is 2F00::1, the IP address (Locator) is 10:: 2; the configuration in the NAP link is that the ID (identification) is 2F00::1, and the IP address (Locator) is 11:: 2.
As shown in fig. 5, the method may include the steps of:
step S501, the MN discovers NAP in the moving process.
And step S502, the MN and the PAR acquire the access gateway information of the NAR through the Rtslopr message and the PrRtAdr message. The IP address of the NAR in the access gateway information is 11:: 1.
Step S503, when the MN finds that the PAP signal is weaker and stronger and the NAP signal reaches a certain threshold value, the MN sends an HS message to the PAR to request the PAR to cache the terminal data packet with the terminal identifier of 2F00::1, after receiving the HS message, the PAR sends a HACK response message to the MN and starts to cache the terminal data packet with the terminal identifier of 2F00::1, and the IP address of the terminal data packet is 10:: 2.
Step S504, the MN configures the IP address of the MN from 10::2 to 11:: 2.
And step S505, the MN is disconnected with the PAP and is connected with the NAP to realize the two-layer link switching.
Step S506, the MN sends an UNA message to the NAR, wherein the UNA message is used for informing the NAR of the corresponding relation between the IP address and the MAC address of the MN.
Step S507, the MN sends an HS message to the PAR, and the HS message is used for informing the PAR to send a terminal data packet to the MN.
And step S508, PAR finds out the terminal data packet through the terminal identification 2F00::1, changes the destination IP address in the terminal data packet from 10::2 to 11::2, and then forwards the terminal data packet to MN.
Step S509, the MN sends an ID/Locator update request to the ILMS and the CN.
It can be seen that, in the embodiment of the present invention, when the MN detects that the signal strength of the NAP reaches a certain strength or the signal strength of the PAP is lower than a certain strength, the PAR is notified to cache the terminal data packet, and then the PAR is notified to send the terminal data packet after the MN is switched, so as to solve the problem of data packet loss during the terminal switching process.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an access router provided in the embodiment of the present invention, configured to implement the wireless router switching method disclosed in the embodiment of the present invention. As shown in fig. 6, an access router 600 provided in an embodiment of the present invention may include:
a receiving module 610, a caching module 620, a changing module 630, and a sending module 640.
A receiving module 610, configured to receive a first notification message sent by a terminal, where the first notification message is used to notify the access router to cache a terminal data packet sent to the terminal, the first notification message includes a terminal identifier of the terminal and a first internet protocol number IP address of the terminal, and the first notification message is sent when the terminal is switched from the access router to a second access router.
A caching module 620, configured to cache the terminal data packet based on the first notification message.
The receiving module 610 is further configured to receive a second notification message sent by the terminal, where the second notification message includes a terminal identifier of the terminal and a second IP address, and the second IP address is an IP address corresponding to the second access router.
A changing module 630, configured to change the destination IP address of the terminal data packet from the first IP address to the second IP address to obtain an updated terminal data packet.
A sending module 640, configured to send the updated terminal data packet to the terminal after the terminal is found to be switched from the access router to the second access router.
Optionally, the second notification message is further configured to notify the access router to send the terminal data packet to the terminal;
the sending module 640 specifically performs the following operation when the terminal is switched from the access router to the second access router:
and determining that the terminal is switched from the access router to the second access router after receiving the second notification message.
Optionally, the sending module 640 is further configured to:
sending a first notification message response message to the terminal to cause the wireless link of the terminal to be switched from the first access router to the second access router under the trigger of the first notification message response message.
It can be seen that, in the scheme of this embodiment, when the terminal is switching from the access router 600 to the second access router, the terminal sends a first notification message to the access router 600 to trigger the access router to cache the terminal data packet, and then when the terminal is switching from the access router 600 to the second access router, the access router 600 changes the IP address of the cached terminal data packet from the first IP address to the second IP address, and then sends the terminal to the second access router. The access router is triggered to cache the terminal data packet by the terminal sending the first notification message, so that the access router can cache the terminal data packet in the time period of the terminal switching process, and after the terminal switching is completed, the access router sends the terminal data packet to the terminal, thereby solving the problem of loss of the terminal data packet in the terminal switching process.
Furthermore, compared with the control signaling overhead when the bidirectional tunnel is established between the access router and the second access router in the prior art, in the embodiment of the present invention, the signaling overhead of HI and HACK messages in the above procedure is reduced, so that the switching delay of the control packet between the access routers can be reduced.
Furthermore, compared with the prior art that when a bidirectional tunnel is established between an access router and a second access router and then a terminal data packet is sent from the access router to the second access router through the bidirectional tunnel, a certain length of packet header needs to be added before the terminal data packet, so that the actual length of the sent terminal data packet may exceed the actual link length, thereby generating a fragment packet.
In the present embodiment, the access router 600 is presented in the form of a unit. An "element" may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality.
It can be understood that the functions of each functional unit of the access router 600 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another access router according to an embodiment of the present invention, and as shown in fig. 7, the access router 700 includes:
a transmitter/receiver 701 and a processor 702. The processor 702 may also be a controller, and is shown in fig. 7 as "controller/processor 702". The transmitter/receiver 701 is configured to support transceiving information between an access router 700 (which may be a PGW or an edge node in particular) and the terminal and the second access router in the above embodiments, and support radio communication between the access router and other devices. The processor 702 performs various functions for communicating with the access router 700. On the uplink, uplink signals from the terminal and the second access router are received via the antenna, demodulated by the receiver 701 (e.g., demodulating high frequency signals to baseband signals), and further processed by the processor 702 to recover traffic data and signaling information sent by the access router 700. On the downlink, traffic data and signaling messages are processed by the processor 702 and modulated (e.g., by modulating a baseband signal to a high frequency signal) by the transmitter 701 to generate a downlink signal, which is transmitted via the antenna to the terminal and to the second access router. It is noted that the above demodulation or modulation functions can also be performed by the processor 702. For example, the processor 702 is further configured to perform corresponding steps in the above-described method embodiments, and/or other processes of the technical solutions described in the embodiments of the present invention.
Further, the access router 700 may further comprise a memory 703, the memory 703 being adapted to store program codes and data of the access router 700. The access router 700 may further comprise a communication unit 704. The communication unit 704 is used to support the access router to communicate with the terminal. For example, in the LTE system, the communication unit 704 may also be an S1-MME interface, which is used to support an access router to communicate with a Mobility Management Entity (MME).
It will be appreciated that fig. 7 only shows a simplified design of the access router 700. In practical applications, the access router 700 may comprise any number of transmitters, receivers, processors, controllers, memories, communication units, etc., and all access routers in which embodiments of the present invention may be implemented are within the scope of the embodiments of the present invention.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a communication terminal according to an embodiment of the present invention, configured to implement the wireless router switching method disclosed in the embodiment of the present invention. As shown in fig. 8, a communication terminal 800 according to an embodiment of the present invention may include:
an obtaining module 810, a sending module 820, a changing module 830 and a receiving module 840.
An obtaining module 810, configured to obtain access gateway information of a second access router when the communication terminal is switched from a first access router to the second access router, where the access gateway information includes an internet protocol number IP address of the second access router and prefix information of the second access router.
A sending module 820, configured to send a first notification message to the first access router, where the first notification message is used to notify the first access router to cache a terminal data packet sent to the communication terminal, and the first notification message includes a terminal identifier of the communication terminal and a first IP address of the communication terminal.
A changing module 830, configured to change the IP address of the communication terminal from a first IP address to a second IP address based on the access gateway information, and send a second notification message to the first access router, where the second notification message includes a terminal identifier of the communication terminal and a second IP address, and the second IP address is an IP address corresponding to the second access router.
A receiving module 840, configured to receive an updated terminal data packet sent by the first access router, where the terminal data packet is cached by the first access router before the communication terminal is switched from the first access router to the second access router, and the updated terminal data packet is obtained after the destination IP address of the terminal data packet is changed from the first IP address to the second IP address by the first access router.
Optionally, the second notification message is further configured to notify the first access router to send the terminal data packet to the communication terminal;
the step of the changing module 830 executing the action of sending the second notification message to the first access router specifically includes:
after the communication terminal 800 is handed over from the first access router to the second access router, the communication terminal sends the second notification message to the first access router.
Optionally, the sending module 820 executes sending the first notification message to the first access router, specifically:
when the strength of an access signal of the first access router received by the communication terminal is less than or equal to a first preset threshold value, sending a first notification message to the first access router; or,
and when the strength of the access signal of the second access router received by the communication terminal is greater than or equal to a second preset threshold value, sending a first notification message to the first access router.
Optionally, the obtaining module 810 is further configured to obtain an IP address of the first access router;
the step of the changing module 830 executing the action of sending the second notification message to the first access router specifically includes:
sending a second notification message to the first access router based on the IP address of the first access router.
Optionally, the receiving module 840 is further configured to receive a first notification message response message returned by the first access router;
the following specific steps when the communication terminal 800 performs the handover operation from the first access router to the second access router are:
switching from the first access router to the second access router under the trigger of the first notification message response message.
It can be seen that, in the embodiment of the present invention, when the communication terminal 800 is switching from the first access router to the second access router, the communication terminal 800 sends a first notification message to the first access router to trigger the first access router to cache the terminal data packet, and then after the communication terminal 800 is switching from the first access router to the second access router, the first access router changes the IP address of the cached terminal data packet from the first IP address to the second IP address, and then sends the IP address to the terminal through the second access router. The first access router is triggered to cache the terminal data packet by sending the first notification message by the communication terminal 800, so that the first access router can cache the terminal data packet in the time period of the terminal switching process, and after the communication terminal 800 is switched, the first access router sends the terminal data packet to the terminal, thereby solving the problem of loss of the terminal data packet in the switching process of the communication terminal 800.
Furthermore, compared with the control signaling overhead when a bidirectional tunnel is established between the first access router and the second access router in the prior art (see fig. 2), in the embodiment of the present invention, the signaling overhead of HI and HACK messages in the above procedure is reduced, so that the switching delay of the control packet between the access routers can be reduced.
Furthermore, compared to the prior art that when a bidirectional tunnel is established between a first access router and a second access router and a terminal data packet is sent from the first access router to the second access router through the bidirectional tunnel, a certain length of packet header needs to be added before the terminal data packet, so that the actual length of the sent terminal data packet may exceed the actual link length, thereby generating a fragment packet.
In the present embodiment, the communication terminal 800 is presented in the form of a unit. An "element" may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality.
It can be understood that the functions of each functional unit of the communication terminal 800 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Fig. 9 is a schematic structural diagram of another communication terminal according to an embodiment of the present invention. The communication terminal 900 comprises a transmitter 901, a receiver 902 and a processor 903. The processor 903 may be a controller, and is represented as "controller/processor 903" in fig. 9. Optionally, the communication terminal 900 may further include a modem processor 905, where the modem processor 905 may include an encoder 906, a modulator 907, a decoder 908, and a demodulator 909.
In one example, the transmitter 901 conditions (e.g., converts to analog, filters, amplifies, and frequency upconverts, etc.) the output samples and generates an uplink signal, which is transmitted via an antenna to the first and second access routers as described in the embodiments above. On the downlink, the antenna receives the downlink signals transmitted by the first access router and the second access router in the above-described embodiment. Receiver 902 conditions (e.g., filters, amplifies, downconverts, and digitizes, etc.) the received signal from the antenna and provides input samples. In modem processor 905, an encoder 906 receives traffic data and signaling messages to be sent on the uplink and processes (e.g., formats, encodes, and interleaves) the traffic data and signaling messages. A modulator 907 further processes (e.g., symbol maps and modulates) the coded traffic data and signaling messages and provides output samples. A demodulator 909 processes (e.g., demodulates) the input samples and provides symbol estimates. A decoder 908 processes (e.g., deinterleaves and decodes) the symbol estimates and provides decoded data and signaling messages for transmission to communication terminal 900. The encoder 906, modulator 907, demodulator 909, and decoder 908 can be implemented by a combined modem processor 905. These elements are processed in accordance with the radio access technology employed by the radio access network (e.g., the access technologies of LTE and other evolved systems). It is noted that when communication terminal 900 does not include modem processor 905, the above-described functions of modem processor 905 may also be performed by processor 903.
The processor 903 controls and manages the operation of the communication terminal 900, and is configured to execute the processing procedure performed by the communication terminal 900 in the embodiment of the present invention.
Further, communication terminal 900 can also include memory 904, memory 904 being used to store program codes and data for communication terminal 900.
The Processor for performing the functions of the first access router or the communication terminal according to the embodiment of the present invention may be a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, transistor logic devices, hardware components, or any combination thereof. Which may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the embodiment disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware or in software executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash Memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a base station or a terminal. Of course, the processor and the storage medium may reside as discrete components in a base station or terminal.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any wireless routing switching method described in the foregoing method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (17)

1. A method of wireless route handover, the method comprising: a first access router receives a first notification message sent by a terminal, wherein the first notification message is used for notifying the first access router to cache a terminal data packet sent to the terminal, the first notification message comprises a terminal identifier of the terminal and a first internet protocol number (IP) address of the terminal, and the first notification message is sent when the terminal is switched from the first access router to a second access router;
the first access router caches the terminal data packet based on the first notification message;
the first access router receives a second notification message sent by the terminal, wherein the second notification message comprises a terminal identifier of the terminal and a second IP address, and the second IP address is an IP address corresponding to the second access router;
the first access router changes the destination IP address of the terminal data packet from the first IP address to the second IP address to obtain an updated terminal data packet;
when the first access router finds that the terminal is switched from the first access router to the second access router, the first access router sends the updated terminal data packet to the terminal; the first access router is a previous access router PAR, and the second access router is a new access router NAR;
the terminal adopts an ID/Locator separation architecture;
wherein, the Message format is mobile Header Message;
wherein, the Mobility Header Message comprises the following components:
next Header is used to indicate the protocol number of the Next extension Header, if there is no extension Header, it is set to IPPROTO _ NONE (59);
the Header Length is used for indicating the prefix Length, and takes 8 bytes as a unit, and does not include the first 8 bytes;
MH Type is used to define specific message types;
reserved, 8-bit is Reserved field;
checksum is a 16-bit unsigned integer;
the Message Data is a variable Data field and is used for storing different Message contents;
wherein,
when the MH Type value in the Mobility Header Message is 1, the Mobility Header Message is a Handover request Message, and the role of the Handover request Message is as follows: informing the first access router to cache the data packet, or informing the second access router to forward the data packet;
the Handover Solicitation Message comprises the following components:
sequence: represents a 16-bit unsigned integer;
'A' flag: 1 represents that the access router needs to reply the HACK message;
reserved: keeping the initial value to be 0;
location Type: the value 0 represents that the Locator stores the old IPv6 address; the value 1 represents that the Locator stores the new IPv6 address;
life time: the effective time of the Locator corresponding to the Host identity in the access router is shown;
host identifier: a host identity representing a terminal;
a Locator: represents the ipv6 address;
wherein,
when the MH Type value of the Mobility Header Message is 2, the Mobility Header Message is a HACK Message, and the function of the HACK Message is as follows: a response Message as a Handover Solicitation Message;
the HACK message comprises the following components:
status: a 16-bit unsigned integer, wherein a value of 0 is used for indicating ok, and a value of 1 is used for indicating Sequence error; the value 2 is used for indicating that the Identifier does not exist;
reserved is a Reserved field, and the initial value is 0;
the Traffic Type is used for defining a specific service Type, and the value 0 is used for representing a control packet; the value 1 is used for representing a data packet; the value 2 is used to represent control and data packets;
location Type: the value 0 is used for indicating that the Locator stores Previous Locator; the value 1 is used for indicating that the Locator stores New Locator;
sequence: 16-bit unsigned integer for recording the value of the sequence field in the received Handover Solicitation Message;
host Identifier: the Host identity is used for recording the value of the Host Identifier field in the received Handover Solicitation Message;
a Locator: ipv6 address for recording the value of the Locator field in the received Handover Solicitation Message.
2. The method of claim 1, wherein the second notification message is further used to notify the first access router to send the terminal packet to the terminal;
the first access router discovering that the terminal is handed over from the first access router to the second access router comprises:
and after receiving the second notification message, the first access router determines that the terminal is switched from the first access router to the second access router.
3. The method according to claim 1 or 2, wherein after the first access router receives the first notification message sent by the terminal, the method further comprises:
and the first access router sends a first notification message response message to the terminal so as to switch the wireless link of the terminal from the first access router to the second access router under the trigger of the first notification message response message.
4. A method of wireless route handover, the method comprising:
under the condition that a terminal is switched from a first access router to a second access router, the terminal acquires access gateway information of the second access router, wherein the access gateway information comprises an internet protocol number (IP) address of the second access router and prefix information of the second access router;
the terminal sends a first notification message to the first access router, wherein the first notification message is used for notifying the first access router to cache a terminal data packet sent to the terminal, and the first notification message comprises a terminal identifier of the terminal and a first IP address of the terminal;
the terminal changes the IP address of the terminal from a first IP address to a second IP address based on the access gateway information and sends a second notification message to the first access router, wherein the second notification message comprises a terminal identifier of the terminal and a second IP address, and the second IP address is an IP address corresponding to the second access router;
receiving an updated terminal data packet sent by the first access router, wherein the terminal data packet is cached by the first access router before the terminal is switched from the first access router to a second access router, and the updated terminal data packet is obtained after the first access router changes a destination IP address of the terminal data packet from the first IP address to the second IP address; the first access router is a previous access router PAR, and the second access router is a new access router NAR;
the terminal adopts an ID/Locator separation architecture;
wherein, the Message format is mobile Header Message;
wherein, the Mobility Header Message comprises the following components:
next Header is used to indicate the protocol number of the Next extension Header, if there is no extension Header, it is set to IPPROTO _ NONE (59);
the Header Length is used for indicating the prefix Length, and takes 8 bytes as a unit, and does not include the first 8 bytes;
MH Type is used to define specific message types;
reserved, 8-bit is Reserved field;
checksum is a 16-bit unsigned integer;
the Message Data is a variable Data field and is used for storing different Message contents;
wherein,
when the MH Type value in the Mobility Header Message is 1, the Mobility Header Message is a Handover request Message, and the role of the Handover request Message is as follows: informing the first access router to cache the data packet, or informing the second access router to forward the data packet;
the Handover Solicitation Message comprises the following components:
sequence: represents a 16-bit unsigned integer;
'A' flag: 1 represents that the access router needs to reply the HACK message;
reserved: keeping the initial value to be 0;
location Type: the value 0 represents that the Locator stores the old IPv6 address; the value 1 represents that the Locator stores the new IPv6 address;
life time: the effective time of the Locator corresponding to the Host identity in the access router is shown;
host identifier: a host identity representing a terminal;
a Locator: represents the ipv6 address;
wherein,
when the MH Type value of the Mobility Header Message is 2, the Mobility Header Message is a HACK Message, and the function of the HACK Message is as follows: a response Message as a Handover Solicitation Message;
the HACK message comprises the following components:
status: a 16-bit unsigned integer, wherein a value of 0 is used for indicating ok, and a value of 1 is used for indicating Sequence error; the value 2 is used for indicating that the Identifier does not exist;
reserved is a Reserved field, and the initial value is 0;
the Traffic Type is used for defining a specific service Type, and the value 0 is used for representing a control packet; the value 1 is used for representing a data packet; the value 2 is used to represent control and data packets;
location Type: the value 0 is used for indicating that the Locator stores Previous Locator; the value 1 is used for indicating that the Locator stores New Locator;
sequence: 16-bit unsigned integer for recording the value of the sequence field in the received Handover Solicitation Message;
host Identifier: the Host identity is used for recording the value of the Host Identifier field in the received Handover Solicitation Message;
a Locator: ipv6 address for recording the value of the Locator field in the received Handover Solicitation Message.
5. The method of claim 4, wherein the second notification message is further used to notify the first access router to send the terminal packet to the terminal;
the terminal sending the second notification message to the first access router, including:
and after the terminal is switched from the first access router to the second access router, the terminal sends the second notification message to the first access router.
6. The method of claim 4, wherein sending, by the terminal, a first notification message to the first access router comprises:
when the strength of an access signal of the first access router received by the terminal is less than or equal to a first preset threshold value, the terminal sends a first notification message to the first access router; or,
and when the strength of the access signal of the second access router received by the terminal is greater than or equal to a second preset threshold value, the terminal sends a first notification message to the first access router.
7. The method according to any one of claims 4 to 6, further comprising:
the terminal acquires the IP address of the first access router;
the terminal sends a second notification message to the first access router, and the second notification message includes:
and the terminal sends a second notification message to the first access router based on the IP address of the first access router.
8. The method according to any of claims 4 to 6, wherein after the terminal sends the first notification message to the first access router, the method further comprises:
the terminal receives a first notification message response message returned by the first access router;
the terminal is switched from the first access router to the second access router, and the switching method comprises the following steps:
and the terminal is switched from the first access router to the second access router under the trigger of the first notification message response message.
9. An access router, characterized in that,
the access router is a first access router, and the access router includes:
a receiving module, configured to receive a first notification message sent by a terminal, where the first notification message is used to notify the access router to cache a terminal data packet sent to the terminal, where the first notification message includes a terminal identifier of the terminal and a first internet protocol number IP address of the terminal, and the first notification message is sent when the terminal is switched from the access router to a second access router;
the caching module is used for caching the terminal data packet based on the first notification message;
the receiving module is further configured to receive a second notification message sent by the terminal, where the second notification message includes a terminal identifier of the terminal and a second IP address, and the second IP address is an IP address corresponding to the second access router;
a changing module, configured to change a destination IP address of the terminal data packet from the first IP address to the second IP address to obtain an updated terminal data packet;
a sending module, configured to send the updated terminal data packet to the terminal after the terminal is switched from the access router to the second access router; the first access router is a previous access router PAR, and the second access router is a new access router NAR;
the terminal adopts an ID/Locator separation architecture;
wherein, the Message format is mobile Header Message;
wherein, the Mobility Header Message comprises the following components:
next Header is used to indicate the protocol number of the Next extension Header, if there is no extension Header, it is set to IPPROTO _ NONE (59);
the Header Length is used for indicating the prefix Length, and takes 8 bytes as a unit, and does not include the first 8 bytes;
MH Type is used to define specific message types;
reserved, 8-bit is Reserved field;
checksum is a 16-bit unsigned integer;
the Message Data is a variable Data field and is used for storing different Message contents;
wherein,
when the MH Type value in the Mobility Header Message is 1, the Mobility Header Message is a Handover request Message, and the role of the Handover request Message is as follows: informing the first access router to cache the data packet, or informing the second access router to forward the data packet;
the Handover Solicitation Message comprises the following components:
sequence: represents a 16-bit unsigned integer;
'A' flag: 1 represents that the access router needs to reply the HACK message;
reserved: keeping the initial value to be 0;
location Type: the value 0 represents that the Locator stores the old IPv6 address; the value 1 represents that the Locator stores the new IPv6 address;
life time: the effective time of the Locator corresponding to the Host identity in the access router is shown;
host identifier: a host identity representing a terminal;
a Locator: represents the ipv6 address;
wherein,
when the MH Type value of the Mobility Header Message is 2, the Mobility Header Message is a HACK Message, and the function of the HACK Message is as follows: a response Message as a Handover Solicitation Message;
the HACK message comprises the following components:
status: a 16-bit unsigned integer, wherein a value of 0 is used for indicating ok, and a value of 1 is used for indicating Sequence error; the value 2 is used for indicating that the Identifier does not exist;
reserved is a Reserved field, and the initial value is 0;
the Traffic Type is used for defining a specific service Type, and the value 0 is used for representing a control packet; the value 1 is used for representing a data packet; the value 2 is used to represent control and data packets;
location Type: the value 0 is used for indicating that the Locator stores Previous Locator; the value 1 is used for indicating that the Locator stores New Locator;
sequence: 16-bit unsigned integer for recording the value of the sequence field in the received Handover Solicitation Message;
host Identifier: the Host identity is used for recording the value of the Host Identifier field in the received Handover Solicitation Message;
a Locator: ipv6 address for recording the value of the Locator field in the received Handover Solicitation Message.
10. The access router of claim 9, wherein the second notification message is further configured to notify the access router to send the terminal packet to the terminal;
the specifically step of the sending module executing the action of discovering that the terminal is switched from the access router to the second access router is as follows:
and determining that the terminal is switched from the access router to the second access router after receiving the second notification message.
11. The access router of claim 9 or 10, the sending module further configured to:
and sending a first notification message response message to the terminal so that the wireless link of the terminal is switched from the first access router to the second access router under the trigger of the first notification message response message.
12. A communication terminal, characterized in that the communication terminal comprises:
an obtaining module, configured to obtain access gateway information of a second access router when the communication terminal is switched from a first access router to the second access router, where the access gateway information includes an internet protocol number IP address of the second access router and prefix information of the second access router;
a sending module, configured to send a first notification message to the first access router, where the first notification message is used to notify the first access router to cache a terminal data packet sent to the communication terminal, and the first notification message includes a terminal identifier of the communication terminal and a first IP address of the communication terminal;
a changing module, configured to change an IP address of the communication terminal from a first IP address to a second IP address based on the access gateway information, and send a second notification message to the first access router, where the second notification message includes a terminal identifier of the communication terminal and a second IP address, and the second IP address is an IP address corresponding to the second access router;
a receiving module, configured to receive an updated terminal data packet sent by the first access router, where the terminal data packet is cached by the first access router before the communication terminal is switched from the first access router to the second access router, and the updated terminal data packet is obtained after a destination IP address of the terminal data packet is changed from the first IP address to the second IP address by the first access router; the first access router is a previous access router PAR, and the second access router is a new access router NAR;
the terminal adopts an ID/Locator separation architecture;
wherein, the Message format is mobile Header Message;
wherein, the Mobility Header Message comprises the following components:
next Header is used to indicate the protocol number of the Next extension Header, if there is no extension Header, it is set to IPPROTO _ NONE (59);
the Header Length is used for indicating the prefix Length, and takes 8 bytes as a unit, and does not include the first 8 bytes;
MH Type is used to define specific message types;
reserved, 8-bit is Reserved field;
checksum is a 16-bit unsigned integer;
the Message Data is a variable Data field and is used for storing different Message contents;
wherein,
when the MH Type value in the Mobility Header Message is 1, the Mobility Header Message is a Handover request Message, and the role of the Handover request Message is as follows: informing the first access router to cache the data packet, or informing the second access router to forward the data packet;
the Handover Solicitation Message comprises the following components:
sequence: represents a 16-bit unsigned integer;
'A' flag: 1 represents that the access router needs to reply the HACK message;
reserved: keeping the initial value to be 0;
location Type: the value 0 represents that the Locator stores the old IPv6 address; the value 1 represents that the Locator stores the new IPv6 address;
life time: the effective time of the Locator corresponding to the Host identity in the access router is shown;
host identifier: a host identity representing a terminal;
a Locator: represents the ipv6 address;
wherein,
when the MH Type value of the Mobility Header Message is 2, the Mobility Header Message is a HACK Message, and the function of the HACK Message is as follows: a response Message as a Handover Solicitation Message;
the HACK message comprises the following components:
status: a 16-bit unsigned integer, wherein a value of 0 is used for indicating ok, and a value of 1 is used for indicating Sequence error; the value 2 is used for indicating that the Identifier does not exist;
reserved is a Reserved field, and the initial value is 0;
the Traffic Type is used for defining a specific service Type, and the value 0 is used for representing a control packet; the value 1 is used for representing a data packet; the value 2 is used to represent control and data packets;
location Type: the value 0 is used for indicating that the Locator stores Previous Locator; the value 1 is used for indicating that the Locator stores New Locator;
sequence: 16-bit unsigned integer for recording the value of the sequence field in the received Handover Solicitation Message;
host Identifier: the Host identity is used for recording the value of the Host Identifier field in the received Handover Solicitation Message;
a Locator: ipv6 address for recording the value of the Locator field in the received Handover Solicitation Message.
13. The communication terminal according to claim 12, wherein the second notification message is further configured to notify the first access router to send the terminal packet to the communication terminal;
the specifically step of the change module executing the action of sending the second notification message to the first access router is:
and after the communication terminal is switched from the first access router to the second access router, the communication terminal sends the second notification message to the first access router.
14. The communication terminal according to claim 12, wherein the sending module performs sending the first notification message to the first access router specifically by:
when the strength of an access signal of the first access router received by the communication terminal is less than or equal to a first preset threshold value, sending a first notification message to the first access router; or,
and when the strength of the access signal of the second access router received by the communication terminal is greater than or equal to a second preset threshold value, sending a first notification message to the first access router.
15. The communication terminal according to any of claims 12 to 14, wherein the obtaining module is further configured to obtain an IP address of the first access router;
the specifically step of the change module executing the action of sending the second notification message to the first access router is:
sending a second notification message to the first access router based on the IP address of the first access router.
16. The communication terminal according to any of claims 12 to 14, wherein the receiving module is further configured to receive a first notification message response message returned by the first access router;
the method for switching from the first access router to the second access router by the communication terminal includes:
switching from the first access router to the second access router under the trigger of the first notification message response message.
17. A wireless route switching system, the system comprising:
an access router according to any of claims 9 to 11, a communication terminal according to any of claims 12 to 16, and a second access router.
CN201610935058.4A 2016-10-25 2016-10-25 Wireless routing switching method, access router and communication terminal Active CN107979854B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610935058.4A CN107979854B (en) 2016-10-25 2016-10-25 Wireless routing switching method, access router and communication terminal
PCT/CN2017/106726 WO2018077097A1 (en) 2016-10-25 2017-10-18 Wireless route switching method, access router and communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610935058.4A CN107979854B (en) 2016-10-25 2016-10-25 Wireless routing switching method, access router and communication terminal

Publications (2)

Publication Number Publication Date
CN107979854A CN107979854A (en) 2018-05-01
CN107979854B true CN107979854B (en) 2021-08-13

Family

ID=62004847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610935058.4A Active CN107979854B (en) 2016-10-25 2016-10-25 Wireless routing switching method, access router and communication terminal

Country Status (2)

Country Link
CN (1) CN107979854B (en)
WO (1) WO2018077097A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372102B (en) * 2020-02-06 2022-10-28 视联动力信息技术股份有限公司 Data transmission method, device, terminal equipment and storage medium
CN114786255A (en) * 2022-04-22 2022-07-22 国网智能电网研究院有限公司 Positioning method, device and equipment of power internet of things terminal and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832628A (en) * 2006-04-30 2006-09-13 中国科学院计算技术研究所 Three-layer mobile switchover implementing method based on two-layer prediction and trigging
CN101043727A (en) * 2006-03-24 2007-09-26 华为技术有限公司 Method for realizing target optimum selecting three-layer fast switching in evolvement network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783833A (en) * 2004-11-29 2006-06-07 北京三星通信技术研究有限公司 Mobile IPv6 Smooth switching system and method
CN101005444B (en) * 2006-06-24 2011-12-07 华为技术有限公司 Method and device for quick switching
KR101336325B1 (en) * 2007-03-16 2013-12-03 삼성전자주식회사 Communication Apparatus and Method for Supporting Fast Handover Transparent to Mobile Station

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043727A (en) * 2006-03-24 2007-09-26 华为技术有限公司 Method for realizing target optimum selecting three-layer fast switching in evolvement network
CN1832628A (en) * 2006-04-30 2006-09-13 中国科学院计算技术研究所 Three-layer mobile switchover implementing method based on two-layer prediction and trigging

Also Published As

Publication number Publication date
WO2018077097A1 (en) 2018-05-03
CN107979854A (en) 2018-05-01

Similar Documents

Publication Publication Date Title
EP2156573B1 (en) Multimode terminal for supporting fast handover between heterogeneous networks
EP1746856A1 (en) Method and apparatus for performing handover between core network entities in a packet-switched network
JP2009529265A (en) Method and system for fast handover using dynamic router advertisement
KR20050050518A (en) Access router based mobile ipv6 fast handover method
EP2109984A2 (en) Configuring a base station to act as a regional mobility agent
Liebsch et al. Transient binding for proxy mobile IPv6
US8824353B2 (en) Mobility route optimization in a network having distributed local mobility anchors
CN107979854B (en) Wireless routing switching method, access router and communication terminal
US20100111040A1 (en) Method and apparatus for fast break-before-make media independent handover
EP1681881B1 (en) Mobile communication method and mobile communication apparatus
CN103686905A (en) Mobile node switching method based on locator and identifier separation protocol
US9629059B2 (en) Mobile node registration method, intercommunication method, switching method and network element
US11044652B2 (en) Handover method and apparatus
JP4005897B2 (en) Mobile terminal and mobile terminal control method
Chellani et al. A review: Study of handover performance in mobile IP
US8768357B2 (en) Changes of forward-link and reverse-link serving access points
CN102882788A (en) Message forwarding processing method, net element and system
Isah et al. An improved LISP mobile node architecture
JP2003179616A (en) Communication equipment, communication terminal equipment and communication method
Dong et al. A network-based localized mobility approach for locator/ID separation protocol
CN101674619B (en) Switching method, active node and switching system
KR20170027045A (en) Method of maintaining trasmission throughput during handover in wireless communication network
CN101345739A (en) Communication recovery method for mobile positioning point fault, proxy equipment and mobile node
EP3007492B1 (en) Route optimizing method and apparatus, and computer storage medium
Kusin et al. An extension to mobile IPv6 micro-mobility management

Legal Events

Date Code Title Description
PB01 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