WO2015176239A1 - Data transmission method, base station, and terminal - Google Patents

Data transmission method, base station, and terminal Download PDF

Info

Publication number
WO2015176239A1
WO2015176239A1 PCT/CN2014/077958 CN2014077958W WO2015176239A1 WO 2015176239 A1 WO2015176239 A1 WO 2015176239A1 CN 2014077958 W CN2014077958 W CN 2014077958W WO 2015176239 A1 WO2015176239 A1 WO 2015176239A1
Authority
WO
WIPO (PCT)
Prior art keywords
base station
content block
indication message
target base
pushed
Prior art date
Application number
PCT/CN2014/077958
Other languages
French (fr)
Chinese (zh)
Inventor
刘江
黄韬
李将旭
倪慧
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480035971.8A priority Critical patent/CN105340323B/en
Priority to PCT/CN2014/077958 priority patent/WO2015176239A1/en
Publication of WO2015176239A1 publication Critical patent/WO2015176239A1/en

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

  • Embodiments of the present invention relate to the field of communications technologies, and, more particularly, to a method, a base station, and a terminal for data transmission.
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • problems such as poor scalability, weak dynamic continuity, low security and controllability, and high operating costs.
  • the Internet is gradually shifting from a host center to a content center.
  • Countries around the world have launched research on content-centric future networks, including the content center network (CCN, Content-Centric Network) / named data network in North America. (NDN, Named-Data Networking), Data-Oriented Network Architecture (DONA), and the European Union's Publish-Subscribe Internet Routing Paradigm (PSIRP) architecture and information network (Netlnf, Network of Information ) etc.
  • the mobile terminal when the mobile terminal performs handover between two base stations, it needs to re-send the interest packet requesting the content to the target base station after the handover is completed, or send a message after the handover is completed to trigger the target base station to request the data packet from the original base station, and time utilization.
  • the low rate will cause a large delay in data transmission and affect the user experience.
  • the embodiments of the present invention provide a data transmission method, a base station, and a terminal, which can reduce the delay of data transmission and improve the user experience when performing base station handover.
  • the first aspect provides a base station, where the base station includes: a first receiving module, configured to receive a first indication message sent by a terminal that is to be handed over from the base station to the target base station, where the first indication message is used to indicate that the base station sends the target base station to the target base station. a content block to be pushed; a determining module, configured to determine, according to the first indication message received by the first receiving module, a content block to be pushed; the first sending module, configured to send, to the target base station, the content block to be pushed determined by the determining module .
  • the first receiving module The received first indication message includes: an identifier of the base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
  • the first indication message received by the first receiving module is further used to indicate that the base station corresponds to the content block to be pushed
  • the port of the query waiting list PIT entry is modified to the port corresponding to the target base station
  • the base station further includes: a modifying module, configured to modify, according to the first indication message, the port of the PIT entry corresponding to the content block to be pushed as the target
  • the port corresponding to the base station the first sending module is specifically configured to: send the content block to be pushed to the target base station according to the PIT entry.
  • the base station further includes: a generating module, configured to generate a second indication message according to the first indication message, where The indication message includes an identifier of the target base station and an identifier of the content block of the start label in the content block to be pushed, the second indication message is used to indicate that the base station has a content block to be pushed to the target base station, and the second sending module is configured to target The base station sends a second indication message generated by the generating module, where the second receiving module is configured to receive the interest packet sent by the target base station according to the second indication message, where the first sending module is specifically configured to: according to the interest packet received by the second receiving module, The target base station transmits a corresponding content block to be pushed.
  • a generating module configured to generate a second indication message according to the first indication message, where The indication message includes an identifier of the target base station and an identifier of the content block of the start label in the content block to be pushed, the second indication message is used to indicate that the base station has a content
  • the first indication message received by the first receiving module and the second indication message generated by the generating module further include quantity information
  • the quantity information is used to indicate the number of interest packets sent by the target base station.
  • the second aspect provides a base station, where the base station includes: a first receiving module, configured to receive a second indication message sent by the original base station, where the second indication message includes a identifier of the base station and a content block to be pushed.
  • An identifier of the content block of the start label is used to indicate that the original base station has a content block to be pushed to the target base station
  • the first sending module is configured to send, according to the second indication message received by the first receiving module, the original base station
  • the interest packet is used to request the original base station to request the content block to be pushed.
  • the second receiving module is configured to receive the corresponding content block to be pushed sent by the original base station according to the interest packet.
  • the base station further includes: a recording module, configured to record a quantity of the interest packet sent by the first sending module to the original base station; and a control module, configured to be in interest When the number of packets exceeds the threshold, the control base station stops transmitting the interest packet to the original base station.
  • the second indication message received by the first receiving module further includes quantity information, where the quantity information is used to indicate that the target base station sends the interest The number of packets;
  • the base station further includes: a recording module, configured to record the number of interest packets sent to the original base station; and a control module, configured to: when the number of interest packets exceeds the quantity information, control the base station to stop sending the interest packets to the original base station.
  • a third aspect provides a terminal, where the terminal includes: a generating module, configured to generate a first indication message when the terminal is to be handed over from the original base station to the target base station, where the first indication message is used to indicate the original base station to the target base station Sending a content block to be pushed; the sending module is configured to send, to the original base station, a first indication message generated by the generating module.
  • the first indication message generated by the generating module includes: an identifier of the original base station, an identifier of the target base station, and a content of a start label in the content block to be pushed.
  • the generating module is configured to: generate a first indication message according to the identifier of the original base station, the identifier of the target base station, and the identifier of the content block in the last received data packet.
  • the first indication message generated by the generating module is used to indicate that the original base station queries the content block to be pushed
  • the port waiting for the PIT entry of the table is modified to the port corresponding to the target base station.
  • the first indication message generated by the generating module is further quantity information, where the quantity information is used to indicate that the target base station sends the interest packet.
  • the terminal further includes: a determining module, configured to determine, according to the label of the content block requested in the last interest packet sent by the terminal, and the label of the content block in the last received data packet, to indicate that the target base station sends The number of interest packages.
  • a fourth aspect provides a data transmission method, where the method includes: the original base station receives a first indication message sent by a terminal that is to be handed over from the original base station to the target base station, where the first indication message is used to indicate that the original base station sends the data to the target base station.
  • the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
  • the first indication message is further used to indicate that the original base station selects a query waiting table PIT corresponding to the content block to be pushed.
  • the port of the entry is modified to be the port corresponding to the target base station; the method further includes: the original base station modifying the port of the PIT entry corresponding to the content block to be pushed as the target according to the first indication message And the original base station sends the content block to be pushed to the target base station, where the original base station sends the content block to be pushed to the target base station according to the PIT entry.
  • the method before the original base station sends the content block to be pushed to the target base station, the method further includes: the original base station according to the first The indication message generates a second indication message, where the second indication message includes an identifier of the target base station and an identifier of the content block of the start label in the content block to be pushed, and the second indication message is used to indicate that the original base station has content to be pushed to the target base station.
  • the original base station sends a second indication message to the target base station; the original base station receives the interest packet sent by the target base station according to the second indication message; wherein, the original base station sends the content block to be pushed to the target base station, including: the original base station according to the interest packet, Send the corresponding content block to be pushed to the target base station.
  • the first indication message and the second indication message further include quantity information, where the quantity information is used to indicate that the target base station sends the interest The number of packages.
  • a fifth aspect provides a method for data transmission, where the method includes: receiving, by a target base station, a second indication message sent by an original base station, where the second indication message includes an identifier of the target base station and a content of a start label in the content block to be pushed.
  • the target base station sends an interest packet to the original base station according to the second indication message, where the interest packet is used to request the content block to be pushed to the original base station;
  • the target base station receives the corresponding content block to be pushed sent by the original base station according to the interest packet.
  • the method further includes: the target base station recording the interest packet sent to the original base station Quantity; when the number of interest packets exceeds the threshold, the target base station stops transmitting interest packets to the original base station.
  • the second indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station, and the method further includes: the target base station records the original The number of interest packets transmitted by the base station; when the number of interest packets exceeds the number indicated in the quantity information, the target base station stops transmitting the interest packets to the original base station.
  • the sixth aspect provides a method for data transmission, where the method includes: when determining that the terminal is to be handed over from the original base station to the target base station, the first indication message is used to indicate that the original base station sends the target base station to the target base station. Pushed content block; the terminal sends a first indication message to the original base station.
  • the first indication message The method includes: the identifier of the original base station, the identifier of the target base station, and the identifier of the content block of the starting label in the content block to be pushed; the terminal generating the first indication message, including: the terminal according to the identifier of the original base station, the identifier of the target base station, and the received The identifier of the content block in the last packet of the packet generates a first indication message.
  • the first indication message is used to indicate a query waiting table PIT table corresponding to the content block to be pushed by the original base station
  • the port of the item is modified to the port corresponding to the target base station.
  • the first indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
  • the method further includes: determining, by the terminal, the target base station according to the label of the content block requested in the last interest packet sent and the label of the content block in the last received data packet. The number of interest packets sent.
  • the data transmission method, the base station, and the terminal provided by the embodiment of the present invention can reduce the data transmission caused by the base station handover by the original base station actively pushing the cached content to the target base station while the terminal performs the handover. The delay, improving the user experience.
  • FIG. 1 is a schematic block diagram of a base station in accordance with one embodiment of the present invention.
  • FIG. 2 is a schematic block diagram of a base station according to another embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of a terminal in accordance with one embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of a base station according to another embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a base station according to another embodiment of the present invention.
  • FIG. 6 is a schematic block diagram of a terminal according to another embodiment of the present invention.
  • FIG. 7 is a schematic flow chart of a method of data transmission according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a method of data transmission according to another embodiment of the present invention.
  • 9 is a schematic flow chart of a method of data transmission according to another embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of a method of data transmission according to another embodiment of the present invention.
  • 11 is a schematic flow chart of a method of data transmission according to another embodiment of the present invention.
  • FIG. 12 is a schematic flowchart of a method of data transmission according to another embodiment of the present invention.
  • the solution for CCN mobility is mainly achieved by adjusting the transmission path of interest packets and data packets by control information.
  • the terminal is currently connected to a certain base station. If the terminal requests the content, the terminal sends an interest packet requesting the content to the base station. After receiving the interest packet and parsing the base station, the base station first matches the content cached by the base station itself, if the match is matched. If successful, the corresponding data packet is sent to the terminal; if the matching is unsuccessful, the interest packet is forwarded to the corresponding source end, and the source end returns the corresponding content to the base station in the form of a data packet, and then the base station forwards the data to the terminal.
  • content is divided into a number of content blocks, each of which has its corresponding label.
  • a content is divided into 10 content blocks, each with a number of 1-10.
  • the terminal sequentially sends 10 interest packets to the base station to request the 10 content blocks.
  • the base station forwards the 10 interest packets to the source end in turn.
  • the source end sequentially returns 10 data packets to the base station, and then the base station forwards the data to the terminal. Therefore, the transmission process of the content is delayed for the terminal, that is, when the terminal sends 5 interest packets to the base station, it may only receive 2 data packets forwarded by the base station. If the terminal moves at this time and switches from the original base station to the target base station, the third to fifth data packets cannot be received from the original base station.
  • the terminal after switching to the target base station, the terminal needs to resend the third to fifth interest packets to the target base station, and the target base station forwards the interest packets to the source end.
  • the data transmission When the base station is switched, the data transmission generates a large delay, which affects the user experience.
  • an improved solution is now proposed.
  • the process of the solution is as follows: If the target base station is found when the terminal moves, when the handover from the original base station to the target base station is started, an indication message is first sent to notify the original base station that the terminal is about to perform handover, and after the original base station receives the indication message, The sending of the data packet to the terminal is stopped, but the process of forwarding the interest packet to the source end and receiving the data packet from the source end is not stopped, that is, the original base station caches the content block that the terminal has requested but has not received yet. Then, After completing the handover from the original base station to the target base station, the terminal sends an indication message to the target base station to notify the target base station to request the buffered content block from the original base station.
  • the target base station requests the cached content block from the original base station, and the buffered content block needs a passive request to transmit, and the time utilization rate is low. Moreover, if the number of hops between the original base station and the target base station is large, a large delay will still occur, which seriously affects the user experience.
  • the present invention proposes a solution to the above problems.
  • a terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, User equipment or user equipment (UE, User Equipment ⁇ terminal can be cellular phone, cordless phone, SIP (Session Initiation Protocol) phone, WLL (Wireless Local Loop) station, PDA (Personal Digital Assistant) , personal digital processing), handheld devices with wireless communication capabilities, in-vehicle devices, computing devices, or other processing devices connected to wireless modems.
  • SIP Session Initiation Protocol
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • the base station may be used to communicate with a mobile device, and the base station may be a Wi-Fi AP (Access Point, a wireless access point), or a GSM (Global System of Mobile communication). ) or BTS (Base Transceiver Station) in CDMA (Code Division Multiple Access), or NB (NodeB, Base Station) in WCDMA (Wideband Code Division Multiple Access) It may also be an eNB or an eNodeB (Evolved Node B) in an LTE (Long Term Evolution), or a relay station or an access point, or a base station device in a future 5G network.
  • Wi-Fi AP Access Point, a wireless access point
  • GSM Global System of Mobile communication
  • BTS Base Transceiver Station
  • CDMA Code Division Multiple Access
  • NB NodeB, Base Station
  • WCDMA Wideband Code Division Multiple Access
  • FIG. 1 shows a schematic block diagram of a base station 100 provided in accordance with an embodiment of the present invention.
  • the base station 100 shown in Fig. 1 is a base station to which the terminal will be handed over, that is, the original base station.
  • the base station 100 includes a first receiving module 110, a determining module 120, and a first sending module 130, where:
  • the first receiving module 110 is configured to receive a first indication message that is sent by the terminal that is to be switched from the base station 100 to the target base station, where the first indication message is used to instruct the base station 100 to send the content block to be pushed to the target base station;
  • the determining module 120 is configured to determine, according to the first indication message received by the first receiving module 110, the content block to be pushed;
  • the first sending module 130 is configured to send, to the target base station, the content block to be pushed determined by the determining module 120. Therefore, the base station provided by the embodiment of the present invention determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover.
  • the content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
  • the first indication message received by the first receiving module 110 includes: an identifier of the base station 100, an identifier of the target base station, and an identifier of a content block of a starting label in the content block to be pushed.
  • the terminal may determine, according to the currently detected signal strength of each base station, the target base station, and determine the identifier of the target base station by using the prefix information advertised by the target base station, that is, the name of the target base station; the interest packet according to the currently sent request content. And the received data packet containing the content block, the content block of the start label in the content block to be pushed that needs to be pushed by the base station 100 can be determined.
  • the base station 100 is notified of the identity of the target base station and the identity of the content block of the start label in the content block to be pushed, and the base station 100 can push the corresponding content block to the target base station.
  • the identifier of the content block of the start label in the content block to be pushed includes the identifier of the content and the label of the content block.
  • the identifier of the content block of the start label in the content block to be pushed may further include other information, such as the information of the source end, which is not limited by the embodiment of the present invention.
  • the first indication information further includes an identifier of the base station 100, so that the terminal searches for the routing information according to the identifier of the base station, to send the first indication information to the base station 100,
  • the embodiment does not limit this.
  • the first indication message received by the first receiving module 110 is further used to indicate that the base station 100 changes the port ⁇ of the PIT (Pending Interest Table) entry corresponding to the content block to be pushed to the target base station.
  • Port ⁇ of the PIT Point Interest Table
  • the base station 100 also includes:
  • a modifying module configured to change, according to the first indication message, a port of the PIT entry corresponding to the content block to be pushed to a port corresponding to the target base station;
  • the first sending module 130 is specifically configured to: send the content block to be pushed to the target base station according to the PIT entry.
  • a PIT is configured in the base station, and the PIT is used to store data requests that the terminal has sent but has not received a response, and ports corresponding to the respective requests.
  • the base station 100 Before the terminal disconnects from the base station 100, the base station 100 has sent a part of the interest packet for the data request to the source, but the data packet responding to the data request has not been sent to the base station 100, or the base station 100 is from the source end. received Packets that respond to these data requests, but have not yet sent these packets to the terminal. Thus, there is a corresponding entry in the PIT of the base station 100 to instruct the base station to transmit the corresponding data packet to the terminal.
  • the terminal When the terminal starts the base station handover and disconnects from the base station 100, the terminal can no longer receive the data packet sent by the base station 100 to the terminal according to the PIT entry. Therefore, the entries in the PIT are invalid, and the ports of the entries can be modified so that the data packets originally sent to the terminal are sent to the target base station.
  • the terminal may determine the identifier name of the content block of the start label in the content block to be pushed according to the identifier of the content block included in the last received data packet, and use the identifier A of the base station 100 and the target base station.
  • the identifier B and the identifier of the content block of the start label in the content block to be pushed construct a user push indication (UPI, User Push Indication), which is sent as a first indication message to the first receiving module 110 of the base station 100, triggering the base station 100 pushes the corresponding content block to the target base station.
  • UPI User Push Indication
  • the format of the UPI can be various.
  • the UPI can be ccnx: /A/fix_PIT/name/B, where the identifier A of the base station 100 is used for routing, and the fix_PIT is used as a keyword to indicate that the UPI is used to indicate the modification of the PIT. Entry.
  • the UPI may be parsed to modify, in the PIT of the base station 100, an entry corresponding to the content block that belongs to the same content as the content label of the name, and the entry of the data packet corresponding to the content block.
  • the port is modified to the port corresponding to the target base station B.
  • the UPI may also include other information.
  • the UPI may further include quantity information indicating the number n of content blocks to be pushed, so that the base station 100 determines the content block to be pushed more accurately and efficiently.
  • the UPI format may be ccnx: /A /fix_PIT/name/n/B, which is not limited in this embodiment of the present invention.
  • the determining module 120 determines the content block to be pushed and the port corresponding to the target base station B, and then the modification module modifies the port of the related PIT entry.
  • the first sending module 130 sends the content block to be pushed to the target base station according to the modified entry.
  • the base station 100 may further include:
  • a generating module configured to generate a second indication message according to the first indication message, where the second indication message includes an identifier of the target base station and an identifier of a content block of a start label in the content block to be pushed, where the second indication message is used to indicate the base station 100 There is a content block to be pushed to the target base station;
  • the first sending module 130 is specifically configured to:
  • the terminal may determine, according to the identifier of the content block included in the last received data packet, the identifier name of the content block of the start label in the content block to be pushed, and use the identifier B and the start label of the target base station.
  • the identifier of the content block constructs a UPI
  • the first receiving module 110 of the base station 100 triggers the first sending module 130 of the base station 100 to push the corresponding content block to the target base station.
  • the format of the UPI may be various, for example, it may be ccnx: /A/push/B/PUSH/name, and the UPI may be parsed into the same as the content block of the base label A (base station 100) and the start label identified as name.
  • the data packet corresponding to the content block of the same content is pushed to the target base station B.
  • A is used to help the terminal perform routing, so that the indication information is sent to the base station 100, and push and PUSH are keywords.
  • the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited in this embodiment of the present invention.
  • the second sending module sends a second indication message to the target base station to indicate that the target base station receives the content block to be pushed, thereby actively pushing the target base station.
  • the second indication message may be a base station push indication (SPI, Station Push Indication).
  • SPI can be ccnx:/B/PUSH/name.
  • the SPI can be parsed as the base station A (base station 100) indicating that the target base station B receives the buffered data block corresponding to the content block.
  • There are a plurality of formats of the SPI which are not limited in the embodiment of the present invention.
  • the identifier of the content block of the start label includes the start label of the content block to be pushed, and after receiving the SPI and parsing, the target base station sends the request content block in the interest packet to the base station 100.
  • the interest package also carries the corresponding label of the content block. For example, if a content contains 10 content blocks and the current terminal only receives 2 data packets, the identifier of the content block of the start label includes the label number 3.
  • the second receiving module of the base station 100 receives the interest packet sent by the target base station according to the second indication message; the first sending module 130 sends the corresponding content block to be pushed to the target base station according to the interest packet.
  • the first indication message received by the first receiving module 110 and the second indication message generated by the generating module further include quantity information, where the quantity information is used to indicate the number of interest packets sent by the target base station.
  • the terminal can record the label of the content block requested in the interest packet sent by the base station in real time, and the label of the content block in the data packet currently received by the terminal.
  • the terminal can learn the maximum label of the content block requested in the interest packet that has been sent to the base station 100, and can also know the maximum label of the content block in the data packet that has been received.
  • the difference between the maximum label of the content block requested in the already sent interest packet and the maximum label of the content block in the already received data packet can be used as the number of content blocks to be pushed. For example, the maximum number of the content block requested by the terminal to the base station 100 is 5, and the maximum number of the content block in the data packet that the current terminal has received is 2, and the number of the content blocks to be pushed is 3 .
  • the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the base station A (base station 100) to the target base station B, and push The number of data packets or content blocks is n, so the number of interest packets that the target base station should send is also n.
  • UPI can also be ccnx: /A/B/PUSH/name/pushnum/n.
  • the SPI can be ccnx:/B/PUSH/name/pushnum/n.
  • the SPI can be parsed as the base station A indicating that the target base station B receives the buffered data block corresponding to the content block, and the number of pushed data packets is n.
  • the format of the UPI and the SPI can be various, which is not limited by the embodiment of the present invention.
  • the maximum label of the content block requested in the sent interest packet currently recorded by the terminal and the maximum label of the content block in the already received data packet may not be accurate, one additional value may be added to the difference value.
  • the number of redundancy that is, adding an appropriate quantity to the difference obtained above, as the quantity information of the content block to be pushed, also as the number of interest packets to be sent by the target base station, to ensure that the content blocks buffered by the original base station are both It can be pushed, which is not limited by the embodiment of the present invention.
  • the base station 100 may correspond to an execution body of the method according to the embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the base station 100 are respectively Corresponding processes for implementing the respective methods in FIG. 7 to FIG. 12 are not described herein for brevity.
  • the base station determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover.
  • the content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
  • FIG. 2 shows a schematic block diagram of a base station 200 provided in accordance with an embodiment of the present invention.
  • the base station 200 shown in Fig. 2 is a base station to which the terminal will access, that is, a target base station.
  • the base station 200 includes a first receiving module 210, a first sending module 220, and a second receiving module 230, where:
  • the first receiving module 210 is configured to receive a second indication message sent by the original base station, where the second indication is The second indication message includes an identifier of the base station 200 and an identifier of the content block of the start label in the content block to be pushed, and the second indication message is used to indicate that the original base station has a content block to be pushed to the base station 200.
  • the first sending module 220 And sending, by the second indication message received by the first receiving module 210, an interest packet to the original base station, where the interest packet is used to request the original base station to send the content block;
  • the second receiving module 230 is configured to receive a corresponding content block to be pushed sent by the original base station according to the interest packet.
  • the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover.
  • the base station 200 further includes:
  • the recording module is configured to record the number of the interest packets sent by the first sending module 220 to the original base station
  • the control module is configured to control the first sending module 220 to stop sending the interest packets to the original base station when the number of the interest packets exceeds the threshold.
  • the first receiving module 210 of the base station 200 receives the second indication sent by the original base station to construct a series of interest packets, and the interest packets are used to request the content block buffered by the original base station.
  • the second indication message may be an SPI in the format of ccnx:/B/PUSH/name, where B is the identifier of the base station 200.
  • B is the identifier of the base station 200.
  • the difference between the label of the content block in the interest packet sent by the terminal and the label in the already received packet due to the transmission delay has an empirical value.
  • the experience value can have different values depending on the situation. For example, this experience value can be 10, or 5, 15. Therefore, in general, the number of content blocks buffered by the original base station is consistent with the empirical value.
  • the first sending module 220 of the base station 200 transmits the interest packet to the original base station, and the recording module of the base station 200 can record the number of the sent interest packets.
  • the control module controls the first transmitting module 220 to stop transmitting the interest packets to the original base station.
  • the threshold value may be selected from the empirical value mentioned above, or a redundant number may be added to the above empirical value, which is not limited by the embodiment of the present invention.
  • a counter may be set to record the number of interest packets it sends to the original base station, and the counter is incremented by one for each interest packet sent until the number of counter records exceeds The set value of the threshold, the first sending module 220 stops The interest packet is sent to the original base station.
  • the base station 200 may not set a threshold.
  • the first sending module 220 stops transmitting the interest packet to the original base station.
  • the second indication message received by the first receiving module 210 further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the base station 200;
  • the base station 200 also includes:
  • a recording module configured to record the number of interest packets sent to the original base station
  • the control module is configured to stop sending the interest packet to the original base station when the number of interest packets exceeds the quantity information.
  • the first receiving module 210 of the base station 200 receives information such as the second indication cancellation name sent by the original base station and the number n of interest packets sent by the target base station, and constructs n interest packets, where the n interest packets are used to request the original base station.
  • the cached content block When the number of the transmitted interest packets exceeds n, the first transmitting module 220 stops transmitting the interest packets to the original base station.
  • n is the number of the content blocks to be pushed determined by the terminal according to the difference between the maximum label of the content block requested in the interest packet currently sent to the original base station and the maximum label of the content block in the received data packet.
  • the second message can be an SPI in the format ccnx:/B/PUSH/name/pushnum/n.
  • a counter can be set, and the initial value of the counter is set to n.
  • the base station 200 decrements one of the interest packet pair counters to the original base station until the counter value is 0, and the first transmitting module 220 stops transmitting the interest packet to the original base station.
  • the base station 200 may correspond to an execution body of the method according to the embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the base station 200 are respectively Corresponding processes for implementing the respective methods in FIG. 7 to FIG. 12 are not described herein for brevity.
  • the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover.
  • FIG. 3 shows a schematic block diagram of a terminal 300 provided in accordance with an embodiment of the present invention.
  • the terminal 300 shown in FIG. 3 is about to be handed over from the original base station to the target base station.
  • the terminal 300 includes a generating module. 310 and a sending module 320, wherein:
  • the generating module 310 is configured to: when determining that the terminal is to be handed over from the original base station to the target base station, generate a first indication message, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
  • the sending module 320 is configured to send, to the original base station, the first indication message generated by the generating module 310. Therefore, the terminal provided by the embodiment of the present invention, when determining that the base station is to be switched from the original base station to the target base station, triggers the original base station to push the cached content block to the target base station by transmitting the first indication message to the original base station, so that the base station handover is performed. At the same time, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • the first indication message generated by the generating module 310 includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed;
  • the generating module 310 is specifically configured to:
  • the generating module 310 may determine the identifier name of the content block of the start label according to the identifier of the content block included in the last data packet received by the current terminal 300, and use the identifier A of the original base station and the identifier B of the target base station. And identifying the UPI of the content block to be pushed, and transmitting the UPI as a first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station.
  • the format of the UPI may be various, which is not limited by the embodiment of the present invention.
  • the format of the UPI may be ccnx: /A/push/B/PUSH/name, and the UPI may be parsed into the same content that is buffered by the original base station A and the content block identified by the start label of the name.
  • the data packet corresponding to the content block is pushed to the target base station: 6.
  • A is used to help the terminal to perform routing, so as to send the indication information to the original base station A, push and PUSH as keywords.
  • the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited by the embodiment of the present invention.
  • the first indication message generated by the generating module 310 is used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station.
  • the generating module 310 may determine, according to the identifier of the content block included in the last data packet received by the current terminal 300, the identifier of the content block of the starting label in the content block to be pushed, and use the identifier of the original base station.
  • A the identity of the target base station B, the content block to be pushed
  • the identifier of the content block of the start label constructs a UPI
  • the sending module 320 sends the first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station.
  • the format of the UPI can be various.
  • the UPI can be ccnx: /A/fix_PIT/name/B, where fix_PIT is a keyword, which is used to indicate that the UPI is used to modify the PIT entry.
  • fix_PIT is a keyword, which is used to indicate that the UPI is used to modify the PIT entry.
  • the UPI may be parsed into a PIT in the original base station, and the content block corresponding to the content block identified by the start label of the name is the same as the content block belonging to the same content, and the port of the entry of the data packet is modified to the target base station.
  • the port corresponding to B is ccnx: /A/fix_PIT/name/B, where fix_PIT is a keyword, which is used to indicate that the UPI is used to modify the PIT entry.
  • the UPI may be parsed into a PIT in the original base station, and the content block corresponding to the content block identified by the start label of the name is the same as the content block belonging to the
  • the first indication message may further include the number of content blocks to be pushed, which is beneficial for the original base station to more accurately determine the content block to be pushed, thereby modifying the corresponding PIT entry more effectively.
  • the UPI format can be ccnx: /A/fix_PIT/name/n/B, which can more accurately inform the original base station that it needs to modify n PIT entries, which can improve the efficiency of modification.
  • the first indication message generated by the generating module 310 is further quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
  • Terminal 300 also includes:
  • a determining module configured to determine, according to the label of the content block requested in the last interest packet sent by the terminal 300 and the label of the content block in the last received data packet, the number indicating the destination base station to send the interest packet.
  • the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the original base station A to the target base station B, and the pushed data packet Or the number of content blocks is n.
  • the SPI can be ccnxJB/PUSH/name/pushnum/r
  • the terminal 300 may correspond to an execution body of the method according to the embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the terminal 300 are respectively Corresponding processes for implementing the respective methods in FIG. 7 to FIG. 12 are not described herein for brevity.
  • the terminal when determining that the base station is to be switched from the original base station to the target base station, triggers the original base station to push the cached content block to the target base station by transmitting the first indication message to the original base station, so that the base station handover is performed.
  • the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • FIG. 4 shows a schematic block diagram of a base station 400 in accordance with another embodiment of the present invention.
  • the base station 400 includes a processor 410, a memory 420, a receiver 430, a transmitter 440, and a bus 450.
  • the processor 410 and the memory 420 are connected by a bus system 450 for storing instructions for executing instructions stored in the memory 420.
  • the receiver 430 is configured to:
  • the processor 410 is configured to:
  • Transmitter 440 is used to:
  • the content block to be pushed determined by the processor 410 is transmitted to the target base station.
  • the base station determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover.
  • the content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
  • the processor 410 may be a central processing unit (Central)
  • the processor 410 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates Or transistor logic devices, discrete hardware components, etc.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs off-the-shelf programmable gate arrays
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 420 can include read only memory and random access memory and provides instructions and data to the processor 410. A portion of memory 420 may also include non-volatile random access memory. For example, the memory 420 can also store information of the device type.
  • the bus system 450 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 450 in the figure.
  • each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 410 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 420, and the processor 410 reads the information in the memory 420, combining the same
  • the hardware completes the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the first indication message received by the receiver 430 includes: an identifier of the base station 400, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
  • the first indication message received by the receiver 430 is further used to indicate that the base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station;
  • the processor 410 is also used to:
  • the transmitter 440 is specifically configured to: send the content block to be pushed to the target base station according to the PIT entry. Optionally, before the transmitter 440 sends the content block to be pushed to the target base station,
  • the processor 410 is also used to:
  • Transmitter 440 is also used to:
  • Receiver 430 is also used to:
  • Transmitter 440 is also specifically used to:
  • the corresponding content block to be pushed is sent to the target base station.
  • the first indication message and the second indication message may further include quantity information, where the quantity information is used to indicate the number of interest packets sent by the target base station.
  • the base station 400 may correspond to an execution body of the method according to the embodiment of the present invention, and may also correspond to the base station 100, and each module in the base station 400
  • the above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 7 to FIG. 12, and are not described herein again for brevity.
  • the base station determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover.
  • the content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
  • FIG. 5 shows a schematic block diagram of a base station 500 in accordance with another embodiment of the present invention.
  • the base station 500 includes a processor 510, a memory 520, a receiver 530, a transmitter 540, and a bus 550.
  • the processor 510 and the memory 520 are connected by a bus system 550 for storing instructions for executing instructions stored in the memory 520.
  • the receiver 530 is configured to:
  • Transmitter 540 is used to:
  • the interest packet is sent to the original base station, and the interest packet is used to request the original base station for the content block to be pushed.
  • the receiver 530 is further configured to: receive a corresponding content block to be pushed sent by the original base station according to the interest packet.
  • the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover.
  • the processor 510 may be a central processing unit (Central)
  • the processor 510 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates Or transistor logic devices, discrete hardware components, etc.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs off-the-shelf programmable gate arrays
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 520 can include read only memory and random access memory and provides instructions and data to the processor 510. A portion of memory 520 may also include non-volatile random access memory. For example, the memory 520 can also store information of the device type.
  • the bus system 550 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 550 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 510 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in random access memory, flash memory, read only memory, programmable only Read memory or electrically erasable programmable memory, registers, etc., which are well-established in the field of storage media.
  • the storage medium is located in the memory 520.
  • the processor 510 reads the information in the memory 520 and completes the steps of the above method in combination with hardware. To avoid repetition, it will not be described in detail here.
  • the processor 510 is further configured to:
  • the control base station 500 stops transmitting the interest packets to the original base station.
  • the second indication message received by the receiver 530 further includes quantity information, where the quantity information is used to indicate the number of interest packets sent by the base station 500.
  • the processor 510 is also used to:
  • control base station 500 stops transmitting the interest packets to the original base station.
  • the base station 500 may correspond to an execution body of the method according to the embodiment of the present invention, and may also correspond to the base station 200, and each module in the base station 500
  • the above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 7 to FIG. 12, and are not described herein again for brevity.
  • the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover.
  • FIG. 6 shows a schematic block diagram of a terminal 600 in accordance with another embodiment of the present invention.
  • the terminal 600 includes a processor 610, a memory 620, a transmitter 630, and a bus 640.
  • the processor 610 and the memory 620 are connected by a bus system 640 for storing instructions for executing instructions stored by the memory 620.
  • the processor 610 is used to:
  • the first indication message is generated, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
  • Transmitter 630 is used to:
  • the terminal when determining that the original base station is to be handed over to the target base station, triggers the original base station to push the cache to the target base station by sending the first indication message to the original base station.
  • the content block enables the target base station to receive the content block that the terminal has requested but does not receive in advance while performing the base station handover, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • the processor 610 may be a central processing unit (CPU), and the processor 610 may also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits. (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and more.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 620 can include read only memory and random access memory and provides instructions and data to the processor 610. A portion of memory 620 may also include non-volatile random access memory. For example, the memory 620 can also store information of the device type.
  • the bus system 640 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 640 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 610 or an instruction in the form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software modules can be located in random memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc., which are well established in the art.
  • the storage medium is located in the memory 620.
  • the processor 610 reads the information in the memory 620 and combines the hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed;
  • the processor 610 is specifically configured to:
  • the first indication message is used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station.
  • the first indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
  • the processor 610 is further configured to: The number indicating the target base station to transmit the interest packet is determined according to the label of the content block requested in the last interest packet sent and the label of the content block in the last received data packet.
  • the terminal 600 may correspond to the execution body of the method according to the embodiment of the present invention, and may also correspond to the terminal 300, and the foregoing modules of the terminal 600 And other operations and/or functions, respectively, in order to implement the corresponding processes of the respective methods in FIG. 7 to FIG. 12, for brevity, no further details are provided herein.
  • the terminal when determining that the base station is to be switched from the original base station to the target base station, triggers the original base station to push the cached content block to the target base station by transmitting the first indication message to the original base station, so that the base station handover is performed.
  • the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • Figure 7 illustrates a method 700 of data transmission, which may be performed by a base station to be handed over, i.e., an original base station, in accordance with one embodiment of the present invention.
  • the method 700 includes: S710: The original base station receives a first indication message sent by a terminal that is to be handed over from the original base station to the target base station, where the first indication message is used to indicate that the original base station sends the content to be pushed to the target base station. Piece;
  • the original base station determines, according to the first indication message, a content block to be pushed.
  • the original base station sends the content block to be pushed to the target base station.
  • the terminal which is the base station that is switched out, is the original base station, and receives the first indication message sent by the terminal.
  • the terminal informs the original base station of the information that the terminal will switch from the original base station to the target base station through the first indication message.
  • the terminal also needs to inform the original base station of the related information of the content currently being received, so that the original base station pushes the content block that the terminal has sent the data request but has not received yet, that is, the data packet that the terminal has sent the interest packet but has not received yet. Give the target base station.
  • the original base station may determine, according to the received first indication message, the relevant situation of the content currently received by the terminal to be switched, and determine the content block that should be pushed to the target base station, that is, the content block to be pushed.
  • the original base station pushes the content block to be pushed to the target base station.
  • the push process may be to inform the target base station that the target base station sends the interest packet requesting the content block to complete the push, or may perform the push by tampering with the PIT entry.
  • the original base station determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the base station can be switched. Simultaneously pushing the cached content block can reduce The delay in data transmission caused by base station switching improves the user experience.
  • the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
  • the terminal may determine, according to the currently detected signal strength of each base station, the target base station, and determine the identifier of the target base station by using the prefix information advertised by the target base station; the interest packet according to the currently sent request content and the received content block.
  • the data packet can determine the content block of the starting label in the content block to be pushed that needs to be pushed by the original base station. Notifying the original base station of the identity of the target base station and the identity of the content block of the start label in the content block to be pushed, the original base station can push the corresponding content block to the target base station.
  • the identifier of the content block of the start label in the content block to be pushed includes the identifier of the content and the label of the content block.
  • the identifier of the content block of the starting label in the content block to be pushed may also include other information, such as the information of the source end, which is not limited by the embodiment of the present invention.
  • the first indication information further includes an identifier of the original base station, so that the terminal searches for the routing information according to the identifier of the base station, to send the first indication information to the original base station,
  • the embodiment does not limit this.
  • the first indication message is further used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station;
  • Method 700 can also include:
  • the original base station according to the first indication message, the port of the PIT entry corresponding to the content block to be pushed
  • ⁇ ' ⁇ is changed to the port corresponding to the target base station
  • the original base station sends the content block to be pushed to the target base station, including: the original base station sends the content block to be pushed to the target base station according to the PIT entry.
  • a PIT is configured in the base station, and the PIT is used to store data requests that the terminal has sent but has not received a response, and ports corresponding to the respective requests.
  • the original base station Before the terminal disconnects from the original base station, the original base station has sent a part of the interest packet for the data request to the source end, but the data packet responding to the data request has not been sent to the original base station, or the original base station is from the source end. Packets that responded to these data requests were received, but they have not yet been sent to the terminal. Therefore, a corresponding entry exists in the PIT of the original base station to instruct the base station to send the corresponding data packet to the terminal.
  • the terminal When the terminal starts the base station handover and disconnects from the original base station, the terminal can no longer receive the data packet sent by the original base station to the terminal according to the PIT entry. Therefore, the entries in the PIT are invalid, and the ports of the entries can be modified so that the data packets originally sent to the terminal are sent to the target base station.
  • the terminal may determine the identifier name of the content block of the starting label in the content block to be pushed according to the identifier of the content block included in the last received data packet, and use the identifier A of the original base station, the target base station.
  • the identifier of the content block of the starting label in the content block to be pushed constructs a UPI, which is sent as a first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station.
  • the format of the UPI can be various.
  • the UPI can be ccnx: /A/fix_PIT/name/B, where the identifier A of the original base station is used for routing, and the fix_PIT is a keyword, which is used to indicate that the UPI is used to indicate the modification of the PIT table. item.
  • the UPI may be parsed to modify, in the PIT of the original base station, the content item corresponding to the content block of the same content as the content label identified by the name, and the port of the data entry corresponding to the content block. Change to the port corresponding to the target base station B.
  • the UPI may also have other formats.
  • the UPI may further include quantity information indicating the number n of content blocks to be pushed, so that the original base station can more accurately determine the content block to be pushed.
  • the UPI format is ccnx: /A/fix_PIT/name/n/B, which is not limited in this embodiment of the present invention.
  • the original base station receives and parses the UPI, and determines the content block to be pushed and the port corresponding to the target base station B, and then modifies the related PIT entries.
  • the original base station sends the content block to be pushed to the target base station according to the modified entry.
  • the method 700 may further include:
  • the original base station generates a second indication message according to the first indication message, where the second indication message includes an identifier of a content block of a start label in the content block to be pushed, and the second indication message is used to indicate that the original base station has content to be pushed to the target base station.
  • the second indication message includes an identifier of a content block of a start label in the content block to be pushed, and the second indication message is used to indicate that the original base station has content to be pushed to the target base station.
  • the original base station sends a second indication message to the target base station
  • the original base station receives the interest packet sent by the target base station according to the second indication message
  • S730 includes:
  • the original base station sends a corresponding content block to be pushed to the target base station according to the interest packet.
  • the terminal may determine, according to the identifier of the content block included in the last received data packet, the identifier name of the content block of the start label in the content block to be pushed, and use the identifier B and the start label of the target base station.
  • the identifier of the content block constructs a User Push Indication (UPI), which is sent as a first indication message to the original base station, and triggers the original base station to push the corresponding content block to the target base station.
  • UPI User Push Indication
  • the format of the UPI can be various, for example, it can be ccnx: /A/push/B/PUSH/name, and the UPI can be parsed into the same content that caches the original base station A and the content block identified as the start label of the name.
  • the data packet corresponding to the content block is pushed to the destination Standard base station B.
  • A is used to help the terminal perform routing, so that the indication information is sent to the original base station A, and push and PUSH are keywords.
  • the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited by the embodiment of the present invention.
  • the original base station after receiving the parsing of the first indication message, sends a second indication message to the target base station to query whether the target base station agrees to receive the content block to be pushed, so as to actively push the cached content block to the target base station.
  • the second indication message can be an SPI.
  • the SPI can be ccnx:/B/PUSH/name.
  • the SPI can be parsed as the original base station A requests to push the data packet corresponding to the content block buffered by the original base station A to the target base station B.
  • There are a plurality of formats of the SPI which are not limited in the embodiment of the present invention.
  • the identifier of the content block of the start label includes the start label of the content block to be pushed, and after receiving the SPI and parsing, the target base station sends the content block in the interest packet to the original base station.
  • the interest package also carries the corresponding label of the content block. For example, if a content contains 10 content blocks and the current terminal only receives 2 data packets, the identification name of the content block to be pushed includes the content label of the content block to be pushed with a starting number of 3.
  • the original base station receives the interest packet sent by the target base station according to the second indication message. Then, the original base station sends the corresponding content block to be pushed to the target base station according to the interest packet.
  • the first indication message and the second indication message further include quantity information, where the quantity information is used to indicate the number of interest packets sent by the target base station.
  • the quantity information is sent so that the original base station can push the content block to the target base station more accurately and efficiently.
  • the terminal can record in real time the label of the content block requested in the interest packet sent to the base station, and the label of the content block in the data packet currently received by the terminal.
  • the terminal can learn the maximum label of the content block requested in the interest packet that has been sent to the original base station, and can also know the content block in the data packet that has been received.
  • Maximum number The difference between the maximum label of the content block requested in the already transmitted interest packet and the maximum label of the content block in the already received data packet can be used as the number of content blocks to be pushed. For example, the maximum number of the content block requested by the terminal to the original base station is 5, and the maximum number of the content block in the data packet that the current terminal has received is 2, and the number of the content blocks to be pushed is 3.
  • the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the original base station A to the target base station B, and the pushed data packet Or the number of content blocks is n.
  • it can also be ccnx:/A/B/PUSH/name/p hnum/n Wait.
  • the SPI can be ccnx:/B/PUSH/name/pushnum/n.
  • the SPI can be parsed as the original base station A requests to push the buffered content block corresponding to the target base station B, and the number of pushed data packets is n.
  • the format of the UPI and the SPI can be various, which is not limited by the embodiment of the present invention.
  • the maximum label of the content block requested in the sent interest packet currently recorded by the terminal and the maximum label of the content block in the already received data packet may not be accurate, one additional value may be added to the difference value.
  • the number of the redundancy, that is, the amount of the content block to be pushed, is added to the difference, and the content of the content block to be pushed is used to ensure that the content blocks that are buffered by the original base station can be pushed. .
  • the original base station determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the base station can be switched. Simultaneously pushing the buffered content block can reduce the delay of data transmission caused by base station switching and improve the user experience.
  • Figure 8 illustrates a method 800 of data transmission in accordance with another embodiment of the present invention, which may be performed by a base station to be accessed, i.e., a target base station.
  • the method 800 includes: S810: The target base station receives a second indication message sent by the original base station, where the second indication message includes the identifier of the target base station and the content of the start label in the content block to be pushed. An identifier of the block, where the second indication message is used to indicate that the original base station has a content block to be pushed to the target base station;
  • S820 The target base station sends an interest packet to the original base station according to the second indication message, where the interest packet is used to request the original base station to request the content block to be pushed.
  • the target base station receives a corresponding content block to be pushed sent by the original base station according to the interest packet.
  • the second indication message carries information of a content block pre-pushed by the original base station. If the target base station agrees to receive the content block to be pushed, according to the information in the second indication message, the corresponding interest packet is sent to the original base station to request the original base station to send the content block to it.
  • the target base station may send a packet of interest to the original base station by receiving a message sent by the original base station indicating that it receives the content block to be pushed, and receive the content block to be pushed, and may perform the base station.
  • the content block that the terminal has requested but not received is received in advance while switching, so that the delay of data transmission due to handover of the base station can be reduced, and the user experience is improved.
  • the method 800 further includes:
  • the target base station records the number of interest packets sent to the original base station; When the number of interest packets exceeds the threshold, the target base station stops transmitting the interest packet to the original base station.
  • the target base station parses the second indication message sent by the original base station, and constructs a series of information according to the identifier B of the target base station carried in the second indication message and the identifier name of the content block of the start label in the content block to be pushed.
  • Interest packets these interest packets are used to request content blocks cached by the original base station.
  • the second indication message may be an SPI, and the format is ccnx:/B/PUSH/name, where the identifier B of the target base station is used for routing.
  • the difference between the label of the content block in the interest packet sent by the terminal and the label in the already received packet due to the transmission delay has an empirical value.
  • the experience value can have different values depending on the situation. For example, this experience value can be 10, or 5, 15. Therefore, in general, the number of content blocks buffered by the original base station is consistent with the empirical value.
  • the target base station While the terminal switches the base station, the target base station sends the interest packet to the original base station, and the number of the sent interest packets can be recorded. When the number of the transmitted interest packets exceeds the threshold, the target base station stops transmitting the interest packets to the original base station.
  • the threshold value may be selected from the empirical value mentioned above, or a redundant number may be added to the above empirical value, which is not limited in the embodiment of the present invention.
  • a counter may be set to record the number of interest packets sent by the original base station, and the counter is incremented by one for each interest packet sent until the number of counter records exceeds the advance. If the set threshold is exceeded, the interest packet is stopped from being sent to the original base station.
  • the target base station may not set a threshold.
  • the target base station stops transmitting the interest packet to the original base station.
  • the second indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
  • Method 800 can also include:
  • the target base station records the number of interest packets sent to the original base station
  • the target base station stops transmitting the interest packets to the original base station.
  • the target base station parses the second indication message sent by the original base station, according to the identifier name of the content block of the start label in the content block to be pushed carried in the second indication message, and the number n of the interest packets sent by the target base station, etc.
  • the information constructs n interest packets, which are used to request content blocks buffered by the original base station.
  • the target base station stops transmitting the interest packets to the original base station.
  • n is the request of the terminal according to the interest packet that has been sent to the original base station.
  • the second message can be an SPI in the format ccnx:/B/PUSH/name/pushnum/n.
  • a counter can be set, and the initial value of the counter is set to n.
  • the target base station decrements one of the interest packet pair counters to the original base station until the value of the counter is 0, and the target base station stops transmitting the interest packet to the original base station.
  • the target base station receives the message of the content block to be pushed by the original base station, sends the interest packet to the original base station, and receives the content block to be pushed, and may perform the base station.
  • the content block that the terminal has requested but not received is received in advance while switching, so that the delay of data transmission due to handover of the base station can be reduced, and the user experience is improved.
  • FIG. 9 illustrates a method 900 of data transmission, which may be performed by a terminal, in accordance with another embodiment of the present invention. As shown in FIG. 9, the method 900 includes:
  • the terminal when determining to switch from the original base station to the target base station, generating a first indication message, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
  • the terminal sends a first indication message to the original base station.
  • the terminal If the terminal is currently connected to the original base station and moves during the data transmission, it can sense the signal strength of the surrounding base station, and determine the identity of the base station by using the prefix information advertised by the base station, and when the terminal detects that the signal strength of the target base station is continuous 3
  • the terminal starts to prepare for base station handover, that is, the terminal determines that it is about to switch from the original base station to the target base station.
  • the terminal may determine that it is about to switch from the original base station to the target base station by using other methods, which is not limited in this embodiment of the present invention.
  • the terminal may determine the identifier name of the content block of the start label according to the identifier of the content block included in the last received data packet, and use the identifier B of the target base station and the content block of the start label in the content block to be pushed.
  • the identifier, etc. constructs a UPI, and sends the first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station.
  • the terminal when determining that the terminal is to be handed over from the original base station to the target base station, the terminal sends the first indication message to the original base station, and triggers the original base station to push the cached content block to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing data caused by the base station handover.
  • the delay of transmission increases the user experience.
  • the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed;
  • the terminal generates the first indication message, including: the terminal generates a first indication message according to the identifier of the original base station, the identifier of the target base station, and the identifier of the content block in the last received data packet.
  • the terminal may determine the identifier name of the content block of the start label according to the identifier of the content block included in the last received data packet, and use the identifier A of the original base station, the identifier B of the target base station, and the to-be-pushed
  • the identifier of the content block constructs a UPI, which is sent as a first indication message to the original base station, and triggers the original base station to push the corresponding content block to the target base station.
  • the format of the UPI can be various, which is not limited by the embodiment of the present invention.
  • the format of the UPI may be ccnx: /A/push/B/PUSH/name, and the UPI may be parsed to push the data packet corresponding to the content block whose name is cached by the original base station A to the target base station B.
  • A is used to help the terminal to route, so as to send the indication information to the original base station A, push and PUSH as keywords.
  • the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited by the embodiment of the present invention.
  • the first indication message is used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station.
  • the terminal may determine the identifier name of the content block of the starting label in the content block to be pushed according to the identifier of the content block included in the last received data packet, and use the identifier A of the original base station, the target base station.
  • the identifier of the content block of the starting label in the content block to be pushed constructs a UPI, which is sent as a first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station.
  • the format of the UPI can be various.
  • the UPI can be ccnx: /A/fix_PIT/name/B, where the identifier A of the original base station is used for routing, and the fix_PIT is a keyword, which is used to indicate that the UPI is used to indicate the modification of the PIT table. item.
  • the UPI may be parsed to modify the entry corresponding to the content block of the same content of the content block identified as the start label of the name in the PIT of the original base station, and modify the port of the entry of the data packet to the target.
  • the port corresponding to base station B is ccnx: /A/fix_PIT/name/B, where the identifier A of the original base station is used for routing, and the fix_PIT is a keyword, which is used to indicate that the UPI is used to indicate the modification of the PIT table. item.
  • the UPI may be parsed to modify the entry corresponding to the content block of the same content of the content block identified as the start label of the name in the PIT of
  • the first indication message may further include the number of content blocks to be pushed, which is beneficial for the original base station to more accurately determine the content block to be pushed, thereby modifying the corresponding PIT entry more effectively.
  • the UPI format can be ccnx: /A/fix_PIT/name/n/B, which can more accurately inform the original base station that it needs to modify n PIT entries, which can improve the efficiency of modification.
  • the first indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
  • the method further includes:
  • the terminal determines the number for indicating the target base station to transmit the interest packet according to the label of the content block requested in the last interest packet sent and the label of the content block in the last received data packet.
  • the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the first base station A to the second base station B, and pushed The number of packets or content blocks is n.
  • the SPI can be ccnx:/B/PUSH/name/pushmim/n.
  • the method for data transmission when determining that the terminal is to be handed over from the original base station to the target base station, by transmitting the first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • FIG. 10 is a schematic flowchart of a method 1000 for data transmission according to another embodiment of the present invention. As shown in FIG. 10, the method 1000 includes:
  • the terminal determines to switch from the original base station to the target base station. Specifically, the terminal moves from the original base station to the target base station during content transmission. During the mobile process, the terminal senses the signal strength of the original base station and the target base station. When the signal strength of the target base station is significantly stronger than the signal strength of the original base station for three consecutive times, the terminal determines that the target base station is to be handed over from the original base station to the target base station.
  • the terminal generates an UPI according to the current content transmission.
  • the UPI may include: an identifier of the original base station A, an identifier of the target base station, an identifier name of the content block of the start label in the content block to be pushed, and the terminal determines the identifier of the target base station by using the prefix information advertised by the target base station.
  • the format of the UPI can be as follows: ccnx: /A/push/B/PUSH/name.
  • S1003 The terminal sends the UPI to the original base station.
  • the original base station parses the UPI, and generates an SPI according to the UPI, where the SPI is the target of the original base station
  • the base station sends a request message for the content block to be pushed.
  • the SPI may include: an identifier B of the target base station and an identification name of the content block of the start label in the content block to be pushed.
  • the format of the SPI can be as follows: ccnx: /B/PUSH/name.
  • the target base station parses the SPI, and if it agrees to receive the content block pushed by the original base station, generates an interest packet according to the content of the SPI.
  • the content of the interest package may include the identification name of the content block of the starting label in the content block to be pushed.
  • the target base station can set a counter for recording the number of interest packets sent to the original base station. The initial value of the counter is 0.
  • the target base station sends an interest packet to the original base station.
  • the target base station increments the counter by one.
  • the target base station determines whether the value of the counter exceeds a threshold. When the value of the counter does not exceed the threshold, S1007 to S1009 are executed cyclically. When the value of the counter exceeds the threshold, the target base station stops transmitting the interest packet to the original base station.
  • the original base station sends a corresponding data packet to the target base station for the request of the interest packet.
  • the process is also a cyclic process.
  • the number of data packets sent by the original base station is equal to the number of interest packets sent by the target base station, or smaller than the number of interest packets sent by the target base station.
  • the data transmission method when determining that the terminal is to be handed over from the original base station to the target base station, sends a first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • Figure 11 shows a schematic flow diagram of a method 1100 of data transmission in accordance with yet another embodiment of the present invention. As shown in Figure 11, the method 1100 includes:
  • S1101 The terminal determines to switch from the original base station to the target base station.
  • the terminal generates an UPI according to a current data transmission situation.
  • the UPI may include: an identifier A of the original base station, an identifier B of the target base station, and an identifier name of the content block of the start label in the content block to be pushed and the number n of the content blocks to be pushed, where the terminal is issued by the target base station.
  • the prefix information determines the identity of the target base station.
  • the terminal determines the number n of the content blocks to be pushed according to the difference between the maximum label of the content block requested in the already sent interest packet and the maximum label of the content block in the already received data packet.
  • the UPI format can be as follows: ccnxJA/push/B/PUSH/name/pushnum/r
  • S1103 The terminal sends the UPI to the original base station.
  • SI 104 the original base station parses the UPI, and generates an SPI according to the UPI, where the SPI is an indication message indicating that the target base station receives the content block to be pushed.
  • the SPI may include: an identifier of the target base station, an identification name of the content block of the start label in the content block to be pushed, and a number n of content blocks to be pushed.
  • the format of the SPI can be as follows: ccnx: /B/PUSH/name/p hnum/n.
  • S1105 The original base station sends the SPI to the target base station.
  • the target base station parses the SPI, and if it agrees to receive the content block pushed by the original base station, generates an interest packet according to the content of the SPI.
  • the content of the interest package may include the identification name of the content block of the starting label in the content block to be pushed.
  • the target base station can set a counter for recording the number of interest packets sent to the original base station. The initial value of the counter is n.
  • the target base station sends an interest packet to the original base station.
  • the target base station decrements the counter by one.
  • the target base station determines whether the value of the counter is 0. When the value of the counter is not 0, S1007 to S1009 are executed cyclically. When the value of the counter is 0, the target base station stops transmitting the interest packet to the original base station.
  • S1110 The original base station sends a corresponding data packet to the target base station for the request of the interest packet. This process is also a cyclic process. In general, the number of packets sent by the original base station is less than or equal to ⁇ .
  • the data transmission method when determining that the terminal is to be handed over from the original base station to the target base station, sends a first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • the method 1100 calculates the number of content blocks to be pushed, so that the original base station can push the content block to the target base station more accurately and efficiently.
  • FIG. 12 is a schematic flowchart of a method 1200 for base station handover according to another embodiment of the present invention. As shown in FIG. 12, the method 1200 includes:
  • the terminal determines to switch from the original base station to the target base station.
  • the terminal generates an UPI according to the current content transmission.
  • the UPI may include: an identifier A of the original base station, an identifier B of the target base station, and a quantity n of the content block to be pushed and an identification name of the content block of the start label in the content block to be pushed, where the terminal is issued by the target base station.
  • the prefix information determines the identity of the target base station.
  • the terminal determines the number n of content blocks to be pushed according to the difference between the maximum label of the content block requested in the already sent interest packet and the maximum label of the content block in the already received data packet.
  • the format of the UPI can be as follows: ccnx: /A/fix_PIT/name/n/B. fix_PIT indicates that the UPI is used to tamper with the PIT entry.
  • the terminal sends the UPI to the original base station.
  • the original base station parses the UPI, and determines an identifier of the content block to be pushed and a port corresponding to the target base station B.
  • the original base station tampers with the port of the PIT entry as the port corresponding to the target base station according to the identifier of the content block to be pushed and the port corresponding to the target base station B.
  • the original base station sends the content block to be pushed to the target base station according to the modified PIT entry.
  • the data transmission method when determining that the terminal is to be handed over from the original base station to the target base station, sends a first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be implemented in the embodiments of the present invention.
  • the process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative
  • the division of units is only a logical function division.
  • multiple units or components may be combined or integrated into another system, or some features may be ignored. Or not.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect connection or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the components displayed by the meta may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • An integrated unit if implemented as a software functional unit and sold or used as a standalone product, can be stored on a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

Disclosed are a data transmission method, a base station, and a terminal. The base station comprises: a first receiving module, used for receiving a first instruction message sent by a terminal to be handed over from the base station to a target base station, the first instruction message being used for instructing the base station to send a to-be-pushed content block to the target base station; a determining module, used for determining the to-be-pushed content block according to the first instruction message received by the first receiving module; and a first sending module, used for sending to the target base station the to-be-pushed content block determined by the determining module. In the data transmission method, the base station and the terminal in embodiments of the present invention, when a terminal is handed over between base stations, an original base station actively pushes buffered content to a target base station, so that the data transmission delay caused by handovers between the base stations can be reduced, thereby improving user experience.

Description

数据传输的方法、 基站和终端 技术领域  Data transmission method, base station and terminal
本发明实施例涉及通信技术领域,并且更具体地,涉及数据传输的方法、 基站和终端。 背景技术 输控制协议 /因特网互联协议 ( TCP/IP, Transmission Control Protocol/Internet Protocol ) 的传统互联网逐渐暴露出可扩展性差、 动态连续性弱、 安全可控 性低、 运营成本高等问题。 为此, 互联网正逐步由以主机中心向以内容中心 转变, 世界各国纷纷展开了针对以内容为中心的未来网络的研究, 包括北美 的内容中心网络 ( CCN, Content-Centric Network ) /命名数据网络(NDN, Named-Data Networking )、面向数据网络架构( DONA, Data-Oriented Network Architecture )以及欧盟的发布 -订阅网络路由模型 (PSIRP, Publish-Subscribe Internet Routing Paradigm)架构和信息网络 ( Netlnf, Network of Information ) 等。  Embodiments of the present invention relate to the field of communications technologies, and, more particularly, to a method, a base station, and a terminal for data transmission. BACKGROUND OF THE INVENTION The traditional Internet of the Transmission Control Protocol/Internet Protocol (TCP/IP) has gradually revealed problems such as poor scalability, weak dynamic continuity, low security and controllability, and high operating costs. To this end, the Internet is gradually shifting from a host center to a content center. Countries around the world have launched research on content-centric future networks, including the content center network (CCN, Content-Centric Network) / named data network in North America. (NDN, Named-Data Networking), Data-Oriented Network Architecture (DONA), and the European Union's Publish-Subscribe Internet Routing Paradigm (PSIRP) architecture and information network (Netlnf, Network of Information ) etc.
在 CCN架构中, 移动终端在两个基站间进行切换时, 需要在切换完成 之后重新向目标基站发送请求内容的兴趣包, 或者在切换完成之后发送消息 触发目标基站向原基站索要数据包, 时间利用率低下, 会引起数据传输的较 大的延迟, 影响用户体验。 发明内容  In the CCN architecture, when the mobile terminal performs handover between two base stations, it needs to re-send the interest packet requesting the content to the target base station after the handover is completed, or send a message after the handover is completed to trigger the target base station to request the data packet from the original base station, and time utilization. The low rate will cause a large delay in data transmission and affect the user experience. Summary of the invention
本发明实施例提供一种数据传输的方法、 基站和终端, 在进行基站切换 时能够减小数据传输的延迟, 提高用户体验。  The embodiments of the present invention provide a data transmission method, a base station, and a terminal, which can reduce the delay of data transmission and improve the user experience when performing base station handover.
第一方面, 提供了一种基站, 该基站包括: 第一接收模块, 用于接收将 从基站切换至目标基站的终端发送的第一指示消息, 第一指示消息用于指示 基站向目标基站发送待推送的内容块; 确定模块, 用于根据第一接收模块接 收的第一指示消息, 确定待推送的内容块; 第一发送模块, 用于向目标基站 发送确定模块确定的待推送的内容块。  The first aspect provides a base station, where the base station includes: a first receiving module, configured to receive a first indication message sent by a terminal that is to be handed over from the base station to the target base station, where the first indication message is used to indicate that the base station sends the target base station to the target base station. a content block to be pushed; a determining module, configured to determine, according to the first indication message received by the first receiving module, a content block to be pushed; the first sending module, configured to send, to the target base station, the content block to be pushed determined by the determining module .
结合第一方面, 在第一方面的第一种可能的实现方式中, 第一接收模块 接收的第一指示消息包括: 基站的标识、 目标基站的标识和待推送的内容块 中起始标号的内容块的标识。 With reference to the first aspect, in a first possible implementation manner of the first aspect, the first receiving module The received first indication message includes: an identifier of the base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实 现方式中, 第一接收模块接收的第一指示消息还用于指示基站将待推送的内 容块所对应的查询等待表 PIT表项的端口修改为目标基站对应的端口; 该基 站还包括: 修改模块, 用于根据第一指示消息, 将待推送的内容块所对应的 PIT表项的端口修改为目标基站对应的端口; 第一发送模块具体用于: 根据 PIT表项向目标基站发送待推送的内容块。  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first indication message received by the first receiving module is further used to indicate that the base station corresponds to the content block to be pushed The port of the query waiting list PIT entry is modified to the port corresponding to the target base station; the base station further includes: a modifying module, configured to modify, according to the first indication message, the port of the PIT entry corresponding to the content block to be pushed as the target The port corresponding to the base station; the first sending module is specifically configured to: send the content block to be pushed to the target base station according to the PIT entry.
结合第一方面的第一种可能的实现方式,在第一方面的第三种可能的实 现方式中, 该基站还包括: 生成模块, 用于根据第一指示消息生成第二指示 消息, 第二指示消息包括目标基站的标识和待推送的内容块中起始标号的内 容块的标识, 第二指示消息用于指示基站存在待向目标基站推送的内容块; 第二发送模块, 用于向目标基站发送生成模块生成的第二指示消息; 第二接 收模块, 用于接收目标基站根据第二指示消息发送的兴趣包; 第一发送模块 具体用于: 根据第二接收模块接收的兴趣包, 向目标基站发送相应的待推送 的内容块。  With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the base station further includes: a generating module, configured to generate a second indication message according to the first indication message, where The indication message includes an identifier of the target base station and an identifier of the content block of the start label in the content block to be pushed, the second indication message is used to indicate that the base station has a content block to be pushed to the target base station, and the second sending module is configured to target The base station sends a second indication message generated by the generating module, where the second receiving module is configured to receive the interest packet sent by the target base station according to the second indication message, where the first sending module is specifically configured to: according to the interest packet received by the second receiving module, The target base station transmits a corresponding content block to be pushed.
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实 现方式中, 第一接收模块接收的第一指示消息和生成模块生成的第二指示消 息还包括数量信息, 数量信息用于指示目标基站发送兴趣包的数量。  With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the first indication message received by the first receiving module and the second indication message generated by the generating module further include quantity information The quantity information is used to indicate the number of interest packets sent by the target base station.
第二方面, 提供了一种基站, 该基站包括: 第一接收模块, 用于接收原 基站发送的第二指示消息, 第二指示消息第二指示消息包括基站的标识和待 推送的内容块中起始标号的内容块的标识, 第二指示消息用于指示原基站存 在待向目标基站推送的内容块; 第一发送模块, 用于根据第一接收模块接收 的第二指示消息, 向原基站发送兴趣包, 兴趣包用于向原基站请求待推送的 内容块; 第二接收模块, 用于接收原基站根据兴趣包发送的相应的待推送的 内容块。  The second aspect provides a base station, where the base station includes: a first receiving module, configured to receive a second indication message sent by the original base station, where the second indication message includes a identifier of the base station and a content block to be pushed. An identifier of the content block of the start label, the second indication message is used to indicate that the original base station has a content block to be pushed to the target base station, and the first sending module is configured to send, according to the second indication message received by the first receiving module, the original base station The interest packet is used to request the original base station to request the content block to be pushed. The second receiving module is configured to receive the corresponding content block to be pushed sent by the original base station according to the interest packet.
结合第二方面,在第二方面的第一种可能的实现方式中,该基站还包括: 记录模块,用于记录第一发送模块向原基站发送的兴趣包的数量;控制模块, 用于在兴趣包的数量超过阔值时, 控制基站停止向原基站发送兴趣包。  With reference to the second aspect, in a first possible implementation manner of the second aspect, the base station further includes: a recording module, configured to record a quantity of the interest packet sent by the first sending module to the original base station; and a control module, configured to be in interest When the number of packets exceeds the threshold, the control base station stops transmitting the interest packet to the original base station.
结合第二方面, 在第二方面的第二种可能的实现方式中, 第一接收模块 接收的第二指示消息还包括数量信息,数量信息用于指示目标基站发送兴趣 包的数量; 该基站还包括: 记录模块, 用于记录向原基站发送的兴趣包的数 量; 控制模块, 用于在兴趣包的数量超过数量信息时, 控制基站停止向原基 站发送兴趣包。 With reference to the second aspect, in a second possible implementation manner of the second aspect, the second indication message received by the first receiving module further includes quantity information, where the quantity information is used to indicate that the target base station sends the interest The number of packets; the base station further includes: a recording module, configured to record the number of interest packets sent to the original base station; and a control module, configured to: when the number of interest packets exceeds the quantity information, control the base station to stop sending the interest packets to the original base station.
第三方面, 提供了一种终端, 该终端包括: 生成模块, 用于在确定终端 将从原基站切换至目标基站时, 生成第一指示消息, 第一指示消息用于指示 原基站向目标基站发送待推送的内容块; 发送模块, 用于向原基站发送生成 模块生成的第一指示消息。  A third aspect provides a terminal, where the terminal includes: a generating module, configured to generate a first indication message when the terminal is to be handed over from the original base station to the target base station, where the first indication message is used to indicate the original base station to the target base station Sending a content block to be pushed; the sending module is configured to send, to the original base station, a first indication message generated by the generating module.
结合第三方面, 在第三方面的第一种可能的实现方式中, 生成模块生成 的第一指示消息包括: 原基站的标识、 目标基站的标识和待推送的内容块中 起始标号的内容块的标识; 生成模块具体用于: 根据原基站的标识、 目标基 站的标识和接收到的最后一个数据包中的内容块的标识, 生成第一指示消 息。  With reference to the third aspect, in a first possible implementation manner of the third aspect, the first indication message generated by the generating module includes: an identifier of the original base station, an identifier of the target base station, and a content of a start label in the content block to be pushed. The generating module is configured to: generate a first indication message according to the identifier of the original base station, the identifier of the target base station, and the identifier of the content block in the last received data packet.
结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实 现方式中, 生成模块生成的第一指示消息用于指示原基站将待推送的内容块 所对应的查询等待表 PIT表项的端口修改为目标基站对应的端口。  With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the first indication message generated by the generating module is used to indicate that the original base station queries the content block to be pushed The port waiting for the PIT entry of the table is modified to the port corresponding to the target base station.
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实 现方式中, 生成模块生成的第一指示消息还数量信息, 数量信息用于指示目 标基站发送兴趣包的数量; 该终端还包括: 确定模块, 用于根据终端发送的 最后一个兴趣包中所请求的内容块的标号和接收到的最后一个数据包中的 内容块的标号, 确定用于指示目标基站发送兴趣包的数量。  With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the first indication message generated by the generating module is further quantity information, where the quantity information is used to indicate that the target base station sends the interest packet. The terminal further includes: a determining module, configured to determine, according to the label of the content block requested in the last interest packet sent by the terminal, and the label of the content block in the last received data packet, to indicate that the target base station sends The number of interest packages.
第四方面, 提供了一种数据传输的方法, 该方法包括: 原基站接收将从 原基站切换至目标基站的终端发送的第一指示消息, 第一指示消息用于指示 原基站向目标基站发送待推送的内容块; 原基站根据第一指示消息, 确定待 推送的内容块; 原基站向目标基站发送待推送的内容块。  A fourth aspect provides a data transmission method, where the method includes: the original base station receives a first indication message sent by a terminal that is to be handed over from the original base station to the target base station, where the first indication message is used to indicate that the original base station sends the data to the target base station. The content block to be pushed; the original base station determines the content block to be pushed according to the first indication message; the original base station sends the content block to be pushed to the target base station.
结合第四方面, 在第四方面的第一种可能的实现方式中, 第一指示消息 包括: 原基站的标识、 目标基站的标识和待推送的内容块中起始标号的内容 块的标识。  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实 现方式中, 第一指示消息还用于指示原基站将待推送的内容块所对应的查询 等待表 PIT表项的端口修改为目标基站对应的端口; 该方法还包括: 原基站 根据第一指示消息,将待推送的内容块所对应的 PIT表项的端口修改为目标 基站对应的端口; 其中, 原基站向目标基站发送待推送的内容块, 包括: 原 基站根据 PIT表项向目标基站发送待推送的内容块。 With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the first indication message is further used to indicate that the original base station selects a query waiting table PIT corresponding to the content block to be pushed. The port of the entry is modified to be the port corresponding to the target base station; the method further includes: the original base station modifying the port of the PIT entry corresponding to the content block to be pushed as the target according to the first indication message And the original base station sends the content block to be pushed to the target base station, where the original base station sends the content block to be pushed to the target base station according to the PIT entry.
结合第四方面的第一种可能的实现方式,在第四方面的第三种可能的实 现方式中, 在原基站向目标基站发送待推送的内容块之前, 该方法还包括: 原基站根据第一指示消息生成第二指示消息, 第二指示消息包括目标基站的 标识和待推送的内容块中起始标号的内容块的标识, 第二指示消息用于指示 原基站存在待向目标基站推送的内容块; 原基站向目标基站发送第二指示消 息; 原基站接收目标基站根据第二指示消息发送的兴趣包; 其中, 原基站向 目标基站发送待推送的内容块, 包括: 原基站根据兴趣包, 向目标基站发送 相应的待推送的内容块。  With the first possible implementation of the fourth aspect, in a third possible implementation manner of the fourth aspect, before the original base station sends the content block to be pushed to the target base station, the method further includes: the original base station according to the first The indication message generates a second indication message, where the second indication message includes an identifier of the target base station and an identifier of the content block of the start label in the content block to be pushed, and the second indication message is used to indicate that the original base station has content to be pushed to the target base station. The original base station sends a second indication message to the target base station; the original base station receives the interest packet sent by the target base station according to the second indication message; wherein, the original base station sends the content block to be pushed to the target base station, including: the original base station according to the interest packet, Send the corresponding content block to be pushed to the target base station.
结合第四方面的第三种可能的实现方式,在第四方面的第四种可能的实 现方式中, 第一指示消息和第二指示消息还包括数量信息, 数量信息用于指 示目标基站发送兴趣包的数量。  With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the first indication message and the second indication message further include quantity information, where the quantity information is used to indicate that the target base station sends the interest The number of packages.
第五方面, 提供了一种数据传输的方法, 该方法包括: 目标基站接收原 基站发送的第二指示消息, 第二指示消息包括目标基站的标识和待推送的内 容块中起始标号的内容块的标识, 第二指示消息用于指示原基站存在待向目 标基站推送的内容块; 目标基站根据第二指示消息, 向原基站发送兴趣包, 兴趣包用于向原基站请求待推送的内容块; 目标基站接收原基站根据兴趣包 发送的相应的待推送的内容块。  A fifth aspect provides a method for data transmission, where the method includes: receiving, by a target base station, a second indication message sent by an original base station, where the second indication message includes an identifier of the target base station and a content of a start label in the content block to be pushed. An identifier of the block, where the second indication message is used to indicate that the original base station has a content block to be pushed to the target base station; the target base station sends an interest packet to the original base station according to the second indication message, where the interest packet is used to request the content block to be pushed to the original base station; The target base station receives the corresponding content block to be pushed sent by the original base station according to the interest packet.
结合第五方面, 在第五方面的第一种可能的实现方式中, 在目标基站根 据第二指示消息, 向原基站发送兴趣包之后, 该方法还包括: 目标基站记录 向原基站发送的兴趣包的数量; 在兴趣包的数量超过阔值时, 目标基站停止 向原基站发送兴趣包。  With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, after the target base station sends the interest packet to the original base station according to the second indication message, the method further includes: the target base station recording the interest packet sent to the original base station Quantity; when the number of interest packets exceeds the threshold, the target base station stops transmitting interest packets to the original base station.
结合第五方面, 在第五方面的第二种可能的实现方式中, 第二指示消息 还包括数量信息, 数量信息用于指示目标基站发送兴趣包的数量; 该方法还 包括: 目标基站记录向原基站发送的兴趣包的数量; 在兴趣包的数量超过数 量信息中指示的数量时, 目标基站停止向原基站发送兴趣包。  With reference to the fifth aspect, in a second possible implementation manner of the fifth aspect, the second indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station, and the method further includes: the target base station records the original The number of interest packets transmitted by the base station; when the number of interest packets exceeds the number indicated in the quantity information, the target base station stops transmitting the interest packets to the original base station.
第六方面, 提供了一种数据传输的方法, 该方法包括: 终端在确定将从 原基站切换至目标基站时, 生成第一指示消息, 第一指示消息用于指示原基 站向目标基站发送待推送的内容块; 终端向原基站发送第一指示消息。  The sixth aspect provides a method for data transmission, where the method includes: when determining that the terminal is to be handed over from the original base station to the target base station, the first indication message is used to indicate that the original base station sends the target base station to the target base station. Pushed content block; the terminal sends a first indication message to the original base station.
结合第六方面, 在第六方面的第一种可能的实现方式中, 第一指示消息 包括: 原基站的标识、 目标基站的标识和待推送的内容块中起始标号的内容 块的标识; 终端生成第一指示消息, 包括: 终端根据原基站的标识、 目标基 站的标识和接收到的最后一个数据包中的内容块的标识, 生成第一指示消 息。 With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the first indication message The method includes: the identifier of the original base station, the identifier of the target base station, and the identifier of the content block of the starting label in the content block to be pushed; the terminal generating the first indication message, including: the terminal according to the identifier of the original base station, the identifier of the target base station, and the received The identifier of the content block in the last packet of the packet generates a first indication message.
结合第六方面的第一种可能的实现方式,在第六方面的第二种可能的实 现方式中, 第一指示消息用于指示原基站将待推送的内容块所对应的查询等 待表 PIT表项的端口修改为目标基站对应的端口。  With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the first indication message is used to indicate a query waiting table PIT table corresponding to the content block to be pushed by the original base station The port of the item is modified to the port corresponding to the target base station.
结合第六方面的第二种可能的实现方式,在第六方面的第三种可能的实 现方式中, 第一指示消息还包括数量信息, 数量信息用于指示目标基站发送 兴趣包的数量; 在终端生成第一指示消息之前, 该方法还包括: 终端根据发 送的最后一个兴趣包中所请求的内容块的标号和接收到的最后一个数据包 中的内容块的标号, 确定用于指示目标基站发送兴趣包的数量。  With reference to the second possible implementation manner of the sixth aspect, in a third possible implementation manner of the sixth aspect, the first indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station; Before the terminal generates the first indication message, the method further includes: determining, by the terminal, the target base station according to the label of the content block requested in the last interest packet sent and the label of the content block in the last received data packet. The number of interest packets sent.
基于上述技术方案,本发明实施例提供的数据传输的方法、基站和终端, 通过在终端进行切换的同时, 由原基站主动向目标基站推送緩存的内容, 可 以减小由于基站切换造成的数据传输的延迟, 提高用户体验。 附图说明  Based on the foregoing technical solution, the data transmission method, the base station, and the terminal provided by the embodiment of the present invention can reduce the data transmission caused by the base station handover by the original base station actively pushing the cached content to the target base station while the terminal performs the handover. The delay, improving the user experience. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面所描述 的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention or the description of the prior art will be briefly described below. Obviously, the drawings described below are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art without departing from the drawings.
图 1是根据本发明一个实施例的基站的示意性框图。  1 is a schematic block diagram of a base station in accordance with one embodiment of the present invention.
图 2是根据本发明另一个实施例的基站的示意性框图。  2 is a schematic block diagram of a base station according to another embodiment of the present invention.
图 3是根据本发明一个实施例的终端的示意性框图。  3 is a schematic block diagram of a terminal in accordance with one embodiment of the present invention.
图 4是根据本发明另一个实施例的基站的示意性框图。  4 is a schematic block diagram of a base station according to another embodiment of the present invention.
图 5是根据本发明另一个实施例的基站的示意性框图。  FIG. 5 is a schematic block diagram of a base station according to another embodiment of the present invention.
图 6是根据本发明另一个实施例的终端的示意性框图。  FIG. 6 is a schematic block diagram of a terminal according to another embodiment of the present invention.
图 7是根据本发明一个实施例的数据传输的方法的示意性流程图。  FIG. 7 is a schematic flow chart of a method of data transmission according to an embodiment of the present invention.
图 8是根据本发明另一个实施例的数据传输的方法的示意性流程图。 图 9是根据本发明另一个实施例的数据传输的方法的示意性流程图。 图 10是根据本发明另一个实施例的数据传输的方法的示意性流程图。 图 11是根据本发明另一个实施例的数据传输的方法的示意性流程图。 图 12是根据本发明另一个实施例的数据传输的方法的示意性流程图。 具体实施方式 FIG. 8 is a schematic flowchart of a method of data transmission according to another embodiment of the present invention. 9 is a schematic flow chart of a method of data transmission according to another embodiment of the present invention. FIG. 10 is a schematic flowchart of a method of data transmission according to another embodiment of the present invention. 11 is a schematic flow chart of a method of data transmission according to another embodiment of the present invention. FIG. 12 is a schematic flowchart of a method of data transmission according to another embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不 是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without making creative labor are within the scope of the present invention.
当前在内容中心网络架构中, 解决 CCN移动性的方案主要通过由控制 信息调整兴趣包和数据包的传输路径来实现。 例如, 终端当前与某一基站连 接, 如果终端请求内容, 则向该基站发送请求该内容的兴趣包, 基站收到该 兴趣包并进行解析后, 先与基站本身緩存的内容进行匹配, 如果匹配成功则 将相应的数据包发送给终端; 如果匹配不成功则将该兴趣包转发到相应的源 端, 源端将相应的内容以数据包的形式返回给基站, 再由基站转发给终端。  Currently in the content center network architecture, the solution for CCN mobility is mainly achieved by adjusting the transmission path of interest packets and data packets by control information. For example, the terminal is currently connected to a certain base station. If the terminal requests the content, the terminal sends an interest packet requesting the content to the base station. After receiving the interest packet and parsing the base station, the base station first matches the content cached by the base station itself, if the match is matched. If successful, the corresponding data packet is sent to the terminal; if the matching is unsuccessful, the interest packet is forwarded to the corresponding source end, and the source end returns the corresponding content to the base station in the form of a data packet, and then the base station forwards the data to the terminal.
在 CCN架构中, 内容被划分为若干个内容块, 每一内容块有其对应的 标号。 例如, 一个内容被划分为 10个内容块, 标号分别为 1-10。 终端在请 求该内容时, 向基站依次发送 10个兴趣包, 分别来请求这 10个内容块。 基 站将这 10个兴趣包依次转发给源端,根据这 10个兴趣包, 源端依次返回 10 个数据包给基站, 再由基站转发给终端。 因此, 该内容的传输过程对于终端 而言是有延迟的, 即当终端向基站发送了 5个兴趣包时, 其可能只接收到基 站转发的 2个数据包。 如果在此时, 终端发生移动, 从原基站切换至目标基 站, 则会出现不能从原基站接收第 3个至第 5个数据包的情况。  In the CCN architecture, content is divided into a number of content blocks, each of which has its corresponding label. For example, a content is divided into 10 content blocks, each with a number of 1-10. When requesting the content, the terminal sequentially sends 10 interest packets to the base station to request the 10 content blocks. The base station forwards the 10 interest packets to the source end in turn. According to the 10 interest packets, the source end sequentially returns 10 data packets to the base station, and then the base station forwards the data to the terminal. Therefore, the transmission process of the content is delayed for the terminal, that is, when the terminal sends 5 interest packets to the base station, it may only receive 2 data packets forwarded by the base station. If the terminal moves at this time and switches from the original base station to the target base station, the third to fifth data packets cannot be received from the original base station.
对于上述情况, 在当前 CCN架构中, 终端在切换至目标基站后, 需要 重新向目标基站依次发送第 3个至第 5个兴趣包, 并由目标基站向源端转发 这几个兴趣包, 这使得在切换基站的时候, 数据传输产生很大的延迟, 影响 用户的体验。  For the above situation, in the current CCN architecture, after switching to the target base station, the terminal needs to resend the third to fifth interest packets to the target base station, and the target base station forwards the interest packets to the source end. When the base station is switched, the data transmission generates a large delay, which affects the user experience.
针对此, 现在提出的一种改进的方案。 该方案的流程如下: 终端在移动 时如果发现目标基站, 在即将从原基站切换至目标基站时, 首先发送一个指 示消息通知原基站该终端即将进行切换, 原基站在接收到该指示消息后, 停 止向终端发送数据包,但并不停止其向源端转发兴趣包以及从源端接收数据 包的进程,即原基站将终端已经请求但还未接收到的内容块进行緩存。继而, 终端在完成从原基站切换至目标基站后, 再向目标基站发送一个指示消息, 通知目标基站向原基站索要緩存的内容块。 In response to this, an improved solution is now proposed. The process of the solution is as follows: If the target base station is found when the terminal moves, when the handover from the original base station to the target base station is started, an indication message is first sent to notify the original base station that the terminal is about to perform handover, and after the original base station receives the indication message, The sending of the data packet to the terminal is stopped, but the process of forwarding the interest packet to the source end and receiving the data packet from the source end is not stopped, that is, the original base station caches the content block that the terminal has requested but has not received yet. Then, After completing the handover from the original base station to the target base station, the terminal sends an indication message to the target base station to notify the target base station to request the buffered content block from the original base station.
这种方案是在终端切换基站完成之后,再由目标基站向原基站请求緩存 的内容块, 緩存的内容块需要被动的请求才能进行传输, 时间利用率低。 并 且如果原基站与目标基站之间的跳数较多时, 依然会产生较大的延迟, 严重 影响用户体验。 本发明正是针对以上问题提出了解决方案。  In this scheme, after the terminal handover base station is completed, the target base station requests the cached content block from the original base station, and the buffered content block needs a passive request to transmit, and the time utilization rate is low. Moreover, if the number of hops between the original base station and the target base station is large, a large delay will still occur, which seriously affects the user experience. The present invention proposes a solution to the above problems.
应理解,在本发明实施例中, 终端也可以称为系统、用户单元、用户站、 移动站、 移动台、 远方站、 远程终端、 移动设备、 用户终端、 终端、 无线通 信设备、 用户代理、 用户装置或用户设备(UE, User Equipment ^ 终端可 以是蜂窝电话、 无绳电话、 SIP ( Session Initiation Protocol, 会话启动协议) 电话、 WLL ( Wireless Local Loop, 无线本地环路 )站、 PDA ( Personal Digital Assistant, 个人数字处理)、 具有无线通信功能的手持设备、 车载设备、 计算 设备或连接到无线调制解调器的其它处理设备。  It should be understood that, in the embodiment of the present invention, a terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, User equipment or user equipment (UE, User Equipment ^ terminal can be cellular phone, cordless phone, SIP (Session Initiation Protocol) phone, WLL (Wireless Local Loop) station, PDA (Personal Digital Assistant) , personal digital processing), handheld devices with wireless communication capabilities, in-vehicle devices, computing devices, or other processing devices connected to wireless modems.
还应理解, 在本发明实施例中, 基站可用于与移动设备通信, 基站可以 是 Wi-Fi的 AP ( Access Point, 无线接入点), 或者是 GSM ( Global System of Mobile communication, 全球移动通讯 )或 CDMA ( Code Division Multiple Access, 码分多址) 中的 BTS ( Base Transceiver Station, 基站), 也可以是 WCDMA ( Wideband Code Division Multiple Access, 宽带码分多址)中的 NB ( NodeB,基站),还可以是 LTE ( Long Term Evolution,长期演进)中的 eNB 或 eNodeB ( Evolutional Node B , 演进型基站), 或者中继站或接入点, 或者 未来 5G网络中的基站设备等。  It should also be understood that, in the embodiment of the present invention, the base station may be used to communicate with a mobile device, and the base station may be a Wi-Fi AP (Access Point, a wireless access point), or a GSM (Global System of Mobile communication). ) or BTS (Base Transceiver Station) in CDMA (Code Division Multiple Access), or NB (NodeB, Base Station) in WCDMA (Wideband Code Division Multiple Access) It may also be an eNB or an eNodeB (Evolved Node B) in an LTE (Long Term Evolution), or a relay station or an access point, or a base station device in a future 5G network.
图 1示出了根据本发明实施例提供的基站 100的示意性框图。 图 1所示 的基站 100为终端将切换出的基站, 即原基站。 具体地, 基站 100包括第一 接收模块 110、 确定模块 120和第一发送模块 130, 其中:  FIG. 1 shows a schematic block diagram of a base station 100 provided in accordance with an embodiment of the present invention. The base station 100 shown in Fig. 1 is a base station to which the terminal will be handed over, that is, the original base station. Specifically, the base station 100 includes a first receiving module 110, a determining module 120, and a first sending module 130, where:
第一接收模块 110, 用于接收将从基站 100切换至目标基站的终端发送 的第一指示消息, 第一指示消息用于指示基站 100向目标基站发送待推送的 内容块;  The first receiving module 110 is configured to receive a first indication message that is sent by the terminal that is to be switched from the base station 100 to the target base station, where the first indication message is used to instruct the base station 100 to send the content block to be pushed to the target base station;
确定模块 120, 用于根据第一接收模块 110接收的第一指示消息, 确定 待推送的内容块;  The determining module 120 is configured to determine, according to the first indication message received by the first receiving module 110, the content block to be pushed;
第一发送模块 130, 用于向目标基站发送确定模块 120确定的待推送的 内容块。 因此, 本发明实施例提供的基站, 通过接收终端发送的消息, 确定待向 目标基站推送的内容块, 并主动向目标基站发送待推送的内容块, 从而可以 在进行基站切换的同时推送緩存的内容块, 能够减小由于基站切换造成的数 据传输的延迟, 提高用户体验。 The first sending module 130 is configured to send, to the target base station, the content block to be pushed determined by the determining module 120. Therefore, the base station provided by the embodiment of the present invention determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover. The content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
可选地,作为一个实施例,第一接收模块 110接收的第一指示消息包括: 基站 100的标识、 目标基站的标识和待推送的内容块中起始标号的内容块的 标识。  Optionally, as an embodiment, the first indication message received by the first receiving module 110 includes: an identifier of the base station 100, an identifier of the target base station, and an identifier of a content block of a starting label in the content block to be pushed.
具体而言, 终端根据当前检测到的各基站的信号强度等, 可以确定目标 基站, 通过目标基站发布的前缀信息确定目标基站的标识, 即目标基站的名 称; 根据当前发送的请求内容的兴趣包和接收的包含内容块的数据包, 可以 确定需要基站 100推送的待推送的内容块中起始标号的内容块。将目标基站 的标识和待推送的内容块中起始标号的内容块的标识通知基站 100,基站 100 可以将相应的内容块推送给目标基站。 其中, 待推送的内容块中起始标号的 内容块的标识中包括内容的标识和内容块的标号。 此外, 待推送的内容块中 起始标号的内容块的标识中还可以包含其它信息, 例如源端的信息等, 本发 明实施例对此不作限定。  Specifically, the terminal may determine, according to the currently detected signal strength of each base station, the target base station, and determine the identifier of the target base station by using the prefix information advertised by the target base station, that is, the name of the target base station; the interest packet according to the currently sent request content. And the received data packet containing the content block, the content block of the start label in the content block to be pushed that needs to be pushed by the base station 100 can be determined. The base station 100 is notified of the identity of the target base station and the identity of the content block of the start label in the content block to be pushed, and the base station 100 can push the corresponding content block to the target base station. The identifier of the content block of the start label in the content block to be pushed includes the identifier of the content and the label of the content block. In addition, the identifier of the content block of the start label in the content block to be pushed may further include other information, such as the information of the source end, which is not limited by the embodiment of the present invention.
应理解, 为了便于终端发送该第一指示信息, 第一指示信息中还包括基 站 100的标识, 以便于终端根据基站的标识查找路由信息, 以将该第一指示 信息发送给基站 100, 本文发明实施例对此不作限定。  It should be understood that, in order to facilitate the terminal to send the first indication information, the first indication information further includes an identifier of the base station 100, so that the terminal searches for the routing information according to the identifier of the base station, to send the first indication information to the base station 100, The embodiment does not limit this.
可选地, 第一接收模块 110接收的第一指示消息还用于指示基站 100将 待推送的内容块所对应的查询等待表 ( PIT, Pending Interest Table )表项的 端口爹改为目标基站对应的端口;  Optionally, the first indication message received by the first receiving module 110 is further used to indicate that the base station 100 changes the port 爹 of the PIT (Pending Interest Table) entry corresponding to the content block to be pushed to the target base station. Port
基站 100还包括:  The base station 100 also includes:
修改模块, 用于根据第一指示消息, 将待推送的内容块所对应的 PIT表 项的端口爹改为目标基站对应的端口;  a modifying module, configured to change, according to the first indication message, a port of the PIT entry corresponding to the content block to be pushed to a port corresponding to the target base station;
第一发送模块 130具体用于: 根据 PIT表项向目标基站发送待推送的内 容块。  The first sending module 130 is specifically configured to: send the content block to be pushed to the target base station according to the PIT entry.
在基站中配置有 PIT, 该 PIT用于存储终端已发送的但还未接收到响应 的数据请求, 以及这些请求各自对应的端口。 在终端断开与基站 100的连接 之前, 基站 100已经向源端发送了一部分用于数据请求的兴趣包, 但响应这 些数据请求的数据包还未发送到基站 100, 或者基站 100虽然从源端接收到 了响应这些数据请求的数据包, 但还未将这些数据包发送给终端。 因而, 在 基站 100的 PIT中存在相应的表项,以指示基站将相应的数据包发送给终端。 当终端开始进行基站切换, 断开与基站 100的连接时, 终端不再能接收到基 站 100根据 PIT的表项向终端发送的数据包。 因此, PIT中的这些表项是无 效的, 可以将这些表项的端口进行修改, 使得原本向终端发送的数据包转为 向目标基站发送。 A PIT is configured in the base station, and the PIT is used to store data requests that the terminal has sent but has not received a response, and ports corresponding to the respective requests. Before the terminal disconnects from the base station 100, the base station 100 has sent a part of the interest packet for the data request to the source, but the data packet responding to the data request has not been sent to the base station 100, or the base station 100 is from the source end. received Packets that respond to these data requests, but have not yet sent these packets to the terminal. Thus, there is a corresponding entry in the PIT of the base station 100 to instruct the base station to transmit the corresponding data packet to the terminal. When the terminal starts the base station handover and disconnects from the base station 100, the terminal can no longer receive the data packet sent by the base station 100 to the terminal according to the PIT entry. Therefore, the entries in the PIT are invalid, and the ports of the entries can be modified so that the data packets originally sent to the terminal are sent to the target base station.
具体而言,终端可以根据当前接收到的最后一个数据包中所包含的内容 块的标识确定待推送的内容块中起始标号的内容块的标识 name, 并使用基 站 100的标识 A、 目标基站的标识 B和待推送的内容块中起始标号的内容块 的标识 name构建一个用户推送通知 ( UPI, User Push Indication ), 作为第一 指示消息发送给基站 100的第一接收模块 110, 触发基站 100将相应的内容 块推送给目标基站。 UPI 的格式可以有多种, 例如 UPI 可以为 ccnx:/A/fix_PIT/name/B , 其中, 基站 100的标识 A用来进行路由, fix_PIT 为关键字,用来表示该 UPI用于指示修改 PIT表项。该 UPI可以解析为在基 站 100的 PIT中, 将与标识为 name的起始标号的内容块同属同一个内容的 内容块对应的表项进行修改,将上述内容块对应的数据包的表项的端口修改 为目标基站 B所对应的端口。  Specifically, the terminal may determine the identifier name of the content block of the start label in the content block to be pushed according to the identifier of the content block included in the last received data packet, and use the identifier A of the base station 100 and the target base station. The identifier B and the identifier of the content block of the start label in the content block to be pushed construct a user push indication (UPI, User Push Indication), which is sent as a first indication message to the first receiving module 110 of the base station 100, triggering the base station 100 pushes the corresponding content block to the target base station. The format of the UPI can be various. For example, the UPI can be ccnx: /A/fix_PIT/name/B, where the identifier A of the base station 100 is used for routing, and the fix_PIT is used as a keyword to indicate that the UPI is used to indicate the modification of the PIT. Entry. The UPI may be parsed to modify, in the PIT of the base station 100, an entry corresponding to the content block that belongs to the same content as the content label of the name, and the entry of the data packet corresponding to the content block. The port is modified to the port corresponding to the target base station B.
UPI还可以包括其他信息, 例如, UPI中还可以包括指示待推送的内容 块的数量 n的数量信息,以便于基站 100更准确有效地确定待推送的内容块。 对应地, UPI格式可以为 ccnx: /A /fix_PIT/name/n/B ,本发明实施例对此不作 限定。  The UPI may also include other information. For example, the UPI may further include quantity information indicating the number n of content blocks to be pushed, so that the base station 100 determines the content block to be pushed more accurately and efficiently. Correspondingly, the UPI format may be ccnx: /A /fix_PIT/name/n/B, which is not limited in this embodiment of the present invention.
基站 100的第一接收模块 110接收并解析该 UPI后,确定模块 120确定 待推送的内容块及目标基站 B 所对应的端口, 进而由修改模块修改相关的 PIT表项的端口。 第一发送模块 130根据修改后的表项, 将待推送的内容块 发送给目标基站。  After the first receiving module 110 of the base station 100 receives and parses the UPI, the determining module 120 determines the content block to be pushed and the port corresponding to the target base station B, and then the modification module modifies the port of the related PIT entry. The first sending module 130 sends the content block to be pushed to the target base station according to the modified entry.
可选地, 基站 100还可以包括:  Optionally, the base station 100 may further include:
生成模块, 用于根据第一指示消息生成第二指示消息, 第二指示消息包 括目标基站的标识和待推送的内容块中起始标号的内容块的标识, 第二指示 消息用于指示基站 100存在待向目标基站推送的内容块;  a generating module, configured to generate a second indication message according to the first indication message, where the second indication message includes an identifier of the target base station and an identifier of a content block of a start label in the content block to be pushed, where the second indication message is used to indicate the base station 100 There is a content block to be pushed to the target base station;
第二发送模块, 用于向目标基站发送生成模块生成的第二指示消息; 第二接收模块, 用于接收目标基站根据第二指示消息发送的兴趣包; 第一发送模块 130具体用于: a second sending module, configured to send a second indication message generated by the generating module to the target base station, where the second receiving module is configured to receive the interest packet sent by the target base station according to the second indication message; The first sending module 130 is specifically configured to:
根据第二接收模块接收的兴趣包, 向目标基站发送相应的待推送的内容 块。  And transmitting, according to the interest packet received by the second receiving module, the corresponding content block to be pushed to the target base station.
具体地,终端可以根据当前接收到的最后一个数据包中所包含的内容块 的标识确定待推送的内容块中起始标号的内容块的标识 name, 并使用目标 基站的标识 B和起始标号的内容块的标识 name构建一个 UPI, 给基站 100 的第一接收模块 110, 触发基站 100的第一发送模块 130将相应的内容块推 送给 目 标基站 。 UPI 的 格 式可 以 有 多 种 , 例 如可 以 为 ccnx:/A/push/B/PUSH/name , 该 UPI可以解析为将基站 A (基站 100 )緩存 的与标识为 name的起始标号的内容块同属同一个内容的内容块对应的数据 包推送给目标基站 B。 其中, A用来帮助终端进行路由, 以便将该指示信息 发送给基站 100, push和 PUSH为关键字。 可选的, UPI的格式还可以为 ccnx:/A/B/PUSH/name等, 本发明实施例对此不作限定。  Specifically, the terminal may determine, according to the identifier of the content block included in the last received data packet, the identifier name of the content block of the start label in the content block to be pushed, and use the identifier B and the start label of the target base station. The identifier of the content block constructs a UPI, and the first receiving module 110 of the base station 100 triggers the first sending module 130 of the base station 100 to push the corresponding content block to the target base station. The format of the UPI may be various, for example, it may be ccnx: /A/push/B/PUSH/name, and the UPI may be parsed into the same as the content block of the base label A (base station 100) and the start label identified as name. The data packet corresponding to the content block of the same content is pushed to the target base station B. A is used to help the terminal perform routing, so that the indication information is sent to the base station 100, and push and PUSH are keywords. Optionally, the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited in this embodiment of the present invention.
相应地, 第一接收模块 110接收到该第一指示消息解析之后, 由第二发 送模块向目标基站发送第二指示消息, 以指示目标基站接收待推送的内容 块, 从而实现主动向目标基站推送緩存的内容块。 该第二指示消息可以是一 个基站推送通知 ( SPI, Station Push Indication )。 例如, SPI 可以为 ccnx:/B/PUSH/name。 该 SPI可以解析为基站 A (基站 100 )指示目标基站 B 接收緩存的内容块对应的数据包。 SPI的格式也可以有多种, 本发明实施例 对此不作限定。  Correspondingly, after the first receiving module 110 receives the first indication message, the second sending module sends a second indication message to the target base station to indicate that the target base station receives the content block to be pushed, thereby actively pushing the target base station. The cached content block. The second indication message may be a base station push indication (SPI, Station Push Indication). For example, the SPI can be ccnx:/B/PUSH/name. The SPI can be parsed as the base station A (base station 100) indicating that the target base station B receives the buffered data block corresponding to the content block. There are a plurality of formats of the SPI, which are not limited in the embodiment of the present invention.
应理解, 在本发明实施例中, 起始标号的内容块的标识 name中包括待 推送的内容块的起始标号, 目标基站接收到 SPI并解析后, 向基站 100发送 兴趣包中请求内容块时, 兴趣包中也携带内容块相应的标号。 例如, 一个内 容包含 10个内容块, 当前终端只接收到 2个数据包, 则起始标号的内容块 的标识 name中包括的标号为 3。 基站 100的第二接收模块, 接收目标基站 根据第二指示消息发送的兴趣包; 第一发送模块 130根据兴趣包, 向目标基 站发送相应的待推送的内容块  It should be understood that, in the embodiment of the present invention, the identifier of the content block of the start label includes the start label of the content block to be pushed, and after receiving the SPI and parsing, the target base station sends the request content block in the interest packet to the base station 100. The interest package also carries the corresponding label of the content block. For example, if a content contains 10 content blocks and the current terminal only receives 2 data packets, the identifier of the content block of the start label includes the label number 3. The second receiving module of the base station 100 receives the interest packet sent by the target base station according to the second indication message; the first sending module 130 sends the corresponding content block to be pushed to the target base station according to the interest packet.
可选地, 第一接收模块 110接收的第一指示消息和生成模块生成的第二 指示消息还包括数量信息, 数量信息用于指示目标基站发送兴趣包的数量。  Optionally, the first indication message received by the first receiving module 110 and the second indication message generated by the generating module further include quantity information, where the quantity information is used to indicate the number of interest packets sent by the target base station.
具体而言,终端可以实时记录其向基站发送的兴趣包中所请求的内容块 的标号, 以及终端当前接收到的数据包中的内容块的标号。 在终端确定其将 从基站 100切换至目标基站时,终端可以获知当前已经向基站 100发送的兴 趣包中所请求的内容块的最大标号,还可以获知其已经收到的数据包中的内 容块的最大标号。 已经发送的兴趣包中所请求的内容块的最大标号与已经收 到的数据包中的内容块的最大标号的差值, 即可作为待推送的内容块的数 量。例如,终端向基站 100发送的兴趣包中所请求的内容块的最大标号为 5, 当前终端已经收到的数据包中的内容块的最大标号为 2, 则待推送的内容块 的数量为 3。 Specifically, the terminal can record the label of the content block requested in the interest packet sent by the base station in real time, and the label of the content block in the data packet currently received by the terminal. At the terminal to determine it will When the base station 100 is handed over to the target base station, the terminal can learn the maximum label of the content block requested in the interest packet that has been sent to the base station 100, and can also know the maximum label of the content block in the data packet that has been received. The difference between the maximum label of the content block requested in the already sent interest packet and the maximum label of the content block in the already received data packet can be used as the number of content blocks to be pushed. For example, the maximum number of the content block requested by the terminal to the base station 100 is 5, and the maximum number of the content block in the data packet that the current terminal has received is 2, and the number of the content blocks to be pushed is 3 .
相应地, UPI可以为 ccnx:/A/push/B/PUSH/name/pushnum/n, 该 UPI可 以解析为将基站 A (基站 100 )緩存的内容块对应的数据包推送给目标基站 B , 推送的数据包或内容块的数量为 n, 因此目标基站应发送的兴趣包的数 量也为 n。 例如 UPI还可以为 ccnx:/A/B/PUSH/name/pushnum/n等。 相应地, SPI可以为 ccnx:/B/PUSH/name/pushnum/n。该 SPI可以解析为基站 A指示目 标基站 B接收緩存的内容块对应的数据包, 推送的数据包的数量为 n。 UPI 和 SPI的格式可以有多种, 本发明实施例对此不作限定。  Correspondingly, the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the base station A (base station 100) to the target base station B, and push The number of data packets or content blocks is n, so the number of interest packets that the target base station should send is also n. For example, UPI can also be ccnx: /A/B/PUSH/name/pushnum/n. Accordingly, the SPI can be ccnx:/B/PUSH/name/pushnum/n. The SPI can be parsed as the base station A indicating that the target base station B receives the buffered data block corresponding to the content block, and the number of pushed data packets is n. The format of the UPI and the SPI can be various, which is not limited by the embodiment of the present invention.
应理解, 由于终端当前记录的发送的兴趣包中所请求的内容块的最大标 号和已经收到的数据包中的内容块的最大标号可能并不精确, 因此可以在上 述差值上再增加一个冗余数量, 即在上述获得的差值上再增加一个合适的数 量, 作为待推送的内容块的数量信息, 亦作为目标基站应发送的兴趣包的数 量,以保证原基站緩存的内容块均可以被推送,本发明实施例对此不作限定。  It should be understood that, since the maximum label of the content block requested in the sent interest packet currently recorded by the terminal and the maximum label of the content block in the already received data packet may not be accurate, one additional value may be added to the difference value. The number of redundancy, that is, adding an appropriate quantity to the difference obtained above, as the quantity information of the content block to be pushed, also as the number of interest packets to be sent by the target base station, to ensure that the content blocks buffered by the original base station are both It can be pushed, which is not limited by the embodiment of the present invention.
应理解, 在本发明实施例中, 根据本发明实施例的基站 100可对应于根 据本发明实施例的方法的执行主体, 并且基站 100中的各个模块的上述和其 它操作和 /或功能分别为了实现图 7至图 12中的各个方法的相应流程, 为了 简洁, 在此不再赘述。  It should be understood that, in the embodiments of the present invention, the base station 100 according to the embodiment of the present invention may correspond to an execution body of the method according to the embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the base station 100 are respectively Corresponding processes for implementing the respective methods in FIG. 7 to FIG. 12 are not described herein for brevity.
因此, 本发明实施例提供的基站, 通过接收终端发送的消息, 确定待向 目标基站推送的内容块, 并主动向目标基站发送待推送的内容块, 从而可以 在进行基站切换的同时推送緩存的内容块, 能够减小由于基站切换造成的数 据传输的延迟, 提高用户体验。  Therefore, the base station provided by the embodiment of the present invention determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover. The content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
图 2示出了根据本发明实施例提供的基站 200的示意性框图。 图 2所示 的基站 200为终端将接入的基站, 即目标基站。 具体地, 基站 200包括第一 接收模块 210、 第一发送模块 220和第二接收模块 230, 其中:  FIG. 2 shows a schematic block diagram of a base station 200 provided in accordance with an embodiment of the present invention. The base station 200 shown in Fig. 2 is a base station to which the terminal will access, that is, a target base station. Specifically, the base station 200 includes a first receiving module 210, a first sending module 220, and a second receiving module 230, where:
第一接收模块 210, 用于接收原基站发送的第二指示消息, 第二指示消 息第二指示消息包括基站 200的标识和待推送的内容块中起始标号的内容块 的标识, 第二指示消息用于指示原基站存在待向基站 200推送的内容块; 第一发送模块 220, 用于根据第一接收模块 210接收的第二指示消息, 向原基站发送兴趣包, 兴趣包用于向原基站请求待推送的内容块; The first receiving module 210 is configured to receive a second indication message sent by the original base station, where the second indication is The second indication message includes an identifier of the base station 200 and an identifier of the content block of the start label in the content block to be pushed, and the second indication message is used to indicate that the original base station has a content block to be pushed to the base station 200. The first sending module 220 And sending, by the second indication message received by the first receiving module 210, an interest packet to the original base station, where the interest packet is used to request the original base station to send the content block;
第二接收模块 230, 用于接收原基站根据兴趣包发送的相应的待推送的 内容块。  The second receiving module 230 is configured to receive a corresponding content block to be pushed sent by the original base station according to the interest packet.
因此, 本发明实施例提供的基站, 通过接收原基站发送的指示其接收待 推送的内容块的消息, 向原基站发送兴趣包, 并接收待推送的内容块, 可以 在进行基站切换的同时提前接收终端已请求但并未接收的内容块,从而能够 减小由于基站切换造成的数据传输的延迟, 提高用户体验。  Therefore, the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover. The content block that the terminal has requested but not received, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
可选地, 作为一个实施例, 基站 200还包括:  Optionally, as an embodiment, the base station 200 further includes:
记录模块, 用于记录第一发送模块 220向原基站发送的兴趣包的数量; 控制模块, 用于在兴趣包的数量超过阔值时, 控制第一发送模块 220停 止向原基站发送兴趣包。  The recording module is configured to record the number of the interest packets sent by the first sending module 220 to the original base station, and the control module is configured to control the first sending module 220 to stop sending the interest packets to the original base station when the number of the interest packets exceeds the threshold.
具体而言,基站 200的第一接收模块 210接收原基站发送的第二指示消 name构建一系列的兴趣包, 这些兴趣包用来请求原基站緩存的内容块。 例 如, 该第二指示消息可以是一个 SPI, 格式为 ccnx:/B/PUSH/name, B为基站 200的标识。 一般而言, 由于传输延迟造成的终端在某一时刻终端发送的兴 趣包中的内容块的标号和已经接收到的数据包中的标号的差值有一个经验 值。 根据不同情况, 该经验值可以有不同的取值。 例如, 这个经验值可以是 10, 或者 5、 15。 因此, 一般而言, 原基站所緩存的内容块的数量与该经验 值一致。  Specifically, the first receiving module 210 of the base station 200 receives the second indication sent by the original base station to construct a series of interest packets, and the interest packets are used to request the content block buffered by the original base station. For example, the second indication message may be an SPI in the format of ccnx:/B/PUSH/name, where B is the identifier of the base station 200. In general, the difference between the label of the content block in the interest packet sent by the terminal and the label in the already received packet due to the transmission delay has an empirical value. The experience value can have different values depending on the situation. For example, this experience value can be 10, or 5, 15. Therefore, in general, the number of content blocks buffered by the original base station is consistent with the empirical value.
在终端切换基站的同时,基站 200的第一发送模块 220向原基站发送兴 趣包, 基站 200的记录模块可以对发送的兴趣包的数量进行记录。 当所发送 的兴趣包的数量超过阔值时,控制模块控制第一发送模块 220停止向原基站 发送兴趣包。 该阔值可以选取上文中提到的经验值, 也可以在上述经验值上 再增加一个冗余数量, 本发明实施例对此不作限定。  While the terminal switches the base station, the first sending module 220 of the base station 200 transmits the interest packet to the original base station, and the recording module of the base station 200 can record the number of the sent interest packets. When the number of the transmitted interest packets exceeds the threshold, the control module controls the first transmitting module 220 to stop transmitting the interest packets to the original base station. The threshold value may be selected from the empirical value mentioned above, or a redundant number may be added to the above empirical value, which is not limited by the embodiment of the present invention.
在具体现实中, 如果基站 200同意接收待推送的内容块, 可以设定一个 计数器来记录其向原基站发送的兴趣包的数量,每发送一个兴趣包对计数器 加 1, 直至计数器记录的数量超过预先设定的阔值, 则第一发送模块 220停 止向原基站发送兴趣包。 In a specific reality, if the base station 200 agrees to receive the content block to be pushed, a counter may be set to record the number of interest packets it sends to the original base station, and the counter is incremented by one for each interest packet sent until the number of counter records exceeds The set value of the threshold, the first sending module 220 stops The interest packet is sent to the original base station.
应理解, 基站 200也可以不设定阔值, 当原基站对基站 200发送的兴趣 包不再做出回应时, 第一发送模块 220停止向原基站发送兴趣包。  It should be understood that the base station 200 may not set a threshold. When the original base station no longer responds to the interest packet sent by the base station 200, the first sending module 220 stops transmitting the interest packet to the original base station.
可选地, 作为另一个实施例, 第一接收模块 210接收的第二指示消息还 包括数量信息, 数量信息用于指示基站 200发送兴趣包的数量;  Optionally, as another embodiment, the second indication message received by the first receiving module 210 further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the base station 200;
基站 200还包括:  The base station 200 also includes:
记录模块, 用于记录向原基站发送的兴趣包的数量;  a recording module, configured to record the number of interest packets sent to the original base station;
控制模块, 用于在兴趣包的数量超过数量信息时, 基站停止向原基站发 送兴趣包。  The control module is configured to stop sending the interest packet to the original base station when the number of interest packets exceeds the quantity information.
具体而言,基站 200的第一接收模块 210接收原基站发送的第二指示消 name和指示目标基站发送兴趣包的数量 n等信息构建 n个兴趣包, 这 n个 兴趣包用来请求原基站緩存的内容块。 当所发送的兴趣包的数量超过 n时, 第一发送模块 220停止向原基站发送兴趣包。 其中, n为终端根据当前已经 向原基站发送的兴趣包中所请求的内容块的最大标号和已经收到的数据包 中的内容块的最大标号的差值, 确定的待推送的内容块的数量。 例如, 该第 二消息可以是一个 SPI, 格式为 ccnx:/B/PUSH/name/pushnum/n。  Specifically, the first receiving module 210 of the base station 200 receives information such as the second indication cancellation name sent by the original base station and the number n of interest packets sent by the target base station, and constructs n interest packets, where the n interest packets are used to request the original base station. The cached content block. When the number of the transmitted interest packets exceeds n, the first transmitting module 220 stops transmitting the interest packets to the original base station. Where n is the number of the content blocks to be pushed determined by the terminal according to the difference between the maximum label of the content block requested in the interest packet currently sent to the original base station and the maximum label of the content block in the received data packet. . For example, the second message can be an SPI in the format ccnx:/B/PUSH/name/pushnum/n.
在具体现实中, 如果基站 200同意接收待推送的内容块, 可以设定一个 计数器, 将该计数器的初始值设置为 n。 基站 200向原基站每发送一个兴趣 包对计数器减 1, 直至计数器的值为 0时, 第一发送模块 220停止向原基站 发送兴趣包。  In a specific reality, if the base station 200 agrees to receive the content block to be pushed, a counter can be set, and the initial value of the counter is set to n. The base station 200 decrements one of the interest packet pair counters to the original base station until the counter value is 0, and the first transmitting module 220 stops transmitting the interest packet to the original base station.
应理解, 在本发明实施例中, 根据本发明实施例的基站 200可对应于根 据本发明实施例的方法的执行主体, 并且基站 200中的各个模块的上述和其 它操作和 /或功能分别为了实现图 7至图 12中的各个方法的相应流程, 为了 简洁, 在此不再赘述。  It should be understood that, in the embodiments of the present invention, the base station 200 according to the embodiment of the present invention may correspond to an execution body of the method according to the embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the base station 200 are respectively Corresponding processes for implementing the respective methods in FIG. 7 to FIG. 12 are not described herein for brevity.
因此, 本发明实施例提供的基站, 通过接收原基站发送的指示其接收待 推送的内容块的消息, 向原基站发送兴趣包, 并接收待推送的内容块, 可以 在进行基站切换的同时提前接收终端已请求但并未接收的内容块,从而能够 减小由于基站切换造成的数据传输的延迟, 提高用户体验。  Therefore, the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover. The content block that the terminal has requested but not received, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
图 3示出了根据本发明实施例提供的终端 300的示意性框图。 图 3所示 的终端 300即将从原基站切换至目标基站。 具体地, 终端 300包括生成模块 310和发送模块 320, 其中: FIG. 3 shows a schematic block diagram of a terminal 300 provided in accordance with an embodiment of the present invention. The terminal 300 shown in FIG. 3 is about to be handed over from the original base station to the target base station. Specifically, the terminal 300 includes a generating module. 310 and a sending module 320, wherein:
生成模块 310, 用于在确定终端将从原基站切换至目标基站时, 生成第 一指示消息, 第一指示消息用于指示原基站向目标基站发送待推送的内容 块;  The generating module 310 is configured to: when determining that the terminal is to be handed over from the original base station to the target base station, generate a first indication message, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
发送模块 320, 用于向原基站发送生成模块 310生成的第一指示消息。 因此, 本发明实施例提供的终端, 在确定即将从原基站切换至目标基站 时, 通过向原基站发送第一指示消息, 触发原基站向目标基站推送其緩存的 内容块, 使得在进行基站切换的同时, 目标基站可以提前接收终端已请求但 并未接收的内容块, 从而能够减小由于基站切换造成的数据传输的延迟, 提 高用户体验。  The sending module 320 is configured to send, to the original base station, the first indication message generated by the generating module 310. Therefore, the terminal provided by the embodiment of the present invention, when determining that the base station is to be switched from the original base station to the target base station, triggers the original base station to push the cached content block to the target base station by transmitting the first indication message to the original base station, so that the base station handover is performed. At the same time, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
可选地, 作为一个实施例, 生成模块 310生成的第一指示消息包括: 原 基站的标识、 目标基站的标识和待推送的内容块中起始标号的内容块的标 识;  Optionally, as an embodiment, the first indication message generated by the generating module 310 includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed;
生成模块 310具体用于:  The generating module 310 is specifically configured to:
根据原基站的标识、 目标基站的标识和接收到的最后一个内容块的标 识, 生成第一指示消息。  And generating a first indication message according to the identifier of the original base station, the identifier of the target base station, and the identifier of the last content block received.
具体地,生成模块 310可以根据当前终端 300接收到的最后一个数据包 中所包含的内容块的标识确定起始标号的内容块的标识 name, 并使用原基 站的标识 A、 目标基站的标识 B 和待推送的内容块的标识 name构建一个 UPI, 作为第一指示消息发送给原基站, 触发原基站将相应的内容块推送给 目标基站。 UPI的格式可以有多种, 本发明实施例对此不作限定。  Specifically, the generating module 310 may determine the identifier name of the content block of the start label according to the identifier of the content block included in the last data packet received by the current terminal 300, and use the identifier A of the original base station and the identifier B of the target base station. And identifying the UPI of the content block to be pushed, and transmitting the UPI as a first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station. The format of the UPI may be various, which is not limited by the embodiment of the present invention.
可选地, 例如 UPI的格式可以为 ccnx:/A/push/B/PUSH/name, 该 UPI可 以解析为将原基站 A緩存的与标识为 name的起始标号的内容块同属同一个 内容的内容块对应的数据包推送给目标基站:6。 其中, A用来帮助终端进行 路由,以便将该指示信息发送给原基站 A, push和 PUSH为关键字。可选的, UPI的格式还可以为 ccnx:/A/B/PUSH/name等,本发明实施例对此不作限定。  Optionally, the format of the UPI may be ccnx: /A/push/B/PUSH/name, and the UPI may be parsed into the same content that is buffered by the original base station A and the content block identified by the start label of the name. The data packet corresponding to the content block is pushed to the target base station: 6. A is used to help the terminal to perform routing, so as to send the indication information to the original base station A, push and PUSH as keywords. Optionally, the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited by the embodiment of the present invention.
可选地,生成模块 310生成的第一指示消息用于指示原基站将待推送的 内容块所对应的查询等待表 PIT表项的端口修改为目标基站对应的端口。  Optionally, the first indication message generated by the generating module 310 is used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station.
具体而言,生成模块 310可以根据当前终端 300接收到的最后一个数据 包中所包含的内容块的标识确定待推送的内容块中起始标号的内容块的标 识 name, 并使用原基站的标识 A、 目标基站的标识 B、 待推送的内容块中 起始标号的内容块的标识 name构建一个 UPI, 由发送模块 320作为第一指 示消息发送给原基站, 触发原基站将相应的内容块推送给目标基站。 UPI的 格式可以有多种, 例如 UPI可以为 ccnx: /A/fix_PIT/name/B, 其中, fix_PIT 为关键字,用来表示该 UPI用来修改 PIT表项。该 UPI可以解析为在原基站 的 PIT中, 将与标识为 name的起始标号的内容块同属同一个内容的内容块 对应的表项进行修改,将这些数据包的表项的端口修改为目标基站 B所对应 的端口。 Specifically, the generating module 310 may determine, according to the identifier of the content block included in the last data packet received by the current terminal 300, the identifier of the content block of the starting label in the content block to be pushed, and use the identifier of the original base station. A, the identity of the target base station B, the content block to be pushed The identifier of the content block of the start label constructs a UPI, and the sending module 320 sends the first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station. The format of the UPI can be various. For example, the UPI can be ccnx: /A/fix_PIT/name/B, where fix_PIT is a keyword, which is used to indicate that the UPI is used to modify the PIT entry. The UPI may be parsed into a PIT in the original base station, and the content block corresponding to the content block identified by the start label of the name is the same as the content block belonging to the same content, and the port of the entry of the data packet is modified to the target base station. The port corresponding to B.
第一指示消息中还可以包含待推送的内容块的数量,有利于原基站更准 确地确定待推送的内容块, 从而更有效地修改相应的 PIT表项。 例如, UPI 格式可以为 ccnx: /A/fix_PIT/name/n/B, 可以更准确地告知原基站需要修改 n 个 PIT表项, 可以提高修改的效率。  The first indication message may further include the number of content blocks to be pushed, which is beneficial for the original base station to more accurately determine the content block to be pushed, thereby modifying the corresponding PIT entry more effectively. For example, the UPI format can be ccnx: /A/fix_PIT/name/n/B, which can more accurately inform the original base station that it needs to modify n PIT entries, which can improve the efficiency of modification.
可选地, 生成模块 310生成的第一指示消息还数量信息, 数量信息用于 指示目标基站发送兴趣包的数量;  Optionally, the first indication message generated by the generating module 310 is further quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
终端 300还包括:  Terminal 300 also includes:
确定模块,用于根据终端 300发送的最后一个兴趣包中所请求的内容块 的标号和接收到的最后一个数据包中的内容块的标号,确定用于指示目标基 站发送兴趣包的数量。  And a determining module, configured to determine, according to the label of the content block requested in the last interest packet sent by the terminal 300 and the label of the content block in the last received data packet, the number indicating the destination base station to send the interest packet.
相应地, UPI可以为 ccnx:/A/push/B/PUSH/name/pushnum/n, 该 UPI可 以解析为将原基站 A緩存的内容块对应的数据包推送给目标基站 B,推送的 数 据 包 或 内 容 块 的 数 量 为 n 。 相 应 地 , SPI 可 以 为 ccnxJB/PUSH/name/pushnum/r  Correspondingly, the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the original base station A to the target base station B, and the pushed data packet Or the number of content blocks is n. Correspondingly, the SPI can be ccnxJB/PUSH/name/pushnum/r
应理解, 在本发明实施例中, 根据本发明实施例的终端 300可对应于根 据本发明实施例的方法的执行主体, 并且终端 300中的各个模块的上述和其 它操作和 /或功能分别为了实现图 7至图 12中的各个方法的相应流程, 为了 简洁, 在此不再赘述。  It should be understood that, in the embodiment of the present invention, the terminal 300 according to the embodiment of the present invention may correspond to an execution body of the method according to the embodiment of the present invention, and the foregoing and other operations and/or functions of the respective modules in the terminal 300 are respectively Corresponding processes for implementing the respective methods in FIG. 7 to FIG. 12 are not described herein for brevity.
因此, 本发明实施例提供的终端, 在确定即将从原基站切换至目标基站 时, 通过向原基站发送第一指示消息, 触发原基站向目标基站推送其緩存的 内容块, 使得在进行基站切换的同时, 目标基站可以提前接收终端已请求但 并未接收的内容块, 从而能够减小由于基站切换造成的数据传输的延迟, 提 高用户体验。  Therefore, the terminal provided by the embodiment of the present invention, when determining that the base station is to be switched from the original base station to the target base station, triggers the original base station to push the cached content block to the target base station by transmitting the first indication message to the original base station, so that the base station handover is performed. At the same time, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
图 4示出了根据本发明另一实施例的基站 400的示意性框图。如图 4所 示, 该基站 400包括处理器 410, 存储器 420、 接收器 430、 发送器 440和总 线 450。 其中, 处理器 410和存储器 420通过总线系统 450相连, 该存储器 420用于存储指令,该处理器 410用于执行该存储器 420存储的指令。其中, 接收器 430用于: FIG. 4 shows a schematic block diagram of a base station 400 in accordance with another embodiment of the present invention. As shown in Figure 4 The base station 400 includes a processor 410, a memory 420, a receiver 430, a transmitter 440, and a bus 450. The processor 410 and the memory 420 are connected by a bus system 450 for storing instructions for executing instructions stored in the memory 420. Wherein, the receiver 430 is configured to:
接收将从基站 400切换至目标基站的终端发送的第一指示消息,第一指 示消息用于指示基站 400向目标基站发送待推送的内容块;  Receiving a first indication message sent by the terminal that is to be handed over from the base station 400 to the target base station, where the first indication message is used to instruct the base station 400 to send the content block to be pushed to the target base station;
处理器 410用于:  The processor 410 is configured to:
根据接收器 430接收的第一指示消息, 确定待推送的内容块;  Determining a content block to be pushed according to the first indication message received by the receiver 430;
发送器 440用于:  Transmitter 440 is used to:
向目标基站发送处理器 410确定的待推送的内容块。  The content block to be pushed determined by the processor 410 is transmitted to the target base station.
因此, 本发明实施例提供的基站, 通过接收终端发送的消息, 确定待向 目标基站推送的内容块, 并主动向目标基站发送待推送的内容块, 从而可以 在进行基站切换的同时推送緩存的内容块, 能够减小由于基站切换造成的数 据传输的延迟, 提高用户体验。  Therefore, the base station provided by the embodiment of the present invention determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover. The content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
应理解,在本发明实施例中,该处理器 410可以是中央处理单元( Central It should be understood that in the embodiment of the present invention, the processor 410 may be a central processing unit (Central)
Processing Unit, CPU ), 该处理器 410还可以是其他通用处理器、 数字信号 处理器 (DSP )、 专用集成电路(ASIC )、 现成可编程门阵列 (FPGA )或者 其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用 处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。 Processing Unit, CPU ), the processor 410 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates Or transistor logic devices, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器 420可以包括只读存储器和随机存取存储器, 并向处理器 410 提供指令和数据。存储器 420的一部分还可以包括非易失性随机存取存储器。 例如, 存储器 420还可以存储设备类型的信息。  The memory 420 can include read only memory and random access memory and provides instructions and data to the processor 410. A portion of memory 420 may also include non-volatile random access memory. For example, the memory 420 can also store information of the device type.
该总线系统 450除包括数据总线之外, 还可以包括电源总线、 控制总线 和状态信号总线等。 但是为了清楚说明起见, 在图中将各种总线都标为总线 系统 450。  The bus system 450 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 450 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器 410中的硬件的集成 逻辑电路或者软件形式的指令完成。 结合本发明实施例所公开的方法的步骤 可以直接体现为硬件处理器执行完成, 或者用处理器中的硬件及软件模块组 合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程只 读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存储介质中。 该存储介质位于存储器 420, 处理器 410读取存储器 420中的信息, 结合其 硬件完成上述方法的步骤。 为避免重复, 这里不再详细描述。 In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 410 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 420, and the processor 410 reads the information in the memory 420, combining the same The hardware completes the steps of the above method. To avoid repetition, it will not be described in detail here.
可选地, 作为一个实施例, 接收器 430接收的第一指示消息包括: 基站 400的标识、目标基站的标识和待推送的内容块中起始标号的内容块的标识。  Optionally, as an embodiment, the first indication message received by the receiver 430 includes: an identifier of the base station 400, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
可选地,接收器 430接收的第一指示消息还用于指示基站将待推送的内 容块所对应的查询等待表 PIT表项的端口修改为目标基站对应的端口;  Optionally, the first indication message received by the receiver 430 is further used to indicate that the base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station;
处理器 410还用于:  The processor 410 is also used to:
根据第一指示消息,将待推送的内容块所对应的 PIT表项的端口修改为 目标基站对应的端口;  Modifying, according to the first indication message, a port of the PIT entry corresponding to the content block to be pushed to a port corresponding to the target base station;
发送器 440具体用于: 根据 PIT表项向目标基站发送待推送的内容块。 可选地, 在发送器 440向目标基站发送待推送的内容块之前,  The transmitter 440 is specifically configured to: send the content block to be pushed to the target base station according to the PIT entry. Optionally, before the transmitter 440 sends the content block to be pushed to the target base station,
处理器 410还用于:  The processor 410 is also used to:
根据第一指示消息生成第二指示消息, 第二指示消息包括目标基站的标 识和待推送的内容块中起始标号的内容块的标识, 第二指示消息用于指示基 站 400存在待向目标基站推送的内容块;  And generating, by the first indication message, a second indication message, where the second indication message includes an identifier of the target base station and an identifier of a content block of a start label in the content block to be pushed, where the second indication message is used to indicate that the base station 400 has a target to be sent to the target base station. Pushed content block;
发送器 440还用于:  Transmitter 440 is also used to:
向目标基站发送第二指示消息;  Sending a second indication message to the target base station;
接收器 430还用于:  Receiver 430 is also used to:
接收目标基站根据第二指示消息发送的兴趣包  Receiving an interest packet sent by the target base station according to the second indication message
发送器 440还具体用于:  Transmitter 440 is also specifically used to:
根据兴趣包, 向目标基站发送相应的待推送的内容块。  According to the interest packet, the corresponding content block to be pushed is sent to the target base station.
可选地, 第一指示消息和第二指示消息还可以包括数量信息, 数量信息 用于指示目标基站发送兴趣包的数量。  Optionally, the first indication message and the second indication message may further include quantity information, where the quantity information is used to indicate the number of interest packets sent by the target base station.
还应理解, 在本发明实施例中, 根据本发明实施例的基站 400, 可对应 于根据本发明实施例的方法的执行主体, 还可以对应于基站 100, 并且该基 站 400中的各个模块的上述和其它操作和 /或功能分别为了实现图 7至图 12 中的各个方法的相应流程, 为了简洁, 在此不再赘述。  It should be understood that, in the embodiment of the present invention, the base station 400 according to the embodiment of the present invention may correspond to an execution body of the method according to the embodiment of the present invention, and may also correspond to the base station 100, and each module in the base station 400 The above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 7 to FIG. 12, and are not described herein again for brevity.
因此, 本发明实施例提供的基站, 通过接收终端发送的消息, 确定待向 目标基站推送的内容块, 并主动向目标基站发送待推送的内容块, 从而可以 在进行基站切换的同时推送緩存的内容块, 能够减小由于基站切换造成的数 据传输的延迟, 提高用户体验。  Therefore, the base station provided by the embodiment of the present invention determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the cache can be pushed while performing the base station handover. The content block can reduce the delay of data transmission caused by the handover of the base station and improve the user experience.
图 5示出了根据本发明另一实施例的基站 500的示意性框图。如图 5所 示, 该基站 500包括处理器 510, 存储器 520、 接收器 530、 发送器 540和总 线 550。 其中, 处理器 510和存储器 520通过总线系统 550相连, 该存储器 520用于存储指令,该处理器 510用于执行该存储器 520存储的指令。其中, 接收器 530用于: FIG. 5 shows a schematic block diagram of a base station 500 in accordance with another embodiment of the present invention. As shown in Figure 5 The base station 500 includes a processor 510, a memory 520, a receiver 530, a transmitter 540, and a bus 550. The processor 510 and the memory 520 are connected by a bus system 550 for storing instructions for executing instructions stored in the memory 520. The receiver 530 is configured to:
接收原基站发送的第二指示消息, 第二指示消息第二指示消息包括基站 Receiving a second indication message sent by the original base station, where the second indication message includes a base station
500的标识和待推送的内容块中起始标号的内容块的标识, 第二指示消息用 于指示原基站存在待向基站 500推送的内容块; An identifier of 500 and an identifier of a content block of a start label in a content block to be pushed, and a second indication message is used to indicate that the original base station has a content block to be pushed to the base station 500;
发送器 540用于:  Transmitter 540 is used to:
根据接收器 530接收的第二指示消息, 向原基站发送兴趣包, 兴趣包用 于向原基站请求待推送的内容块。  And according to the second indication message received by the receiver 530, the interest packet is sent to the original base station, and the interest packet is used to request the original base station for the content block to be pushed.
接收器 530还用于:接收原基站根据兴趣包发送的相应的待推送的内容 块  The receiver 530 is further configured to: receive a corresponding content block to be pushed sent by the original base station according to the interest packet.
因此, 本发明实施例提供的基站, 通过接收原基站发送的指示其接收待 推送的内容块的消息, 向原基站发送兴趣包, 并接收待推送的内容块, 可以 在进行基站切换的同时提前接收终端已请求但并未接收的内容块,从而能够 减小由于基站切换造成的数据传输的延迟, 提高用户体验。  Therefore, the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover. The content block that the terminal has requested but not received, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
应理解,在本发明实施例中,该处理器 510可以是中央处理单元( Central It should be understood that in the embodiment of the present invention, the processor 510 may be a central processing unit (Central)
Processing Unit, CPU ), 该处理器 510还可以是其他通用处理器、 数字信号 处理器 (DSP )、 专用集成电路(ASIC )、 现成可编程门阵列 (FPGA )或者 其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用 处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。 Processing Unit, CPU ), the processor 510 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates Or transistor logic devices, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器 520可以包括只读存储器和随机存取存储器, 并向处理器 510 提供指令和数据。存储器 520的一部分还可以包括非易失性随机存取存储器。 例如, 存储器 520还可以存储设备类型的信息。  The memory 520 can include read only memory and random access memory and provides instructions and data to the processor 510. A portion of memory 520 may also include non-volatile random access memory. For example, the memory 520 can also store information of the device type.
该总线系统 550除包括数据总线之外, 还可以包括电源总线、 控制总线 和状态信号总线等。 但是为了清楚说明起见, 在图中将各种总线都标为总线 系统 550。  The bus system 550 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 550 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器 510中的硬件的集成 逻辑电路或者软件形式的指令完成。 结合本发明实施例所公开的方法的步骤 可以直接体现为硬件处理器执行完成, 或者用处理器中的硬件及软件模块组 合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程只 读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存储介质中。 该存储介质位于存储器 520, 处理器 510读取存储器 520中的信息, 结合其 硬件完成上述方法的步骤。 为避免重复, 这里不再详细描述。 In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 510 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in random access memory, flash memory, read only memory, programmable only Read memory or electrically erasable programmable memory, registers, etc., which are well-established in the field of storage media. The storage medium is located in the memory 520. The processor 510 reads the information in the memory 520 and completes the steps of the above method in combination with hardware. To avoid repetition, it will not be described in detail here.
可选地, 作为一个实施例, 处理器 510还用于:  Optionally, as an embodiment, the processor 510 is further configured to:
记录发送器 540向原基站发送的兴趣包的数量;  Recording the number of interest packets sent by the transmitter 540 to the original base station;
在兴趣包的数量超过阔值时, 控制基站 500停止向原基站发送兴趣包。 可选地, 作为另一个实施例, 接收器 530接收的第二指示消息还包括数 量信息, 数量信息用于指示基站 500发送兴趣包的数量  When the number of interest packets exceeds the threshold, the control base station 500 stops transmitting the interest packets to the original base station. Optionally, as another embodiment, the second indication message received by the receiver 530 further includes quantity information, where the quantity information is used to indicate the number of interest packets sent by the base station 500.
处理器 510还用于:  The processor 510 is also used to:
记录向原基站发送的兴趣包的数量;  Recording the number of interest packets sent to the original base station;
在兴趣包的数量超过数量信息时,控制基站 500停止向原基站发送兴趣 包。  When the number of interest packets exceeds the quantity information, the control base station 500 stops transmitting the interest packets to the original base station.
还应理解, 在本发明实施例中, 根据本发明实施例的基站 500, 可对应 于根据本发明实施例的方法的执行主体, 还可以对应于基站 200, 并且该基 站 500中的各个模块的上述和其它操作和 /或功能分别为了实现图 7至图 12 中的各个方法的相应流程, 为了简洁, 在此不再赘述。  It should be understood that, in the embodiment of the present invention, the base station 500 according to the embodiment of the present invention may correspond to an execution body of the method according to the embodiment of the present invention, and may also correspond to the base station 200, and each module in the base station 500 The above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 7 to FIG. 12, and are not described herein again for brevity.
因此, 本发明实施例提供的基站, 通过接收原基站发送的指示其接收待 推送的内容块的消息, 向原基站发送兴趣包, 并接收待推送的内容块, 可以 在进行基站切换的同时提前接收终端已请求但并未接收的内容块,从而能够 减小由于基站切换造成的数据传输的延迟, 提高用户体验。  Therefore, the base station provided by the embodiment of the present invention receives the message sent by the original base station to receive the content block to be pushed, sends the interest packet to the original base station, and receives the content block to be pushed, which can be received in advance while performing the base station handover. The content block that the terminal has requested but not received, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
图 6示出了根据本发明另一实施例的终端 600的示意性框图。如图 6所 示,该终端 600包括处理器 610,存储器 620、发送器 630和总线 640。其中, 处理器 610和存储器 620通过总线系统 640相连, 该存储器 620用于存储指 令, 该处理器 610用于执行该存储器 620存储的指令。 其中, 处理器 610用 于:  FIG. 6 shows a schematic block diagram of a terminal 600 in accordance with another embodiment of the present invention. As shown in FIG. 6, the terminal 600 includes a processor 610, a memory 620, a transmitter 630, and a bus 640. The processor 610 and the memory 620 are connected by a bus system 640 for storing instructions for executing instructions stored by the memory 620. The processor 610 is used to:
在确定将从原基站切换至目标基站时, 生成第一指示消息, 第一指示消 息用于指示原基站向目标基站发送待推送的内容块;  When it is determined that the original base station is to be switched to the target base station, the first indication message is generated, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
发送器 630用于:  Transmitter 630 is used to:
向原基站发送第一指示消息。  Sending a first indication message to the original base station.
因此, 本发明实施例提供的终端, 在确定即将从原基站切换至目标基站 时, 通过向原基站发送第一指示消息, 触发原基站向目标基站推送其緩存的 内容块, 使得在进行基站切换的同时, 目标基站可以提前接收终端已请求但 并未接收的内容块, 从而能够减小由于基站切换造成的数据传输的延迟, 提 高用户体验。 Therefore, the terminal provided by the embodiment of the present invention, when determining that the original base station is to be handed over to the target base station, triggers the original base station to push the cache to the target base station by sending the first indication message to the original base station. The content block enables the target base station to receive the content block that the terminal has requested but does not receive in advance while performing the base station handover, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
应理解,在本发明实施例中,该处理器 610可以是中央处理单元( Central Processing Unit, CPU ), 该处理器 610还可以是其他通用处理器、 数字信号 处理器 (DSP )、 专用集成电路(ASIC )、 现成可编程门阵列 (FPGA )或者 其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用 处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。  It should be understood that, in the embodiment of the present invention, the processor 610 may be a central processing unit (CPU), and the processor 610 may also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits. (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and more. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器 620可以包括只读存储器和随机存取存储器, 并向处理器 610 提供指令和数据。存储器 620的一部分还可以包括非易失性随机存取存储器。 例如, 存储器 620还可以存储设备类型的信息。  The memory 620 can include read only memory and random access memory and provides instructions and data to the processor 610. A portion of memory 620 may also include non-volatile random access memory. For example, the memory 620 can also store information of the device type.
该总线系统 640除包括数据总线之外, 还可以包括电源总线、 控制总线 和状态信号总线等。 但是为了清楚说明起见, 在图中将各种总线都标为总线 系统 640。  The bus system 640 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus system 640 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器 610中的硬件的集成 逻辑电路或者软件形式的指令完成。 结合本发明实施例所公开的方法的步骤 可以直接体现为硬件处理器执行完成, 或者用处理器中的硬件及软件模块组 合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程只 读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存储介质中。 该存储介质位于存储器 620, 处理器 610读取存储器 620中的信息, 结合其 硬件完成上述方法的步骤。 为避免重复, 这里不再详细描述。  In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 610 or an instruction in the form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software modules can be located in random memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc., which are well established in the art. The storage medium is located in the memory 620. The processor 610 reads the information in the memory 620 and combines the hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
可选地, 作为一个实施例, 第一指示消息包括: 原基站的标识、 目标基 站的标识和待推送的内容块中起始标号的内容块的标识;  Optionally, as an embodiment, the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed;
处理器 610具体用于:  The processor 610 is specifically configured to:
根据原基站的标识、 目标基站的标识和接收到的最后一个数据包中的内 容块的标识, 生成第一指示消息。  And generating a first indication message according to the identifier of the original base station, the identifier of the target base station, and the identifier of the content block in the last received data packet.
可选地,第一指示消息用于指示原基站将待推送的内容块所对应的查询 等待表 PIT表项的端口修改为目标基站对应的端口。  Optionally, the first indication message is used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station.
可选地, 第一指示消息还包括数量信息, 数量信息用于指示目标基站发 送兴趣包的数量;  Optionally, the first indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
在生成第一指示消息之前, 处理器 610还用于: 根据发送的最后一个兴趣包中所请求的内容块的标号和接收到的最后 一个数据包中的内容块的标号, 确定用于指示目标基站发送兴趣包的数量。 Before generating the first indication message, the processor 610 is further configured to: The number indicating the target base station to transmit the interest packet is determined according to the label of the content block requested in the last interest packet sent and the label of the content block in the last received data packet.
应理解, 在本发明实施例中, 根据本发明实施例的终端 600, 可对应于 根据本发明实施例的方法的执行主体, 还可以对应于终端 300, 并且该终端 600中的各个模块的上述和其它操作和 /或功能分别为了实现图 7至图 12中 的各个方法的相应流程, 为了简洁, 在此不再赘述。  It should be understood that, in the embodiment of the present invention, the terminal 600 according to the embodiment of the present invention may correspond to the execution body of the method according to the embodiment of the present invention, and may also correspond to the terminal 300, and the foregoing modules of the terminal 600 And other operations and/or functions, respectively, in order to implement the corresponding processes of the respective methods in FIG. 7 to FIG. 12, for brevity, no further details are provided herein.
因此, 本发明实施例提供的终端, 在确定即将从原基站切换至目标基站 时, 通过向原基站发送第一指示消息, 触发原基站向目标基站推送其緩存的 内容块, 使得在进行基站切换的同时, 目标基站可以提前接收终端已请求但 并未接收的内容块, 从而能够减小由于基站切换造成的数据传输的延迟, 提 高用户体验。  Therefore, the terminal provided by the embodiment of the present invention, when determining that the base station is to be switched from the original base station to the target base station, triggers the original base station to push the cached content block to the target base station by transmitting the first indication message to the original base station, so that the base station handover is performed. At the same time, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
图 7示出了根据本发明一个实施例的数据传输的方法 700, 该方法 700 可以由即将切换出的基站, 即原基站执行。 如图 7所示, 该方法 700包括: S710,原基站接收将从原基站切换至目标基站的终端发送的第一指示消 息, 第一指示消息用于指示原基站向目标基站发送待推送的内容块;  Figure 7 illustrates a method 700 of data transmission, which may be performed by a base station to be handed over, i.e., an original base station, in accordance with one embodiment of the present invention. As shown in FIG. 7, the method 700 includes: S710: The original base station receives a first indication message sent by a terminal that is to be handed over from the original base station to the target base station, where the first indication message is used to indicate that the original base station sends the content to be pushed to the target base station. Piece;
S720, 原基站根据第一指示消息, 确定待推送的内容块;  S720: The original base station determines, according to the first indication message, a content block to be pushed.
S730, 原基站向目标基站发送待推送的内容块。  S730. The original base station sends the content block to be pushed to the target base station.
在 S710中, 终端将切换出的基站即原基站, 接收终端发送的第一指示 消息。终端通过该第一指示消息将终端将从原基站切换至目标基站的信息通 知原基站。 终端还需将当前正在接收的内容的相关信息告知原基站, 以便于 原基站将终端已发送数据请求但还未接收到的内容块, 即终端已发送兴趣包 但还未接收到的数据包推送给目标基站。  In S710, the terminal, which is the base station that is switched out, is the original base station, and receives the first indication message sent by the terminal. The terminal informs the original base station of the information that the terminal will switch from the original base station to the target base station through the first indication message. The terminal also needs to inform the original base station of the related information of the content currently being received, so that the original base station pushes the content block that the terminal has sent the data request but has not received yet, that is, the data packet that the terminal has sent the interest packet but has not received yet. Give the target base station.
在 S720中, 原基站可以根据接收到的第一指示消息, 确定要切换出的 终端当前所接收的内容的相关情况, 并确定应该推送给目标基站的内容块, 即待推送的内容块。  In S720, the original base station may determine, according to the received first indication message, the relevant situation of the content currently received by the terminal to be switched, and determine the content block that should be pushed to the target base station, that is, the content block to be pushed.
在 S730中, 原基站将待推送的内容块推送给目标基站。 该推送过程可 以是告知目标基站, 由目标基站发送请求这些内容块的兴趣包完成推送, 也 可以通过爹改 PIT表项完成推送。  In S730, the original base station pushes the content block to be pushed to the target base station. The push process may be to inform the target base station that the target base station sends the interest packet requesting the content block to complete the push, or may perform the push by tampering with the PIT entry.
因此, 本发明实施例提供的数据传输的方法, 原基站通过接收终端发送 的消息, 确定待向目标基站推送的内容块, 并主动向目标基站发送待推送的 内容块, 从而可以在进行基站切换的同时推送緩存的内容块, 能够减小由于 基站切换造成的数据传输的延迟, 提高用户体验。 Therefore, in the data transmission method provided by the embodiment of the present invention, the original base station determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the base station can be switched. Simultaneously pushing the cached content block can reduce The delay in data transmission caused by base station switching improves the user experience.
可选地, 作为一个实施例, 第一指示消息包括: 原基站的标识、 目标基 站的标识和待推送的内容块中起始标号的内容块的标识。  Optionally, as an embodiment, the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed.
具体而言, 终端根据当前检测到的各基站的信号强度等, 可以确定目标 基站, 通过目标基站发布的前缀信息确定目标基站的标识; 根据当前发送的 请求内容的兴趣包和接收的包含内容块的数据包, 可以确定需要原基站推送 的待推送的内容块中起始标号的内容块。将目标基站的标识和待推送的内容 块中起始标号的内容块的标识通知原基站,原基站可以将相应的内容块推送 给目标基站。 其中, 待推送的内容块中起始标号的内容块的标识中包括内容 的标识和内容块的标号。 此外, 待推送的内容块中起始标号的内容块的标识 中还可以包含其它信息, 例如源端的信息等, 本发明实施例对此不作限定。  Specifically, the terminal may determine, according to the currently detected signal strength of each base station, the target base station, and determine the identifier of the target base station by using the prefix information advertised by the target base station; the interest packet according to the currently sent request content and the received content block. The data packet can determine the content block of the starting label in the content block to be pushed that needs to be pushed by the original base station. Notifying the original base station of the identity of the target base station and the identity of the content block of the start label in the content block to be pushed, the original base station can push the corresponding content block to the target base station. The identifier of the content block of the start label in the content block to be pushed includes the identifier of the content and the label of the content block. In addition, the identifier of the content block of the starting label in the content block to be pushed may also include other information, such as the information of the source end, which is not limited by the embodiment of the present invention.
应理解, 为了便于终端发送该第一指示信息, 第一指示信息中还包括原 基站的标识, 以便于终端根据基站的标识查找路由信息, 以将该第一指示信 息发送给原基站, 本文发明实施例对此不作限定。  It should be understood that, in order to facilitate the terminal to send the first indication information, the first indication information further includes an identifier of the original base station, so that the terminal searches for the routing information according to the identifier of the base station, to send the first indication information to the original base station, The embodiment does not limit this.
可选地,第一指示消息还用于指示原基站将待推送的内容块所对应的查 询等待表 PIT表项的端口修改为目标基站对应的端口;  Optionally, the first indication message is further used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station;
方法 700还可以包括:  Method 700 can also include:
原基站根据第一指示消息,将待推送的内容块所对应的 PIT表项的端口 The original base station, according to the first indication message, the port of the PIT entry corresponding to the content block to be pushed
^ί'爹改为目标基站对应的端口; ^ί'爹 is changed to the port corresponding to the target base station;
其中, 原基站向目标基站发送待推送的内容块, 包括: 原基站根据 PIT 表项向目标基站发送待推送的内容块。  The original base station sends the content block to be pushed to the target base station, including: the original base station sends the content block to be pushed to the target base station according to the PIT entry.
在基站中配置有 PIT, 该 PIT用于存储终端已发送的但还未接收到响应 的数据请求, 以及这些请求各自对应的端口。 在终端断开与原基站的连接之 前, 原基站已经向源端发送了一部分用于数据请求的兴趣包, 但响应这些数 据请求的数据包还未发送到原基站, 或者原基站虽然从源端接收到了响应这 些数据请求的数据包, 但还未将这些数据包发送给终端。 因而, 在原基站的 PIT中存在相应的表项, 以指示基站将相应的数据包发送给终端。 当终端开 始进行基站切换, 断开与原基站的连接时, 终端不再能接收到原基站根据 PIT的表项向终端发送的数据包。 因此, PIT中的这些表项是无效的, 可以 将这些表项的端口进行修改,使得原本向终端发送的数据包转为向目标基站 发送。 具体而言,终端可以根据当前接收到的最后一个数据包中所包含的内容 块的标识确定待推送的内容块中起始标号的内容块的标识 name, 并使用原 基站的标识 A、 目标基站的标识^ 待推送的内容块中起始标号的内容块的 标识 name构建一个 UPI, 作为第一指示消息发送给原基站, 触发原基站将 相应的内容块推送给目标基站。 UPI的格式可以有多种,例如 UPI可以为 ccnx: /A/fix_PIT/name/B , 其中, 原基站的标识 A用来路由, fix_PIT为关键字, 用来表示该 UPI用于指示修改 PIT表项。 该 UPI可以解析为在原基站的 PIT 中, 将与标识为 name的起始标号的内容块同属同一个内容的内容块对应的 表项进行修改, 将上述内容块对应的数据包的表项的端口修改为目标基站 B 所对应的端口。 A PIT is configured in the base station, and the PIT is used to store data requests that the terminal has sent but has not received a response, and ports corresponding to the respective requests. Before the terminal disconnects from the original base station, the original base station has sent a part of the interest packet for the data request to the source end, but the data packet responding to the data request has not been sent to the original base station, or the original base station is from the source end. Packets that responded to these data requests were received, but they have not yet been sent to the terminal. Therefore, a corresponding entry exists in the PIT of the original base station to instruct the base station to send the corresponding data packet to the terminal. When the terminal starts the base station handover and disconnects from the original base station, the terminal can no longer receive the data packet sent by the original base station to the terminal according to the PIT entry. Therefore, the entries in the PIT are invalid, and the ports of the entries can be modified so that the data packets originally sent to the terminal are sent to the target base station. Specifically, the terminal may determine the identifier name of the content block of the starting label in the content block to be pushed according to the identifier of the content block included in the last received data packet, and use the identifier A of the original base station, the target base station. The identifier of the content block of the starting label in the content block to be pushed constructs a UPI, which is sent as a first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station. The format of the UPI can be various. For example, the UPI can be ccnx: /A/fix_PIT/name/B, where the identifier A of the original base station is used for routing, and the fix_PIT is a keyword, which is used to indicate that the UPI is used to indicate the modification of the PIT table. item. The UPI may be parsed to modify, in the PIT of the original base station, the content item corresponding to the content block of the same content as the content label identified by the name, and the port of the data entry corresponding to the content block. Change to the port corresponding to the target base station B.
UPI还可以有其它的格式, 例如, UPI中还可以包括指示待推送的内容 块的数量 n的数量信息, 以便于原基站更准确地确定待推送的内容块。 对应 地, UPI格式为 ccnx: /A/fix_PIT/name/n/B, 本发明实施例对此不作限定。  The UPI may also have other formats. For example, the UPI may further include quantity information indicating the number n of content blocks to be pushed, so that the original base station can more accurately determine the content block to be pushed. Correspondingly, the UPI format is ccnx: /A/fix_PIT/name/n/B, which is not limited in this embodiment of the present invention.
原基站接收并解析该 UPI,并确定待推送的内容块及目标基站 B所对应 的端口, 进而修改相关的 PIT表项。 原基站根据修改后的表项, 将待推送的 内容块发送给目标基站。  The original base station receives and parses the UPI, and determines the content block to be pushed and the port corresponding to the target base station B, and then modifies the related PIT entries. The original base station sends the content block to be pushed to the target base station according to the modified entry.
可选地, 在 S730之前, 方法 700还可以包括:  Optionally, before S730, the method 700 may further include:
原基站根据第一指示消息生成第二指示消息,第二指示消息包括待推送 的内容块中起始标号的内容块的标识, 第二指示消息用于指示原基站存在待 向目标基站推送的内容块;  The original base station generates a second indication message according to the first indication message, where the second indication message includes an identifier of a content block of a start label in the content block to be pushed, and the second indication message is used to indicate that the original base station has content to be pushed to the target base station. Piece;
原基站向目标基站发送第二指示消息;  The original base station sends a second indication message to the target base station;
原基站接收目标基站根据第二指示消息发送的兴趣包;  The original base station receives the interest packet sent by the target base station according to the second indication message;
S730包括:  S730 includes:
原基站根据兴趣包, 向目标基站发送相应的待推送的内容块。  The original base station sends a corresponding content block to be pushed to the target base station according to the interest packet.
具体地,终端可以根据当前接收到的最后一个数据包中所包含的内容块 的标识确定待推送的内容块中起始标号的内容块的标识 name, 并使用目标 基站的标识 B 和起始标号的内容块的标识 name 构建一个用户推送通知 ( UPI, User Push Indication ), 作为第一指示消息发送给原基站, 触发原基 站将相应的内容块推送给目标基站。 UPI 的格式可以有多种, 例如可以为 ccnx:/A/push/B/PUSH/name , 该 UPI可以解析为将原基站 A緩存与标识为 name 的起始标号的内容块同属同一个内容的内容块对应的数据包推送给目 标基站 B。 其中, A用来帮助终端进行路由, 以便将该指示信息发送给原基 站 A, push 和 PUSH 为关键字。 可选的, UPI 的格式还可以为 ccnx:/A/B/PUSH/name等, 本发明实施例对此不作限定。 Specifically, the terminal may determine, according to the identifier of the content block included in the last received data packet, the identifier name of the content block of the start label in the content block to be pushed, and use the identifier B and the start label of the target base station. The identifier of the content block constructs a User Push Indication (UPI), which is sent as a first indication message to the original base station, and triggers the original base station to push the corresponding content block to the target base station. The format of the UPI can be various, for example, it can be ccnx: /A/push/B/PUSH/name, and the UPI can be parsed into the same content that caches the original base station A and the content block identified as the start label of the name. The data packet corresponding to the content block is pushed to the destination Standard base station B. A is used to help the terminal perform routing, so that the indication information is sent to the original base station A, and push and PUSH are keywords. Optionally, the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited by the embodiment of the present invention.
相应地, 原基站接收到该第一指示消息解析之后, 向目标基站发送第二 指示消息, 以询问目标基站是否同意接收待推送的内容块, 从而实现主动向 目标基站推送緩存的内容块。 该第二指示消息可以是一个 SPI。 例如, SPI 可以为 ccnx:/B/PUSH/name。 该 SPI可以解析为原基站 A请求向目标基站 B 推送原基站 A緩存的内容块对应的数据包。 SPI的格式也可以有多种, 本发 明实施例对此不作限定。  Correspondingly, after receiving the parsing of the first indication message, the original base station sends a second indication message to the target base station to query whether the target base station agrees to receive the content block to be pushed, so as to actively push the cached content block to the target base station. The second indication message can be an SPI. For example, the SPI can be ccnx:/B/PUSH/name. The SPI can be parsed as the original base station A requests to push the data packet corresponding to the content block buffered by the original base station A to the target base station B. There are a plurality of formats of the SPI, which are not limited in the embodiment of the present invention.
应理解, 在本发明实施例中, 起始标号的内容块的标识 name中包括待 推送的内容块的起始标号, 目标基站接收到 SPI并解析后, 向原基站发送兴 趣包中请求内容块时, 兴趣包中也携带内容块相应的标号。 例如, 一个内容 包含 10个内容块, 当前终端只接收到 2个数据包, 则待推送的内容块的标 识 name中包括待推送的内容块的起始标号为 3。 原基站接收目标基站根据 第二指示消息发送的兴趣包。 而后原基站根据兴趣包, 向目标基站发送相应 的待推送的内容块  It should be understood that, in the embodiment of the present invention, the identifier of the content block of the start label includes the start label of the content block to be pushed, and after receiving the SPI and parsing, the target base station sends the content block in the interest packet to the original base station. The interest package also carries the corresponding label of the content block. For example, if a content contains 10 content blocks and the current terminal only receives 2 data packets, the identification name of the content block to be pushed includes the content label of the content block to be pushed with a starting number of 3. The original base station receives the interest packet sent by the target base station according to the second indication message. Then, the original base station sends the corresponding content block to be pushed to the target base station according to the interest packet.
可选地, 第一指示消息和第二指示消息还包括数量信息, 该数量信息用 于指示目标基站发送兴趣包的数量。 发送该数量信息, 使得原基站可以依据 此更准确有效地向目标基站推送内容块。  Optionally, the first indication message and the second indication message further include quantity information, where the quantity information is used to indicate the number of interest packets sent by the target base station. The quantity information is sent so that the original base station can push the content block to the target base station more accurately and efficiently.
具体而言,终端可以实时记录其向基站发送的兴趣包中所请求的内容块 的标号, 以及终端当前接收到的数据包中的内容块的标号。 在终端确定其即 将从原基站切换至目标基站时, 终端可以获知当前已经向原基站发送的兴趣 包中所请求的内容块的最大标号,还可以获知其已经收到的数据包中的内容 块的最大标号。 已经发送的兴趣包中所请求的内容块的最大标号与已经收到 的数据包中的内容块的最大标号的差值, 即可作为待推送的内容块的数量。 例如, 终端向原基站发送的兴趣包中所请求的内容块的最大标号为 5, 当前 终端已经收到的数据包中的内容块的最大标号为 2, 则待推送的内容块的数 量为 3。  Specifically, the terminal can record in real time the label of the content block requested in the interest packet sent to the base station, and the label of the content block in the data packet currently received by the terminal. When the terminal determines that it is about to switch from the original base station to the target base station, the terminal can learn the maximum label of the content block requested in the interest packet that has been sent to the original base station, and can also know the content block in the data packet that has been received. Maximum number. The difference between the maximum label of the content block requested in the already transmitted interest packet and the maximum label of the content block in the already received data packet can be used as the number of content blocks to be pushed. For example, the maximum number of the content block requested by the terminal to the original base station is 5, and the maximum number of the content block in the data packet that the current terminal has received is 2, and the number of the content blocks to be pushed is 3.
相应地, UPI可以为 ccnx:/A/push/B/PUSH/name/pushnum/n, 该 UPI可 以解析为将原基站 A緩存的内容块对应的数据包推送给目标基站 B,推送的 数据包或内容块的数量为 n。例如还可以为 ccnx:/A/B/PUSH/name/p hnum/n 等。 相应地, SPI可以为 ccnx:/B/PUSH/name/pushnum/n。 该 SPI可以解析为 原基站 A请求向目标基站 B推送緩存的内容块对应的数据包, 推送的数据 包的数量为 n。 UPI和 SPI的格式可以有多种, 本发明实施例对此不作限定。 Correspondingly, the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the original base station A to the target base station B, and the pushed data packet Or the number of content blocks is n. For example, it can also be ccnx:/A/B/PUSH/name/p hnum/n Wait. Accordingly, the SPI can be ccnx:/B/PUSH/name/pushnum/n. The SPI can be parsed as the original base station A requests to push the buffered content block corresponding to the target base station B, and the number of pushed data packets is n. The format of the UPI and the SPI can be various, which is not limited by the embodiment of the present invention.
应理解, 由于终端当前记录的发送的兴趣包中所请求的内容块的最大标 号和已经收到的数据包中的内容块的最大标号可能并不精确, 因此可以在上 述差值上再增加一个冗余数量, 即在上述获得的差值上再增加一个合适的数 量, 作为待推送的内容块的数量信息, 以保证原基站緩存的内容块均可以被 推送, 本发明实施例对此不作限定。  It should be understood that, since the maximum label of the content block requested in the sent interest packet currently recorded by the terminal and the maximum label of the content block in the already received data packet may not be accurate, one additional value may be added to the difference value. The number of the redundancy, that is, the amount of the content block to be pushed, is added to the difference, and the content of the content block to be pushed is used to ensure that the content blocks that are buffered by the original base station can be pushed. .
因此, 本发明实施例提供的数据传输的方法, 原基站通过接收终端发送 的消息, 确定待向目标基站推送的内容块, 并主动向目标基站发送待推送的 内容块, 从而可以在进行基站切换的同时推送緩存的内容块, 能够减小由于 基站切换造成的数据传输的延迟, 提高用户体验。  Therefore, in the data transmission method provided by the embodiment of the present invention, the original base station determines the content block to be pushed to the target base station by receiving the message sent by the terminal, and actively sends the content block to be pushed to the target base station, so that the base station can be switched. Simultaneously pushing the buffered content block can reduce the delay of data transmission caused by base station switching and improve the user experience.
图 8示出了根据本发明另一个实施例的数据传输的方法 800,该方法 800 可以由即将接入的基站, 即目标基站执行。 如图 8所示, 该方法 800包括: S810, 目标基站接收原基站发送的第二指示消息, 第二指示消息第二指 示消息包括目标基站的标识和待推送的内容块中起始标号的内容块的标识, 第二指示消息用于指示原基站存在待向目标基站推送的内容块;  Figure 8 illustrates a method 800 of data transmission in accordance with another embodiment of the present invention, which may be performed by a base station to be accessed, i.e., a target base station. As shown in FIG. 8, the method 800 includes: S810: The target base station receives a second indication message sent by the original base station, where the second indication message includes the identifier of the target base station and the content of the start label in the content block to be pushed. An identifier of the block, where the second indication message is used to indicate that the original base station has a content block to be pushed to the target base station;
S820, 目标基站根据第二指示消息, 向原基站发送兴趣包, 兴趣包用于 向原基站请求待推送的内容块;  S820: The target base station sends an interest packet to the original base station according to the second indication message, where the interest packet is used to request the original base station to request the content block to be pushed.
S830, 目标基站接收原基站根据兴趣包发送的相应的待推送的内容块。 目标基站接收原基站发送的用于指示目标基站接收待推送的内容块的 第二指示消息。 该第二指示消息中携带着原基站预推送的内容块的信息。 如 果目标基站同意接收待推送的内容块, 则根据第二指示消息中的信息, 向原 基站发送相应的兴趣包, 以请求原基站向其发送内容块。  S830. The target base station receives a corresponding content block to be pushed sent by the original base station according to the interest packet. The target base station receives a second indication message sent by the original base station to indicate that the target base station receives the content block to be pushed. The second indication message carries information of a content block pre-pushed by the original base station. If the target base station agrees to receive the content block to be pushed, according to the information in the second indication message, the corresponding interest packet is sent to the original base station to request the original base station to send the content block to it.
因此, 本发明实施例提供的数据传输的方法, 目标基站通过接收原基站 发送的指示其接收待推送的内容块的消息, 向原基站发送兴趣包, 并接收待 推送的内容块, 可以在进行基站切换的同时提前接收终端已请求但并未接收 的内容块, 从而能够减小由于基站切换造成的数据传输的延迟, 提高用户体 验。  Therefore, in the data transmission method provided by the embodiment of the present invention, the target base station may send a packet of interest to the original base station by receiving a message sent by the original base station indicating that it receives the content block to be pushed, and receive the content block to be pushed, and may perform the base station. The content block that the terminal has requested but not received is received in advance while switching, so that the delay of data transmission due to handover of the base station can be reduced, and the user experience is improved.
可选地, 作为一个实施例, 在 S820之后, 方法 800还包括:  Optionally, as an embodiment, after S820, the method 800 further includes:
目标基站记录向原基站发送的兴趣包的数量; 在兴趣包的数量超过阔值时, 目标基站停止向原基站发送兴趣包。 The target base station records the number of interest packets sent to the original base station; When the number of interest packets exceeds the threshold, the target base station stops transmitting the interest packet to the original base station.
具体而言, 目标基站解析原基站发送的第二指示消息, 根据第二指示消 息中携带的目标基站的标识 B 和待推送的内容块中起始标号的内容块的标 识 name等信息构建一系列的兴趣包, 这些兴趣包用来请求原基站緩存的内 容块。 例如, 该第二指示消息可以是一个 SPI, 格式为 ccnx:/B/PUSH/name, 其中目标基站的标识 B用于路由。 一般而言, 由于传输延迟造成的终端在某 一时刻终端发送的兴趣包中的内容块的标号和已经接收到的数据包中的标 号的差值有一个经验值。根据不同情况,该经验值可以有不同的取值。例如, 这个经验值可以是 10, 或者 5、 15。 因此, 一般而言, 原基站所緩存的内容 块的数量与该经验值一致。  Specifically, the target base station parses the second indication message sent by the original base station, and constructs a series of information according to the identifier B of the target base station carried in the second indication message and the identifier name of the content block of the start label in the content block to be pushed. Interest packets, these interest packets are used to request content blocks cached by the original base station. For example, the second indication message may be an SPI, and the format is ccnx:/B/PUSH/name, where the identifier B of the target base station is used for routing. In general, the difference between the label of the content block in the interest packet sent by the terminal and the label in the already received packet due to the transmission delay has an empirical value. The experience value can have different values depending on the situation. For example, this experience value can be 10, or 5, 15. Therefore, in general, the number of content blocks buffered by the original base station is consistent with the empirical value.
在终端切换基站的同时, 目标基站向原基站发送兴趣包, 可以对发送的 兴趣包的数量进行记录。 当所发送的兴趣包的数量超过阔值时, 目标基站停 止向原基站发送兴趣包。 该阔值可以选取上文中提到的经验值, 也可以在上 述经验值上再增加一个冗余数量, 本发明实施例对此不作限定。  While the terminal switches the base station, the target base station sends the interest packet to the original base station, and the number of the sent interest packets can be recorded. When the number of the transmitted interest packets exceeds the threshold, the target base station stops transmitting the interest packets to the original base station. The threshold value may be selected from the empirical value mentioned above, or a redundant number may be added to the above empirical value, which is not limited in the embodiment of the present invention.
在具体现实中, 如果目标基站同意接收待推送的内容块, 可以设定一个 计数器来记录其向原基站发送的兴趣包的数量,每发送一个兴趣包对计数器 加 1, 直至计数器记录的数量超过预先设定的阔值, 则停止向原基站发送兴 趣包。  In a specific reality, if the target base station agrees to receive the content block to be pushed, a counter may be set to record the number of interest packets sent by the original base station, and the counter is incremented by one for each interest packet sent until the number of counter records exceeds the advance. If the set threshold is exceeded, the interest packet is stopped from being sent to the original base station.
应理解, 目标基站也可以不设定阔值, 当原基站对目标基站发送的兴趣 包不再做出回应时, 目标基站停止向原基站发送兴趣包。  It should be understood that the target base station may not set a threshold. When the original base station no longer responds to the interest packet sent by the target base station, the target base station stops transmitting the interest packet to the original base station.
可选地, 作为另一个实施例, 第二指示消息还包括数量信息, 该数量信 息用于指示目标基站发送兴趣包的数量;  Optionally, in another embodiment, the second indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
方法 800还可以包括:  Method 800 can also include:
目标基站记录向原基站发送的兴趣包的数量;  The target base station records the number of interest packets sent to the original base station;
在兴趣包的数量超过数量信息中指示的数量时, 目标基站停止向原基站 发送兴趣包。  When the number of interest packets exceeds the number indicated in the quantity information, the target base station stops transmitting the interest packets to the original base station.
具体而言, 目标基站解析原基站发送的第二指示消息, 根据第二指示消 息中携带的待推送的内容块中起始标号的内容块的标识 name和指示目标基 站发送兴趣包的数量 n等信息构建 n个兴趣包, 这 n个兴趣包用来请求原基 站緩存的内容块。 当所发送的兴趣包的数量超过 n时, 目标基站停止向原基 站发送兴趣包。 其中, n为终端根据当前已经向原基站发送的兴趣包中所请 求的内容块的最大标号和已经收到的数据包中的内容块的最大标号的差值, 确定的待推送的内容块的数量。 例如, 该第二消息可以是一个 SPI, 格式为 ccnx:/B/PUSH/name/pushnum/n。 Specifically, the target base station parses the second indication message sent by the original base station, according to the identifier name of the content block of the start label in the content block to be pushed carried in the second indication message, and the number n of the interest packets sent by the target base station, etc. The information constructs n interest packets, which are used to request content blocks buffered by the original base station. When the number of the transmitted interest packets exceeds n, the target base station stops transmitting the interest packets to the original base station. Where n is the request of the terminal according to the interest packet that has been sent to the original base station. The difference between the maximum label of the content block and the maximum label of the content block in the received data packet, and the determined number of content blocks to be pushed. For example, the second message can be an SPI in the format ccnx:/B/PUSH/name/pushnum/n.
在具体现实中, 如果目标基站同意接收待推送的内容块, 可以设定一个 计数器, 将该计数器的初始值设置为 n。 目标基站向原基站每发送一个兴趣 包对计数器减 1, 直至计数器的值为 0时, 目标基站停止向原基站发送兴趣 包。  In a specific reality, if the target base station agrees to receive the content block to be pushed, a counter can be set, and the initial value of the counter is set to n. The target base station decrements one of the interest packet pair counters to the original base station until the value of the counter is 0, and the target base station stops transmitting the interest packet to the original base station.
因此, 本发明实施例提供的数据传输的方法, 目标基站通过接收原基站 发送的请求其接收待推送的内容块的消息, 向原基站发送兴趣包, 并接收待 推送的内容块, 可以在进行基站切换的同时提前接收终端已请求但并未接收 的内容块, 从而能够减小由于基站切换造成的数据传输的延迟, 提高用户体 验。  Therefore, in the data transmission method provided by the embodiment of the present invention, the target base station receives the message of the content block to be pushed by the original base station, sends the interest packet to the original base station, and receives the content block to be pushed, and may perform the base station. The content block that the terminal has requested but not received is received in advance while switching, so that the delay of data transmission due to handover of the base station can be reduced, and the user experience is improved.
图 9示出了根据本发明另一个实施例的数据传输的方法 900,该方法 900 可以由终端执行。 如图 9所示, 该方法 900包括:  FIG. 9 illustrates a method 900 of data transmission, which may be performed by a terminal, in accordance with another embodiment of the present invention. As shown in FIG. 9, the method 900 includes:
S910, 终端在确定将从原基站切换至目标基站时, 生成第一指示消息, 第一指示消息用于指示原基站向目标基站发送待推送的内容块;  S910, the terminal, when determining to switch from the original base station to the target base station, generating a first indication message, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
S920, 终端向原基站发送第一指示消息。  S920. The terminal sends a first indication message to the original base station.
如果终端当前与原基站相连接, 在数据传输的过程中进行移动, 其可以 感知周围基站的信号强度, 并且通过基站发布的前缀信息确定基站的标识, 当终端检测到目标基站的信号强度连续 3次明显强于原基站的信号强度时, 终端开始准备进行基站切换, 即终端确定即将从原基站切换至目标基站。 在 本发明实施例中,终端也可以通过其他方法确定其即将从原基站切换至目标 基站, 本发明实施例对此不作限定。  If the terminal is currently connected to the original base station and moves during the data transmission, it can sense the signal strength of the surrounding base station, and determine the identity of the base station by using the prefix information advertised by the base station, and when the terminal detects that the signal strength of the target base station is continuous 3 When the signal strength is significantly stronger than that of the original base station, the terminal starts to prepare for base station handover, that is, the terminal determines that it is about to switch from the original base station to the target base station. In the embodiment of the present invention, the terminal may determine that it is about to switch from the original base station to the target base station by using other methods, which is not limited in this embodiment of the present invention.
终端可以根据当前接收到的最后一个数据包中所包含的内容块的标识 确定起始标号的内容块的标识 name, 并使用目标基站的标识 B和待推送的 内容块中起始标号的内容块的标识 name等构建一个 UPI, 作为第一指示消 息发送给原基站, 触发原基站将相应的内容块推送给目标基站。  The terminal may determine the identifier name of the content block of the start label according to the identifier of the content block included in the last received data packet, and use the identifier B of the target base station and the content block of the start label in the content block to be pushed. The identifier, etc. constructs a UPI, and sends the first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station.
因此, 本发明实施例提供的数据传输的方法, 终端在确定即将从原基站 切换至目标基站时, 通过向原基站发送第一指示消息, 触发原基站向目标基 站推送其緩存的内容块, 使得在进行基站切换的同时, 目标基站可以提前接 收终端已请求但并未接收的内容块,从而能够减小由于基站切换造成的数据 传输的延迟, 提高用户体验。 Therefore, in the data transmission method provided by the embodiment of the present invention, when determining that the terminal is to be handed over from the original base station to the target base station, the terminal sends the first indication message to the original base station, and triggers the original base station to push the cached content block to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing data caused by the base station handover. The delay of transmission increases the user experience.
可选地, 作为一个实施例, 第一指示消息包括: 原基站的标识、 目标基 站的标识和待推送的内容块中起始标号的内容块的标识;  Optionally, as an embodiment, the first indication message includes: an identifier of the original base station, an identifier of the target base station, and an identifier of the content block of the start label in the content block to be pushed;
终端生成第一指示消息, 包括: 终端根据原基站的标识、 目标基站的标 识和接收到的最后一个数据包中的内容块的标识, 生成第一指示消息。  The terminal generates the first indication message, including: the terminal generates a first indication message according to the identifier of the original base station, the identifier of the target base station, and the identifier of the content block in the last received data packet.
具体地,终端可以根据当前接收到的最后一个数据包中所包含的内容块 的标识确定起始标号的内容块的标识 name, 并使用原基站的标识 A、 目标 基站的标识 B和待推送的内容块的标识 name构建一个 UPI, 作为第一指示 消息发送给原基站, 触发原基站将相应的内容块推送给目标基站。 UPI的格 式可以有多种, 本发明实施例对此不作限定。  Specifically, the terminal may determine the identifier name of the content block of the start label according to the identifier of the content block included in the last received data packet, and use the identifier A of the original base station, the identifier B of the target base station, and the to-be-pushed The identifier of the content block constructs a UPI, which is sent as a first indication message to the original base station, and triggers the original base station to push the corresponding content block to the target base station. The format of the UPI can be various, which is not limited by the embodiment of the present invention.
可选地, 例如 UPI的格式可以为 ccnx:/A/push/B/PUSH/name, 该 UPI可 以解析为将原基站 A緩存的标识为 name的内容块对应的数据包推送给目标 基站 B。 其中, A用来帮助终端进行路由, 以便将该指示信息发送给原基站 A, push 和 PUSH 为关键字。 可选的, UPI 的格式还可以为 ccnx:/A/B/PUSH/name等, 本发明实施例对此不作限定。  For example, the format of the UPI may be ccnx: /A/push/B/PUSH/name, and the UPI may be parsed to push the data packet corresponding to the content block whose name is cached by the original base station A to the target base station B. A is used to help the terminal to route, so as to send the indication information to the original base station A, push and PUSH as keywords. Optionally, the format of the UPI may also be ccnx: /A/B/PUSH/name, etc., which is not limited by the embodiment of the present invention.
可选地,第一指示消息用于指示原基站将待推送的内容块所对应的查询 等待表 PIT表项的端口修改为目标基站对应的端口。  Optionally, the first indication message is used to indicate that the original base station modifies the port of the query waiting list PIT entry corresponding to the content block to be pushed to the port corresponding to the target base station.
具体而言,终端可以根据当前接收到的最后一个数据包中所包含的内容 块的标识确定待推送的内容块中起始标号的内容块的标识 name, 并使用原 基站的标识 A、 目标基站的标识^ 待推送的内容块中起始标号的内容块的 标识 name构建一个 UPI, 作为第一指示消息发送给原基站, 触发原基站将 相应的内容块推送给目标基站。 UPI 的格式可以有多种, 例如 UPI 可以为 ccnx:/A/fix_PIT/name/B , 其中, 原基站的标识 A用于路由, fix_PIT为关键 字,用来表示该 UPI用于指示修改 PIT表项。该 UPI可以解析为在原基站的 PIT中, 将与标识为 name的起始标号的内容块的同属同一个内容的内容块 对应的表项进行修改,将这些数据包的表项的端口修改为目标基站 B所对应 的端口。  Specifically, the terminal may determine the identifier name of the content block of the starting label in the content block to be pushed according to the identifier of the content block included in the last received data packet, and use the identifier A of the original base station, the target base station. The identifier of the content block of the starting label in the content block to be pushed constructs a UPI, which is sent as a first indication message to the original base station, triggering the original base station to push the corresponding content block to the target base station. The format of the UPI can be various. For example, the UPI can be ccnx: /A/fix_PIT/name/B, where the identifier A of the original base station is used for routing, and the fix_PIT is a keyword, which is used to indicate that the UPI is used to indicate the modification of the PIT table. item. The UPI may be parsed to modify the entry corresponding to the content block of the same content of the content block identified as the start label of the name in the PIT of the original base station, and modify the port of the entry of the data packet to the target. The port corresponding to base station B.
第一指示消息中还可以包含待推送的内容块的数量,有利于原基站更准 确地确定待推送的内容块, 从而更有效地修改相应的 PIT表项。 例如, UPI 格式可以为 ccnx: /A/fix_PIT/name/n/B, 可以更准确地告知原基站需要修改 n 个 PIT表项, 可以提高修改的效率。 可选地, 第一指示消息还包括数量信息, 数量信息用于指示目标基站发 送兴趣包的数量; The first indication message may further include the number of content blocks to be pushed, which is beneficial for the original base station to more accurately determine the content block to be pushed, thereby modifying the corresponding PIT entry more effectively. For example, the UPI format can be ccnx: /A/fix_PIT/name/n/B, which can more accurately inform the original base station that it needs to modify n PIT entries, which can improve the efficiency of modification. Optionally, the first indication message further includes quantity information, where the quantity information is used to indicate the number of the interest packets sent by the target base station;
在终端生成第一指示消息之前, 方法还包括:  Before the terminal generates the first indication message, the method further includes:
终端根据发送的最后一个兴趣包中所请求的内容块的标号和接收到的 最后一个数据包中的内容块的标号,确定用于指示目标基站发送兴趣包的数 量。  The terminal determines the number for indicating the target base station to transmit the interest packet according to the label of the content block requested in the last interest packet sent and the label of the content block in the last received data packet.
相应地, UPI可以为 ccnx:/A/push/B/PUSH/name/pushnum/n, 该 UPI可 以解析为将第一基站 A緩存的内容块对应的数据包推送给第二基站 B,推送 的 数据 包 或 内 容块 的 数量 为 n 。 相 应 地 , SPI 可 以 为 ccnx:/B/PUSH/name/pushmim/n。  Correspondingly, the UPI may be ccnx: /A/push/B/PUSH/name/pushnum/n, and the UPI may be parsed to push the data packet corresponding to the content block buffered by the first base station A to the second base station B, and pushed The number of packets or content blocks is n. Correspondingly, the SPI can be ccnx:/B/PUSH/name/pushmim/n.
因此, 本发明实施例提供的数据传输的方法, 终端在确定即将从原基站 切换至目标基站时, 通过向原基站发送第一指示消息, 触发原基站向目标基 站推送原基站緩存的内容块, 使得在进行基站切换的同时, 目标基站可以提 前接收终端已请求但并未接收的内容块,从而能够减小由于基站切换造成的 数据传输的延迟, 提高用户体验。  Therefore, the method for data transmission provided by the embodiment of the present invention, when determining that the terminal is to be handed over from the original base station to the target base station, by transmitting the first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
上文结合图 7至图 9, 分别从原基站、 目标基站和终端的角度描述了数 据传输的方法。 下面将结合图 10至图 12的具体例子对本发明实施例提供的 数据传输的方法做更详细的说明。 需要说明的是, 图 10至图 12的发明实施 例是在终端在于原基站进行数据传输的时候, 由于移动即将从原基站切换至 目标基站时的处理方案。 图 10示出了根据本发明又一实施例的数据传输的 方法 1000的示意性流程图, 如图 10所示, 该方法 1000包括:  The method of data transmission is described above from the perspective of the original base station, the target base station, and the terminal, respectively, in conjunction with FIGS. 7 through 9. The method for data transmission provided by the embodiment of the present invention will be described in more detail below with reference to the specific examples of FIG. 10 to FIG. It should be noted that the embodiment of the invention of Figs. 10 to 12 is a processing scheme when the terminal is switched from the original base station to the target base station when the terminal is in the original base station for data transmission. FIG. 10 is a schematic flowchart of a method 1000 for data transmission according to another embodiment of the present invention. As shown in FIG. 10, the method 1000 includes:
51001 , 终端确定将从原基站切换至目标基站。 具体而言, 终端在内容 传输过程中由原基站向目标基站移动。 在移动过程中, 终端感知原基站和目 标基站的信号强度, 当目标基站的信号强度连续 3次明显强于原基站的信号 强度时, 终端确定即将从原基站切换至目标基站。  51001, the terminal determines to switch from the original base station to the target base station. Specifically, the terminal moves from the original base station to the target base station during content transmission. During the mobile process, the terminal senses the signal strength of the original base station and the target base station. When the signal strength of the target base station is significantly stronger than the signal strength of the original base station for three consecutive times, the terminal determines that the target base station is to be handed over from the original base station to the target base station.
51002, 终端根据当前内容传输的情况生成 UPI。 该 UPI可以包括: 原 基站的标识 A、 目标基站的标识^ 待推送的内容块中起始标号的内容块的 标识 name, 其中, 终端通过目标基站发布的前缀信息确定目标基站的标识。 例如, UPI的格式可以如下: ccnx:/A/push/B/PUSH/name。  51002. The terminal generates an UPI according to the current content transmission. The UPI may include: an identifier of the original base station A, an identifier of the target base station, an identifier name of the content block of the start label in the content block to be pushed, and the terminal determines the identifier of the target base station by using the prefix information advertised by the target base station. For example, the format of the UPI can be as follows: ccnx: /A/push/B/PUSH/name.
S1003 , 终端向原基站发送 UPI。  S1003: The terminal sends the UPI to the original base station.
S1004, 原基站解析 UPI, 并根据 UPI生成 SPI, 该 SPI为原基站向目标 基站发送待推送的内容块的请求消息。 该 SPI可以包括: 目标基站的标识 B 和待推送的内容块中起始标号的内容块的标识 name。 例如, SPI的格式可以 如下: ccnx:/B/PUSH/name。 S1004, the original base station parses the UPI, and generates an SPI according to the UPI, where the SPI is the target of the original base station The base station sends a request message for the content block to be pushed. The SPI may include: an identifier B of the target base station and an identification name of the content block of the start label in the content block to be pushed. For example, the format of the SPI can be as follows: ccnx: /B/PUSH/name.
S1005 , 原基站向目标基站发送该 SPI。  S1005: The original base station sends the SPI to the target base station.
S1006, 目标基站解析该 SPI, 如果同意接收原基站推送的内容块, 则根 据 SPI的内容生成兴趣包。 该兴趣包的内容可以包括待推送的内容块中起始 标号的内容块的标识 name。 同时, 目标基站可以设置一个计数器, 用于记 录发送给原基站的兴趣包的数量。 计数器初始值为 0。  S1006: The target base station parses the SPI, and if it agrees to receive the content block pushed by the original base station, generates an interest packet according to the content of the SPI. The content of the interest package may include the identification name of the content block of the starting label in the content block to be pushed. At the same time, the target base station can set a counter for recording the number of interest packets sent to the original base station. The initial value of the counter is 0.
S1007, 目标基站向原基站发送兴趣包。  S1007. The target base station sends an interest packet to the original base station.
S1008, 目标基站将计数器加 1。  S1008, the target base station increments the counter by one.
51009, 目标基站判断计数器的值是否超出阔值。 当计数器的值未超出阔 值时, 循环执行 S1007至 S1009。 当计数器的值超出阔值时, 目标基站停止 向原基站发送兴趣包。  51009, the target base station determines whether the value of the counter exceeds a threshold. When the value of the counter does not exceed the threshold, S1007 to S1009 are executed cyclically. When the value of the counter exceeds the threshold, the target base station stops transmitting the interest packet to the original base station.
51010, 原基站针对兴趣包的请求, 向目标基站发送相应的数据包。 该过 程也是一个循环的过程, 一般而言, 原基站发送的数据包的数量与目标基站 发送的兴趣包的数量相等, 或者小于目标基站发送的兴趣包的数量。  51010: The original base station sends a corresponding data packet to the target base station for the request of the interest packet. The process is also a cyclic process. Generally, the number of data packets sent by the original base station is equal to the number of interest packets sent by the target base station, or smaller than the number of interest packets sent by the target base station.
因此, 本发明实施例提供的数据传输的方法, 通过终端在确定即将从原 基站切换至目标基站时, 向原基站发送第一指示消息, 触发原基站向目标基 站推送原基站緩存的内容块, 使得在进行基站切换的同时, 目标基站可以提 前接收终端已请求但并未接收的内容块,从而能够减小由于基站切换造成的 数据传输的延迟, 提高用户体验。  Therefore, the data transmission method provided by the embodiment of the present invention, when determining that the terminal is to be handed over from the original base station to the target base station, sends a first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
图 11示出了根据本发明又一实施例的数据传输的方法 1100的示意性流 程图, 如图 11所示, 该方法 1100包括:  Figure 11 shows a schematic flow diagram of a method 1100 of data transmission in accordance with yet another embodiment of the present invention. As shown in Figure 11, the method 1100 includes:
S1101 , 终端确定将从原基站切换至目标基站。  S1101: The terminal determines to switch from the original base station to the target base station.
S1102, 终端根据当前数据传输的情况生成 UPI。 该 UPI可以包括: 原 基站的标识 A、 目标基站的标识 B和待推送的内容块中起始标号的内容块的 标识 name和待推送的内容块的数量 n, 其中, 终端通过目标基站发布的前 缀信息确定目标基站的标识。终端根据已经发送的兴趣包中所请求的内容块 的最大标号与已经收到的数据包中的内容块的最大标号的差值, 来确定待推 送 的 内 容块 的 数量 n 。 例 如 , UPI 的 格式可 以 如 下 : ccnxJA/push/B/PUSH/name/pushnum/r  S1102: The terminal generates an UPI according to a current data transmission situation. The UPI may include: an identifier A of the original base station, an identifier B of the target base station, and an identifier name of the content block of the start label in the content block to be pushed and the number n of the content blocks to be pushed, where the terminal is issued by the target base station. The prefix information determines the identity of the target base station. The terminal determines the number n of the content blocks to be pushed according to the difference between the maximum label of the content block requested in the already sent interest packet and the maximum label of the content block in the already received data packet. For example, the UPI format can be as follows: ccnxJA/push/B/PUSH/name/pushnum/r
S1103 , 终端向原基站发送 UPI。 SI 104, 原基站解析 UPI, 并根据 UPI生成 SPI, 该 SPI为指示目标基站 接收待推送的内容块的指示消息。 该 SPI可以包括: 目标基站的标识^ 待 推送的内容块中起始标号的内容块的标识 name和待推送的内容块的数量 n。 例如, SPI的格式可以如下: ccnx:/B/PUSH/name/p hnum/n。 S1103: The terminal sends the UPI to the original base station. SI 104, the original base station parses the UPI, and generates an SPI according to the UPI, where the SPI is an indication message indicating that the target base station receives the content block to be pushed. The SPI may include: an identifier of the target base station, an identification name of the content block of the start label in the content block to be pushed, and a number n of content blocks to be pushed. For example, the format of the SPI can be as follows: ccnx: /B/PUSH/name/p hnum/n.
S1105 , 原基站向目标基站发送该 SPI。  S1105: The original base station sends the SPI to the target base station.
S1106, 目标基站解析该 SPI, 如果同意接收原基站推送的内容块, 则根 据 SPI的内容生成兴趣包。 该兴趣包的内容可以包括待推送的内容块中起始 标号的内容块的标识 name。 同时, 目标基站可以设置一个计数器, 用于记 录发送给原基站的兴趣包的数量。 计数器初始值为 n。  S1106: The target base station parses the SPI, and if it agrees to receive the content block pushed by the original base station, generates an interest packet according to the content of the SPI. The content of the interest package may include the identification name of the content block of the starting label in the content block to be pushed. At the same time, the target base station can set a counter for recording the number of interest packets sent to the original base station. The initial value of the counter is n.
S1107, 目标基站向原基站发送兴趣包。  S1107. The target base station sends an interest packet to the original base station.
51108, 目标基站将计数器减 1。  51108, the target base station decrements the counter by one.
51109, 目标基站判断计数器的值是否为 0。 当计数器的值不为 0时, 循 环执行 S1007至 S1009。 当计数器的值为 0时, 目标基站停止向原基站发送 兴趣包。  51109. The target base station determines whether the value of the counter is 0. When the value of the counter is not 0, S1007 to S1009 are executed cyclically. When the value of the counter is 0, the target base station stops transmitting the interest packet to the original base station.
S1110, 原基站针对兴趣包的请求, 向目标基站发送相应的数据包。 该过 程也是一个循环的过程, 一般而言, 原基站发送的数据包的数量小于或等于 π。  S1110: The original base station sends a corresponding data packet to the target base station for the request of the interest packet. This process is also a cyclic process. In general, the number of packets sent by the original base station is less than or equal to π.
因此, 本发明实施例提供的数据传输的方法, 通过终端在确定即将从原 基站切换至目标基站时, 向原基站发送第一指示消息, 触发原基站向目标基 站推送原基站緩存的内容块, 使得在进行基站切换的同时, 目标基站可以提 前接收终端已请求但并未接收的内容块,从而能够减小由于基站切换造成的 数据传输的延迟, 提高用户体验。 并且, 方法 1100 中计算待推送的内容块 的数量, 使得原基站可以更准确有效地向目标基站进行内容块的推送。  Therefore, the data transmission method provided by the embodiment of the present invention, when determining that the terminal is to be handed over from the original base station to the target base station, sends a first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience. Moreover, the method 1100 calculates the number of content blocks to be pushed, so that the original base station can push the content block to the target base station more accurately and efficiently.
图 12示出了根据本发明又一实施例的用于基站切换的方法 1200的示意 性流程图, 如图 12所示, 该方法 1200包括:  FIG. 12 is a schematic flowchart of a method 1200 for base station handover according to another embodiment of the present invention. As shown in FIG. 12, the method 1200 includes:
51201 , 终端确定将从原基站切换至目标基站。  51201: The terminal determines to switch from the original base station to the target base station.
51202, 终端根据当前内容传输的情况生成 UPI。 该 UPI可以包括: 原 基站的标识 A、 目标基站的标识 B和待推送的内容块的数量 n和待推送的内 容块中起始标号的内容块的标识 name, 其中, 终端通过目标基站发布的前 缀信息确定目标基站的标识。终端根据已经发送的兴趣包中所请求的内容块 的最大标号与已经收到的数据包中的内容块的最大标号的差值, 来确定待推 送的内容块的数量 n。例如, UPI的格式可以如下: ccnx:/A/fix_PIT/name/n/B。 fix_PIT表示该 UPI用来爹改 PIT表项。 51202. The terminal generates an UPI according to the current content transmission. The UPI may include: an identifier A of the original base station, an identifier B of the target base station, and a quantity n of the content block to be pushed and an identification name of the content block of the start label in the content block to be pushed, where the terminal is issued by the target base station. The prefix information determines the identity of the target base station. The terminal determines the number n of content blocks to be pushed according to the difference between the maximum label of the content block requested in the already sent interest packet and the maximum label of the content block in the already received data packet. For example, the format of the UPI can be as follows: ccnx: /A/fix_PIT/name/n/B. fix_PIT indicates that the UPI is used to tamper with the PIT entry.
SI 203, 终端向原基站发送 UPI。  SI 203, the terminal sends the UPI to the original base station.
51204,原基站解析该 UPI,并确定待推送的内容块的标识及目标基站 B 所对应的端口。原基站根据待推送的内容块的标识及目标基站 B所对应的端 口, 爹改 PIT表项的端口为目标基站对应的端口。  51204. The original base station parses the UPI, and determines an identifier of the content block to be pushed and a port corresponding to the target base station B. The original base station tampers with the port of the PIT entry as the port corresponding to the target base station according to the identifier of the content block to be pushed and the port corresponding to the target base station B.
51205 , 原基站根据修改后的 PIT表项, 向目标基站发送待推送的内容 块。  51205. The original base station sends the content block to be pushed to the target base station according to the modified PIT entry.
因此, 本发明实施例提供的数据传输的方法, 通过终端在确定即将从原 基站切换至目标基站时, 向原基站发送第一指示消息, 触发原基站向目标基 站推送原基站緩存的内容块, 使得在进行基站切换的同时, 目标基站可以提 前接收终端已请求但并未接收的内容块,从而能够减小由于基站切换造成的 数据传输的延迟, 提高用户体验。  Therefore, the data transmission method provided by the embodiment of the present invention, when determining that the terminal is to be handed over from the original base station to the target base station, sends a first indication message to the original base station, triggering the original base station to push the content block buffered by the original base station to the target base station, so that While performing base station handover, the target base station can receive the content block that the terminal has requested but does not receive in advance, thereby reducing the delay of data transmission caused by the base station handover and improving the user experience.
应理解, 在本发明各实施例中, 上述各过程的序号的大小并不意味着执 行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对本 发明实施例的实施过程构成任何限定。  It should be understood that, in the embodiments of the present invention, the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be implemented in the embodiments of the present invention. The process constitutes any limitation.
另外, 本文中术语 "和 /或", 仅仅是一种描述关联对象的关联关系, 表 示可以存在三种关系, 例如, A和 /或 可以表示: 单独存在 , 同时存在 八和^ 单独存在 B这三种情况。 另外, 本文中字符 "/", 一般表示前后关 联对象是一种 "或" 的关系。  In addition, the term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or may represent: exist alone, while there are eight and ^ exist separately B three situations. In addition, the character "/" in this article generally means that the contextual object is an "or" relationship.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实 现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一 般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执 行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每个 特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超 出本发明的范围。  Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上述 描述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对 应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有 另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系 统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的相互之间的耦 合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接辆合或通 信连接, 也可以是电的, 机械的或其它的形式连接。 元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全 部单元来实现本发明实施例方案的目的。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative For example, the division of units is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored. Or not. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect connection or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection. The components displayed by the meta may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用软件 功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或 使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分, 或者该技术方案的 全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个 存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ), 随机存取存储器(RAM, Random Access Memory )、 磁碟或者光 盘等各种可以存储程序代码的介质。  An integrated unit, if implemented as a software functional unit and sold or used as a standalone product, can be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各 种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent modifications may be easily conceived by those skilled in the art within the technical scope of the present disclosure. Such modifications or substitutions are intended to be included within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1. 一种基站, 其特征在于, 包括:  A base station, comprising:
第一接收模块,用于接收将从所述基站切换至目标基站的终端发送的第 一指示消息, 所述第一指示消息用于指示所述基站向所述目标基站发送待推 送的内容块;  a first receiving module, configured to receive a first indication message that is sent by the terminal that is to be switched from the base station to the target base station, where the first indication message is used to instruct the base station to send the content block to be pushed to the target base station;
确定模块, 用于根据所述第一接收模块接收的所述第一指示消息, 确定 所述待推送的内容块;  a determining module, configured to determine, according to the first indication message received by the first receiving module, the content block to be pushed;
第一发送模块,用于向所述目标基站发送所述确定模块确定的所述待推 送的内容块。  And a first sending module, configured to send, to the target base station, the content block to be pushed determined by the determining module.
2. 根据权利要求 1所述的基站,其特征在于,所述第一接收模块接收的 所述第一指示消息包括: 所述基站的标识、 所述目标基站的标识和所述待推 送的内容块中起始标号的内容块的标识。  The base station according to claim 1, wherein the first indication message received by the first receiving module comprises: an identifier of the base station, an identifier of the target base station, and content to be pushed. The identifier of the content block of the starting label in the block.
3. 根据权利要求 2所述的基站,其特征在于,所述第一接收模块接收的 所述第一指示消息还用于指示所述基站将所述待推送的内容块所对应的查 询等待表 PIT表项的端口修改为所述目标基站对应的端口;  The base station according to claim 2, wherein the first indication message received by the first receiving module is further used to indicate that the base station sends a query waiting table corresponding to the content block to be pushed. The port of the PIT entry is modified to be a port corresponding to the target base station;
所述基站还包括:  The base station further includes:
修改模块, 用于根据所述第一接收模块接收的所述第一指示消息, 将所 述待推送的内容块所对应的 PIT表项的端口修改为所述目标基站对应的端 口;  a modifying module, configured to modify, according to the first indication message that is received by the first receiving module, a port of the PIT entry corresponding to the content block to be pushed to a port corresponding to the target base station;
所述第一发送模块具体用于:  The first sending module is specifically configured to:
根据所述 PIT表项向所述目标基站发送所述待推送的内容块。  And sending the content block to be pushed to the target base station according to the PIT entry.
4. 根据权利要求 2所述的基站, 其特征在于, 所述基站还包括: 生成模块, 用于根据所述第一指示消息生成第二指示消息, 所述第二指 示消息包括所述目标基站的标识和所述待推送的内容块中起始标号的内容 块的标识, 所述第二指示消息用于指示所述基站存在待向所述目标基站推送 的内容块;  The base station according to claim 2, wherein the base station further includes: a generating module, configured to generate a second indication message according to the first indication message, where the second indication message includes the target base station And the identifier of the content block of the start label in the content block to be pushed, the second indication message is used to indicate that the base station has a content block to be pushed to the target base station;
第二发送模块,用于向所述目标基站发送所述生成模块生成的所述第二 指示消息;  a second sending module, configured to send the second indication message generated by the generating module to the target base station;
第二接收模块,用于接收所述目标基站根据所述第二指示消息发送的兴 趣包;  a second receiving module, configured to receive a interest packet sent by the target base station according to the second indication message;
所述第一发送模块具体用于: 根据所述第二接收模块接收的所述兴趣包, 向所述目标基站发送相应的 待推送的内容块。 The first sending module is specifically configured to: And transmitting, according to the interest packet received by the second receiving module, a corresponding content block to be pushed to the target base station.
5. 根据权利要求 4所述的基站,其特征在于,所述第一接收模块接收的 所述第一指示消息和所述生成模块生成的所述第二指示消息还包括数量信 息, 所述数量信息用于指示所述目标基站发送所述兴趣包的数量。  The base station according to claim 4, wherein the first indication message received by the first receiving module and the second indication message generated by the generating module further include quantity information, the quantity The information is used to indicate that the target base station sends the number of the interest packets.
6. 一种基站, 其特征在于, 包括:  A base station, comprising:
第一接收模块, 用于接收原基站发送的第二指示消息, 所述第二指示消 息所述第二指示消息包括所述基站的标识和待推送的内容块中起始标号的 内容块的标识, 所述第二指示消息用于指示所述原基站存在待向所述基站推 送的内容块;  a first receiving module, configured to receive a second indication message sent by the original base station, where the second indication message includes an identifier of the base station and an identifier of a content block of a starting label in a content block to be pushed The second indication message is used to indicate that the original base station has a content block to be pushed to the base station;
第一发送模块, 用于根据所述第一接收模块接收的所述第二指示消息, 向所述原基站发送兴趣包, 所述兴趣包用于向所述原基站请求所述待推送的 内容块;  a first sending module, configured to send, according to the second indication message received by the first receiving module, an interest packet to the original base station, where the interest packet is used to request the original base station to send the content to be pushed Piece;
第二接收模块,用于接收所述原基站根据所述兴趣包发送的相应的待推 送的内容块。  And a second receiving module, configured to receive a corresponding content block to be pushed sent by the original base station according to the interest packet.
7. 根据权利要求 6所述的基站, 其特征在于, 所述基站还包括: 记录模块,用于记录所述第一发送模块向所述原基站发送的所述兴趣包 的数量;  The base station according to claim 6, wherein the base station further includes: a recording module, configured to record the number of the interest packets sent by the first sending module to the original base station;
控制模块, 用于在所述兴趣包的数量超过阔值时, 控制所述基站停止向 所述原基站发送所述兴趣包。  And a control module, configured to control, when the number of the interest packets exceeds a threshold, to stop sending, by the base station, the interest packet to the original base station.
8. 根据权利要求 6所述的基站,其特征在于,所述第一接收模块接收的 所述第二指示消息还包括数量信息, 所述数量信息用于指示所述基站发送所 述兴趣包的数量;  The base station according to claim 6, wherein the second indication message received by the first receiving module further includes quantity information, where the quantity information is used to instruct the base station to send the interest packet. Quantity
所述基站还包括:  The base station further includes:
记录模块, 用于记录向所述原基站发送的所述兴趣包的数量; 控制模块, 用于在所述兴趣包的数量超过所述数量信息时, 控制所述基 站停止向所述原基站发送所述兴趣包。  a recording module, configured to record the number of the interest packets sent to the original base station; and a control module, configured to: when the number of the interest packets exceeds the quantity information, control, the base station stops sending to the original base station The interest package.
9. 一种终端, 其特征在于, 包括:  9. A terminal, comprising:
生成模块, 用于在确定所述终端将从原基站切换至目标基站时, 生成第 一指示消息, 所述第一指示消息用于指示所述原基站向目标基站发送待推送 的内容块; 发送模块,用于向所述原基站发送所述生成模块生成的所述第一指示消 息。 a generating module, configured to: when determining that the terminal is to be handed over from the original base station to the target base station, generating a first indication message, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station; And a sending module, configured to send, to the original base station, the first indication message generated by the generating module.
10. 根据权利要求 9所述的终端, 其特征在于, 所述生成模块生成的所 述第一指示消息包括: 所述原基站的标识、 所述目标基站的标识和所述待推 送的内容块中起始标号的内容块的标识;  The terminal according to claim 9, wherein the first indication message generated by the generating module comprises: an identifier of the original base station, an identifier of the target base station, and a content block to be pushed. The identifier of the content block of the starting label;
所述生成模块具体用于:  The generating module is specifically configured to:
根据所述原基站的标识、所述目标基站的标识和接收到的最后一个数据 包中的内容块的标识, 生成第一指示消息。  And generating a first indication message according to the identifier of the original base station, the identifier of the target base station, and the identifier of the content block in the last received data packet.
11. 根据权利要求 10所述的终端,其特征在于, 所述生成模块生成的所 述第一指示消息用于指示所述原基站将所述待推送的内容块所对应的查询 等待表 PIT表项的端口修改为所述目标基站对应的端口。  The terminal according to claim 10, wherein the first indication message generated by the generating module is used to indicate that the original base station sends a query waiting table PIT table corresponding to the content block to be pushed. The port of the item is modified to be the port corresponding to the target base station.
12. 根据权利要求 11所述的终端,其特征在于, 所述生成模块生成的所 述第一指示消息还数量信息, 所述数量信息用于指示所述目标基站发送所述 兴趣包的数量;  The terminal according to claim 11, wherein the first indication message generated by the generating module further has quantity information, where the quantity information is used to indicate that the target base station sends the number of the interest packets;
所述终端还包括:  The terminal further includes:
确定模块,用于根据所述终端发送的最后一个兴趣包中所请求的内容块 的标号和接收到的最后一个数据包中的内容块的标号,确定用于指示所述目 标基站发送所述兴趣包的数量。  a determining module, configured to determine, according to the label of the content block requested in the last interest packet sent by the terminal and the label of the content block in the last received data packet, to indicate that the target base station sends the interest The number of packages.
13. 一种数据传输的方法, 其特征在于, 包括:  13. A method of data transmission, comprising:
原基站接收将从所述原基站切换至目标基站的终端发送的第一指示消 息, 所述第一指示消息用于指示所述原基站向所述目标基站发送待推送的内 容块;  The original base station receives a first indication message that is sent by the terminal that is to be switched from the original base station to the target base station, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
所述原基站根据所述第一指示消息, 确定所述待推送的内容块; 所述原基站向所述目标基站发送所述待推送的内容块。  The original base station determines the content block to be pushed according to the first indication message; the original base station sends the content block to be pushed to the target base station.
14. 根据权利要求 13所述的方法,其特征在于,所述第一指示消息包括: 所述原基站的标识、所述目标基站的标识和所述待推送的内容块中起始标号 的内容块的标识。  The method according to claim 13, wherein the first indication message comprises: an identifier of the original base station, an identifier of the target base station, and a content of a start label in the content block to be pushed. The identity of the block.
15. 根据权利要求 14所述的方法,其特征在于,所述第一指示消息还用 于指示所述原基站将所述待推送的内容块所对应的查询等待表 PIT表项的端 口爹改为所述目标基站对应的端口;  The method according to claim 14, wherein the first indication message is further used to indicate that the original base station tampers with a port of a query waiting list PIT entry corresponding to the content block to be pushed. a port corresponding to the target base station;
所述方法还包括: 所述原基站根据所述第一指示消息, 将所述待推送的内容块所对应的The method further includes: And the original base station, according to the first indication message, corresponding to the content block to be pushed
PIT表项的端口爹改为所述目标基站对应的端口; The port of the PIT entry is changed to the port corresponding to the target base station;
其中, 所述原基站向所述目标基站发送所述待推送的内容块, 包括: 所述原基站根据所述 PIT表项向所述目标基站发送所述待推送的内容 块。  The sending, by the original base station, the content block to be pushed to the target base station includes: sending, by the original base station, the content block to be pushed to the target base station according to the PIT entry.
16. 根据权利要求 14所述的方法,其特征在于,在所述原基站向所述目 标基站发送所述待推送的内容块之前, 所述方法还包括:  The method according to claim 14, wherein before the sending, by the original base station, the content block to be pushed to the target base station, the method further comprises:
所述原基站根据所述第一指示消息生成第二指示消息,所述第二指示消 息包括所述目标基站的标识和所述待推送的内容块中起始标号的内容块的 标识, 所述第二指示消息用于指示所述原基站存在待向所述目标基站推送的 内容块;  The original base station generates a second indication message according to the first indication message, where the second indication message includes an identifier of the target base station and an identifier of a content block of a start label in the content block to be pushed, The second indication message is used to indicate that the original base station has a content block to be pushed to the target base station;
所述原基站向所述目标基站发送所述第二指示消息;  Sending, by the original base station, the second indication message to the target base station;
所述原基站接收所述目标基站根据所述第二指示消息发送的兴趣包; 其中, 所述原基站向所述目标基站发送所述待推送的内容块, 包括: 所述原基站根据所述兴趣包, 向所述目标基站发送相应的待推送的内容 块。  The original base station receives the interest packet sent by the target base station according to the second indication message, where the original base station sends the content block to be pushed to the target base station, including: The interest packet sends a corresponding content block to be pushed to the target base station.
17. 根据权利要求 16所述的方法,其特征在于,所述第一指示消息和所 述第二指示消息还包括所述数量信息, 所述数量信息用于指示所述目标基站 发送所述兴趣包的数量。  The method according to claim 16, wherein the first indication message and the second indication message further include the quantity information, where the quantity information is used to indicate that the target base station sends the interest The number of packages.
18. 一种数据传输的方法, 其特征在于, 包括:  18. A method of data transmission, comprising:
目标基站接收原基站发送的第二指示消息, 所述第二指示消息包括所述 目标基站的标识和待推送的内容块中起始标号的内容块的标识, 所述第二指 示消息用于指示所述原基站存在待向所述目标基站推送的内容块;  The target base station receives the second indication message sent by the original base station, where the second indication message includes an identifier of the target base station and an identifier of a content block of a start label in the content block to be pushed, where the second indication message is used to indicate The original base station has a content block to be pushed to the target base station;
所述目标基站根据所述第二指示消息, 向所述原基站发送兴趣包, 所述 兴趣包用于向所述原基站请求所述待推送的内容块;  And the target base station sends, according to the second indication message, an interest packet to the original base station, where the interest packet is used to request the original base station to request the content block to be pushed;
所述目标基站接收所述原基站根据所述兴趣包发送的相应的待推送的 内容块。  The target base station receives a corresponding content block to be pushed sent by the original base station according to the interest packet.
19. 根据权利要求 18所述的方法,其特征在于,在所述目标基站根据所 述第二指示消息, 向所述原基站发送兴趣包之后, 所述方法还包括:  The method according to claim 18, after the target base station sends an interest packet to the original base station according to the second indication message, the method further includes:
所述目标基站记录向所述原基站发送的所述兴趣包的数量;  The target base station records the number of the interest packets sent to the original base station;
在所述兴趣包的数量超过阔值时, 所述目标基站停止向所述原基站发送 所述兴趣包。 When the number of the interest packets exceeds a threshold, the target base station stops sending to the original base station. The interest package.
20. 根据权利要求 18所述的方法,其特征在于,所述第二指示消息还包 括数量信息, 所述数量信息用于指示所述目标基站发送所述兴趣包的数量; 所述方法还包括:  The method according to claim 18, wherein the second indication message further includes quantity information, where the quantity information is used to indicate that the target base station sends the number of the interest packets; :
所述目标基站记录向所述原基站发送的所述兴趣包的数量;  The target base station records the number of the interest packets sent to the original base station;
在所述兴趣包的数量超过所述数量信息中指示的数量时,所述目标基站 停止向所述原基站发送所述兴趣包。  When the number of the interest packets exceeds the number indicated in the quantity information, the target base station stops transmitting the interest packets to the original base station.
21. 一种数据传输的方法, 其特征在于, 包括:  A method of data transmission, comprising:
终端在确定将从原基站切换至目标基站时, 生成第一指示消息, 所述第 一指示消息用于指示所述原基站向目标基站发送待推送的内容块;  When the terminal determines to switch from the original base station to the target base station, the terminal generates a first indication message, where the first indication message is used to indicate that the original base station sends the content block to be pushed to the target base station;
所述终端向所述原基站发送所述第一指示消息。  The terminal sends the first indication message to the original base station.
22. 根据权利要求 21所述的方法,其特征在于,所述第一指示消息包括: 所述原基站的标识、所述目标基站的标识和所述待推送的内容块中起始标号 的内容块的标识;  The method according to claim 21, wherein the first indication message comprises: an identifier of the original base station, an identifier of the target base station, and a content of a start label in the content block to be pushed. The identity of the block;
所述终端生成第一指示消息, 包括: 所述终端根据所述原基站的标识、 所述目标基站的标识和接收到的最后一个数据包中的内容块的标识,生成第 一指示消息。  And generating, by the terminal, the first indication message, according to the identifier of the original base station, the identifier of the target base station, and the identifier of the content block in the last received data packet, to generate a first indication message.
23. 根据权利要求 22所述的方法,其特征在于,所述第一指示消息用于 指示所述原基站将所述待推送的内容块所对应的查询等待表 PIT表项的端口 爹改为所述目标基站对应的端口。  The method according to claim 22, wherein the first indication message is used to indicate that the original base station changes the port of the query waiting list PIT entry corresponding to the content block to be pushed to a port corresponding to the target base station.
24. 根据权利要求 23所述的方法,其特征在于,所述第一指示消息还包 括数量信息, 所述数量信息用于指示所述目标基站发送所述兴趣包的数量; 在所述终端生成第一指示消息之前, 所述方法还包括:  The method according to claim 23, wherein the first indication message further includes quantity information, where the quantity information is used to indicate that the target base station sends the number of the interest packets; Before the first indication message, the method further includes:
所述终端根据发送的最后一个兴趣包中所请求的内容块的标号和接收 到的最后一个数据包中的内容块的标号,确定用于指示所述目标基站发送所 述兴趣包的数量。  And determining, by the terminal, the number of the interest packets sent by the target base station according to the label of the content block requested in the last interest packet sent and the label of the content block in the last received data packet.
PCT/CN2014/077958 2014-05-21 2014-05-21 Data transmission method, base station, and terminal WO2015176239A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480035971.8A CN105340323B (en) 2014-05-21 2014-05-21 Method, base station and the terminal of data transmission
PCT/CN2014/077958 WO2015176239A1 (en) 2014-05-21 2014-05-21 Data transmission method, base station, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/077958 WO2015176239A1 (en) 2014-05-21 2014-05-21 Data transmission method, base station, and terminal

Publications (1)

Publication Number Publication Date
WO2015176239A1 true WO2015176239A1 (en) 2015-11-26

Family

ID=54553195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077958 WO2015176239A1 (en) 2014-05-21 2014-05-21 Data transmission method, base station, and terminal

Country Status (2)

Country Link
CN (1) CN105340323B (en)
WO (1) WO2015176239A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108713336A (en) * 2016-03-01 2018-10-26 瑞典爱立信有限公司 The correlation of customer equipment identification and information centre networking request
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
CN112272394B (en) * 2020-09-21 2022-04-19 南京酷派软件技术有限公司 Cell switching method, device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013010006A2 (en) * 2011-07-12 2013-01-17 Huawei Technologies Co., Ltd. Seamless mobility schemes in named-data networking using multi-path routing and content caching
US20130329696A1 (en) * 2012-06-08 2013-12-12 Samsung Electronics Co., Ltd Method and apparatus for handover in mobile content centric network
CN103581341A (en) * 2013-11-25 2014-02-12 中国科学院计算机网络信息中心 Distributed mobile data transmission method for CCN (Content-Centric Networking)
CN103703739A (en) * 2011-07-12 2014-04-02 华为技术有限公司 Method and apparatus for seamless mobility techniques in content-centric network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035356A (en) * 2006-03-09 2007-09-12 华为技术有限公司 Network side service data distribution method in the cross-zone handover of the mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013010006A2 (en) * 2011-07-12 2013-01-17 Huawei Technologies Co., Ltd. Seamless mobility schemes in named-data networking using multi-path routing and content caching
CN103703739A (en) * 2011-07-12 2014-04-02 华为技术有限公司 Method and apparatus for seamless mobility techniques in content-centric network
US20130329696A1 (en) * 2012-06-08 2013-12-12 Samsung Electronics Co., Ltd Method and apparatus for handover in mobile content centric network
CN103581341A (en) * 2013-11-25 2014-02-12 中国科学院计算机网络信息中心 Distributed mobile data transmission method for CCN (Content-Centric Networking)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108713336A (en) * 2016-03-01 2018-10-26 瑞典爱立信有限公司 The correlation of customer equipment identification and information centre networking request
US11051355B2 (en) 2016-03-01 2021-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Correlation of user equipment identity to information centric networking request
CN108713336B (en) * 2016-03-01 2021-11-26 瑞典爱立信有限公司 Correlation of user equipment identification to information centric networking requests
US11558918B2 (en) 2016-03-01 2023-01-17 Telefonaktiebolaget Lm Ericsson (Publ) Correlation of user equipment identity to information centric networking request

Also Published As

Publication number Publication date
CN105340323A (en) 2016-02-17
CN105340323B (en) 2019-08-27

Similar Documents

Publication Publication Date Title
EP3764696A1 (en) Method and apparatus for transmitting data
US11330493B2 (en) Transmission control method, apparatus, and system
WO2009111975A1 (en) A method, node and system for notifying proxy updating in radio mesh network
WO2010048834A1 (en) Method for updating radio capability, equipment and system thereof
CN103561442A (en) Data transmission method for mobile receiver in publish-subscribe internet technology
WO2010072074A1 (en) Method, system and mobile access gateway for local routing optimization
WO2013181805A1 (en) Method for returning to long term evolution network, mobile switching centre and system
WO2013091503A1 (en) Method for obtaining internet protocol header displacement mapping relationship and network node
WO2015021591A1 (en) Storage method and device for internet content
WO2015180184A1 (en) Method, device and system for transmitting data
WO2016011624A1 (en) Data packet sending and data processing devices and methods
JP2020533820A (en) Data transmission method, sender device and receiver device
WO2015176239A1 (en) Data transmission method, base station, and terminal
WO2014094260A1 (en) Method, device, and system for returning to long term evolution network after call
WO2021103016A1 (en) Packet transmission method, communication device, and communication system
WO2019213922A1 (en) Method for forwarding data among nodes in relay network, and network nodes
WO2010111873A1 (en) Method and system of non-3gpp2 message transmission in hrpd system
TWI753926B (en) Method and device for wireless communication, access network entity, and terminal equipment
JP6803409B2 (en) Information transmission method and device
CN109314903B (en) Method for establishing tunnel between local gateways and gateway
WO2018152846A1 (en) Communication method and apparatus
JP2024506102A (en) Method for configuring evolved packet system non-access layer security algorithm and related devices
US20210385699A1 (en) Mobility management in information centric networking
WO2015089837A1 (en) Router optimization method, router and position management entity
KR20210101303A (en) Data transmission method and device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480035971.8

Country of ref document: CN

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

Ref document number: 14892575

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

Country of ref document: EP

Kind code of ref document: A1