WO2015077992A1 - 一种基于内容中心网络的数据传输装置、方法及通信系统 - Google Patents

一种基于内容中心网络的数据传输装置、方法及通信系统 Download PDF

Info

Publication number
WO2015077992A1
WO2015077992A1 PCT/CN2013/088191 CN2013088191W WO2015077992A1 WO 2015077992 A1 WO2015077992 A1 WO 2015077992A1 CN 2013088191 W CN2013088191 W CN 2013088191W WO 2015077992 A1 WO2015077992 A1 WO 2015077992A1
Authority
WO
WIPO (PCT)
Prior art keywords
source end
source
base station
handover
name
Prior art date
Application number
PCT/CN2013/088191
Other languages
English (en)
French (fr)
Inventor
黄韬
刘江
李将旭
倪慧
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2013/088191 priority Critical patent/WO2015077992A1/zh
Priority to CN201380003085.2A priority patent/CN104823479B/zh
Publication of WO2015077992A1 publication Critical patent/WO2015077992A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/02Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off

Definitions

  • the present invention relates to the field of communications, and in particular, to a data transmission apparatus, method, and communication system based on a content center network. Background technique
  • the Content Centric Network is one of the important achievements in the future research of the Internet architecture.
  • CCN Content Centric Network
  • the client requests content by sending an interest packet. If any other node in the CCN receives the interest packet and stores the corresponding content thereon, the data packet may be sent to respond to the interest packet.
  • the indirect server (Indirection Server) usually uses the indirection server to ensure normal communication.
  • the specific process is as follows: The client sends an interest packet of a specific format to the indirect server, and the interest packet of the specific format includes the indirect server name. (Indirection Server Name) / Source Name / Content Name (Content Name); According to the regular CCN interest package process, this particular format of interest packets will be forwarded to the indirect server.
  • the indirect server After receiving the interest packet, the indirect server caches the interest packet and encapsulates it into a new interest package, and the new interest package includes a source Routable Prefix (SRP)/content name, and the new interest package is Forward to the source; the source receives the new interest package and finds the content cache (Content Store, called CS), generates the data packet sent to the indirect server; the indirect server matches the data packet with the cached interest packet, when the match is successful , send the packet to the client.
  • SRP source Routable Prefix
  • CS Content cache
  • the source end When the source end wants to switch from the current serving base station to the new serving base station, it will send a handover notification to the indirect server, and notify the indirect server source of the new routable prefix (Routable Prefix) after the handover is completed; After receiving the switch notification sent by the source, the server will only use the received interest packet sent to the source as a cache. After receiving the new RP from the source, the indirect server will encapsulate the cached interest packet with the new RP at the source. After the new interest packet is sent to the source through the new serving base station at the source.
  • the prior art requires separately setting an indirect server for forwarding interest packets, which increases the complexity of the system. Moreover, the indirect server needs to re-encapsulate each interest packet sent by the client to be sent to the source, and the communication efficiency is low. In addition, after receiving the switching notification sent by the source, the indirect server can only cache the interest packet sent by the UE until the new RP of the source sent by the source is received, so that the cached interest packet can be encapsulated into a new interest packet. Sending to the source takes a long time and cannot meet the real-time requirements. Summary of the invention
  • the embodiment of the present invention provides a data transmission apparatus, method, and communication system based on a content center network.
  • the technical solution is as follows:
  • an embodiment of the present invention provides a data transmission apparatus based on a content center network, where the apparatus includes:
  • a receiving module configured to receive a first source switching indication, where the first source switching indication includes a routable prefix of the destination base station, a first source switching indication identifier, a source routable prefix, and the source routable prefix a serving base station name/the source name of the source end when the communication is initiated, the destination base station is a serving base station before the handover of the source end or a serving base station after the handover at the source end;
  • a rule adding module configured to add a forwarding information base rule according to the source routable prefix, where the added forwarding information database rule includes the source routable prefix and transmitting data after the source end handover The correspondence between the interfaces on the source side.
  • the destination base station when the first source switching indication is sent by the source end when the handover is completed, is the serving base station before the handover of the source end, Transmitting the data to the interface of the source end after the source end switches, and is an interface corresponding to the Internet Protocol IP address indicating the last hop node of the first source end; or
  • the destination base station is the serving base station after the source end is switched, and the data is transmitted after the source end is switched.
  • the interface at the source end is an interface that is associated with the first source end to indicate an IP address of the next hop node.
  • the destination base station is the serving base station after the source end is switched. Transmitting data to the interface of the source end after the source end switching, and switching the indication with the first source end An interface corresponding to the IP address of the hopping node, where the first source switching indication is configured according to the second source switching indication sent by the source end when the switching is about to occur, and the second source switching indication includes The serving base station name/second source switching indication identifier/the source routable prefix at the source end when the communication is initiated.
  • the first source switching indication further includes a content name and a sequence number in the last interest packet received by the source end before the switching;
  • the device also includes:
  • a search module configured to search for a matching item in the pending interest table, where the matching item has the same content name as the content name in the last interest package, and the serial number is greater than or equal to the serial number in the last interest packet.
  • a sending module configured to: when the matching item exists, send the interest packet corresponding to the matching item according to the added forwarding information base rule.
  • the sending module is configured to:
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule, and the source end handover indication is confirmed.
  • the message is used to indicate that the source completes the handover.
  • the sending module is further configured to:
  • the matching item when the matching item does not exist, after receiving the source switching indication confirmation message sent by the source end after the handover serving base station, sending, by the source end, the source switching indication to the serving base station before the handover And a confirmation message, where the source switching indication acknowledgement message is used to indicate that the source end completes the handover.
  • the rule adding module includes:
  • An interface selection unit configured to select a dynamic interface in an interface within a set dynamic range, and establish a correspondence between the selected dynamic interface and an IP address of a neighboring node that transmits data to the source end after the source end switches;
  • the relationship establishing unit is configured to establish a correspondence between the selected dynamic interface and the source routable prefix to increase the forwarding information base rule, where the selected dynamic interface is corresponding to the source routable prefix.
  • the device further includes:
  • a rule deletion module configured to not forward the information base rule according to the increase in the set time When the interest packet is sent, the added forwarding information base rule is deleted.
  • an embodiment of the present invention provides a data transmission apparatus based on a content center network, where the apparatus includes a central processing unit and 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 of the central processing units, the one or more programs including instructions for: receiving a first source switching indication, the first source switching indication The routable prefix/first source switching indication identifier/source routable prefix of the destination base station, where the source routable prefix is the serving base station name/the source name of the source when the communication is initiated, Determining that the target base station is the serving base station before the handover at the source end or the serving base station after the handover at the source end;
  • the forwarding information base rule is added according to the source routable prefix, where the added forwarding information base rule includes the source routable prefix and the interface that transmits data to the source end after the source end handover Correspondence relationship.
  • the destination base station when the first source switching indication is sent by the source end when the handover is completed, is the serving base station before the handover of the source end, Transmitting the data to the interface of the source end after the source end switches, and is an interface corresponding to the Internet Protocol IP address indicating the last hop node of the first source end; or
  • the destination base station is the serving base station after the source end is switched, and the data is transmitted after the source end is switched.
  • the interface at the source end is an interface that is associated with the first source end to indicate an IP address of the next hop node.
  • the destination base station is the serving base station after the source end is switched.
  • the interface that transmits the data to the source end after the switching of the source end is an interface corresponding to the IP address of the next hop node that is switched with the first source end, where the first source end handover indication is based on
  • the second source switching indication configured by the source end when the handover is about to occur, the second source switching indication includes the serving base station name/second source switching indication identifier of the source end when the communication is initiated/ The source may route a prefix.
  • the first source switching indication further includes a content name and a sequence number in the last interest packet received by the source before the switching;
  • the one or more programs further include Instructions for doing the following:
  • the matching item is that the content name is the same as the content name in the last interest package, and the serial number is greater than or equal to the serial number in the last interest packet.
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • the one or more programs include instructions for performing the following operations:
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • the one or more programs further include instructions for:
  • the one or more programs include instructions for performing the following operations:
  • Corresponding relationship between the selected dynamic interface and the source routable prefix is established to increase the forwarding information rule, and the selected dynamic interface is corresponding to the source routable prefix.
  • the one or more programs further include: an instruction to: when the interest packet is not sent according to the added forwarding information base rule within a set time, deleting the added forwarding information base rule.
  • an embodiment of the present invention provides a data transmission apparatus based on a content center network, where the apparatus includes:
  • the indication constructing module is configured to construct a first source switching indication, where the first source switching indication includes a routable prefix of the destination base station/first source switching indication identifier/source routable prefix, and the source end is routable
  • the prefix is the serving base station name/the source name of the source end when the communication is initiated, and the first source switching indication identifier is used to indicate that the node that receives the first source switching indication is according to the source end.
  • the routable prefix is added to the forwarding information base rule, and the added forwarding information base rule includes the source end Corresponding relationship between the route prefix and the interface for transmitting the data to the source end after the source end handover, where the destination base station is the serving base station before the handover or the serving base station after the handover at the source end And a sending module, configured to send the first source switching indication.
  • the first source switching indication is configured and sent by the source end when the handover is completed, and the destination base station is the serving base station before the handover of the source end; or The first source switching indication is configured and sent by the source end when the handover is about to occur, and the destination base station is the serving base station after the source end is switched.
  • the device further includes:
  • a receiving module configured to receive a second source switching indication sent by the source end, where the second source switching indication is sent by the source end when the handover is about to occur, and the second source switching indication includes a serving base station name/second source switching indication identifier/the source routable prefix at the source end when the communication is initiated;
  • the indication constructing module is configured to construct the first source end switching indication according to the second source end switching indication.
  • the first source switching indication further includes a content name and a sequence number in a last interest packet received by the source end before the switching, where the first source switching indication identifier And a method for indicating, by the node that receives the first source switching indication, whether there is a matching item in the pending interest table, where the matching item is the content name and the content name in the last interest packet is the same, the serial number An interest packet that is greater than or equal to the sequence number in the last interest packet.
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • an embodiment of the present invention provides a data transmission apparatus based on a content center network, where the apparatus includes a central processing unit and 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 of the central processing units, the one or more programs comprising instructions for: constructing a first source switching indication, the first source switching indication The routable prefix/first source switching indication identifier/source routable prefix of the destination base station, where the source routable prefix is the serving base station name/the source name of the source when the communication is initiated, The first source switching indication identifier is used to indicate that the node that receives the first source switching indication increases the forwarding information base rule according to the source routable prefix, and the added forwarding information database rule includes the source. a correspondence between a routable prefix and an interface that transmits data to the source end after the source end handover, the purpose The source end station to the serving base station before the handover or after the handover source
  • the first source switching indication is configured and sent by the source end when the handover is completed, and the destination base station is the serving base station before the handover of the source end; or The first source switching indication is configured and sent by the source end when the handover is about to occur, and the destination base station is the serving base station after the source end is switched.
  • the one or more programs include instructions for performing the following operations:
  • a second source switching indication where the second source switching indication is sent by the source end when the handover is about to occur, and the second source switching indication includes the source end being a serving base station name/second source switching indication identifier/the source routable prefix at the time of communication initiation;
  • the first source switching indication further includes a content name and a sequence number in a last interest packet received by the source end before the switching, where the first source switching indication identifier And a method for indicating, by the node that receives the first source switching indication, whether there is a matching item in the pending interest table, where the matching item is the content name and the content name in the last interest packet is the same, the serial number An interest packet that is greater than or equal to the sequence number in the last interest packet.
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • an embodiment of the present invention provides a communication system, where the system includes a source end, a base station, and a router.
  • the base station and the router are used,
  • the first source switching indication includes a routable prefix of the destination base station/first source switching indication identifier/source routable prefix, and the source routable prefix is the source end
  • the serving base station name/the source name when the communication is initiated, the destination base station is the serving base station before the handover of the source end or the serving base station after the handover at the source end;
  • the forwarding information base rule is added according to the source routable prefix, where the added forwarding information base rule includes the source routable prefix and the interface that transmits data to the source end after the source end handover Correspondence relationship.
  • the destination base station when the first source switching indication is sent by the source end when the handover is completed, the destination base station is the serving base station before the handover of the source end, Transmitting the data to the interface of the source end after the source end switches, and is an interface corresponding to the Internet Protocol IP address indicating the last hop node of the first source end; or
  • the destination base station is the serving base station after the source end is switched, and the data is transmitted after the source end is switched.
  • the interface at the source end is an interface that is associated with the first source end to indicate an IP address of the next hop node.
  • the destination base station is the serving base station after the source end is switched.
  • the interface that transmits the data to the source end after the switching of the source end is an interface corresponding to the IP address of the next hop node that is switched with the first source end, where the first source end handover indication is based on
  • the second source switching indication configured by the source end when the handover is about to occur, the second source switching indication includes the serving base station name/second source switching indication identifier of the source end when the communication is initiated/ The source may route a prefix.
  • the first source switching indication further includes a content name and a sequence number in the last interest packet received by the source end before the switching;
  • the base station and the router are also used,
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • an embodiment of the present invention provides a communication system, where the system includes a source end, a base station, and a router.
  • the source end or the base station is used,
  • the first source switching indication includes a routable prefix of the destination base station/first source switching indication identifier/source routable prefix
  • the source routable prefix is the source end
  • the information base rule, the added forwarding information base rule includes a correspondence between the source routable prefix and an interface that transmits data to the source end after the source end handover, where the destination base station is the source The serving base station before the handover or the serving base station after the handover at the source end;
  • the first source switching indication is configured and sent by the source end when the handover is completed, and the destination base station is the serving base station before the handover of the source end; or , The first source end handover indication is constructed and sent by the source end when the handover is about to occur, and the destination base station is the serving base station after the source end is switched.
  • the constructing the first source switching indication includes: receiving a second source switching indication sent by the source, where the second source switching indication is by the source When the handover is about to occur, the second source switching indication includes the serving base station name/second source switching indication identifier/the source routable prefix of the source when the communication is initiated;
  • the first source switching indication further includes a content name and a sequence number in a last interest packet received by the source end before the switching, where the first source switching indication identifier And a method for indicating, by the node that receives the first source switching indication, whether there is a matching item in the pending interest table, where the matching item is the content name and the content name in the last interest packet is the same, the serial number An interest packet that is greater than or equal to the sequence number in the last interest packet.
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • an embodiment of the present invention provides a data transmission method based on a content center network, where the method includes:
  • the first source switching indication includes a routable prefix of the destination base station/first source switching indication identifier/source routable prefix, and the source routable prefix is the source end
  • the serving base station name/the source name when the communication is initiated, the destination base station is the serving base station before the handover of the source end or the serving base station after the handover at the source end;
  • the forwarding information base rule is added according to the source routable prefix, where the added forwarding information base rule includes the source routable prefix and the interface that transmits data to the source end after the source end handover Correspondence relationship.
  • the destination base station when the first source switching indication is sent by the source end when the handover is completed, is the serving base station before the handover of the source end, Transmitting the data to the interface of the source end after the source end switches, and is an interface corresponding to the Internet Protocol IP address indicating the last hop node of the first source end; or
  • the destination base station is the serving base station after the source end is switched, and the data is transmitted after the source end is switched.
  • the interface at the source end is an interface that is associated with the first source end to indicate an IP address of the next hop node.
  • the destination base station is the serving base station after the source end is switched.
  • the interface that transmits the data to the source end after the source end is switched, and is an interface that is corresponding to the first source end to switch the IP address of the next hop node, where the first source end switching indication is according to the
  • the source end is configured by the second source switching indication sent when the handover is about to occur, and the second source switching indication includes the serving base station name/second source switching indication identifier/the The source can be routed with a prefix.
  • the first source switching indication further includes a content name and a sequence number in the last interest packet received by the source end before the switching;
  • the method further includes:
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • the first source switching indication is sent by the source when the handover is about to occur, or when the first source switching indication is the service before the switching by the source
  • sending, by the base station the interest packet corresponding to the matching item according to the added forwarding information base rule, including: receiving, by the source end, a source switching indication acknowledge message sent by the serving base station after the handover, where The source switching indication confirmation message is used to indicate that the source end completes the handover;
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • the method further includes:
  • the adding a forwarding information base rule according to the source routable prefix includes:
  • Corresponding relationship between the selected dynamic interface and the source routable prefix is established to increase the forwarding information rule, and the selected dynamic interface is corresponding to the source routable prefix.
  • the method further includes: When the interest packet is not sent according to the added forwarding information base rule within the set time, the added forwarding information base rule is deleted.
  • an embodiment of the present invention provides a data transmission method based on a content center network, where the method includes:
  • the first source switching indication includes a routable prefix of the destination base station/first source switching indication identifier/source routable prefix
  • the source routable prefix is the source end
  • the information base rule, the added forwarding information base rule includes a correspondence between the source routable prefix and an interface that transmits data to the source end after the source end handover, where the destination base station is the source The serving base station before the handover or the serving base station after the handover at the source end;
  • the first source switching indication is configured and sent by the source end when the handover is completed, and the destination base station is the serving base station before the handover of the source end; or The first source switching indication is configured and sent by the source end when the handover is about to occur, and the destination base station is the serving base station after the source end is switched.
  • the constructing the first source switching indication includes: receiving a second source switching indication sent by the source, where the second source switching indication is by the source When the handover is about to occur, the second source switching indication includes the serving base station name/second source switching indication identifier/the source routable prefix of the source when the communication is initiated;
  • the first source switching indication further includes a content name and a sequence number in a last interest packet received by the source end before the switching, where the first source switching indication identifier And a method for indicating, by the node that receives the first source switching indication, whether there is a matching item in the pending interest table, where the matching item is the content name and the content name in the last interest packet is the same, the serial number An interest packet that is greater than or equal to the sequence number in the last interest packet.
  • the interest packet corresponding to the matching item is sent according to the added forwarding information base rule.
  • the first SHI includes the RP of the destination base station/the first SHI identifier/SRP, and the SRP is the serving base station name/source name of the source when the communication is initiated, and the FIB rule is added according to the SRP, because the interest packet is Including the serving base station name/source name/content name at the source end when the communication is initiated, increase
  • the SRP in the previous FIB rule is the name of the serving base station when the source initiates the communication. Therefore, according to the longest prefix matching rule of the route, the interest packet sent to the source end is sent according to the added FIB rule, and the switching is performed through the source end.
  • the subsequent serving base station forwards the interest packet sent by the client to the source end, and the entire process does not need to set a special indirect server to forward the interest packet, and the system setting is centralized.
  • the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the routable prefix after the handover. There is no need to repackage the interest package, which is relatively short (about 0.1 second in the experimental environment), which can meet the real-time requirements.
  • FIG. 1 is a schematic diagram of an application scenario of a CCN-based data transmission method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a CCN-based data transmission apparatus according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic structural diagram of a CCN-based data transmission apparatus according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram showing the hardware structure of a CCN-based data transmission apparatus according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of a CCN-based data transmission apparatus according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a CCN-based data transmission apparatus according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic diagram showing the hardware structure of a CCN-based data transmission apparatus according to Embodiment 6 of the present invention.
  • FIG. 8 is a schematic structural diagram of a communication system according to Embodiment 7 of the present invention.
  • Embodiment 8 of the present invention is a schematic structural diagram of a communication system according to Embodiment 8 of the present invention.
  • FIG. 10 is a flowchart of a CCN-based data transmission method according to Embodiment 9 of the present invention
  • 11 is a flowchart of a CCN-based data transmission method according to Embodiment 10 of the present invention
  • FIG. 12 is a flow diagram of a CCN-based data transmission method according to Embodiment 11 of the present invention
  • FIG. 13 is a flow diagram of a CCN-based data transmission method according to Embodiment 12 of the present invention.
  • a circular area having a radius of a longest distance serving a base station and a base station serving a terminal represents a service area of the base station, that is, the base station can provide a communication service for a terminal located in the circular area.
  • a circular area composed of the first area A and the second area B is a service area of the first base station 11
  • a circular area composed of the second area B and the third area C is a service area of the second base station 12
  • the circular area in which D is located is the service area of the third base station 13.
  • the edge regions of the service areas of the two adjacent base stations may overlap, for example, the second area B is the intersection of the service area of the first base station 11 and the service area of the second base station 12. Stacked area.
  • the mobile terminal communicates via the serving base station to the Internet (Internet) 30 (indicated by the oval area in Fig. 1).
  • the mobile terminal includes a source end and a user end.
  • the user end is a terminal that requests content (that is, sends an interest packet), and the source end is a terminal that issues content (that is, sends a data packet).
  • the Interne 30 includes a number of interconnected routers 31. Assume that the current source 21 is located in the first area A and the client 22 is located in the fourth area D. When the client 22 requests content from the source 21, the interest packet sent by the client 22 is transmitted to the source 21 through the third base station 13, the router 31, and the first base station 11. The source 21 generates a data packet according to the interest packet, and the data packet is transmitted to the user terminal 22 through the first base station 11, the router 31, and the third base station 13 in sequence.
  • the mobile terminal moves to the edge area of the service area of the serving base station, it will switch between the base stations. For example, when the source 21 moves from the first area A to the second area B, the source 21 switches from the first base station 1 to the second base station 2. When the source end 21 moves from the third area C to the second area B, The source 21 is switched from the second base station 2 to the first base station 1 ⁇ Embodiment 1
  • the embodiment of the present invention provides a CCN-based data transmission device, where the device may be disposed on a node, where the node includes but is not limited to a router and a base station.
  • the device includes:
  • the receiving module 101 is configured to receive a first source handover indication (Source Handoff Indication, SHI), where the first SHI includes an RP/first SHI identifier/SRP of the destination base station;
  • SHI Source Handoff Indication
  • the rule adding module 102 is configured to add a Forwarding Information Base (FIB) rule according to the SRP.
  • FIB Forwarding Information Base
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that receives the first SHI increases the FIB rule according to the SRP.
  • the SRP is the serving base station name/source name at the time of communication initiation.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after switching from the source.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source end.
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the target base station in the first SHI is the source end of the serving base station after the handover. RP.
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as the 3rd Generation Partnership Project (3GPP) network
  • the first SHI is a second SHI structure sent according to the source end when the handover is about to be sent.
  • the second SHI includes the serving base station name/second SHI identifier/SRP at the source end when the communication is initiated.
  • the second SHI identifier is used to indicate that the source base station before the handover performs the first SHI according to the SRP in the second SHI.
  • the RP of the destination base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the service base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the serving base station name/source name forwards the interest packet to the source. Therefore, the FIB rule including the RP of the node and not the RP of the terminal can route the packet sent to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the Internet Protocol (Internet Protocol) address, and the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • Internet Protocol Internet Protocol
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interface corresponding to the IP address of a hop node is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the interface corresponding to the IP address of a hop node is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interface corresponding to the IP address of a hop node is the RP of the serving base station before
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the target base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name at the time of the communication initiation, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated, so the longest prefix according to the route Matching rules, the interest packets sent to the source end are sent according to the added FIB rules, and the service base station sent by the source end is forwarded to the source end by the serving base station after the handover, and the entire process does not need to set a special indirect server pair.
  • the interest package is forwarded and the system settings are collapsed. Moreover, the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the switched routable prefix. There is also no need to repackage the interest package, which takes less time (about 0.1 second in the experimental environment) and can meet the real-time requirements.
  • the embodiment of the present invention provides a CCN-based data transmission device, where the device may be disposed on a node, where the node includes but is not limited to a router and a destination base station.
  • the device includes:
  • the receiving module 201 is configured to receive a first SHI, where the first SHI includes an RP/first SHI identifier/SRP of the destination base station;
  • the rule adding module 202 is configured to add a FIB rule according to the SRP.
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that receives the first SHI increases the FIB rule according to the SRP.
  • the SRP is the serving base station name/source name at the time of communication initiation.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after switching from the source.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source end.
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the first SHI may be a service before the handover by the source end.
  • the base station sends, at this time, the CCN is the source end of the serving base station before the handover, and the source base station can learn the network of the serving base station after the handover (such as the terminal detection report), such as the 3GPP network, the first SHI is switched according to the source end.
  • the second SHI of the second SHI configuration to be sent when transmitting includes the serving base station name/second SHI identity/SRP at the source end when the communication is initiated.
  • the second SHI identifier is used to indicate that the source base station constructs the first SHI according to the SRP in the second SHI before the handover.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after the handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the data sent to the terminal is first sent to the service base station of the terminal, and then forwarded to the terminal by the serving base station of the terminal, so the RP of the terminal is usually the service base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the serving base station name/source name forwards the interest packet to the source. Therefore, the FIB rule including the RP of the node and not the RP of the terminal can route the packet transmitted to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • the device may further include: a sending module 203, configured to send the first SHI to the target base station.
  • Nodes include routers and base stations.
  • the CS is used to store the data packet received by the node (ie, the content corresponding to the content name).
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs.
  • the PIT table is used to record the interest packet that has been forwarded and has not been responded, and the interface that receives the interest packet, to forward the data packet of the return interest packet to the client.
  • the FIB rules generally include only the RP of the router and the RP of the base station. Router name and base station name. Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route Package, such as an interest package including SRP (source base station name/source name)
  • the source base station forwards the interest packet to the source end according to the SRP (the source base station name/source name). Therefore, a FIB rule that does not include the RP of the terminal can route the packet sent to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node sends the data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the working process of the node is as follows:
  • the node After the node receives the interest packet, the node first searches whether the data packet corresponding to the interest packet (ie, the content corresponding to the content name) is stored in the CS. When the node stores the data packet in response to the interest packet, the node sends the data packet in response to the interest packet to the client, and discards the interest packet.
  • the data packet corresponding to the interest packet ie, the content corresponding to the content name
  • the node When the node does not store the packet responding to the interest packet, the node looks in the PIT table for the existence of the same item name as the content in the interest package. When there is an item in the PIT table that is the same as the content name in the interest package, the node increases the interface that receives the interest packet in the same item as the content name in the interest package, and discards the interest package.
  • the source station in the interest packet is the serving base station name/source name/content name at the time of communication initiation, and each node in the FIB rule The RP performs the longest match.
  • the RP of each node in the FIB rule is the router name or the base station name. Therefore, the longest match obtained is the name of the serving base station when the source initiates the communication.
  • the serving base station at the source end when the communication is initiated is the serving base station whose source is before the handover.
  • the node forwards the interest packet from the interface corresponding to the source node name of the serving base station before the handover according to the FIB rule, and records the interest packet and the interface that receives the interest packet in the PIT table. When there is no match in the FIB rule, the interest packet is discarded.
  • the node When the node receives the data packet, the node first stores in the search CS whether there is a data packet with the same content name as the data packet. When a CS has the same data packet as the content name of the packet, the node discards the packet.
  • the node looks in the PIT table for the existence of an interest packet that matches the data packet.
  • the node forwards the data packet from the interface corresponding to the interest packet in the PIT table, and stores the data packet in the CS, and deletes the data from the PIT table.
  • the package matches the interest package.
  • the node can directly send the data packet in the CS to the client to respond to the interest packet. If there is no interest packet matching the packet in the PIT table, the packet is discarded.
  • the first SHI may further include a content name and a sequence number in a last interest packet (LRI) of the last interest packet received by the source end before the handover.
  • LRI last interest packet
  • the data corresponding to one content is large. Therefore, the data corresponding to each content is split into several data blocks, and the data blocks of each content are identified by serial numbers.
  • An interest packet and a data packet usually correspond to one data block.
  • the content name in the interest package only includes the request of the user inputting the user end, and the source end informs the user terminal according to the interest packet with the serial number of all the data blocks corresponding to the content requested by the user.
  • the UE sends the interest packet including the requested content and the sequence number according to the sequence number of the data block sent by the source end, so that the source end sends the data packet including the data block corresponding to the sequence number.
  • the user terminal Since the serial number is usually used as the sequence number of each data block of a content, and the user end usually requests a plurality of consecutive data blocks in one content, the user terminal generally sends the content name to the source end in turn and the sequence number is the same.
  • Continuous interest packages According to the window mechanism existing in the CCN, after receiving the data packet corresponding to a certain sequence number sent by the source end, the UE sends an interest packet corresponding to the sequence number after the sequence number to the source end, and the interest sent at this time
  • the number of packages is related to the size of the window. For example, if the client receives a data packet with a sequence number of 50 and the window size is 5, the UE sends an interest packet with the sequence number 51-55 to the source. If the source end switches at this time, the source end will not receive these interest packets, and it is impossible to respond to them.
  • These interest packets will be stored in the PIT table of the router and the original base station.
  • the format of the first SHI may be as follows: ccnx: / RP of the destination base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • the device may further include:
  • the searching module 204 is configured to search for a matching item in the PIT, where the matching item is an interest packet whose content name is the same as the content name in the LRI, and the serial number is greater than or equal to the serial number in the LRI;
  • the sending module 203 is further configured to: when there is a matching item, send the interest packet corresponding to the matching item according to the added FIB rule.
  • the search module 204 may first add 1 to the sequence number in the LRI, and then compare the content name in the LRI and the sequence number after the addition to the item in the PIT, if an item with the same content name and serial number is found. , the item is judged as a match, and the sequence number is incremented by 1, and then the content name in the LRI and the number after the addition of 1 (equivalent to 2 in the LRI) are compared with the items in the PIT. This loops until no item with the same content name and serial number is found.
  • the source end may not receive the received interest packet when the handover is performed, and then resend the response to the source end. If the destination base station is the serving base station before the handover, the sending module 203 does not need to send the first SHI to the target base station to save traffic of the network.
  • the sending module 203 can be used for,
  • the serving base station after the handover is sent.
  • the AOS message is used to indicate that the source completes the handover according to the added FIB rule.
  • the receiving module 201 is further configured to receive an AOS message.
  • the AOS information may include the RP and AOS identifier of the serving base station before the handover of the source end.
  • the format of AOS can be as follows: ccnx: / The RP/AOS identifier of the service base before the switchover.
  • the receiving module 201 is further configured to: when there is no matching item, send an AOS message to the serving base station before the handover to the source end after receiving the AOS message sent by the source station at the switched serving base station.
  • the interface corresponding to the SRP in the first SHI may be an interface in a static range, and the IP address of the interface is transmitted to the neighboring node of the source after switching between the source and the source. correspond.
  • the interface corresponding to the RP of the node is an interface in a static range.
  • the rule adding module 202 may include:
  • An interface selection unit configured to select a dynamic interface in an interface within a set dynamic range, and establish a correspondence between the selected dynamic interface and an IP address of a neighboring node that transmits data to the source end after the source end switches;
  • the relationship establishing unit is configured to establish a correspondence between the selected dynamic interface and the SRP, to increase the FIB rule, the selected dynamic interface, and the SRP-corresponding setting.
  • the device may further include:
  • the rule deletion module 205 is configured to delete the added FIB rule when the interest packet is not sent according to the added FIB rule within the set time.
  • the set time may be a set time after the interest packet is sent according to the increased FIB rule, such as any value between 10 seconds and 30 seconds.
  • the interface in the dynamic range since the interface in the dynamic range has a one-to-one relationship with the RP of the node, the interface in the dynamic range can be increased or decreased at will.
  • the corresponding relationship is not used for a period of time (that is, the interest packet is sent according to the added FIB rule)
  • the corresponding relationship may be deleted to prevent the FIB rule from growing indefinitely due to frequent switching of the source end, thereby saving network resources.
  • the node sends the interest packet to the interface corresponding to the RP that satisfies the longest matching rule at the same time, so as to ensure that the interest packet is sent to the source end.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the target base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name at the time of the communication initiation, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated, so the longest prefix according to the route Matching rules, the interest packets sent to the source end are sent according to the added FIB rules, and the service base station sent by the source end is forwarded to the source end by the serving base station after the handover, and the entire process does not need to set a special indirect server pair.
  • the interest package is forwarded and the system settings are collapsed. Moreover, the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the switched routable prefix. There is also no need to repackage the interest package, which takes less time (about 0.1 second in the experimental environment) and can meet the real-time requirements.
  • the embodiment of the present invention provides a CCN-based data transmission device, where the device may be disposed on a node, including but not limited to a router or a base station.
  • the device 1900 may be relatively large due to different configurations or performances. Differences may include one or more CPUs (central processing units) 1922 (eg, one or more processors) and storage 1932, one or more storage media 1930 storing application 1942 or 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 the device.
  • central processor 1922 can be configured to communicate with storage medium 1930, on which a series of instruction operations in storage medium 1930 are performed.
  • the apparatus 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 one The above operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the apparatus 1900 includes a CPU and 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 CPUs, and one or more programs are included for performing the following operations Instructions:
  • the first SHI includes the RP/first SHI identifier/SRP of the destination base station, and the SRP is the serving base station name/source name of the source when the communication is initiated;
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that transmits data to the source after the source switchover.
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that receives the first SHI increases the FIB rule according to the SRP.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after switching from the source.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the target base station in the first SHI is the service of the source end before the handover.
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as a 3GPP network
  • the first SHI is configured according to a second SHI sent by the source when the handover is about to be sent, and the second SHI includes the name of the serving base station when the source is initiated by the communication.
  • Second SHI logo / SRP The second SHI identifier is used to indicate that the serving base station before the switching is configured to construct the first SHI according to the SRP in the second SHI.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the data sent to the terminal is first sent to the serving base station of the terminal, and then forwarded to the terminal by the serving base station of the terminal. Therefore, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the serving base station name/source name forwards the interest packet to the source. Therefore, the FIB of the RP including the node does not include the RP of the terminal Rules can route packets sent to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • one or more programs can also include instructions for performing the following operations: Sending a first SHI to the destination base station.
  • the first SHI may further include a content name and a sequence number in the LRI received by the source end before the handover.
  • the data corresponding to one content is large. Therefore, the data corresponding to each content is split into several data blocks, and the data blocks of each content are serially numbered.
  • logo An interest packet and a data packet usually correspond to one data block.
  • the content name in the interest package only includes the request of the user inputting the user end, and the source end informs the user terminal according to the interest packet with the serial number of all the data blocks corresponding to the content requested by the user.
  • the UE sends the interest packet including the requested content and the sequence number according to the sequence number of the data block sent by the source end, so that the source end sends the data packet including the data block corresponding to the sequence number.
  • the user terminal Since the serial number is usually used as the sequence number of each data block of a content, and the user end usually requests a plurality of consecutive data blocks in one content, the user terminal generally sends the content name to the source end in turn and the sequence number is the same.
  • Continuous interest packages According to the window mechanism existing in the CCN, after receiving the data packet corresponding to a certain sequence number sent by the source end, the UE sends an interest packet corresponding to the sequence number after the sequence number to the source end, and the interest sent at this time
  • the number of packages is related to the size of the window. For example, if the client receives a data packet with a sequence number of 50 and the window size is 5, the UE sends an interest packet with the sequence number 51-55 to the source. If the source end switches at this time, the source end will not receive these interest packets, and it is impossible to respond to them.
  • These interest packets will be stored in the PIT table of the router and the original base station.
  • the format of the first SHI may be as follows: ccnx: / RP of the destination base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • the one or more programs further include instructions for: searching for a match in the PIT, the match being the content name is the same as the content name in the LRI, and the sequence number is greater than or equal to the sequence number in the LRI Interest packet; when there is a match, the interest packet corresponding to the match is sent according to the added FIB rule.
  • one or more programs may include instructions for: first adding 1 to the sequence number in the LRI, and then comparing the content name in the LRI with the number after the addition of 1 to the item in the PIT. If an item with the same content name and serial number is found, the item is determined as a match, and the sequence number is incremented by 1, and then the content name in the LRI and the number after the addition of 1 (equivalent to the number in the LRI) Plus 2) Compare with the items in the PIT, and cycle until the item with the same content name and serial number is not found.
  • the source end may not receive the received interest packet when the handover is performed, and then re-send to the source end to respond. If the destination base station is the serving base station before the handover, the source base station does not need to The first SHI is sent to the target base station to save traffic of the network.
  • one or more programs may include instructions for performing the following operations: When the SHI is sent by the source end when the handover is about to occur, or when the first SHI is sent by the source end before the handover of the serving base station, the receiving source sends the AOS message sent by the serving base station after the handover, the The AOS message is used to indicate that the source end completes the handover; after receiving the AOS message, the interest packet corresponding to the matching item is sent according to the added FIB rule.
  • the AOS information may include the RP and AOS identifier of the serving base station before the handover of the source end.
  • the format of AOS can be as follows: ccnx: / The RP/AOS identifier of the service base before the switchover.
  • the one or more programs may further include an instruction for: receiving an AOS message sent by the source station at the serving base station after the handover, where the AOS message is used to indicate that the source end completes the handover;
  • the AOS message is sent to the source base station before the handover.
  • the interface corresponding to the SRP in the first SHI may be an interface in a static range, and the IP address of the interface is transmitted to the neighboring node of the source after switching between the source and the source. correspond.
  • the interface corresponding to the RP of the node is an interface in a static range.
  • one or more programs may include instructions for: selecting a dynamic interface in an interface within a set dynamic range, and establishing a selected dynamic interface and Corresponding relationship between the IP address of the neighboring node that transmits data to the source end after the source switchover; establishes the correspondence between the selected dynamic interface and the SRP to increase the FIB rule, the selected dynamic interface and the SRP-corresponding setting.
  • one or more programs may also include instructions for performing the following operations: When the interest packet is not sent according to the added FIB rule within the set time, the added FIB rule is deleted.
  • the set time may be a set time after the interest packet is sent according to the increased FIB rule, such as any value between 10 seconds and 30 seconds.
  • the interface between the dynamic range and the RP of the node are one-to-one. Relationships, so the interfaces within the dynamic range can be increased or decreased at will. When the correspondence is not used for a period of time
  • the corresponding relationship can be deleted to prevent the FIB rule from growing indefinitely due to frequent switching of the source and save network resources.
  • the node sends the interest packet to the interface corresponding to the RP that satisfies the longest matching rule at the same time, so as to ensure that the interest packet is sent to the source end.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the target base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name at the time of the communication initiation, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated, so the longest prefix according to the route Matching rules, the interest packets sent to the source end are sent according to the added FIB rules, and the service base station sent by the source end is forwarded to the source end by the serving base station after the handover, and the entire process does not need to set a special indirect server pair.
  • the interest package is forwarded and the system settings are collapsed. Moreover, the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the switched routable prefix. There is also no need to repackage the interest package, which takes less time (about 0.1 second in the experimental environment) and can meet the real-time requirements.
  • the embodiment provides a data transmission device based on CCN, and the device can be set at the source or the source end on the serving base station before the handover.
  • the device includes:
  • the indication construction module 401 is configured to construct a first SHI, where the first SHI includes an RP/first SHI identifier/SRP of the destination base station, and the SRP is a serving base station name/source name of the source end when the communication is initiated, and the first SHI identifier is used.
  • the node indicating that the first SHI is received increases the FIB rule according to the SRP, and the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that transmits data to the source after the source switchover;
  • the sending module 402 is configured to send the first SHI.
  • the RP of the target base station is used to indicate that the node (router or base station) will be the first SHI. Send to the destination base station.
  • the UE sends the interest packet for the first time, based on the CCN-based issuance mechanism, the UE can know the serving base station at the source end.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source end.
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as a 3GPP network
  • the first SHI is configured according to a second SHI sent by the source when the handover is about to be sent, and the second SHI includes the name of the serving base station when the source is initiated by the communication.
  • Second SHI logo / SRP The second SHI identifier is used to indicate that the serving base station before the switching is configured to construct the first SHI according to the SRP in the second SHI.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Because the connection between the router and the base station is usually fixed, and the end The end (source and client) are mobile. In order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the RP (router name) of the router and the RP (base station name) of the base station. Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal. Since the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal, the terminal including the terminal is sent according to the longest prefix matching rule of the route.
  • the packet of the RP (the service base station name/terminal name of the terminal), such as the interest packet including the SRP (the source base station name/source name), may be routed to the source serving base station according to the source base station RP (base station RP).
  • the serving base station at the source end forwards the interest packet to the source according to the SRP (the source base station name/source name). Therefore, the FIB rule including the RP of the node and not the RP of the terminal can route the packet transmitted to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages.
  • the SRP in the first SHI is the serving base station of the source when the communication is initiated. Name, not the name of the serving base station after the source is switched, and also includes the source name, so that the user can send the interest packet sent by the client through the source after the user does not know the source to switch.
  • the serving base station forwards to the source.
  • the first SHI is configured, where the first SHI includes the RP/first SHI identifier/SRP of the destination base station, and the SRP is the serving base station name/source name of the source end when the communication is initiated, and the first SHI identifier is used to indicate The router or the destination eNB that receives the first SHI adds the FIB rule according to the SRP.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after the source switches, and sends the first SHI, therefore, according to the longest prefix matching rule of the route, the interest packet sent to the source end is sent according to the added FIB rule, and the serving base station sent by the source end is forwarded to the source end by the serving base station after the handover by the source end, and the whole
  • the process does not require a dedicated indirect server to forward interest packets, and the system settings are streamlined.
  • the interest package can be sent to the source without re-packaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the routable prefix after the handover. There is no need to repackage the interest package, which is relatively short (about 0.1 second in the experimental environment), which can meet the real-time requirements.
  • the embodiment of the present invention provides a CCN-based data transmission device, where the device can be set at the source end or the source end on the serving base station before the handover.
  • the device includes:
  • the indication construction module 501 is configured to construct a first SHI, where the first SHI includes an RP/first SHI identifier/SRP of the destination base station, and the SRP is a serving base station name/source name of the source end when the communication is initiated, and the first SHI identifier is used.
  • the node indicating that the first SHI is received increases the FIB rule according to the SRP, and the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that transmits data to the source after the source switchover;
  • the sending module 502 is configured to send the first SHI.
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the UE sends the interest packet for the first time, based on the CCN-based distribution mechanism, the UE can know the serving base station at the source end.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source name included in the SHI can also be identified by the base station.
  • the embodiment of the present invention does not limit this.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source end.
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as a 3GPP network
  • the first SHI is configured according to a second SHI sent by the source when the handover is about to be sent, and the second SHI includes the name of the serving base station when the source is initiated by the communication.
  • Second SHI logo / SRP The second SHI identifier is used to indicate that the serving base station before the switching is configured to construct the first SHI according to the SRP in the second SHI.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the terminal including the terminal is sent according to the longest prefix matching rule of the route.
  • the packet of the RP (the service base station name/terminal name of the terminal), such as the interest packet including the SRP (the source base station name/source name), may be routed to the source serving base station according to the source base station RP (base station RP).
  • the serving base station at the source end forwards the interest packet to the source according to the SRP (the source base station name/source name). Therefore, the FIB rule including the RP of the node and not including the RP of the terminal can route the packet transmitted to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • the first SHI may further include a content name and a serial number in the LRI received by the source end before the switching, where the first SHI identifier is further used to indicate that the first SHI indication is received.
  • the node finds whether there is a match in the PIT table, and the matching item is the same as the content name in the LRI, and the sequence number is greater than or equal to the interest packet of the serial number in the LRI. When there is a match, the matching is sent according to the added FIB rule. The corresponding interest package.
  • the data corresponding to one content is large. Therefore, the data corresponding to each content is split into several data blocks, and the data blocks of each content are identified by serial numbers.
  • An interest packet and a data packet usually correspond to one data block.
  • the content name in the interest package only includes the request of the user inputting the user end, and the source end informs the user terminal according to the interest packet with the serial number of all the data blocks corresponding to the content requested by the user.
  • the UE sends the interest packet including the requested content and the sequence number according to the sequence number of the data block sent by the source end, so that the source end sends the data packet including the data block corresponding to the sequence number.
  • the user terminal Since the serial number is usually used as the sequence number of each data block of a content, and the user end usually requests a plurality of consecutive data blocks in one content, the user terminal generally sends the content name to the source end in turn and the sequence number is the same.
  • Continuous interest packages According to the window mechanism existing in the CCN, after receiving the data packet corresponding to a certain sequence number sent by the source end, the UE sends an interest packet corresponding to the sequence number after the sequence number to the source end, and the interest sent at this time
  • the number of packages is related to the size of the window. For example, if the client receives a data packet with a sequence number of 50 and the window size is 5, the UE sends an interest packet with the sequence number 51-55 to the source. If the source end switches at this time, the source end will not receive these interest packets, and it is impossible to respond to them.
  • These interest packets will be stored in the PIT table of the router and the original base station.
  • the format of the first SHI may be as follows: ccnx: / RP of the destination base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • the first SHI is configured, where the first SHI includes the RP/first SHI identifier/SRP of the destination base station, and the SRP is the serving base station name/source name of the source end when the communication is initiated, and the first SHI identifier is used to indicate The router or the destination eNB that receives the first SHI adds the FIB rule according to the SRP.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after the source switches, and sends the first SHI, therefore, according to the longest prefix matching rule of the route, the interest packet sent to the source end is sent according to the added FIB rule, and the serving base station sent by the source end is forwarded to the source end by the serving base station after the handover by the source end, and the whole
  • the process does not require a dedicated indirect server to forward interest packets, and the system settings are streamlined.
  • the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the SRP adds the FIB rule, so that the interest packets sent to the source end are sent according to the added FIB rules. There is no need to wait for the source end to send the switched routable prefix, and the interest packet is not required to be repackaged. In the experimental environment, about 0.1 second), it can meet the real-time requirements.
  • the embodiment of the present invention provides a CCN-based data transmission device, where the device may be set at the source end or the source end on the serving base station before the handover, and the source end (terminal) is taken as an example.
  • the device 60 may include RF circuitry 610, memory 620 including one or more computer readable storage media, input unit 630, display unit 640, sensor 650, audio circuitry 660, WiFi module 670, processor 680 including one or more processing cores And power supply 690 and other components.
  • the device structure illustrated in Figure 7 does not constitute a limitation to the device, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • the RF circuit 610 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, receiving downlink information of the base station, and then processing it by one or more processors 680; in addition, transmitting uplink data to the base station .
  • RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a SIM card, a transceiver, a coupler, an LNA, a duplexer, and the like.
  • RF circuitry 610 can also communicate with the network and other devices via wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to GSM, GPRS, CDMA, WCDMA, LTE, email, SMS, and the like.
  • the memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing by running software programs and modules stored in the memory 620.
  • the memory 620 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 constructing a first SHI, etc.), and the like; the storage data area may be stored according to the device 60. Use the created data (such as the first SHI, etc.) and so on.
  • memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 620 can also include a memory controller to provide access to memory 620 by processor 680 and input unit 630.
  • Input unit 630 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 630 can include touch-sensitive surface 631 as well as other input devices 632.
  • Touch-sensitive surface 631 also Known as a touch display or touchpad, it can collect touch operations on or near the user (such as the user using a finger, stylus, etc., on any touchable surface 631 or near the touch-sensitive surface 631. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 631 may include two parts 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 680 is provided and can receive commands from the processor 680 and execute them.
  • the touch-sensitive surface 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 630 can also include other input devices 632.
  • other input devices 632 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.
  • Display unit 640 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of device 30, which can be comprised of graphics, text, icons, video, and any combination thereof.
  • the display unit 640 can include a display panel 641.
  • the display panel 641 can be configured in the form of an LCD, an OLED, or the like.
  • the touch-sensitive surface 631 can cover the display panel 641. When the touch-sensitive surface 631 detects a touch operation on or near it, it is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 is based on the touch event. The type provides a corresponding visual output on display panel 641.
  • touch-sensitive surface 631 and display panel 641 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 631 can be integrated with display panel 641 for input. And output function.
  • Device 60 may also include at least one type of sensor 650, 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 641 according to the brightness of the ambient light, and the proximity sensor may close the display panel 641 when the device 30 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 gesture of the mobile phone 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 device 60 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • Audio circuitry 660, speaker 661, and microphone 662 can provide an audio interface between the user and device 60.
  • the audio circuit 660 can transmit the converted electrical signal of the received audio data to the speaker. 661, converted by the speaker 661 into a sound signal output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660, converted into audio data, and then processed by the audio data output processor 680.
  • the RF circuit 610 is sent to, for example, another device, or the audio data is output to the memory 620 for further processing.
  • the audio circuit 360 may also include an earbud jack to provide communication of the peripheral earphones with the device 60.
  • WiFi is a short-range wireless transmission technology
  • the device 60 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 670, which provides users with wireless broadband Internet access.
  • FIG. 7 shows the WiFi module 670, it will be understood that it does not belong to the essential configuration of the device 30, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Processor 680 is the control center of device 60, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 620, and recalling data stored in memory 620, The various functions and processing data of device 60 are performed to provide overall monitoring of device 60.
  • the processor 680 may include one or more processing cores.
  • the processor 680 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 680.
  • apparatus 60 further includes 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, one or more programs
  • the instruction includes: constructing a first SHI, where the first SHI includes an RP/first SHI identifier/SRP of the destination base station, and the SRP is a serving base station name/source name of the source end when the communication is initiated, the first SHI
  • the identifier is used to indicate that the node that receives the first SHI adds the FIB rule according to the SRP, and the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that transmits data to the source after the source switchover; SHI.
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the UE sends the interest packet for the first time, based on the CCN-based distribution mechanism, the UE can know the serving base station at the source end.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • the base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source end.
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as a 3GPP network
  • the first SHI is configured according to a second SHI sent by the source when the handover is about to be sent, and the second SHI includes the name of the serving base station when the source is initiated by the communication.
  • Second SHI logo / SRP The second SHI identifier is used to indicate that the serving base station before the switching is configured to construct the first SHI according to the SRP in the second SHI.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name), ie router name and base station name. Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route Package, including SRP
  • the interest packet of the source base station name/source name may be routed to the source base station according to the source base station name (RP of the base station), and the source base station base station according to the SRP (source base station name/source side of the source end) Name) Forwards the interest package to the source. Therefore, the FIB rule including the RP of the node and not including the RP of the terminal can route the packet transmitted to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • the first SHI may further include a content name and a serial number in the LRI received by the source end before the switching, where the first SHI identifier is further used to indicate the node that receives the first SHI indication.
  • the match is the content name and the content name in the LRI
  • the interest packet corresponding to the match is sent according to the added FIB rule.
  • the data corresponding to one content is large. Therefore, the data corresponding to each content is split into several data blocks, and the data blocks of each content are identified by serial numbers.
  • An interest packet and a data packet usually correspond to one data block.
  • the content name in the interest package only includes the request of the user inputting the user end, and the source end informs the user terminal according to the interest packet with the serial number of all the data blocks corresponding to the content requested by the user.
  • the UE sends the interest packet including the requested content and the sequence number according to the sequence number of the data block sent by the source end, so that the source end sends the data packet including the data block corresponding to the sequence number.
  • the user terminal Since the serial number is usually used as the sequence number of each data block of a content, and the user end usually requests a plurality of consecutive data blocks in one content, the user terminal generally sends the content name to the source end in turn and the sequence number is the same.
  • Continuous interest packages According to the window mechanism existing in the CCN, after receiving the data packet corresponding to a certain sequence number sent by the source end, the UE sends an interest packet corresponding to the sequence number after the sequence number to the source end, and the interest sent at this time
  • the number of packages is related to the size of the window. For example, if the client receives a data packet with a sequence number of 50 and the window size is 5, the UE sends an interest packet with the sequence number 51-55 to the source. If the source end switches at this time, the source end will not receive these interest packets, and it is impossible to respond to them.
  • These interest packets will be stored in the PIT table of the router and the original base station.
  • the format of the first SHI may be as follows: ccnx: / RP of the destination base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • the first SHI is configured, where the first SHI includes the RP/first SHI identifier/SRP of the destination base station, and the SRP is the serving base station name/source name of the source end when the communication is initiated, and the first SHI identifier is used to indicate The router or the destination eNB that receives the first SHI adds the FIB rule according to the SRP.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after the source switches, and sends the first SHI, therefore, according to the longest prefix matching rule of the route, the interest packet sent to the source end is sent according to the added FIB rule, and the serving base station sent by the source end is forwarded to the source end by the serving base station after the handover by the source end, and the whole
  • the process does not require a dedicated indirect server to forward interest packets, and the system settings are streamlined.
  • the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, without Waiting for the source to send its switched routable prefix does not require repackaging the interest packet, which takes less time (about 0.1 second in the experimental environment) to meet real-time requirements.
  • the embodiment of the present invention provides a communication system.
  • the system includes a source end 701, a base station 702, and a router 703.
  • the source 701, the base station 702, and the router 703 are sequentially connected.
  • Router 703 and base station 702 can be used,
  • the first SHI includes an RP/first SHI identifier/SRP of the destination base station;
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that receives the first SHI increases the FIB rule according to the SRP.
  • the SRP is the serving base station name/source name at the time of communication initiation.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after switching from the source.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source end.
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the target base station in the first SHI is the source end of the serving base station after the handover. RP.
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as a 3GPP network
  • the first SHI is configured according to a second SHI sent by the source when the handover is about to be sent, and the second SHI includes the name of the serving base station when the source is initiated by the communication.
  • Second SHI logo / SRP The second SHI identifier is used to indicate that the serving base station before the switching is configured to construct the first SHI according to the SRP in the second SHI.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the data sent to the terminal is first sent to the service base station of the terminal, and then forwarded to the terminal by the serving base station of the terminal, so the RP of the terminal is usually the service base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the serving base station name/source name forwards the interest packet to the source. Therefore, the FIB rule including the RP of the node and not the RP of the terminal can route the packet transmitted to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target base station of the first SHI is in the source end.
  • the RP of the changed serving base station and the interface corresponding to the SRP in the first SHI are interfaces corresponding to the IP address of the next hop node of the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • the first SHI may further include a content name and a sequence number in the LRI received by the source end before the handover.
  • the data corresponding to one content is large. Therefore, the data corresponding to each content is split into several data blocks, and the data blocks of each content are identified by serial numbers.
  • An interest packet and a data packet usually correspond to one data block.
  • the content name in the interest package only includes the request of the user inputting the user end, and the source end informs the user terminal according to the interest packet with the serial number of all the data blocks corresponding to the content requested by the user.
  • the UE sends the interest packet including the requested content and the sequence number according to the sequence number of the data block sent by the source end, so that the source end sends the data packet including the data block corresponding to the sequence number.
  • the user terminal Since the serial number is usually used as the sequence number of each data block of a content, and the user end usually requests a plurality of consecutive data blocks in one content, the user terminal generally sends the content name to the source end in turn and the sequence number is the same. Continuous interest packages.
  • the window mechanism existing in the CCN after receiving the data packet corresponding to a certain sequence number sent by the source end, the UE sends and reports to the source end.
  • the number of interest packets corresponding to the sequence number after the serial number, the number of interest packets sent at this time is related to the window size. For example, if the client receives the data packet with the sequence number of 50 and the window size is 5, the UE sends the interest packet with the sequence number 51-55 to the source end. If the source end switches at this time, the source end will not receive these interest packets, and it is impossible to respond to them.
  • These interest packets will be stored in the PIT table of the router and the original base station.
  • the format of the first SHI may be as follows: ccnx: / RP of the destination base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • router 703 and base station 702 can also be used.
  • the match is the same as the content name in the LRI, and the sequence number is greater than or equal to the interest packet in the LRI.
  • the interest packet corresponding to the match is sent according to the added FIB rule.
  • the search module 204 may first add 1 to the sequence number in the LRI, and then compare the content name in the LRI and the sequence number after the addition to the item in the PIT, if an item with the same content name and serial number is found. , the item is judged as a match, and the sequence number is incremented by 1, and then the content name in the LRI and the number after the addition of 1 (equivalent to 2 in the LRI) are compared with the items in the PIT. This loops until no item with the same content name and serial number is found.
  • the source end may not receive the received interest packet when the handover is performed, and then resend the response to the source end. If the destination base station is the serving base station before the handover, the sending module 203 does not need to send the first SHI to the target base station to save traffic of the network.
  • router 703 and base station 702 can be used,
  • the interest packet corresponding to the matching item is sent according to the added FIB rule, and the AOS message is used. Indicates that the source completes the switch.
  • the AOS information may include the RP and AOS identifier of the serving base station before the handover of the source end.
  • the format of AOS can be as follows: ccnx: / The RP/AOS identifier of the service base before the switchover.
  • the router 703 and the base station 702 may be configured to: when there is no matching item, send an AOS message to the serving base station before the handover to the source end after receiving the AOS message sent by the source station after the handover serving base station.
  • the interface corresponding to the SRP in the first SHI may be Is an interface in the static range, and the interface transmits data to the adjacent node of the source after switching at the source end.
  • the IP address corresponds.
  • the interface corresponding to the RP of the node is an interface in a static range.
  • the router 703 and the base station 702 can be configured to select a dynamic interface in the interface within the set dynamic range, and establish a selected dynamic interface and transmit after switching at the source end. Correspondence between the data and the IP address of the neighboring node at the source end;
  • router 703 and base station 702 can also be used.
  • the added FIB rule is deleted.
  • the set time may be a set time after the interest packet is sent according to the increased FIB rule, such as any value between 10 seconds and 30 seconds.
  • the interface in the dynamic range since the interface in the dynamic range has a one-to-one relationship with the RP of the node, the interface in the dynamic range can be increased or decreased at will.
  • the corresponding relationship is not used for a period of time (that is, the interest packet is sent according to the added FIB rule)
  • the corresponding relationship may be deleted to prevent the FIB rule from growing indefinitely due to frequent switching of the source end, thereby saving network resources.
  • the node sends the interest packet to the interface corresponding to the RP that satisfies the longest matching rule at the same time, so as to ensure that the interest packet is sent to the source end.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the target base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated.
  • the interest packet sent to the source end is sent according to the added FIB rule, and the serving base station sent by the source end is forwarded to the source end by the serving base station after the handover by the source end, and the whole
  • the process does not require a dedicated indirect server to forward interest packets, and the system settings are streamlined.
  • the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the switched routable prefix. There is also no need to repackage the interest package, which takes less time (about 0.1 second in the experimental environment) and can meet the real-time requirements.
  • the embodiment of the present invention provides a communication system.
  • the system includes a source end 801, a base station 802, and a router 803.
  • the source 801, the base station 802, and the router 803 are sequentially connected.
  • Source 801 or base station 802 can be used,
  • the first SHI includes an RP/first SHI identifier/SRP of the destination base station, the SRP is a serving base station name/source name at the source end when the communication is initiated, and the first SHI identifier is used to indicate that the first SHI is received.
  • the node adds the FIB rule according to the SRP.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that transmits data to the source after the source switchover.
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the UE sends the interest packet for the first time, based on the CCN-based distribution mechanism, the UE can know the serving base station at the source end.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source end.
  • the first SHI may be triggered by the source end.
  • the source When the source is located in the overlapping area of the service areas of the two base stations, if the source detects that the signal of the current serving base station of the non-source is stronger than the signal of the current serving base station of the source (may be The number of times that the signal of the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end, for example, two times in succession, indicates that the handover is about to occur at this time, and the source will switch after this.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after the handover.
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as a 3GPP network
  • the first SHI is configured according to a second SHI sent by the source when the handover is about to be sent, and the second SHI includes the name of the serving base station when the source is initiated by the communication.
  • Second SHI logo / SRP The second SHI identifier is used to indicate that the serving base station before the switching is configured to construct the first SHI according to the SRP in the second SHI.
  • the RP of the target base station in the first SHI is the RP of the serving base station whose source is after handover.
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the interest packet is transmitted from the interface that transmits the data to the source end after switching from the source end, and the Added FIB rules to send interest packages. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • the first SHI may further include a content name and a serial number in the LRI received by the source end before the switching, where the first SHI identifier is further used to indicate the node that receives the first SHI indication. If there is a match in the PIT table, the match is the same as the content name in the LRI, and the sequence number is greater than or equal to the interest packet in the LRI. When there is a match, the match is sent according to the added FIB rule. Interest package.
  • the data corresponding to one content is large. Therefore, the data corresponding to each content is split into several data blocks, and the data blocks of each content are identified by serial numbers.
  • An interest packet and a data packet usually correspond to one data block.
  • the content name in the interest package only includes the user input client.
  • the request source according to the interest packet, informs the user of the sequence number of all data blocks corresponding to the content requested by the user.
  • the UE sends the interest packet including the requested content and the sequence number according to the sequence number of the data block sent by the source end, so that the source end sends the data packet including the data block corresponding to the sequence number.
  • the user terminal Since the serial number is usually used as the sequence number of each data block of a content, and the user end usually requests a plurality of consecutive data blocks in one content, the user terminal generally sends the content name to the source end in turn and the sequence number is the same.
  • Continuous interest packages According to the window mechanism existing in the CCN, after receiving the data packet corresponding to a certain sequence number sent by the source end, the UE sends an interest packet corresponding to the sequence number after the sequence number to the source end, and the interest sent at this time
  • the number of packages is related to the size of the window. For example, if the client receives a data packet with a sequence number of 50 and the window size is 5, the UE sends an interest packet with the sequence number 51-55 to the source. If the source end switches at this time, the source end will not receive these interest packets, and it is impossible to respond to them.
  • These interest packets will be stored in the PIT table of the router and the original base station.
  • the format of the first SHI may be as follows: ccnx: / RP of the destination base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • the first SHI is configured, where the first SHI includes the RP/first SHI identifier/SRP of the destination base station, and the SRP is the serving base station name/source name of the source end when the communication is initiated, and the first SHI identifier is used to indicate The router or the destination eNB that receives the first SHI adds the FIB rule according to the SRP.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after the source switches, and sends the first SHI, therefore, according to the longest prefix matching rule of the route, the interest packet sent to the source end is sent according to the added FIB rule, and the serving base station sent by the source end is forwarded to the source end by the serving base station after the handover by the source end, and the whole
  • the process does not require a dedicated indirect server to forward interest packets, and the system settings are streamlined.
  • the interest package can be sent to the source without re-packaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the routable prefix after the handover. There is no need to repackage the interest package, which is relatively short (about 0.1 second in the experimental environment), which can meet the real-time requirements.
  • Embodiments of the present invention provide a CCN-based data transmission method, which may be performed by a node, including but not limited to a router and a base station.
  • the method includes: Step 901: Receive a first SHI, where the first SHI includes an RP/first SHI identifier/SRP of the target base station.
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that received the first SHI adds FIB rules according to the SRP (see step 902).
  • the SRP is the serving base station name/source name of the source when the communication is initiated.
  • the UE sends the interest packet for the first time, based on the CCN-based issuance mechanism, the UE can know the serving base station at the source end.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the first SHI is sent when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the first SHI may be sent by the source when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source (see Embodiment 11).
  • the first SHI may be sent by the source end when the handover is about to occur, for example, when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal to the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, continuous Twice), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the destination base station in the first SHI is the RP of the serving base station whose source is after handover (see Embodiment 12).
  • the first SHI may be sent by the source end before the handover of the serving base station, and at this time, the CCN is the source end of the serving base station before the handover, and the source end is learned after the handover.
  • a network of a serving base station such as a terminal detection report), such as a 3GPP network
  • the first SHI is configured according to a second SHI sent by the source when the handover is about to be sent, and the second SHI includes the name of the serving base station when the source is initiated by the communication.
  • Second SHI logo / SRP The second SHI identifier is used to indicate that the serving base station before the switching is configured to construct the first SHI according to the SRP in the second SHI.
  • the RP of the destination base station in the first SHI is the RP of the serving base station whose source is after handover (see Embodiment 13).
  • the serving base station can directly switch from the source end to the source end before the handover.
  • the service base station sends the first SHI, the source terminal does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • Step 902 Add a FIB rule according to the SRP.
  • the added FIB rule includes a correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after switching at the source end.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs. Since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent the FIB rules from changing frequently, the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source is in the communication
  • the service base station name/source name at the time of the start is the RP before the handover (the source base station is the service base station name when the communication is initiated.
  • the source base station is the source end when the communication is initiated.
  • the serving base station before handover matches the interest packet (the source base station name/source name/content name at the time of communication initiation), so the router or base station will transmit the interest packet according to the FIB rule from the first SHI.
  • the interface corresponding to the SRP sends the interest packet, that is, the information packet is transmitted from the source end to the interface of the source end, and the interest packet is sent according to the added FIB rule. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the target base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name at the time of the communication initiation, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated, so the longest prefix according to the route Matching rules, the interest packets sent to the source end are sent according to the added FIB rules, and the service base station sent by the source end is forwarded to the source end by the serving base station after the handover, and the entire process does not need to set a special indirect server pair.
  • the interest package is forwarded and the system settings are collapsed. Moreover, the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the switched routable prefix. There is also no need to repackage the interest package, which takes less time (about 0.1 second in the experimental environment) and can meet the real-time requirements.
  • the embodiment of the invention provides a CCN-based data transmission method, which can be performed by a source or a source at a serving base station before handover.
  • the method includes:
  • Step 1001 Construct a first SHI, where the first SHI includes an RP/first SHI identity/SRP of the target base station.
  • the RP of the target base station is used to instruct the node (router or base station) to send the first SHI to the target base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that received the first SHI increases the FIB rule according to the SRP.
  • the SRP is the serving base station name/source name at the time of communication initiation.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after switching from the source.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • the step 1001 can be performed when the source end switches, and the source end handover includes when the handover is about to occur, during the handover, and when the handover is completed.
  • the step 1001 may be performed by the source end when the handover is completed.
  • the RP of the destination base station in the first SHI is the RP of the serving base station before the handover of the source (see Embodiment 11).
  • the step 1001 may be performed by the source end when the handover is about to occur.
  • the source end when the source end is located in an overlapping area of the service areas of the two base stations, if the source end detects The signal of the current serving base station at the non-source end is stronger than the signal of the current serving base station at the source end (it may be a set number of times to detect that the signal of the current serving base station of the non-source end is stronger than the signal of the current serving base station of the source end, for example, two consecutive Times), it means that the switch is about to happen at this time, after which the source will switch.
  • the RP of the destination base station in the first SHI is the RP of the serving base station whose source is after handover (see Embodiment 12).
  • the step 1001 may be performed by the source base station before the handover according to the second SHI.
  • the CCN is the source end of the serving base station before the handover, and the source end may be known.
  • a network of the switched serving base station such as a terminal detection report
  • the first SHI is configured according to the second SHI sent by the source when the handover is about to occur
  • the second SHI includes the source end when the communication is initiated.
  • the second SHI identifier is used to indicate that the source base station before the handover performs the first SHI according to the SRP in the second SHI.
  • the RP of the destination base station in the first SHI is the RP of the serving base station whose source is after handover (see Embodiment 13).
  • the serving base station can directly directly switch from the source base station to the source end after the handover.
  • the base station sends the first SHI, and the source end does not need to develop a module that specifically records the new base station RP, and the development amount is small, which reduces the development cost.
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs.
  • the FIB rule since the connection relationship between the router and the base station is usually fixed, and the terminal (source and client) has mobility, in order to prevent frequent changes of the FIB rules, the FIB rule generally only includes the RP (router name) of the router and Base station RP (base station name). Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the serving base station name/source name forwards the interest packet to the source. Therefore, the FIB rule including the RP of the node and not including the RP of the terminal can route the packet transmitted to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • the RP of the target eNB of the first SHI is the RP of the serving base station before the handover, and the interface corresponding to the SRP in the first SHI is the upper SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the RP of the target eNB of the first SHI is the RP of the serving base station after the handover of the source end, and the interface corresponding to the SRP in the first SHI is the same as the first SHI.
  • the interest packet includes the serving base station name/source name/content name of the source when the communication is initiated.
  • the SRP in the first SHI (the source base station name/source name at the time of communication initiation) is higher than the source RP before the handover (the source base station at the time of communication initiation)
  • the serving base station at the source when the communication is initiated matches the serving base station before the handover of the source end with the interest packet (the serving base station name/source name/content name when the source end is initiated by the communication).
  • the router or the base station sends the interest packet according to the FIB rule
  • the interest packet is sent from the interface corresponding to the SRP in the first SHI, that is, the data is transmitted from the source end to the source end.
  • the port sends the interest packet, and the interest packet is sent according to the added FIB rule. It is also because the longest prefix matching principle of the route is to be followed.
  • the SRP in the first SHI is the name of the serving base station when the source is initiated, not the name of the serving base station after the source is switched, and also includes the source name. Therefore, in the case that the UE does not know that the source end performs the handover, the interest packet sent by the UE is forwarded to the source end by the source end at the switched serving base station.
  • Step 1002 Send the first SHI.
  • the first SHI is configured, where the first SHI includes the RP/first SHI identifier/SRP of the destination base station, and the SRP is the serving base station name/source name of the source end when the communication is initiated, and the first SHI identifier is used to indicate The router or the destination eNB that receives the first SHI adds the FIB rule according to the SRP.
  • the added FIB rule includes the correspondence between the SRP in the first SHI and the interface that the node transmits data to the source after the source switches, and sends the first SHI, therefore, according to the longest prefix matching rule of the route, the interest packet sent to the source end is sent according to the added FIB rule, and the serving base station sent by the source end is forwarded to the source end by the serving base station after the handover by the source end, and the whole
  • the process does not require a dedicated indirect server to forward interest packets, and the system settings are streamlined.
  • the interest package can be sent to the source without re-packaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the routable prefix after the handover. There is no need to repackage the interest package, which is relatively short (about 0.1 second in the experimental environment), which can meet the real-time requirements.
  • the embodiment of the present invention provides a data transmission method based on CCN.
  • the serving base station cylinder before the handover is called the original base station
  • the serving base station cylinder after the handover is called the new base station.
  • a router routes the original base station to the aggregation point of the user end and the new base station to the user end.
  • the first SHI is sent by the source end when the handover is completed. Referring to FIG. 12, the method includes:
  • Step 1101 The UE sends the interest packet, where the interest packet includes the service base station name/source name/content name of the source end when the communication is initiated.
  • the CCN has a content publishing mechanism, through which the user can know the content in the network.
  • the user can select the desired content as needed, and the client sends an interest package containing the name of the desired content according to the user's instruction.
  • CCN uses hierarchical methods to name content, and "/" is used to separate different parts of the content name. It is easy to know that interest packages can also include Min Suffix Components, Max Suffix Components, Publisher Public Key Digest, Exclude, Child Selector. One or more of the answer source kind, the Scope, and the Interest Life time, which are not limited by the embodiment of the present invention.
  • Step 1102 After receiving the interest packet, the first router searches for the CS. When there is no content corresponding to the content name in the CS, the interest packet is forwarded according to the FIB rule and the PIT table is updated.
  • the first router When the content corresponding to the content name exists in the CS, the first router encapsulates the content corresponding to the content name into a data packet, and sends the content to the user end to respond to the interest packet. In this embodiment, since the first router receives the interest packet including the content name for the first time, the content corresponding to the content name is not stored in the CS.
  • Nodes include routers and base stations.
  • the CS is used to store the data packet received by the node (ie, the content corresponding to the content name).
  • the FIB rule includes the correspondence between the RP of each node and the interface of the node to which the FIB rule belongs.
  • the PIT table is used to record the interest packet that has been forwarded and has not been responded, and the interface that receives the interest packet, to forward the data packet of the return interest packet to the client.
  • the FIB rules in the node generally only include the router's RP (router). Name) and base station RP (base station name). Considering that the terminal must access the CCN through the base station, the RP of the terminal is usually the serving base station name/terminal name of the terminal.
  • the serving base station name of the terminal (the RP of the base station) is the prefix of the serving base station name/terminal name of the terminal
  • the RP including the terminal (the serving base station name/terminal name of the terminal) transmitted to the terminal according to the longest prefix matching rule of the route
  • the packet such as the interest packet including the SRP (the source base station name/source name)
  • the serving base station name/source name forwards the interest packet to the source. Therefore, the FIB rule including the RP of the node and not the RP of the terminal can route the packet sent to the terminal to the terminal.
  • the interface of the node has a corresponding relationship with the IP address.
  • the node can send data to the node to which the IP address corresponding to the interface belongs through an interface.
  • step 1102 the specific process of step 1102 is as follows: After the first router receives the interest packet, the first router first searches whether the data packet corresponding to the interest packet (ie, the content corresponding to the content name) is stored in the CS. When the first router stores the data packet that responds to the interest packet, the first router sends the data packet that responds to the interest packet to the client, and discards the interest packet.
  • the data packet corresponding to the interest packet ie, the content corresponding to the content name
  • the first router When the first router does not store the data packet in response to the interest packet, the first router looks in the PIT table whether there is an item with the same content name as the interest packet. When there is an item in the PIT table that has the same name as the content in the interest package, the first router increases the interface that receives the interest packet in the same item as the content name in the interest package, and discards the interest package.
  • the source station in the interest packet is the serving base station name/source name/content name at the time of communication initiation, and each node in the FIB rule
  • the RP performs the longest match.
  • the RP of each node in the FIB rule is the router name or the base station name. Therefore, the longest match obtained is the name of the serving base station when the source initiates the communication.
  • the serving base station at the source end when the communication is initiated is the original base station.
  • the first router forwards the interest packet from the interface corresponding to the original base station name according to the FIB rule, and records the interest packet and the interface that receives the interest packet in the PIT table. When there is no match in the FIB rule, the interest packet is discarded.
  • routing from the client to the source may involve multiple nodes (including but not limited to routers and base stations). These nodes work in the same way as the first router, and detailed descriptions are omitted here.
  • Step 1103 The original base station searches for the CS after receiving the interest packet, and when the CS does not have the content that satisfies the interest packet, forwards the interest packet according to the FIB rule and updates the PIT table.
  • the working process of all the nodes is basically the same as that of the first router. Therefore, the step 1103 can be the same as the step 1102, and will not be described in detail herein.
  • Step 1104 After receiving the interest package, the source side searches for the Repository component, generates a packet back to the interest packet, and sends the generated data packet.
  • the working process of the source end is basically the same as that of the first router, except that the source side searches for the Repository component after receiving the interest packet, which is not CS.
  • the search for the Repository component and the process is the same as the process of finding the CS, that is, the step 1104 can search the CS after receiving the interest packet with the first router, generate a data packet that responds to the interest packet, and send the generated data packet.
  • the steps are the same and will not be described in detail here.
  • the Repository component differs from CS in that the Repository component has a server-like content publishing function.
  • the content stored in the Repository component is static and generally does not change.
  • the content stored in the CS is dynamic and may change at any time.
  • Step 1105 After receiving the data packet, the original base station stores the data packet, updates the PIT table, and forwards the data packet to the UE.
  • the original base station after the original base station receives the data packet, the original base station first stores in the search CS whether there is a data packet with the same content name as the data packet. When the CS stores the same data packet as the content name of the data packet, the original base station discards the data packet.
  • the original base station searches the PIT table for the existence of an interest packet that matches the data packet.
  • the original base station forwards the data packet from the interface corresponding to the interest packet in the PIT table, and stores the data packet in the CS, and deletes the data from the PIT table. Packet matching interest package.
  • the original base station can directly send the data packet in the CS to the user in response to the interest packet. If there is no interest packet matching the packet in the PIT table, the packet is discarded.
  • Step 1106 After receiving the data packet, the first router stores the data packet, updates the PIT table, and forwards the data packet to the user.
  • the step 1106 can be the same as the step 1105, and will not be described in detail herein.
  • Step 1107 The client receives the data packet.
  • the data packet of step 1107 is a response to the interest packet sent by the user in step 1101.
  • the data corresponding to one content is large. Therefore, the data corresponding to each content is split into several data blocks, and the data blocks of each content are identified by serial numbers.
  • An interest packet and a data packet usually correspond to one data block.
  • the content name in the interest package only includes the request of the user inputting the user end, and the source end informs the user terminal according to the interest packet with the serial number of all the data blocks corresponding to the content requested by the user.
  • the UE sends the interest packet including the requested content and the sequence number according to the sequence number of the data block sent by the source end, so that the source end sends the data packet including the data block corresponding to the sequence number.
  • step 1108 steps 1101-1107 can be repeated multiple times.
  • step 1108 can also be directly started after steps 1101-1102 have been performed only once.
  • the user terminal Since the serial number is usually used as the serial number of each data block of a content, and the client side usually requests a number of consecutive data blocks in one content, the user terminal generally follows Send an interest packet with the same content name and consecutive serial numbers to the source.
  • the window mechanism existing in the CCN after receiving the data packet corresponding to a certain sequence number sent by the source end, the UE sends an interest packet corresponding to the sequence number after the sequence number to the source end, and the interest sent at this time
  • the number of packages is related to the size of the window. For example, if the client receives the data packet with the sequence number of 50 and the window size is 5, the UE sends the interest packet with the sequence number 51-55 to the source end. If the source end switches at this time, the source end will not receive these interest packets, and it is impossible to respond to them.
  • These interest packets will be stored in the PIT table of the router and the original base station.
  • Step 1108 After the source end completes the handover, the source construct constructs and sends a first SHI, where the first SHI includes the content name and sequence number in the RP/first SHI identifier/SRP/LRI of the original base station.
  • the source may switch due to changes in the mobile or network environment.
  • the first SHI is constructed according to the RP, the source name, and the LRI of the serving base station when the source end is initiated.
  • the serving base station at the source end when the communication is initiated is the original base station.
  • the RP of the original base station is used to instruct the node (router or base station) to send the first SHI to the original base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that receives the first SHI adds FIB rules according to the SRP (see step 1109 for details).
  • the SRP is the name of the serving base station (original base station) / source name when the source initiates communication. When the communication is initiated, when the UE sends the interest packet for the first time, based on the CCN-based issuance mechanism, the UE can know the serving base station at the source end.
  • the format of the first SHI may be as follows: ccnx: / RP of the original base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • Step 1109 The new base station adds the FIB rule according to the SRP, and finds a matching item in the PIT. When there is no matching item, the first SHI is sent.
  • the added FIB rule includes a corresponding relationship between the SRP in the first SHI and the interface that the node transmits data to the source after switching at the source end.
  • the matching item is the interest package whose content name is the same as the content name in the LRI, and the serial number is greater than or equal to the serial number in the LRI.
  • the new base station sends the interest packet corresponding to the matching item according to the added FIB rule. Since the interest packet includes the serving base station (original base station) name/source name/content name at the time of originating the communication, the forwarding path of the interest packet should be the first router, the original base station, and the source end, and therefore, the interest packet does not have After forwarding by the new base station, there is no match in the new base station.
  • the interface corresponding to the SRP in the first SHI may be an interface in a static range, and the IP address of the interface is transmitted to the neighboring node of the source after switching between the source and the source. correspond.
  • the interface corresponding to the RP of the node is an interface in a static range.
  • the interface corresponding to the SRP in the first SHI may be an interface in a dynamic range, and the IP of the interface is transmitted to the neighboring node of the source end after being switched at the source end.
  • the address corresponds.
  • adding FIB rules may include:
  • the interface within the set dynamic range select a dynamic interface, and establish a correspondence between the selected dynamic interface and the IP address of the adjacent node transmitting the data to the source end after the source switching; establishing the selected dynamic interface and SRP Correspondence to increase FIB rules, select dynamic interfaces and SRP - corresponding settings. Since the interface in the dynamic range has a one-to-one relationship with the SRP, the interfaces in the dynamic range can be increased or decreased at will. When the corresponding relationship is not used for a period of time (that is, the interest packet is sent according to the added FIB rule), the corresponding relationship may be deleted to prevent the FIB rule from growing indefinitely due to frequent switching of the source end, thereby saving network resources.
  • the interface in the static range and the interface in the dynamic range can be numbered differently. According to the scope of the interface number, the interface is determined to be an interface in the static range or an interface in the dynamic range.
  • Step 1110 The first router adds a FIB rule according to the SRP, and searches for a matching item in the PIT. When there is a matching item, the first party sends an interest packet corresponding to the matching item according to the added FIB rule.
  • the forwarding path of the interest packet should be the first router, the original base station, and the source end, and there is a matching item in the first router.
  • the matching match may be as follows: First, the sequence number in the LRI is incremented by 1, and then the content name in the LRI and the serial number after adding 1 are compared with the items in the PIT, if found. If the content name and the serial number are the same, the item is judged as a match, and the serial number is incremented by 1, and then the content name in the LRI and the serial number after adding 1 (equivalent to adding 2 to the serial number in the LRI) In contrast to the items in the PIT, this loops until no item with the same content name and serial number is found.
  • the first router routes the original base station and the new base station to the aggregation point of the user end, and after the first SHI transmits to the first router by using the new base station, the path of the first router to the source end after the handover can be established, and The first router has a matching item, and the source router does not receive the received interest packet when the source is switched, and sends the packet to the source end to respond. Therefore, in this embodiment, the first router may not need to send the first packet to the original base station. SHI, to save network traffic.
  • the first router may send the first SHI to the original base station.
  • the embodiment further includes the following steps: the original base station adds the FIB rule according to the SRP, and searches for a matching item in the PIT, when there is a matching item. Send the interest packet corresponding to the match according to the added FIB rule.
  • the steps performed by the original base station are the same as those performed by the first router in this embodiment.
  • Step 1111 After receiving the interest packet corresponding to the matching item, the new base station searches for the CS. When the content of the interest packet corresponding to the matching item does not exist in the CS, the interest packet corresponding to the matching item is forwarded according to the added FIB rule and the PIT table is updated.
  • the working process of all the nodes is basically the same as that of the first router. Therefore, the step 1111 can be the same as the step 1110, and will not be described in detail herein.
  • Step 1112 After receiving the interest packet corresponding to the matching item, the source end searches for the Repository component, generates a data packet of the interest packet corresponding to the matching match, and sends the generated data packet.
  • step 1112 can be the same as step 1104, and will not be described in detail herein.
  • Step 1113 After receiving the data packet, the new base station stores the data packet, updates the PIT table, and forwards the data packet to the UE.
  • the step 1113 can be the same as the step 1105, and will not be described in detail herein.
  • Step 1114 After receiving the data packet, the first router stores the data packet, updates the PIT table, and forwards the data packet to the user.
  • this step 1114 can be the same as step 1105, and will not be described in detail herein.
  • Step 115 The client receives the data packet. It can be understood that, in this embodiment, the data packet of the step 1115 is also a response to the interest packet corresponding to the matching item sent by the first router in step 1110.
  • the method in this embodiment may further include the step 1116: when the node does not send the interest packet according to the added FIB rule at the set time, the node deletes the added FIB rule.
  • the set time may be a set time after the interest packet is sent according to the increased FIB rule, such as any value between 10 seconds and 30 seconds.
  • the node sends the interest packet to the interface corresponding to the RP that satisfies the longest prefix matching rule, so as to ensure that the interest packet is sent to the source end.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the original base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name at the time of the communication initiation, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated, so the longest prefix according to the route Matching rules, the interest packets sent to the source end are sent according to the added FIB rules, and the interest packets sent by the user end are forwarded to the source end through the new base station, and the entire process does not need to set a special indirect server to forward the interest packets. System settings have been made. Moreover, the interest package can be sent to the source without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the routable prefix after the handover. There is no need to repackage the interest package, which is relatively short (about 0.1 second in the experimental environment), which can meet the real-time requirements.
  • the embodiment of the present invention provides a method for transmitting data based on CCN.
  • This embodiment can be performed in the same manner as the first embodiment.
  • Step 1101-1107 is performed first.
  • the difference between this embodiment and the embodiment 11 is that, in this embodiment, The first SHI is sent by the source when the handover is about to occur.
  • the method further includes:
  • Step 1201 When the source switching is about to occur, the source construct constructs and sends a first SHI, where the first SHI includes the content name and sequence number in the RP/first SHI identifier/SRP/LRI of the new base station.
  • the source may switch due to changes in the mobile or network environment.
  • the first SHI is constructed according to the RP, the source name, and the LRI of the serving base station when the source is initiated.
  • the serving base station at the source end when the communication is initiated is the original base station.
  • the RP of the new base station is used to instruct the node (router or base station) to transmit the first SHI to the new base station.
  • the first SHI identifier is used to indicate that the router or the destination base station that receives the first SHI adds FIB rules according to the SRP (see step 1202 for details).
  • the SRP is the name of the serving base station (original base station) / source name when the source initiates communication. When the communication is initiated, when the UE sends the interest packet for the first time, based on the CCN-based issuance mechanism, the UE can know the serving base station at the source end.
  • the format of the first SHI may be as follows: ccnx: / RP of the new base station / first SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the first SHI use Is the ccnx protocol.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • Step 1202 The original base station adds a FIB rule according to the SRP, and searches for a match in the PIT.
  • the added FIB rule includes a corresponding relationship between the SRP in the first SHI and the interface that the node transmits data to the source after switching at the source end.
  • the match is the interest package whose content name is the same as the content name in the LRI, and the sequence number is greater than or equal to the serial number in the LRI.
  • the new base station sends the first SHI. Since the interest packet includes the serving base station (original base station) name/source name/content name at the time of originating the communication, the forwarding path of the interest packet should be the first router, the original base station, and the source end, and therefore, the original base station exists. Match.
  • the interface corresponding to the SRP in the first SHI may be an interface in a static range, and the IP address of the interface is transmitted to the neighboring node of the source after switching between the source and the source. correspond.
  • the interface corresponding to the RP of the node is an interface in a static range.
  • the interface corresponding to the SRP in the first SHI may be
  • the interface in the dynamic range is considered, and the interface corresponds to the IP address of the adjacent node that transmits data to the source after switching from the source.
  • adding FIB rules may include:
  • the interface within the set dynamic range select a dynamic interface, and establish a correspondence between the selected dynamic interface and the IP address of the adjacent node transmitting the data to the source end after the source switching; establishing the selected dynamic interface and SRP Correspondence to increase FIB rules, select dynamic interfaces and SRP - corresponding settings. Since the interface in the dynamic range has a one-to-one relationship with the SRP, the interfaces in the dynamic range can be increased or decreased at will. When the corresponding relationship is not used for a period of time (that is, the interest packet is sent according to the added FIB rule), the corresponding relationship may be deleted to prevent the FIB rule from growing indefinitely due to frequent switching of the source end, thereby saving network resources.
  • the interface in the static range and the interface in the dynamic range can be numbered differently. According to the scope of the interface number, the interface is determined to be an interface in the static range or an interface in the dynamic range.
  • the matching match may be as follows: First, the sequence number in the LRI is incremented by 1, and then the content name in the LRI and the serial number after the addition are compared with the items in the PIT, if the content name and serial number are found. If the items are the same, the item is judged as a match, and the sequence number is incremented by 1, and then the content name in the LRI and the number after the addition of 1 (equivalent to 2 in the LRI) are added to the PIT. The items are compared, and the loop is repeated until no item with the same content name and serial number is found.
  • Step 1203 The first router adds a FIB rule according to the SRP, and searches for a match in the PIT.
  • the working process of all the nodes is the same. Therefore, the step 1203 can be the same as the step 1202, and will not be described in detail herein.
  • Step 1204 The new base station sends an AOS message according to the first SHI, after the source end handover is completed, and the AOS message includes the RP/SHI ACK of the original base station.
  • the RP of the original base station is used to instruct the node to send the first SHI to the original base station.
  • the SHI ACK is used to indicate the router or the original base station that receives the AOS message, and the source end completes the handover, and may send the interest packet corresponding to the matching item to the source end (see step 1205 and step 1206 for details).
  • the format of AOS can be as follows: ccnx: / RP/AOS ACK of the original base station, where ccnx is used to indicate that the first SHI uses the ccnx protocol.
  • Step 1205 The first router sends a match according to the added FIB rule according to the AOS message. Corresponding interest package.
  • the routers other than the first router function to forward the AOS, that is, receive the AOS message and send the AOS message.
  • step 1205 when there is no aggregation point routed to the user between the original base station and the new base station, the execution entity of step 1205 is the original base station.
  • Step 1206 After receiving the interest packet corresponding to the matching item, the new base station searches for the CS, and when the CS does not have the content corresponding to the content name, the interest packet corresponding to the matching item is forwarded according to the added FIB rule and updated.
  • the new base station When the content corresponding to the content name exists, the new base station encapsulates the content corresponding to the content name into a data packet, and sends the content to the user end to respond to the interest packet.
  • the new base station since the new base station receives the interest packet including the content name for the first time, the inner valley corresponding to the content name is not stored in the CS.
  • the working process of all the nodes is the same. Therefore, the step 1206 can be the same as the step 1102, and will not be described in detail herein.
  • Step 1207 After receiving the interest packet corresponding to the matching item, the source end searches for the Repository component, generates a data packet of the interest packet corresponding to the matching match, and sends the data packet.
  • step 1207 can be the same as step 1104, and will not be described in detail herein.
  • Step 1208 After receiving the data packet, the new base station stores the data packet, updates the PIT table, and forwards the data packet to the UE.
  • the working process of all the nodes is the same. Therefore, the step 1208 can be the same as the step 1105, and will not be described in detail herein.
  • Step 1209 After receiving the data packet, the first router stores the data packet, updates the PIT table, and forwards the data packet to the user.
  • the working process of all the nodes is the same. Therefore, the step 1209 can be the same as the step 1105, and will not be described in detail herein.
  • Step 1210 The client receives the data packet.
  • step 1210 can be the same as step 1107, and will not be described in detail herein.
  • the data packet of step 1210 is a response to the interest packet corresponding to the matching item sent by the first router in step 1205.
  • the method in this embodiment may further include the step 1211: when the node does not send the interest packet according to the added FIB rule at the set time, the node deletes the added FIB rule.
  • the step 1211 can be the same as the step 1116, and will not be described in detail herein.
  • the node sends the interest packet to the interface corresponding to the RP that satisfies the longest prefix matching rule, so as to ensure that the interest packet is sent to the source end.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the original base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name at the time of the communication initiation, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated, so the longest prefix according to the route Matching rules, the interest packets sent to the source end are sent according to the added FIB rules, and the interest packets sent by the user end are forwarded to the source end through the new base station, and the entire process does not need to set a special indirect server to forward the interest packets. System settings have been made. Moreover, the interest package can be sent to the source without repackaging, which improves communication efficiency.
  • the FIB rule is directly added according to the SRP in the first SHI, so that the interest packet sent to the source end is sent according to the added FIB rule, and the source end does not need to wait for the source end to send the routable prefix after the handover. There is no need to repackage the interest package, which is relatively short (about 0.1 second in the experimental environment), which can meet the real-time requirements.
  • the embodiment of the present invention provides a CCN-based data transmission method.
  • This embodiment can be performed in the same manner as the embodiment 12, and the first embodiment is different from the embodiment 12 in that the embodiment is different from the embodiment 12.
  • the serving base station applied to the source end before the handover can learn the network of the serving base station (such as the terminal detection report) after the handover, such as the 3GPP network.
  • the source end is constructed and sent when the handover is about to occur.
  • the second SHI, the first SHI is constructed and transmitted by the original base station according to the second SHI. Referring to FIG. 14, after performing steps 1101-1107, the method further includes:
  • Step 1301 The source switching is about to occur, the source constructs and sends a second SHI, and the second SHI includes the content name and sequence number in the original base station RP/second SHI identifier/SRP/LRI.
  • the source may switch due to changes in the mobile or network environment.
  • the second SHI is constructed according to the RP, the source name, and the LRI of the serving base station when the source initiates the communication.
  • the source end is served at the time of communication initiation.
  • the base station is the original base station.
  • the RP of the original base station is used to instruct the source to send the second SHI to the new base station.
  • the second SHI flag is used to instruct the original base station to construct and transmit the first SHI according to the content name and sequence number in the SRP and LRI in the second SHI (see step 1302 for details).
  • the SRP is the service base (original base station) name/source name of the source when the communication is initiated.
  • the UE sends the interest packet for the first time, based on the CCN-based issuance mechanism, the UE can know the serving base station at the source end.
  • the format of the second SHI may be as follows: ccnx: / RP of the original base station / second SHI identifier / content name in the SRP / LRI / serial number in the LRI, where ccnx is used to indicate the second SHI use Is the ccnx protocol.
  • base station name and the source end name included in the SHI may also be replaced by the base station identifier and the source end identifier, which are not limited in this embodiment of the present invention.
  • Step 1302 The original base station constructs and sends a first SHI according to the second SHI, where the first SHI includes the RP/first SHI identifier/SRP/LRL of the new base station.
  • the RP of the new base station is used to instruct the node (router or base station) to send the first SHI to the new base station.
  • the first SHI identifier is used to indicate that the router or the destination base station increases the FIB rule according to the SRP (see step 1203 for details).
  • the source terminal since the original base station can obtain the RP of the new base station through the terminal measurement report, the source terminal does not need to report the new base station RP to the original base station, so the source terminal does not need to develop a module that specifically records the new base station RP, and the development amount is small, and the development is reduced. cost.
  • Step 1303 The first router adds a FIB rule according to the SRP, and searches for a match in the PIT.
  • the added FIB rule includes a corresponding relationship between the SRP in the first SHI and the interface that the node transmits data to the source after switching at the source end.
  • the match is the interest package whose content name is the same as the content name in the LRI, and the sequence number is greater than or equal to the serial number in the LRI.
  • the first router only sends the first SHI. Since the interest packet includes the serving base station (original base station) name/source name/content name at the time of originating the communication, the forwarding path of the interest packet should be the first router, the original base station, and the source end, and therefore, the first router There is a match.
  • step 1303 can be the same as step 1203, and will not be described in detail herein.
  • Step 1304 The new base station sends an AOS message according to the first SHI, after the source end handover is completed, and the AOS message includes the RP/SHI ACK of the original base station.
  • the RP of the original base station is used to instruct the node to send the first SHI to the original base station.
  • the SHI ACK is used to indicate the router or the original base station that receives the AOS message, and the source end completes the handover, and may send the interest packet corresponding to the matching item to the source end (see step 1305 and step 1306 for details).
  • the format of AOS can be as follows: ccnx: / RP/AOS ACK of the original base station, where ccnx is used to indicate that the first SHI uses the ccnx protocol.
  • Step 1305 The first router sends the interest packet corresponding to the matching according to the added FIB rule according to the AOS message.
  • the routers other than the first router function to forward the AOS, that is, receive the AOS message and send the AOS message.
  • step 1303 and step 1305 when there is no aggregation point routed to the user between the original base station and the new base station, the execution body of step 1303 and step 1305 is the original base station.
  • Step 1306 After receiving the interest packet corresponding to the matching item, the new base station searches for the CS. When the content of the content name does not exist in the CS, the interest packet corresponding to the matching item is forwarded according to the added FIB rule and the PIT table is updated.
  • the new base station When the content corresponding to the content name exists, the new base station encapsulates the content corresponding to the content name into a data packet, and sends the content to the user end to respond to the interest packet.
  • the new base station since the new base station receives the interest packet including the content name for the first time, the inner valley corresponding to the content name is not stored in the CS.
  • the working process of all the nodes is the same. Therefore, the step 1306 can be the same as the step 1102, and will not be described in detail herein.
  • Step 1307 After receiving the interest packet corresponding to the matching item, the source end searches for the Repository component, generates a data packet of the interest packet corresponding to the matching match, and sends the data packet.
  • step 1307 can be the same as step 1104, and will not be described in detail herein.
  • Step 1308 After receiving the data packet, the new base station stores the data packet, updates the PIT table, and forwards the data packet to the UE.
  • the working process of all the nodes is the same. Therefore, the step 1308 can be the same as the step 1105, and will not be described in detail herein.
  • Step 1309 After receiving the data packet, the first router stores the data packet, updates the PIT table, and forwards the data packet to the user.
  • Step 1309 The client receives the data packet.
  • step 1310 can be the same as step 1107, and will not be described in detail herein.
  • the data packet of step 1310 is a response to the interest packet corresponding to the matching item sent by the first router in step 1305.
  • the method in this embodiment may further include the step 1311: when the node does not send the interest packet according to the added FIB rule at the set time, the node deletes the added FIB rule.
  • step 1311 can be the same as step 1116, and will not be described in detail herein.
  • the node sends the interest packet to the interface corresponding to the RP that satisfies the longest prefix matching rule, so as to ensure that the interest packet is sent to the source end.
  • the embodiment of the present invention receives the first SHI, where the first SHI includes the RP/first SHI identifier/SRP of the original base station, and the SRP is the serving base station name/source name of the source when the communication is initiated, and adds the FIB rule according to the SRP.
  • the interest packet includes the serving base station name/source name/content name at the time of the communication initiation, and the SRP in the previous FIB rule is the serving base station name of the source when the communication is initiated, so the longest prefix according to the route Matching rules, the interest packets sent to the source end are sent according to the added FIB rules, and the interest packets sent by the user end are forwarded to the source end through the new base station, and the entire process does not need to set a special indirect server to forward the interest packets. System settings have been made. Moreover, the interest package can be sent to the source end without repackaging, which improves communication efficiency.
  • the data transmission device based on the content center network provided by the foregoing embodiment only uses the division of the foregoing functional modules when transmitting data. In actual applications, the foregoing functions may be allocated differently according to requirements.
  • the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the content center network-based data transmission method provided by the foregoing embodiment is the same as the content center network-based data transmission device embodiment.
  • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

 本发明实施例提供了一种基于内容中心网络的数据传输装置和方法,涉及通信领域,所述方法包括:接收第一源端切换指示,所述第一源端切换指示包括目的基站的可路由前缀/第一源端切换指示标识/源端可路由前缀,所述源端可路由前缀包括所述源端在通信发起时的服务基站名称/所述源端名称;根据所述源端可路由前缀,增加转发信息库规则,增加的所述转发信息库规则包括所述源端可路由前缀和在所述源端切换后传输数据给所述源端的接口之间的对应关系。本发明通过实现了通过源端在切换后的服务基站将用户端发送的兴趣包转发给源端,整个过程不需要设置专门的间接服务器对兴趣包进行转发,简化了系统设置。而且通信效率高,耗时短,可以满足实时性要求。

Description

一种基于内容中心网络的数据传输装置、 方法及通信系统 技术领域
本发明涉及通信领域, 特别涉及一种基于内容中心网络的数据传输装置、 方法及通信系统。 背景技术
内容中心网络 ( Content Centric Network, 筒称 CCN )是当前未来互联网 体系结构研究的重要成果之一。 在 CCN中, 存在两种类型的数据包: 兴趣包 ( Interest Packet )和数据包( Date Packet )。 用户端通过发送兴趣包请求内容, 若 CCN中的其他任意节点收到该兴趣包并且其上保存有对应的内容, 则可以 发送数据包对该兴趣包作出响应。
目前, 越来越多的源端(提供内容源)具有可移动性的特性, 随着网络位 置和环境的变化, 源端会在不同的基站之间切换。 当源端发生切换时, 现有技 术通常采用间接服务器( Indirection Server ) 来保证正常通信, 具体过程如下: 用户端将特定格式的兴趣包发送给间接服务器, 该特定格式的兴趣包包括间接 服务器名称 (Indirection Server Name ) /源端名称 (Source Name ) /内容名称 ( Content Name ); 按照常规 CCN兴趣包流程, 该特定格式的兴趣包会被转发 到间接服务器。 间接服务器接收该兴趣包后将其緩存, 并将其封装成新兴趣包 后进行转发,新兴趣包包括源端可路由前缀( Source Routable Prefix,筒称 SRP ) /内容名称, 新兴趣包会被转发到源端; 源端接收新兴趣包并查找内容緩存 ( Content Store, 筒称 CS ), 生成发送给间接服务器的数据包; 间接服务器将 数据包与緩存的兴趣包进行匹配, 当匹配成功时, 将数据包发送给用户端。
当源端要从当前的服务基站切换到新的服务基站时,会向间接服务器发送 切换通知, 并在切换完成后告知间接服务器源端的新的可路由前缀(Routable Prefix, 筒称 RP ); 间接服务器收到源端发送的切换通知后会将收到的发往源 端的兴趣包仅作为緩存, 直到收到源端的新的 RP之后, 间接服务器会使用源 端新的 RP将緩存的兴趣包封装成新兴趣包后通过源端新的服务基站发送给源 端。
1 在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 现有技术需要单独设置一个间接服务器用于转发兴趣包, 增加了系统的复 杂度。 而且间接服务器需要对用户端发送的每一个兴趣包进行重新封装, 才能 发送到源端, 通信效率很低。 另外, 间接服务器在接收到源端发送的切换通知 之后, 只能将用户端发送的兴趣包緩存, 直到接收到源端发送的源端新的 RP, 才能将緩存的兴趣包封装成新兴趣包发送给源端, 耗时较长, 不能满足实时性 要求。 发明内容
为了解决现有技术通信效率低、 不能满足实时性要求的问题, 本发明实施 例提供了一种基于内容中心网络的数据传输装置、 方法及通信系统。 所述技术 方案如下:
第一方面, 本发明实施例提供了一种基于内容中心网络的数据传输装置, 所述装置包括:
接收模块, 用于接收第一源端切换指示, 所述第一源端切换指示包括目的 基站的可路由前缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由 前缀为所述源端在通信发起时的服务基站名称 /所述源端名称,所述目的基站为 所述源端在切换前的服务基站或所述源端在切换后的服务基站;
规则增加模块, 用于根据所述源端可路由前缀, 增加转发信息库规则, 增 加的所述转发信息库规则包括所述源端可路由前缀和在所述源端切换后传输 数据给所述源端的接口之间的对应关系。
在第一种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换完成时发送的时, 所述目的基站为所述源端在切换前的服务基站, 在所述源 端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示上一跳节点 的互联网协议 IP地址对应的接口; 或者,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
在第二种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换前的服务基站发送的时, 所述目的基站为所述源端在切换后的服务基站, 在 所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示下一 跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示是根据所述源端 在切换即将发生时发送的第二源端切换指示构造的, 所述第二源端切换指示包 括所述源端在通信发起时的服务基站名称 /第二源端切换指示标识 /所述源端可 路由前缀。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号;
所述装置还包括:
查找模块, 用于在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容 名称与所述最后一个兴趣包中的内容名称相同,序号大于或等于所述最后一个 兴趣包中的序号的兴趣包;
发送模块, 用于当存在所述匹配项时, 按照增加的所述转发信息库规则发 送所述匹配项对应的兴趣包。
可选地, 所述发送模块用于,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 或 者, 当所述第一源端切换指示是由所述源端在切换前的服务基站发送的时, 在 接收到所述源端在切换后的服务基站发送的源端切换指示确认消息之后,按照 增加的所述转发信息库规则发送所述匹配项对应的兴趣包, 所述源端切换指示 确认消息用于表示所述源端完成切换。
可选地, 所述发送模块还用于,
当不存在所述匹配项时,在接收到所述源端在切换后的服务基站发送的源 端切换指示确认消息之后, 向所述源端在切换前的服务基站发送所述源端切换 指示确认消息, 所述源端切换指示确认消息用于表示所述源端完成切换。
在第四种可能的实现方式中, 所述规则增加模块包括:
接口选择单元, 用于在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接口和在源端切换后传输数据给源端的相邻节点的 IP地址 的对应关系;
关系建立单元, 用于建立选择的动态接口与所述源端可路由前缀的对应关 系, 以增加转发信息库规则, 所述选择的动态接口与所述源端可路由前缀—— 对应设置。
可选地, 所述装置还包括:
规则删除模块, 用于当在设定时间内没有按照增加的所述转发信息库规则 发送兴趣包时, 删除增加的所述转发信息库规则。
第二方面, 本发明实施例提供了一种基于内容中心网络的数据传输装置, 所述装置包括中央处理器和存储器, 以及一个或者一个以上的程序, 其中一个 或者一个以上程序存储于所述存储器中, 且经配置以由一个或者一个以上所述 中央处理器执行, 所述一个或者一个以上程序包含用于进行以下操作的指令: 接收第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端 在通信发起时的服务基站名称 /所述源端名称,所述目的基站为所述源端在切换 前的服务基站或所述源端在切换后的服务基站;
根据所述源端可路由前缀, 增加转发信息库规则, 增加的所述转发信息库 规则包括所述源端可路由前缀和在所述源端切换后传输数据给所述源端的接 口之间的对应关系。
在第一种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换完成时发送的时, 所述目的基站为所述源端在切换前的服务基站, 在所述源 端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示上一跳节点 的互联网协议 IP地址对应的接口; 或者,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
在第二种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换前的服务基站发送的时, 所述目的基站为所述源端在切换后的服务基站, 在 所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示下一 跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示是根据所述源端 在切换即将发生时发送的第二源端切换指示构造的, 所述第二源端切换指示包 括所述源端在通信发起时的服务基站名称 /第二源端切换指示标识 /所述源端可 路由前缀。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号; 所述一个或者一个以上程 序还包含用于进行以下操作的指令:
在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后 一个兴趣包中的内容名称相同,序号大于或等于所述最后一个兴趣包中的序号 的兴趣包;
当存在所述匹配项时,按照增加的所述转发信息库规则发送所述匹配项对 应的兴趣包。
可选地, 当所述第一源端切换指示是由所述源端在切换完成时发送的时, 或者, 当所述第一源端切换指示是由所述源端在切换前的服务基站发送的时, 所述一个或者一个以上程序包含用于进行以下操作的指令:
接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
在接收到所述源端切换指示确认消息之后,按照增加的所述转发信息库规 则发送所述匹配项对应的兴趣包。
可选地, 当不存在所述匹配项时, 所述一个或者一个以上程序还包含用于 进行以下操作的指令:
接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
向所述源端在切换前的服务基站发送所述源端切换指示确认消息。
在第四种可能的实现方式中, 所述一个或者一个以上程序包含用于进行以 下操作的指令:
在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接 口和在源端切换后传输数据给源端的相邻节点的 IP地址的对应关系;
建立选择的动态接口与所述源端可路由前缀的对应关系, 以增加转发信息 库规则, 所述选择的动态接口与所述源端可路由前缀——对应设置。
可选地, 所述一个或者一个以上程序还包含用于进行以下操作的指令: 当在设定时间内没有按照增加的所述转发信息库规则发送兴趣包时, 删除 增加的所述转发信息库规则。
第三方面, 本发明实施例提供了一种基于内容中心网络的数据传输装置, 所述装置包括:
指示构造模块, 用于构造第一源端切换指示, 所述第一源端切换指示包括 目的基站的可路由前缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可 路由前缀为所述源端在通信发起时的服务基站名称 /所述源端名称,所述第一源 端切换指示标识用于指示收到所述第一源端切换指示的节点根据所述源端可 路由前缀, 增加转发信息库规则, 增加的所述转发信息库规则包括所述源端可 路由前缀和在所述源端切换后传输数据给所述源端的接口之间的对应关系, 所 述目的基站为所述源端在切换前的服务基站或所述源端在切换后的服务基站; 发送模块, 用于发送所述第一源端切换指示。
在第一种可能的实现方式中, 所述第一源端切换指示是由所述源端在切换 完成时构造和发送的, 所述目的基站为所述源端在切换前的服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造和发送的, 所述目 的基站为所述源端在切换后的服务基站。
在第二种可能的实现方式中, 所述装置还包括:
接收模块, 用于接收所述源端发送的第二源端切换指示, 所述第二源端切 换指示是由所述源端在切换即将发生时发送的, 所述第二源端切换指示包括所 述源端在通信发起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由 前缀;
所述指示构造模块用于,根据所述第二源端切换指示构造所述第一源端切 换指示。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号, 所述第一源端切换指示标 识还用于, 指示收到所述第一源端切换指示的节点在未决兴趣表中查找是否存 在匹配项, 所述匹配项为内容名称与所述最后一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的兴趣包, 当存在所述匹配项 时, 按照增加的所述转发信息库规则发送所述匹配项对应的兴趣包。
第四方面, 本发明实施例提供了一种基于内容中心网络的数据传输装置, 所述装置包括中央处理器和存储器, 以及一个或者一个以上的程序, 其中一个 或者一个以上程序存储于所述存储器中, 且经配置以由一个或者一个以上所述 中央处理器执行, 所述一个或者一个以上程序包含用于进行以下操作的指令: 构造第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端 在通信发起时的服务基站名称 /所述源端名称,所述第一源端切换指示标识用于 指示收到所述第一源端切换指示的节点根据所述源端可路由前缀,增加转发信 息库规则, 增加的所述转发信息库规则包括所述源端可路由前缀和在所述源端 切换后传输数据给所述源端的接口之间的对应关系, 所述目的基站为所述源端 在切换前的服务基站或所述源端在切换后的服务基站; 发送所述第一源端切换指示。
在第一种可能的实现方式中, 所述第一源端切换指示是由所述源端在切换 完成时构造和发送的, 所述目的基站为所述源端在切换前的服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造和发送的, 所述目 的基站为所述源端在切换后的服务基站。
在第二种可能的实现方式中, 所述一个或者一个以上程序包含用于进行以 下操作的指令:
接收所述源端发送的第二源端切换指示, 所述第二源端切换指示是由所述 源端在切换即将发生时发送的, 所述第二源端切换指示包括所述源端在通信发 起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由前缀;
根据所述第二源端切换指示构造所述第一源端切换指示。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号, 所述第一源端切换指示标 识还用于, 指示收到所述第一源端切换指示的节点在未决兴趣表中查找是否存 在匹配项, 所述匹配项为内容名称与所述最后一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的兴趣包, 当存在所述匹配项 时, 按照增加的所述转发信息库规则发送所述匹配项对应的兴趣包。
第五方面,本发明实施例提供了一种通信系统,所述系统包括源端、基站、 以及路由器,
所述基站和所述路由器用于,
接收第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端 在通信发起时的服务基站名称 /所述源端名称,所述目的基站为所述源端在切换 前的服务基站或所述源端在切换后的服务基站;
根据所述源端可路由前缀, 增加转发信息库规则, 增加的所述转发信息库 规则包括所述源端可路由前缀和在所述源端切换后传输数据给所述源端的接 口之间的对应关系。
在第一种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换完成时发送的时, 所述目的基站为所述源端在切换前的服务基站, 在所述源 端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示上一跳节点 的互联网协议 IP地址对应的接口; 或者, 当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
在第二种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换前的服务基站发送的时, 所述目的基站为所述源端在切换后的服务基站, 在 所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示下一 跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示是根据所述源端 在切换即将发生时发送的第二源端切换指示构造的, 所述第二源端切换指示包 括所述源端在通信发起时的服务基站名称 /第二源端切换指示标识 /所述源端可 路由前缀。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号;
所述基站和所述路由器还用于,
在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后 一个兴趣包中的内容名称相同,序号大于或等于所述最后一个兴趣包中的序号 的兴趣包;
当存在所述匹配项时,按照增加的所述转发信息库规则发送所述匹配项对 应的兴趣包。
第六方面,本发明实施例提供了一种通信系统,所述系统包括源端、基站、 以及路由器,
所述源端或所述基站用于,
构造第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端 在通信发起时的服务基站名称 /所述源端名称,所述第一源端切换指示标识用于 指示收到所述第一源端切换指示的节点根据所述源端可路由前缀,增加转发信 息库规则, 增加的所述转发信息库规则包括所述源端可路由前缀和在所述源端 切换后传输数据给所述源端的接口之间的对应关系, 所述目的基站为所述源端 在切换前的服务基站或所述源端在切换后的服务基站;
发送所述第一源端切换指示。
在第一种可能的实现方式中, 所述第一源端切换指示是由所述源端在切换 完成时构造和发送的, 所述目的基站为所述源端在切换前的服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造和发送的, 所述目 的基站为所述源端在切换后的服务基站。
在第二种可能的实现方式中, 所述构造第一源端切换指示, 包括: 接收所述源端发送的第二源端切换指示, 所述第二源端切换指示是由所述 源端在切换即将发生时发送的, 所述第二源端切换指示包括所述源端在通信发 起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由前缀;
根据所述第二源端切换指示构造所述第一源端切换指示。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号, 所述第一源端切换指示标 识还用于, 指示收到所述第一源端切换指示的节点在未决兴趣表中查找是否存 在匹配项, 所述匹配项为内容名称与所述最后一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的兴趣包, 当存在所述匹配项 时, 按照增加的所述转发信息库规则发送所述匹配项对应的兴趣包。
第七方面, 本发明实施例提供了一种基于内容中心网络的数据传输方法, 所述方法包括:
接收第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端 在通信发起时的服务基站名称 /所述源端名称,所述目的基站为所述源端在切换 前的服务基站或所述源端在切换后的服务基站;
根据所述源端可路由前缀, 增加转发信息库规则, 增加的所述转发信息库 规则包括所述源端可路由前缀和在所述源端切换后传输数据给所述源端的接 口之间的对应关系。
在第一种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换完成时发送的时, 所述目的基站为所述源端在切换前的服务基站, 在所述源 端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示上一跳节点 的互联网协议 IP地址对应的接口; 或者,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
在第二种可能的实现方式中, 当所述第一源端切换指示是由所述源端在切 换前的服务基站发送的时, 所述目的基站为所述源端在切换后的服务基站, 在 所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切换指示下一 跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示是根据所述源端 在切换即将发生时发送的第二源端切换指示构造的, 所述第二源端切换指示包 括所述源端在通信发起时的服务基站名称 /第二源端切换指示标识 /所述源端可 路由前缀。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号;
所述方法还包括:
在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后 一个兴趣包中的内容名称相同,序号大于或等于所述最后一个兴趣包中的序号 的兴趣包;
当存在所述匹配项时,按照增加的所述转发信息库规则发送所述匹配项对 应的兴趣包。
可选地, 当所述第一源端切换指示是由所述源端在切换即将发生时发送的 时, 或者, 当所述第一源端切换指示是由所述源端在切换前的服务基站发送的 时,所述按照增加的所述转发信息库规则发送所述匹配项对应的兴趣包,包括: 接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
在接收到所述源端切换指示确认消息之后,按照增加的所述转发信息库规 则发送所述匹配项对应的兴趣包。
可选地, 当不存在所述匹配项时, 所述方法还包括:
接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
向所述源端在切换前的服务基站发送所述源端切换指示确认消息。
在第四种可能的实现方式中, 所述根据所述源端可路由前缀, 增加转发信 息库规则, 包括:
在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接 口和在源端切换后传输数据给源端的相邻节点的 IP地址的对应关系;
建立选择的动态接口与所述源端可路由前缀的对应关系, 以增加转发信息 库规则, 所述选择的动态接口与所述源端可路由前缀——对应设置。
可选地, 所述方法还包括: 当在设定时间内没有按照增加的所述转发信息库规则发送兴趣包时, 删除 增加的所述转发信息库规则。
第八方面, 本发明实施例提供了一种基于内容中心网络的数据传输方法, 所述方法包括:
构造第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端 在通信发起时的服务基站名称 /所述源端名称,所述第一源端切换指示标识用于 指示收到所述第一源端切换指示的节点根据所述源端可路由前缀,增加转发信 息库规则, 增加的所述转发信息库规则包括所述源端可路由前缀和在所述源端 切换后传输数据给所述源端的接口之间的对应关系, 所述目的基站为所述源端 在切换前的服务基站或所述源端在切换后的服务基站;
发送所述第一源端切换指示。
在第一种可能的实现方式中, 所述第一源端切换指示是由所述源端在切换 完成时构造和发送的, 所述目的基站为所述源端在切换前的服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造和发送的, 所述目 的基站为所述源端在切换后的服务基站。
在第二种可能的实现方式中, 所述构造第一源端切换指示, 包括: 接收所述源端发送的第二源端切换指示, 所述第二源端切换指示是由所述 源端在切换即将发生时发送的, 所述第二源端切换指示包括所述源端在通信发 起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由前缀;
根据所述第二源端切换指示构造所述第一源端切换指示。
在第三种可能的实现方式中, 所述第一源端切换指示还包括所述源端在切 换前接收到的最后一个兴趣包中的内容名称和序号, 所述第一源端切换指示标 识还用于, 指示收到所述第一源端切换指示的节点在未决兴趣表中查找是否存 在匹配项, 所述匹配项为内容名称与所述最后一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的兴趣包, 当存在所述匹配项 时, 按照增加的所述转发信息库规则发送所述匹配项对应的兴趣包。
本发明实施例提供的技术方案的有益效果是:
通过接收第一 SHI,第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP, SRP 为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 /内容名称, 增加 之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名称, 因此根据路 由的最长前缀匹配规则, 发送给源端的兴趣包会按照增加的 FIB规则发送, 实 现了通过源端在切换后的服务基站将用户端发送的兴趣包转发给源端, 整个过 程不需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统设置。 而且兴 趣包不需要进行重新封装即可发给源端, 提高了通信效率。 另外, 在源端切换 时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按 照增加的 FIB规则发送, 不需要等待源端发送其切换后的可路由前缀, 也不需 要将兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可以满足实时 性要求。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的基于 CCN的数据传输方法的应用场景图; 图 2是本发明实施例 1提供的一种基于 CCN的数据传输装置的结构示意 图;
图 3是本发明实施例 2提供的一种基于 CCN的数据传输装置的结构示意 图;
图 4是本发明实施例 3提供的一种基于 CCN的数据传输装置的硬件结构 示意图;
图 5是本发明实施例 4提供的一种基于 CCN的数据传输装置的结构示意 图;
图 6是本发明实施例 5提供的一种基于 CCN的数据传输装置的结构示意 图;
图 7是本发明实施例 6提供的一种基于 CCN的数据传输装置的硬件结构 示意图;
图 8是本发明实施例 7提供的一种通信系统的结构示意图;
图 9是本发明实施例 8提供的一种通信系统的结构示意图;
图 10是本发明实施例 9提供的一种基于 CCN的数据传输方法的流程图; 图 11是本发明实施例 10提供的一种基于 CCN的数据传输方法的流程图; 图 12是本发明实施例 11提供的一种基于 CCN的数据传输方法的流程交 互图;
图 13是本发明实施例 12提供的一种基于 CCN的数据传输方法的流程交 互图;
图 14是本发明实施例 13提供的一种基于 CCN的数据传输方法的流程交 互图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。
下面首先结合图 1筒单介绍一下本发明实施例提供的基于 CCN的数据传 输方法的应用场景。
在图 1中, 用以基站为圓心, 基站为终端提供服务的最长距离为半径的圓 形区域代表该基站的服务区, 即该基站可以为位于该圓形区域中的终端提供通 信服务。如第一区域 A和第二区域 B组成的圓形区域为第一基站 11的服务区, 第二区域 B和第三区域 C组成的圓形区域为第二基站 12的服务区, 第四区域 D所在的圓形区域为第三基站 13的服务区。 为保证终端一直处于可通信的状 态, 两个相邻基站的服务区的边缘区域可能会出现交叠, 如第二区域 B为第一 基站 11的服务区和第二基站 12的服务区的交叠区域。
容易知道, 移动终端通过服务基站接入 Internet (因特网) 30 (图 1 中用 橢圓形区域表示 Internet )进行通信。 移动终端包括源端和用户端, 用户端为 请求内容(即发送兴趣包)的终端, 源端为发布内容(即发送数据包)的终端。 Interne 30中包括若干相互连接的路由器 31。假设当前源端 21位于第一区域 A 中, 用户端 22位于第四区域 D中。 用户端 22向源端 21请求内容时, 用户端 22发送的兴趣包依次通过第三基站 13、 路由器 31、 第一基站 11传输到源端 21。 源端 21根据兴趣包生成数据包, 该数据包依次通过第一基站 11、 路由器 31、 第三基站 13传输到用户端 22。
通常移动终端在移动到服务基站的服务区的边缘区域时,会在基站之间进 行切换。 举例来说, 当源端 21从第一区域 A移动到第二区域 B时, 源端 21 从第一基站 1切换到第二基站 2。源端 21从第三区域 C移动到第二区域 B时, 源端 21从第二基站 2切换到第一基站 1 < 实施例 1
本发明实施例提供了一种基于 CCN的数据传输装置, 该装置可以设置在 节点上, 节点包括但不限于路由器和基站, 参见图 2, 该装置包括:
接收模块 101 , 用于接收第一源端切换指示 (Source Handoff Indication, 筒称 SHI ) , 第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP;
规则增加模块 102,用于根据 SRP,增加转发信息库( Forwarding Information Base, 筒称 FIB )规则。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根 据 SRP增加 FIB规则。 SRP为通信发起时的服务基站名称 /源端名称。 通信发 起时为用户端第一次发送兴趣包时, 基于 CCN的发布机制, 用户端可以知道 此时源端的服务基站。
增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给 源端的接口之间的对应关系。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站 (如通过终端检测报告) 的网络, 如第三代合作伙伴计划 (The 3rd Generation Partnership Project, 筒称 3GPP ) 网络, 第一 SHI是根据源端在切换 即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时的服务基 站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切换前的服 务基站根据第二 SHI中的 SRP构造第一 SHI。 在这种实现方式中, 第一 SHI 中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口 (face ) 的对应关系。 由于路由器和基站之间的连接关系通常是固定不变 的, 而终端 (源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站 名称)。 考虑到终端必须通过基站接入 CCN, 因此终端的 RP通常为终端的服 务基站名称 /终端名称。 由于终端的服务基站名称 (基站的 RP )是终端的服务 基站名称 /终端名称的前缀,根据路由的最长前缀匹配规则,向终端发送的包括 终端的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务 基站名称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称 (基站的 RP ) 路由到源端的服务基站, 源端的服务基站再根据 SRP (源端的服务基站名称 / 源端名称)将兴趣包转发给源端。 因此, 包括节点的 RP 而不包括终端的 RP 的 FIB规则可以将向终端发送的包路由到终端。
节点的接口与和因特网协议( Internet Protocol, 筒称 IP )地址之间具有对 应关系, 节点可以通过某个接口, 将数据发送给该接口对应的 IP地址所属的 节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP , 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。 在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过源端在切换后的服务基站将用户端发送的兴趣包转发给 源端, 整个过程不需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统 设置。 而且兴趣包不需要进行重新封装即可发给源端,提高了通信效率。另夕卜, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端 的兴趣包按照增加的 FIB规则发送,不需要等待源端发送其切换后的可路由前 缀, 也不需要将兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可 以满足实时性要求。 实施例 2
本发明实施例提供了一种基于 CCN的数据传输装置, 该装置可以设置在 节点上, 节点包括但不限于路由器和目的基站, 参见图 3 , 该装置包括:
接收模块 201 ,用于接收第一 SHI,第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP;
规则增加模块 202, 用于根据 SRP, 增加 FIB规则。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根 据 SRP增加 FIB规则。 SRP为通信发起时的服务基站名称 /源端名称。 通信发 起时为用户端第一次发送兴趣包时, 基于 CCN的发布机制, 用户端可以知道 此时源端的服务基站。
增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给 源端的接口之间的对应关系。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考 虑到终端必须通过基站接入 CCN,发送给终端的数据是先发送到终端的服务基 站, 然后由终端的服务基站转发给终端, 因此终端的 RP通常为终端的服务基 站名称 /终端名称。 由于终端的服务基站名称(基站的 RP )是终端的服务基站 名称 /终端名称的前缀,根据路由的最长前缀匹配规则, 向终端发送的包括终端 的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站 名称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称(基站的 RP )路由 到源端的服务基站, 源端的服务基站再根据 SRP (源端的服务基站名称 /源端名 称)将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB 规则可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。 在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
可以理解地, 该装置还可以包括: 发送模块 203 , 用于向目的基站发送第 一 SHI。
需要说明的是, CS、 FIB规则和未决兴趣表(Pending Interest Table, 筒称 PIT )是节点的重要组成部分。 节点包括路由器、 基站。
CS用于存储节点收到的数据包(即内容名称对应的内容)。 FIB规则包括 各个节点的 RP和该 FIB规则所属的节点的接口的对应关系。 PIT表用于记录 已经转发且没有得到回应的兴趣包、 以及接收该兴趣包的接口, 以将回应该兴 趣包的数据包转发给用户端。
由于路由器和基站之间的连接关系通常是固定不变的, 终端(源端和用户 端)具有移动性, 为了防止 FIB规则频繁发生变化, FIB规则一般只包括路由 器的 RP和基站的 RP, 即路由器名称和基站名称。考虑到终端必须通过基站接 入 CCN, 因此终端的 RP通常为终端的服务基站名称 /终端名称。 由于终端的服 务基站名称 (基站的 RP )是终端的服务基站名称 /终端名称的前缀, 根据路由 的最长前缀匹配规则, 向终端发送的包括终端的 RP (终端的服务基站名称 /终 端名称)的包, 如包括 SRP (源端的服务基站名称 /源端名称)的兴趣包, 可以 根据源端的服务基站名称 (基站的 RP )路由到源端的服务基站, 源端的服务 基站根据 SRP (源端的服务基站名称 /源端名称)将兴趣包转发给源端。 因此, 不包括终端的 RP的 FIB规则可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点的通过某个接口, 将数 据发送给该接口对应的 IP地址所属的节点。
具体地, 节点的工作过程如下:
当节点接收到兴趣包后, 节点首先查找 CS中是否存储有响应该兴趣包的 数据包(即内容名称对应的内容)。 当节点存储有响应该兴趣包的数据包时, 节点将响应该兴趣包的数据包发送给用户端, 并丟弃该兴趣包。
当节点没有存储响应该兴趣包的数据包时, 节点在 PIT表中查找是否存在 与该兴趣包中的内容名称相同的项。 当 PIT表中存在与该兴趣包中的内容名称 相同的项时, 节点在与该兴趣包中的内容名称相同的项中, 增加接收该兴趣包 的接口, 并丟弃该兴趣包。
当 PIT表中不存在与该兴趣包中的内容名称相同的项时, 将兴趣包中的源 端在通信发起时的服务基站名称 /源端名称 /内容名称, 与 FIB规则中的各个节 点的 RP进行最长匹配, 由于此时 FIB规则中的各个节点的 RP为路由器名称 或基站名称, 因此得到的最长匹配项为源端在通信发起时的服务基站名称。 在 本实施例中, 源端在通信发起时的服务基站为源端在切换前的服务基站。 节点 按照 FIB规则,将兴趣包从与源端在切换前的服务基站名称对应的接口转发出 去, 并将该兴趣包、 以及接收该兴趣包的接口记录在 PIT表中。 当 FIB规则中 没有匹配项时, 丟弃该兴趣包。
当节点接收到数据包后, 节点首先在查找 CS中是否存储有与该数据包的 内容名称相同的数据包。 当 CS中存储有与该数据包的内容名称相同的数据包 时, 节点将该数据包丟弃。
当 CS中没有存储与该数据包的内容名称相同的数据包时, 节点在 PIT表 中查找是否存在与该数据包匹配的兴趣包。 当 PIT表中存在与该数据包匹配的 兴趣包时, 节点从 PIT表中与该兴趣包对应的接口转发该数据包, 并将该数据 包存储在 CS中, 从 PIT表中删除与该数据包匹配的兴趣包。 当节点再接收到 内容名称相同的兴趣包时, 节点可以直接将 CS中的数据包发给用户端, 以响 应该兴趣包。 如果 PIT表中不存在与该数据包匹配的兴趣包时, 则丟弃该数据 包。 在本实施例的一种实现方式中,第一 SHI还可以包括源端在切换之前接收 到的最后一个兴趣包( Last Received Interest, 筒称 LRI )中的内容名称和序号。
需要说明的是, 在 CCN中, 通常一个内容对应的数据较大, 因此, 每个 内容对应的数据都被拆分成若干个数据块,每个内容的数据块之间用序号进行 标识。 一个兴趣包和一个数据包通常对应一个数据块。
当用户端第一次请求内容时, 兴趣包中的内容名称只包括用户输入用户端 的请求, 源端会根据该兴趣包告知用户端与用户请求的内容对应的所有数据块 的序号。用户端根据源端发送的数据块的序号发送包括请求内容和序号的兴趣 包, 以使源端发送包括该序号对应的数据块的数据包。
由于通常采用连续的数字作为一个内容的各个数据块的序号, 并且用户端 通常是对一个内容中的若干个连续的数据块进行请求, 因此用户端一般是依次 向源端发送内容名称相同且序号连续的兴趣包。根据 CCN中存在的窗口机制, 用户端在接收到源端发送的与某个序号对应的数据包之后,会向源端发送与在 该序号之后的若干序号对应的兴趣包, 此时发送的兴趣包的数量与窗口大小有 关。 例如, 用户端接收到序号为 50的数据包, 窗口大小为 5, 则用户端向源端 发送序号为 51-55的兴趣包。 如果此时源端进行切换, 那么源端将接收不到这 些兴趣包, 不可能对其作出响应, 这些兴趣包会保存在路由器和原基站的 PIT 表中。
在实际应用中, 第一 SHI 的格式可以如下: ccnx: /目的基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI 使用的是 ccnx协议。
在该种实现方式中, 该装置还可以包括:
查找模块 204, 用于在 PIT中查找是否存在匹配项, 匹配项为内容名称与 LRI中的内容名称相同, 序号大于或等于 LRI中的序号的兴趣包;
发送模块 203还用于, 当存在匹配项时, 按照增加的 FIB规则发送匹配项 对应的兴趣包。
在具体应用中, 查找模块 204可以首先将 LRI中的序号加 1 , 然后将 LRI 中的内容名称和加 1后的序号与 PIT中的项进行对比,如果找到了内容名称和 序号都相同的项, 则将该项判定为匹配项, 并且继续将序号加 1 , 然后将 LRI 中的内容名称和加 1后的序号(相当于在 LRI中的序号上加 2 )与 PIT中的项 进行对比, 如此循环, 直到没有找到内容名称和序号都相同的项为止。 在实际应用中, 当存在匹配项时, 可以将源端在进行切换时没有接收到的 兴趣包, 重新发给源端进行响应, 若目的基站为源端在切换前的服务基站, 则 发送模块 203不需要再向目的基站发送第一 SHI, 以节省网络的流量。
可选地, 发送模块 203可以用于,
当第一 SHI是由源端在切换即将发生时发送的时,或者, 当第一 SHI是由 源端在切换前的服务基站发送的时,在接收到源端在切换后的服务基站发送的 源端切换信息确认(Acknowledgement of SHI, 筒称 AOS ) 消息之后, 按照增 加的 FIB规则发送匹配项对应的兴趣包,该 AOS消息用于表示源端完成切换。
容易知道, 接收模块 201还用于, 接收 AOS消息。
在本实施例中, AOS信息可以包括源端在切换前的服务基站的 RP和 AOS 标识。 在实际应用中, AOS 的格式可以如下: ccnx: /源端在切换前的服务基 站的 RP/AOS标识。
可选地, 接收模块 201还可以用于, 当不存在匹配项时, 在接收到源端在 切换后的服务基站发送的 AOS 消息之后, 向源端在切换前的服务基站发送 AOS消息。
在本实施例的一种实现方式中, 与第一 SHI中的 SRP对应的接口, 可以 为静态范围内的接口,且该接口与在源端切换后传输数据给源端的相邻节点的 IP地址对应。
可以理解地, 与节点的 RP对应的接口为静态范围内的接口。 静态范围内 的接口与节点的 RP之间通常为一对多的关系。 静态范围内的接口只随着与节 点相邻的节点的改变而改变。 对于一个节点来说, 发送到不同节点的数据, 可 能需要与其连接的同一个节点转发, 因此在增加之前的 FIB规则中, 通常多个 节点的 RP和一个静态范围内的接口对应, 即静态范围内的接口与节点的 RP 之间是一对多的关系。
在本实施例的另一种实现方式中, 规则增加模块 202可以包括:
接口选择单元, 用于在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接口和在源端切换后传输数据给源端的相邻节点的 IP地址 的对应关系;
关系建立单元,用于建立选择的动态接口与 SRP之间的对应关系, 以增加 FIB规则, 选择的动态接口与 SRP——对应设置。
在该种实现方式中, 所述装置还可以包括: 规则删除模块 205, 用于当在设定时间内没有按照增加的 FIB规则发送兴 趣包时, 删除增加的 FIB规则。
在本实施例中,设定时间可以为设置的按照增加的 FIB规则发送兴趣包之 后的时间, 如 10秒至 30秒间的任一值。
在该种实现方式中, 由于动态范围内的接口与节点的 RP之间为一对一的 关系, 因此动态范围内的接口可以随意增减。 当一段时间没有使用该对应关系 (即按照增加的 FIB规则发送兴趣包)时, 可以将该对应关系删除, 防止由于 源端频繁切换导致 FIB规则无限增长, 节省网络资源。
需要说明的是, 在增加的 FIB规则删除之前, 源端又进行了切换, FIB规 则又增加了一个。 由于增加的 FIB规则中的 RP都是源端在通信发起时的服务 基站名称 /源端名称。因此可以与兴趣包进行最长匹配规则的 RP有两个,此时, 节点会同时向满足最长匹配规则的 RP对应的接口发送兴趣包, 从而确保兴趣 包发送到源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过源端在切换后的服务基站将用户端发送的兴趣包转发给 源端, 整个过程不需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统 设置。 而且兴趣包不需要进行重新封装即可发给源端,提高了通信效率。另夕卜, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端 的兴趣包按照增加的 FIB规则发送,不需要等待源端发送其切换后的可路由前 缀, 也不需要将兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可 以满足实时性要求。 实施例 3
本发明实施例提供了一种基于 CCN的数据传输装置, 该装置可以为设置 在节点上, 节点包括但不限于路由器或基站, 参见图 4, 该装置 1900可因配置 或性能不同而产生比较大的差异, 可以包括一个或一个以上 CPU ( central processing units, 中央处理器) 1922 (例如, 一个或一个以上处理器)和存储 器 1932,—个或一个以上存储应用程序 1942或数据 1944的存储介质 1930(例 如一个或一个以上海量存储设备)。 其中, 存储器 1932和存储介质 1930可以 是短暂存储或持久存储。 存储在存储介质 1930的程序可以包括一个或一个以 上模块(图示没标出), 每个模块可以包括对该装置中的一系列指令操作。 更 进一步地, 中央处理器 1922可以设置为与存储介质 1930通信,在该装置 1900 上执行存储介质 1930中的一系列指令操作。
该装置 1900还可以包括一个或一个以上电源 1926, —个或一个以上有线 或无线网络接口 1950, —个或一个以上输入输出接口 1958, —个或一个以上 键盘 1956, 和 /或, 一个或一个以上操作系统 1941 , 例如 Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM等等。
该装置 1900包括 CPU和存储器, 以及一个或者一个以上的程序, 其中一 个或者一个以上程序存储于存储器中, 且经配置以由一个或者一个以上 CPU 执行, 一个或者一个以上程序包含用于进行以下操作的指令:
接收第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP, SRP为 源端在通信发起时的服务基站名称 /源端名称;
根据 SRP, 增加 FIB规则, 增加的 FIB规则包括第一 SHI中的 SRP和在 源端切换后传输数据给源端的接口之间的对应关系。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根 据 SRP增加 FIB规则。 通信发起时为用户端第一次发送兴趣包时, 基于的发 布机制, 用户端可以知道此时源端的服务基站。
增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给 源端的接口之间的对应关系。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考 虑到终端必须通过基站接入 CCN,发送给终端的数据是先发送到终端的服务基 站, 然后由终端的服务基站转发给终端, 因此终端的 RP通常为终端的服务基 站名称 /终端名称。 由于终端的服务基站名称(基站的 RP )是终端的服务基站 名称 /终端名称的前缀,根据路由的最长前缀匹配规则, 向终端发送的包括终端 的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站 名称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称(基站的 RP )路由 到源端的服务基站, 源端的服务基站再根据 SRP (源端的服务基站名称 /源端名 称)将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB 规则可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
可以理解地, 一个或者一个以上程序还可以包含用于进行以下操作的指 令: 向目的基站发送第一 SHI。
在本实施例的一种实现方式中,第一 SHI还可以包括源端在切换之前接收 到的 LRI中的内容名称和序号。
需要说明的是, 在 CCN中, 通常一个内容对应的数据较大, 因此, 每个 内容对应的数据都被拆分成若干个数据块,每个内容的数据块之间用序号进行 标识。 一个兴趣包和一个数据包通常对应一个数据块。
当用户端第一次请求内容时, 兴趣包中的内容名称只包括用户输入用户端 的请求, 源端会根据该兴趣包告知用户端与用户请求的内容对应的所有数据块 的序号。用户端根据源端发送的数据块的序号发送包括请求内容和序号的兴趣 包, 以使源端发送包括该序号对应的数据块的数据包。
由于通常采用连续的数字作为一个内容的各个数据块的序号, 并且用户端 通常是对一个内容中的若干个连续的数据块进行请求, 因此用户端一般是依次 向源端发送内容名称相同且序号连续的兴趣包。根据 CCN中存在的窗口机制, 用户端在接收到源端发送的与某个序号对应的数据包之后,会向源端发送与在 该序号之后的若干序号对应的兴趣包, 此时发送的兴趣包的数量与窗口大小有 关。 例如, 用户端接收到序号为 50的数据包, 窗口大小为 5, 则用户端向源端 发送序号为 51-55的兴趣包。 如果此时源端进行切换, 那么源端将接收不到这 些兴趣包, 不可能对其作出响应, 这些兴趣包会保存在路由器和原基站的 PIT 表中。
在实际应用中, 第一 SHI 的格式可以如下: ccnx: /目的基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI 使用的是 ccnx协议。
在该种实现方式中, 一个或者一个以上程序还包含用于进行以下操作的指 令: 在 PIT中查找匹配项, 匹配项为内容名称与 LRI中的内容名称相同, 序号 大于或等于 LRI中的序号的兴趣包; 当存在匹配项时,按照增加的 FIB规则发 送匹配项对应的兴趣包。
在具体应用中, 一个或者一个以上程序可以包含用于进行以下操作的指 令:首先将 LRI中的序号加 1 ,然后将 LRI中的内容名称和加 1后的序号与 PIT 中的项进行对比, 如果找到了内容名称和序号都相同的项, 则将该项判定为匹 配项, 并且继续将序号加 1 , 然后将 LRI中的内容名称和加 1后的序号(相当 于在 LRI中的序号上加 2 )与 PIT中的项进行对比, 如此循环, 直到没有找到 内容名称和序号都相同的项为止。
在实际应用中, 当存在匹配项时, 可以将源端在进行切换时没有接收到的 兴趣包, 重新发给源端进行响应, 若目的基站为源端在切换前的服务基站, 则 不需要再向目的基站发送第一 SHI, 以节省网络的流量。
可选地, 一个或者一个以上程序可以包含用于进行以下操作的指令: 当第 一 SHI是由源端在切换即将发生时发送的时,或者, 当第一 SHI是由源端在切 换前的服务基站发送的时, 接收源端在切换后的服务基站发送的 AOS消息, 该 AOS消息用于表示源端完成切换;在接收到 AOS消息之后,按照增加的 FIB 规则发送匹配项对应的兴趣包。
在本实施例中, AOS信息可以包括源端在切换前的服务基站的 RP和 AOS 标识。 在实际应用中, AOS 的格式可以如下: ccnx: /源端在切换前的服务基 站的 RP/AOS标识。
可选地, 一个或者一个以上程序还可以包含用于进行以下操作的指令: 接 收源端在切换后的服务基站发送的 AOS消息, 该 AOS消息用于表示源端完成 切换;
向源端在切换前的服务基站发送 AOS消息。
在本实施例的一种实现方式中, 与第一 SHI中的 SRP对应的接口, 可以 为静态范围内的接口,且该接口与在源端切换后传输数据给源端的相邻节点的 IP地址对应。
可以理解地, 与节点的 RP对应的接口为静态范围内的接口。 静态范围内 的接口与节点的 RP之间通常为一对多的关系。 静态范围内的接口只随着与节 点相邻的节点的改变而改变。 对于一个节点来说, 发送到不同节点的数据, 可 能需要与其连接的同一个节点转发, 因此在增加之前的 FIB规则中, 通常多个 节点的 RP和一个静态范围内的接口对应, 即静态范围内的接口与节点的 RP 之间是一对多的关系。
在本实施例的另一种实现方式中, 一个或者一个以上程序可以包含用于进 行以下操作的指令: 在设定的动态范围内的接口中, 选择一个动态接口, 并建 立选择的动态接口和在源端切换后传输数据给源端的相邻节点的 IP地址的对 应关系; 建立选择的动态接口与 SRP之间的对应关系, 以增加 FIB规则, 选 择的动态接口与 SRP——对应设置。
在该种方式中,一个或者一个以上程序还可以包含用于进行以下操作的指 令: 当在设定时间内没有按照增加的 FIB规则发送兴趣包时, 删除增加的 FIB 规则。
在本实施例中,设定时间可以为设置的按照增加的 FIB规则发送兴趣包之 后的设定时间, 如 10秒至 30秒间的任一值。
在该种实现方式中, 由于动态范围内的接口与节点的 RP之间为一对一的 关系, 因此动态范围内的接口可以随意增减。 当一段时间没有使用该对应关系
(即按照增加的 FIB规则发送兴趣包)时, 可以将该对应关系删除, 防止由于 源端频繁切换导致 FIB规则无限增长, 节省网络资源。
需要说明的是, 在增加的 FIB规则删除之前, 源端又进行了切换, FIB规 则又增加了一个。 由于增加的 FIB规则中的 RP都是源端在通信发起时的服务 基站名称 /源端名称。因此可以与兴趣包进行最长匹配规则的 RP有两个,此时, 节点会同时向满足最长匹配规则的 RP对应的接口发送兴趣包, 从而确保兴趣 包发送到源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过源端在切换后的服务基站将用户端发送的兴趣包转发给 源端, 整个过程不需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统 设置。 而且兴趣包不需要进行重新封装即可发给源端,提高了通信效率。另夕卜, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端 的兴趣包按照增加的 FIB规则发送,不需要等待源端发送其切换后的可路由前 缀, 也不需要将兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可 以满足实时性要求。 实施例 4
本实施例提供了一种基于 CCN的数据传输装置, 该装置可以设置在源端 或源端在切换前的服务基站上, 参见图 5, 该装置包括:
指示构造模块 401 , 用于构造第一 SHI, 第一 SHI包括目的基站的 RP/第 一 SHI标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标识用于指示收到第一 SHI的节点根据 SRP, 增加 FIB规则, 增加的 FIB 规则包括第一 SHI中的 SRP和在源端切换后传输数据给源端的接口之间的对 应关系;
发送模块 402, 用于发送第一 SHI。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN的发 布机制, 用户端可以知道此时源端的服务基站。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考 虑到终端必须通过基站接入 CCN, 因此终端的 RP通常为终端的服务基站名称 /终端名称。 由于终端的服务基站名称 (基站的 RP )是终端的服务基站名称 / 终端名称的前缀, 根据路由的最长前缀匹配规则, 向终端发送的包括终端的
RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站名 称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称 (基站的 RP )路由到 源端的服务基站,源端的服务基站再根据 SRP(源端的服务基站名称 /源端名称 ) 将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB规则 可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
本发明实施例通过构造第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标 识用于指示收到第一 SHI的路由器或目的基站根据 SRP增加 FIB规则, 增加 的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给源端的接 口之间的对应关系, 并发送第一 SHI, 因此根据路由的最长前缀匹配规则, 发 送给源端的兴趣包会按照增加的 FIB规则发送, 实现了通过源端在切换后的服 务基站将用户端发送的兴趣包转发给源端, 整个过程不需要设置专门的间接服 务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包不需要进行重新封装即 可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增加的 FIB规则发送, 不需 要等待源端发送其切换后的可路由前缀, 也不需要将兴趣包进行重新封装, 耗 时较短(在实验环境中约 0.1秒), 可以满足实时性要求。 实施例 5
本发明实施例提供了一种基于 CCN的数据传输装置, 该装置可以设置在 源端或源端在切换前的服务基站上, 参见图 6, 该装置包括:
指示构造模块 501 , 用于构造第一 SHI, 第一 SHI包括目的基站的 RP/第 一 SHI标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标识用于指示收到第一 SHI的节点根据 SRP, 增加 FIB规则, 增加的 FIB 规则包括第一 SHI中的 SRP和在源端切换后传输数据给源端的接口之间的对 应关系;
发送模块 502, 用于发送第一 SHI。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN的发 布机制, 用户端可以知道此时源端的服务基站。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考 虑到终端必须通过基站接入 CCN, 因此终端的 RP通常为终端的服务基站名称 /终端名称。 由于终端的服务基站名称 (基站的 RP )是终端的服务基站名称 / 终端名称的前缀, 根据路由的最长前缀匹配规则, 向终端发送的包括终端的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站名 称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称 (基站的 RP )路由到 源端的服务基站,源端的服务基站再根据 SRP(源端的服务基站名称 /源端名称 ) 将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB规则 可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
在本实施例的一种实现方式中,第一 SHI还可以包括源端在切换前接收到 的 LRI中的内容名称和序号, 第一 SHI标识还用于, 指示收到第一 SHI指示 的节点在 PIT表中查找是否存在匹配项, 匹配项为内容名称与 LRI中的内容名 称相同, 序号大于或等于 LRI中的序号的兴趣包, 当存在匹配项时, 按照增加 的 FIB规则发送匹配项对应的兴趣包。
需要说明的是, 在 CCN中, 通常一个内容对应的数据较大, 因此, 每个 内容对应的数据都被拆分成若干个数据块,每个内容的数据块之间用序号进行 标识。 一个兴趣包和一个数据包通常对应一个数据块。
当用户端第一次请求内容时, 兴趣包中的内容名称只包括用户输入用户端 的请求, 源端会根据该兴趣包告知用户端与用户请求的内容对应的所有数据块 的序号。用户端根据源端发送的数据块的序号发送包括请求内容和序号的兴趣 包, 以使源端发送包括该序号对应的数据块的数据包。
由于通常采用连续的数字作为一个内容的各个数据块的序号, 并且用户端 通常是对一个内容中的若干个连续的数据块进行请求, 因此用户端一般是依次 向源端发送内容名称相同且序号连续的兴趣包。根据 CCN中存在的窗口机制, 用户端在接收到源端发送的与某个序号对应的数据包之后,会向源端发送与在 该序号之后的若干序号对应的兴趣包, 此时发送的兴趣包的数量与窗口大小有 关。 例如, 用户端接收到序号为 50的数据包, 窗口大小为 5, 则用户端向源端 发送序号为 51-55的兴趣包。 如果此时源端进行切换, 那么源端将接收不到这 些兴趣包, 不可能对其作出响应, 这些兴趣包会保存在路由器和原基站的 PIT 表中。
在实际应用中, 第一 SHI 的格式可以如下: ccnx: /目的基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI 使用的是 ccnx协议。
本发明实施例通过构造第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标 识用于指示收到第一 SHI的路由器或目的基站根据 SRP增加 FIB规则, 增加 的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给源端的接 口之间的对应关系, 并发送第一 SHI, 因此根据路由的最长前缀匹配规则, 发 送给源端的兴趣包会按照增加的 FIB规则发送, 实现了通过源端在切换后的服 务基站将用户端发送的兴趣包转发给源端, 整个过程不需要设置专门的间接服 务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包不需要进行重新封装即 可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增加的 FIB规则发送, 不需 要等待源端发送其切换后的可路由前缀, 也不需要将兴趣包进行重新封装, 耗 时较短(在实验环境中约 0.1秒), 可以满足实时性要求。 实施例 6
本发明实施例提供了一种基于 CCN的数据传输装置, 该装置可以设置在 源端或源端在切换前的服务基站上, 以源端(终端)为例, 参见图 7, 装置 60 可以包括 RF电路 610、 包括有一个或一个以上计算机可读存储介质的存储器 620、输入单元 630、显示单元 640、传感器 650、音频电路 660、 WiFi模块 670、 包括有一个或者一个以上处理核心的处理器 680、 以及电源 690等部件。 本领 域技术人员可以理解, 图 7中示出的装置结构并不构成对装置的限定, 可以包 括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路 610可用于收发信息或通话过程中, 信号的接收和发送, 特别地, 将基站的下行信息接收后, 交由一个或者一个以上处理器 680处理; 另外, 将 涉及上行的数据发送给基站。 通常, RF电路 610包括但不限于天线、 至少一 个放大器、 调谐器、 一个或多个振荡器、 SIM卡、 收发信机、 耦合器、 LNA、 双工器等。 此外, RF电路 610还可以通过无线通信与网络和其他设备通信。 所述无线通信可以使用任一通信标准或协议, 包括但不限于 GSM、 GPRS , CDMA, WCDMA、 LTE、 电子邮件、 SMS等。
存储器 620可用于存储软件程序以及模块, 处理器 680通过运行存储在存 储器 620的软件程序以及模块, 从而执行各种功能应用以及数据处理。 存储器 620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、 至少一个功能所需的应用程序(比如构造第一 SHI等 )等; 存储数据区可存储 根据装置 60的使用所创建的数据 (比如第一 SHI等 )等。 此外, 存储器 620 可以包括高速随机存取存储器, 还可以包括非易失性存储器, 例如至少一个磁 盘存储器件、 闪存器件、 或其他易失性固态存储器件。 相应地, 存储器 620还 可以包括存储器控制器, 以提供处理器 680和输入单元 630对存储器 620的访 问。
输入单元 630可用于接收输入的数字或字符信息, 以及产生与用户设置以 及功能控制有关的键盘、 鼠标、 操作杆、 光学或者轨迹球信号输入。 具体地, 输入单元 630可包括触敏表面 631以及其他输入设备 632。 触敏表面 631 , 也 称为触摸显示屏或者触控板, 可收集用户在其上或附近的触摸操作(比如用户 使用手指、 触笔等任何适合的物体或附件在触敏表面 631上或在触敏表面 631 附近的操作), 并根据预先设定的程式驱动相应的连接装置。 可选的, 触敏表 面 631可包括触摸检测装置和触摸控制器两个部分。 其中, 触摸检测装置检测 用户的触摸方位, 并检测触摸操作带来的信号, 将信号传送给触摸控制器; 触 摸控制器从触摸检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处 理器 680, 并能接收处理器 680发来的命令并加以执行。 此外, 可以采用电阻 式、 电容式、 红外线以及表面声波等多种类型实现触敏表面 631。 除了触敏表 面 631 , 输入单元 630还可以包括其他输入设备 632。 具体地, 其他输入设备 632可以包括但不限于物理键盘、 功能键(比如音量控制按键、 开关按键等)、 轨迹球、 鼠标、 操作杆等中的一种或多种。
显示单元 640可用于显示由用户输入的信息或提供给用户的信息以及装置 30的各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和 其任意组合来构成。显示单元 640可包括显示面板 641 ,可选的,可以采用 LCD、 OLED等形式来配置显示面板 641。 进一步的, 触敏表面 631可覆盖显示面板 641 , 当触敏表面 631检测到在其上或附近的触摸操作后, 传送给处理器 680 以确定触摸事件的类型, 随后处理器 680根据触摸事件的类型在显示面板 641 上提供相应的视觉输出。 虽然在图 7中, 触敏表面 631与显示面板 641是作为 两个独立的部件来实现输入和输入功能, 但是在某些实施例中, 可以将触敏表 面 631与显示面板 641集成而实现输入和输出功能。
装置 60还可包括至少一种传感器 650, 比如光传感器、运动传感器以及其 他传感器。 具体地, 光传感器可包括环境光传感器及接近传感器, 其中, 环境 光传感器可根据环境光线的明暗来调节显示面板 641的亮度,接近传感器可在 装置 30移动到耳边时, 关闭显示面板 641和 /或背光。作为运动传感器的一种, 重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小, 静止时可 检测出重力的大小及方向, 可用于识别手机姿态的应用 (比如横竖屏切换、 相 关游戏、 磁力计姿态校准)、 振动识别相关功能(比如计步器、 敲击)等; 至 于装置 60还可配置的陀螺仪、 气压计、 湿度计、 温度计、 红外线传感器等其 他传感器, 在此不再赘述。
音频电路 660、 扬声器 661 , 传声器 662可提供用户与装置 60之间的音频 接口。 音频电路 660 可将接收到的音频数据转换后的电信号, 传输到扬声器 661 , 由扬声器 661转换为声音信号输出; 另一方面, 传声器 662将收集的声 音信号转换为电信号, 由音频电路 660接收后转换为音频数据, 再将音频数据 输出处理器 680处理后, 经 RF电路 610以发送给比如另一装置, 或者将音频 数据输出至存储器 620以便进一步处理。 音频电路 360还可能包括耳塞插孔, 以提供外设耳机与装置 60的通信。
WiFi属于短距离无线传输技术,装置 60通过 WiFi模块 670可以帮助用户 收发电子邮件、 浏览网页和访问流式媒体等, 它为用户提供了无线的宽带互联 网访问。 虽然图 7示出了 WiFi模块 670, 但是可以理解的是, 其并不属于装置 30的必须构成, 完全可以根据需要在不改变发明的本质的范围内而省略。
处理器 680是装置 60的控制中心, 利用各种接口和线路连接整个手机的 各个部分,通过运行或执行存储在存储器 620内的软件程序和 /或模块, 以及调 用存储在存储器 620内的数据, 执行装置 60的各种功能和处理数据, 从而对 装置 60进行整体监控。 可选的, 处理器 680可包括一个或多个处理核心; 优 选的, 处理器 680可集成应用处理器和调制解调处理器, 其中, 应用处理器主 要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。 可以理解的是, 上述调制解调处理器也可以不集成到处理器 680中。
尽管未示出, 装置 60还可以包括摄像头、 蓝牙模块等, 在此不再赘述。 在本实施例中, 装置 60还包括有存储器, 以及一个或者一个以上的程序, 其 中一个或者一个以上程序存储于存储器中, 且经配置以由一个或者一个以上处 理器执行, 一个或者一个以上程序包含用于进行以下操作的指令: 构造第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP, SRP为源端在通信发 起时的服务基站名称 /源端名称, 第一 SHI标识用于指示收到第一 SHI的节点 根据 SRP, 增加 FIB规则, 增加的 FIB规则包括第一 SHI中的 SRP和在源端 切换后传输数据给源端的接口之间的对应关系; 发送第一 SHI。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN的发 布机制, 用户端可以知道此时源端的服务基站。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。 具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称), 即 路由器名称和基站名称。 考虑到终端必须通过基站接入 CCN, 因此终端的 RP 通常为终端的服务基站名称 /终端名称。 由于终端的服务基站名称(基站的 RP ) 是终端的服务基站名称 /终端名称的前缀,根据路由的最长前缀匹配规则, 向终 端发送的包括终端的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站名称 /源端名称)的兴趣包,可以根据源端的服务基站名称(基 站的 RP )路由到源端的服务基站, 源端的服务基站再根据 SRP (源端的服务 基站名称 /源端名称 )将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终 端的 RP的 FIB规则可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
在本实施例的一种实现方式中,第一 SHI还可以包括源端在切换前接收到 的 LRI中的内容名称和序号, 第一 SHI标识还用于, 指示收到第一 SHI指示 的节点在 PIT表中查找是否存在匹配项, 匹配项为内容名称与 LRI中的内容名 称相同, 序号大于或等于 LRI中的序号的兴趣包, 当存在匹配项时, 按照增加 的 FIB规则发送匹配项对应的兴趣包。
需要说明的是, 在 CCN中, 通常一个内容对应的数据较大, 因此, 每个 内容对应的数据都被拆分成若干个数据块,每个内容的数据块之间用序号进行 标识。 一个兴趣包和一个数据包通常对应一个数据块。
当用户端第一次请求内容时, 兴趣包中的内容名称只包括用户输入用户端 的请求, 源端会根据该兴趣包告知用户端与用户请求的内容对应的所有数据块 的序号。用户端根据源端发送的数据块的序号发送包括请求内容和序号的兴趣 包, 以使源端发送包括该序号对应的数据块的数据包。
由于通常采用连续的数字作为一个内容的各个数据块的序号, 并且用户端 通常是对一个内容中的若干个连续的数据块进行请求, 因此用户端一般是依次 向源端发送内容名称相同且序号连续的兴趣包。根据 CCN中存在的窗口机制, 用户端在接收到源端发送的与某个序号对应的数据包之后,会向源端发送与在 该序号之后的若干序号对应的兴趣包, 此时发送的兴趣包的数量与窗口大小有 关。 例如, 用户端接收到序号为 50的数据包, 窗口大小为 5, 则用户端向源端 发送序号为 51-55的兴趣包。 如果此时源端进行切换, 那么源端将接收不到这 些兴趣包, 不可能对其作出响应, 这些兴趣包会保存在路由器和原基站的 PIT 表中。
在实际应用中, 第一 SHI 的格式可以如下: ccnx: /目的基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI 使用的是 ccnx协议。
本发明实施例通过构造第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标 识用于指示收到第一 SHI的路由器或目的基站根据 SRP增加 FIB规则, 增加 的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给源端的接 口之间的对应关系, 并发送第一 SHI, 因此根据路由的最长前缀匹配规则, 发 送给源端的兴趣包会按照增加的 FIB规则发送, 实现了通过源端在切换后的服 务基站将用户端发送的兴趣包转发给源端, 整个过程不需要设置专门的间接服 务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包不需要进行重新封装即 可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增加的 FIB规则发送, 不需 要等待源端发送其切换后的可路由前缀, 也不需要将兴趣包进行重新封装, 耗 时较短(在实验环境中约 0.1秒), 可以满足实时性要求。 实施例 7
本发明实施例提供了一种通信系统, 参见图 8, 该系统包括源端 701、 基 站 702、 以及路由器 703。 源端 701、 基站 702、 路由器 703依次连接。
路由器 703和基站 702可以用于,
接收第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP;
根据 SRP, 增加 FIB规则。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根 据 SRP增加 FIB规则。 SRP为通信发起时的服务基站名称 /源端名称。 通信发 起时为用户端第一次发送兴趣包时, 基于 CCN的发布机制, 用户端可以知道 此时源端的服务基站。
增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给 源端的接口之间的对应关系。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考 虑到终端必须通过基站接入 CCN,发送给终端的数据是先发送到终端的服务基 站, 然后由终端的服务基站转发给终端, 因此终端的 RP通常为终端的服务基 站名称 /终端名称。 由于终端的服务基站名称(基站的 RP )是终端的服务基站 名称 /终端名称的前缀,根据路由的最长前缀匹配规则, 向终端发送的包括终端 的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站 名称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称(基站的 RP )路由 到源端的服务基站, 源端的服务基站再根据 SRP (源端的服务基站名称 /源端名 称)将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB 规则可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
在本实施例的一种实现方式中,第一 SHI还可以包括源端在切换之前接收 到的 LRI中的内容名称和序号。
需要说明的是, 在 CCN中, 通常一个内容对应的数据较大, 因此, 每个 内容对应的数据都被拆分成若干个数据块,每个内容的数据块之间用序号进行 标识。 一个兴趣包和一个数据包通常对应一个数据块。
当用户端第一次请求内容时, 兴趣包中的内容名称只包括用户输入用户端 的请求, 源端会根据该兴趣包告知用户端与用户请求的内容对应的所有数据块 的序号。用户端根据源端发送的数据块的序号发送包括请求内容和序号的兴趣 包, 以使源端发送包括该序号对应的数据块的数据包。
由于通常采用连续的数字作为一个内容的各个数据块的序号, 并且用户端 通常是对一个内容中的若干个连续的数据块进行请求, 因此用户端一般是依次 向源端发送内容名称相同且序号连续的兴趣包。根据 CCN中存在的窗口机制, 用户端在接收到源端发送的与某个序号对应的数据包之后,会向源端发送与在 该序号之后的若干序号对应的兴趣包, 此时发送的兴趣包的数量与窗口大小有 关。 例如, 用户端接收到序号为 50的数据包, 窗口大小为 5, 则用户端向源端 发送序号为 51-55的兴趣包。 如果此时源端进行切换, 那么源端将接收不到这 些兴趣包, 不可能对其作出响应, 这些兴趣包会保存在路由器和原基站的 PIT 表中。
在实际应用中, 第一 SHI 的格式可以如下: ccnx: /目的基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI 使用的是 ccnx协议。
在该种实现方式中, 路由器 703和基站 702还可以用于,
在 PIT中查找是否存在匹配项,匹配项为内容名称与 LRI中的内容名称相 同, 序号大于或等于 LRI中的序号的兴趣包;
当存在匹配项时, 按照增加的 FIB规则发送匹配项对应的兴趣包。
在具体应用中, 查找模块 204可以首先将 LRI中的序号加 1 , 然后将 LRI 中的内容名称和加 1后的序号与 PIT中的项进行对比,如果找到了内容名称和 序号都相同的项, 则将该项判定为匹配项, 并且继续将序号加 1 , 然后将 LRI 中的内容名称和加 1后的序号(相当于在 LRI中的序号上加 2 )与 PIT中的项 进行对比, 如此循环, 直到没有找到内容名称和序号都相同的项为止。
在实际应用中, 当存在匹配项时, 可以将源端在进行切换时没有接收到的 兴趣包, 重新发给源端进行响应, 若目的基站为源端在切换前的服务基站, 则 发送模块 203不需要再向目的基站发送第一 SHI, 以节省网络的流量。
可选地, 路由器 703和基站 702可以用于,
当第一 SHI是由源端在切换完成时发送的时,在接收到源端在切换后的服 务基站发送的 AOS消息之后,按照增加的 FIB规则发送匹配项对应的兴趣包, 该 AOS消息用于表示源端完成切换。
在本实施例中, AOS信息可以包括源端在切换前的服务基站的 RP和 AOS 标识。 在实际应用中, AOS 的格式可以如下: ccnx: /源端在切换前的服务基 站的 RP/AOS标识。
可选地, 路由器 703和基站 702可以用于, 当不存在匹配项时, 在接收到 源端在切换后的服务基站发送的 AOS 消息之后, 向源端在切换前的服务基站 发送 AOS消息。
在本实施例的一种实现方式中, 与第一 SHI中的 SRP对应的接口, 可以 为静态范围内的接口,且该接口与在源端切换后传输数据给源端的相邻节点的
IP地址对应。
可以理解地, 与节点的 RP对应的接口为静态范围内的接口。 静态范围内 的接口与节点的 RP之间通常为一对多的关系。 静态范围内的接口只随着与节 点相邻的节点的改变而改变。 对于一个节点来说, 发送到不同节点的数据, 可 能需要与其连接的同一个节点转发, 因此在增加之前的 FIB规则中, 通常多个 节点的 RP和一个静态范围内的接口对应, 即静态范围内的接口与节点的 RP 之间是一对多的关系。
在本实施例的另一种实现方式中, 路由器 703和基站 702可以用于, 在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接 口和在源端切换后传输数据给源端的相邻节点的 IP地址的对应关系;
建立选择的动态接口与 SRP之间的对应关系, 以增加 FIB规则, 选择的 动态接口与 SRP——对应设置。
在该种实现方式中, 路由器 703和基站 702还可以用于,
当在设定时间内没有按照增加的 FIB规则发送兴趣包时, 删除增加的 FIB 规则。
在本实施例中,设定时间可以为设置的按照增加的 FIB规则发送兴趣包之 后的时间, 如 10秒至 30秒间的任一值。
在该种实现方式中, 由于动态范围内的接口与节点的 RP之间为一对一的 关系, 因此动态范围内的接口可以随意增减。 当一段时间没有使用该对应关系 (即按照增加的 FIB规则发送兴趣包)时, 可以将该对应关系删除, 防止由于 源端频繁切换导致 FIB规则无限增长, 节省网络资源。
需要说明的是, 在增加的 FIB规则删除之前, 源端又进行了切换, FIB规 则又增加了一个。 由于增加的 FIB规则中的 RP都是源端在通信发起时的服务 基站名称 /源端名称。因此可以与兴趣包进行最长匹配规则的 RP有两个,此时, 节点会同时向满足最长匹配规则的 RP对应的接口发送兴趣包, 从而确保兴趣 包发送到源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过源端在切换后的服务基站将用户端发送的兴趣包转发给 源端, 整个过程不需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统 设置。 而且兴趣包不需要进行重新封装即可发给源端,提高了通信效率。另夕卜, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端 的兴趣包按照增加的 FIB规则发送,不需要等待源端发送其切换后的可路由前 缀, 也不需要将兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可 以满足实时性要求。 实施例 8
本发明实施例提供了一种通信系统, 参见图 9, 该系统包括源端 801、 基 站 802、 以及路由器 803。 源端 801、 基站 802、 路由器 803依次连接。
源端 801或基站 802可以用于,
构造第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP, SRP为 源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标识用于指示收到第 一 SHI的节点根据 SRP, 增加 FIB规则, 增加的 FIB规则包括第一 SHI中的 SRP和在源端切换后传输数据给源端的接口之间的对应关系;
发送第一 SHI。
在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN的发 布机制, 用户端可以知道此时源端的服务基站。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考 虑到终端必须通过基站接入 CCN, 因此终端的 RP通常为终端的服务基站名称 /终端名称。 由于终端的服务基站名称 (基站的 RP )是终端的服务基站名称 / 终端名称的前缀, 根据路由的最长前缀匹配规则, 向终端发送的包括终端的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站名 称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称 (基站的 RP )路由到 源端的服务基站,源端的服务基站再根据 SRP(源端的服务基站名称 /源端名称 ) 将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB规则 可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。 在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
在本实施例的一种实现方式中,第一 SHI还可以包括源端在切换前接收到 的 LRI中的内容名称和序号, 第一 SHI标识还用于, 指示收到第一 SHI指示 的节点在 PIT表中查找是否存在匹配项, 匹配项为内容名称与 LRI中的内容名 称相同, 序号大于或等于 LRI中的序号的兴趣包, 当存在匹配项时, 按照增加 的 FIB规则发送匹配项对应的兴趣包。
需要说明的是, 在 CCN中, 通常一个内容对应的数据较大, 因此, 每个 内容对应的数据都被拆分成若干个数据块,每个内容的数据块之间用序号进行 标识。 一个兴趣包和一个数据包通常对应一个数据块。
当用户端第一次请求内容时, 兴趣包中的内容名称只包括用户输入用户端 的请求, 源端会根据该兴趣包告知用户端与用户请求的内容对应的所有数据块 的序号。用户端根据源端发送的数据块的序号发送包括请求内容和序号的兴趣 包, 以使源端发送包括该序号对应的数据块的数据包。
由于通常采用连续的数字作为一个内容的各个数据块的序号, 并且用户端 通常是对一个内容中的若干个连续的数据块进行请求, 因此用户端一般是依次 向源端发送内容名称相同且序号连续的兴趣包。根据 CCN中存在的窗口机制, 用户端在接收到源端发送的与某个序号对应的数据包之后,会向源端发送与在 该序号之后的若干序号对应的兴趣包, 此时发送的兴趣包的数量与窗口大小有 关。 例如, 用户端接收到序号为 50的数据包, 窗口大小为 5, 则用户端向源端 发送序号为 51-55的兴趣包。 如果此时源端进行切换, 那么源端将接收不到这 些兴趣包, 不可能对其作出响应, 这些兴趣包会保存在路由器和原基站的 PIT 表中。
在实际应用中, 第一 SHI 的格式可以如下: ccnx: /目的基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI 使用的是 ccnx协议。
本发明实施例通过构造第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标 识用于指示收到第一 SHI的路由器或目的基站根据 SRP增加 FIB规则, 增加 的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给源端的接 口之间的对应关系, 并发送第一 SHI, 因此根据路由的最长前缀匹配规则, 发 送给源端的兴趣包会按照增加的 FIB规则发送, 实现了通过源端在切换后的服 务基站将用户端发送的兴趣包转发给源端, 整个过程不需要设置专门的间接服 务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包不需要进行重新封装即 可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增加的 FIB规则发送, 不需 要等待源端发送其切换后的可路由前缀, 也不需要将兴趣包进行重新封装, 耗 时较短(在实验环境中约 0.1秒), 可以满足实时性要求。 实施例 9
本发明实施例提供了一种基于 CCN的数据传输方法, 该方法可以由节点 执行, 该节点包括但不限于路由器和基站。 参见图 10, 该方法包括: 步骤 901:接收第一 SHI,第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP。 在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根 据 SRP增加 FIB规则 (见步骤 902 )。 SRP为源端在通信发起时的服务基站名 称 /源端名称。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN的发布机 制, 用户端可以知道此时源端的服务基站。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 第一 SHI在源端切换时发送, 源端切换时包括切换即将发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中,第一 SHI可以是由源端在切换完成时发 送的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的服 务基站的 RP (见实施例 11 )。
在本实施例的第二种实现方式中,第一 SHI可以是由源端在切换即将发生 时发送的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测到 非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定次 数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例如 连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP (见实施例 12 )。
在本实施例的第三种实现方式中,第一 SHI可以是由源端在切换前的服务 基站发送的,此时, CCN为源端在切换前的服务基站可以获知源端在切换后的 服务基站(如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源 端在切换即将发送时发送的第二 SHI构造的,第二 SHI包括源端在通信发起时 的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标识用于指示源端在切 换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在这种实现方式中, 第 一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP (见实施例 13 )。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。
步骤 902: 根据 SRP, 增加 FIB规则。
在本实施例中, 增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切 换后传输数据给源端的接口之间的对应关系。
在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端(源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考 虑到终端必须通过基站接入 CCN, 因此终端的 RP通常为终端的服务基站名称 /终端名称。 由于终端的服务基站名称 (基站的 RP )是终端的服务基站名称 / 终端名称的前缀, 根据路由的最长前缀匹配规则, 向终端发送的包括终端的 RP (终端的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站名 称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称 (基站的 RP )路由到 源端的服务基站,源端的服务基站再根据 SRP(源端的服务基站名称 /源端名称 ) 将兴趣包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB规则 可以将向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过源端在切换后的服务基站将用户端发送的兴趣包转发给 源端, 整个过程不需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统 设置。 而且兴趣包不需要进行重新封装即可发给源端,提高了通信效率。另夕卜, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端 的兴趣包按照增加的 FIB规则发送,不需要等待源端发送其切换后的可路由前 缀, 也不需要将兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可 以满足实时性要求。 实施例 10
本发明实施例提供了一种基于 CCN的数据传输方法, 该方法可以由源端 或源端在切换前的服务基站执行。 参见图 11 , 该方法包括:
步骤 1001:构造第一 SHI,第一 SHI包括目的基站的 RP/第一 SHI标识 /SRP。 在本实施例中, 目的基站的 RP用于指示节点(路由器或基站)将第一 SHI 发送到目的基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根 据 SRP增加 FIB规则。 SRP为通信发起时的服务基站名称 /源端名称。 通信发 起时为用户端第一次发送兴趣包时, 基于 CCN的发布机制, 用户端可以知道 此时源端的服务基站。
增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给 源端的接口之间的对应关系。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
具体地, 该步骤 1001 可以在源端切换时进行, 源端切换时包括切换即将 发生时、 切换过程中以及切换完成时。
在本实施例的第一种实现方式中, 该步骤 1001 可以是源端在切换完成时 执行的。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换前的 服务基站的 RP (见实施例 11 )。
在本实施例的第二种实现方式中, 该步骤 1001 可以是源端在切换即将发 生时执行的, 例如, 当源端位于两个基站的服务区的交叠区域时, 若源端检测 到非源端当前的服务基站的信号强于源端当前的服务基站的信号(可以是设定 次数检测到非源端当前的服务基站的信号强于源端当前的服务基站的信号, 例 如连续两次), 则表示此时即为切换即将发生时, 在此之后源端会进行切换。 在这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站 的 RP (见实施例 12 )。
在本实施例的第三种实现方式中, 该步骤 1001 可以是源端在切换前的服 务基站根据第二 SHI执行的, 此时, CCN为源端在切换前的服务基站可以获 知源端在切换后的服务基站 (如通过终端检测报告) 的网络, 如 3GPP网络, 第一 SHI是根据源端在切换即将发生时发送的第二 SHI构造的, 第二 SHI包 括源端在通信发起时的服务基站名称 /第二 SHI标识 /SRP。 其中, 第二 SHI标 识用于指示源端在切换前的服务基站根据第二 SHI中的 SRP构造第一 SHI。在 这种实现方式中, 第一 SHI中的目的基站的 RP为源端在切换后的服务基站的 RP (见实施例 13 )。
其中, 在第三种实现方式中, 由于源端在切换前的服务基站可以获知源端 在切换后的服务基站, 因此可以直接由源端在切换前的服务基站向源端在切换 后的服务基站发送第一 SHI, 源端无需开发专门记录新基站 RP的模块, 开发 量小, 降低了开发成本。 在实际应用中, FIB规则包括各个节点的 RP和该 FIB规则所属的节点的 接口的对应关系。 由于路由器和基站之间的连接关系通常是固定不变的, 而终 端 (源端和用户端)具有移动性, 为了防止 FIB规则频繁发生变化, FIB规则 一般只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考虑到终 端必须通过基站接入 CCN,因此终端的 RP通常为终端的服务基站名称 /终端名 称。 由于终端的服务基站名称(基站的 RP )是终端的服务基站名称 /终端名称 的前缀, 根据路由的最长前缀匹配规则, 向终端发送的包括终端的 RP (终端 的服务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站名称 /源端名 称) 的兴趣包, 可以根据源端的服务基站名称 (基站的 RP )路由到源端的服 务基站, 源端的服务基站再根据 SRP (源端的服务基站名称 /源端名称 )将兴趣 包转发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB规则可以将 向终端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
在本实施例的第一种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换前的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的上 一跳节点的 IP地址对应的接口。
在本实施例的第二种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
在本实施例的第三种实现方式中, 第一 SHI的目的基站的 RP为源端在切 换后的服务基站的 RP, 与第一 SHI中的 SRP对应的接口, 为与第一 SHI的下 一跳节点的 IP地址对应的接口。
需要说明的是, 由于用户端在发送兴趣包之前, 已知的是源端在通信发起 时的服务基站, 因此兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称。 根据路由的最长前缀匹配原则, 第一 SHI中的 SRP (源端在通信发 起时的服务基站名称 /源端名称) 比源端在切换前的 RP (源端在通信发起时的 服务基站名称, 在本实施例中, 源端在通信发起时的服务基站为源端在切换前 的服务基站)与兴趣包(源端在通信发起时的服务基站名称 /源端名称 /内容名 称) 匹配的长, 因此路由器或基站在根据 FIB 规则发送兴趣包时, 会从第一 SHI中的 SRP对应的接口发送兴趣包,即从在源端切换后传输数据给源端的接 口发送兴趣包, 实现了按照增加的 FIB规则发送兴趣包。 也正是因为要遵从路 由的最长前缀匹配原则, 第一 SHI中的 SRP为源端在通信发起时的服务基站 名称, 而不是源端在切换后的服务基站名称, 并且还包括源端名称, 从而可以 在用户端不知道源端进行切换的情况下, 将用户端发送的兴趣包通过源端在切 换后的服务基站转发给源端。
步骤 1002: 发送第一 SHI。
本发明实施例通过构造第一 SHI, 第一 SHI包括目的基站的 RP/第一 SHI 标识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 第一 SHI标 识用于指示收到第一 SHI的路由器或目的基站根据 SRP增加 FIB规则, 增加 的 FIB规则包括第一 SHI中的 SRP与节点在源端切换后传输数据给源端的接 口之间的对应关系, 并发送第一 SHI, 因此根据路由的最长前缀匹配规则, 发 送给源端的兴趣包会按照增加的 FIB规则发送, 实现了通过源端在切换后的服 务基站将用户端发送的兴趣包转发给源端, 整个过程不需要设置专门的间接服 务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包不需要进行重新封装即 可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增加的 FIB规则发送, 不需 要等待源端发送其切换后的可路由前缀, 也不需要将兴趣包进行重新封装, 耗 时较短(在实验环境中约 0.1秒), 可以满足实时性要求。 实施例 11
本发明实施例提供了一种基于 CCN的数据传输方法, 在本实施例中, 源 端在切换前的服务基站筒称为原基站, 源端在切换后的服务基站筒称为新基 站, 第一路由器为原基站路由到用户端和新基站路由到用户端的聚合点, 第一 SHI是由源端在切换完成时发送的, 参见图 12, 该方法包括:
步骤 1101 : 用户端发送兴趣包,兴趣包包括源端在通信发起时的服务基站 名称 /源端名称 /内容名称。
在实际应用中, CCN具有内容发布机制, 通过该内容发布机制, 用户可以 获知网络中具有的内容。 用户可以根据需要选择所需的内容, 用户端根据用户 指令, 发送包含所需内容的名称的兴趣包。
在具体应用中, CCN采用分级方式命名内容, "/" 用于分隔内容名字的不 同组成部分。 容易知道, 兴趣包还可以包括最小后缀组件(Min Suffix Components ), 最 大后缀组件( Max Suffix Components )、 公布者公共密钥摘要 ( Publisher Public Key Digest )、排除( Exclude )、儿童选择( Child Selector )、回应来源类型( Answer Origin Kind )、 范围 ( Scope )、 兴趣包生存时间( Interest Life time ) 中的一个或 多个, 本发明实施例对此不作限制。
步骤 1102: 第一路由器接收到兴趣包后查找 CS, 当 CS中不存在内容名 称对应的内容时, 按照 FIB规则转发兴趣包并更新 PIT表。
当 CS中存在内容名称对应的内容时, 第一路由器将内容名称对应的内容 封装为数据包, 发送给用户端, 以对该兴趣包作出响应。 在本实施例中, 由于 第一路由器是第一次接收到包括该内容名称的兴趣包, 因此 CS中没有存储内 容名称对应的内容。
其中, CS、 FIB规则和 PIT表是节点的重要组成部分。 节点包括路由器、 基站。
CS用于存储节点收到的数据包(即内容名称对应的内容)。 FIB规则包括 各个节点的 RP和该 FIB规则所属的节点的接口的对应关系。 PIT表用于记录 已经转发且没有得到回应的兴趣包、 以及接收该兴趣包的接口, 以将回应该兴 趣包的数据包转发给用户端。
由于路由器和基站之间的连接关系通常是固定不变的, 而终端(源端和用 户端)具有移动性, 为了防止 FIB规则频繁发生变化, 节点中的 FIB规则一般 只包括路由器的 RP (路由器名称)和基站的 RP (基站名称)。 考虑到终端必 须通过基站接入 CCN, 因此终端的 RP通常为终端的服务基站名称 /终端名称。 由于终端的服务基站名称(基站的 RP )是终端的服务基站名称 /终端名称的前 缀, 根据路由的最长前缀匹配规则, 向终端发送的包括终端的 RP (终端的服 务基站名称 /终端名称) 的包, 如包括 SRP (源端的服务基站名称 /源端名称) 的兴趣包, 可以根据源端的服务基站名称(基站的 RP )路由到源端的服务基 站, 源端的服务基站再根据 SRP (源端的服务基站名称 /源端名称 )将兴趣包转 发给源端。 因此, 包括节点的 RP而不包括终端的 RP的 FIB规则可以将向终 端发送的包路由到终端。
节点的接口与和 IP地址之间具有对应关系, 节点可以通过某个接口, 将 数据发送给该接口对应的 IP地址所属的节点。
具体地, 该步骤 1102的具体过程如下: 当第一路由器接收到兴趣包后, 第一路由器首先查找 CS中是否存储有响 应该兴趣包的数据包(即内容名称对应的内容)。 当第一路由器存储有响应该 兴趣包的数据包时, 第一路由器将响应该兴趣包的数据包发送给用户端, 并丟 弃该兴趣包。
当第一路由器没有存储响应该兴趣包的数据包时, 第一路由器在 PIT表中 查找是否存在与该兴趣包中的内容名称相同的项。 当 PIT表中存在与该兴趣包 中的内容名称相同的项时, 第一路由器在与该兴趣包中的内容名称相同的项 中, 增加接收该兴趣包的接口, 并丟弃该兴趣包。
当 PIT表中不存在与该兴趣包中的内容名称相同的项时, 将兴趣包中的源 端在通信发起时的服务基站名称 /源端名称 /内容名称, 与 FIB规则中的各个节 点的 RP进行最长匹配, 由于此时 FIB规则中的各个节点的 RP为路由器名称 或基站名称, 因此得到的最长匹配项为源端在通信发起时的服务基站名称。 在 本实施例中, 源端在通信发起时的服务基站为原基站。 第一路由器按照 FIB规 则, 将兴趣包从与原基站名称对应的接口转发出去, 并将该兴趣包、 以及接收 该兴趣包的接口记录在 PIT表中。当 FIB规则中没有匹配项时,丟弃该兴趣包。
需要说明的是, 从用户端路由到源端可能会涉及多个节点(包括但不限于 路由器和基站), 这些节点的工作过程都和第一路由器相同, 在此省略详细描 述。
步骤 1103: 原基站接收到兴趣包后查找 CS, 当 CS不存在满足兴趣包的 内容时, 按照 FIB规则转发兴趣包并更新 PIT表。
如前所述, 所有节点的工作过程都与第一路由器基本相同, 因此, 该步骤 1103可以与步骤 1102相同, 在此不再详述。
步骤 1104: 源端接收到兴趣包后查找 Repository (贮藏室)组件, 生成回 应该兴趣包的数据包并发送生成的数据包。
可以理解地, 源端的工作过程与第一路由器基本相同, 不同之处在于, 源 端接收到兴趣包后查找的是 Repository组件,不是 CS。实际上,查找 Repository 组件和过程与查找 CS的工作过程是相同的,即该步骤 1104可以与第一路由器 接收到兴趣包后查找 CS, 生成响应该兴趣包的数据包并发送生成的数据包的 步骤相同, 在此不再详述。 Repository组件与 CS的不同之处在于, Repository 组件具有类似于服务器的内容发布功能, 在 Repository组件中存储的内容是静 态的, 一般不会改变; 在 CS中存储的内容是动态的, 可能随时变化, 如当 CS 的容量达到最大值时, CS会将最先存储的内容删除, 以存放最新存储的内容。 步骤 1105: 原基站接收到数据包后, 存储数据包、 更新 PIT表、 向用户端 转发数据包。
在实际应用中, 当原基站接收到数据包后, 原基站首先在查找 CS中是否 存储有与该数据包的内容名称相同的数据包。 当 CS中存储有与该数据包的内 容名称相同的数据包时, 原基站将该数据包丟弃。
当 CS 中没有存储与该数据包的内容名称相同的数据包时, 原基站在 PIT 表中查找是否存在与该数据包匹配的兴趣包。 当 PIT表中存在与该数据包匹配 的兴趣包时, 原基站从 PIT表中与该兴趣包对应的接口转发该数据包, 并将该 数据包存储在 CS中, 从 PIT表中删除与该数据包匹配的兴趣包。 当原基站再 接收到内容名称相同的兴趣包时, 原基站可以直接将 CS中的数据包发给用户 端, 以响应该兴趣包。 如果 PIT表中不存在与该数据包匹配的兴趣包时, 则丟 弃该数据包。
步骤 1106: 第一路由器接收到数据包后, 存储数据包、 更新 PIT表、 向用 户端转发数据包。
如前所述, 所有节点的工作过程都相同, 因此, 该步骤 1106可以与步骤 1105相同, 在此不再详述。
步骤 1107: 用户端接收数据包。
可以理解地, 在本实施例中, 该步骤 1107的数据包是对步骤 1101中用户 发送的兴趣包的回应。
需要说明的是, 在 CCN中, 通常一个内容对应的数据较大, 因此, 每个 内容对应的数据都被拆分成若干个数据块,每个内容的数据块之间用序号进行 标识。 一个兴趣包和一个数据包通常对应一个数据块。
当用户端第一次请求内容时, 兴趣包中的内容名称只包括用户输入用户端 的请求, 源端会根据该兴趣包告知用户端与用户请求的内容对应的所有数据块 的序号。用户端根据源端发送的数据块的序号发送包括请求内容和序号的兴趣 包, 以使源端发送包括该序号对应的数据块的数据包。
因此, 在步骤 1108之前, 步骤 1101-1107可以重复多次执行。 当然, 也可 以在仅执行过一次步骤 1101-1102之后, 直接开始执行步骤 1108。
由于通常采用连续的数字作为一个内容的各个数据块的序号, 并且用户端 通常是对一个内容中的若干个连续的数据块进行请求, 因此用户端一般是依次 向源端发送内容名称相同且序号连续的兴趣包。根据 CCN中存在的窗口机制, 用户端在接收到源端发送的与某个序号对应的数据包之后,会向源端发送与在 该序号之后的若干序号对应的兴趣包, 此时发送的兴趣包的数量与窗口大小有 关。 例如, 用户端接收到序号为 50的数据包, 窗口大小为 5, 则用户端向源端 发送序号为 51-55的兴趣包。 如果此时源端进行切换, 那么源端将接收不到这 些兴趣包, 不可能对其作出响应, 这些兴趣包会保存在路由器和原基站的 PIT 表中。
步骤 1108: 源端完成切换后, 源端构造并发送第一 SHI, 第一 SHI包括原 基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称和序号。
在上述通信过程中, 源端可能由于移动或网络环境发生变化而发生切换。 源端切换完成时, 即根据源端在通信发起时的服务基站的 RP、 源端名称、 LRI 构造第一 SHI。 在本实施例中, 源端在通信发起时的服务基站为原基站。
在本实施例中, 原基站的 RP用于指示节点 (路由器或基站)将第一 SHI 发送到原基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根据 SRP增加 FIB规则(详见步骤 1109 )。 SRP为源端在通信发起时的服务基站(原 基站)名称 /源端名称。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN 的发布机制, 用户端可以知道此时源端的服务基站。
在实际应用中, 第一 SHI的格式可以如下: ccnx: /原基站的 RP/第一 SHI 标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI使 用的是 ccnx协议。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
步骤 1109: 新基站根据 SRP, 增加 FIB规则, 并在 PIT中查找匹配项, 当 不存在匹配项时, 发送第一 SHI。
在本实施例中, 增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切 换后传输数据给源端的接口之间的对应的关系。
匹配项为内容名称与 LRI中的内容名称相同,序号大于或等于 LRI中的序 号的兴趣包。 当存在匹配项时, 新基站按照增加的 FIB规则发送匹配项对应的 兴趣包。 由于兴趣包包括源端在通信发起时的服务基站(原基站)名称 /源端名 称 /内容名称,兴趣包的转发路径应该依次为第一路由器、原基站、源端, 因此, 兴趣包并没有经过新基站的转发, 新基站中不存在匹配项。 在本实施例的一种实现方式中, 与第一 SHI中的 SRP对应的接口, 可以 为静态范围内的接口,且该接口与在源端切换后传输数据给源端的相邻节点的 IP地址对应。
可以理解地, 与节点的 RP对应的接口为静态范围内的接口。 静态范围内 的接口与节点的 RP之间通常为一对多的关系。 静态范围内的接口只随着与节 点相邻的节点的改变而改变。 对于一个节点来说, 发送到不同节点的数据, 可 能需要与其连接的同一个节点转发, 因此在增加之前的 FIB规则中, 通常多个 节点的 RP和一个静态范围内的接口对应, 即静态范围内的接口与节点的 RP 之间是一对多的关系。
在本实施例的另一种实现方式中, 与第一 SHI中的 SRP对应的接口, 可 以为动态范围内的接口, 且该接口与在源端切换后传输数据给源端的相邻节点 的 IP地址对应。
在该种实现方式中, 根据 SRP, 增加 FIB规则可以包括:
在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接 口和在源端切换后传输数据给源端的相邻节点的 IP地址的对应关系; 建立选 择的动态接口与 SRP的对应关系, 以增加 FIB规则, 选择的动态接口与 SRP ——对应设置。 由于动态范围内的接口与 SRP之间为一对一的关系, 因此动态 范围内的接口可以随意增减。 当一段时间没有使用该对应关系 (即按照增加的 FIB规则发送兴趣包) 时, 可以将该对应关系删除, 防止由于源端频繁切换导 致 FIB规则无限增长, 节省网络资源。
在具体实现中, 可以将静态范围内的接口和动态范围内的接口进行不同的 编号, 根据接口编号所属的范围确定该接口为静态范围内的接口, 还是动态范 围内的接口。
步骤 1110: 第一路由器根据 SRP, 增加 FIB规则, 在 PIT中查找匹配项, 当存在匹配项时, 按照增加的 FIB规则发送匹配项对应的兴趣包。
需要说明的是, 由于第一路由器为原基站路由到用户端和新基站路由到用 户端的聚合点, 兴趣包包括源端在通信发起时的服务基站(原基站)名称 /源端 名称 /内容名称,因此兴趣包的转发路径应该依次为第一路由器、原基站、源端, 第一路由器中存在匹配项。
在具体应用中,查找匹配项可以采用如下方式: 首先将 LRI中的序号加 1 , 然后将 LRI中的内容名称和加 1后的序号与 PIT中的项进行对比,如果找到了 内容名称和序号都相同的项, 则将该项判定为匹配项, 并且继续将序号加 1 , 然后将 LRI中的内容名称和加 1后的序号(相当于在 LRI中的序号上加 2 )与 PIT中的项进行对比, 如此循环, 直到没有找到内容名称和序号都相同的项为 止。
需要说明的是, 第一路由器为原基站和新基站路由到用户端的聚合点, 第 一 SHI通过新基站传输到第一路由器后,即可建立第一路由器到达切换后的源 端的路径, 并且由于第一路由器中存在匹配项, 可以将源端在进行切换时没有 接收到的兴趣包, 重新发给源端进行响应, 因此在本实施例中, 第一路由器可 以不需要再向原基站发送第一 SHI, 以节省网络的流量。
在另一实施例中, 第一路由器可以向原基站发送第一 SHI, 相应地, 该实 施例中还包括步骤: 原基站根据 SRP, 增加 FIB规则, 在 PIT中查找匹配项, 当存在匹配项时, 按照增加的 FIB规则发送匹配项对应的兴趣包。
在又一实施例中, 当原基站和新基站不存在到用户端的聚合点时, 原基站 执行的步骤与本实施例中第一路由器执行的步骤相同。
步骤 1111: 新基站接收到匹配项对应的兴趣包后查找 CS, 当 CS不存在 满足匹配项对应的兴趣包的内容时,按照增加的 FIB规则转发匹配项对应的兴 趣包并更新 PIT表。
如前所述, 所有节点的工作过程都与第一路由器基本相同, 因此, 该步骤 1111可以与步骤 1110相同, 在此不再详述。
步骤 1112: 源端接收到匹配项对应的兴趣包后查找 Repository组件, 生成 回应匹配项对应的兴趣包的数据包并发送生成的数据包。
可以理解地, 该步骤 1112可以与步骤 1104相同, 在此不再详述。
步骤 1113: 新基站接收到数据包后, 存储数据包、 更新 PIT表、 向用户端 转发数据包。
如前所述, 所有节点的工作过程都相同, 因此, 该步骤 1113 可以与步骤 1105相同, 在此不再详述。
步骤 1114: 第一路由器接收到数据包后, 存储数据包、 更新 PIT表、 向用 户端转发数据包。
如前所述, 所有节点的工作过程都相同, 因此, 该步骤 1114 可以与步骤 1105相同, 在此不再详述。
步骤 1115: 用户端接收数据包。 可以理解地, 在本实施例中, 该步骤 1115的数据包也是对步骤 1110中第 一路由器发送的匹配项对应的兴趣包的响应。
可选地, 本实施例的方法还可以包括步骤 1116: 当节点在设定时间没有按 照增加的 FIB规则发送兴趣包时, 节点删除增加的 FIB规则。
在本实施例中,设定时间可以为设置的按照增加的 FIB规则发送兴趣包之 后的时间, 如 10秒至 30秒间的任一值。
需要说明的是, 在增加的 FIB规则删除之前, 源端又进行了切换, FIB规 则又增加了一个。 由于增加的 FIB规则中的 RP都是源端在通信发起时的服务 基站名称 /源端名称。因此可以与兴趣包进行最长匹配规则的 RP有两个,此时, 节点会同时向满足最长前缀匹配规则的 RP对应的接口发送兴趣包, 从而确保 兴趣包发送到源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括原基站的 RP/第一 SHI标 识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过新基站将用户端发送的兴趣包转发给源端, 整个过程不 需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包 不需要进行重新封装即可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增 加的 FIB规则发送, 不需要等待源端发送其切换后的可路由前缀, 也不需要将 兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可以满足实时性要 求。 实施例 12
本发明实施例提供了一种基于 CCN数据传输方法, 本实施例可以与实施 例 11一样, 先执行步骤 1101-1107, 本实施例与实施例 11的不同之处在于, 在本实施例中, 第一 SHI是由源端在切换即将发生时发送的, 参见图 13 , 在 执行步骤 1101-1107之后, 该方法还包括:
步骤 1201 : 源端切换即将发生时, 源端构造并发送第一 SHI, 第一 SHI 包括新基站的 RP/第一 SHI标识 /SRP/LRI中的内容名称和序号。 在步骤 1101-1107的通信过程中, 源端可能由于移动或网络环境发生变化 而发生切换。 当源端切换即将发生时, 即根据源端在通信发起时的服务基站的 RP、 源端名称、 LRI构造第一 SHI。 在本实施例中, 源端在通信发起时的服务 基站为原基站。
在本实施例中, 新基站的 RP用于指示节点 (路由器或基站)将第一 SHI 发送到新基站。第一 SHI标识用于指示收到第一 SHI的路由器或目的基站根据 SRP增加 FIB规则(详见步骤 1202 )。 SRP为源端在通信发起时的服务基站(原 基站)名称 /源端名称。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN 的发布机制, 用户端可以知道此时源端的服务基站。
在实际应用中, 第一 SHI的格式可以如下: ccnx: /新基站的 RP/第一 SHI 标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第一 SHI使 用的是 ccnx协议。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
步骤 1202: 原基站根据 SRP, 增加 FIB规则, 并在 PIT中查找匹配项。 在本实施例中, 增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切 换后传输数据给源端的接口之间的对应的关系。
匹配项为内容名称与 LRI中的内容名称相同,序号大于或等于 LRI中的序 号的兴趣包。 当不存在匹配项时, 新基站发送第一 SHI。 由于兴趣包包括源端 在通信发起时的服务基站 (原基站)名称 /源端名称 /内容名称, 兴趣包的转发 路径应该依次为第一路由器、 原基站、 源端, 因此, 原基站中存在匹配项。
在本实施例的一种实现方式中, 与第一 SHI中的 SRP对应的接口, 可以 为静态范围内的接口,且该接口与在源端切换后传输数据给源端的相邻节点的 IP地址对应。
可以理解地, 与节点的 RP对应的接口为静态范围内的接口。 静态范围内 的接口与节点的 RP之间通常为一对多的关系。 静态范围内的接口只随着与节 点相邻的节点的改变而改变。 对于一个节点来说, 发送到不同节点的数据, 可 能需要与其连接的同一个节点转发, 因此在增加之前的 FIB规则中, 通常多个 节点的 RP和一个静态范围内的接口对应, 即静态范围内的接口与节点的 RP 之间是一对多的关系。
在本实施例的另一种实现方式中, 与第一 SHI中的 SRP对应的接口, 可 以为动态范围内的接口, 且该接口与在源端切换后传输数据给源端的相邻节点 的 IP地址对应。 动态范围内的接口与节点的 RP之间为一对一的关系。
在该种实现方式中, 根据 SRP, 增加 FIB规则可以包括:
在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接 口和在源端切换后传输数据给源端的相邻节点的 IP地址的对应关系; 建立选 择的动态接口与 SRP的对应关系, 以增加 FIB规则, 选择的动态接口与 SRP ——对应设置。 由于动态范围内的接口与 SRP之间为一对一的关系, 因此动态 范围内的接口可以随意增减。 当一段时间没有使用该对应关系 (即按照增加的 FIB规则发送兴趣包) 时, 可以将该对应关系删除, 防止由于源端频繁切换导 致 FIB规则无限增长, 节省网络资源。
在具体实现中, 可以将静态范围内的接口和动态范围内的接口进行不同的 编号, 根据接口编号所属的范围确定该接口为静态范围内的接口, 还是动态范 围内的接口。
在具体应用中,查找匹配项可以采用如下方式: 首先将 LRI中的序号加 1 , 然后将 LRI中的内容名称和加 1后的序号与 PIT中的项进行对比,如果找到了 内容名称和序号都相同的项, 则将该项判定为匹配项, 并且继续将序号加 1 , 然后将 LRI中的内容名称和加 1后的序号(相当于在 LRI中的序号上加 2 )与 PIT中的项进行对比, 如此循环, 直到没有找到内容名称和序号都相同的项为 止。
步骤 1203: 第一路由器根据 SRP, 增加 FIB规则, 并在 PIT中查找匹配 项。
如实施例 11所述, 所有节点的工作过程都相同, 因此, 该步骤 1203可以 与步骤 1202相同, 在此不再详述。
步骤 1204: 新基站根据第一 SHI, 在源端切换完成后, 发送 AOS消息, AOS消息包括原基站的 RP/SHI ACK。
需要说明的是,原基站的 RP用于指示节点将第一 SHI发送到原基站。 SHI ACK用于指示收到 AOS消息的路由器或原基站, 源端完成切换, 可以向源端 发送匹配项对应的兴趣包(详见步骤 1205和步骤 1206 )。
在实际应用中, AOS的格式可以如下: ccnx: /原基站的 RP/AOS ACK, 其中, ccnx用于表示第一 SHI使用的是 ccnx协议。
步骤 1205: 第一路由器根据 AOS消息, 按照增加的 FIB规则发送匹配项 对应的兴趣包。
容易知道, 原基站和新基站之间的路由器中, 除第一路由器之外的其它路 由器的作用就是转发 AOS, 即接收 AOS消息并发送 AOS消息。
需要说明的是, 在其它实施例中, 当原基站和新基站之间不存在路由到用 户端的聚合点时, 步骤 1205的执行主体为原基站。
步骤 1206: 新基站接收到匹配项对应的兴趣包后查找 CS, 当 CS不存在 内容名称对应的内容时,按照增加的 FIB规则转发匹配项对应的兴趣包并更新
PIT表。
当存在内容名称对应的内容时,新基站将内容名称对应的内容封装为数据 包, 发送给用户端, 以对该兴趣包作出响应。 在本实施例中, 由于新基站是第 一次接收到包括该内容名称的兴趣包, 因此 CS中没有存储内容名称对应的内 谷。
如实施例 11所述, 所有节点的工作过程都相同, 因此, 该步骤 1206可以 与步骤 1102相同, 在此不再详述。
步骤 1207: 源端接收到匹配项对应的兴趣包后查找 Repository组件, 生成 回应匹配项对应的兴趣包的数据包并发送出去。
可以理解地, 该步骤 1207可以与步骤 1104相同, 在此不再详述。
步骤 1208: 新基站接收到数据包后, 存储数据包、 更新 PIT表、 向用户端 转发数据包。
如实施例 11所述, 所有节点的工作过程都相同, 因此, 该步骤 1208可以 与步骤 1105相同, 在此不再详述。
步骤 1209: 第一路由器接收到数据包后, 存储数据包、 更新 PIT表、 向用 户端转发数据包。
如实施例 11所述, 所有节点的工作过程都相同, 因此, 该步骤 1209可以 与步骤 1105相同, 在此不再详述。
步骤 1210: 用户端接收到数据包。
可以理解地, 该步骤 1210可以与步骤 1107相同, 在此不再详述。 在本实 施例中, 该步骤 1210的数据包是对步骤 1205中第一路由器发送的匹配项对应 的兴趣包的响应。
可选地,本实施例的方法还可以包括步骤 1211: 当节点在设定时间没有按 照增加的 FIB规则发送兴趣包时, 节点删除增加的 FIB规则。 可以理解地, 该步骤 1211可以与步骤 1116相同, 在此不再详述。
需要说明的是, 在增加的 FIB规则删除之前, 源端又进行了切换, FIB规 则又增加了一个。 由于增加的 FIB规则中的 RP都是源端在通信发起时的服务 基站名称 /源端名称。因此可以与兴趣包进行最长匹配规则的 RP有两个,此时, 节点会同时向满足最长前缀匹配规则的 RP对应的接口发送兴趣包, 从而确保 兴趣包发送到源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括原基站的 RP/第一 SHI标 识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过新基站将用户端发送的兴趣包转发给源端, 整个过程不 需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包 不需要进行重新封装即可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增 加的 FIB规则发送, 不需要等待源端发送其切换后的可路由前缀, 也不需要将 兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可以满足实时性要 求。 实施例 13
本发明实施例提供了一种基于 CCN的数据传输方法, 本实施例可以与实 施例 12—样, 先执行步骤 1101-步骤 1107, 本实施例与实施例 12的不同之处 在于, 本实施例应用于源端在切换前的服务基站可以获知源端在切换后的服务 基站 (如通过终端检测报告) 的网络, 如 3GPP网络, 在本实施例中, 源端在 切换即将发生时构造和发送第二 SHI,第一 SHI是由原基站根据第二 SHI构造 和发送的, 参见图 14, 在执行步骤 1101-1107之后, 该方法还包括:
步骤 1301: 源端切换即将发生, 源端构造并发送第二 SHI, 第二 SHI包括 原基站的 RP/第二 SHI标识 /SRP/LRI中的内容名称和序号。
在步骤 1101-1107的通信过程中, 源端可能由于移动或网络环境发生变化 而发生切换。 当源端切换即将发生时, 即根据源端在通信发起时的服务基站的 RP、 源端名称、 LRI构造第二 SHI。 在本实施例中, 源端在通信发起时的服务 基站为原基站。
在本实施例中, 原基站的 RP用于指示源端将第二 SHI发送到新基站。 第 二 SHI标识用于指示原基站根据第二 SHI中的 SRP和 LRI中的内容名称和序 号构造和发送第一 SHI (详见步骤 1302 )。 SRP为源端在通信发起时的服务基 站(原基站)名称 /源端名称。 通信发起时为用户端第一次发送兴趣包时, 基于 CCN的发布机制, 用户端可以知道此时源端的服务基站。
在实际应用中, 第二 SHI的格式可以如下: ccnx: /原基站的 RP/第二 SHI 标识 /SRP/LRI中的内容名称 /LRI中的序号, 其中, ccnx用于表示第二 SHI使 用的是 ccnx协议。
需要说明的是, SHI中包括的基站名称和源端名称也可以分别用基站标识 和源端标识代替, 本发明实施例对此不作限制。
步骤 1302: 原基站根据第二 SHI, 构造并发送第一 SHI, 第一 SHI包括新 基站的 RP/第一 SHI标识 /SRP/LRL
需要说明的是, 新基站的 RP用于指示节点 (路由器或基站)将第一 SHI 发送到新基站。 第一 SHI标识用于指示路由器或目的基站根据 SRP增加 FIB 规则 (详见步骤 1203 )。
在具体应用中, 由于原基站可以通过终端测量报告获取新基站的 RP, 源 端不需要向原基站报告新基站 RP,所以源端无需开发专门记录新基站 RP的模 块, 开发量小, 降低了开发成本。
步骤 1303: 第一路由器根据 SRP, 增加 FIB规则, 并在 PIT中查找匹配 项。
在本实施例中, 增加的 FIB规则包括第一 SHI中的 SRP与节点在源端切 换后传输数据给源端的接口之间的对应的关系。
匹配项为内容名称与 LRI中的内容名称相同,序号大于或等于 LRI中的序 号的兴趣包。 当不存在匹配项时, 第一路由器只发送第一 SHI。 由于兴趣包包 括源端在通信发起时的服务基站(原基站)名称 /源端名称 /内容名称, 兴趣包 的转发路径应该依次为第一路由器、 原基站、 源端, 因此, 第一路由器中存在 匹配项。
可以理解地, 该步骤 1303可以与步骤 1203相同, 在此不再详述。
步骤 1304: 新基站根据第一 SHI, 在源端切换完成后, 发送 AOS消息, AOS消息包括原基站的 RP/SHI ACK。 需要说明的是,原基站的 RP用于指示节点将第一 SHI发送到原基站。 SHI ACK用于指示收到 AOS消息的路由器或原基站, 源端完成切换, 可以向源端 发送匹配项对应的兴趣包(详见步骤 1305和步骤 1306 )。
在实际应用中, AOS的格式可以如下: ccnx: /原基站的 RP/AOS ACK, 其中, ccnx用于表示第一 SHI使用的是 ccnx协议。
步骤 1305: 第一路由器根据 AOS消息, 按照增加的 FIB规则发送匹配项 对应的兴趣包。
容易知道, 原基站和新基站之间的路由器中, 除第一路由器之外的其它路 由器的作用就是转发 AOS, 即接收 AOS消息并发送 AOS消息。
需要说明的是, 在其它实施例中, 当原基站和新基站之间不存在路由到用 户端的聚合点时, 步骤 1303和步骤 1305的执行主体为原基站。
步骤 1306: 新基站接收到匹配项对应的兴趣包后查找 CS, 当 CS不存在 内容名称对应的内容时,按照增加的 FIB规则转发匹配项对应的兴趣包并更新 PIT表。
当存在内容名称对应的内容时,新基站将内容名称对应的内容封装为数据 包, 发送给用户端, 以对该兴趣包作出响应。 在本实施例中, 由于新基站是第 一次接收到包括该内容名称的兴趣包, 因此 CS中没有存储内容名称对应的内 谷。
如实施例 11所述, 所有节点的工作过程都相同, 因此, 该步骤 1306可以 与步骤 1102相同, 在此不再详述。
步骤 1307: 源端接收到匹配项对应的兴趣包后查找 Repository组件, 生成 回应匹配项对应的兴趣包的数据包并发送出去。
可以理解地, 该步骤 1307可以与步骤 1104相同, 在此不再详述。
步骤 1308: 新基站接收到数据包后, 存储数据包、 更新 PIT表、 向用户端 转发数据包。
如实施例 11所述, 所有节点的工作过程都相同, 因此, 该步骤 1308可以 与步骤 1105相同, 在此不再详述。
步骤 1309: 第一路由器接收到数据包后, 存储数据包、 更新 PIT表、 向用 户端转发数据包。
如实施例 11所述, 所有节点的工作过程都相同, 因此, 该步骤 1309可以 与步骤 1105相同, 在此不再详述。 步骤 1310: 用户端接收到数据包。
可以理解地, 该步骤 1310可以与步骤 1107相同, 在此不再详述。 在本实 施例中, 该步骤 1310的数据包是对步骤 1305中第一路由器发送的匹配项对应 的兴趣包的响应。
可选地,本实施例的方法还可以包括步骤 1311: 当节点在设定时间没有按 照增加的 FIB规则发送兴趣包时, 节点删除增加的 FIB规则。
可以理解地, 该步骤 1311可以与步骤 1116相同, 在此不在详述。
需要说明的是, 在增加的 FIB规则删除之前, 源端又进行了切换, FIB规 则又增加了一个。 由于增加的 FIB规则中的 RP都是源端在通信发起时的服务 基站名称 /源端名称。因此可以与兴趣包进行最长匹配规则的 RP有两个,此时, 节点会同时向满足最长前缀匹配规则的 RP对应的接口发送兴趣包, 从而确保 兴趣包发送到源端。
本发明实施例通过接收第一 SHI, 第一 SHI包括原基站的 RP/第一 SHI标 识 /SRP, SRP为源端在通信发起时的服务基站名称 /源端名称, 并根据 SRP, 增加 FIB规则, 由于兴趣包包括源端在通信发起时的服务基站名称 /源端名称 / 内容名称, 增加之前的 FIB规则中的 SRP为源端在通信发起时的服务基站名 称,因此根据路由的最长前缀匹配规则,发送给源端的兴趣包会按照增加的 FIB 规则发送, 实现了通过新基站将用户端发送的兴趣包转发给源端, 整个过程不 需要设置专门的间接服务器对兴趣包进行转发, 筒化了系统设置。 而且兴趣包 不需要进行重新封装即可发给源端, 提高了通信效率。 另外, 在源端切换时, 直接根据第一 SHI中的 SRP增加 FIB规则, 以使发送给源端的兴趣包按照增 加的 FIB规则发送, 不需要等待源端发送其切换后的可路由前缀, 也不需要将 兴趣包进行重新封装, 耗时较短(在实验环境中约 0.1秒), 可以满足实时性要 求。 需要说明的是: 上述实施例提供的基于内容中心网络的数据传输装置在传 输数据时, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以根据 需要而将上述功能分配由不同的功能模块完成, 即将装置的内部结构划分成不 同的功能模块, 以完成以上描述的全部或者部分功能。 另外, 上述实施例提供 的基于内容中心网络的数据传输方法与基于内容中心网络的数据传输装置实 施例属于同一构思, 其具体实现过程详见方法实施例, 这里不再赘述。 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储 于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘 或光盘等。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。
71

Claims

权 利 要 求 书
1、 一种基于内容中心网络 CCN的数据传输装置, 其特征在于, 所述装置 包括:
接收模块, 用于接收第一源端切换指示, 所述第一源端切换指示包括目的 基站的可路由前^ /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前 缀为所述源端在通信发起时的服务基站名称 /所述源端名称, 所述目的基站为所 述源端在切换前的服务基站或所述源端在切换后的服务基站;
规则增加模块, 用于根据所述源端可路由前缀, 增加转发信息库规则, 增 加的所述转发信息库规则包括所述源端可路由前缀和在所述源端切换后传输数 据给所述源端的接口之间的对应关系。
2、 根据权利要求 1所述的装置, 其特征在于, 当所述第一源端切换指示是 由所述源端在切换完成时发送的时, 所述目的基站为所述源端在切换前的服务 基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切换 指示上一跳节点的互联网协议 IP地址对应的接口; 或者,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
3、 根据权利要求 1所述的装置, 其特征在于, 当所述第一源端切换指示是 由所述源端在切换前的服务基站发送的时, 所述目的基站为所述源端在切换后 的服务基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一源 端切换指示下一跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示是 根据所述源端在切换即将发生时发送的第二源端切换指示构造的, 所述第二源 端切换指示包括所述源端在通信发起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由前缀。
4、 根据权利要求 1-3任一项所述的装置, 其特征在于, 所述第一源端切换 指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序号; 所述装置还包括: 查找模块, 用于在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容 名称与所述最后一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个 兴趣包中的序号的兴趣包;
发送模块, 用于当存在所述匹配项时, 按照增加的所述转发信息库规则发 送所述匹配项对应的兴趣包。
5、 根据权利要求 4所述的装置, 其特征在于, 所述发送模块用于, 当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 或者, 当所述第一源端切换指示是由所述源端在切换前的服务基站发送的时, 在接收 到所述源端在切换后的服务基站发送的源端切换指示确认消息之后, 按照增加 的所述转发信息库规则发送所述匹配项对应的兴趣包, 所述源端切换指示确认 消息用于表示所述源端完成切换。
6、 根据权利要求 4所述的装置, 其特征在于, 所述发送模块还用于, 当不存在所述匹配项时, 在接收到所述源端在切换后的服务基站发送的源 端切换指示确认消息之后, 向所述源端在切换前的服务基站发送所述源端切换 指示确认消息, 所述源端切换指示确认消息用于表示所述源端完成切换。
7、 根据权利要求 1-3任一项所述的装置, 其特征在于, 所述规则增加模块 包括:
接口选择单元, 用于在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接口和在源端切换后传输数据给源端的相邻节点的 IP地址的 对应关系;
关系建立单元, 用于建立选择的动态接口与所述源端可路由前缀的对应关 系, 以增加转发信息库规则, 所述选择的动态接口与所述源端可路由前缀—— 对应设置。
8、 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括:
规则删除模块, 用于当在设定时间内没有按照增加的所述转发信息库规则 发送兴趣包时, 删除增加的所述转发信息库规则。
73
9、 一种基于内容中心网络 CCN的数据传输装置, 其特征在于, 所述装置 包括中央处理器和存储器, 以及一个或者一个以上的程序, 其中一个或者一个 以上程序存储于所述存储器中, 且经配置以由一个或者一个以上所述中央处理 器执行, 所述一个或者一个以上程序包含用于进行以下操作的指令:
接收第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 ¾ /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端在 通信发起时的服务基站名称 /所述源端名称, 所述目的基站为所述源端在切换前 的服务基站或所述源端在切换后的服务基站;
根据所述源端可路由前缀, 增加转发信息库规则, 增加的所述转发信息库 规则包括所述源端可路由前缀和在所述源端切换后传输数据给所述源端的接口 之间的对应关系。
10、 根据权利要求 9所述的装置, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换完成时发送的时, 所述目的基站为所述源端在切换前的服 务基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切 换指示上一跳节点的互联网协议 IP地址对应的接口; 或者,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
11、 根据权利要求 9所述的装置, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换前的服务基站发送的时, 所述目的基站为所述源端在切换 后的服务基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一 源端切换指示下一跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示 是根据所述源端在切换即将发生时发送的第二源端切换指示构造的, 所述第二 源端切换指示包括所述源端在通信发起时的服务基站名称 /第二源端切换指示标 识 /所述源端可路由前缀。
12、 根据权利要求 9-11任一项所述的装置, 其特征在于, 所述第一源端切 换指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序 号; 所述一个或者一个以上程序还包含用于进行以下操作的指令: 在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后 一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号 的兴趣包;
当存在所述匹配项时, 按照增加的所述转发信息库规则发送所述匹配项对 应的兴趣包。
13、 根据权利要求 12所述的装置, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换完成时发送的时, 或者, 当所述第一源端切换指示是由所 述源端在切换前的服务基站发送的时, 所述一个或者一个以上程序包含用于进 行以下操作的指令:
接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
在接收到所述源端切换指示确认消息之后, 按照增加的所述转发信息库规 则发送所述匹配项对应的兴趣包。
14、 根据权利要求 12所述的装置, 其特征在于, 当不存在所述匹配项时, 所述一个或者一个以上程序还包含用于进行以下操作的指令:
接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
向所述源端在切换前的服务基站发送所述源端切换指示确认消息。
15、 根据权利要求 9-11任一项所述的装置, 其特征在于, 所述一个或者一 个以上程序包含用于进行以下操作的指令:
在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接 口和在源端切换后传输数据给源端的相邻节点的 IP地址的对应关系;
建立选择的动态接口与所述源端可路由前缀的对应关系, 以增加转发信息 库规则, 所述选择的动态接口与所述源端可路由前缀——对应设置。
16、 根据权利要求 15所述的装置, 其特征在于, 所述一个或者一个以上程 序还包含用于进行以下操作的指令:
当在设定时间内没有按照增加的所述转发信息库规则发送兴趣包时, 删除 增加的所述转发信息库规则。
17、 一种基于内容中心网络 CCN的数据传输装置, 其特征在于, 所述装置 包括:
指示构造模块, 用于构造第一源端切换指示, 所述第一源端切换指示包括 目的基站的可路由前缀 /第一源端切换指示标识 /源端可路由前缀, 所述源端可路 由前缀为所述源端在通信发起时的服务基站名称 /所述源端名称, 所述第一源端 切换指示标识用于指示收到所述第一源端切换指示的节点根据所述源端可路由 前缀, 增加转发信息库规则, 增加的所述转发信息库规则包括所述源端可路由 前缀和在所述源端切换后传输数据给所述源端的接口之间的对应关系, 所述目 的基站为所述源端在切换前的服务基站或所述源端在切换后的服务基站;
发送模块, 用于发送所述第一源端切换指示。
18、 根据权利要求 17所述的装置, 其特征在于, 所述第一源端切换指示是 由所述源端在切换完成时构造和发送的, 所述目的基站为所述源端在切换前的 服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造 和发送的, 所述目的基站为所述源端在切换后的服务基站。
19、 根据权利要求 17所述的装置, 其特征在于, 所述装置还包括: 接收模块, 用于接收所述源端发送的第二源端切换指示, 所述第二源端切 换指示是由所述源端在切换即将发生时发送的, 所述第二源端切换指示包括所 述源端在通信发起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由 前缀;
所述指示构造模块用于, 根据所述第二源端切换指示构造所述第一源端切 换指示。
20、根据权利要求 17-19任一项所述的装置, 其特征在于, 所述第一源端切 换指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序 号, 所述第一源端切换指示标识还用于, 指示收到所述第一源端切换指示的节 点在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后一 个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的 兴趣包, 当存在所述匹配项时, 按照增加的所述转发信息库规则发送所述匹配 项对应的兴趣包。
21、 一种基于内容中心网络 CCN的数据传输装置, 其特征在于, 所述装置 包括中央处理器和存储器, 以及一个或者一个以上的程序, 其中一个或者一个 以上程序存储于所述存储器中, 且经配置以由一个或者一个以上所述中央处理 器执行, 所述一个或者一个以上程序包含用于进行以下操作的指令:
构造第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 ¾ /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端在 通信发起时的服务基站名称 /所述源端名称, 所述第一源端切换指示标识用于指 示收到所述第一源端切换指示的节点根据所述源端可路由前缀, 增加转发信息 库规则, 增加的所述转发信息库规则包括所述源端可路由前缀和在所述源端切 换后传输数据给所述源端的接口之间的对应关系, 所述目的基站为所述源端在 切换前的服务基站或所述源端在切换后的服务基站;
发送所述第一源端切换指示。
22、 根据权利要求 21所述的装置, 其特征在于, 所述第一源端切换指示是 由所述源端在切换完成时构造和发送的, 所述目的基站为所述源端在切换前的 服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造 和发送的, 所述目的基站为所述源端在切换后的服务基站。
23、 根据权利要求 21所述的装置, 其特征在于, 所述一个或者一个以上程 序包含用于进行以下操作的指令:
接收所述源端发送的第二源端切换指示, 所述第二源端切换指示是由所述 源端在切换即将发生时发送的, 所述第二源端切换指示包括所述源端在通信发 起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由前缀;
根据所述第二源端切换指示构造所述第一源端切换指示。
24、根据权利要求 21-23任一项所述的装置, 其特征在于, 所述第一源端切 换指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序 号, 所述第一源端切换指示标识还用于, 指示收到所述第一源端切换指示的节 点在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后一 个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的 兴趣包, 当存在所述匹配项时, 按照增加的所述转发信息库规则发送所述匹配 项对应的兴趣包。
25、 一种通信系统, 其特征在于, 所述系统包括源端、 基站、 以及路由器, 所述基站和所述路由器用于,
接收第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 ¾ /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端在 通信发起时的服务基站名称 /所述源端名称, 所述目的基站为所述源端在切换前 的服务基站或所述源端在切换后的服务基站;
根据所述源端可路由前缀, 增加转发信息库规则, 增加的所述转发信息库 规则包括所述源端可路由前缀和在所述源端切换后传输数据给所述源端的接口 之间的对应关系。
26、 根据权利要求 25所述的系统, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换完成时发送的时, 所述目的基站为所述源端在切换前的服 务基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切 换指示上一跳节点的互联网协议 IP地址对应的接口; 或者,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
27、 根据权利要求 25所述的系统, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换前的服务基站发送的时, 所述目的基站为所述源端在切换 后的服务基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一 源端切换指示下一跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示 是根据所述源端在切换即将发生时发送的第二源端切换指示构造的, 所述第二 源端切换指示包括所述源端在通信发起时的服务基站名称 /第二源端切换指示标 识 /所述源端可路由前缀。
78
28、根据权利要求 25-27任一项所述的系统, 其特征在于, 所述第一源端切 换指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序 号;
所述基站和所述路由器还用于,
在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后 一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号 的兴趣包;
当存在所述匹配项时, 按照增加的所述转发信息库规则发送所述匹配项对 应的兴趣包。
29、 一种通信系统, 其特征在于, 所述系统包括源端、 基站、 以及路由器, 所述源端或所述基站用于,
构造第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前 ¾ /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端在 通信发起时的服务基站名称 /所述源端名称, 所述第一源端切换指示标识用于指 示收到所述第一源端切换指示的节点根据所述源端可路由前缀, 增加转发信息 库规则, 增加的所述转发信息库规则包括所述源端可路由前缀和在所述源端切 换后传输数据给所述源端的接口之间的对应关系, 所述目的基站为所述源端在 切换前的服务基站或所述源端在切换后的服务基站;
发送所述第一源端切换指示。
30、 根据权利要求 29所述的系统, 其特征在于, 所述第一源端切换指示是 由所述源端在切换完成时构造和发送的, 所述目的基站为所述源端在切换前的 服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造 和发送的, 所述目的基站为所述源端在切换后的服务基站。
31、根据权利要求 29所述的系统,其特征在于,所述源端或所述基站用于,: 接收所述源端发送的第二源端切换指示, 所述第二源端切换指示是由所述 源端在切换即将发生时发送的, 所述第二源端切换指示包括所述源端在通信发 起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由前缀;
根据所述第二源端切换指示构造所述第一源端切换指示。
32、根据权利要求 29-31任一项所述的系统, 其特征在于, 所述第一源端切 换指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序 号, 所述第一源端切换指示标识还用于, 指示收到所述第一源端切换指示的节 点在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后一 个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的 兴趣包, 当存在所述匹配项时, 按照增加的所述转发信息库规则发送所述匹配 项对应的兴趣包。
33、 一种基于内容中心网络的数据传输方法, 其特征在于, 所述方法包括: 接收第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前
¾ /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端在 通信发起时的服务基站名称 /所述源端名称, 所述目的基站为所述源端在切换前 的服务基站或所述源端在切换后的服务基站;
根据所述源端可路由前缀, 增加转发信息库规则, 增加的所述转发信息库 规则包括所述源端可路由前缀和在所述源端切换后传输数据给所述源端的接口 之间的对应关系。
34、 根据权利要求 33所述的方法, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换完成时发送的时, 所述目的基站为所述源端在切换前的服 务基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一源端切 换指示上一跳节点的互联网协议 IP地址对应的接口; 或者,
当所述第一源端切换指示是由所述源端在切换即将发生时发送的时, 所述 目的基站为所述源端在切换后的服务基站, 在所述源端切换后传输数据给所述 源端的接口, 为与所述第一源端切换指示下一跳节点的 IP地址对应的接口。
35、 根据权利要求 33所述的方法, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换前的服务基站发送的时, 所述目的基站为所述源端在切换 后的服务基站, 在所述源端切换后传输数据给所述源端的接口, 为与所述第一 源端切换指示下一跳节点的 IP地址对应的接口; 其中, 所述第一源端切换指示 是根据所述源端在切换即将发生时发送的第二源端切换指示构造的, 所述第二 源端切换指示包括所述源端在通信发起时的服务基站名称 /第二源端切换指示标 识 /所述源端可路由前缀。
36、根据权利要求 33-35任一项所述的方法, 其特征在于, 所述第一源端切 换指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序 号;
所述方法还包括:
在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后 一个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号 的兴趣包;
当存在所述匹配项时, 按照增加的所述转发信息库规则发送所述匹配项对 应的兴趣包。
37、 根据权利要求 36所述的方法, 其特征在于, 当所述第一源端切换指示 是由所述源端在切换完成时发送的时, 或者, 当所述第一源端切换指示是由所 述源端在切换前的服务基站发送的时, 所述按照增加的所述转发信息库规则发 送所述匹配项对应的兴趣包, 包括:
接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
在接收到所述源端切换指示确认消息之后, 按照增加的所述转发信息库规 则发送所述匹配项对应的兴趣包。
38、 根据权利要求 36所述的方法, 其特征在于, 当不存在所述匹配项时, 所述方法还包括:
接收所述源端在切换后的服务基站发送的源端切换指示确认消息, 所述源 端切换指示确认消息用于表示所述源端完成切换;
向所述源端在切换前的服务基站发送所述源端切换指示确认消息。
39、根据权利要求 33-35任一项所述的方法, 其特征在于, 所述根据所述源 端可路由前缀, 增加转发信息库规则, 包括:
在设定的动态范围内的接口中, 选择一个动态接口, 并建立选择的动态接 口和在源端切换后传输数据给源端的相邻节点的 IP地址的对应关系; 建立选择的动态接口与所述源端可路由前缀的对应关系, 以增加转发信息 库规则, 所述选择的动态接口与所述源端可路由前缀——对应设置。
40、 根据权利要求 39所述的方法, 其特征在于, 所述方法还包括: 当在设定时间内没有按照增加的所述转发信息库规则发送兴趣包时, 删除 增加的所述转发信息库规则。
41、 一种基于内容中心网络的数据传输方法, 其特征在于, 所述方法包括: 构造第一源端切换指示, 所述第一源端切换指示包括目的基站的可路由前
¾ /第一源端切换指示标识 /源端可路由前缀, 所述源端可路由前缀为所述源端在 通信发起时的服务基站名称 /所述源端名称, 所述第一源端切换指示标识用于指 示收到所述第一源端切换指示的节点根据所述源端可路由前缀, 增加转发信息 库规则, 增加的所述转发信息库规则包括所述源端可路由前缀和在所述源端切 换后传输数据给所述源端的接口之间的对应关系, 所述目的基站为所述源端在 切换前的服务基站或所述源端在切换后的服务基站;
发送所述第一源端切换指示。
42、 根据权利要求 41所述的方法, 其特征在于, 所述第一源端切换指示是 由所述源端在切换完成时构造和发送的, 所述目的基站为所述源端在切换前的 服务基站; 或者, 所述第一源端切换指示是由所述源端在切换即将发生时构造 和发送的, 所述目的基站为所述源端在切换后的服务基站。
43、 根据权利要求 41所述的方法, 其特征在于, 所述构造第一源端切换指 示, 包括:
接收所述源端发送的第二源端切换指示, 所述第二源端切换指示是由所述 源端在切换即将发生时发送的, 所述第二源端切换指示包括所述源端在通信发 起时的服务基站名称 /第二源端切换指示标识 /所述源端可路由前缀;
根据所述第二源端切换指示构造所述第一源端切换指示。
44、根据权利要求 41-43任一项所述的方法, 其特征在于, 所述第一源端切
82 换指示还包括所述源端在切换前接收到的最后一个兴趣包中的内容名称和序 号, 所述第一源端切换指示标识还用于, 指示收到所述第一源端切换指示的节 点在未决兴趣表中查找是否存在匹配项, 所述匹配项为内容名称与所述最后一 个兴趣包中的内容名称相同, 序号大于或等于所述最后一个兴趣包中的序号的 兴趣包, 当存在所述匹配项时, 按照增加的所述转发信息库规则发送所述匹配 项对应的兴趣包。
83
PCT/CN2013/088191 2013-11-29 2013-11-29 一种基于内容中心网络的数据传输装置、方法及通信系统 WO2015077992A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/088191 WO2015077992A1 (zh) 2013-11-29 2013-11-29 一种基于内容中心网络的数据传输装置、方法及通信系统
CN201380003085.2A CN104823479B (zh) 2013-11-29 2013-11-29 一种基于内容中心网络的数据传输装置、方法及通信系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088191 WO2015077992A1 (zh) 2013-11-29 2013-11-29 一种基于内容中心网络的数据传输装置、方法及通信系统

Publications (1)

Publication Number Publication Date
WO2015077992A1 true WO2015077992A1 (zh) 2015-06-04

Family

ID=53198235

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088191 WO2015077992A1 (zh) 2013-11-29 2013-11-29 一种基于内容中心网络的数据传输装置、方法及通信系统

Country Status (2)

Country Link
CN (1) CN104823479B (zh)
WO (1) WO2015077992A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603297A (zh) * 2016-12-22 2017-04-26 北京邮电大学 内容中心网络的内容提供者移动切换方法
CN108713336A (zh) * 2016-03-01 2018-10-26 瑞典爱立信有限公司 用户设备标识与信息中心联网请求的相关性
US11051355B2 (en) 2016-03-01 2021-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Correlation of user equipment identity to information centric networking request

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10122624B2 (en) * 2016-07-25 2018-11-06 Cisco Technology, Inc. System and method for ephemeral entries in a forwarding information base in a content centric network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271148A (zh) * 2010-05-13 2011-12-07 三星电子株式会社 内容中心网络的终端以及终端与集线器的通信方法
WO2013007208A1 (en) * 2011-07-12 2013-01-17 Huawei Technologies Co., Ltd. Method and apparatus for seamless mobility techniques in content-centric network
US20130039249A1 (en) * 2011-08-12 2013-02-14 Futurewei Technologies, Inc. Seamless Mobility Schemes in Named-Data Networking Using Multi-Path Routing and Content Caching
CN103415047A (zh) * 2013-07-25 2013-11-27 北京交通大学 一种内容中心网络中的移动性支持方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271148A (zh) * 2010-05-13 2011-12-07 三星电子株式会社 内容中心网络的终端以及终端与集线器的通信方法
WO2013007208A1 (en) * 2011-07-12 2013-01-17 Huawei Technologies Co., Ltd. Method and apparatus for seamless mobility techniques in content-centric network
US20130039249A1 (en) * 2011-08-12 2013-02-14 Futurewei Technologies, Inc. Seamless Mobility Schemes in Named-Data Networking Using Multi-Path Routing and Content Caching
CN103415047A (zh) * 2013-07-25 2013-11-27 北京交通大学 一种内容中心网络中的移动性支持方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108713336A (zh) * 2016-03-01 2018-10-26 瑞典爱立信有限公司 用户设备标识与信息中心联网请求的相关性
US11051355B2 (en) 2016-03-01 2021-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Correlation of user equipment identity to information centric networking request
CN108713336B (zh) * 2016-03-01 2021-11-26 瑞典爱立信有限公司 用户设备标识与信息中心联网请求的相关性
US11558918B2 (en) 2016-03-01 2023-01-17 Telefonaktiebolaget Lm Ericsson (Publ) Correlation of user equipment identity to information centric networking request
CN106603297A (zh) * 2016-12-22 2017-04-26 北京邮电大学 内容中心网络的内容提供者移动切换方法
CN106603297B (zh) * 2016-12-22 2019-05-31 北京邮电大学 内容中心网络的内容提供者移动切换方法

Also Published As

Publication number Publication date
CN104823479A (zh) 2015-08-05
CN104823479B (zh) 2018-12-07

Similar Documents

Publication Publication Date Title
US11003639B2 (en) Database data migration method, apparatus, terminal, system, and storage medium
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
WO2021243884A1 (zh) 一种网元确定方法和装置
WO2018170833A1 (zh) 一种上行数据传输方法、终端、网络侧设备及系统
US9848345B1 (en) Bi-directional wireless sensor network
WO2015090248A1 (zh) 服务器的过载保护方法及装置
WO2018176442A1 (zh) 接入方法、网络设备、终端设备和amf设备
WO2018233484A1 (zh) 会话管理方法、及装置
US11258708B2 (en) Communication method and communications apparatus
WO2017080378A1 (zh) 一种授权频谱辅助接入方法,网络设备及终端设备
TWI528182B (zh) 處理程序間通訊的方法及裝置
WO2015043198A1 (zh) 一种控制访问路由器的方法、装置及系统
WO2014026612A1 (zh) 数据传输方法、装置以及具有触摸显示屏的终端
WO2019014892A1 (zh) 测量配置方法及相关产品
WO2015058646A1 (zh) 队列消息的处理方法、控制消息进入队列的方法及装置
KR20170103921A (ko) 데이터 전송 방법 및 시스템, 네트워크 서버 및 사용자 단말
WO2014032559A1 (zh) 下载文件的方法和装置
WO2017096909A1 (zh) 建立数据连接的方法及装置
CN110140385A (zh) 一种通信系统间移动方法及装置
WO2015077992A1 (zh) 一种基于内容中心网络的数据传输装置、方法及通信系统
CN107147549A (zh) 智能家居设备联网方法及装置
WO2019057119A1 (zh) 基于移动终端的wifi热点连接方法及移动终端、存储介质
WO2019214362A1 (zh) 网络附着方法、装置和移动终端
TWI678903B (zh) 一種上行資料傳輸方法及終端
WO2017000495A1 (zh) 一种添加联系人的方法及设备

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

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

Country of ref document: EP

Kind code of ref document: A1