WO2017076279A1 - Method of updating forward information base item, and device and system utilizing same - Google Patents

Method of updating forward information base item, and device and system utilizing same Download PDF

Info

Publication number
WO2017076279A1
WO2017076279A1 PCT/CN2016/104249 CN2016104249W WO2017076279A1 WO 2017076279 A1 WO2017076279 A1 WO 2017076279A1 CN 2016104249 W CN2016104249 W CN 2016104249W WO 2017076279 A1 WO2017076279 A1 WO 2017076279A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network
routing
routing device
signal quality
Prior art date
Application number
PCT/CN2016/104249
Other languages
French (fr)
Chinese (zh)
Inventor
方海鹏
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017076279A1 publication Critical patent/WO2017076279A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a method, device, and system for updating a routing entry.
  • ICN Information Centrie Networking
  • the content of the content provider (which may be a terminal) is broadcasted in the network, and the content identifier GN1 (or content name) of the content may be carried in the broadcast message to enable the router in the network. Establishing a routing entry corresponding to GN1.
  • the terminal sends a content request to the ICN, where the content request carries the GN1, and the router in the ICN receives the content request, and then carries the content according to the content request.
  • the name of the FIB Formwarding Information Base
  • finds the next hop and finally reaches the content provider.
  • the content provider feeds back the data corresponding to the content request to the content requester.
  • the user sends a content request to the terminal (MN1) of the content provider through the terminal (MN2) in the network A.
  • the MN1 accesses the network B through the port 1, and subsequently, the MN1 may move, and the MN1 detects
  • the signal quality to the network B is degraded, the signal quality of the network C is relatively good, and the MN1 accesses the network C through the other port 2.
  • the subsequent content request of the MN2 cannot be sent to the MN1.
  • the treatments that can be used are as follows:
  • the MN1 After accessing the network C, the MN1 sends a path update notification (or a route update) to the network C by using the port 2, and the path update notification carries the GN1. If the route router does not have the GN1 routing entry, it is added to the network C. The routing entry of GN1, and then forward the path update notification to the upper router, the path notification will be forwarded to the core router connecting network A, network B, and network C. After receiving the Interest, the core router will be in its own A GN1 routing entry to the network C is added to the routing table, and the routing entry is recorded as a priority routing entry. In this way, the content request that arrives at MN1 subsequently can be routed to MN1 through network C.
  • a path update notification or a route update
  • the prior art requires strict network deployment. A core router that connects to network A, network B, and network C is required. If the terminal needs to switch between more networks, the core router needs to connect more networks. Conducive to the realization of complex networks.
  • the embodiment of the present invention provides a method and an apparatus for updating a routing entry.
  • the technical solution is as follows:
  • the embodiment of the present invention provides a method and a system for updating a routing entry.
  • the technical solution is as follows:
  • a method for updating a routing entry comprising:
  • the access signal quality meets the signal quality condition of the third network
  • the first terminal when detecting that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal After the third network whose quality satisfies the signal quality condition, the method further includes:
  • the first terminal acquires a device identifier of the first routing device connected to the first network
  • the first terminal by using the third network, is based on a device identifier of the first routing device After the sending the second path update notification to the first routing device, the method further includes:
  • the first terminal receives a second content request that is sent by the second terminal by using the fourth network, where the second content request carries the second terminal to access the fourth routing device that is connected to the fourth network.
  • Device identification
  • the first terminal determines that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the first terminal passes the third network, based on the a device identifier of the fourth routing device, configured to send a third path update notification to the fourth routing device, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, And recorded as the priority routing entry of the first terminal.
  • the first terminal when detecting the current After the signal quality of the first network that is accessed does not meet the preset signal quality condition, after the access signal quality meets the third network of the signal quality condition, the method further includes:
  • the first terminal performs content broadcast through the third network.
  • a method for updating a routing entry comprising:
  • the second routing device receives the first content request sent by the second terminal to the first terminal, and forwards the first content request to the first terminal, where the first content request carries the first content
  • the device identifier of the second routing device
  • the second routing device receives the first path update notification sent by the first terminal based on the device identifier of the second routing device, where the first path update notification is detected by the first terminal
  • the signal quality of the incoming first network does not meet the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
  • the second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
  • the method further includes: when the second terminal stores the corresponding routing table of the first terminal in the third network The second routing device deletes the routing entry corresponding to the first terminal in the third network, when the duration of the unused time exceeds the preset duration threshold.
  • the third aspect provides a first terminal, where the first terminal includes:
  • a transmitting module configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the second terminal Entering the device identifier of the second routing device connected to the second network to which it belongs;
  • An access module configured to: when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality meets the signal quality condition of the third network;
  • An update module configured to send, by using the third network, a first path update notification to the second routing device, based on the device identifier of the second routing device, to enable the second routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
  • the first terminal further includes: an acquiring module, configured to acquire a device identifier of the first routing device connected to the first network ;
  • the update module is further configured to send, by using the third network, a second path update notification to the first routing device, based on the device identifier of the first routing device, to enable the first routing device to establish a location
  • the routing entry corresponding to the first terminal in the third network is recorded as a priority routing entry of the first terminal.
  • the transmission module is further configured to:
  • the update module is further configured to:
  • the device identifier based on the fourth routing device is used by the third network.
  • the fourth routing device sends a third path update notification, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority of the first terminal. Routing entry.
  • the first terminal further includes:
  • a broadcast module configured to perform content broadcast by using the third network.
  • a second routing device where the second routing device includes:
  • a transmitting module configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, receive data corresponding to the first content request, and forward the data Giving the second terminal; wherein the first content request carries the device identifier of the second routing device;
  • An update module configured to receive a first path update notification sent by the first terminal based on a device identifier of the second routing device, where the first path update notification is detected by the first terminal
  • the signal quality of the first network does not satisfy the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
  • the establishing module is configured to establish a routing entry corresponding to the first terminal in the third network, and record the priority routing entry of the first terminal.
  • the second routing device further includes:
  • a deleting module configured to delete the first terminal in the third network when the stored duration of the first terminal in the third network that is not used by the first terminal exceeds a preset duration threshold Corresponding routing entry.
  • a system for updating a routing entry includes: a first terminal and a second routing device, where:
  • the first terminal is configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the first
  • the second terminal accesses the device identifier of the second routing device connected to the second network to which the terminal belongs; when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies a third network of the signal quality condition; sending, by the third network, a first path update notification to the second routing device based on the device identifier of the second routing device;
  • the second routing device is configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, and receive the first content request corresponding to the first content request Data, and forwarded to the second terminal; receiving a first path update notification sent by the first terminal based on the device identifier of the second routing device; establishing corresponding to the first terminal in the third network
  • the routing entry is recorded as the priority routing entry of the first terminal.
  • the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network.
  • the entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, which is beneficial to the implementation of the complex network.
  • FIG. 1 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a system architecture provided by an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a process for updating a routing entry according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a process for updating a routing entry according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a first terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a first terminal according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a first terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a second routing device according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a second routing device according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a routing device according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for updating a routing entry, which may be implemented by a terminal and a routing device, where the terminal may include a terminal of the content provider (which may be referred to as a first terminal) and a terminal of the content requester.
  • the routing device to which the first terminal accesses the first network may be the first routing device, and the routing device to which the second terminal accesses the second network may be the second routing device.
  • the processing procedure of the first terminal in the method may include the following steps:
  • Step 101 The first terminal receives the first content request sent by the second terminal, and transmits the content corresponding to the first content request to the second terminal, where the first content request carries the second network to which the second terminal accesses The device identifier of the connected second routing device.
  • Step 102 When detecting that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the first terminal accesses the third network whose signal quality meets the signal quality condition.
  • Step 103 The first terminal sends a first path update notification to the second routing device by using the third network, based on the device identifier of the second routing device, so that the second routing device establishes a corresponding route of the first terminal in the third network.
  • the entry is recorded as the priority routing entry of the first terminal.
  • the processing flow of the second routing device in the method may include the following steps:
  • Step 201 The second routing device receives the first content request sent by the second terminal to the first terminal, and forwards the first content request to the first terminal, where the first content request carries the device identifier of the second routing device.
  • Step 202 The second routing device receives the data corresponding to the first content request, and forwards the data to the second terminal.
  • Step 203 The second routing device receives a first path update notification sent by the first terminal according to the device identifier of the second routing device, where the first path update notification is sent by the first terminal to detect the signal of the first network accessed by the first terminal.
  • the quality does not satisfy the preset signal quality condition and is connected to the third network whose signal quality satisfies the signal quality condition, and then transmitted through the third network.
  • Step 204 The second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
  • the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network.
  • the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition.
  • the first terminal passes the third The network, based on the device identifier of the second routing device, sends a first path update notification to the second routing device, so that the second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the same as the first terminal. Priority routing entry. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, which is beneficial to the implementation of the complex network.
  • the embodiment of the invention provides a method for updating a routing entry, which can be implemented by a terminal and a routing device.
  • the terminal may include a terminal of the content provider (which may be referred to as a first terminal) and a terminal of the content requester (which may be referred to as a second terminal), and the routing device connected to the first terminal to access the first network may be the first
  • the routing device, the second terminal accessing the routing device connected to the second network may be a second routing device, and the first network and the second network may be a WIFI (Wireless Fidelity) network, 2G (Second Generation Mobile Communication Technology) , second generation mobile communication technology), 3G (Third Generation Mobile Communication Technology), 4G (Fourth Generation Mobile Communication Technology) network, etc.
  • WIFI Wireless Fidelity
  • the first terminal and the second terminal may be mobile terminals such as mobile phones and tablet computers, and may be provided with a memory, a processor, a transmission component, a network port, etc., the network port may be used to access the network, and the memory may be used to store one or more
  • the processor can be used to process content requests and network switching
  • the transmission component can be used to receive and transmit data
  • the display screen, input components, and the like can also be provided.
  • the first routing device and the second routing device may be devices such as an ICN router, and may include components such as a processor, a memory, a transmission component, and a network port.
  • the processor may be used to process a content request and a network switch, and the storage may be used for storage. Data generated during content request and network switching, etc., network ports can be used to access the network.
  • the processing flow of the method may include the following steps:
  • Step 401 The second routing device receives the first content request sent by the second terminal to the first terminal, and forwards the first content request to the first terminal.
  • the first content request includes: a content identifier of the requested content, and a device identifier of the second routing device.
  • the message format of the first content request may be: /GN1/1-50; CRNAME: R2, where GN1 is the content identifier of the requested content, and 1-50 is the sequence number of the requested data. For example, all data of GN1 is 1-200, requesting 1-50), CRNAME: R2 represents the device identifier of the second routing device connected by the second terminal that sends the first content request.
  • the first terminal is connected to the first routing device in the first network through its own network port 1, and then broadcasts the content identifier (such as GN1) of the locally provided content (such as video, picture, etc.) in the network.
  • the routing device in the network may establish a routing entry of the first terminal in the first network, where the routing entry corresponds to the content, and the routing entry may include the port of the GN1 and the egress port. logo. If the first terminal provides multiple content, multiple broadcast messages may be sent.
  • each routing device may also establish a routing table corresponding to each content. item.
  • the second terminal when the user wants to obtain the foregoing content in the first terminal, the second terminal may be enabled to enable the second terminal to connect to the second routing device through the network port, thereby completing access to the second network.
  • the second terminal may obtain the device identifier of the second routing device and store it in the second terminal.
  • the user may input the content identifier of the content in the second terminal, and after receiving the content identifier input by the user, the second terminal may generate a first content request based on the content identifier and the device identifier of the second routing device, and then A content request is sent to the second routing device.
  • the second routing device After receiving the first content request for the first terminal sent by the second terminal, the second routing device may obtain the content identifier in the first content request, and forward the first content request to the first A network and eventually forwarded to the first terminal.
  • Step 402 The first terminal receives the first content request sent by the second terminal, and transmits data corresponding to the first content request to the second terminal.
  • the first terminal may store the device identifier of the second routing device, and at the same time, according to the content identifier in the first content request, in the locally provided content, Searching for content corresponding to the content identifier, and feeding back data corresponding to the content to the second terminal.
  • Step 403 The second routing device receives the data corresponding to the first content request, and forwards the data to the second terminal.
  • the data corresponding to the first content request is forwarded to the second routing device during the forwarding process, and then the second routing device forwards the data to the second terminal.
  • Step 404 When the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the first terminal accesses the third network that meets the preset signal quality condition.
  • the first terminal may slowly move and gradually move to the edge of the first network, when the first terminal detects the signal of the first network currently accessed.
  • the quality does not meet the preset signal quality condition. If the signal strength cannot reach a certain intensity threshold, and the signal quality of the third network satisfies the signal quality condition, the first terminal connects to the third routing device of the third network through the network port 2.
  • the first terminal may initiate a routing path to the first routing device in the third network, and correspondingly, the first terminal may perform the following processing: the first terminal acquires the connection to the first network. The device identifier of the first routing device, the first terminal sends a second path update notification to the first routing device, based on the device identifier of the first routing device, by the third terminal, so that the first routing device establishes the first terminal in the first
  • the corresponding routing entry in the three networks is recorded as the priority routing entry of the first terminal.
  • the second path update notification includes: a content identifier of the content provided by the first terminal, and a device identifier of the first routing device, where the content provided by the first terminal may be the content corresponding to the first content request, or may further include Other content provided by the first terminal.
  • the message format of the second path update notification may be R1/Notify/ADD_GN1_FIB, where GN1 is the content identifier of the content that the first terminal can provide, Notify indicates that the message type is the path update notification, and ADD_GN1_FIB indicates that the routing entry for GN1 is added.
  • R1 is the device identifier of the first routing device.
  • the first terminal when the first terminal connects to the first routing device in the first network, the first terminal may record the device identifier R1 of the first routing device, and when the first terminal connects to the third routing device of the third network through the network port 2 The first terminal may obtain the device identifier of the first routing device that it records. After the first terminal accesses the third network, the content of the first terminal is slower to spread on the third network, and the required time is longer. To prevent other terminals from sending content requests to the first terminal, the content request is routed to The first network, and the signal quality of the first terminal in the first network is poor, so that the first terminal cannot receive the content request, and the processing manner of the first terminal may be as follows:
  • the second path update notification is automatically generated according to the device identifier of the first routing device, and then the second path update notification is sent to the third routing device.
  • the third routing device may obtain the device identifier of the first routing device in the second path update notification, and notify the second path update by using the maximum matching manner based on the device identifier. Forwarding to the first routing device, in this process, a routing path between the first routing device and the third routing device may be established, and a routing entry of the content of the first terminal in the third network is established in the routing device, and The routing entry is recorded as the priority routing entry of the first terminal.
  • the routing device of the first network receives the content request sent by the first terminal, if the routing device has the priority routing entry of the first terminal, the content request is performed according to the priority routing entry of the first terminal. Forwarded to the first terminal in the third network.
  • Step 405 The first terminal sends a first path update notification to the second routing device by using the third network, based on the device identifier of the second routing device.
  • the first path update notification includes: a content identifier of the content provided by the first terminal, and a device identifier of the second routing device, where the content provided by the first terminal may be the content corresponding to the first content request, or may further include
  • the message format of the first path update notification may be R2/Notify/ADD_GN1_FIB, Notify indicates that the message type is a path update notification, ADD_GN1_FIB indicates that the routing entry for GN1 is added, and GN1 is the requested content.
  • Content identifier, R2 is the device identifier of the second routing device.
  • the processing manner of the first terminal may be:
  • the first terminal automatically generates a first path update notification according to the device identifier of the second routing device, and then sends the first path update notification to the third routing device, where the third routing device receives the first terminal.
  • the device identifier of the second routing device in the first path update notification may be obtained, and the first path update notification is forwarded to the second routing device by using the maximum matching manner based on the device identifier.
  • Step 406 The second routing device receives the first path update notification sent by the first terminal according to the device identifier of the second routing device.
  • Step 407 The second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
  • the second routing device may add a routing entry corresponding to the first terminal in the third network in the routing table, where the routing entry may include The egress port (which may be the port that receives the first path update notification) and the content identifier carried in the path update notification. If multiple content identifiers are carried, multiple corresponding routing entries may be established, and then the established routing entry may be established. Recorded as the priority routing entry of the first terminal, in this process, a routing path between the first terminal and the second routing device may be established, and a routing table of the content of the first terminal in the third network is established in the routing device passing through And the routing entry is recorded as the priority routing entry of the first terminal.
  • the optimal path of the first terminal in the third network and the second terminal in the second network is established.
  • the second routing device receives the second terminal and sends the second terminal.
  • the content request routes the content request to the first terminal according to the priority routing entry of the first terminal.
  • the processing procedure after the network switching of the second terminal is further provided, as shown in FIG. It can include the following steps:
  • Step 601 The first terminal receives the second content request sent by the second terminal by using the fourth network, where the second content request carries the device identifier of the fourth routing device connected to the fourth network.
  • the second content request includes: a content identifier of the content requested by the second content request, and a device identifier of the fourth routing device.
  • the message content of the second content request may be: /GN1/30 ⁇ 50; CRNAME: R4, where R4 is the device identifier of the fourth routing device, and 30-50 is the serial number of the requested data, because the second terminal generates a network.
  • the second content request may request to acquire the remaining data, for example, the previous terminal has previously acquired 1-30, and may obtain 30-50 through the second content request;
  • the message content of the second content request may also be: /GN1/50 ⁇ 100; CRNAME: R4, 50-100 is the location of the requested data in all the data of GN1, and the data requested by the content request before the second terminal may be After the reception has been completed, the second content request can request new data, that is, 50 to 100.
  • the second terminal detects the second terminal. If the signal quality of the second network does not meet the preset signal quality condition, and the signal quality of the fourth network satisfies the signal quality condition, the second terminal may connect to the fourth routing device in the fourth network through the corresponding network port to access In the fourth network, the second terminal may obtain the device identifier of the fourth routing device, and then send the second content request to the fourth routing device.
  • the fourth routing device may obtain the content identifier in the second content request, and based on the content identifier, the fourth routing device will The content request is forwarded to the first network, and after receiving the content request sent by the second terminal to the first terminal, the routing device of the first network forwards the content request to the third network according to the priority routing entry of the first terminal.
  • the first terminal may establish a routing path from the second terminal in the fourth network to the first routing device in the first network to the first terminal in the third network.
  • Step 602 The first terminal transmits data corresponding to the second content request to the second terminal.
  • the first terminal after receiving the second content request sent by the second terminal, stores the device identifier of the fourth routing device, and searches for the content in the locally provided content according to the content identifier in the second content request.
  • the content identifies the content, and the data corresponding to the content is sent to the second terminal by using a routing path for transmitting the second content request.
  • Step 603 If the first terminal determines that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the first terminal passes the third network, and is based on the device identifier of the fourth routing device. Sending a third path update notification to the fourth routing device.
  • the third path update notification includes: a content identifier of the content provided by the first terminal, and a device identifier of the fourth routing device, where the content provided by the first terminal may be the content corresponding to the second content request, or may further include
  • the message format of the third path update notification may be R4/Notify/ADD_GN1_FIB, where GN1 is the content identifier of the content that the first terminal can provide, and Notify indicates that the message type is the path update notification, and R4 is The device identifier of the fourth routing device.
  • the first terminal may further acquire the device identifier of the fourth routing device carried therein, and further access the device identifier of the fourth routing device to the second terminal that is pre-recorded.
  • the device identifiers of the second routing device connected to the network are compared. If they are different, it is determined that the second terminal has a network switch, and the first terminal can perform the following processing:
  • the first terminal automatically generates a third path update notification according to the device identifier of the fourth routing device, and then sends a third path update notification to the third routing device, where the third routing device receives the first terminal.
  • the device identifier of the fourth routing device in the third path update notification may be obtained, and the third path update notification is forwarded to the fourth routing device by using the fuzzy search manner, and the fourth route is obtained.
  • the device may establish a routing entry of the content of the first terminal in the third network, and record the routing entry as the priority routing entry of the first terminal.
  • a routing path between the third routing device and the fourth routing device may be established, and a routing entry of the content of the first terminal in the third network is established in the routing device, and the routing entry is recorded as The priority routing entry of the first terminal.
  • the first terminal after the first terminal accesses the third network whose signal quality meets the signal quality condition, the first terminal performs content broadcast through the third network.
  • the broadcast of the content of the first terminal in the third network is generally slow.
  • the manner in which the first terminal broadcasts the locally provided content in the network may be: the first terminal broadcasts the locally provided content in the network, and after receiving the broadcast message, the routing device in the network may establish the first terminal in the first A routing entry in the network, the routing entry corresponding to the content, the routing entry may include a content identifier of the content, and a port identifier of the egress port. If the first terminal provides multiple content, multiple broadcast messages may be sent. Correspondingly, each routing device may also establish a routing entry corresponding to each content.
  • the deletion mechanism of the newly added routing entry may be set, and the corresponding processing may be as follows: when the first terminal stored in the second routing device is in the third network, the corresponding routing entry is not used. When the duration exceeds the preset duration threshold, the second routing device deletes the routing entry corresponding to the first terminal in the third network.
  • the preset duration threshold of the newly added routing entry may be preset.
  • the routing device may automatically delete the routing entry.
  • the routing table item is used by the routing device to restart the calculation of the usage time of the routing entry when the routing entry is used for a content request, a path update notification, or a data transmission. For example, after the first terminal switches from the first network to the third network, the first terminal sends a first path update notification to the second routing device in the third network, and the second routing device increases the first terminal in the third network.
  • the corresponding routing entry is automatically deleted by the second routing device when the second routing device does not use the routing time of the first terminal in the third network to reach the preset duration threshold.
  • the routing entries added to the first routing device and the fourth routing device may also be deleted according to the deletion mechanism of the routing entry.
  • the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network.
  • the entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
  • the embodiment of the present invention further provides a first terminal.
  • the first terminal includes:
  • the transmitting module 810 is configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the second terminal Accessing the device identifier of the second routing device connected to the second network to which it belongs;
  • the access module 820 is configured to: when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality meets the signal quality condition of the third network;
  • the update module 830 is configured to send, by using the third network, a first path update notification to the second routing device, based on the device identifier of the second routing device, to enable the second routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
  • the first terminal further includes: an obtaining module 840, configured to acquire a device identifier of the first routing device connected to the first network;
  • the update module 830 is further configured to send, by using the third network, a second path update notification to the first routing device, based on the device identifier of the first routing device, to enable the first routing device to establish The routing entry corresponding to the first terminal in the third network is recorded as a priority routing entry of the first terminal.
  • the transmission module 810 is further configured to:
  • the update module 830 is further configured to:
  • the device identifier based on the fourth routing device is used by the third network.
  • the fourth routing device sends a third path update notification, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority of the first terminal. Routing entry.
  • the first terminal further includes:
  • the broadcast module 850 is configured to perform content broadcast by using the third network.
  • the embodiment of the present invention further provides a second routing device.
  • the second routing device includes:
  • the transmitting module 1110 is configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, and receive data corresponding to the first content request, and Forwarding to the second terminal; wherein the first content request carries the device identifier of the second routing device;
  • the update module 1120 is configured to receive, by the first terminal, a first path update notification sent by the device identifier of the second routing device, where the first path update notification is detected by the first terminal.
  • the signal quality of the incoming first network does not meet the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
  • the establishing module 1130 is configured to establish a routing entry corresponding to the first terminal in the third network, and record the priority routing entry of the first terminal.
  • the second routing device further includes:
  • the deleting module 1140 is configured to delete the first terminal in the third network when the stored duration of the first terminal in the third network that is not used by the first terminal exceeds a preset duration threshold. The corresponding routing entry in the middle.
  • the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the Connected by the second network a device identifier of the second routing device; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access network quality meets the signal quality condition of the third network; Transmitting, by the third network, the first path update notification to the second routing device, by using the third network, the second routing device, to enable the second routing device to establish a routing entry corresponding to the first terminal in the third network, and Recorded as the priority routing entry of the first terminal.
  • the process of performing path change after the content provider performs network switching it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
  • the embodiment of the present invention further provides a system for updating a routing entry, where the system includes a first terminal and a second routing device, where:
  • the first terminal is configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the first
  • the second terminal accesses the device identifier of the second routing device connected to the second network to which the terminal belongs; when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies a third network of the signal quality condition; sending, by the third network, a first path update notification to the second routing device based on the device identifier of the second routing device;
  • the second routing device is configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, and receive the first content request corresponding to the first content request Data, and forwarded to the second terminal; receiving a first path update notification sent by the first terminal based on the device identifier of the second routing device; establishing corresponding to the first terminal in the third network
  • the routing entry is recorded as the priority routing entry of the first terminal.
  • the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network.
  • the entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
  • FIG. 13 is a schematic structural diagram of a terminal according to an exemplary embodiment.
  • the terminal can be used as the first terminal to implement the method for updating the routing entry in the foregoing embodiment.
  • the terminal 1300 may include an RF (Radio Frequency) circuit 110, including one or more a memory 120 of the computer readable storage medium, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (Wireless Fidelity) module 170, a processor 180 including one or more processing cores, and Power supply 190 and other components.
  • RF Radio Frequency
  • FIG. 13 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting signals. Specifically, after receiving downlink information of the base station, the downlink information is processed by one or more processors 180. In addition, the data related to the uplink is sent to the base station. .
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1300 (such as audio data, phone book, etc.) and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 may also include other input devices Prepare 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 1300, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal 1300 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal 1300 moves to the ear. / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal 1300 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 1300.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 1300.
  • WiFi is a short-range wireless transmission technology
  • the terminal 1300 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 13 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal 1300, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the terminal 1300 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 1300 are performed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate the application processor and the modem
  • the application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal 1300 also includes a power source 190 (such as a battery) for powering various components.
  • the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 1300 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal 1300 is a touch screen display
  • the terminal 1300 further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or one
  • the above processor executes one or more programs that include instructions for performing the following operations:
  • the access signal quality satisfies the third network of the signal quality condition
  • the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network.
  • the entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
  • FIG. 14 is a schematic structural diagram of a routing device according to an exemplary embodiment.
  • the routing device can be used as the second routing device to implement the method for updating the routing entry in the foregoing embodiment.
  • FIG. 14 is a schematic structural diagram of a routing device according to an embodiment of the present invention.
  • the routing device 1900 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 1922 (eg, one or more processors) and memory 1932, one or More than one store Application 1942 or storage medium 1930 of data 1944 (eg, one or one storage device in Shanghai).
  • the memory 1932 and the storage medium 1930 may be short-term storage or persistent storage.
  • the program stored on storage medium 1930 may include one or more modules (not shown), each of which may include a series of instruction operations in a routing device.
  • the central processor 1922 can be configured to communicate with the storage medium 1930 to perform a series of instruction operations in the storage medium 1930 on the routing device 1900.
  • Routing device 1900 can also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems. 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • Routing device 1900 can include a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs included for performing Instructions for the following operations:
  • the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network.
  • the entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
  • the device for updating the routing entry in the foregoing embodiment is only illustrated by the division of the foregoing functional modules.
  • the foregoing function may be allocated according to requirements. Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules to complete the above described Part or part of the function.
  • the device for updating the routing entry provided by the foregoing embodiment is the same as the method for updating the routing entry. For the specific implementation process, refer to the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the technical field of networks, and specifically, to a method of updating a forward information base item, and a device and system utilizing the same. The method comprises: a first terminal receives a first content request transmitted from a second terminal, and transmits data corresponding to the first content request to the second terminal, wherein the first content request contains an equipment identifier of second router equipment to which the second terminal is connected to access to a second network thereof; when signal quality corresponding to a first network currently accessed by the first terminal does not meet a preconfigured signal quality condition, the first terminal accesses to a third network having an access signal quality satisfying the signal quality condition; and the first terminal transmits via the third network, and based on the equipment identifier of the second router equipment, a first path update modification to the second router equipment, so as to enable the second router equipment to establish a forward information base item corresponding to the first terminal in the third network, and configure the forward information base item as a preferable router item of the first terminal. Adopting the invention facilitates implementation of a complicated network.

Description

一种更新路由表项的方法、装置及系统Method, device and system for updating routing entries
本申请要求于2015年11月2日提交中国专利局、申请号为201510734003.2、发明名称为“一种更新路由表项的方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201510734003.2, entitled "A Method, Apparatus and System for Updating Routing Table Items", filed on November 2, 2015, the entire contents of which are incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及网络技术领域,特别涉及一种更新路由表项的方法、装置及系统。The present invention relates to the field of network technologies, and in particular, to a method, device, and system for updating a routing entry.
背景技术Background technique
ICN(Information Centrie Networking,以信息为中心的网络)是一种未来互联网架构,同传统的IP网络(Internet Protocol)相比,ICN的路由是基于信息内容的路由。在ICN中,内容提供方(可以是某终端)的内容在网络中发布采用广播的方式进行,广播消息中可以携带有该内容的内容标识GN1(或称内容名),以使网络中的路由器建立起对应GN1的路由表项,如果用户想请求该内容,则利用终端发送内容请求给ICN,其中内容请求携带有GN1,ICN中的路由器收到该内容请求后,根据内容请求中携带的内容名字查找FIB(Forwarding information Base,路由表)找到下一跳,最终到达内容提供方,内容提供方收到内容请求后,将内容请求对应的数据反馈给内容请求方。ICN (Information Centrie Networking) is a future Internet architecture. Compared with the traditional Internet Protocol, ICN routing is based on information content routing. In the ICN, the content of the content provider (which may be a terminal) is broadcasted in the network, and the content identifier GN1 (or content name) of the content may be carried in the broadcast message to enable the router in the network. Establishing a routing entry corresponding to GN1. If the user wants to request the content, the terminal sends a content request to the ICN, where the content request carries the GN1, and the router in the ICN receives the content request, and then carries the content according to the content request. The name of the FIB (Forwarding Information Base) finds the next hop, and finally reaches the content provider. After receiving the content request, the content provider feeds back the data corresponding to the content request to the content requester.
现有技术中,用户通过网络A中的终端(MN2)向内容提供方的终端(MN1)发送内容请求,此时,MN1通过端口1接入网络B,后续,MN1有可能发生移动,MN1检测到网络B的信号质量下降,网络C的信号质量比较好,MN1通过另一端口2接入网络C,在网络B无法接收内容请求的情况下,MN2后续的内容请求无法发送到MN1,此时可以采用的处理方式如下:In the prior art, the user sends a content request to the terminal (MN1) of the content provider through the terminal (MN2) in the network A. At this time, the MN1 accesses the network B through the port 1, and subsequently, the MN1 may move, and the MN1 detects The signal quality to the network B is degraded, the signal quality of the network C is relatively good, and the MN1 accesses the network C through the other port 2. In the case that the network B cannot receive the content request, the subsequent content request of the MN2 cannot be sent to the MN1. The treatments that can be used are as follows:
MN1接入网络C后,使用端口2给网络C发送路径更新通知(或称为路由更新Interest),路径更新通知中携带有GN1,如果途径的路由器没有GN1的路由表项,则增加到网络C的GN1的路由表项,然后将该路径更新通知转发到上层路由器,该路径通知将被转发至连接网络A、网络B、网络C的核心路由器,该核心路由器收到Interest后,会在自己的路由表中增加到网络C的GN1路由表项,而且将该路由表项记录为优先路由表项。这样,后续到达MN1的内容请求,则可以通过网络C路由到MN1。After accessing the network C, the MN1 sends a path update notification (or a route update) to the network C by using the port 2, and the path update notification carries the GN1. If the route router does not have the GN1 routing entry, it is added to the network C. The routing entry of GN1, and then forward the path update notification to the upper router, the path notification will be forwarded to the core router connecting network A, network B, and network C. After receiving the Interest, the core router will be in its own A GN1 routing entry to the network C is added to the routing table, and the routing entry is recorded as a priority routing entry. In this way, the content request that arrives at MN1 subsequently can be routed to MN1 through network C.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
现有技术对网络部署要求比较严格,需要有同时连接网络A、网络B、网络C的核心路由器,如果要满足终端在更多网络之间的切换需求,则核心路由器需要连接更多网络,不利于复杂网络的实现。 The prior art requires strict network deployment. A core router that connects to network A, network B, and network C is required. If the terminal needs to switch between more networks, the core router needs to connect more networks. Conducive to the realization of complex networks.
发明内容Summary of the invention
为了解决现有技术的问题,本发明实施例提供了一种更新路由表项的方法、装置,所述技术方案如下:In order to solve the problem of the prior art, the embodiment of the present invention provides a method and an apparatus for updating a routing entry. The technical solution is as follows:
为了解决现有技术的问题,本发明实施例提供了一种更新路由表项的方法、系统,所述技术方案如下:In order to solve the problem of the prior art, the embodiment of the present invention provides a method and a system for updating a routing entry. The technical solution is as follows:
第一方面,提供了一种更新路由表项的方法,所述方法包括:In a first aspect, a method for updating a routing entry is provided, the method comprising:
第一终端接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;Receiving, by the first terminal, the first content request sent by the second terminal, and transmitting the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the second content terminal a device identifier of the second routing device to which the second network belongs;
所述第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;When the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality meets the signal quality condition of the third network;
所述第一终端通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知,以使所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。Transmitting, by the first terminal, the first path update notification to the second routing device by using the third network, based on the device identifier of the second routing device, to enable the second routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
结合第一方面,在该第一方面的第一种可能实现方式中,所述第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络之后,还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the first terminal, when detecting that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal After the third network whose quality satisfies the signal quality condition, the method further includes:
所述第一终端获取接入所述第一网络所连接的第一路由设备的设备标识;The first terminal acquires a device identifier of the first routing device connected to the first network;
所述第一终端通过所述第三网络,基于所述第一路由设备的设备标识,向所述第一路由设备发送第二路径更新通知,以使所述第一路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。Transmitting, by the first terminal, the second path update notification to the first routing device by using the third network, based on the device identifier of the first routing device, to enable the first routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
结合第一方面的第一种可能的实现方式,在该第一方面的第二种可能的实现方式中,所述第一终端通过所述第三网络,基于所述第一路由设备的设备标识,向所述第一路由设备发送所述第二路径更新通知之后,还包括:With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first terminal, by using the third network, is based on a device identifier of the first routing device After the sending the second path update notification to the first routing device, the method further includes:
所述第一终端接收所述第二终端通过第四网络发送的第二内容请求,所述第二内容请求中携带有所述第二终端接入所述第四网络所连接的第四路由设备的设备标识;The first terminal receives a second content request that is sent by the second terminal by using the fourth network, where the second content request carries the second terminal to access the fourth routing device that is connected to the fourth network. Device identification
所述第一终端向所述第二终端传输所述第二内容请求对应的数据;Transmitting, by the first terminal, data corresponding to the second content request to the second terminal;
如果所述第一终端根据所述第四路由设备的设备标识和第二路由设备的设备标识,判定所述第二终端发生网络切换,则所述第一终端通过所述第三网络,基于所述第四路由设备的设备标识,向所述第四路由设备发送第三路径更新通知,以使所述第四路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。If the first terminal determines that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the first terminal passes the third network, based on the a device identifier of the fourth routing device, configured to send a third path update notification to the fourth routing device, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, And recorded as the priority routing entry of the first terminal.
结合第一方面,在该第一方面的第三种可能实现方式中,所述第一终端当检测到当前 接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络之后,还包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, the first terminal, when detecting the current After the signal quality of the first network that is accessed does not meet the preset signal quality condition, after the access signal quality meets the third network of the signal quality condition, the method further includes:
所述第一终端通过所述第三网络进行内容广播。The first terminal performs content broadcast through the third network.
第二方面,提供了一种更新路由表项的方法,所述方法包括:In a second aspect, a method for updating a routing entry is provided, the method comprising:
第二路由设备接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求,其中,所述第一内容请求中携带有所述第二路由设备的设备标识;The second routing device receives the first content request sent by the second terminal to the first terminal, and forwards the first content request to the first terminal, where the first content request carries the first content The device identifier of the second routing device;
所述第二路由设备接收所述第一内容请求对应的数据,并转发给所述第二终端;Receiving, by the second routing device, data corresponding to the first content request, and forwarding the data to the second terminal;
所述第二路由设备接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知,其中,所述第一路径更新通知由所述第一终端在检测到其接入的第一网络的信号质量不满足预设的信号质量条件并接入信号质量满足所述信号质量条件的第三网络后通过所述第三网络发送;The second routing device receives the first path update notification sent by the first terminal based on the device identifier of the second routing device, where the first path update notification is detected by the first terminal The signal quality of the incoming first network does not meet the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
结合第二方面,在该第二方面的第一种可能实现方式中,所述方法还包括:当所述第二路由设备存储的所述第一终端在所述第三网络中对应的路由表项未被使用的时长超过预设时长阈值时,所述第二路由设备删除所述第一终端在所述第三网络中对应的路由表项。With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: when the second terminal stores the corresponding routing table of the first terminal in the third network The second routing device deletes the routing entry corresponding to the first terminal in the third network, when the duration of the unused time exceeds the preset duration threshold.
第三方面提供了一种第一终端,所述第一终端包括:The third aspect provides a first terminal, where the first terminal includes:
传输模块,用于接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;a transmitting module, configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the second terminal Entering the device identifier of the second routing device connected to the second network to which it belongs;
接入模块,用于当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;An access module, configured to: when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality meets the signal quality condition of the third network;
更新模块,用于通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知,以使所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。An update module, configured to send, by using the third network, a first path update notification to the second routing device, based on the device identifier of the second routing device, to enable the second routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
结合第三方面,在该第三方面的第一种可能实现方式中,所述第一终端还包括:获取模块,用于获取接入所述第一网络所连接的第一路由设备的设备标识;With reference to the third aspect, in a first possible implementation manner of the third aspect, the first terminal further includes: an acquiring module, configured to acquire a device identifier of the first routing device connected to the first network ;
所述更新模块,还用于通过所述第三网络,基于所述第一路由设备的设备标识,向所述第一路由设备发送第二路径更新通知,以使所述第一路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The update module is further configured to send, by using the third network, a second path update notification to the first routing device, based on the device identifier of the first routing device, to enable the first routing device to establish a location The routing entry corresponding to the first terminal in the third network is recorded as a priority routing entry of the first terminal.
结合第三方面的第一种可能的实现方式,在该第三方面的第二种可能的实现方式中, 所述传输模块,还用于:In conjunction with the first possible implementation of the third aspect, in a second possible implementation manner of the third aspect, The transmission module is further configured to:
接收所述第二终端通过第四网络发送的第二内容请求,所述第二内容请求中携带有所述第二终端接入所述第四网络所连接的第四路由设备的设备标识;向所述第二终端传输所述第二内容请求对应的数据;Receiving, by the second terminal, the second content request sent by the second terminal, where the second content request carries the device identifier of the fourth routing device connected to the fourth network by the second terminal; Transmitting, by the second terminal, data corresponding to the second content request;
所述更新模块,还用于:The update module is further configured to:
如果根据所述第四路由设备的设备标识和第二路由设备的设备标识,判定所述第二终端发生网络切换,则通过所述第三网络,基于所述第四路由设备的设备标识,向所述第四路由设备发送第三路径更新通知,以使所述第四路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。If it is determined that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the device identifier based on the fourth routing device is used by the third network. The fourth routing device sends a third path update notification, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority of the first terminal. Routing entry.
结合第三方面,在该第三方面的第三种可能实现方式中,所述第一终端还包括:With reference to the third aspect, in a third possible implementation manner of the third aspect, the first terminal further includes:
广播模块,用于通过所述第三网络进行内容广播。And a broadcast module, configured to perform content broadcast by using the third network.
第四方面,提供了一种第二路由设备,所述第二路由设备包括:In a fourth aspect, a second routing device is provided, where the second routing device includes:
传输模块,用于接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求;接收所述第一内容请求对应的数据,并转发给所述第二终端;其中,所述第一内容请求中携带有所述第二路由设备的设备标识;a transmitting module, configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, receive data corresponding to the first content request, and forward the data Giving the second terminal; wherein the first content request carries the device identifier of the second routing device;
更新模块,用于接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知,其中,所述第一路径更新通知由所述第一终端在检测到其接入的第一网络的信号质量不满足预设的信号质量条件并接入信号质量满足所述信号质量条件的第三网络后通过所述第三网络发送;An update module, configured to receive a first path update notification sent by the first terminal based on a device identifier of the second routing device, where the first path update notification is detected by the first terminal The signal quality of the first network does not satisfy the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
建立模块,用于建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The establishing module is configured to establish a routing entry corresponding to the first terminal in the third network, and record the priority routing entry of the first terminal.
结合第四方面,在该第四方面的第一种可能的实现方式中,所述第二路由设备还包括:With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the second routing device further includes:
删除模块,用于当存储的所述第一终端在所述第三网络中对应的路由表项未被使用的时长超过预设时长阈值时,删除所述第一终端在所述第三网络中对应的路由表项。a deleting module, configured to delete the first terminal in the third network when the stored duration of the first terminal in the third network that is not used by the first terminal exceeds a preset duration threshold Corresponding routing entry.
第五方面,提供了一种更新路由表项的系统,在第五方面的第一种可能的实现方式中,系统包括:第一终端和第二路由设备,其中:In a fifth aspect, a system for updating a routing entry is provided. In a first possible implementation manner of the fifth aspect, the system includes: a first terminal and a second routing device, where:
所述第一终端,用于接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知; The first terminal is configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the first The second terminal accesses the device identifier of the second routing device connected to the second network to which the terminal belongs; when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies a third network of the signal quality condition; sending, by the third network, a first path update notification to the second routing device based on the device identifier of the second routing device;
所述第二路由设备,用于接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求;接收所述第一内容请求对应的数据,并转发给所述第二终端;接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知;建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The second routing device is configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, and receive the first content request corresponding to the first content request Data, and forwarded to the second terminal; receiving a first path update notification sent by the first terminal based on the device identifier of the second routing device; establishing corresponding to the first terminal in the third network The routing entry is recorded as the priority routing entry of the first terminal.
本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present invention are:
本发明实施例中,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络;第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。这样,在内容提供方进行网络切换后进行路径变更的过程中,并不需要连接多个网络的核心路由器,有利于复杂网络的实现。In the embodiment of the present invention, the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network. The entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, which is beneficial to the implementation of the complex network.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明实施例提供一种更新路由表项的方法流程图;FIG. 1 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention;
图2是本发明实施例提供一种更新路由表项的方法流程图;2 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention;
图3是本发明实施例提供的系统架构的示意图;3 is a schematic diagram of a system architecture provided by an embodiment of the present invention;
图4是本发明实施例提供一种更新路由表项的方法流程图;4 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention;
图5是本发明实施例提供更新路由表项的处理过程的示意图;FIG. 5 is a schematic diagram of a process for updating a routing entry according to an embodiment of the present invention; FIG.
图6是本发明实施例提供一种更新路由表项的方法流程图;FIG. 6 is a flowchart of a method for updating a routing entry according to an embodiment of the present invention;
图7是本发明实施例提供更新路由表项的处理过程的示意图;FIG. 7 is a schematic diagram of a process for updating a routing entry according to an embodiment of the present invention; FIG.
图8是本发明实施例提供第一终端的结构示意图;FIG. 8 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;
图9是本发明实施例提供第一终端的结构示意图;FIG. 9 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;
图10是本发明实施例提供第一终端的结构示意图;FIG. 10 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;
图11是本发明实施例提供第二路由设备的结构示意图;FIG. 11 is a schematic structural diagram of a second routing device according to an embodiment of the present invention;
图12是本发明实施例提供第二路由设备的结构示意图;FIG. 12 is a schematic structural diagram of a second routing device according to an embodiment of the present invention;
图13是本发明实施例提供终端的结构示意图; FIG. 13 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图14是本发明实施例提供路由设备的结构示意图。FIG. 14 is a schematic structural diagram of a routing device according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
实施例一Embodiment 1
本发明实施例提供了一种更新路由表项的方法,该方法可以由终端和路由设备共同实现,其中,终端可以包括内容提供方的终端(可称作第一终端)和内容请求方的终端(可称作第二终端),第一终端接入第一网络所连接的路由设备可以为第一路由设备,第二终端接入第二网络所连接的路由设备可以为第二路由设备。The embodiment of the present invention provides a method for updating a routing entry, which may be implemented by a terminal and a routing device, where the terminal may include a terminal of the content provider (which may be referred to as a first terminal) and a terminal of the content requester. The routing device to which the first terminal accesses the first network may be the first routing device, and the routing device to which the second terminal accesses the second network may be the second routing device.
如图1所示,该方法中第一终端的处理流程可以包括如下的步骤:As shown in FIG. 1 , the processing procedure of the first terminal in the method may include the following steps:
步骤101,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的内容,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连接的第二路由设备的设备标识。Step 101: The first terminal receives the first content request sent by the second terminal, and transmits the content corresponding to the first content request to the second terminal, where the first content request carries the second network to which the second terminal accesses The device identifier of the connected second routing device.
步骤102,第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络。Step 102: When detecting that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the first terminal accesses the third network whose signal quality meets the signal quality condition.
步骤103,第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。Step 103: The first terminal sends a first path update notification to the second routing device by using the third network, based on the device identifier of the second routing device, so that the second routing device establishes a corresponding route of the first terminal in the third network. The entry is recorded as the priority routing entry of the first terminal.
如图2所示,该方法中第二路由设备的处理流程可以包括如下的步骤:As shown in FIG. 2, the processing flow of the second routing device in the method may include the following steps:
步骤201,第二路由设备接收第二终端发送的对第一终端的第一内容请求,向第一终端转发第一内容请求,其中,第一内容请求中携带有第二路由设备的设备标识。Step 201: The second routing device receives the first content request sent by the second terminal to the first terminal, and forwards the first content request to the first terminal, where the first content request carries the device identifier of the second routing device.
步骤202,第二路由设备接收第一内容请求对应的数据,并转发给第二终端。Step 202: The second routing device receives the data corresponding to the first content request, and forwards the data to the second terminal.
步骤203,第二路由设备接收第一终端基于第二路由设备的设备标识发送的第一路径更新通知,其中,第一路径更新通知由第一终端在检测到其接入的第一网络的信号质量不满足预设的信号质量条件并接入信号质量满足信号质量条件的第三网络后通过第三网络发送。Step 203: The second routing device receives a first path update notification sent by the first terminal according to the device identifier of the second routing device, where the first path update notification is sent by the first terminal to detect the signal of the first network accessed by the first terminal. The quality does not satisfy the preset signal quality condition and is connected to the third network whose signal quality satisfies the signal quality condition, and then transmitted through the third network.
步骤204,第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。Step 204: The second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
本发明实施例中,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连接的第二路由设备的设备标识,第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络,第一终端通过第三 网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。这样,在内容提供方进行网络切换后进行路径变更的过程中,并不需要连接多个网络的核心路由器,有利于复杂网络的实现。In the embodiment of the present invention, the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network. When the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition. Three networks, the first terminal passes the third The network, based on the device identifier of the second routing device, sends a first path update notification to the second routing device, so that the second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the same as the first terminal. Priority routing entry. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, which is beneficial to the implementation of the complex network.
实施例二Embodiment 2
本发明实施例提供了一种更新路由表项的方法,该方法可以由终端和路由设备共同实现。其中,终端可以包括内容提供方的终端(可称作第一终端)和内容请求方的终端(可称作第二终端),第一终端接入第一网络所连接的路由设备可以为第一路由设备,第二终端接入第二网络所连接的路由设备可以为第二路由设备,第一网络、第二网络可以是WIFI(Wireless Fidelity,无线保真)网络、2G(Second Generation Mobile Communication Technology,第二代移动通信技术)、3G(Third Generation Mobile Communication Technology,第三代移动通信技术)、4G(Fourth Generation Mobile Communication Technology,第四代移动通信技术)网络等网络,相应的系统架构可以如图3所示。The embodiment of the invention provides a method for updating a routing entry, which can be implemented by a terminal and a routing device. The terminal may include a terminal of the content provider (which may be referred to as a first terminal) and a terminal of the content requester (which may be referred to as a second terminal), and the routing device connected to the first terminal to access the first network may be the first The routing device, the second terminal accessing the routing device connected to the second network, may be a second routing device, and the first network and the second network may be a WIFI (Wireless Fidelity) network, 2G (Second Generation Mobile Communication Technology) , second generation mobile communication technology), 3G (Third Generation Mobile Communication Technology), 4G (Fourth Generation Mobile Communication Technology) network, etc., the corresponding system architecture can be as Figure 3 shows.
第一终端和第二终端可以是手机、平板电脑等移动终端,可以设置有存储器、处理器、传输部件和网络端口等,网络端口可以用于接入网络,存储器可以用于存储一个或多个共享的内容的数据及内容请求,处理器可以用于处理内容请求和网络切换等过程,传输部件可以用于接收和发送数据;还可以设置有显示屏、输入部件等。The first terminal and the second terminal may be mobile terminals such as mobile phones and tablet computers, and may be provided with a memory, a processor, a transmission component, a network port, etc., the network port may be used to access the network, and the memory may be used to store one or more The data and content request of the shared content, the processor can be used to process content requests and network switching, the transmission component can be used to receive and transmit data, and the display screen, input components, and the like can also be provided.
第一路由设备、第二路由设备可以是ICN路由器等设备,可以包括处理器、存储器、传输部件、网络端口等部件,处理器可以用于处理内容请求和网络切换等过程,存储器可以用于存储内容请求和网络切换等过程中产生的数据,网络端口可以用于接入网络。The first routing device and the second routing device may be devices such as an ICN router, and may include components such as a processor, a memory, a transmission component, and a network port. The processor may be used to process a content request and a network switch, and the storage may be used for storage. Data generated during content request and network switching, etc., network ports can be used to access the network.
如图4所示,该方法的处理流程可以包括如下的步骤:As shown in FIG. 4, the processing flow of the method may include the following steps:
步骤401,第二路由设备接收第二终端发送的对第一终端的第一内容请求,向第一终端转发第一内容请求。Step 401: The second routing device receives the first content request sent by the second terminal to the first terminal, and forwards the first content request to the first terminal.
其中,第一内容请求中包含有:请求的内容的内容标识、第二路由设备的设备标识。第一内容请求的消息格式可以为:/GN1/1-50;CRNAME:R2,其中,GN1为请求的内容的内容标识,1-50为请求的数据的序列号,例如,GN1的全部数据为1-200,请求其中的1-50),CRNAME:R2表示发送第一内容请求的第二终端连接的第二路由设备的设备标识。The first content request includes: a content identifier of the requested content, and a device identifier of the second routing device. The message format of the first content request may be: /GN1/1-50; CRNAME: R2, where GN1 is the content identifier of the requested content, and 1-50 is the sequence number of the requested data. For example, all data of GN1 is 1-200, requesting 1-50), CRNAME: R2 represents the device identifier of the second routing device connected by the second terminal that sends the first content request.
在实施中,第一终端通过自身的网络端口1连接到第一网络中的第一路由设备,然后把本地提供的内容(如视频、图片等)的内容标识(如GN1)在网络中广播,网络中的路由设备接收到广播消息后,则可以建立起第一终端在第一网络中的路由表项,该路由表项同时与该内容对应,该路由表项可以包括GN1、出端口的端口标识。如果第一终端提供了多个内容,可以发送多个广播消息,相应的,各路由设备也可以建立起对应每个内容的路由表 项。In an implementation, the first terminal is connected to the first routing device in the first network through its own network port 1, and then broadcasts the content identifier (such as GN1) of the locally provided content (such as video, picture, etc.) in the network. After receiving the broadcast message, the routing device in the network may establish a routing entry of the first terminal in the first network, where the routing entry corresponds to the content, and the routing entry may include the port of the GN1 and the egress port. Logo. If the first terminal provides multiple content, multiple broadcast messages may be sent. Correspondingly, each routing device may also establish a routing table corresponding to each content. item.
如图3所示,用户想获取第一终端中的上述内容时,可以开启第二终端,使第二终端通过其网络端口连接第二路由设备,也就完成接入第二网络,此时,第二终端可以获取第二路由设备的设备标识,存储在第二终端中。进而用户可以在第二终端中输入该内容的内容标识,第二终端接收到用户的输入的内容标识后,可以基于该内容标识和第二路由设备的设备标识生成第一内容请求,然后将第一内容请求发送给第二路由设备。第二路由设备接收第二终端发送的对第一终端的第一内容请求后,可以获取第一内容请求中的内容标识,基于该内容标识,通过最大匹配方式,将第一内容请求转发至第一网络,并最终转发至第一终端。As shown in FIG. 3, when the user wants to obtain the foregoing content in the first terminal, the second terminal may be enabled to enable the second terminal to connect to the second routing device through the network port, thereby completing access to the second network. The second terminal may obtain the device identifier of the second routing device and store it in the second terminal. The user may input the content identifier of the content in the second terminal, and after receiving the content identifier input by the user, the second terminal may generate a first content request based on the content identifier and the device identifier of the second routing device, and then A content request is sent to the second routing device. After receiving the first content request for the first terminal sent by the second terminal, the second routing device may obtain the content identifier in the first content request, and forward the first content request to the first A network and eventually forwarded to the first terminal.
步骤402,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据。Step 402: The first terminal receives the first content request sent by the second terminal, and transmits data corresponding to the first content request to the second terminal.
在实施中,第一终端接收到第二终端发送的第一内容请求后,可以存储第二路由设备的设备标识,同时,可以根据第一内容请求中的内容标识,在本地提供的内容中,查找该内容标识对应的内容,并将该内容对应的数据反馈给第二终端。In an implementation, after receiving the first content request sent by the second terminal, the first terminal may store the device identifier of the second routing device, and at the same time, according to the content identifier in the first content request, in the locally provided content, Searching for content corresponding to the content identifier, and feeding back data corresponding to the content to the second terminal.
步骤403,第二路由设备接收第一内容请求对应的数据,并转发给第二终端。Step 403: The second routing device receives the data corresponding to the first content request, and forwards the data to the second terminal.
在实施中,第一内容请求对应的数据在转发的过程中,会被转发至第二路由设备,然后第二路由设备再将其转发至第二终端。In an implementation, the data corresponding to the first content request is forwarded to the second routing device during the forwarding process, and then the second routing device forwards the data to the second terminal.
步骤404,第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足预设的信号质量条件的第三网络。Step 404: When the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the first terminal accesses the third network that meets the preset signal quality condition.
在实施中,第一终端与第二终端数据传输进行中,第一终端可能会慢慢发生移动,逐渐移动到第一网络的边缘,当第一终端检测到当前接入的第一网络的信号质量不满足预设的信号质量条件,如信号强度无法达到某强度阈值,而第三网络的信号质量满足信号质量条件时,第一终端通过网络端口2连接第三网络的第三路由设备。In the implementation, the data transmission between the first terminal and the second terminal is in progress, the first terminal may slowly move and gradually move to the edge of the first network, when the first terminal detects the signal of the first network currently accessed. The quality does not meet the preset signal quality condition. If the signal strength cannot reach a certain intensity threshold, and the signal quality of the third network satisfies the signal quality condition, the first terminal connects to the third routing device of the third network through the network port 2.
可选的,第一终端在接入第三网络后,可以在第三网络中向第一路由设备发起建立路由路径,相应的,可以进行如下处理:第一终端获取接入第一网络所连接的第一路由设备的设备标识;第一终端通过第三网络,基于第一路由设备的设备标识,向第一路由设备发送第二路径更新通知,以使第一路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。Optionally, after the first terminal accesses the third network, the first terminal may initiate a routing path to the first routing device in the third network, and correspondingly, the first terminal may perform the following processing: the first terminal acquires the connection to the first network. The device identifier of the first routing device, the first terminal sends a second path update notification to the first routing device, based on the device identifier of the first routing device, by the third terminal, so that the first routing device establishes the first terminal in the first The corresponding routing entry in the three networks is recorded as the priority routing entry of the first terminal.
其中,第二路径更新通知包含有:第一终端提供的内容的内容标识、第一路由设备的设备标识,此处第一终端提供的内容可以是第一内容请求对应的内容,或者还可以包括第一终端提供的其它内容。第二路径更新通知的消息格式可以为R1/Notify/ADD_GN1_FIB,其中,GN1为第一终端能够提供的内容的内容标识,Notify指明消息类型为路径更新通知,ADD_GN1_FIB为表明增加关于GN1的路由表项,R1为第一路由设备的设备标识。 The second path update notification includes: a content identifier of the content provided by the first terminal, and a device identifier of the first routing device, where the content provided by the first terminal may be the content corresponding to the first content request, or may further include Other content provided by the first terminal. The message format of the second path update notification may be R1/Notify/ADD_GN1_FIB, where GN1 is the content identifier of the content that the first terminal can provide, Notify indicates that the message type is the path update notification, and ADD_GN1_FIB indicates that the routing entry for GN1 is added. R1 is the device identifier of the first routing device.
在实施中,第一终端在连接第一网络中的第一路由设备时,可以对第一路由设备的设备标识R1进行记录,当第一终端通过网络端口2连接第三网络的第三路由设备时,第一终端可以获取其记录的第一路由设备的设备标识。由于第一终端接入第三网络后,第一终端的内容在第三网络的广播扩散比较慢,所需要的时间比较长,为了避免其它终端向第一终端发送内容请求时,内容请求路由到第一网络,而第一终端在第一网络的信号质量较差,导致第一终端不能接收到内容请求,第一终端的处理方式可以如下:In an implementation, when the first terminal connects to the first routing device in the first network, the first terminal may record the device identifier R1 of the first routing device, and when the first terminal connects to the third routing device of the third network through the network port 2 The first terminal may obtain the device identifier of the first routing device that it records. After the first terminal accesses the third network, the content of the first terminal is slower to spread on the third network, and the required time is longer. To prevent other terminals from sending content requests to the first terminal, the content request is routed to The first network, and the signal quality of the first terminal in the first network is poor, so that the first terminal cannot receive the content request, and the processing manner of the first terminal may be as follows:
如图5所示,第一终端通过端口2接入到第三网络后,根据第一路由设备的设备标识自动生成第二路径更新通知,然后将第二路径更新通知发送给第三路由设备,第三路由设备接收第一终端发送的第二路径更新通知后,可以获取第二路径更新通知中的第一路由设备的设备标识,基于该设备标识,通过最大匹配方式,将第二路径更新通知转发至第一路由设备,此过程中可以建立起第一路由设备和第三路由设备之间的路由路径,途经的路由设备中建立第一终端的内容在第三网络中的路由表项,且将该路由表项记录为第一终端的优先路由表项。这样,当第一网络的路由设备接收到对第一终端发送的内容请求后,如果该路由设备中有第一终端的优先路由表项,则根据第一终端的优先路由表项,将内容请求转发给第三网络中的第一终端。As shown in FIG. 5, after the first terminal accesses the third network through the port 2, the second path update notification is automatically generated according to the device identifier of the first routing device, and then the second path update notification is sent to the third routing device. After receiving the second path update notification sent by the first terminal, the third routing device may obtain the device identifier of the first routing device in the second path update notification, and notify the second path update by using the maximum matching manner based on the device identifier. Forwarding to the first routing device, in this process, a routing path between the first routing device and the third routing device may be established, and a routing entry of the content of the first terminal in the third network is established in the routing device, and The routing entry is recorded as the priority routing entry of the first terminal. In this way, after the routing device of the first network receives the content request sent by the first terminal, if the routing device has the priority routing entry of the first terminal, the content request is performed according to the priority routing entry of the first terminal. Forwarded to the first terminal in the third network.
步骤405,第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知。Step 405: The first terminal sends a first path update notification to the second routing device by using the third network, based on the device identifier of the second routing device.
其中,第一路径更新通知包含有:第一终端提供的内容的内容标识、第二路由设备的设备标识,此处第一终端提供的内容可以是第一内容请求对应的内容,或者还可以包括第一终端提供的其它内容,第一路径更新通知的消息格式可以为R2/Notify/ADD_GN1_FIB,Notify为指明消息类型为路径更新通知,ADD_GN1_FIB为表明增加关于GN1的路由表项,GN1为请求的内容的内容标识,R2为第二路由设备的设备标识。The first path update notification includes: a content identifier of the content provided by the first terminal, and a device identifier of the second routing device, where the content provided by the first terminal may be the content corresponding to the first content request, or may further include For other content provided by the first terminal, the message format of the first path update notification may be R2/Notify/ADD_GN1_FIB, Notify indicates that the message type is a path update notification, ADD_GN1_FIB indicates that the routing entry for GN1 is added, and GN1 is the requested content. Content identifier, R2 is the device identifier of the second routing device.
在实施中,当第二终端再次向第一终端发送内容请求时,由于第一终端在第三网络中与第二网络中的第二终端之间没有建立路由路径,内容请求有可能发送不到第一终端。为了保证内容请求可以顺利发送到第一终端,第一终端的处理方式可以为:In an implementation, when the second terminal sends the content request to the first terminal again, the content request may not be sent because the first terminal does not establish a routing path between the third network and the second terminal in the second network. The first terminal. To ensure that the content request can be successfully sent to the first terminal, the processing manner of the first terminal may be:
如图5所示,第一终端根据第二路由设备的设备标识自动生成第一路径更新通知,然后将第一路径更新通知发送给第三路由设备,第三路由设备接收第一终端发送的第一路径更新通知后,可以获取第一路径更新通知中的第二路由设备的设备标识,基于该设备标识,通过最大匹配方式,将第一路径更新通知转发至第二路由设备。As shown in FIG. 5, the first terminal automatically generates a first path update notification according to the device identifier of the second routing device, and then sends the first path update notification to the third routing device, where the third routing device receives the first terminal. After the path update notification, the device identifier of the second routing device in the first path update notification may be obtained, and the first path update notification is forwarded to the second routing device by using the maximum matching manner based on the device identifier.
步骤406,第二路由设备接收第一终端基于第二路由设备的设备标识发送的第一路径更新通知。Step 406: The second routing device receives the first path update notification sent by the first terminal according to the device identifier of the second routing device.
步骤407,第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。 Step 407: The second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
在实施中,第二路由设备接收到第一终端发送来的第一路径更新通知后,可以在路由表中增加第一终端在第三网络中对应的路由表项,该路由表项中可以包括出端口(可以是接收第一路径更新通知的端口)和路径更新通知携带的内容标识,如果携带有多个内容标识则可以建立对应的多个路由表项,然后,可以将建立的路由表项记录为第一终端的优先路由表项,此过程中可以建立起第一终端和第二路由设备之间的路由路径,途经的路由设备中建立第一终端的内容在第三网络中的路由表项,且将该路由表项记录为第一终端的优先路由表项。这样就建立了第一终端在第三网络中与第二网络中第二终端路由的最优路径,当第二终端再次向第一终端发送内容请求时,第二路由设备接收第二终端发送的内容请求,根据第一终端的优先路由表项将内容请求路由到第一终端。In an implementation, after receiving the first path update notification sent by the first terminal, the second routing device may add a routing entry corresponding to the first terminal in the third network in the routing table, where the routing entry may include The egress port (which may be the port that receives the first path update notification) and the content identifier carried in the path update notification. If multiple content identifiers are carried, multiple corresponding routing entries may be established, and then the established routing entry may be established. Recorded as the priority routing entry of the first terminal, in this process, a routing path between the first terminal and the second routing device may be established, and a routing table of the content of the first terminal in the third network is established in the routing device passing through And the routing entry is recorded as the priority routing entry of the first terminal. In this way, the optimal path of the first terminal in the third network and the second terminal in the second network is established. When the second terminal sends the content request to the first terminal again, the second routing device receives the second terminal and sends the second terminal. The content request routes the content request to the first terminal according to the priority routing entry of the first terminal.
本发明实施例,基于上述第一终端通过第三网络向第一路由设备发送第二路径更新通知的情况的处理,还提供了第二终端发生网络切换后的处理过程,如图6所示,可以包括如下的步骤:In the embodiment of the present invention, based on the processing of the first terminal sending the second path update notification to the first routing device by using the third network, the processing procedure after the network switching of the second terminal is further provided, as shown in FIG. It can include the following steps:
步骤601,第一终端接收第二终端通过第四网络发送的第二内容请求,第二内容请求中携带有第二终端接入第四网络所连接的第四路由设备的设备标识。Step 601: The first terminal receives the second content request sent by the second terminal by using the fourth network, where the second content request carries the device identifier of the fourth routing device connected to the fourth network.
其中,第二内容请求中包含有:第二内容请求所请求的内容的内容标识、第四路由设备的设备标识。第二内容请求的消息内容可以为:/GN1/30~50;CRNAME:R4,其中,R4为第四路由设备的设备标识,30~50为请求的数据的序列号,由于第二终端发生网络切换,有可能之前请求的数据还没有获取完毕,那么第二内容请求可以请求获取剩余的数据,例如,之前第二终端之前已经获取到1-30,可以通过第二内容请求获取30-50;第二内容请求的消息内容也可以为:/GN1/50~100;CRNAME:R4,50~100为请求的数据在GN1的全部数据中的位置,第二终端之前的内容请求所请求的数据可能已经接收完毕,第二内容请求可以请求新的数据,即50~100。The second content request includes: a content identifier of the content requested by the second content request, and a device identifier of the fourth routing device. The message content of the second content request may be: /GN1/30~50; CRNAME: R4, where R4 is the device identifier of the fourth routing device, and 30-50 is the serial number of the requested data, because the second terminal generates a network. Switching, it is possible that the previously requested data has not been obtained yet, then the second content request may request to acquire the remaining data, for example, the previous terminal has previously acquired 1-30, and may obtain 30-50 through the second content request; The message content of the second content request may also be: /GN1/50~100; CRNAME: R4, 50-100 is the location of the requested data in all the data of GN1, and the data requested by the content request before the second terminal may be After the reception has been completed, the second content request can request new data, that is, 50 to 100.
在实施中,第一终端从第一网络切换到第三网络后,如果第二终端的用户持第二终端发生移动,并且进入到第四网络的覆盖范围内,此时第二终端检测到第二网络的信号质量不满足预设的信号质量条件,而第四网络的信号质量满足信号质量条件时,第二终端可以通过相应的网络端口连接第四网络中的第四路由设备,以接入第四网络,第二终端可以获取第四路由设备的设备标识,然后将第二内容请求发送给第四路由设备。第四路由设备接收第二终端发送的对第一终端的第二内容请求后,可以获取第二内容请求中的内容标识,基于该内容标识,通过模糊查找的方式,第四路由设备会将第二内容请求转发至第一网络,当第一网络的路由设备接收到第二终端向第一终端发送的内容请求后,根据第一终端的优先路由表项,将内容请求转发给第三网络中的第一终端,此过程中可以建立起由第四网络中的第二终端到第一网络中的第一路由设备再到第三网络中的第一终端的路由路径。 In an implementation, after the first terminal switches from the first network to the third network, if the user of the second terminal moves with the second terminal and enters the coverage of the fourth network, the second terminal detects the second terminal. If the signal quality of the second network does not meet the preset signal quality condition, and the signal quality of the fourth network satisfies the signal quality condition, the second terminal may connect to the fourth routing device in the fourth network through the corresponding network port to access In the fourth network, the second terminal may obtain the device identifier of the fourth routing device, and then send the second content request to the fourth routing device. After receiving the second content request for the first terminal sent by the second terminal, the fourth routing device may obtain the content identifier in the second content request, and based on the content identifier, the fourth routing device will The content request is forwarded to the first network, and after receiving the content request sent by the second terminal to the first terminal, the routing device of the first network forwards the content request to the third network according to the priority routing entry of the first terminal. The first terminal may establish a routing path from the second terminal in the fourth network to the first routing device in the first network to the first terminal in the third network.
步骤602,第一终端向第二终端传输第二内容请求对应的数据。Step 602: The first terminal transmits data corresponding to the second content request to the second terminal.
在实施中,第一终端接收到第二终端发送的第二内容请求后,存储第四路由设备的设备标识,同时,根据第二内容请求中的内容标识,在本地提供的内容中,查找该内容标识对应的内容,并将该内容对应的数据通过传输第二内容请求的路由路径发送给第二终端。In an implementation, after receiving the second content request sent by the second terminal, the first terminal stores the device identifier of the fourth routing device, and searches for the content in the locally provided content according to the content identifier in the second content request. The content identifies the content, and the data corresponding to the content is sent to the second terminal by using a routing path for transmitting the second content request.
步骤603,如果第一终端根据第四路由设备的设备标识和第二路由设备的设备标识,判定第二终端发生网络切换,则第一终端通过第三网络,基于第四路由设备的设备标识,向第四路由设备发送第三路径更新通知。Step 603: If the first terminal determines that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the first terminal passes the third network, and is based on the device identifier of the fourth routing device. Sending a third path update notification to the fourth routing device.
其中,第三路径更新通知包含有:第一终端提供的内容的内容标识、第四路由设备的设备标识,此处第一终端提供的内容可以是第二内容请求对应的内容,或者还可以包括第一终端提供的其它内容,第三路径更新通知的消息格式可以为R4/Notify/ADD_GN1_FIB,其中,GN1为第一终端能够提供的内容的内容标识,Notify指明消息类型为路径更新通知,R4为第四路由设备的设备标识。The third path update notification includes: a content identifier of the content provided by the first terminal, and a device identifier of the fourth routing device, where the content provided by the first terminal may be the content corresponding to the second content request, or may further include For the other content provided by the first terminal, the message format of the third path update notification may be R4/Notify/ADD_GN1_FIB, where GN1 is the content identifier of the content that the first terminal can provide, and Notify indicates that the message type is the path update notification, and R4 is The device identifier of the fourth routing device.
在实施中,第一终端在接收到第二内容请求后,还可以获取其中携带的第四路由设备的设备标识,进而将第四路由设备的设备标识与预先记录的第二终端接入第二网络所连接的第二路由设备的设备标识进行比对,如果不同,则判定第二终端发生网络切换,进而第一终端可以进行如下处理:In an implementation, after receiving the second content request, the first terminal may further acquire the device identifier of the fourth routing device carried therein, and further access the device identifier of the fourth routing device to the second terminal that is pre-recorded. The device identifiers of the second routing device connected to the network are compared. If they are different, it is determined that the second terminal has a network switch, and the first terminal can perform the following processing:
如图7所示,第一终端根据第四路由设备的设备标识自动生成第三路径更新通知,然后将第三路径更新通知发送给第三路由设备,第三路由设备接收第一终端发送的第三路径更新通知后,可以获取第三路径更新通知中的第四路由设备的设备标识,基于该设备标识,通过模糊查找的方式,将第三路径更新通知转发至第四路由设备,第四路由设备接收到第三路径更新通知后,可以建立第一终端的内容在第三网络中的路由表项,并将该路由表项记录为第一终端的优先路由表项。此过程中可以建立起第三路由设备和第四路由设备之间的路由路径,途经的路由设备中建立第一终端的内容在第三网络中的路由表项,且将该路由表项记录为第一终端的优先路由表项。As shown in FIG. 7, the first terminal automatically generates a third path update notification according to the device identifier of the fourth routing device, and then sends a third path update notification to the third routing device, where the third routing device receives the first terminal. After the three-path update notification, the device identifier of the fourth routing device in the third path update notification may be obtained, and the third path update notification is forwarded to the fourth routing device by using the fuzzy search manner, and the fourth route is obtained. After receiving the third path update notification, the device may establish a routing entry of the content of the first terminal in the third network, and record the routing entry as the priority routing entry of the first terminal. In this process, a routing path between the third routing device and the fourth routing device may be established, and a routing entry of the content of the first terminal in the third network is established in the routing device, and the routing entry is recorded as The priority routing entry of the first terminal.
本发明实施例中,第一终端接入信号质量满足信号质量条件的第三网络后,第一终端通过第三网络进行内容广播。In the embodiment of the present invention, after the first terminal accesses the third network whose signal quality meets the signal quality condition, the first terminal performs content broadcast through the third network.
在实施中,第一终端接入第三网络后,第一终端的内容在第三网络的广播扩散通常是比较缓慢。第一终端将本地提供的内容在网络中广播的方式可以是:第一终端将本地提供的内容在网络中广播,网络中的路由设备接收到广播消息后,则可以建立起第一终端在第三网络中的路由表项,该路由表项同时与该内容对应,该路由表项可以包括该内容的内容标识、出端口的端口标识。如果第一终端提供了多个内容,可以发送多个广播消息,相应的,各路由设备也可以建立起对应每个内容的路由表项。 In an implementation, after the first terminal accesses the third network, the broadcast of the content of the first terminal in the third network is generally slow. The manner in which the first terminal broadcasts the locally provided content in the network may be: the first terminal broadcasts the locally provided content in the network, and after receiving the broadcast message, the routing device in the network may establish the first terminal in the first A routing entry in the network, the routing entry corresponding to the content, the routing entry may include a content identifier of the content, and a port identifier of the egress port. If the first terminal provides multiple content, multiple broadcast messages may be sent. Correspondingly, each routing device may also establish a routing entry corresponding to each content.
本发明实施例中,还可以设置对新增的路由表项的删除机制,相应的处理可以如下:当第二路由设备存储的第一终端在第三网络中对应的路由表项未被使用的时长超过预设时长阈值时,第二路由设备删除第一终端在第三网络中对应的路由表项。In the embodiment of the present invention, the deletion mechanism of the newly added routing entry may be set, and the corresponding processing may be as follows: when the first terminal stored in the second routing device is in the third network, the corresponding routing entry is not used. When the duration exceeds the preset duration threshold, the second routing device deletes the routing entry corresponding to the first terminal in the third network.
在实施中,可以预先设定新增的路由表项使用时的预设时长阈值,当路由设备中的某个路由表项未被使用的时长超过预设时长阈值时,路由设备可以自动删除该路由表项;当路由表项在预设的阈值时间内,又有内容请求、路径更新通知或数据传输等消息使用该路由表项,则路由设备重新开始计算该路由表项的使用时间。例如:第一终端从第一网络切换到第三网络后,第一终端在第三网络中给第二路由设备发送第一路径更新通知,第二路由设备会增加第一终端在第三网络中对应的路由表项,当第二路由设备不再使用第一终端在第三网络对应的路由表项的时间达到预设时长阈值时,就会被第二路由设备自动删除。另外,对于第一路由设备、第四路由设备中新增的路由表项也可以按照路由表项的删除机制进行删除。In the implementation, the preset duration threshold of the newly added routing entry may be preset. When the length of a routing entry in the routing device is less than the preset duration threshold, the routing device may automatically delete the routing entry. The routing table item is used by the routing device to restart the calculation of the usage time of the routing entry when the routing entry is used for a content request, a path update notification, or a data transmission. For example, after the first terminal switches from the first network to the third network, the first terminal sends a first path update notification to the second routing device in the third network, and the second routing device increases the first terminal in the third network. The corresponding routing entry is automatically deleted by the second routing device when the second routing device does not use the routing time of the first terminal in the third network to reach the preset duration threshold. In addition, the routing entries added to the first routing device and the fourth routing device may also be deleted according to the deletion mechanism of the routing entry.
本发明实施例中,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络;第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。这样,在内容提供方进行网络切换后进行路径变更的过程中,并不需要连接多个网络的核心路由器,从而,有利于复杂网络的实现。In the embodiment of the present invention, the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network. The entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
实施例三Embodiment 3
基于相同的技术构思,本发明实施例还提供了一种第一终端,如图8所示,第一终端包括:Based on the same technical concept, the embodiment of the present invention further provides a first terminal. As shown in FIG. 8, the first terminal includes:
传输模块810,用于接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;The transmitting module 810 is configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the second terminal Accessing the device identifier of the second routing device connected to the second network to which it belongs;
接入模块820,用于当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;The access module 820 is configured to: when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality meets the signal quality condition of the third network;
更新模块830,用于通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知,以使所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。 The update module 830 is configured to send, by using the third network, a first path update notification to the second routing device, based on the device identifier of the second routing device, to enable the second routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
可选的,如图9所示,所述第一终端还包括:获取模块840,用于获取接入所述第一网络所连接的第一路由设备的设备标识;Optionally, as shown in FIG. 9, the first terminal further includes: an obtaining module 840, configured to acquire a device identifier of the first routing device connected to the first network;
所述更新模块830,还用于通过所述第三网络,基于所述第一路由设备的设备标识,向所述第一路由设备发送第二路径更新通知,以使所述第一路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The update module 830 is further configured to send, by using the third network, a second path update notification to the first routing device, based on the device identifier of the first routing device, to enable the first routing device to establish The routing entry corresponding to the first terminal in the third network is recorded as a priority routing entry of the first terminal.
可选的,所述传输模块810,还用于:Optionally, the transmission module 810 is further configured to:
接收所述第二终端通过第四网络发送的第二内容请求,所述第二内容请求中携带有所述第二终端接入所述第四网络所连接的第四路由设备的设备标识;向所述第二终端传输所述第二内容请求对应的数据;Receiving, by the second terminal, the second content request sent by the second terminal, where the second content request carries the device identifier of the fourth routing device connected to the fourth network by the second terminal; Transmitting, by the second terminal, data corresponding to the second content request;
所述更新模块830,还用于:The update module 830 is further configured to:
如果根据所述第四路由设备的设备标识和第二路由设备的设备标识,判定所述第二终端发生网络切换,则通过所述第三网络,基于所述第四路由设备的设备标识,向所述第四路由设备发送第三路径更新通知,以使所述第四路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。If it is determined that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the device identifier based on the fourth routing device is used by the third network. The fourth routing device sends a third path update notification, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority of the first terminal. Routing entry.
可选的,如图10所示,所述第一终端还包括:Optionally, as shown in FIG. 10, the first terminal further includes:
广播模块850,用于通过所述第三网络进行内容广播。The broadcast module 850 is configured to perform content broadcast by using the third network.
基于相同的技术构思,本发明实施例还提供了一种第二路由设备,如图11所示,所述第二路由设备包括:Based on the same technical concept, the embodiment of the present invention further provides a second routing device. As shown in FIG. 11, the second routing device includes:
传输模块1110,用于接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求;接收所述第一内容请求对应的数据,并转发给所述第二终端;其中,所述第一内容请求中携带有所述第二路由设备的设备标识;The transmitting module 1110 is configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, and receive data corresponding to the first content request, and Forwarding to the second terminal; wherein the first content request carries the device identifier of the second routing device;
更新模块1120,用于接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知,其中,所述第一路径更新通知由所述第一终端在检测到其接入的第一网络的信号质量不满足预设的信号质量条件并接入信号质量满足所述信号质量条件的第三网络后通过所述第三网络发送;The update module 1120 is configured to receive, by the first terminal, a first path update notification sent by the device identifier of the second routing device, where the first path update notification is detected by the first terminal The signal quality of the incoming first network does not meet the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
建立模块1130,用于建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The establishing module 1130 is configured to establish a routing entry corresponding to the first terminal in the third network, and record the priority routing entry of the first terminal.
可选的,如图12所示,所述第二路由设备还包括:Optionally, as shown in FIG. 12, the second routing device further includes:
删除模块1140,用于当存储的所述第一终端在所述第三网络中对应的路由表项未被使用的时长超过预设时长阈值时,删除所述第一终端在所述第三网络中对应的路由表项。The deleting module 1140 is configured to delete the first terminal in the third network when the stored duration of the first terminal in the third network that is not used by the first terminal exceeds a preset duration threshold. The corresponding routing entry in the middle.
本发明实施例中,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连 接的第二路由设备的设备标识;第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络;第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。这样,在内容提供方进行网络切换后进行路径变更的过程中,并不需要连接多个网络的核心路由器,从而,有利于复杂网络的实现。In the embodiment of the present invention, the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the Connected by the second network a device identifier of the second routing device; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access network quality meets the signal quality condition of the third network; Transmitting, by the third network, the first path update notification to the second routing device, by using the third network, the second routing device, to enable the second routing device to establish a routing entry corresponding to the first terminal in the third network, and Recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
实施例四Embodiment 4
基于相同的技术构思,本发明实施例还提供了一种更新路由表项的系统,所述系统包括第一终端和第二路由设备,其中:Based on the same technical concept, the embodiment of the present invention further provides a system for updating a routing entry, where the system includes a first terminal and a second routing device, where:
所述第一终端,用于接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知;The first terminal is configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the first The second terminal accesses the device identifier of the second routing device connected to the second network to which the terminal belongs; when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies a third network of the signal quality condition; sending, by the third network, a first path update notification to the second routing device based on the device identifier of the second routing device;
所述第二路由设备,用于接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求;接收所述第一内容请求对应的数据,并转发给所述第二终端;接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知;建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The second routing device is configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, and receive the first content request corresponding to the first content request Data, and forwarded to the second terminal; receiving a first path update notification sent by the first terminal based on the device identifier of the second routing device; establishing corresponding to the first terminal in the third network The routing entry is recorded as the priority routing entry of the first terminal.
本发明实施例中,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络;第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。这样,在内容提供方进行网络切换后进行路径变更的过程中,并不需要连接多个网络的核心路由器,从而,有利于复杂网络的实现。In the embodiment of the present invention, the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network. The entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
实施例五Embodiment 5
图13是根据一示例性实施例示出的一种终端的结构示意图。该终端可以作为第一终端用于实施上述实施例中更新路由表项的方法。FIG. 13 is a schematic structural diagram of a terminal according to an exemplary embodiment. The terminal can be used as the first terminal to implement the method for updating the routing entry in the foregoing embodiment.
终端1300可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上 计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WiFi(wireless fidelity,无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图13中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The terminal 1300 may include an RF (Radio Frequency) circuit 110, including one or more a memory 120 of the computer readable storage medium, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (Wireless Fidelity) module 170, a processor 180 including one or more processing cores, and Power supply 190 and other components. It will be understood by those skilled in the art that the terminal structure shown in FIG. 13 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting signals. Specifically, after receiving downlink information of the base station, the downlink information is processed by one or more processors 180. In addition, the data related to the uplink is sent to the base station. . Generally, the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc. In addition, RF circuitry 110 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端1300的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。The memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1300 (such as audio data, phone book, etc.) and the like. Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设 备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices Prepare 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端1300的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图13中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 1300, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141. Although in FIG. 13, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
终端1300还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在终端1300移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端1300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Terminal 1300 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal 1300 moves to the ear. / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal 1300 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
音频电路160、扬声器161,传声器162可提供用户与终端1300之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与终端1300的通信。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 1300. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 1300.
WiFi属于短距离无线传输技术,终端1300通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图13示出了WiFi模块170,但是可以理解的是,其并不属于终端1300的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the terminal 1300 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users. Although FIG. 13 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal 1300, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器180是终端1300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端1300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处 理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is a control center of the terminal 1300 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 1300 are performed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate the application processor and the modem The application processor mainly processes an operating system, a user interface, an application, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 180.
终端1300还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal 1300 also includes a power source 190 (such as a battery) for powering various components. Preferably, the power source can be logically coupled to the processor 180 through a power management system to manage functions such as charging, discharging, and power management through the power management system. Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,终端1300还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端1300的显示单元是触摸屏显示器,终端1300还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the terminal 1300 may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically, in this embodiment, the display unit of the terminal 1300 is a touch screen display, the terminal 1300 further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or one The above processor executes one or more programs that include instructions for performing the following operations:
接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;Receiving a first content request sent by the second terminal, and transmitting data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to which the second terminal accesses a device identifier of the second routing device connected to the network;
当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;When it is detected that the signal quality of the currently accessed first network does not satisfy the preset signal quality condition, the access signal quality satisfies the third network of the signal quality condition;
通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知,以使所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。Sending, by the third network, a first path update notification to the second routing device, based on the device identifier of the second routing device, to enable the second routing device to establish the first terminal in the first The corresponding routing entry in the network is recorded as the priority routing entry of the first terminal.
本发明实施例中,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络;第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。这样,在内容提供方进行网络切换后进行路径变更的过程中,并不需要连接多个网络的核心路由器,从而,有利于复杂网络的实现。In the embodiment of the present invention, the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network. The entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
实施例六Embodiment 6
图14是根据一示例性实施例示出的一种路由设备的结构示意图。该路由设备可以作为第二路由设备用于实施上述实施例中更新路由表项的方法。FIG. 14 is a schematic structural diagram of a routing device according to an exemplary embodiment. The routing device can be used as the second routing device to implement the method for updating the routing entry in the foregoing embodiment.
图14是本发明实施例提供的路由设备的结构示意图。该路由设备1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储 应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对路由设备中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在路由设备1900上执行存储介质1930中的一系列指令操作。FIG. 14 is a schematic structural diagram of a routing device according to an embodiment of the present invention. The routing device 1900 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 1922 (eg, one or more processors) and memory 1932, one or More than one store Application 1942 or storage medium 1930 of data 1944 (eg, one or one storage device in Shanghai). Among them, the memory 1932 and the storage medium 1930 may be short-term storage or persistent storage. The program stored on storage medium 1930 may include one or more modules (not shown), each of which may include a series of instruction operations in a routing device. Still further, the central processor 1922 can be configured to communicate with the storage medium 1930 to perform a series of instruction operations in the storage medium 1930 on the routing device 1900.
路由设备1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。 Routing device 1900 can also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems. 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
路由设备1900可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令: Routing device 1900 can include a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs included for performing Instructions for the following operations:
接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求,其中,所述第一内容请求中携带有所述第二路由设备的设备标识;Receiving, by the second terminal, the first content request to the first terminal, and forwarding the first content request to the first terminal, where the first content request carries the second routing device Equipment Identity;
接收所述第一内容请求对应的数据,并转发给所述第二终端;Receiving data corresponding to the first content request, and forwarding the data to the second terminal;
接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知,其中,所述第一路径更新通知由所述第一终端在检测到其接入的第一网络的信号质量不满足预设的信号质量条件并接入信号质量满足所述信号质量条件的第三网络后通过所述第三网络发送;Receiving, by the first terminal, a first path update notification sent by the device identifier of the second routing device, where the first path update notification is detected by the first terminal by the first network The signal quality does not meet the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。Establishing a routing entry corresponding to the first terminal in the third network, and recording the priority routing entry of the first terminal.
本发明实施例中,第一终端接收第二终端发送的第一内容请求,向第二终端传输第一内容请求对应的数据,其中,第一内容请求中携带有第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足信号质量条件的第三网络;第一终端通过第三网络,基于第二路由设备的设备标识,向第二路由设备发送第一路径更新通知,以使第二路由设备建立第一终端在第三网络中对应的路由表项,并记录为第一终端的优先路由表项。这样,在内容提供方进行网络切换后进行路径变更的过程中,并不需要连接多个网络的核心路由器,从而,有利于复杂网络的实现。In the embodiment of the present invention, the first terminal receives the first content request sent by the second terminal, and transmits the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the The device identifier of the second routing device connected to the second network; when the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies the signal quality condition a third network, the first terminal sends a first path update notification to the second routing device, based on the device identifier of the second routing device, by the third terminal, so that the second routing device establishes a corresponding route of the first terminal in the third network. The entry is recorded as the priority routing entry of the first terminal. In this way, in the process of performing path change after the content provider performs network switching, it is not necessary to connect the core routers of multiple networks, thereby facilitating the implementation of the complex network.
需要说明的是:上述实施例提供的更新路由表项的装置在更新路由表项的方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全 部或者部分功能。另外,上述实施例提供的更新路由表项的装置与更新路由表项的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, in the method for updating the routing entry, the device for updating the routing entry in the foregoing embodiment is only illustrated by the division of the foregoing functional modules. In an actual application, the foregoing function may be allocated according to requirements. Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules to complete the above described Part or part of the function. In addition, the device for updating the routing entry provided by the foregoing embodiment is the same as the method for updating the routing entry. For the specific implementation process, refer to the method embodiment, and details are not described herein again.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims (13)

  1. 一种更新路由表项的方法,其特征在于,所述方法包括:A method for updating a routing entry, the method comprising:
    第一终端接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;Receiving, by the first terminal, the first content request sent by the second terminal, and transmitting the data corresponding to the first content request to the second terminal, where the first content request carries the second terminal to access the second content terminal a device identifier of the second routing device to which the second network belongs;
    所述第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;When the first terminal detects that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality meets the signal quality condition of the third network;
    所述第一终端通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知,以使所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。Transmitting, by the first terminal, the first path update notification to the second routing device by using the third network, based on the device identifier of the second routing device, to enable the second routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络之后,还包括:The method according to claim 1, wherein the first terminal detects that the signal quality of the currently accessed first network does not satisfy the preset signal quality condition, and the access signal quality satisfies the signal quality. After the third network of conditions, it also includes:
    所述第一终端获取接入所述第一网络所连接的第一路由设备的设备标识;The first terminal acquires a device identifier of the first routing device connected to the first network;
    所述第一终端通过所述第三网络,基于所述第一路由设备的设备标识,向所述第一路由设备发送第二路径更新通知,以使所述第一路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。Transmitting, by the first terminal, the second path update notification to the first routing device by using the third network, based on the device identifier of the first routing device, to enable the first routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
  3. 根据权利要求2所述的方法,其特征在于,所述第一终端通过所述第三网络,基于所述第一路由设备的设备标识,向所述第一路由设备发送所述第二路径更新通知之后,还包括:The method according to claim 2, wherein the first terminal sends the second path update to the first routing device based on the device identifier of the first routing device by using the third network. After the notice, it also includes:
    所述第一终端接收所述第二终端通过第四网络发送的第二内容请求,所述第二内容请求中携带有所述第二终端接入所述第四网络所连接的第四路由设备的设备标识;The first terminal receives a second content request that is sent by the second terminal by using the fourth network, where the second content request carries the second terminal to access the fourth routing device that is connected to the fourth network. Device identification
    所述第一终端向所述第二终端传输所述第二内容请求对应的数据;Transmitting, by the first terminal, data corresponding to the second content request to the second terminal;
    如果所述第一终端根据所述第四路由设备的设备标识和第二路由设备的设备标识,判定所述第二终端发生网络切换,则所述第一终端通过所述第三网络,基于所述第四路由设备的设备标识,向所述第四路由设备发送第三路径更新通知,以使所述第四路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。If the first terminal determines that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the first terminal passes the third network, based on the a device identifier of the fourth routing device, configured to send a third path update notification to the fourth routing device, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, And recorded as the priority routing entry of the first terminal.
  4. 根据权利要求1所述的方法,其特征在于,所述第一终端当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络之后,还包括:The method according to claim 1, wherein the first terminal detects that the signal quality of the currently accessed first network does not satisfy the preset signal quality condition, and the access signal quality satisfies the signal quality. After the third network of conditions, it also includes:
    所述第一终端通过所述第三网络进行内容广播。The first terminal performs content broadcast through the third network.
  5. 一种更新路由表项的方法,其特征在于,所述方法包括:A method for updating a routing entry, the method comprising:
    第二路由设备接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转 发所述第一内容请求,其中,所述第一内容请求中携带有所述第二路由设备的设备标识;Receiving, by the second routing device, the first content request sent by the second terminal to the first terminal, and forwarding the first content to the first terminal Sending the first content request, where the first content request carries the device identifier of the second routing device;
    所述第二路由设备接收所述第一内容请求对应的数据,并转发给所述第二终端;Receiving, by the second routing device, data corresponding to the first content request, and forwarding the data to the second terminal;
    所述第二路由设备接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知,其中,所述第一路径更新通知由所述第一终端在检测到其接入的第一网络的信号质量不满足预设的信号质量条件并接入信号质量满足所述信号质量条件的第三网络后通过所述第三网络发送;The second routing device receives the first path update notification sent by the first terminal based on the device identifier of the second routing device, where the first path update notification is detected by the first terminal The signal quality of the incoming first network does not meet the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
    所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The second routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:
    当所述第二路由设备存储的所述第一终端在所述第三网络中对应的路由表项未被使用的时长超过预设时长阈值时,所述第二路由设备删除所述第一终端在所述第三网络中对应的路由表项。The second routing device deletes the first terminal when the length of time that the first terminal is not used by the first terminal in the third network is less than a preset duration threshold. Corresponding routing entries in the third network.
  7. 一种第一终端,其特征在于,所述第一终端包括:A first terminal, the first terminal includes:
    传输模块,用于接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;a transmitting module, configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the second terminal Entering the device identifier of the second routing device connected to the second network to which it belongs;
    接入模块,用于当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;An access module, configured to: when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality meets the signal quality condition of the third network;
    更新模块,用于通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知,以使所述第二路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。An update module, configured to send, by using the third network, a first path update notification to the second routing device, based on the device identifier of the second routing device, to enable the second routing device to establish the first A routing entry corresponding to the terminal in the third network, and recorded as a priority routing entry of the first terminal.
  8. 根据权利要求7所述的第一终端,其特征在于,所述第一终端还包括:获取模块,用于获取接入所述第一网络所连接的第一路由设备的设备标识;The first terminal according to claim 7, wherein the first terminal further comprises: an obtaining module, configured to acquire a device identifier of the first routing device connected to the first network;
    所述更新模块,还用于通过所述第三网络,基于所述第一路由设备的设备标识,向所述第一路由设备发送第二路径更新通知,以使所述第一路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The update module is further configured to send, by using the third network, a second path update notification to the first routing device, based on the device identifier of the first routing device, to enable the first routing device to establish a location The routing entry corresponding to the first terminal in the third network is recorded as a priority routing entry of the first terminal.
  9. 根据权利要求8所述的第一终端,其特征在于,所述传输模块,还用于:The first terminal according to claim 8, wherein the transmission module is further configured to:
    接收所述第二终端通过第四网络发送的第二内容请求,所述第二内容请求中携带有所述第二终端接入所述第四网络所连接的第四路由设备的设备标识;向所述第二终端传输所述第二内容请求对应的数据;Receiving, by the second terminal, the second content request sent by the second terminal, where the second content request carries the device identifier of the fourth routing device connected to the fourth network by the second terminal; Transmitting, by the second terminal, data corresponding to the second content request;
    所述更新模块,还用于:The update module is further configured to:
    如果根据所述第四路由设备的设备标识和第二路由设备的设备标识,判定所述第二终端发生网络切换,则通过所述第三网络,基于所述第四路由设备的设备标识,向所述第四路由 设备发送第三路径更新通知,以使所述第四路由设备建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。If it is determined that the second terminal has a network switch according to the device identifier of the fourth routing device and the device identifier of the second routing device, the device identifier based on the fourth routing device is used by the third network. The fourth route The device sends a third path update notification, so that the fourth routing device establishes a routing entry corresponding to the first terminal in the third network, and records the priority routing entry of the first terminal.
  10. 根据权利要求7所述的第一终端,其特征在于,所述第一终端还包括:The first terminal according to claim 7, wherein the first terminal further comprises:
    广播模块,用于通过所述第三网络进行内容广播。And a broadcast module, configured to perform content broadcast by using the third network.
  11. 一种第二路由设备,其特征在于,所述第二路由设备包括:A second routing device, the second routing device includes:
    传输模块,用于接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求;接收所述第一内容请求对应的数据,并转发给所述第二终端;其中,所述第一内容请求中携带有所述第二路由设备的设备标识;a transmitting module, configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, receive data corresponding to the first content request, and forward the data Giving the second terminal; wherein the first content request carries the device identifier of the second routing device;
    更新模块,用于接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知,其中,所述第一路径更新通知由所述第一终端在检测到其接入的第一网络的信号质量不满足预设的信号质量条件并接入信号质量满足所述信号质量条件的第三网络后通过所述第三网络发送;An update module, configured to receive a first path update notification sent by the first terminal based on a device identifier of the second routing device, where the first path update notification is detected by the first terminal The signal quality of the first network does not satisfy the preset signal quality condition and is transmitted through the third network after accessing the third network whose signal quality meets the signal quality condition;
    建立模块,用于建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。The establishing module is configured to establish a routing entry corresponding to the first terminal in the third network, and record the priority routing entry of the first terminal.
  12. 根据权利要求11所述的第二路由设备,其特征在于,所述第二路由设备还包括:The second routing device according to claim 11, wherein the second routing device further comprises:
    删除模块,用于当存储的所述第一终端在所述第三网络中对应的路由表项未被使用的时长超过预设时长阈值时,删除所述第一终端在所述第三网络中对应的路由表项。a deleting module, configured to delete the first terminal in the third network when the stored duration of the first terminal in the third network that is not used by the first terminal exceeds a preset duration threshold Corresponding routing entry.
  13. 一种更新路由表项的系统,其特征在于,所述系统包括第一终端和第二路由设备,其中:A system for updating a routing entry, the system comprising a first terminal and a second routing device, wherein:
    所述第一终端,用于接收第二终端发送的第一内容请求,向所述第二终端传输所述第一内容请求对应的数据,其中,所述第一内容请求中携带有所述第二终端接入其所属的第二网络所连接的第二路由设备的设备标识;当检测到当前接入的第一网络的信号质量不满足预设的信号质量条件时,接入信号质量满足所述信号质量条件的第三网络;通过所述第三网络,基于所述第二路由设备的设备标识,向所述第二路由设备发送第一路径更新通知;The first terminal is configured to receive a first content request sent by the second terminal, and transmit data corresponding to the first content request to the second terminal, where the first content request carries the first The second terminal accesses the device identifier of the second routing device connected to the second network to which the terminal belongs; when it is detected that the signal quality of the currently accessed first network does not meet the preset signal quality condition, the access signal quality satisfies a third network of the signal quality condition; sending, by the third network, a first path update notification to the second routing device based on the device identifier of the second routing device;
    所述第二路由设备,用于接收第二终端发送的对所述第一终端的第一内容请求,向所述第一终端转发所述第一内容请求;接收所述第一内容请求对应的数据,并转发给所述第二终端;接收所述第一终端基于所述第二路由设备的设备标识发送的第一路径更新通知;建立所述第一终端在所述第三网络中对应的路由表项,并记录为所述第一终端的优先路由表项。 The second routing device is configured to receive a first content request sent by the second terminal to the first terminal, forward the first content request to the first terminal, and receive the first content request corresponding to the first content request Data, and forwarded to the second terminal; receiving a first path update notification sent by the first terminal based on the device identifier of the second routing device; establishing corresponding to the first terminal in the third network The routing entry is recorded as the priority routing entry of the first terminal.
PCT/CN2016/104249 2015-11-02 2016-11-01 Method of updating forward information base item, and device and system utilizing same WO2017076279A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510734003.2 2015-11-02
CN201510734003.2A CN106656803B (en) 2015-11-02 2015-11-02 A kind of method, apparatus and system updating route table items

Publications (1)

Publication Number Publication Date
WO2017076279A1 true WO2017076279A1 (en) 2017-05-11

Family

ID=58661692

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104249 WO2017076279A1 (en) 2015-11-02 2016-11-01 Method of updating forward information base item, and device and system utilizing same

Country Status (2)

Country Link
CN (1) CN106656803B (en)
WO (1) WO2017076279A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026324B (en) * 2018-10-09 2021-11-19 华为技术有限公司 Updating method and device of forwarding table entry
CN112556704B (en) * 2019-09-10 2024-03-05 华为技术有限公司 Path planning method and communication device
CN111601357B (en) * 2020-02-29 2022-07-12 新华三技术有限公司 Method and device for route management

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101517986A (en) * 2006-09-14 2009-08-26 罗德施瓦兹两合股份有限公司 Method and system for addressing and routing in encrypted communications links
CN101686517A (en) * 2003-12-05 2010-03-31 高通股份有限公司 Base station based methods and apparatus for supporting break before make handoffs in a multi-carrier system
EP2120402B1 (en) * 2008-05-16 2011-05-04 Palo Alto Research Center Incorporated Content based routing in a packet switched network
CN103703739A (en) * 2011-07-12 2014-04-02 华为技术有限公司 Method and apparatus for seamless mobility techniques in content-centric network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686517A (en) * 2003-12-05 2010-03-31 高通股份有限公司 Base station based methods and apparatus for supporting break before make handoffs in a multi-carrier system
CN101517986A (en) * 2006-09-14 2009-08-26 罗德施瓦兹两合股份有限公司 Method and system for addressing and routing in encrypted communications links
EP2120402B1 (en) * 2008-05-16 2011-05-04 Palo Alto Research Center Incorporated Content based routing in a packet switched network
CN103703739A (en) * 2011-07-12 2014-04-02 华为技术有限公司 Method and apparatus for seamless mobility techniques in content-centric network

Also Published As

Publication number Publication date
CN106656803B (en) 2019-01-15
CN106656803A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US10528012B2 (en) Method and device for sending communication message
CN104518953B (en) Method for deleting message, instant communication terminal and system
WO2017140276A1 (en) Network connection method and apparatus, and computer storage medium
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
WO2019210754A1 (en) Network search control method and device, and mobile terminal
US11579946B2 (en) Method for managing multiple operating systems in a terminal
WO2017080378A1 (en) Method implementing licensed-assisted access, network equipment, and terminal equipment
WO2021243884A1 (en) Network element determination method and device
WO2016150270A1 (en) Method and apparatus for processing group session message
TWI520043B (en) Method, device and moving terminal for examining messages
WO2022001050A1 (en) Method for processing relax measurement parameter update and terminal device
CN109716826A (en) Cut-in method, the network equipment, terminal device and AMF equipment
WO2018095130A1 (en) Method and system for determining duration of live streaming
US11258708B2 (en) Communication method and communications apparatus
WO2018120239A1 (en) Network communication method and terminal
WO2016116041A1 (en) Information recommendation management method, device and system
WO2018040813A1 (en) Audio/video communication method, terminal, server, and storage medium
WO2017096909A1 (en) Data connection establishing method and apparatus
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
WO2019057119A1 (en) Mobile terminal-based wifi hotspot connection method, mobile terminal and storage medium
WO2015081880A1 (en) Method, device and system for processing cluster service attribute
CN110072013B (en) Terminal control method and device
WO2018161788A1 (en) Multimedia data sharing method and device
WO2017076279A1 (en) Method of updating forward information base item, and device and system utilizing same
WO2018120032A1 (en) Cell switching method and terminal device

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

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

Country of ref document: EP

Kind code of ref document: A1