WO2016172953A1 - 一种更换中继的方法及装置 - Google Patents

一种更换中继的方法及装置 Download PDF

Info

Publication number
WO2016172953A1
WO2016172953A1 PCT/CN2015/078066 CN2015078066W WO2016172953A1 WO 2016172953 A1 WO2016172953 A1 WO 2016172953A1 CN 2015078066 W CN2015078066 W CN 2015078066W WO 2016172953 A1 WO2016172953 A1 WO 2016172953A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
relay
change request
destination
address
Prior art date
Application number
PCT/CN2015/078066
Other languages
English (en)
French (fr)
Inventor
何岳
金辉
欧阳国威
衣强
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/078066 priority Critical patent/WO2016172953A1/zh
Priority to CN201580078747.1A priority patent/CN107534912B/zh
Publication of WO2016172953A1 publication Critical patent/WO2016172953A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for replacing a relay.
  • a data communication path between a user equipment (UE) and a UE is passed through a core network entity SGW (Serving Gateway)/PGW (PDN (Packet Data Network) Gateway, PDN Gateway). Therefore, even if two UEs that are very close in distance need to transmit data (for example, two QQ users deliver a large file), they need to be transmitted through the core network. This will have a large demand for network transmission bandwidth and low transmission efficiency.
  • SGW Serving Gateway
  • PGW Packet Data Network Gateway
  • the industry has proposed the ProSe topic, which mainly solves the problem of how to communicate more efficiently between UEs with close distances.
  • the solution is that the UE can directly exchange data without going through the network.
  • supporting mutual communication between UEs is a basic function.
  • the UE-to-UE Relay is one of the scenarios. It means that the two Public Safety UEs should be able to establish communication through the UE-to-UE Relay.
  • the UE-to-UE Relay is another Public Safety UE.
  • the embodiment of the invention provides a method and a device for replacing a relay, which can replace a new relay when two terminals perform data transmission through a source relay.
  • a first aspect of the embodiments of the present invention provides a method for replacing a relay, including:
  • the measurement report includes:
  • the other relay receives the report obtained by measuring the channel quality after the relay change request broadcast by the first terminal, where the relay change request includes the second terminal identifier of the second terminal.
  • the measurement report includes:
  • the other relay After the other relay receives the second relay change request broadcast by the second terminal and the first terminal identifier broadcast by the first terminal, the other relay measures a channel quality report, where The second relay change request includes the first terminal identifier of the first terminal;
  • the method further includes:
  • the method further includes:
  • the second terminal feeds back, by the source relay, a response message of the first relay change request to the first terminal.
  • the channel quality includes: the relay and the foregoing Channel quality between a terminal;
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition.
  • the determining, by the second terminal, the destination relay according to the measurement report includes:
  • the second terminal determines the destination relay according to the measurement report and the channel quality measured by the second terminal and the other relays.
  • the method After the second terminal sends the IP address of the destination relay to the first terminal by using the source relay, the method also includes:
  • the second terminal notifies the source relay to stop the relay service.
  • a second aspect of the embodiments of the present invention provides a method for replacing a relay, including:
  • the measurement report includes:
  • the other relay After the other relay receives the second relay change request broadcast by the first terminal and the second terminal identifier broadcast by the second terminal, the other relay measures the channel quality, and the The second terminal identifier is a second terminal identifier that is broadcast after the second terminal receives the first relay change request sent by the first terminal, and the second relay change request is received by the first terminal according to the second terminal And the second relay change request broadcasted by the first link request response message fed back by the second terminal, where the second relay change request includes the second terminal identifier of the second terminal.
  • the measurement report includes:
  • the other relay After the other relay receives the second relay change request broadcast by the second terminal and the first terminal identifier broadcast by the first terminal, the other relay measures a channel quality report, where The second relay change request is a second relay change request broadcast by the second terminal according to the received first relay change request sent by the first terminal, where the second relay change request includes Describe a first terminal identifier of the first terminal;
  • the method further includes:
  • the channel quality includes: the relay and the foregoing Channel quality between the two terminals;
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition.
  • Determining, by the first terminal, the destination relay according to the measurement report includes:
  • the first terminal determines a destination relay according to the measurement report and the channel quality measured by the first terminal and the other relays.
  • the method further includes:
  • the first terminal notifies the source relay to stop the relay service.
  • a third aspect of the embodiments of the present invention provides a method for replacing a relay, including:
  • the source relay receives a measurement report sent by another relay
  • the source relay sends change request information to the destination relay, where the change request information includes Describe the Internet Protocol IP address of the first terminal and the second terminal;
  • the source relay receives an IP address of the destination relay sent by the destination relay;
  • the source relay sends the IP address of the destination relay and the layer 2 address to the first terminal and the second terminal, so that the first terminal and the second terminal pass the destination.
  • the source relay sends the IP address of the destination relay and the layer 2 address to the first terminal and the second terminal, so that the first terminal and the second terminal pass the destination.
  • the measurement report includes:
  • the other relay After the other relay receives the second relay change request of the source relay broadcast, and the first terminal identifier broadcast by the first terminal and the second terminal identifier broadcast by the second terminal, the other a report obtained by measuring a channel quality, where the first terminal identifier is a first terminal identifier that is broadcast by the first terminal according to the second relay change request, and the second terminal identifier is a second terminal identifier that is broadcasted by the second terminal according to the received second relay change request; the second relay change request includes a first terminal identifier of the first terminal and a second terminal identifier of the second terminal .
  • the source before the source relay broadcasts the second relay change request, the source further includes: the source The relay receives the first relay change request sent by the first terminal.
  • the channel quality includes: the relay and the foregoing Channel quality between a terminal and channel quality between the relay and the second terminal;
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition.
  • the method further includes:
  • the source relay receives an acknowledgement message of the first terminal and the second terminal;
  • the source relay stops relaying services to the first terminal and the second terminal.
  • a fourth aspect of the embodiment of the present invention provides a second terminal, including:
  • a first receiving unit configured to receive a measurement report sent by another relay
  • a determining unit configured to determine a destination relay according to the measurement report
  • a first sending unit configured to send, to the destination relay, replacement request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • a second receiving unit configured to receive an IP address of the destination relay sent by the destination relay
  • a second sending unit configured to send the IP address of the destination relay and the layer 2 address to the first terminal by using the source relay, so that the first terminal and the second terminal pass the The destination relays for communication.
  • the measurement report includes:
  • the other relay receives the report obtained by measuring the channel quality after the relay change request broadcast by the first terminal, where the relay change request includes the second terminal identifier of the second terminal.
  • the measurement report includes:
  • the other relay After the other relay receives the second relay change request broadcast by the second terminal and the first terminal identifier broadcast by the first terminal, the other relay measures a channel quality report, where The relay change request includes a first terminal identifier of the first terminal;
  • the second terminal further includes:
  • a third receiving unit configured to receive, by the second terminal, a first relay change request that is sent by the first terminal by using the source relay, before the second terminal broadcasts the second relay change request;
  • a feedback unit configured to feed back, by the source relay, a response message of the first relay change request to the first terminal, before receiving the measurement report sent by the other relay.
  • the channel quality includes: the relay and the foregoing Channel quality between a terminal;
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition.
  • the determining unit includes:
  • Determining a subunit configured to determine a destination relay according to the measurement report and the channel quality measured by the second terminal and the other relays.
  • the second terminal further includes:
  • a notification unit configured to notify the source relay to stop the relay service after the IP address of the destination relay is sent to the first terminal by using the source relay.
  • a fifth terminal of the embodiment of the present invention provides a first terminal, including:
  • a first sending unit configured to send a first relay change request to the second terminal
  • a first receiving unit configured to receive a measurement report sent by another relay
  • a determining unit configured to determine a destination relay according to the measurement report
  • a second sending unit configured to send, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • a second receiving unit configured to receive an IP address of the destination relay sent by the destination relay
  • a second sending unit configured to send the IP address and the layer 2 address of the destination relay to the second terminal by using the source relay, so that the first terminal and the second terminal pass the The destination relays for communication.
  • the measurement report includes:
  • the other relay After the other relay receives the second relay change request broadcast by the first terminal and the second terminal identifier broadcast by the second terminal, the other relay measures the channel quality, and the The second terminal identifier is a second terminal identifier that is broadcast after the second terminal receives the first relay change request sent by the first terminal, and the second relay change request is received by the first terminal according to the second terminal And the second relay change request broadcasted by the first link request response message fed back by the second terminal, where the second relay change request includes the second terminal identifier of the second terminal.
  • the measurement report includes:
  • the second relay change request is a second relay change request broadcast by the second terminal according to the received first relay change request sent by the first terminal, where the second relay changes
  • the request includes the first terminal identifier of the first terminal;
  • the first terminal further includes:
  • a feedback unit configured to receive, by the source relay, a response message of the first link relay change request fed back by the second terminal, before receiving the measurement report sent by the other relay.
  • the channel quality includes: the relay and the foregoing Channel quality between the two terminals;
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition.
  • the determining unit includes:
  • Determining a subunit configured to determine a destination relay according to the measurement report and the channel quality measured by the first terminal and the other relays.
  • the first terminal further includes:
  • a notification unit configured to notify the source relay to stop the relay service after the IP address of the destination relay is sent to the second terminal by using the source relay.
  • a sixth aspect of the present invention provides a source relay, including:
  • a first receiving unit configured to receive a measurement report sent by another relay
  • a determining unit configured to determine a destination relay according to the measurement report
  • a first sending unit configured to send, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • a second receiving unit configured to receive an IP address of the destination relay sent by the destination relay
  • a second sending unit configured to send the IP address and the layer 2 address of the destination relay to the first terminal and the second terminal, so that the first terminal and the second terminal pass the Head The relay communicates.
  • the measurement report includes:
  • the other relay After the other relay receives the second relay change request of the source relay broadcast, and the first terminal identifier broadcast by the first terminal and the second terminal identifier broadcast by the second terminal, the other a report obtained by measuring a channel quality, where the first terminal identifier is a first terminal identifier that is broadcast by the first terminal according to the second relay change request, and the second terminal identifier is a second terminal identifier that is broadcasted by the second terminal according to the received second relay change request; the second relay change request includes a first terminal identifier of the first terminal and a second terminal identifier of the second terminal .
  • the source relay further includes:
  • a third receiving unit configured to receive the first relay change request sent by the first terminal before the second relay change request is broadcasted.
  • the channel quality includes: the relay and the foregoing Channel quality between a terminal and channel quality between the relay and the second terminal;
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition.
  • the source relay further includes:
  • a fourth receiving unit configured to receive an acknowledgement of the first terminal and the second terminal after transmitting the IP address and the layer 2 address of the destination relay to the first terminal and the second terminal Message
  • a stopping unit configured to stop relaying services to the first terminal and the second terminal.
  • the present invention includes a method for replacing a relay, which is used to switch to a new relay when the first terminal and the second terminal need to replace the relay in the process of communicating through the source relay, so as to ensure that the first terminal can be
  • the second terminal can continue to communicate, including: the second terminal receives a measurement report sent by another relay; the second terminal determines a destination relay according to the measurement report; and the second terminal relays to the destination Sending change request information, the change request information includes an Internet Protocol IP address of the first terminal and the second terminal; the second terminal receives an IP address of the destination relay sent by the destination relay; The second terminal sends the IP address of the destination relay and the layer 2 address to the first terminal by using the source relay, so that the first terminal and the second terminal perform the destination relay Communication.
  • the second terminal can determine the optimal one relay as the destination relay according to the measurement report sent by the other relay, and send the IP address of the first terminal and the second terminal to the destination relay, and The determined IP address of the target relay and the layer 2 address are sent to the first terminal, so that the second terminal and the first terminal can continue to communicate through the destination relay, thereby realizing network data transmission. Continuity improves network performance.
  • FIG. 1 is a schematic diagram of a method for replacing a relay according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of another method for replacing a relay according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of another method for replacing a relay according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another method for replacing a relay according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another method for replacing a relay according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another method for replacing a relay according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another method for replacing a relay according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another method for replacing a relay according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a second terminal according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another second terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another second terminal according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a first terminal according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another first terminal according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another first terminal according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of a source relay according to an embodiment of the present invention.
  • FIG. 16 is a schematic diagram of another source relay in an embodiment of the present invention.
  • the present invention discloses a method and apparatus for replacing a relay.
  • the method for replacing a relay provided by the present invention will be described in detail below with reference to FIG.
  • the method for replacing the relay includes:
  • the second terminal receives a measurement report sent by another relay.
  • the distance between the two terminals is also relatively close, and the two terminals and the relay are generally mobile devices.
  • the first terminal and the second terminal that are performing data communication through the source relay find that the source relay is moving away, the first terminal and the second terminal may search for new relay transmission data, because A plurality of devices may be used as a relay for data transmission around the first relay and the second terminal, and the second terminal first needs to receive measurement reports sent by multiple relays, so that the second terminal can select from the second terminal.
  • the most preferred relay is the most preferred relay.
  • the second terminal determines a destination relay according to the measurement report.
  • the second terminal Since the data transmission between the two terminals can only be forwarded by the same relay, the second terminal must determine one of the plurality of other relays as the destination relay, and in order to select the most preferred relay, The second terminal needs to analyze the measurement report sent from the multiple relays to the second terminal to determine an optimal destination relay.
  • the second terminal sends change request information to the destination relay, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the change request information needs to be sent to the destination relay, where the change request information includes an IP address of the first terminal and the second terminal, so that the destination relay can The first terminal and the second terminal are identified in the network.
  • the second terminal receives an IP address of the destination relay that is sent by the destination relay.
  • the destination relay may feed back the IP address of the destination relay to the second terminal, so that the second terminal can identify the destination in the network. Relaying to establish communication with the destination relay.
  • the second terminal passes the IP address and the layer 2 address of the destination relay through the source. And transmitting to the first terminal, so that the first terminal and the second terminal communicate by using the destination relay;
  • the second terminal After the second terminal establishes communication with the destination relay, the second terminal can obtain the layer 2 address of the destination relay, thereby passing the destination relay IP address and the layer two address.
  • the source relay is sent to the first terminal, so that the first terminal establishes communication with the destination relay, so that the first terminal and the second terminal perform data transmission by using a destination relay.
  • the layer 2 address may be a MAC (Media Access Control) address.
  • the second terminal receives a measurement report sent by another relay; the second terminal determines a destination relay according to the measurement report; and the second terminal sends a change request to the destination relay.
  • Information, the change request information includes an Internet Protocol IP address of the first terminal and the second terminal; the second terminal receives an IP address of the destination relay sent by the destination relay; and the second terminal And transmitting, by the source relay, the IP address and the layer 2 address of the destination relay to the first terminal.
  • the second terminal can determine the optimal one relay as the destination relay according to the measurement report sent by the other relay, and send the IP address of the first terminal and the second terminal to the destination relay, and The determined IP address of the target relay and the layer 2 address are sent to the first terminal, so that the second terminal and the first terminal can continue to communicate through the destination relay, thereby realizing network data transmission. Continuity improves network performance.
  • Another embodiment of the data transmission method in the embodiment of the present invention includes:
  • the second terminal receives a measurement report sent by another relay, where the measurement report includes: a report obtained by the other relay after receiving a relay change request broadcast by the first terminal, and measuring a channel quality, where
  • the relay change request includes a second terminal identifier of the second terminal; the channel quality includes: a channel quality between the relay and the first terminal; and the measurement report further includes a relay Status information, the relay status information includes: a remaining power of the relay and a load condition;
  • the first terminal When the first terminal and the second terminal are in the process of performing data transmission by using the source relay, the first terminal can be configured according to a delay, a packet loss rate, and the like of the real-time transmission being performed.
  • the number strength detects the channel quality of the first terminal and the source relay; similarly, the second terminal can also detect the channel quality between the second terminal and the source relay;
  • the first terminal detects that the channel quality between the first terminal and the source relay is degraded, it indicates that the source relay is gradually away from the first terminal, and the first terminal may broadcast Follow the change request to find other devices as new relays.
  • the relay that receives the relay change request can detect channel quality with the first terminal, but due to the relay Simultaneously receiving the terminal identifiers broadcast by the plurality of terminals, and the relay change request includes the second terminal identifier of the second terminal, so that other relays that receive the relay change request can be identified in the multiple terminals.
  • the other relays may also send the remaining power of the relay and the load status to the second terminal, so that the second terminal can select according to multiple screening conditions.
  • the second terminal determines a destination relay according to the measurement report and the channel quality measured by the second terminal and the other relays.
  • the other relays Since the other relays receive the information broadcast by the first terminal, the other relays can measure the channel quality between the first terminal and the relay, and when the second terminal When receiving the measurement report sent by the other relay, the second terminal may also detect the channel quality between the second terminal and the relay as a screening condition for selecting a destination relay, such that The channel quality between the destination relay and the first terminal is guaranteed, and the channel quality between the destination relay and the second terminal is also guaranteed.
  • the second terminal sends change request information to the destination relay, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the second terminal receives an IP address of the destination relay sent by the destination relay.
  • the second terminal sends the IP address and the layer 2 address of the destination relay to the first terminal by using the source relay, so that the first terminal and the second terminal pass the Destination relaying for communication;
  • the second terminal notifies the source relay to stop the relay service.
  • the first terminal and the second terminal After the first terminal and the second terminal establish communication with the destination relay, the first terminal and the second terminal can perform data transmission by using the destination relay.
  • the second terminal may notify the source relay to stop the relay service.
  • the first terminal finds that the source relay is away from the first terminal, thereby initiating a broadcast of the relay change request, so that the second terminal selects a new device as the middle.
  • the data transmission is continued as the destination relay, so that the channel quality between the second terminal and the destination relay is optimized, and the first relay and the second are also implemented.
  • the terminal can continue data transmission.
  • Another embodiment of the data transmission method in the embodiment of the present invention includes:
  • the second terminal receives a first relay change request sent by the first terminal by using the source relay.
  • the first terminal When the first terminal detects that the channel quality between the first terminal and the source relay is degraded, indicating that the source relay is gradually moving away from the first terminal, the first terminal The first relay change request may be sent to the second terminal first, and the second terminal is queried whether to switch a new relay.
  • the second terminal feeds back, by the source relay, a response message of the first relay change request to the first terminal.
  • the second terminal may feed back a response message to the first terminal, indicating that a new relay can be switched. It should be noted that, if the second terminal does not feed back a response message to the first terminal, indicating that the second terminal does not agree to switch a new relay, the first terminal and the second terminal will The source relay is still used for data transmission.
  • the second terminal receives a measurement report sent by another relay.
  • the measurement report includes: receiving, by the other relay, a second relay change request broadcast by the second terminal, and the first terminal broadcast After the first terminal identifiers, the other relays measure the quality of the channel, wherein the second relay change request includes the first terminal identifier of the first terminal; the channel quality includes: Channel quality between the relay and the first terminal; the measurement report includes a relay status letter
  • the relay status information includes: a remaining power of the relay and a load condition;
  • the second terminal may broadcast a second relay change request to other relays to find a new device to continue data transmission as a relay.
  • the first terminal also needs to broadcast the first terminal identifier of the first terminal to other relays, where the second relay change request includes the first terminal identifier of the first terminal, so that the relay
  • the first terminal can be determined to be in communication with the second terminal, and the channel with the first terminal is measured from the received terminal identifiers of the multiple terminals.
  • the second terminal determines a destination relay according to the measurement report and the channel quality measured by the second terminal and the other relays.
  • the second terminal sends change request information to the destination relay, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the second terminal receives an IP address of the destination relay that is sent by the destination relay.
  • the second terminal sends the IP address and the layer 2 address of the destination relay to the first terminal by using the source relay, so that the first terminal and the second terminal pass the Destination relaying for communication;
  • the second terminal notifies the source relay to stop the relay service.
  • the first terminal finds that the source relay is moving away, the first terminal sends a first relay change request to the second terminal to query whether the second terminal needs to switch a new relay. After the second terminal feeds back the response message, the second terminal broadcasts a second relay change request to find a new device as a relay. In this way, the second terminal performs the autonomous determination of the destination relay, ensures the channel quality between the second terminal and the destination terminal, and realizes the continuity of data transmission. High performance of network transmission.
  • another embodiment of the data transmission method in the embodiment of the present invention includes:
  • the first terminal sends a first relay change request to the second terminal.
  • the distance between the two terminals is also relatively close, and the two terminals and the relay are generally mobile devices.
  • the first terminal and the second terminal that are performing data communication through the source relay find that the source relay is moving away, the first terminal and the second terminal may search for new relay transmission data while searching for Before the new relay, the first terminal needs to send a first relay change request to the second terminal to indicate that a new relay needs to be selected to continue data transmission.
  • the first terminal receives a measurement report sent by another relay.
  • the first relay needs to receive the measurement report sent by the multiple relays first, so that the first relay and the second terminal may exist as a relay of the data transmission, so that the first The relay can select the most preferred relay from which to choose.
  • the first terminal determines a destination relay according to the measurement report.
  • the first terminal Since the data transmission between the two terminals can only be forwarded by the same relay, the first terminal must determine one of the plurality of other relays as the destination relay, and in order to select the most preferred relay, The first terminal needs to analyze the measurement report sent from the multiple relays to the first terminal to determine an optimal destination relay.
  • the first terminal sends, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the change request information needs to be sent to the destination relay, where the change request information includes an IP address of the first terminal and the second terminal, so that the destination relay The first terminal and the second terminal can be identified in the network.
  • the first terminal receives an IP address of the destination relay that is sent by the destination relay.
  • the destination relay may feed back the IP address of the destination relay to the first terminal, so that the first terminal can identify the destination in the network. Relaying to establish communication with the destination relay.
  • the first terminal sends the IP address and the layer 2 address of the destination relay to the second terminal by using the source relay.
  • the first terminal After the first terminal establishes communication with the destination relay, the first terminal can acquire the layer 2 of the destination relay, so that the IP address of the destination relay and the layer 2 pass the source.
  • the relay is sent to the second terminal, so that the second terminal establishes communication with the destination relay, so that the first terminal and the second terminal perform data transmission through the destination relay.
  • the layer 2 address may be a MAC (Media Access Control) address.
  • the first terminal can determine an optimal one relay as the destination relay according to the measurement report sent by the other relay, and send the IP address of the first terminal and the second terminal to the destination relay. Transmitting the determined IP address of the target relay to the second terminal, so that the second terminal and the first terminal can continue to communicate through the destination relay, thereby implementing The continuity of network data transmission improves network performance.
  • Another embodiment of the data transmission method in the embodiment of the present invention includes:
  • the first terminal sends a first relay change request to the second terminal.
  • the first terminal receives a measurement report sent by another relay.
  • the measurement report includes: receiving, by the other relay, a second relay change request broadcast by the first terminal, and the second terminal broadcast After the second terminal is identified, the other relays measure the quality of the channel, wherein the second terminal identifier is that the second terminal receives the first link request sent by the first terminal.
  • the second relay change request is a second relay change request sent by the first terminal according to the received first link request response message fed back by the second terminal, where
  • the second relay change request includes a second terminal identifier of the second terminal;
  • the channel quality includes: a channel quality between the relay and the second terminal;
  • the measurement report further includes a relay status Information, the relay status information includes: a remaining power of the relay and a load condition;
  • the first terminal When the first terminal and the second terminal are in the process of performing data transmission by using the source relay, the first terminal is capable of detecting the time according to a delay, a packet loss rate, etc. of the real-time transmission being performed.
  • the channel quality of the first terminal and the source relay similarly, the second terminal can also detect the Channel quality between the second terminal and the source relay; when the first terminal detects that the channel quality between the first terminal and the source relay is degraded, it indicates that the source relay is If the first terminal is gradually separated from the first terminal, the first terminal may send a first relay change request to the second terminal, where it is used to indicate that a new relay needs to be switched; and the second terminal feedback is received.
  • the first terminal broadcasts a second relay change request to find other devices as new relays.
  • the second relay change request includes a first terminal identifier of the first terminal and a second terminal identifier of the second terminal, so that other relays that receive the relay change request can be in multiple terminals. Identifying the first terminal and the second terminal.
  • the second relay change request includes a second terminal identifier of the second terminal, so that the relay can determine that the second terminal needs to communicate with the first terminal after receiving the second relay change request
  • the second terminal in the terminal identifiers of the received multiple terminals, measures channel quality with the second terminal, and sends the measurement report to the first terminal; if the relay does not receive the
  • the second terminal identifier broadcasted by the second terminal indicates that the relay is far away from the second terminal, and cannot be used as a relay of the first terminal and the second terminal, so that no measurement report needs to be sent to The first terminal.
  • the other relays may also send the remaining power of the relay and the load status to the first terminal, so that the first terminal can select according to multiple screening conditions.
  • the first terminal determines a destination relay according to the measurement report and the channel quality measured by the first terminal and the other relays.
  • the other relays Since the other relays receive the information broadcast by the second terminal, the other relays can measure the channel quality between the second terminal and the relay, and when the first terminal When receiving the measurement report sent by the other relay, the first terminal may also detect a channel quality between the first terminal and the relay as a screening condition for selecting a destination relay, such that The channel quality between the destination relay and the first terminal is guaranteed, and the channel quality between the destination relay and the second terminal is also guaranteed.
  • the first terminal sends, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the first terminal receives an IP address of the destination relay that is sent by the destination relay.
  • the first terminal passes the IP address and the layer 2 address of the destination relay through the source. And transmitting to the second terminal, so that the first terminal and the second terminal communicate by using the destination relay;
  • the first terminal notifies the source relay to stop the relay service.
  • the first terminal and the second terminal After the first terminal and the second terminal establish communication with the destination relay, the first terminal and the second terminal can perform data transmission by using the destination relay.
  • the first terminal may notify the source relay to stop the relay service.
  • the first terminal finds that the source relay is away from the first terminal, and sends a first relay change request to the second terminal, where the second terminal is received. After the feedback response, the first terminal initiates a broadcast of the second relay change request, so that the first terminal selects a new device as a relay as the destination relay to continue data transmission, thus ensuring the The channel quality between the first relay and the destination relay is optimal, and the first relay and the second terminal can also continue to perform data transmission.
  • FIG. 6 another embodiment of the data transmission method in the embodiment of the present invention includes:
  • the first terminal sends a first relay change request to the second terminal.
  • the first terminal receives, by using the source relay, a response message of a first link relay change request that is sent by the second terminal.
  • the second terminal may feed back a response message to the first terminal, indicating that the new relay is agreed to be switched.
  • the first terminal receives a measurement report sent by another relay, where the measurement report includes: receiving, by the other relay, a second relay change request broadcast by the second terminal, and the first terminal broadcast After the first terminal is identified, the other relays measure the quality of the channel, wherein the second relay change request is the first terminal sent by the second terminal according to the received first terminal.
  • the second relay change request includes a first terminal identifier of the first terminal; the channel quality includes: the relay and the second terminal Room Channel quality; the measurement report includes relay status information, and the relay status information includes: a remaining power of the relay and a load condition;
  • the second terminal may broadcast a second relay change request to other relays to find a new device to continue data transmission as a relay.
  • the first terminal also needs to broadcast the first terminal identifier of the first terminal to other relays, where the second relay change request includes the first terminal identifier of the first terminal, so that other relays It can be confirmed whether or not it can be used as a relay between the first terminal and the second terminal.
  • the first terminal determines a destination relay according to the measurement report and the channel quality measured by the first terminal and the other relays.
  • the first terminal sends, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the first terminal receives an IP address of the destination relay that is sent by the destination relay.
  • the first terminal sends the IP address and the layer 2 address of the destination relay to the second terminal by using the source relay, so that the first terminal and the second terminal pass the Destination relaying for communication;
  • the first terminal notifies the source relay to stop the relay service.
  • the first relay change request is first sent to the second terminal to query whether the second terminal needs to switch a new relay. After the second terminal feeds back the response message, the second terminal broadcasts a second relay change request to find a new device as a relay. In this way, the second terminal performs the autonomous determination destination relay, ensures the channel quality between the second terminal and the destination terminal, realizes the continuity of data transmission, and improves the performance of the network transmission.
  • another embodiment of the data transmission method in the embodiment of the present invention includes:
  • the source relay receives the measurement report sent by another relay.
  • the distance between the two terminals is also relatively close, and the two terminals and the relay are generally mobile devices.
  • the source relay that is continuing data transmission between the first terminal and the second terminal needs to be away from or no longer relays the first terminal and the second terminal, the source relay can search for a new one.
  • the relaying service is performed by the first terminal and the second terminal, and a plurality of devices may exist as data transmission in the vicinity of the first relay and the second terminal and the source relay. Then, the source relay needs to first receive measurement reports sent by multiple relays, so that the source relay can select the most preferred relay therefrom.
  • the source relay determines a destination relay according to the measurement report.
  • the source relay Since the data transmission between the two terminals can only be forwarded by the same relay, the source relay must determine one of the plurality of other relays as the destination relay, in order to select the most preferred relay, The source relay needs to analyze the measurement reports sent from the multiple relays to the source relay to determine an optimal destination relay.
  • the source relay sends change request information to the destination relay, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the change request information needs to be sent to the destination relay, where the change request information includes an IP address of the first terminal and the second terminal, so that the destination relay can The first terminal and the second terminal are identified in the network.
  • the source relay receives an IP address of the destination relay sent by the destination relay.
  • the destination relay After receiving the request information sent by the source relay, the destination relay feeds back the IP address of the destination relay to the source relay, so that the source relay can identify the destination in the network. Relaying to establish communication with the destination relay.
  • the source relay sends the IP address of the destination relay and the layer 2 address to the first terminal and the second terminal, so that the first terminal and the second terminal pass the Destination relaying for communication;
  • the source relay After the source relay establishes communication with the destination relay, the source relay can acquire the layer 2 of the destination relay, so that the IP address of the destination relay and the layer 2 pass the source. The relay is sent to the first terminal and the second terminal, so that the first terminal and the second terminal establish communication with the destination relay to implement the first terminal and the second terminal. Destination relay data transmission.
  • the layer 2 address may be a MAC (Media Access Control) address.
  • the source relay can determine the optimal one relay as the destination relay according to the measurement report sent by the other relay, and send the IP address of the first terminal and the second terminal to the destination relay. And transmitting the determined IP address of the target relay to the first terminal and the second terminal, so that the second terminal and the first terminal can continue to communicate through the destination relay It realizes the continuity of network data transmission and improves network performance.
  • Another embodiment of the data transmission method in the embodiment of the present invention includes:
  • the source relay receives a first relay change request sent by the first terminal.
  • the distance between the two terminals is also relatively close, and the two terminals and the relay are generally mobile devices.
  • the source relay may find a new relay as the first terminal. Performing a relay service with the second terminal, so the first terminal may first send a first relay change request to the source relay for indicating that a new relay needs to be switched.
  • the source relay receives a measurement report sent by another relay, where the measurement report includes: the second relay change request that the other relay receives the source relay broadcast, and the first terminal broadcast After the first terminal identifier and the second terminal identifier broadcast by the second terminal, the other relays measure the quality of the channel, wherein the first terminal identifier is the first terminal according to the received terminal.
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition;
  • the first terminal When the first terminal and the second terminal are in the process of performing data transmission by using the source relay, the first terminal is capable of detecting the time according to a delay, a packet loss rate, etc. of the real-time transmission being performed.
  • the channel quality of the first terminal and the source relay similarly, the second terminal can also detect the channel quality between the second terminal and the source relay; when the first terminal detects the location
  • the first terminal may send the source relay to the source.
  • the first relay changes the request, and the source relay can broadcast a second relay change request to find a new device as a relay.
  • the relay change request includes a first terminal identifier of the first terminal and a second terminal identifier of the second terminal, so that other relays that receive the relay change request can identify the multiple terminals.
  • the first terminal and the second terminal are described. Since the first terminal and the second terminal broadcast the respective terminal identifiers at the same time, the relay receiving the terminal identifier can detect the channel quality between the two terminals.
  • the other relays may also send the remaining power of the relay and the load status to the source relay, so that the source relay can select according to multiple screening conditions.
  • the source relay determines a destination relay according to the measurement report.
  • the source relay sends change request information to the destination relay, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal.
  • the source relay receives an IP address of the destination relay sent by the destination relay.
  • the source relay sends the IP address of the destination relay and the layer 2 address to the first terminal and the second terminal, so that the first terminal and the second terminal pass the Destination relaying for communication;
  • the source relay receives an acknowledgement message of the first terminal and the second terminal.
  • the acknowledgment message may be fed back to the source relay to indicate the location
  • the purpose of the relay is to establish communication.
  • the source relay stops a relay service to the first terminal and the second terminal.
  • the source relay may stop the relay service for the first terminal and the second terminal.
  • the first terminal finds that the source relay and the first terminal are far away, thereby sending a first relay change request to the source relay, so that the source relay broadcasts
  • the second relay changes the request to find a new relay, and the first terminal and the second terminal start to broadcast respective terminal identifiers, and the source relay determines one according to the measurement report sent by other relays.
  • the new device continues to perform data transmission as a relay as a destination relay, so that the source relay can select a relay that is superior to the channel quality of the first terminal and the second terminal as a destination relay.
  • the first relay and the second terminal can continue to perform data transmission, and the stability of data transmission is ensured, and the quality of network transmission is improved.
  • an embodiment of the second terminal in the embodiment of the present invention includes:
  • a first receiving unit 901 configured to receive a measurement report sent by another relay
  • a determining unit 902 configured to determine a destination relay according to the measurement report
  • the first sending unit 903 is configured to send, to the destination relay, replacement request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • the second receiving unit 904 is configured to receive an IP address of the destination relay that is sent by the destination relay.
  • the second sending unit 905 is configured to send the IP address and the layer 2 address of the destination relay to the first terminal by using the source relay, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • another embodiment of the second terminal in the embodiment of the present invention includes:
  • a first receiving unit 1001 configured to receive a measurement report sent by another relay; the measurement report includes: measuring, by the other relay, a channel change quality after receiving a relay change request broadcast by the first terminal The obtained report, wherein the relay change request includes a second terminal identifier of the second terminal; the channel quality includes: a channel quality between the relay and the first terminal; The measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition;
  • the determining unit 1002 includes a determining subunit 10021, configured to determine a destination relay according to the measurement report and the channel quality measured by the second terminal and the other relay, for determining a destination relay according to the measurement report;
  • the first sending unit 1003 is configured to send, to the destination relay, replacement request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • the second receiving unit 1004 is configured to receive an IP address of the destination relay that is sent by the destination relay.
  • the second sending unit 1005 is configured to send the IP address and the layer 2 address of the destination relay to the first terminal by using the source relay, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • the notification unit 1006 is configured to notify the source relay to stop the relay service after the IP address of the destination relay is sent to the first terminal by using the source relay.
  • another embodiment of the second terminal in the embodiment of the present invention includes:
  • the third receiving unit 1101 is configured to receive a first relay change request that is sent by the first terminal by using the source relay;
  • the feedback unit 1102 is configured to feed back, by the source relay, a response message of the first relay change request to the first terminal, before receiving the measurement report sent by the other relay;
  • a first receiving unit 1103, configured to receive a measurement report sent by another relay;
  • the measurement report includes: receiving, by the other relay, a second relay change request broadcast by the second terminal, and the first terminal After the broadcast of the first terminal identifier, the other relays measure the quality of the channel, wherein the relay change request includes the first terminal identifier of the first terminal; the channel quality includes: And following the channel quality with the first terminal; the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition;
  • the determining unit 1104 includes a determining subunit 11041, configured to determine a destination relay according to the measurement report and the channel quality measured by the second terminal and the other relay, for determining a destination relay according to the measurement report;
  • the first sending unit 1105 is configured to send, to the destination relay, replacement request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • the second receiving unit 1106 is configured to receive an IP address of the destination relay that is sent by the destination relay.
  • the second sending unit 1107 is configured to send the IP address and the layer 2 address of the destination relay to the first terminal by using the source relay, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • a notification unit 1108, configured to notify the source relay to stop the relay service after the IP address of the destination relay is sent to the first terminal by using the source relay;
  • an embodiment of the first terminal in the embodiment of the present invention includes:
  • the first sending unit 1201 is configured to send a first relay change request to the second terminal;
  • a first receiving unit 1202 configured to receive a measurement report sent by another relay
  • a determining unit 1203, configured to determine a destination relay according to the measurement report
  • the second sending unit 1204 is configured to send, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • the second receiving unit 1205 is configured to receive an IP address of the destination relay that is sent by the destination relay.
  • the second sending unit 1206 is configured to send the IP address and the layer 2 address of the destination relay to the second terminal by using the source relay, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • another embodiment of the first terminal in the embodiment of the present invention includes:
  • the first sending unit 1301 is configured to send a first relay change request to the second terminal;
  • a first receiving unit 1302 configured to receive a measurement report sent by another relay; the measurement report includes: receiving, by the other relay, a second relay change request broadcast by the first terminal, and the second terminal After the broadcast of the second terminal identifier, the other relays measure the quality of the channel, wherein the second terminal identifier is that the second terminal receives the first relay change request sent by the first terminal.
  • the second relay change request is a second relay change request that is broadcast by the first terminal according to the received first link request response message that is sent by the second terminal
  • the second relay change request includes a second terminal identifier of the second terminal
  • the channel quality includes: a channel quality between the relay and the second terminal
  • the measurement report further includes a relay Status information, the relay status information includes: a remaining power of the relay and a load condition.
  • the determining unit 1303 includes a determining subunit 13031, configured to determine a destination relay according to the measurement report and the channel quality measured by the first terminal and the other relays;
  • a second sending unit 1304, configured to send change request information to the destination relay, where the change
  • the request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • the second receiving unit 1305 is configured to receive an IP address of the destination relay that is sent by the destination relay.
  • the second sending unit 1306 is configured to send the IP address and the layer 2 address of the destination relay to the second terminal by using the source relay, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • the notifying unit 1307 is configured to notify the source relay to stop the relay service after the IP address of the destination relay is sent to the second terminal by using the source relay.
  • another embodiment of the first terminal in the embodiment of the present invention includes:
  • the first sending unit 1401 is configured to send a first relay change request to the second terminal;
  • the feedback unit 1402 is configured to receive, by using the source relay, a response message of the first link relay change request fed back by the second terminal, before receiving the measurement report sent by the other relay;
  • a first receiving unit 1403, configured to receive a measurement report sent by another relay; the other relay receives a second relay change request broadcast by the second terminal, and a first terminal identifier broadcast by the first terminal After the other relays measure the channel quality, the second relay change request is broadcast by the second terminal according to the received first relay change request sent by the first terminal.
  • a second relay change request where the second relay change request includes a first terminal identifier of the first terminal; the channel quality includes: a channel quality between the relay and the second terminal;
  • the measurement report further includes relay status information, where the relay status information includes: a remaining power of the relay and a load condition;
  • the determining unit 1404 includes a determining subunit 14041, configured to determine a destination relay according to the measurement report and the channel quality measured by the first terminal and the other relays;
  • a second sending unit 1405, configured to send, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • a second receiving unit 1406, configured to receive an IP address of the destination relay that is sent by the destination relay;
  • a second sending unit 1407 configured to send the IP address and the layer 2 address of the destination relay to the second terminal by using the source relay, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • the notifying unit 1408 is configured to notify the source relay to stop the relay service after the IP address of the destination relay is sent to the second terminal by using the source relay.
  • an embodiment of a source relay in an embodiment of the present invention includes:
  • a first receiving unit 1501 configured to receive a measurement report sent by another relay
  • a determining unit 1502 configured to determine a destination relay according to the measurement report
  • the first sending unit 1503 is configured to send, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • the second receiving unit 1504 is configured to receive an IP address of the destination relay that is sent by the destination relay.
  • the second sending unit 1505 is configured to send the IP address and the layer 2 address of the destination relay to the first terminal and the second terminal, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • another embodiment of the source relay in the embodiment of the present invention includes:
  • the third receiving unit 1601 is configured to receive a first relay change request sent by the first terminal before broadcasting the second relay change request;
  • the first receiving unit 1602 is configured to receive a measurement report sent by another relay, where the measurement report includes: the second relay change request that the other relay receives the source relay broadcast, and the first terminal After the first terminal identifier of the broadcast and the second terminal identifier broadcast by the second terminal, the other relays measure the quality of the channel, wherein the first terminal identifier is received by the first terminal according to the The second relay changes the first terminal identifier that is requested to be broadcasted, and the second terminal identifier is a second terminal identifier that is broadcast by the second terminal according to the received second relay change request; the second relay The change request includes a first terminal identifier of the first terminal and a second terminal identifier of the second terminal;
  • a determining unit 1603, configured to determine a destination relay according to the measurement report
  • the first sending unit 1604 is configured to send, to the destination relay, change request information, where the change request information includes an Internet Protocol IP address of the first terminal and the second terminal;
  • the second receiving unit 1605 is configured to receive an IP address of the destination relay that is sent by the destination relay.
  • the second sending unit 1606 is configured to send the IP address and the layer 2 address of the destination relay to the first terminal and the second terminal, so that the first terminal and the second terminal pass the Describe the destination relay for communication;
  • the fourth receiving unit 1607 is configured to receive the first terminal and the second terminal after sending the IP address and the layer 2 address of the destination relay to the first terminal and the second terminal. Confirmation message
  • the stopping unit 1608 is configured to stop the relay service to the first terminal and the second terminal;

Abstract

一种更换中继的方法,用于第一终端与第二终端通过源中继通信的过程中需要更换中继时,切换到新的中继,包括:第二终端接收到其他中继发送的测量报告;第二终端根据测量报告确定目的中继;第二终端向目的中继发送变更请求信息,变更请求信息包括第一终端以及第二终端的互联网协议IP地址;第二终端接收目的中继发送的目的中继的IP地址;第二终端将目的中继的IP地址以及层二地址通过源中继发送给第一终端。这样,使得第二终端与第一终端便能够通过目的中继继续进行通信,实现了网络数据传输的连续性,提高了网络性能。

Description

一种更换中继的方法及装置 技术领域
本发明涉及通信领域,特别是一种更换中继的方法及装置。
背景技术
传统的移动网络中,UE(User Equipment,用户设备)与UE之间的数据通信路径要经过核心网实体SGW(Serving Gateway,服务网关)/PGW(PDN(Packet Data Network,分组数据网络)Gateway,PDN网关)。因此,即使2个距离非常近的UE间,需要传递数据时(例如2个QQ用户传递一个大文件),也需要经过核心网进行传递。这样会对网络传输带宽有较大的需求量,并且传输效率较低。
业界为了解决该问题,提出了ProSe课题,该课题主要解决距离较近的UE间如何进行更高效率的通信,解决思路是UE间可以不经过网络直接进行数据交换。在ProSe课题里,支持UE间的互相通信是一项基本功能。不过,对于Public Safety(公共安全)UE的能力有特殊的要求,必须要能够支持基于中Relay(中继)的通信。而UE-to-UE Relay是其中的一种场景,它指的是两个Public Safety UE之间应该可以通过UE-to-UE Relay建立通信,UE-to-UE Relay是另外一个Public Safety UE。
但是当两个Public Safety UE通过UE-to-UE Relay建立通信后,如果UE和Relay之间发生相对移动,UE与Relay之间的距离变远,而由于UE之间的通信链路无法转移到新的Relay上,从而导致两个UE之间的数据传输中断,影响了网络数据传输的连续性。
发明内容
本发明实施例提供了一种更换中继的方法及装置,可实现两个终端通过源中继进行数据传输时更换新的中继。
本发明实施例第一方面提供一种更换中继的方法,包括:
所述第二终端接收到其他中继发送的测量报告;
所述第二终端根据所述测量报告确定目的中继;
所述第二终端向所述目的中继发送更换请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
所述第二终端接收所述目的中继发送的所述目的中继的IP地址;
所述第二终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
结合本发明实施例第一方面,本发明实施例第一方面的第一种实现方式中,所述测量报告包括:
所述其他中继接收到所述第一终端广播的中继改变请求后测量信道质量所得到的报告,其中,所述中继改变请求包括所述第二终端的第二终端标识。
结合本发明实施例第一方面,本发明实施例第一方面的第二种实现方式中,所述测量报告包括:
所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二中继改变请求包括所述第一终端的第一终端标识;
在所述第二终端广播第二中继改变请求之前还包括:
所述第二终端接收所述第一终端通过所述源中继发送的第一中继改变请求;
在所述第二终端接收所述其他中继发送的测量报告之前,所述方法还包括:
所述第二终端通过所述源中继向所述第一终端反馈所述第一中继改变请求的响应消息。
结合本发明实施例第一方面的第一种实现方式或第二种实现方式,本发明实施例第一方面的第三种实现方式中,所述信道质量包括:所述中继与所述第一终端之间的信道质量;
所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
结合本发明实施例第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式以及第一方面的第三种实现方式的任意一种,本发明实施例第一 方面的第四种实现方式中,所述第二终端根据所述测量报告确定目的中继包括:
所述第二终端根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继。
结合本发明实施例第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式、第一方面的第三种实现方式以及第一方面的第四种实现方式的任意一种,本发明实施例第一方面的第五种实现方式中,所述第二终端将所述目的中继的IP地址通过所述源中继发送给所述第一终端之后,所述方法还包括:
所述第二终端通知所述源中继停止中继服务。
本发明实施例第二方面提供一种更换中继的方法,包括:
所述第一终端向所述第二终端发送第一中继改变请求;
所述第一终端接收到其他中继发送的测量报告;
所述第一终端根据所述测量报告确定目的中继;
所述第一终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
所述第一终端接收所述目的中继发送的所述目的中继的IP地址;
所述第一终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
结合本发明实施例第二方面,本发明实施例第二方面的第一种实现方式中,所述测量报告包括:
所述其他中继接收到所述第一终端广播的第二中继改变请求以及所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二终端标识为所述第二终端接收到所述第一终端发送的第一中继改变请求后广播的第二终端标识,所述第二中继改变请求为所述第一终端根据接收到的所述第二终端反馈的第一链路请求响应消息所广播的第二中继改变请求,所述第二中继改变请求包括所述第二终端的第二终端标识。
结合本发明实施例第二方面,本发明实施例第二方面的第二种实现方式 中,所述测量报告包括:
所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二中继改变请求为所述第二终端根据接收到的所述第一终端发送的第一中继改变请求所广播的第二中继改变请求,所述第二中继改变请求包括所述第一终端的第一终端标识;
在所述第一终端接收所述其他中继发送的测量报告之前,所述方法还包括:
所述第一终端通过所述源中继接收所述第二终端反馈的第一链路中继改变请求的响应消息。
结合本发明实施例第二方面的第一种实现方式或第二种实现方式,本发明实施例第二方面的第三种实现方式中,所述信道质量包括:所述中继与所述第二终端之间的信道质量;
所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
结合本发明实施例第二方面、第二方面的第一种实现方式以及第二方面的第二种实现方式中任意一种,本发明实施例第二方面的第三种实现方式中,所述第一终端根据所述测量报告确定目的中继包括:
所述第一终端根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继。
结合本发明实施例第二方面、第二方面的第一种实现方式、第二方面的第二种实现方式以及第二方面的第三种实现方式中任意一种,本发明实施例第一方面的第四种实现方式中,所述第一终端将所述目的中继的IP地址通过所述源中继发送给所述第二终端之后,所述方法还包括:
所述第一终端通知所述源中继停止中继服务。
本发明实施例第三方面提供一种更换中继的方法,包括:
所述源中继接收到其他中继发送的测量报告;
所述源中继根据所述测量报告确定目的中继;
所述源中继向所述目的中继发送变更请求信息,所述变更请求信息包括所 述第一终端以及第二终端的互联网协议IP地址;
所述源中继接收所述目的中继发送的所述目的中继的IP地址;
所述源中继将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
结合本发明实施例第三方面,本发明实施例第三方面的第一种实现方式中,所述测量报告包括:
所述其他中继接收到所述源中继广播的第二中继改变请求以及所述第一终端广播的第一终端标识与所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第一终端标识为所述第一终端根据接收到所述第二中继改变请求广播的第一终端标识,所述第二终端标识为所述第二终端根据接收到的第二中继改变请求广播的第二终端标识;所述第二中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识。
结合本发明实施例第三方面的第一种实现方式,本发明实施例第三方面的第二种实现方式中,在所述源中继广播第二中继改变请求之前还包括:所述源中继接收所述第一终端发送的第一中继改变请求。
结合本发明实施例第三方面的第一种实现方式或第二种实现方式,本发明实施例第三方面的第三种实现方式中,所述信道质量包括:所述中继与所述第一终端之间的信道质量以及所述中继与所述第二终端之间的信道质量;
所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
结合本发明实施例第三方面、第三方面的第一种实现方式、第三方面的第二种实现方式以及第三方面的第三种实现方式中任意一种,本发明实施例第三方面的第四种实现方式中,在所述源中继将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端之后,所述方法还包括:
所述源中继接收所述第一终端以及所述第二终端的确认消息;
所述源中继停止对所述第一终端以及第二终端的中继服务。
本发明实施例第四方面提供一种第二终端,包括:
第一接收单元,用于接收到其他中继发送的测量报告;
确定单元,用于根据所述测量报告确定目的中继;
第一发送单元,用于向所述目的中继发送更换请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
第二接收单元,用于接收所述目的中继发送的所述目的中继的IP地址;
第二发送单元,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
结合本发明实施例第四方面,本发明实施例第四方面的第一种实现方式中,所述测量报告包括:
所述其他中继接收到所述第一终端广播的中继改变请求后测量信道质量所得到的报告,其中,所述中继改变请求包括所述第二终端的第二终端标识。
结合本发明实施例第四方面,本发明实施例第四方面的第二种实现方式中,所述测量报告包括:
所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述中继改变请求包括所述第一终端的第一终端标识;
所述第二终端还包括:
第三接收单元,用于在所述第二终端广播第二中继改变请求之前,接收所述第一终端通过所述源中继发送的第一中继改变请求;
反馈单元,用于在接收所述其他中继发送的测量报告之前,通过所述源中继向所述第一终端反馈所述第一中继改变请求的响应消息。
结合本发明实施例第四方面的第一种实现方式或第二种实现方式,本发明实施例第四方面的第三种实现方式中,所述信道质量包括:所述中继与所述第一终端之间的信道质量;
所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
结合本发明实施例第四方面、第四方面的第一种实现方式、第四方面的第二种实现方式以及第四方面的第三种实现方式的任意一种,本发明实施例第四方面的第四种实现方式中,所述确定单元包括:
确定子单元,用于根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继。
结合本发明实施例第四方面、第四方面的第一种实现方式、第四方面的第二种实现方式、第四方面的第三种实现方式以及第四方面的第四种实现方式的任意一种,本发明实施例第四方面的第五种实现方式中,所述第二终端还包括:
通知单元,用于将所述目的中继的IP地址通过所述源中继发送给所述第一终端之后,通知所述源中继停止中继服务。
本发明实施例第五方面提供一种第一终端,包括:
第一发送单元,用于向所述第二终端发送第一中继改变请求;
第一接收单元,用于接收到其他中继发送的测量报告;
确定单元,用于根据所述测量报告确定目的中继;
第二发送单元,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
第二接收单元,用于接收所述目的中继发送的所述目的中继的IP地址;
第二发送单元,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
结合本发明实施例第五方面,本发明实施例第五方面的第一种实现方式中,所述测量报告包括:
所述其他中继接收到所述第一终端广播的第二中继改变请求以及所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二终端标识为所述第二终端接收到所述第一终端发送的第一中继改变请求后广播的第二终端标识,所述第二中继改变请求为所述第一终端根据接收到的所述第二终端反馈的第一链路请求响应消息所广播的第二中继改变请求,所述第二中继改变请求包括所述第二终端的第二终端标识。
结合本发明实施例第五方面,本发明实施例第五方面的第二种实现方式中,所述测量报告包括:
所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其 中,所述第二中继改变请求为所述第二终端根据接收到的所述第一终端发送的第一中继改变请求所广播的第二中继改变请求,所述第二中继改变请求包括所述第一终端的第一终端标识;
所述第一终端还包括:
反馈单元,用于在接收所述其他中继发送的测量报告之前,通过所述源中继接收所述第二终端反馈的第一链路中继改变请求的响应消息。
结合本发明实施例第五方面的第一种实现方式或第二种实现方式,本发明实施例第五方面的第三种实现方式中,所述信道质量包括:所述中继与所述第二终端之间的信道质量;
所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
结合本发明实施例第五方面、第五方面的第一种实现方式以及第五方面的第二种实现方式中任意一种,本发明实施例第五方面的第三种实现方式中,所述确定单元包括:
确定子单元,用于根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继。
结合本发明实施例第五方面、第五方面的第一种实现方式、第五方面的第二种实现方式以及第五方面的第三种实现方式中任意一种,本发明实施例第四方面的第四种实现方式中,所述第一终端还包括:
通知单元,用于将所述目的中继的IP地址通过所述源中继发送给所述第二终端之后,通知所述源中继停止中继服务。
本发明第六方面提供一种源中继,包括:
第一接收单元,用于接收到其他中继发送的测量报告;
确定单元,用于根据所述测量报告确定目的中继;
第一发送单元,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
第二接收单元,用于接收所述目的中继发送的所述目的中继的IP地址;
第二发送单元,用于将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目 的中继进行通信。
结合本发明实施例第六方面,本发明实施例第六方面的第一种实现方式中,所述测量报告包括:
所述其他中继接收到所述源中继广播的第二中继改变请求以及所述第一终端广播的第一终端标识与所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第一终端标识为所述第一终端根据接收到所述第二中继改变请求广播的第一终端标识,所述第二终端标识为所述第二终端根据接收到的第二中继改变请求广播的第二终端标识;所述第二中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识。
结合本发明实施例第六方面的第一种实现方式,本发明实施例第六方面的第二种实现方式中,所述源中继还包括:
第三接收单元,用于在广播第二中继改变请求之前,接收所述第一终端发送的第一中继改变请求。
结合本发明实施例第六方面的第一种实现方式或第二种实现方式,本发明实施例第六方面的第三种实现方式中,所述信道质量包括:所述中继与所述第一终端之间的信道质量以及所述中继与所述第二终端之间的信道质量;
所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
结合本发明实施例第六方面、第六方面的第一种实现方式、第六方面的第二种实现方式以及第六方面的第三种实现方式中任意一种,本发明实施例第六方面的第四种实现方式中,所述源中继还包括:
第四接收单元,用于在将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端之后,接收所述第一终端以及所述第二终端的确认消息;
停止单元,用于停止对所述第一终端以及第二终端的中继服务。
本发明包括一种更换中继的方法,用于第一终端与第二终端通过源中继通信的过程中需要更换中继时,切换到新的中继,以保证能够所述第一终端与第二终端能够继续通信,包括:所述第二终端接收到其他中继发送的测量报告;所述第二终端根据所述测量报告确定目的中继;所述第二终端向所述目的中继 发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;所述第二终端接收所述目的中继发送的所述目的中继的IP地址;所述第二终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。这样,第二终端根据其他中继发送的测量报告,便能够确定最优的一个中继作为目的中继,将第一终端与所述第二终端的IP地址发送给目的中继,以及将所确定的目标中继的IP地址与层二地址发送给所述第一终端,使得所述第二终端与所述第一终端便能够通过所述目的中继继续进行通信,实现了网络数据传输的连续性,提高了网络性能。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中一个更换中继的方法的示意图;
图2为本发明实施例中另一个更换中继的方法的示意图;
图3为本发明实施例中另一个更换中继的方法的示意图;
图4为本发明实施例中另一个更换中继的方法的示意图;
图5为本发明实施例中另一个更换中继的方法的示意图;
图6为本发明实施例中另一个更换中继的方法的示意图;
图7为本发明实施例中另一个更换中继的方法的示意图;
图8为本发明实施例中另一个更换中继的方法的示意图;
图9为本发明实施例中一个第二终端的示意图;
图10为本发明实施例中另一个第二终端的示意图;
图11为本发明实施例中另一个第二终端的示意图;
图12为本发明实施例中一个第一终端的示意图;
图13为本发明实施例中另一个第一终端的示意图;
图14为本发明实施例中另一个第一终端的示意图;
图15为本发明实施例中一个源中继的示意图;
图16为本发明实施例中另一个源中继的示意图。
具体实施方式
本发明公开了一种更换中继的方法及装置,以下参照图1所示对本发明所提供的更换中继的方法进行详细说明。
本发明实施例中,该更换中继的方法包括:
101、第二终端接收到其他中继发送的测量报告;
两个近距离终端通过一个中继进行数据传输时,所述中继离所述两个终端的距离也要求比较近,且所述两个终端与所述中继一般的都为可移动设备。而当正在通过源中继进行数据通信的第一终端与第二终端发现所述源中继正在远离时,所述第一终端与第二终端便可以寻找新的中继传输数据,由于所述第一中继与第二终端的周围可能存在多个设备能够作为数据传输的中继,则所述第二终端需先接受多个中继发送的测量报告,使得所述第二终端能够从中选择最优选的中继。
102、所述第二终端根据所述测量报告确定目的中继;
由于两个终端之间的数据传输,只能由同一个中继来进行转发,所以第二终端必须从多个其他中继中确定一个作为目的中继,为了选择最优选的中继,所述第二终端需要从多个中继发送给所述第二终端的测量报告进行分析,确定一个最优的作为目的中继。
103、所述第二终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
当第二终端确定了目的中继后,则需要向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的IP地址,使得所述目的中继能够在网络中识别所述第一终端与第二终端。
104、所述第二终端接收所述目的中继发送的所述目的中继的IP地址;
当目的中继接收到所述第二终端发送的请求信息后,则会将所述目的中继的IP地址反馈给所述第二终端,使得所述第二终端能够在网络中识别所述目的中继,从而与所述目的中继建立通信。
105、所述第二终端将所述目的中继的IP地址以及层二地址通过所述源中 继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
当所述第二终端与所述目的中继建立通信后,所述第二终端能够获取到所述目的中继的层二地址,从而将所述目的中继的IP地址与层二地址通过所述源中继发送给所述第一终端,从而使得所述第一终端与所述目的中继建立通信,以实现所述第一终端与所述第二终端通过目的中继进行数据传输。所述层二地址可以为MAC(Media Access Control,媒体介入控制层)地址。
本发明实施例中,所述第二终端接收到其他中继发送的测量报告;所述第二终端根据所述测量报告确定目的中继;所述第二终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;所述第二终端接收所述目的中继发送的所述目的中继的IP地址;所述第二终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端。这样,第二终端根据其他中继发送的测量报告,便能够确定最优的一个中继作为目的中继,将第一终端与所述第二终端的IP地址发送给目的中继,以及将所确定的目标中继的IP地址与层二地址发送给所述第一终端,使得所述第二终端与所述第一终端便能够通过所述目的中继继续进行通信,实现了网络数据传输的连续性,提高了网络性能。
上述实施例描述了其他中继向所述第二终端发送测量报告,以使得所述第二终端根据所述测量报告确定目的中继,在实际应用中,所述其他中继在发送测量报告之前,还可以先接受所述第一终端或第二终端发送的中继改变请求。下面对所述其他中继接受所述第一终端发送的中继改变请求所具体描述,参照图2所示,本发明实施例中数据传输方法的另一实施例包括:
201、所述第二终端接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述第一终端广播的中继改变请求后测量信道质量所得到的报告,其中,所述中继改变请求包括所述第二终端的第二终端标识;所述信道质量包括:所述中继与所述第一终端之间的信道质量;所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
当所述第一终端与所述第二终端在通过所述源中继在进行数据传输的过程中,所述第一终端能够根据正在进行实时传输的时延、丢包率等情况以及信 号强度检测所述第一终端与所述源中继的信道质量;同理,所述第二终端也能够检测出所述第二终端与所述源中继之间的信道质量;当所述第一终端检测所述第一终端与所述源中继之间的信道质量变差时,则表示所述源中继正在与所述第一终端逐渐远离,则所述第一终端可以广播中继改变请求,以寻找其他设备作为新的中继。由于所述中继改变请求是所述第一终端广播的,所述接收到所述中继改变请求的中继能够检测出与所述第一终端之间的信道质量,但是由于所述中继同时收到了多个终端广播的终端标识,而所述中继改变请求包括所述第二终端的第二终端标识,使得接收到所述中继改变请求的其他中继能够在多个终端中识别所述第一终端与所述第二终端,并且确定需要与所述第一终端通信的是第二终端。所述其他中继也可以将所述中继的剩余电量以及负载情况发送给所述第二终端,使得所述第二终端能够根据多个筛选条件进行选择。
202、所述第二终端根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继;
由于所述其他中继接收了所述第一终端所广播的信息,则所述其他中继能够测量出所述第一终端与所述中继之间的信道质量,而当所述第二终端接收到所述其他中继发送的测量报告时,所述第二终端也可以检测所述第二终端与所述中继之间的信道质量,以作为选择目的中继的筛选条件,这样,即保证了所述目的中继与所述第一终端之间的信道质量,也保证所述目的中继与所述第二终端之间的信道质量。
203、所述第二终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S103所述。
204、所述第二终端接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S104所述。
205、所述第二终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S105所述。
206、所述第二终端通知所述源中继停止中继服务;
当所述第一终端与所述第二终端与所述目的中继均建立通信后,即所述第一终端与所述第二终端能够通过所述目的中继进行数据传输,此时,所述第二终端则可以通知所述源中继停止中继服务。
本发明实施例中,所述第一终端发现所述源中继与所述第一终端正在远离,从而发起了中继改变请求的广播,而使得所述第二终端选择一个新的设备作为中继作为目的中继继续进行数据传输,这样,保证了所述第二终端与所述目的中继之间的信道质量为最优的,同时也实现了所述第一中继与所述第二终端能够继续进行数据传输。
上述实施例描述了所述第一终端发现所述源中继与所述第一终端正在远离,从而发起了中继改变请求的广播通知其他中继,在实际应用中,所述其他中继接收到的中继改变请求也可以是所述第二终端发送的,下面进行具体描述,参照图3所示,本发明实施例中数据传输方法的另一实施例包括:
301、所述第二终端接收所述第一终端通过所述源中继发送的第一中继改变请求;
当所述第一终端检测所述第一终端与所述源中继之间的信道质量变差时,则表示所述源中继正在与所述第一终端逐渐远离,则所述第一终端可以先发送第一中继改变请求给所述第二终端,询问所述第二终端是否切换新的中继。
302、所述第二终端通过所述源中继向所述第一终端反馈所述第一中继改变请求的响应消息;
当所述第二终端接收到所述第一终端发送的第一中继改变请求后,则可以向所述第一终端反馈响应消息,表示可以切换新的中继。需要说明的是,若所述第二终端没有向所述第一终端反馈响应消息,则表示所述第二终端不同意切换新的中继,则所述第一终端与所述第二终端将仍然使用所述源中继进行数据传输。
303、所述第二终端接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二中继改变请求包括所述第一终端的第一终端标识;所述信道质量包括:所述中继与所述第一终端之间的信道质量;所述测量报告包括中继状态信 息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
当所述第二终端同意切换新的中继时,所述第二终端则可以向其他中继广播第二中继改变请求,以寻找新的设备作为中继继续进行数据传输。同时,所述第一终端也需要向其他中继广播所述第一终端的第一终端标识,所述第二中继改变请求包括所述第一终端的第一终端标识,使得所述中继接收到所述第二中继改变请求后能够确定需要与所述第二终端进行通信的是第一终端,从接收到的多个终端的终端标识中,去测量与所述第一终端的信道质量,并将所述测量报告发送给所述第二终端;若所述中继没有收到所述第一终端广播的第一终端标识,则表示所述中继距离所述第一终端较远,无法作为所述第一终端与所述第二终端的中继,所以便无需发送测量报告给所述第二终端。
304、所述第二终端根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继;
详细内容参照S202所述。
305、所述第二终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S103所述。
306、所述第二终端接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S104所述。
307、所述第二终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S105所述。
308、所述第二终端通知所述源中继停止中继服务;
详细内容参照S206所述。
本发明实施例中,所述第一终端发现所述源中继正在远离,则先向所述第二终端发送第一中继改变请求,以询问所述第二终端是否需要切换新的中继,当所述第二终端反馈响应消息后,由所述第二终端广播第二中继改变请求,以寻找新的设备作为中继。这样,使得所述第二终端进行自主确定目的中继,保证了所述第二终端与目的终端之间的信道质量,实现了数据传输的连续性,提 高了网络传输的性能。
参照图4所示,本发明实施例中数据传输方法的另一实施例包括:
401、第一终端向所述第二终端发送第一中继改变请求;
两个近距离终端通过一个中继进行数据传输时,所述中继离所述两个终端的距离也要求比较近,且所述两个终端与所述中继一般的都为可移动设备。而当正在通过源中继进行数据通信的第一终端与第二终端发现所述源中继正在远离时,所述第一终端与第二终端便可以寻找新的中继传输数据,而在寻找新的中继之前,所述第一终端需先发送一个第一中继改变请求给所述第二终端,以用于指示需要选择新的中继来继续进行数据传输。
402、所述第一终端接收到其他中继发送的测量报告;
由于所述第一中继与第二终端的周围可能存在多个设备能够作为数据传输的中继,则所述第一中继需先接受多个中继发送的测量报告,使得所述第一中继能够从中选择最优选的中继。
403、所述第一终端根据所述测量报告确定目的中继;
由于两个终端之间的数据传输,只能由同一个中继来进行转发,所以第一终端必须从多个其他中继中确定一个作为目的中继,为了选择最优选的中继,所述第一终端需要从多个中继发送给所述第一终端的测量报告进行分析,确定一个最优的作为目的中继。
404、所述第一终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
当第一中继确定了目的中继后,则需要向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的IP地址,使得所述目的中继能够在网络中识别所述第一终端与第二终端。
405、所述第一终端接收所述目的中继发送的所述目的中继的IP地址;
当目的中继接收到所述第一终端发送的请求信息后,则会将所述目的中继的IP地址反馈给所述第一终端,使得所述第一终端能够在网络中识别所述目的中继,从而与所述目的中继建立通信。
406、所述第一终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端;
当所述第一终端与所述目的中继建立通信后,所述第一终端能够获取到所述目的中继的层二,从而将所述目的中继的IP地址与层二通过所述源中继发送给所述第二终端,从而使得所述第二终端与所述目的中继建立通信,以实现所述第一终端与所述第二终端通过目的中继进行数据传输。所述层二地址可以为MAC(Media Access Control,媒体介入控制层)地址。
本发明实施例中,第一终端根据其他中继发送的测量报告,便能够确定最优的一个中继作为目的中继,将第一终端与所述第二终端的IP地址发送给目的中继,以及将所确定的目标中继的IP地址与层二地址发送给所述第二终端,使得所述第二终端与所述第一终端便能够通过所述目的中继继续进行通信,实现了网络数据传输的连续性,提高了网络性能。
上述实施例描述了其他中继向所述第一终端发送测量报告,以使得所述第一终端根据所述测量报告确定目的中继,在实际应用中,所述其他中继在发送测量报告之前,还可以先接受所述第一终端或第二终端发送的第二中继改变请求。下面对所述其他中继接受所述第一终端发送的第二中继改变请求所具体描述,参照图5所示,本发明实施例中数据传输方法的另一实施例包括:
501、所述第一终端向所述第二终端发送第一中继改变请求;
详细内容参照S401所述。
502、所述第一终端接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述第一终端广播的第二中继改变请求以及所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二终端标识为所述第二终端根据接收到所述第一终端发送的第一链路请求后发送的第二终端标识,所述第二中继改变请求为所述第一终端根据接收到的所述第二终端反馈的第一链路请求响应消息所发送的第二中继改变请求,所述第二中继改变请求包括所述第二终端的第二终端标识;所述信道质量包括:所述中继与所述第二终端之间的信道质量;所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
当所述第一终端与所述第二终端在通过所述源中继在进行数据传输的过程中,所述第一终端能够根据正在进行实时传输的时延、丢包率等情况检测所述第一终端与所述源中继的信道质量;同理,所述第二终端也能够检测出所述 第二终端与所述源中继之间的信道质量;当所述第一终端检测所述第一终端与所述源中继之间的信道质量变差时,则表示所述源中继正在与所述第一终端逐渐远离,则所述第一终端可以向所述第二终端发送第一中继改变请求,以用于指示需要切换新的中继;在接收到所述第二终端反馈的相应消息后,则所述第一终端广播第二中继改变请求,以寻找其他设备作为新的中继。所述第二中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识,使得接收到所述中继改变请求的其他中继能够在多个终端中识别所述第一终端与所述第二终端。所述第二中继改变请求包括所述第二终端的第二终端标识,使得所述中继接收到所述第二中继改变请求后能够确定需要与所述第一终端进行通信的是第二终端,从接收到的多个终端的终端标识中,去测量与所述第二终端的信道质量,并将所述测量报告发送给所述第一终端;若所述中继没有收到所述第二终端广播的第二终端标识,则表示所述中继距离所述第二终端较远,无法作为所述第一终端与所述第二终端的中继,所以便无需发送测量报告给所述第一终端。所述其他中继也可以将所述中继的剩余电量以及负载情况发送给所述第一终端,使得所述第一终端能够根据多个筛选条件进行选择。
503、所述第一终端根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继;
由于所述其他中继接收了所述第二终端所广播的信息,则所述其他中继能够测量出所述第二终端与所述中继之间的信道质量,而当所述第一终端接收到所述其他中继发送的测量报告时,所述第一终端也可以检测所述第一终端与所述中继之间的信道质量,以作为选择目的中继的筛选条件,这样,即保证了所述目的中继与所述第一终端之间的信道质量,也保证所述目的中继与所述第二终端之间的信道质量。
504、所述第一终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S404所述。
505、所述第一终端接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S405所述。
506、所述第一终端将所述目的中继的IP地址以及层二地址通过所述源中 继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S406所述。
507、所述第一终端通知所述源中继停止中继服务;
当所述第一终端与所述第二终端与所述目的中继均建立通信后,即所述第一终端与所述第二终端能够通过所述目的中继进行数据传输,此时,所述第一终端则可以通知所述源中继停止中继服务。
本发明实施例中,所述第一终端发现所述源中继与所述第一终端正在远离,从而向所述第二终端发送第一中继改变请求,在接收到所述第二终端的反馈响应后,所述第一终端则发起第二中继改变请求的广播,而使得所述第一终端选择一个新的设备作为中继作为目的中继继续进行数据传输,这样,保证了所述第一中继与所述目的中继之间的信道质量为最优的,同时也实现了所述第一中继与所述第二终端能够继续进行数据传输。
上述实施例描述了所述第一终端发起第二中继改变请求的广播通知其他中继,在实际应用中,在所述第一终端向所述第二终端发送第一中继改变请求后,由所述第二终端广播第二中继改变请求,下面进行具体描述,参照图6所示,本发明实施例中数据传输方法的另一实施例包括:
601、所述第一终端向所述第二终端发送第一中继改变请求;
详细内容参照S401所述。
602、所述第一终端通过所述源中继接收所述第二终端反馈的第一链路中继改变请求的响应消息;
当所述第二终端接收到所述第一终端发送的第一中继改变请求后,所述第二终端可以向所述第一终端反馈一个响应消息,表示同意切换新的中继。
603、所述第一终端接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二中继改变请求为所述第二终端根据接收到的所述第一终端发送的第一中继改变请求所发送的第二中继改变请求,所述第二中继改变请求包括所述第一终端的第一终端标识;所述信道质量包括:所述中继与所述第二终端之间 的信道质量;所述测量报告包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
当所述第二终端同意切换新的中继时,所述第二终端则可以向其他中继广播第二中继改变请求,以寻找新的设备作为中继继续进行数据传输。同时,所述第一终端也需要向其他中继广播所述第一终端的第一终端标识,所述第二中继改变请求包括所述第一终端的第一终端标识,以使得其他中继能够确认是否能够作为所述第一终端与所述第二终端之间的中继。
604、所述第一终端根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继;
详细内容参照S503所述。
605、所述第一终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S404所述。
606、所述第一终端接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S405所述。
607、所述第一终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S406所述。
608、所述第一终端通知所述源中继停止中继服务;
详细内容参照S507所述。
本发明实施例中,所述第一终端发送所述源中继正在远离,则先向所述第二终端发送第一中继改变请求,以询问所述第二终端是否需要切换新的中继,当所述第二终端反馈响应消息后,由所述第二终端广播第二中继改变请求,以寻找新的设备作为中继。这样,使得所述第二终端进行自主确定目的中继,保证了所述第二终端与目的终端之间的信道质量,实现了数据传输的连续性,提高了网络传输的性能。
参照图7所示,本发明实施例中数据传输方法的另一实施例包括:
701、源中继接收到其他中继发送的测量报告;
两个近距离终端通过一个中继进行数据传输时,所述中继离所述两个终端的距离也要求比较近,且所述两个终端与所述中继一般的都为可移动设备。而当正在第一终端与第二终端继续数据传输的源中继需要远离或不再给所述第一终端与所述第二终端进行中继服务时,则所述源中继便可以寻找新的中继为所述第一终端与所述第二终端进行中继服务,由于所述第一中继与第二终端以及所述源中继的周围可能存在多个设备能够作为数据传输的中继,则所述源中继需先接受多个中继发送的测量报告,使得所述源中继能够从中选择最优选的中继。
702、所述源中继根据所述测量报告确定目的中继;
由于两个终端之间的数据传输,只能由同一个中继来进行转发,所以源中继必须从多个其他中继中确定一个作为目的中继,为了选择最优选的中继,所述源中继需要从多个中继发送给所述源中继的测量报告进行分析,确定一个最优的作为目的中继。
703、所述源中继向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
当源中继确定了目的中继后,则需要向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的IP地址,使得所述目的中继能够在网络中识别所述第一终端与第二终端。
704、所述源中继接收所述目的中继发送的所述目的中继的IP地址;
当目的中继接收到所述源中继发送的请求信息后,则会将所述目的中继的IP地址反馈给所述源中继,使得所述源中继能够在网络中识别所述目的中继,从而与所述目的中继建立通信。
705、所述源中继将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
当所述源中继与所述目的中继建立通信后,所述源中继能够获取到所述目的中继的层二,从而将所述目的中继的IP地址与层二通过所述源中继发送给所述第一终端与所述第二终端,从而使得所述第一终端以及第二终端与所述目的中继建立通信,以实现所述第一终端与所述第二终端通过目的中继进行数据 传输。所述层二地址可以为MAC(Media Access Control,媒体介入控制层)地址。
本发明实施例中,源中继根据其他中继发送的测量报告,便能够确定最优的一个中继作为目的中继,将第一终端与所述第二终端的IP地址发送给目的中继,以及将所确定的目标中继的IP地址与层二发送给所述第一终端与第二终端,使得所述第二终端与所述第一终端便能够通过所述目的中继继续进行通信,实现了网络数据传输的连续性,提高了网络性能。
上述实施例描述了其他中继向所述源中继发送测量报告,以使得所述源中继根据所述测量报告确定目的中继,在实际应用中,所述其他中继在发送测量报告之前,还可以先接受所述源中继发送的第二中继改变请求。下面对所述其他中继接受所述源中继发送的第二中继改变请求所具体描述,参照图8所示,本发明实施例中数据传输方法的另一实施例包括:
801、所述源中继接收所述第一终端发送的第一中继改变请求;
两个近距离终端通过一个中继进行数据传输时,所述中继离所述两个终端的距离也要求比较近,且所述两个终端与所述中继一般的都为可移动设备。而当正在通过所述源中继进行数据传输的第一终端与第二终端发现所述源中继正在逐渐远离时,则所述源中继便可以寻找新的中继为所述第一终端与所述第二终端进行中继服务,所以所述第一终端可以先向所述源中继发送一个第一中继改变请求,以用于指示需要切换新的中继。
802、所述源中继接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述源中继广播的第二中继改变请求以及所述第一终端广播的第一终端标识与所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第一终端标识为所述第一终端根据接收到所述第二中继改变请求广播的第一终端标识,所述第二终端标识为所述第二终端根据接收到的第二中继改变请求广播的第二终端标识;所述中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识;所述中继与所述第一终端之间的信道质量以及所述中继与所述第二终端之间的信道质量;所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
当所述第一终端与所述第二终端在通过所述源中继在进行数据传输的过程中,所述第一终端能够根据正在进行实时传输的时延、丢包率等情况检测所述第一终端与所述源中继的信道质量;同理,所述第二终端也能够检测出所述第二终端与所述源中继之间的信道质量;当所述第一终端检测所述第一终端与所述源中继之间的信道质量变差时,则表示所述源中继正在与所述第一终端逐渐远离,则所述第一终端可以向所述源中继发送第一中继改变请求,所述源中继则可以广播第二中继改变请求,以寻找新的设备作为中继。所述中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识,使得接收到所述中继改变请求的其他中继能够在多个终端中识别所述第一终端与所述第二终端。由于同时所述第一终端与所述第二终端广播了各自的终端标识,所述接收到所述终端标识的中继能够检测出与所述两个终端之间的信道质量。所述其他中继也可以将所述中继的剩余电量以及负载情况发送给所述源中继,使得所述源中继能够根据多个筛选条件进行选择。
803、所述源中继根据所述测量报告确定目的中继;
详细内容参照S702所述。
804、所述源中继向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S703所述。
805、所述源中继接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S704所述。
806、所述源中继将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S705所述。
807、所述源中继接收所述第一终端以及所述第二终端的确认消息;
当所述第一终端与所述第二终端接收到所述源中继发送的所述目的中继的IP地址与层二后,则可以向所述源中继反馈确认消息,以表示与所述目的中继建立通信。
808、所述源中继停止对所述第一终端以及第二终端的中继服务;
当所述第一终端与所述第二终端与所述目的中继均建立通信后,即所述第一终端与所述第二终端能够通过所述目的中继进行数据传输,此时,所述源中继则可以停止为所述第一终端与第二终端的中继服务。
本发明实施例中,所述第一终端发现所述源中继与所述第一终端正在远离,从而向所述源中继发送第一中继改变请求,而使得所述源中继广播第二中继改变请求,以寻找新的中继,同时所述第一终端与所述第二终端开始广播各自的终端标识,所述源中继根据接收到其他中继发送的测量报告,确定一个新的设备作为中继作为目的中继继续进行数据传输,这样,所述源中继能够选择与所述第一终端以及所述第二终端的信道质量均为优的中继作为目的中继,既实现了所述第一中继与所述第二终端能够继续进行数据传输,也保证了数据传输的稳定性,提高了网络传输的质量。
参照图9所示,本发明实施例中第二终端的一个实施例包括:
第一接收单元901,用于接收到其他中继发送的测量报告;
详细内容参照S101所述。
确定单元902,用于根据所述测量报告确定目的中继;
详细内容参照S102所述。
第一发送单元903,用于向所述目的中继发送更换请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S103所述。
第二接收单元904,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S104所述。
第二发送单元905,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S105所述。
参照图10所示,本发明实施例中第二终端的另一实施例包括:
第一接收单元1001,用于接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述第一终端广播的中继改变请求后测量信道质 量所得到的报告,其中,所述中继改变请求包括所述第二终端的第二终端标识;所述信道质量包括:所述中继与所述第一终端之间的信道质量;所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
详细内容参照S201所述。
确定单元1002包括确定子单元10021,用于根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继,用于根据所述测量报告确定目的中继;
详细内容参照S202所述。
第一发送单元1003,用于向所述目的中继发送更换请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S203所述。
第二接收单元1004,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S204所述。
第二发送单元1005,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S205所述。
通知单元1006,用于将所述目的中继的IP地址通过所述源中继发送给所述第一终端之后,通知所述源中继停止中继服务;
详细内容参照S206所述。
参照图11所示,本发明实施例中第二终端的另一实施例包括:
第三接收单元1101,用于接收所述第一终端通过所述源中继发送的第一中继改变请求;
详细内容参照S301所述。
反馈单元1102,用于在接收所述其他中继发送的测量报告之前,通过所述源中继向所述第一终端反馈所述第一中继改变请求的响应消息;
详细内容参照S302所述。
第一接收单元1103,用于接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述中继改变请求包括所述第一终端的第一终端标识;所述信道质量包括:所述中继与所述第一终端之间的信道质量;所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
详细内容参照S303所述。
确定单元1104包括确定子单元11041,用于根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继,用于根据所述测量报告确定目的中继;
详细内容参照S304所述。
第一发送单元1105,用于向所述目的中继发送更换请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S305所述。
第二接收单元1106,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S306所述。
第二发送单元1107,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S307所述。
通知单元1108,用于将所述目的中继的IP地址通过所述源中继发送给所述第一终端之后,通知所述源中继停止中继服务;
详细内容参照S308所述。
参照图12所示,本发明实施例中第一终端的一个实施例包括:
第一发送单元1201,用于向所述第二终端发送第一中继改变请求;
详细内容参照S401所述。
第一接收单元1202,用于接收到其他中继发送的测量报告;
详细内容参照S402所述。
确定单元1203,用于根据所述测量报告确定目的中继;
详细内容参照S403所述。
第二发送单元1204,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S404所述。
第二接收单元1205,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S405所述。
第二发送单元1206,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S406所述。
参照图13所示,本发明实施例中第一终端的另一实施例包括:
第一发送单元1301,用于向所述第二终端发送第一中继改变请求;
详细内容参照S501所述。
第一接收单元1302,用于接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述第一终端广播的第二中继改变请求以及所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二终端标识为所述第二终端接收到所述第一终端发送的第一中继改变请求后广播的第二终端标识,所述第二中继改变请求为所述第一终端根据接收到的所述第二终端反馈的第一链路请求响应消息所广播的第二中继改变请求,所述第二中继改变请求包括所述第二终端的第二终端标识;所述信道质量包括:所述中继与所述第二终端之间的信道质量;所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
详细内容参照S502所述。
确定单元1303包括确定子单元13031,用于根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继;
详细内容参照S503所述。
第二发送单元1304,用于向所述目的中继发送变更请求信息,所述变更 请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S504所述。
第二接收单元1305,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S505所述。
第二发送单元1306,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S506所述。
通知单元1307,用于将所述目的中继的IP地址通过所述源中继发送给所述第二终端之后,通知所述源中继停止中继服务;
详细内容参照S507所述。
参照图14所示,本发明实施例中第一终端的另一实施例包括:
第一发送单元1401,用于向所述第二终端发送第一中继改变请求;
详细内容参照S601所述。
反馈单元1402,用于在接收所述其他中继发送的测量报告之前,通过所述源中继接收所述第二终端反馈的第一链路中继改变请求的响应消息;
详细内容参照S602所述。
第一接收单元1403,用于接收到其他中继发送的测量报告;所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二中继改变请求为所述第二终端根据接收到的所述第一终端发送的第一中继改变请求所广播的第二中继改变请求,所述第二中继改变请求包括所述第一终端的第一终端标识;所述信道质量包括:所述中继与所述第二终端之间的信道质量;所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况;
详细内容参照S603所述。
确定单元1404包括确定子单元14041,用于根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继;
详细内容参照S604所述。
第二发送单元1405,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S605所述。
第二接收单元1406,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S606所述。
第二发送单元1407,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S607所述。
通知单元1408,用于将所述目的中继的IP地址通过所述源中继发送给所述第二终端之后,通知所述源中继停止中继服务;
详细内容参照S608所述。
参照图15所示,本发明实施例中源中继的一个实施例包括:
第一接收单元1501,用于接收到其他中继发送的测量报告;
详细内容参照S701所述。
确定单元1502,用于根据所述测量报告确定目的中继;
详细内容参照S702所述。
第一发送单元1503,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S703所述。
第二接收单元1504,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S704所述。
第二发送单元1505,用于将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S705所述。
参照图16所示,本发明实施例中源中继的另一实施例包括:
第三接收单元1601,用于在广播第二中继改变请求之前,接收所述第一终端发送的第一中继改变请求;
详细内容参照S801所述。
第一接收单元1602,用于接收到其他中继发送的测量报告;所述测量报告包括:所述其他中继接收到所述源中继广播的第二中继改变请求以及所述第一终端广播的第一终端标识与所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第一终端标识为所述第一终端根据接收到所述第二中继改变请求广播的第一终端标识,所述第二终端标识为所述第二终端根据接收到的第二中继改变请求广播的第二终端标识;所述第二中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识;
详细内容参照S802所述。
确定单元1603,用于根据所述测量报告确定目的中继;
详细内容参照S803所述。
第一发送单元1604,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
详细内容参照S804所述。
第二接收单元1605,用于接收所述目的中继发送的所述目的中继的IP地址;
详细内容参照S805所述。
第二发送单元1606,用于将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信;
详细内容参照S806所述。
第四接收单元1607,用于在将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端之后,接收所述第一终端以及所述第二终端的确认消息;
详细内容参照S807所述。
停止单元1608,用于停止对所述第一终端以及第二终端的中继服务;
详细内容参照S808所述。
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (34)

  1. 一种更换中继的方法,其特征在于,应用于第一终端与第二终端通过源中继通信的过程中需要更换中继时,包括:
    所述第二终端接收到其他中继发送的测量报告;
    所述第二终端根据所述测量报告确定目的中继;
    所述第二终端向所述目的中继发送更换请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
    所述第二终端接收所述目的中继发送的所述目的中继的IP地址;
    所述第二终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
  2. 根据权利要求1所述的方法,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第一终端广播的中继改变请求后测量信道质量所得到的报告,其中,所述中继改变请求包括所述第二终端的第二终端标识。
  3. 根据权利要求1所述的方法,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二中继改变请求包括所述第一终端的第一终端标识;
    在所述第二终端广播第二中继改变请求之前还包括:
    所述第二终端接收所述第一终端通过所述源中继发送的第一中继改变请求;
    在所述第二终端接收所述其他中继发送的测量报告之前,所述方法还包括:
    所述第二终端通过所述源中继向所述第一终端反馈所述第一中继改变请求的响应消息。
  4. 根据权利要求2或3所述的方法,其特征在于,所述信道质量包括:所述中继与所述第一终端之间的信道质量;
    所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
  5. 根据权利要求1至4其中任意一项所述的方法,其特征在于,所述第二终端根据所述测量报告确定目的中继包括:
    所述第二终端根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继。
  6. 根据权利要求1至5其中任意一项所述的方法,其特征在于,所述第二终端将所述目的中继的IP地址通过所述源中继发送给所述第一终端之后,所述方法还包括:
    所述第二终端通知所述源中继停止中继服务。
  7. 一种更换中继的方法,其特征在于,应用于第一终端与第二终端通过源中继通信过程中需要更换中继时,包括:
    所述第一终端向所述第二终端发送第一中继改变请求;
    所述第一终端接收到其他中继发送的测量报告;
    所述第一终端根据所述测量报告确定目的中继;
    所述第一终端向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
    所述第一终端接收所述目的中继发送的所述目的中继的IP地址;
    所述第一终端将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
  8. 根据权利要求7所述的方法,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第一终端广播的第二中继改变请求以及所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二终端标识为所述第二终端接收到所述第一终端发送的第一中继改变请求后广播的第二终端标识,所述第二中继改变请求为所述第一终端根据接收到的所述第二终端反馈的第一链路请求响应消息所广播的第二中继改变请求,所述第二中继改变请求包括所述第二终端的第二终端标识。
  9. 根据权利要求7所述的方法,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其 中,所述第二中继改变请求为所述第二终端根据接收到的所述第一终端发送的第一中继改变请求所广播的第二中继改变请求,所述第二中继改变请求包括所述第一终端的第一终端标识;
    在所述第一终端接收所述其他中继发送的测量报告之前,所述方法还包括:
    所述第一终端通过所述源中继接收所述第二终端反馈的第一链路中继改变请求的响应消息。
  10. 根据权利要求8或9所述的方法,其特征在于,所述信道质量包括:所述中继与所述第二终端之间的信道质量;
    所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
  11. 根据权利要求7至10其中任意一项所述的方法,其特征在于,所述第一终端根据所述测量报告确定目的中继包括:
    所述第一终端根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继。
  12. 根据权利要求7至11其中任意一项所述的方法,其特征在于,所述第一终端将所述目的中继的IP地址通过所述源中继发送给所述第二终端之后,所述方法还包括:
    所述第一终端通知所述源中继停止中继服务。
  13. 一种更换中继的方法,其特征在于,应用于第一终端与第二终端通过源中继通信的过程中需要更换中继时,包括:
    所述源中继接收到其他中继发送的测量报告;
    所述源中继根据所述测量报告确定目的中继;
    所述源中继向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
    所述源中继接收所述目的中继发送的所述目的中继的IP地址;
    所述源中继将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
  14. 根据权利要求13所述的方法,其特征在于,所述测量报告包括:
    所述其他中继接收到所述源中继广播的第二中继改变请求以及所述第一终端广播的第一终端标识与所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第一终端标识为所述第一终端根据接收到所述第二中继改变请求广播的第一终端标识,所述第二终端标识为所述第二终端根据接收到的第二中继改变请求广播的第二终端标识;所述第二中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识。
  15. 根据权利要求14所述的方法,其特征在于,在所述源中继广播第二中继改变请求之前还包括:所述源中继接收所述第一终端发送的第一中继改变请求。
  16. 根据权利要求14或15所述的方法,其特征在于,所述信道质量包括:所述中继与所述第一终端之间的信道质量以及所述中继与所述第二终端之间的信道质量;
    所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
  17. 根据权利要求13至16其中任意一项所述的方法,其特征在于,在所述源中继将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端之后,所述方法还包括:
    所述源中继接收所述第一终端以及所述第二终端的确认消息;
    所述源中继停止对所述第一终端以及第二终端的中继服务。
  18. 一种第二终端,其特征在于,应用于第一终端与第二终端通过源中继通信的过程中需要更换中继时,包括:
    第一接收单元,用于接收到其他中继发送的测量报告;
    确定单元,用于根据所述测量报告确定目的中继;
    第一发送单元,用于向所述目的中继发送更换请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
    第二接收单元,用于接收所述目的中继发送的所述目的中继的IP地址;
    第二发送单元,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第一终端,以使得所述第一终端与所述第二终端通过所述目的 中继进行通信。
  19. 根据权利要求18所述的第二终端,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第一终端广播的中继改变请求后测量信道质量所得到的报告,其中,所述中继改变请求包括所述第二终端的第二终端标识。
  20. 根据权利要求18所述的第二终端,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述中继改变请求包括所述第一终端的第一终端标识;
    所述第二终端还包括:
    第三接收单元,用于在所述第二终端广播第二中继改变请求之前,接收所述第一终端通过所述源中继发送的第一中继改变请求;
    反馈单元,用于在接收所述其他中继发送的测量报告之前,通过所述源中继向所述第一终端反馈所述第一中继改变请求的响应消息。
  21. 根据权利要求19或20所述的第二终端,其特征在于,所述信道质量包括:所述中继与所述第一终端之间的信道质量;
    所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
  22. 根据权利要求18至21其中任意一项所述的第二终端,其特征在于,所述确定单元包括:
    确定子单元,用于根据测量报告以及所述第二终端所测量的与所述其他中继的信道质量确定目的中继。
  23. 根据权利要求18至22其中任意一项所述的第二终端,其特征在于,所述第二终端还包括:
    通知单元,用于将所述目的中继的IP地址通过所述源中继发送给所述第一终端之后,通知所述源中继停止中继服务。
  24. 一种第一终端,其特征在于,应用于第一终端与第二终端通过源中继通信过程中需要更换中继时,包括:
    第一发送单元,用于向所述第二终端发送第一中继改变请求;
    第一接收单元,用于接收到其他中继发送的测量报告;
    确定单元,用于根据所述测量报告确定目的中继;
    第二发送单元,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
    第二接收单元,用于接收所述目的中继发送的所述目的中继的IP地址;
    第二发送单元,用于将所述目的中继的IP地址以及层二地址通过所述源中继发送给所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
  25. 根据权利要求24所述的第一终端,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第一终端广播的第二中继改变请求以及所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二终端标识为所述第二终端接收到所述第一终端发送的第一中继改变请求后广播的第二终端标识,所述第二中继改变请求为所述第一终端根据接收到的所述第二终端反馈的第一链路请求响应消息所广播的第二中继改变请求,所述第二中继改变请求包括所述第二终端的第二终端标识。
  26. 根据权利要求24所述的第一终端,其特征在于,所述测量报告包括:
    所述其他中继接收到所述第二终端广播的第二中继改变请求以及所述第一终端广播的第一终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第二中继改变请求为所述第二终端根据接收到的所述第一终端发送的第一中继改变请求所广播的第二中继改变请求,所述第二中继改变请求包括所述第一终端的第一终端标识;
    所述第一终端还包括:
    反馈单元,用于在接收所述其他中继发送的测量报告之前,通过所述源中继接收所述第二终端反馈的第一链路中继改变请求的响应消息。
  27. 根据权利要求25或26所述的第一终端,其特征在于,所述信道质量包括:所述中继与所述第二终端之间的信道质量;
    所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
  28. 根据权利要求24至27其中任意一项所述的第一终端,其特征在于,所述确定单元包括:
    确定子单元,用于根据测量报告以及所述第一终端所测量的与所述其他中继的信道质量确定目的中继。
  29. 根据权利要求24至28其中任意一项所述的第一终端,其特征在于,所述第一终端还包括:
    通知单元,用于将所述目的中继的IP地址通过所述源中继发送给所述第二终端之后,通知所述源中继停止中继服务。
  30. 一种源中继,其特征在于,应用于第一终端与第二终端通过源中继通信的过程中需要更换中继时,包括:
    第一接收单元,用于接收到其他中继发送的测量报告;
    确定单元,用于根据所述测量报告确定目的中继;
    第一发送单元,用于向所述目的中继发送变更请求信息,所述变更请求信息包括所述第一终端以及第二终端的互联网协议IP地址;
    第二接收单元,用于接收所述目的中继发送的所述目的中继的IP地址;
    第二发送单元,用于将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端,以使得所述第一终端与所述第二终端通过所述目的中继进行通信。
  31. 根据权利要求30所述的源中继,其特征在于,所述测量报告包括:
    所述其他中继接收到所述源中继广播的第二中继改变请求以及所述第一终端广播的第一终端标识与所述第二终端广播的第二终端标识后,所述其他中继测量信道质量所得到的报告,其中,所述第一终端标识为所述第一终端根据接收到所述第二中继改变请求广播的第一终端标识,所述第二终端标识为所述第二终端根据接收到的第二中继改变请求广播的第二终端标识;所述第二中继改变请求包括所述第一终端的第一终端标识与所述第二终端的第二终端标识。
  32. 根据权利要求31所述的源中继,其特征在于,所述源中继还包括:
    第三接收单元,用于在广播第二中继改变请求之前,接收所述第一终端发送的第一中继改变请求。
  33. 根据权利要求31或32所述的源中继,其特征在于,所述信道质量包括:所述中继与所述第一终端之间的信道质量以及所述中继与所述第二终端之间的信道质量;
    所述测量报告还包括中继状态信息,所述中继状态信息包括:所述中继的剩余电量以及负载情况。
  34. 根据权利要求30至33其中任意一项所述的源中继,其特征在于,所述源中继还包括:
    第四接收单元,用于在将所述目的中继的IP地址以及层二地址发送给所述第一终端以及所述第二终端之后,接收所述第一终端以及所述第二终端的确认消息;
    停止单元,用于停止对所述第一终端以及第二终端的中继服务。
PCT/CN2015/078066 2015-04-30 2015-04-30 一种更换中继的方法及装置 WO2016172953A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/078066 WO2016172953A1 (zh) 2015-04-30 2015-04-30 一种更换中继的方法及装置
CN201580078747.1A CN107534912B (zh) 2015-04-30 2015-04-30 一种更换中继的方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/078066 WO2016172953A1 (zh) 2015-04-30 2015-04-30 一种更换中继的方法及装置

Publications (1)

Publication Number Publication Date
WO2016172953A1 true WO2016172953A1 (zh) 2016-11-03

Family

ID=57198038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078066 WO2016172953A1 (zh) 2015-04-30 2015-04-30 一种更换中继的方法及装置

Country Status (2)

Country Link
CN (1) CN107534912B (zh)
WO (1) WO2016172953A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841824A (zh) * 2009-03-17 2010-09-22 大唐移动通信设备有限公司 一种实现小区切换的方法、系统和中继设备
WO2014037158A1 (en) * 2012-09-10 2014-03-13 Fujitsu Limited Handover with mobile relays
CN103813402A (zh) * 2012-11-15 2014-05-21 中兴通讯股份有限公司 通信路径的切换方法及装置、切换处理装置及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841872B (zh) * 2009-03-17 2013-01-30 电信科学技术研究院 一种实现小区切换的方法和中继设备
CN102461258A (zh) * 2009-06-17 2012-05-16 交互数字专利控股公司 使用中继节点进行切换的方法和设备
CN101938798A (zh) * 2009-07-03 2011-01-05 中兴通讯股份有限公司 一种无线中继系统中终端的移动性管理方法及系统
WO2015004142A1 (en) * 2013-07-08 2015-01-15 Nec Europe Ltd. Method for deciding to handover user equipment in a mobile communicaton network
CN104469695B (zh) * 2013-09-12 2019-02-05 华为技术有限公司 网络接入方法、近距离通信服务器、中继终端及终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841824A (zh) * 2009-03-17 2010-09-22 大唐移动通信设备有限公司 一种实现小区切换的方法、系统和中继设备
WO2014037158A1 (en) * 2012-09-10 2014-03-13 Fujitsu Limited Handover with mobile relays
CN103813402A (zh) * 2012-11-15 2014-05-21 中兴通讯股份有限公司 通信路径的切换方法及装置、切换处理装置及系统

Also Published As

Publication number Publication date
CN107534912B (zh) 2019-11-19
CN107534912A (zh) 2018-01-02

Similar Documents

Publication Publication Date Title
US10182391B2 (en) Systems and methods for managing a UE-to-network relay
JP6463477B2 (ja) 中継端末の再選方法及び装置
JP2023155461A (ja) デバイスツーデバイス(d2d)通信のモバイル中継器の実現
US9930718B2 (en) Method and apparatus for switching data path in wireless communication system supporting device-to-device communication
KR20150048611A (ko) 이동성에 강인한 그룹 통신을 위한 방법 및 장치
WO2013107346A1 (zh) 一种基站间接口连接建立方法及装置
KR100663854B1 (ko) 네트워크 시스템, 제어 장치, 라우터 장치, 액세스 포인트및 이동 단말기
WO2016101575A1 (zh) 一种语音业务切换方法及设备
KR20140017677A (ko) 다중경로 오버레이 네트워크 및 그의 다중경로 관리 프로토콜
JP2018515013A (ja) サービスルーティングのためのデバイスマネージャ
WO2012062164A1 (zh) 一种路径切换方法及装置、系统
US20160150454A1 (en) Client managed soft handover and seamless link failover for wireless networks
WO2015096736A1 (zh) 一种组通信业务的处理方法、用户设备、网络侧设备及系统
US20090180437A1 (en) Communication apparatus and handover method
WO2013080034A2 (en) Method and apparatus for network-based multicast in a ubiquitous sensor network
WO2016172953A1 (zh) 一种更换中继的方法及装置
WO2012003771A1 (zh) 一种环形组网中数据传输的方法及系统
JP4209752B2 (ja) 移動通信システム、移動端末、ノード装置、及び移動通信方法
WO2016168978A1 (zh) 一种资源切换方法、装置及系统
JP4487058B2 (ja) 無線通信システム及び無線通信方法
JP6315208B2 (ja) 通信システム、通信装置および回線選択制御方法
CN104426691A (zh) 故障处理方法、汇聚网关和无线侧网关
WO2023143097A1 (en) Method and apparatus for multicast/broadcast service
JP2009225291A (ja) 移動通信システムおよび無線基地局
WO2012118449A2 (en) Communication devices and methods for performing communication

Legal Events

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

Ref document number: 15890333

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15890333

Country of ref document: EP

Kind code of ref document: A1