WO2015180184A1 - 一种传输数据的方法、装置及系统 - Google Patents

一种传输数据的方法、装置及系统 Download PDF

Info

Publication number
WO2015180184A1
WO2015180184A1 PCT/CN2014/079017 CN2014079017W WO2015180184A1 WO 2015180184 A1 WO2015180184 A1 WO 2015180184A1 CN 2014079017 W CN2014079017 W CN 2014079017W WO 2015180184 A1 WO2015180184 A1 WO 2015180184A1
Authority
WO
WIPO (PCT)
Prior art keywords
network node
packet
response
client
request
Prior art date
Application number
PCT/CN2014/079017
Other languages
English (en)
French (fr)
Inventor
姚春凤
严哲峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480078570.0A priority Critical patent/CN106464657B/zh
Priority to EP14893445.8A priority patent/EP3136676B1/en
Priority to PCT/CN2014/079017 priority patent/WO2015180184A1/zh
Publication of WO2015180184A1 publication Critical patent/WO2015180184A1/zh
Priority to US15/363,844 priority patent/US10097447B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/20Hop count for routing purposes, e.g. TTL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, device and system for transmitting data.
  • ICN Information Centric Network
  • the ICN includes clients and network nodes, and the client and network nodes can be workstations, personal computers, servers, and so on.
  • the network node may be a content source or router, the client is configured to request content from a network node, the content source is used to generate content, and the router is used to route, forward, and cache content.
  • the router when the routers transmit data through the wired connection, the router is provided with a CS (Content Store) table, a PIT (Pending Interest Table), and a FIB (Forwarding Information Base) table.
  • the router When the data is transmitted wirelessly between routers, the router is configured with a CS table, a ⁇ , a response table, and a distance table.
  • the CS table is configured to cache the forwarded response data packet, so that the client obtains the content from the router
  • the PIT is configured to record the probed interest packet and the requested interest packet that have been forwarded, so as to respond to the response data of the probed interest packet.
  • the response table is configured to record the content source identifier capable of providing the content
  • the distance table is configured to record the distance relationship between the content source identifier and the router
  • the response table and the distance table implement the functions of the FIB table.
  • the probe interest packet is used to detect a path for the client to obtain content from the network node
  • the request interest packet is used by the client to request content from the network node.
  • the client may first broadcast a probe interest packet to the router.
  • the interest package includes a content name.
  • the router queries whether the response packet of the content corresponding to the content name is stored in the CS table, and if the response data packet of the content corresponding to the content name is stored in the CS table, The PIT returns a response data packet to the client, where the response data packet includes a content source identifier and a desired distance.
  • the router continues to broadcast the probe interest packet, and if the content source identifier of the content corresponding to the content name is stored in the response table, the distance table is queried.
  • the client may generate a request interest packet according to the content source identifier, the expected distance, and the hop value, and then broadcast the request interest packet to the router, and may obtain the content from the router or obtain the content from the content source through the router forwarding.
  • the interest packet, the request packet, and the response packet can be detected by wireless transmission, and the client, content source, or router may be in a mobile state, when the client responds according to the response packet.
  • the router broadcasts the request packet to obtain the content, the network topology of the ICN may have changed, and the request interest packet may not reach the content source or the router, and the content source or the router receives the request packet low success rate.
  • Embodiments of the present invention provide a method, an apparatus, and a system for transmitting data, which solve the problem that a content source or a router receives a request packet with a low success rate.
  • a method for transmitting data is provided, which is applied to a first network node, include:
  • the first mobile state record includes a first state record item, and the first state record item is used to record and forward the response probe data packet to the hop distance from the client to the first network node. Describe the mobile state of each network node of the client;
  • the network node adds the mobile node's own mobile state to the first state record entry, and sends the response probe data packet to the client;
  • the method further includes:
  • the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name, where the second expected distance is the request interest packet from the client to a hop count distance of the first network node, the second mobility state record includes a second state record item, where the second state record item is used to record and forward the response request data packet to each network of the client The moving state of the node;
  • Adding a movement status of the first network node to the second status record item Sending the response request data packet to the second network node, so as to forward the response request data packet to each network node of the client, adding a mobile node's own mobile state to the second status record item, and Sending the response request packet to the client.
  • the moving state includes a moving speed and a moving direction of the network node.
  • a method for transmitting data is provided, where the method is applied to a second network node, including:
  • a response probe data packet returned by the probe interest packet sent by the client receives, by the first network node, a response probe data packet returned by the probe interest packet sent by the client, where the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobility state record, where the first expectation The distance is the hop distance of the probe interest packet from the client to the first network node, the first mobile state record includes a first state record item, and the first state record entry is used for a record forwarding station. Responding to the mobile state of the probe packet to each network node of the client;
  • the request interest packet sent according to the response probe data packet, where the request interest packet includes the content name, the content source identifier, a revised value of the first desired distance, and a hop value.
  • the hop value is used to indicate the number of times the request interest packet is forwarded, and the revised value of the first expected distance is that the client records the first state record item in the response probe data packet according to the a desired distance is determined;
  • the forwarding the request interest packet to the first network node according to the revised value of the first expected distance and the hop value includes: And if the sum of the hop value in the request interest packet and the hop distance of the second network node to the first network node is less than or equal to a revision value of the first expected distance, forwarding the request interest packet To the first network node;
  • the requesting interest packet is forwarded to the first in the revised value according to the first expected distance and the hop value After the network node, the method further includes:
  • the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name, where the second expected distance is Determining a hop distance of the interest packet from the client to the first network node, the second mobility state record includes a second status record item, where the second status record item is used to record and forward the response request The mobile state of each network node of the packet to the client;
  • the requesting interest packet is forwarded to the first in the revised value according to the first expected distance and the hop value After the network node, the method further includes:
  • the moving state includes a movement of a network node Dynamic speed and direction of movement.
  • the third aspect provides a method for transmitting data, which is applied to a client, and includes: receiving, by the at least one network node, a response probe data packet returned by the probe interest packet sent by the client;
  • the first response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobility state record
  • the first expectation The distance is the hop distance of the probe interest packet from the client to the first network node
  • the first mobile state record includes a first state record item
  • the first state record entry is used for a record forwarding station. Determining, by the first response, a data packet to a mobile state of each network node of the client;
  • request interest packet includes the content name, the content source identifier, the revision value of the first desired distance, and a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded ;
  • the request interest package is sent to at least one network node.
  • the determining, by the status record item, the revised value of the first expected distance includes:
  • Determining a revised value of the first desired distance according to a moving state of the network section that forwards the first response probe data packet, and the first expected distance, where the revised value of the first expected distance is greater than, less than, or equal to The first desired distance is described.
  • the selecting, by the received response probe data packet, the first response probe data packet including:
  • the method further includes:
  • a response request packet returned for the request packet is received.
  • the method further includes:
  • the moving state includes a moving speed and a moving direction of the network node.
  • a first network node including:
  • a first receiving unit configured to receive a probe interest packet sent by the second network node, where the probe interest packet includes a content name
  • a first generating unit configured to generate a response probe data packet according to the content name, where the response probe data packet includes the content name, a content source identifier, a first expected distance, and a first movement state record, where the first expectation The distance is the hop distance of the probe interest packet from the client to the first network node, the first mobile state record includes a first state record item, and the first state record entry is used for a record forwarding station. Responding to the mobile state of the probe packet to each network node of the client;
  • a first adding unit configured to add a moving state of the first network node to the first state record item
  • a first sending unit configured to send the response probe data packet to the second network node, so as to forward the response probe data packet to each network section of the client Adding a mobile node's own mobile state to the first status record, and transmitting the response probe data packet to the client;
  • a second receiving unit configured to receive a request interest packet sent by the second network node, where the request interest packet includes the content name, the content source identifier, and a revised value of the first desired distance, where The revised value of the first expected distance is determined by the client according to the first state record in the response probe packet and the first expected distance.
  • the first network node further includes:
  • a second generating unit configured to generate a response request data packet, where the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name, where the second expected distance is the requested interest a hop count distance from the client to the first network node, the second mobile state record includes a second state record item, where the second state record item is used to record and forward the response request packet to a mobile state of each network node of the client;
  • a second adding unit configured to add a moving state of the first network node to the second state record item
  • a second sending unit configured to send the response request data packet to the second network node, so as to forward the response request data packet to each network node of the client to add a mobile node's own mobile state to the The second state records the item and sends the response request packet to the client.
  • the moving state includes a moving speed and a moving direction of the network node.
  • a second network node including:
  • a first receiving unit configured to receive a response probe data packet returned by the first network node for the probe interest packet sent by the client, where the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobile state Recording, the first desired distance Deviating from the hop count distance of the probe interest packet from the client to the first network node, the first mobile state record includes a first state record item, where the first state record entry is used for a record forwarding station Responding to the mobile state of the probe packet to each network node of the client;
  • a first adding unit configured to add a moving state of the second network node to the first state record item
  • a first forwarding unit configured to forward the response probe data packet to the client
  • a second receiving unit configured to receive the request interest packet sent by the client according to the response probe data packet, where the request is
  • the interest packet includes the content name, the content source identifier, the revised value of the first desired distance, and a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded, and the first desired distance
  • the revision value is determined by the client according to the first state record item in the response probe data packet and the first expected distance;
  • a second forwarding unit configured to forward the request interest packet to the first network node according to the revised value of the first expected distance and the hop value.
  • the second forwarding unit is specifically configured to:
  • the second network node further includes:
  • a third receiving unit configured to receive the response request data packet sent by the first network node, where the response request data packet includes a second expected distance, a second mobile state Recording content corresponding to the content name, the second expected distance is a hop distance of the request interest packet from the client to the first network node, and the second mobile state record includes a second state Recording, the second status record item is used to record a mobile state of forwarding the response request data packet to each network node of the client;
  • a second adding unit configured to add a moving state of the second network node to the second state record item
  • the second network node further includes:
  • an update unit configured to: if the response request packet sent by the first network node is not received in the first preset time period, update the revised value of the first expected distance to obtain an update value, where the request interest packet includes The first preset time period;
  • the second forwarding unit is further configured to:
  • the moving state includes a moving speed and a moving direction of the network node.
  • a client including:
  • a first receiving unit configured to receive a response probe data packet returned by the at least one network node for the probe interest packet sent by the client;
  • a selecting unit configured to select a first response probe data packet from the received response probe data packet, where the first response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobility state record,
  • the first expected distance is a hop distance of the probe interest packet from the client to the first network node
  • the first mobility state record includes a first state record item, the first state record item Means for recording the movement of each network node that forwards the first response probe data packet to the client State
  • a determining unit configured to determine a revised value of the first desired distance according to the first state record item and the first expected distance
  • a generating unit configured to generate a request interest packet, where the request interest packet includes the content name, the content source identifier, a revised value of the first desired distance, and a hop value, where the hop value is used to indicate the request The number of times the interest package is forwarded;
  • a sending unit configured to send the request interest packet to the at least one network node.
  • the determining unit is specifically configured to:
  • Determining a revised value of the first desired distance according to a moving state of the network section that forwards the first response probe data packet, and the first expected distance, where the revised value of the first expected distance is greater than, less than, or equal to The first desired distance is described.
  • the selecting unit is specifically configured to:
  • the received response probe data packet is parsed, the first expected distance and the first mobile state record in the response probe data packet are selected according to the response, and the first response probe data packet is selected according to a selection rule.
  • the client further includes:
  • a second receiving unit configured to receive a response request packet returned for the request packet.
  • the client further includes:
  • an update unit configured to: if the response request packet returned for the request packet is not received within the first preset time period, update the revision value of the first expected distance to obtain an update value, where the request interest package includes The first preset time period;
  • the sending unit is further configured to: And sending the updated request interest packet to the at least one network node, where the updated request interest packet includes the update value.
  • the moving state includes a moving speed and a moving direction of the network node.
  • a transmission data system including:
  • a first network node including:
  • a receiver configured to receive a probe interest packet sent by the second network node, where the probe interest packet includes a content name
  • a memory for storing program code
  • the program code for invoking the memory storage performs the following method: generating a response probe data packet according to the content name, where the response probe data packet includes the content name, a content source identifier, a first desired distance, and a a mobile state record, the first expected distance is a hop distance of the probe interest packet from the client to the first network node, and the first mobile state record includes a first state record entry, a first status record item is configured to record a mobile state of each network node that forwards the response probe data packet to the client;
  • the method executed by the processor further includes:
  • a transmitter configured to send the response probe data packet to the second network node, to facilitate forwarding the response probe data packet to the
  • Each network node of the client adds a mobile node's own mobile state to the first status record, and sends the response probe data packet to the client;
  • the receiver is also used to:
  • the request interest The package includes the content name, the content source identifier, and the revised value of the first expected distance, where the revised value of the first expected distance is that the client detects the data packet according to the response A status record item and the first desired distance are determined.
  • the method executed by the processor further includes:
  • the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name, where the second expected distance is the request interest packet from the client to a hop count distance of the first network node, the second mobility state record includes a second state record item, where the second state record item is used to record and forward the response request data packet to each network of the client The moving state of the node;
  • the method executed by the processor further includes:
  • the transmitter is further configured to:
  • the moving state includes a moving speed and a moving direction of the network node.
  • a second network node including:
  • a receiver configured to receive a response probe data packet returned by the first network node for the probe interest packet sent by the client, where the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobile state record,
  • the first expected distance is a hop distance of the probe interest packet from the client to the first network node
  • the first mobility state record includes a first state record item, the first state record item Means for recording and forwarding the response probe packet to each network node of the client State
  • a memory for storing program code
  • the program code for invoking the memory storage performs the following method: adding a moving state of the second network node to the first state record item;
  • a transmitter configured to forward the response probe data packet to the client; the receiver is further configured to:
  • the request interest packet sent according to the response probe data packet, where the request interest packet includes the content name, the content source identifier, a revised value of the first desired distance, and a hop value.
  • the hop value is used to indicate the number of times the request interest packet is forwarded, and the revised value of the first expected distance is that the client records the first state record item in the response probe data packet according to the a desired distance is determined;
  • the transmitter is also used to:
  • the transmitter is specifically configured to:
  • the receiver is further configured to:
  • the response request data packet receives, by the first network node, the response request data packet, where the response request data packet includes a second expected distance, a second mobile state record, and the content name pair
  • the content of the second expected distance is the hop distance of the request interest packet from the client to the first network node
  • the second mobile state record includes a second status record item, where the a second status record item is configured to record a mobile state of each network node that forwards the response request data packet to the client;
  • the method executed by the processor further includes:
  • the transmitter is further configured to:
  • the method performed by the processor further includes:
  • the transmitter is also used to:
  • the moving state comprises a moving speed and a moving direction of the network node.
  • a client including:
  • a receiver configured to receive a response probe data packet returned by the at least one network node for the probe interest packet sent by the client;
  • a memory for storing program code
  • the program code for invoking the memory storage performs the following method: selecting a first response probe data packet from the received response probe data packet, where the first response probe data packet includes a content name, a content source identifier a first desired distance and a first movement state record, the first desired distance being the probe interest packet from the client a first hop record distance, the first state record record is used to record and forward the first response probe data packet to the client The mobile state of each network node;
  • the method executed by the processor further includes:
  • request interest packet includes the content name, the content source identifier, the revision value of the first desired distance, and a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded ;
  • a transmitter configured to send the request interest packet to at least one network node.
  • the method performed by the processor includes:
  • Determining a revised value of the first desired distance according to a moving state of the network section that forwards the first response probe data packet, and the first expected distance, where the revised value of the first expected distance is greater than, less than, or equal to The first desired distance is described.
  • the method performed by the processor includes:
  • the received response probe data packet is parsed, the first expected distance and the first mobile state record in the response probe data packet are selected according to the response, and the first response probe data packet is selected according to a selection rule.
  • the receiver is also used to:
  • a response request packet returned for the request packet is received.
  • the method performed by the processor further includes:
  • the request interest package includes the first preset time period
  • the transmitter is also used to:
  • the moving state comprises a moving speed and a moving direction of the network node.
  • a transmission data system including:
  • Embodiments of the present invention provide a method, apparatus, and system for transmitting data.
  • the requesting interest is generated by recording the moving state of the network node in the response detecting data packet of the response detecting interest packet, so that the client determines the revised value of the desired distance according to the moving state of the network node recorded in the response detecting data packet and the expected distance.
  • the packet enables the network node to receive the request interest packet, which effectively solves the problem that the content source or the router receives the request packet low success rate.
  • FIG. 1 is a flowchart of a method for transmitting data according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for transmitting data according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for transmitting data according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for transmitting data according to an embodiment of the present invention
  • FIG. 5 is a flowchart of another method for transmitting data according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for transmitting data according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a first network node according to an embodiment of the present invention
  • FIG. 8 is a first embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a second network node according to an embodiment of the present invention
  • FIG. 10 is a schematic structural diagram of another second network node according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a client according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of another client according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of a transmission data system according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of still another first network node according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of still another second network node according to an embodiment of the present invention.
  • FIG. 16 is a schematic structural diagram of another client according to an embodiment of the present invention
  • FIG. 17 is a schematic diagram of another transmission data system according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for transmitting data, as shown in FIG. 1 , applied to a first network node, including:
  • Step 101 Receive a probe interest packet sent by the second network node, where the probe interest package includes a content name.
  • Step 102 Generate a response probe data packet according to the content name, where the response probe data packet includes the content name, a content source identifier, a first expected distance, and a first move a status record, the first expected distance is a hop distance of the probe interest packet from the client to the first network node, and the first mobile state record includes a first status record, the first The status record item is used to record the movement status of each network node that forwards the response probe data packet to the client.
  • the first state record item includes a mobile state of at least one network node, where the mobile state includes a moving speed of the network node and a moving direction of the network node.
  • Step 103 Add a mobility state of the first network node to the first state.
  • Step 104 Send the response probe data packet to the second network node, so as to forward the response probe data packet to each network node of the client to add a mobility state of the network node itself to the first state record. And sending the response probe packet to the client.
  • Step 105 Receive a request interest packet sent by the second network node, where the request interest packet includes the content name, the content source identifier, and a revised value of the first desired distance, where the first expected distance is The revised value is determined by the client according to the first state record in the response probe packet and the first expected distance.
  • the mobile node's mobile state is recorded in the response probe packet in response to the probed interest packet, so that the client determines the revised value of the desired distance according to the mobile node's moving state and the expected distance recorded in the response probe packet.
  • the request interest packet is generated, so that the network node receives the request interest packet, which effectively solves the problem that the content source or the router receives the request interest packet with low success rate.
  • An embodiment of the present invention provides a method for transmitting data, as shown in FIG. 2, applied to a second network node, including:
  • Step 201 Receive a response probe data packet returned by the first network node for the probe interest packet sent by the client, where the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobility state record, where The first desired distance is Detecting a hop distance of the interest packet from the client to the first network node, the first mobile state record includes a first state record item, where the first state record item is used to record and forward the response probe data The mobile state of each network node that is packetized to the client.
  • Step 202 Add a mobility state of the second network node to the first state.
  • Step 203 Forward the response probe data packet to the client.
  • Step 204 Receive the request interest packet sent by the client according to the response probe data packet, where the request interest packet includes the content name, the content source identifier, and a revised value of the first expected distance. a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded, and the revised value of the first expected distance is that the client records the first state record item according to the response probe data packet and The first desired distance is determined.
  • Step 205 Forward the request interest packet to the first network node according to the revised value of the first expected distance and the hop value.
  • the second network node adds the mobility state of the second network node to the state record item in the first mobility state record, so that the client detects the mobile node and the desired distance of the network node recorded in the data packet according to the response. Determining the revised value of the desired distance, thereby generating a request interest packet, so that the network node receives the request interest packet, effectively solving the problem that the content source or the router receives the request interest packet has a lower success rate.
  • An embodiment of the present invention provides a method for transmitting data, as shown in FIG. 3, applied to a client, including:
  • Step 301 Receive a response probe data packet returned by the at least one network node for the probe interest packet sent by the client.
  • Step 302 Select a first response probe data packet from the received response probe data packet, where the first response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobility state record, where The first desired distance is the detected interest a hop count distance from the client to the first network node, the first mobile state record includes a first state record item, where the first state record item is used to record and forward the first response probe data The mobile state of each network node that is packetized to the client.
  • Step 303 Determine a revision value of the first expected distance according to the first state record item and the first expected distance.
  • Step 304 Generate a request interest packet, where the request interest packet includes the content name, the content source identifier, a revised value of the first expected distance, and a hop value, where the hop value is used to indicate the request interest packet. The number of forwardings.
  • Step 305 Send the request interest packet to at least one network node.
  • the client determines the revised value of the expected distance according to the moving state of the network node recorded in the response detection data packet and the expected distance, thereby generating the request interest packet, so that the network node receives the request interest packet, and effectively solves the content source. Or the router receives the request request packet with a lower success rate.
  • the method for transmitting data provided by the embodiment of the present invention is based on an ICN, including a client and a network node, where the network node may be a content source or a router, and the client is configured to request content from the network node, where the content source is used.
  • the router is used to route, forward, and cache content.
  • the router transmits data wirelessly, and the router is provided with a C S table, a PIT, a response table, and a distance table.
  • the CS table is configured to cache the forwarded response data packet, so that the client obtains the content from the router, and the PIT is configured to record the probed interest packet and the requested interest packet that have been forwarded, so as to respond to the response data of the probed interest packet.
  • the response packet of the packet or the response request packet is returned to the client, and the response table is used to record the content source identifier capable of providing the content, and the distance table is used to record the distance relationship between the content source identifier and the router.
  • the probe interest packet is used to detect a path of the client acquiring content from the network node, and the request interest packet is used by the client to request content from the network node.
  • the embodiment of the present invention provides a method for transmitting data, which is assumed to be applied to a router, a content source, and a client. As shown in FIG. 4, the method includes: Step 401: The client sends a probe interest packet to the router.
  • the client broadcasts the probe interest packet to the at least one router, where the probe interest packet includes a content name, and the probe interest packet further includes a hop value, where the hop value is set to 0, and the hop value is used to indicate the probe interest packet.
  • Number of forwardings when the probe interest packet is forwarded once, the current hop value is incremented by one. For example, when the probe interest packet is sent from the client to the first router, the hop value is incremented by 1, and then forwarded by the first router to the second router, and the hop value added after adding 1 is incremented by one.
  • Step 402 The router forwards the probe interest packet to the content source.
  • the router receives the probe interest packet broadcasted by the client to the at least one router, and queries whether the response packet of the content corresponding to the content name is stored in the content cache table. If the content cache table does not store the response packet corresponding to the content name, the query Whether the content source identifier of the content corresponding to the content name is stored in the response table, and if the content source identifier of the content corresponding to the content name is stored in the response table, the content source closest to the router in the distance table is queried, and then, the router The PIT records the probe interest packet, and the router forwards the probe interest packet to the content source, and the hop value of the probe interest packet is incremented by one.
  • the distance table stores the distance of the content source closest to the router, the distance being the hop distance of the router to the nearest content source.
  • the router may first forward the probe interest packet to other routers, forwarded to the content source by the other router, or the router directly forwards the probe interest packet to the content source.
  • the router continues to broadcast the probe interest packet, and when the probe interest packet reaches the maximum hop value, the probe interest packet is discarded.
  • Step 403 The content source generates a response probe data packet according to the content name.
  • the content source receives the probe interest packet sent by the router, and the probe interest packet includes a content name and a hop value.
  • the response probe data packet is a response data packet in response to the probe interest packet, the response probe data packet including the content name, the content source identifier, the first desired distance, and the first movement state record, wherein the first desired distance is the Probe interest package from Deriving a hop distance from the client that detects the interest packet to the content source, according to a hop value of the probe interest packet;
  • the first mobile state record includes a first state identifier bit and a first state record item,
  • the first status flag is used to indicate the validity of the first mobile status record, and the first status record is used to record the mobile status of each network node that forwards the response probe data packet to the client.
  • the first status record includes a mobile state of at least one network node, the mobile state including a mobile node's moving speed and a network node's moving direction, and the network node may be a router or a content
  • the first moving status is an invalid state, that is, the first status record does not record the moving status of each network node that forwards the response probe data packet to the client;
  • the first mobile state is an active state, that is, the first status record records the mobile state of each network node that forwards the response probe data packet to the client.
  • the response probe packet may further include content corresponding to the content name.
  • Step 404 The content source adds the mobile state of the content source to the first status record according to the first status flag.
  • the content source may check that the content source identifier of the probe interest packet is empty and the expected distance is empty, then the first state flag is set to 1, that is, the first mobile state is a valid state, and the content source adds the mobile state of the content source to the first A status record entry.
  • Step 405 The content source sends a response probe packet to the router.
  • Step 406 The router adds the mobile state of the router to the first status record according to the first status flag.
  • the router Receiving, by the router, a response probe data packet sent by the content source, where the response probe data packet includes the content name, a content source identifier, a first expected distance, and a first mobility state record, where the first expected distance is the detection interest And a hop count distance from the client that sends the probe interest packet to the content source, where the first mobile state record includes a first state identifier bit and a first state record item, where the first state flag bit is used for Instruction office
  • the validity of the first mobile state record is used to record the mobile state of each network node that forwards the response probe data packet to the client.
  • the first status record includes a mobile state of at least one network node, the mobile state including a mobile node's moving speed and a network node's moving direction, and the network node may be a router or a content source.
  • the router checks that the first status flag is 1, that is, the first mobile state is valid, and the router adds the mobile state of the router to the first status record.
  • Step 407 The router forwards the response probe packet to the client according to the interest packet resident table.
  • the router's interest packet resident table PIT records the probe interest packet, and the router forwards the response probe packet to the client according to the interest packet resident table.
  • Step 408 The client receives a response probe packet forwarded by at least one router.
  • the client receives the response probe data packet forwarded by at least one router, and each response probe data packet may be forwarded by a different router, that is, the mobile state record included in each response probe data packet may record the router that forwards the response probe data packet.
  • the state of movement is not limited to, the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the mobile state record included in each response probe data packet may record the router that forwards the response probe data packet. The state of movement.
  • Step 409 The client selects the first response probe data packet.
  • the client After the client receives the response probe data packet forwarded by the at least one router, first, the client parses the response probe data packet to obtain the information of the first expected distance and the first mobile state record, and then the client may according to the first desired distance, At least one of the first mobile state record and the selection rule selects a response probe data packet, so that the client generates a request interest packet according to the response probe data packet, and the selection rule may be that the router that forwards the response probe data packet processes the response probe data packet. The speed of the packet is either the first response probe packet received by the client.
  • the two response probe data packets are the first response probe data packet and the second response probe data packet, respectively.
  • the first response probe data packet is a response probe data packet received by the client first
  • the second response probe data packet is a response probe data packet received by the client after receiving the first response probe data packet.
  • the first response probe packet and the second response probe packet are both probe response packets in response to the probe interest packet sent by the client to the content source.
  • the second response is the first expectation in the probe packet
  • the distance between the content source and the client is 4 hops, and the client can select a response probe packet with a short hop distance according to the first desired distance, that is, the router can select to forward through less routers.
  • the first response probe packet generates a request interest packet.
  • the second response probe packet has the same hop distance from the content source to the client, and the client may check the first response probe packet recorded in the first mobile state record in the first response probe packet.
  • the mobile state of the network node and the mobile state of the network node that forwards the second response probe data packet recorded in the first mobile state record in the second response probe data packet, if the second response probe data packet is forwarded The moving state of the network node is relatively stable compared to the moving state of the network node that forwards the first response detecting data packet, that is, the moving speed of the network node that forwards the second response detecting data packet may be slower, and the first response detecting data is forwarded.
  • the network node of the packet may move faster, and the client may select the stable according to the first mobile state record.
  • the second response probe packet forwarded by the router generates a request interest packet, which may be a router or a content source.
  • the hop count distance of the client is equal, and the mobile state of the network node forwarding the first response probe data packet and the second response probe data packet recorded in the first mobile state record in the first response probe data packet.
  • the mobile node of the network node forwarding the second response probe data packet recorded in the first mobile state record is the same, and the client may select the first response probe forwarded by the router that processes the fast response packet according to the selection rule.
  • the client selects the response probe packet to generate the request interest packet.
  • the response probe data packet may be a first response probe data packet, and the first response probe data packet may be forwarded by a minimum of network nodes, and the network node is relatively stable in response to the probe data packet.
  • the first response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobility state record, where the first expected distance is the probe interest packet from the client to the first network a hop count distance of the node, the first movement state record includes a first state identifier bit and a first state record item, where the first state flag bit is used to indicate validity of the first movement state record, A status record is used to record the mobile status of each network node that forwards the first response probe data packet to the client.
  • Step 4010 The client determines a revised value of the first expected distance according to the first state record item and the first expected distance.
  • the client acquires a first status record of the first movement status record from the first response probe data packet, and the first status record record records a movement status of each network node that forwards the response probe data packet to the client.
  • the client may increase the first expected distance by one to obtain a revised value of the first expected distance, that is, the revised value of the first expected distance is greater than the first expectation. Distance; when the network node forwarding the first response probe packet moves slowly or not Moving, the client may not increase the first desired distance, ie the revised value of the first desired distance is the same as the first desired distance.
  • Step 401 The client generates a request interest packet.
  • the request interest packet includes the content name, the content source identifier, the revised value of the first desired distance, and a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded, and the hop value is set. Is 0.
  • Step 4012 The client sends a request interest packet to the router.
  • the client sends the request interest packet to at least one router.
  • Step 4013 The router forwards the request interest packet to the content source according to the revised value and the hop value of the first expected distance.
  • the router receives the request interest packet sent by the client, and the hop value is increased by one.
  • the router queries whether the response packet of the content corresponding to the content name is stored in the content cache table (CS). If the response packet of the content corresponding to the content name is not stored in the content cache table, the query interest packet resident table (PIT) is recorded.
  • CS content cache table
  • PIT query interest packet resident table
  • the request interest package if the interest package resident table (PIT) does not record the request interest package, whether the content source identifier of the content corresponding to the content name is stored in the query response table, and if the response table stores the content corresponding to the content name
  • the content source identifier is configured to query the content source in the distance table that is closest to the router, and forward the request interest packet to the content source according to the revised value and the hop value of the first desired distance.
  • the request interest packet includes the content name, the content source identifier, a revised value of the first expected distance, and a hop value, where the hop value is used to indicate the number of times the requested interest packet is forwarded. Specifically, if the interest packet resident table (PIT) records the request interest packet, the router discards the request interest packet.
  • the revised value of the first expected distance is the total hop value of the request interest packet from the client to the content source, and the hop value is the number of times the interest packet has been forwarded, and the distance between the router and the content source is stored in the distance table.
  • the distance is the hop distance of the router to the nearest content source.
  • the router forwards the request interest packet; when the sum of the hop value in the request interest packet and the hop distance of the router to the content source stored in the distance table is greater than the revised value of the first desired distance, and then delays the preset duration After forwarding the request interest packet, or discarding the request interest packet.
  • the delay is preset to be forwarded and the router forwards an additional preset duration before forwarding the request interest packet, that is, waiting for an extra time to forward the request interest packet.
  • Step 4014 The content source generates a response request packet.
  • the request interest packet sent by the router parsing the request interest packet to obtain a content source identifier, a revision value of the first desired distance, and a hop value.
  • the content source identifier is the same as the identifier of the content source
  • the content is The source generates a response request data packet, where the response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name, the second desired distance And the hop distance of the requesting interest packet from the client that sends the request interest packet to the router, generated by the hop value in the request interest packet, where the second mobile state record includes the second state identifier bit And a second status record, the second status flag is used to indicate the validity of the second mobile status record, and the second status record is used to record and forward the response request packet to the client.
  • the mobile state of each network node is the same as the identifier of the content source
  • the content is The source generates a response request data packet, where the response request
  • Step 4015 The content source determines, according to the second status flag, whether the second mobile status record is valid.
  • the content source sets the second status flag to 1, that is, the second movement status is valid; if the content source sets the second status flag to 0, the second movement status is invalid. It should be noted that, when the response data packet is a response request packet requesting the interest packet, the content source may set the second status flag to 1, that is, the second mobile state is the active state, or the second state flag is set to 0. , that is, the second movement state is an invalid state.
  • step 4016a When the content source sets the second status flag to 1, that is, the second movement state is the active state, step 4016a is performed.
  • step 4016b When the content source sets the second state flag to 0, that is, the second mobile state is in an invalid state, step 4016b is performed.
  • Step 4016a The content source adds the mobile state of the content source to the second status record item. Go to step 4016b.
  • the content source is effective to add the movement state of the content source to the second state record item according to the second movement state record. It should be noted that if the second mobile state record is invalid, the content source does not have to add the mobile state of the content source to the second state record.
  • Step 401 6b The content source sends the response request data packet to the router.
  • Step 4017 The router determines, according to the second status flag, whether the second mobile status record is valid.
  • the second expected distance is a hop distance of the request interest packet from a client that sends the request interest packet to the content source
  • the second mobile state record includes a second status identifier bit and a second status record.
  • the second status flag is used to indicate the validity of the second mobile status record
  • the second status record is used to record and forward the response request data packet to each network node of the client. Move status.
  • the second status record includes a mobile state of at least one network node, the mobile state including a mobile node's moving speed and a network node's moving direction, and the network node may be a router or a content source.
  • the router checks that the second status flag is 1, the second mobile status is valid; if the router checks that the second status flag is 0, the second mobile status is invalid. It should be noted that, when the response data packet is a response request packet requesting the interest packet, the router may set the second status flag to 1, that is, the second mobile state is the active state, or the second status flag is 0, that is, The second movement state is an invalid state.
  • step 4018a When the router sets the second state flag to 1, that is, the second mobile state is the active state, step 4018a is performed.
  • step 4018b When the router sets the second status flag to 0, that is, the second mobile status is inactive, step 4018b is performed.
  • Step 4018a The router adds the mobile state of the router to the second status record entry. Go to step 4018b.
  • the router effectively adds the mobile state of the router to the second state record according to the second mobility state record. It should be noted that if the second mobile state record is invalid, the router does not have to add the mobile state of the router to the second state record entry.
  • Step 4018b The router forwards the response request packet to the client according to the interest packet resident table.
  • the interest packet resident table of the router PIT records the request interest packet, and the router forwards the first response request packet to the client according to the interest packet resident table.
  • Step 4019 The client receives a response request packet returned for the request packet.
  • the client receives the response request packet forwarded by at least one router, and each response packet may be forwarded by a different router, that is, the mobile state record included in each response request packet may record the router that forwards the response request packet.
  • the state of movement is not limited to, the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the mobile state record included in each response request packet may record the router that forwards the response request packet. The state of movement.
  • Step 4020 The client selects a first response request packet.
  • the client After the client receives the response request packet forwarded by the at least one router, first, the client parses the response request packet to obtain the information of the second expected distance and the second mobile state record, and then the client may according to the second desired distance, At least one of the second mobile state record and the selection rule selects a response request packet, so that the client generates a request interest packet according to the response request packet, and the selection rule may be that the router that forwards the response request packet processes the response request data.
  • the speed of the packet is either the first response request packet received by the client.
  • the two response request packets are a first response request packet and a second response request packet, respectively.
  • the first response request data packet is a response request data packet received by the client first
  • the second response request data packet is a response request data packet received by the client after receiving the first response request data packet.
  • the first response request packet and the second response request packet are both response request packets in response to the request interest packet sent by the client to the content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client is 3 hops
  • the second response requests the second expectation in the data packet
  • the distance of the second response request packet from the content source to the client is 4 hops, and the client can select a response request packet with a short hop distance according to the second desired distance, that is, the router can select to forward through less routers.
  • the first response request packet generates a request interest packet.
  • the second response request packet has the same hop distance from the content source to the client, and the client may check the forwarding of the first response request packet recorded in the second mobile status record in the first response request packet.
  • the mobile state of the network node and the mobile state of the network node that forwards the second response request packet recorded in the second mobile state record in the second response request packet if the second response request packet is forwarded.
  • the mobile state of the network node is relatively stable compared to the mobile node that forwards the first response request packet, that is, the network node that forwards the second response request packet may be slower, and the first response request data is forwarded.
  • the network node of the packet may move faster, and the client may select the stable according to the second mobile state record.
  • the second response request packet forwarded by the router generates a request interest packet, which may be a router or a content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client and the second expected distance in the second response request packet
  • the second response request packet from the content source to the guest The hop count distance of the client is equal, and the mobile state of the network node forwarding the first response request packet and the second response request packet recorded in the second mobile state record in the first response request packet
  • the mobile node of the network node that forwards the second response request packet recorded in the second mobile state record is the same, and the client can select the first response request forwarded by the router that processes the response request packet faster according to the selection rule.
  • the packet generation request interest packet is the same, and the client can select the first response request forwarded by the router that processes the response request packet faster according to the selection rule.
  • the client selects the response request packet to generate the request interest packet.
  • the response request data packet may be a first response request data packet, and the first response request data packet may be forwarded by a minimum network node, and the network node is relatively stable in response to the request data packet.
  • the first response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name, where the second expected distance is the requested interest And a hop count distance from the client that sends the request interest packet to the content source, where the second mobile state record includes a second state identifier bit and a second state record item, where the second state flag bit is used for Indicates validity of the second mobility state record, and the second state record item is used to record a mobile state of forwarding each of the response request packet to each network node of the client.
  • Step 4020 is an optional step.
  • the first mobile state record described in the embodiment of the present invention may be added to the packet header of the response probe data packet, and the second mobility state record may be added to the packet header of the response request data packet, and the response interest packet is detected.
  • the mobile state record must be added to the header of the response probe packet, and the mobile state record can be randomly added in the header of the response request packet of the response request packet, and the client can instruct the network node to add the mobility state of the network node.
  • the response packet structure in the header of the mobile status record in the response packet can be as shown in Table 1, and the response packet can be a response. Probe a packet or respond to a request packet,
  • the mobile state record may be represented by an identifier, and the identifier field may include a mobile state of at least one network node, where the mobile state may be a moving speed of the network node or/and a moving direction of the network node, where the identifier field may be Set as:
  • ⁇ record> ⁇ /record> includes the mobile state of at least one network node, that is, at least one ⁇ node ID> ⁇ /node ID>, and ⁇ node ID> ⁇ /node ID> may include the mobile state of the network node. It may be the moving speed of the network node or/and the moving direction of the network node, ⁇ speed> ⁇ /speed> to include the moving speed of the network node, ⁇ ⁇ ( ⁇ 011> ⁇ / ⁇ ( ⁇ 011> may include the The moving direction of the network node.
  • the moving speed of the network node can be the specific speed of the network node, or the moving speed level of the network node, that is, high, medium, and low.
  • the content source in the embodiment of the present invention may also be a router, that is, when the response data packet of the content corresponding to the content name is stored in the content cache table of the router, the router has the same role as the content source, and is the client.
  • the client and the content source may not be forwarded by the router, and the client directly obtains the content from the content source, or the client and the router closest to the client may not be forwarded by other routers, and the client directly The content is obtained from the router closest to the client.
  • the content cache table of the router may store the response data packet corresponding to the content name. After the router receives the probe interest packet, the router queries the content cache table.
  • the response probe data packet or the response request data packet storing the content corresponding to the content name, generating a response probe data packet according to the content name, adding the mobile state of the router to the status record item according to the status flag bit, and sending the status to the second network node or the client Responding to the probe data packet, so that the client determines the revision value of the first expected distance according to the state record item, thereby generating a request interest packet, and sending the request interest packet to the at least one network node, so that the network node receives the request Interest package.
  • the client sends a probe interest packet to the content source through the router, and the content source generates a response probe data packet according to the content name included in the probe interest packet, and adds according to the first status flag bit.
  • the router Transmitting the content source to the first state record item, and sending a response probe data packet to the router, the router adds the mobile state of the router to the first state record item according to the first status flag bit, and forwards the response to the client.
  • the client selects the first response probe data packet, and determines a revision value of the first expected distance according to the state record item and the first expected distance, generates a request interest packet, and sends a request interest packet to the router, and the router according to the The revised value and the hop value of a desired distance forward the request interest packet to the content source, the content source generates a response request data packet, and determines that the second mobile state record is valid according to the second status flag, and moves the content source The status is added to the second status record, and then the router is sent to the router.
  • the router determines, according to the second status flag, that the second mobility status record is valid, adds the mobile state of the router to the second status record item, and forwards the response request data packet to the client, The client receives the response request packet.
  • the response data packet is sent to the client, so that the client is in accordance with the state
  • the record item determines the revision value of the desired distance, thereby generating a request interest package
  • the at least one network node sends the request interest packet, so that the network node receives the request interest packet, which effectively solves the problem that the existing route forwarding does not adapt to the network node movement, and the network load is large, the transmission delay is large, and the success rate is low.
  • the problem is that the content source or router can increase the success rate of the request interest packet.
  • the embodiment of the present invention provides a method for transmitting data, which is applied to a router, a content source, and a client as shown in FIG. 4, after the client sends a request for interest packet to the router, when the first preset time period is When the response request packet returned for the request packet is not received, as shown in FIG. 5, it includes:
  • Step 41 1 The client updates the revision value of the first expected distance to obtain an updated value. After the client sends the request interest packet to the at least one router, when the response request packet sent by the at least one router is not received within the first preset time period, updating the revision value of the first expected distance to obtain an update value,
  • the request interest package includes the first preset time period.
  • updating the revision value of the first desired distance results in an updated value, that is, the revision value of the first desired distance can be increased by one.
  • the revised value of the first expected distance is 3 hops
  • the revised value of the first expected distance can be increased by 1 hop
  • the revised value of the first expected distance is updated to obtain an updated value of 4 hops.
  • Step 41 12 The client repeatedly sends the updated request interest packet to the router.
  • the client repeatedly sends the updated request interest packet to the at least one router, and the updated request interest packet includes the update value.
  • Step 41 The router forwards the updated request interest packet to the content source according to the update value and the hop value.
  • Step 41 The content source generates a response request packet.
  • the content source generates a response request data packet, where the response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name, the second expectation
  • the distance is the hop distance of the requesting interest packet from the client that sends the request interest packet to the content source
  • the second mobile state record includes a second state identifier bit and a second state record item, where the The second status flag is used to indicate the validity of the second mobile status record, and the second status record is used to record the mobile status of each network node that forwards the response request packet to the client.
  • Step 41 The content source determines, according to the second status flag, whether the second mobile status record is valid.
  • the content source sets the second status flag to 1, that is, the second movement status is valid; if the content source sets the second status flag to 0, the second movement status is invalid. It should be noted that, when the response data packet is a response request packet requesting the interest packet, the content source may set the second status flag to 1, that is, the second mobile state is the active state, or the second state flag is set to 0. , that is, the second movement state is an invalid state.
  • step 41 16a is performed.
  • step 41 16b is performed.
  • Step 41 1 6a The content source adds the moving state of the content source to the second state record item.
  • the content source is effective to add the movement state of the content source to the second state record item according to the second movement state record. It should be noted that if the second mobile state record is invalid, the content source does not have to add the mobile state of the content source to the second state record.
  • Step 41 16b The content source sends the response request data packet to the router.
  • Step 41 The router determines, according to the second status flag, whether the second mobile status record is valid.
  • the second expected distance is a hop distance of the request interest packet from a client that sends the request interest packet to the content source
  • the second mobile state record includes a second status identifier bit and a second status record.
  • the second status flag is used to indicate the validity of the second mobile status record
  • the second status record is used to record and forward the response request data packet to each network node of the client. Move status.
  • the second status record includes a mobile state of at least one network node, the mobile state including a mobile node's moving speed and a network node's moving direction, and the network node may be a router or a content source.
  • the router checks that the second status flag is 1, the second mobile status is valid; if the router checks that the second status flag is 0, the second mobile status is invalid. It should be noted that, when the response data packet is a response request packet requesting the interest packet, the router may set the second status flag to 1, that is, the second mobile state is the active state, or the second status flag is 0, that is, The second movement state is an invalid state.
  • step 41 18a is performed.
  • step 41 18b is performed.
  • Step 41 1 8a The router adds the mobile state of the router to the second state record entry. Go to step 41 18b. The router effectively adds the mobile state of the router to the second state record according to the second mobility state record. It should be noted that if the second mobile state record is invalid, the router does not have to add the mobile state of the router to the second state record entry.
  • Step 41 18b The router forwards the response request packet to the client according to the interest packet resident table.
  • the interest packet resident table of the router PIT records the request interest packet, and the router forwards the response request packet to the client according to the interest packet resident table.
  • Step 41 The client receives a response request packet returned for the request packet.
  • the client receives the response request packet forwarded by at least one router, and each response packet may be forwarded by a different router, that is, the mobile state record included in each response request packet may record the router that forwards the response request packet.
  • the state of movement is not limited to, the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the following routers: the mobile state record included in each response request packet may record the router that forwards the response request packet. The state of movement.
  • Step 4120 The client selects a first response request packet.
  • the client After the client receives the response request packet forwarded by the at least one router, first, the client parses the response request packet to obtain the information of the second expected distance and the second mobile state record, and then the client may according to the second desired distance, At least one of the second mobile state record and the selection rule selects a response request packet, so that the client generates a request interest packet according to the response request packet, and the selection rule may be that the router that forwards the response request packet processes the response request data.
  • the speed of the packet is either the first response request packet received by the client.
  • the two response request packets are a first response request packet and a second response request packet, respectively, and the first response request packet is a client.
  • the second response request packet being a response request packet received by the client after receiving the first response request packet, the first response request packet and The second response request packet is in response to the request interest sent by the client to the content source.
  • the packet's response request packet is a response request packet received first, the second response request packet being a response request packet received by the client after receiving the first response request packet, the first response request packet and The second response request packet is in response to the request interest sent by the client to the content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client is 3 hops
  • the second response requests the second expectation in the data packet
  • the distance of the second response request packet from the content source to the client is 4 hops, and the client can select a response request packet with a short hop distance according to the second desired distance, that is, the router can select to forward through less routers.
  • the first response request packet generates a request interest packet.
  • the second response request packet has the same hop distance from the content source to the client, and the client may check the forwarding of the first response request packet recorded in the second mobile status record in the first response request packet.
  • the mobile state of the network node and the mobile state of the network node that forwards the second response request packet recorded in the second mobile state record in the second response request packet if the second response request packet is forwarded.
  • the mobile state of the network node is relatively stable compared to the mobile node that forwards the first response request packet, that is, the network node that forwards the second response request packet may be slower, and the first response request data is forwarded.
  • the network node of the packet may move faster, and the client may select the stable according to the second mobile state record.
  • the second response request packet forwarded by the router generates a request interest packet, which may be a router or a content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client and the second expected distance in the second response request packet
  • the second response request packet has the same hop distance from the content source to the client, and the network node that forwards the first response request packet recorded in the second mobile state record in the first response request packet
  • the mobile state is the same as the mobile state of the network node that forwards the second response request packet recorded in the second mobile state record in the second response request packet, and the client may According to the selection rule, the first response request packet forwarded by the router that processes the response request packet is selected to generate the request interest packet.
  • the client selects the response request packet to generate the request interest packet.
  • the response request data packet may be a first response request data packet, and the first response request data packet may be forwarded by a minimum network node, and the network node is relatively stable in response to the request data packet.
  • the first response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name, where the second expected distance is the requested interest And a hop count distance from the client that sends the request interest packet to the content source, where the second mobile state record includes a second state identifier bit and a second state record item, where the second state flag bit is used for Indicates validity of the second mobility state record, and the second state record item is used to record a mobile state of forwarding each of the response request packet to each network node of the client.
  • Step 4120 is an optional step.
  • the probe may also send the probe interest packet to the content source.
  • the client obtains the path obtained by detecting the interest packet and returns to the normal state, that is, the response of the client to the response probe packet is received. If the expected distance carried by the probe data packet is less than or equal to the revision value greater than the updated first expected distance, the request interest packet sent by the client to the content source or the router may carry the expected distance; the client may restore to the update first. The revised value of the first desired distance before the revised value of the expected distance generates a request interest packet, and sends a request interest packet to the content source or router.
  • the client sends a probe interest packet to the content source through the router, and the content source generates a response probe data packet according to the content name included in the probe interest packet, and adds according to the first status flag bit.
  • the sent response request packet is sent, the revised value of the first expected distance is updated to obtain an updated value, and the updated request interest packet is repeatedly sent to the router, and the router forwards the requested interest packet to the content source according to the updated value and the hop value.
  • the content source generates a response request packet, and determines, according to the second status flag, that the second mobile status record is valid, adds the mobile state of the content source to the second status record, and sends the response to the router.
  • Requesting a data packet the router determining the first according to the second status flag bit Moving state record is valid, if the second movement state recording the effective movement state to a second state of the router to add entries to the client forwards said response request packet.
  • the revised value of the expected distance is updated by the client, that is, the hop value of the revised value of the expected distance is increased, and the updated request interest packet is repeatedly sent to the router or the content source, so that the router or the content source receives the packet. Requesting an interest package effectively solves the problem that the content source or router receives a request packet with a low success rate.
  • An embodiment of the present invention provides a method for transmitting data, which is assumed to be applied to a router, a content source, and a client as shown in FIG. 4, where the router forwards the request interest according to a revised value of the first expected distance and the hop value.
  • the method includes:
  • Step 4213 The router updates the revised value of the first expected distance to obtain an updated value.
  • the router Receiving, by the router, a request interest packet sent by the client, where the request interest packet includes a revision value and a hop value of the first desired distance, and the router according to the first expected distance After the revised value and the hop value forward the request interest packet to the content source, when the response request data packet sent by the content source is not received within the first preset time period, updating the first The revised value of the expected distance is updated, and the request interest package includes the first preset time period. It should be noted that, when other routers between the router and the content source fail, the router may update the revision value of the first expected distance to obtain an updated value.
  • updating the revision value of the first desired distance results in an updated value, that is, the revision value of the first desired distance can be increased by one.
  • the revised value of the first expected distance is 4 hops
  • the revised value of the first expected distance can be increased by 1 hop
  • the revised value of the first expected distance is updated to obtain an updated value of 5 hops.
  • Step 4214 The router forwards the request interest packet to the content source according to the updated value and the hop value.
  • the router repeatedly forwards the request interest packet to the content source according to the update value and the hop value, and the request interest packet includes an update value.
  • Step 421 The content source generates a response request packet.
  • the content source receives the request interest packet repeatedly sent by the router, where the request interest packet includes an update value, and the update value is an update value of the revision value of the first expected distance updated by the router. Parsing the request interest packet to obtain a content source identifier and an update value, where the content source identifier is the same as the identifier of the content source, that is, the content source is a router that forwards the content source of the request interest packet according to the update value and the hop value.
  • the content source generates a response request data packet, where the response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name, the second expectation
  • the distance is the hop distance of the requesting interest packet from the client that sends the request interest packet to the content source
  • the second mobile state record includes a second state identifier bit and a second state record item, where the The second status flag is used to indicate the validity of the second mobile status record, and the second status record is used to record the mobile status of each network node that forwards the response request packet to the client.
  • Step 4216 The content source determines, according to the second status flag, that the second mobile status record is valid.
  • the content source sets the second status flag to 1, that is, the second movement status is valid; if the content source sets the second status flag to 0, the second movement status is invalid. It should be noted that, when the response data packet is a response request packet requesting the interest packet, the content source may set the second status flag to 1, that is, the second mobile state is the active state, or the second state flag is set to 0. , that is, the second movement state is an invalid state.
  • step 4217a is performed.
  • step 4217b is performed.
  • Step 4217a The content source adds the mobile state of the content source to the second status record item. Go to step 4217b.
  • the content source is effective to add the movement state of the content source to the second state record item according to the second movement state record. It should be noted that if the second mobile state record is invalid, the content source does not have to add the mobile state of the content source to the second state record.
  • Step 4217b The content source sends the response request data packet to the router.
  • Step 4218 The router determines, according to the second status flag, whether the second mobile status record is valid.
  • the second expected distance is a hop distance of the requesting interest packet from a client that sends the request packet to the content source
  • the second mobile state record includes a second state identifier bit and a second state record
  • the second status flag is used to indicate the validity of the second mobile status record
  • the second status record is used to record and forward the response request packet to the The mobile state of each network node of the client.
  • the second status record includes a mobile state of at least one network node, the mobile state including a mobile node's moving speed and a network node's moving direction, and the network node may be a router or a content source.
  • the router checks that the second status flag is 1, the second mobile status is valid; if the router checks that the second status flag is 0, the second mobile status is invalid. It should be noted that, when the response data packet is a response request packet requesting the interest packet, the router may set the second status flag to 1, that is, the second mobile state is the active state, or the second status flag is 0, that is, The second movement state is an invalid state.
  • step 4219a is performed.
  • step 4219b is performed.
  • Step 4219a The router adds the mobile state of the router to the second state record entry. Go to step 4219b.
  • the router effectively adds the mobile state of the router to the second state record according to the second mobility state record. It should be noted that if the second mobile state record is invalid, the router does not have to add the mobile state of the router to the second state record entry.
  • Step 4219b The router forwards the response request packet to the client according to the interest packet resident table.
  • the interest packet resident table of the router PIT records the request interest packet, and the router forwards the response request packet to the client according to the interest packet resident table.
  • Step 4220 The client receives a response request packet returned for the request packet.
  • the client receives the response request packet forwarded by at least one router, and each response packet may be forwarded by a different router, that is, the mobile state record included in each response request packet may record the router that forwards the response request packet.
  • the state of movement Step 422 1.
  • the client selects a first response request packet.
  • the client After the client receives the response request packet forwarded by the at least one router, first, the client parses the response request packet to obtain the information of the second expected distance and the second mobile state record, and then the client may according to the second desired distance, At least one of the second mobile state record and the selection rule selects a response request packet, so that the client generates a request interest packet according to the response request packet, and the selection rule may be that the router that forwards the response request packet processes the response request data.
  • the speed of the packet is either the first response request packet received by the client.
  • the two response request packets are a first response request packet and a second response request packet, respectively, and the first response request packet is a client.
  • the second response request packet being a response request packet received by the client after receiving the first response request packet, the first response request packet and
  • the second response request data packet is a response request data packet in response to the request interest packet sent by the client to the content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client is 3 hops
  • the second response requests the second expectation in the data packet
  • the distance of the second response request packet from the content source to the client is 4 hops, and the client can select a response request packet with a short hop distance according to the second desired distance, that is, the router can select to forward through less routers.
  • the first response request packet generates a request interest packet.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client and the second expected distance in the second response request packet
  • the second response request packet has the same hop distance from the content source to the client, and the client may check the forwarding of the first response request packet recorded in the second mobile status record in the first response request packet.
  • the mobile state of the network node and the second mobile state record in the second response request packet The movement state of the network node that forwards the second response request packet, if the mobile state of the network node that forwards the second response request packet is compared to the mobile state of the network node that forwards the first response request packet It is more stable, that is, the network node that forwards the second response request packet may have a slower moving speed, and the network node that forwards the first response request packet may move faster, and the client may select according to the second mobile state record.
  • the second response request packet forwarded by the more stable router generates a request interest packet, and the network node may be a router or a content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client and the second expected distance in the second response request packet
  • the second response request packet has the same hop distance from the content source to the client, and the network node that forwards the first response request packet recorded in the second mobile state record in the first response request packet
  • the mobile state is the same as the mobile state of the network node that forwards the second response request packet recorded in the second mobile state record in the second response request packet, and the client may select to process the response request packet according to the selection rule.
  • the first response request packet forwarded by the faster router generates the request interest packet.
  • the client selects the response request packet to generate the request interest packet.
  • the response request data packet may be a first response request data packet, and the first response request data packet may be forwarded by a minimum network node, and the network node is relatively stable in response to the request data packet.
  • the first response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name, where the second expected distance is the requested interest And a hop count distance from the client that sends the request interest packet to the content source, where the second mobile state record includes a second state identifier bit and a second state record item, where the second state flag bit is used for Indicating the second movement
  • the validity of the status record, the second status record is used to record the mobile status of each network node that forwards the response request packet to the client.
  • Step 422 1 is an optional step.
  • the client sends a probe interest packet to the content source through the router, and the content source generates a response probe data packet according to the content name included in the probe interest packet, and adds according to the first status flag bit.
  • the router Transmitting the content source to the first state record item, and sending a response probe data packet to the router, the router adds the mobile state of the router to the first state record item according to the first status flag bit, and forwards the response to the client.
  • the client selects the first response probe data packet, and determines a revision value of the first expected distance according to the first state record item, generates a request interest packet, and sends a request interest packet to the router, according to the first expectation of the router.
  • the router updates the The revised value of the first desired distance is updated, and based on the updated value
  • the hop value forwards the request interest packet to a content source
  • the content source generates a response request data packet, and determines that the second mobile state record is valid according to the second status flag, and adds the mobile state of the content source to the second a status record item, and sending the response request data packet to the router, the router determining, according to the second status flag, that the second mobile status record is valid, adding the mobile state of the router to the second status record item, and
  • the client forwards the response request packet.
  • the revised value of the expected distance is updated by the router, that is, the hop value of the revised value of the expected distance is increased, and the request interest packet is repeatedly sent to the content source, so that the content source receives the request interest packet, and the content is effectively solved.
  • the source or router receives the request packet with a lower success rate.
  • the embodiment of the present invention provides a first network node 50.
  • the method includes: a first receiving unit 501, configured to receive a probe interest packet sent by a second network node, where the probe interest packet includes a content name.
  • the probe interest packet further includes a hop value, which is set to 0, and the hop value is used to indicate the number of times the probe interest packet is forwarded.
  • the current hop value is incremented by one. For example, when the probe interest packet is sent from the client to the first router, the hop value is incremented by 1, and then forwarded by the first router to the second router, and the hop value after adding 1 is further increased by one.
  • a first generating unit 502 configured to generate a response probe data packet according to the content name, where the response probe data packet includes the content name, a content source identifier, a first expected distance, and a first mobility state record, where the first The expected distance is the hop distance of the probe interest packet from the client to the first network node, and the first mobility state record includes a first state record item, where the first state record item is used for record forwarding
  • the response detects the mobile state of the data packet to each of the network nodes of the client.
  • the response probe packet may be generated based on the hop value of the probe interest packet.
  • the response probe packet may further include content corresponding to the content name.
  • the first adding unit 503 is configured to add a moving state of the first network node to the first state record item.
  • the first status record includes a mobile state of at least one network node, the mobile status including a moving speed of the network node and a moving direction of the network node.
  • a first sending unit 504 configured to send the response probe data packet to the second network node, so as to forward the response probe data packet to each network node of the client to add a mobile node's own mobile state to the Decoding a first status record and transmitting the response probe data packet to the client.
  • a second receiving unit 505 configured to receive a request interest packet sent by the second network node, where the request interest packet includes the content name, the content source identifier, and a revised value of the first expected distance, where The revised value of the first expected distance is determined by the client according to the first state record item in the response probe data packet and the first expected distance.
  • the requesting interest packet repeatedly sent by the second network node or the client may be received, where the request interest packet includes an update value, and the update value is the client update And an update value of the revised value of the expected distance; or receiving the request interest packet repeatedly sent by the second network node, where the request interest packet includes an update value, and the update value is the second network node update An updated value of the revised value of the first expected distance.
  • the first network node 50 further includes:
  • a second generating unit 506 configured to generate a response request data packet, where the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name, where the second expected distance is the request a hop count distance of the interest packet from the client to the first network node, the second mobile state record includes a second state record item, and the second state record item is used to record and forward the response request packet The mobile state of each network node to the client.
  • the first network node Receiving, by the first network node, the request interest packet sent by the second network node, parsing the request interest packet to obtain a content source identifier and a revised value of the first desired distance, when the content source identifier and the identifier of the first network node Similarly, the first network node generates a response request packet.
  • the second adding unit 507 is configured to add a moving state of the first network node to the second state record item.
  • the first network node effectively adds the mobile state of the first network node to the second state record according to the second mobility state record. It should be noted that, if the second mobile state record is invalid, the first network node does not have to add the mobile state of the first network node to the second state record entry.
  • a second sending unit 508, configured to send the response request data packet to the second network node, so as to forward the response request data packet to each network node of the client to add a mobile node's own mobile state to the Determining a second status record item and transmitting the response request data packet to the client.
  • the embodiment of the present invention provides a second network node 60, as shown in FIG. 9, including: a first receiving unit 601, configured to receive a response probe data packet returned by the first network node for the probe interest packet sent by the client, where
  • the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first movement status record, where the first expected distance is a hop of the probe interest packet from the client to the first network node
  • the first mobile status record includes a first status record item, and the first status record item is used to record a mobile state of each network node that forwards the response probe data packet to the client.
  • the first status record includes a mobile state of at least one network node, the mobile status including a moving speed of the network node and a moving direction of the network node.
  • the second network node before receiving the response probe data packet returned by the first network node for the probe interest packet sent by the client, receives the probe interest packet broadcast by the client to the at least one first network node, and queries the content. Whether the response packet of the content corresponding to the content name is stored in the cache table, and if the response packet of the content corresponding to the content name is not stored in the content cache table, whether the content source identifier of the content corresponding to the content name is stored in the query response table, if The content source identifier of the content corresponding to the content name is stored in the response table, and the first network node that is closest to the second network node in the distance table is queried, and then the PIT of the second network node records the probe interest packet, the first The second network node forwards the probe interest packet to the first network node, and the hop value of the probe interest packet is incremented by one.
  • the distance table stores a distance of a first network node that is closest to the second network node, and the distance is a hop distance of the second network node to the nearest first network node.
  • the second network node may first forward the probe interest packet to the other second network node, and forward the second network node to the first network node, or the second The network node forwards the probe interest packet directly to the first network node.
  • the second network node continues to broadcast the probe interest packet, and when the probe interest packet reaches the maximum hop value, discarding the probe interest packet .
  • the first adding unit 602 is configured to add a moving state of the second network node to the first state record item.
  • the first forwarding unit 603 is configured to forward the response probe data packet to the client.
  • the second receiving unit 604 is configured to receive the request interest packet sent by the client according to the response probe data packet, where the request interest packet includes the content name, the content source identifier, and the first expectation a revision value and a hop value of the distance, the hop value is used to indicate the number of times the request interest packet is forwarded, and the revision value of the first expected distance is the number of the client according to the response detection data packet.
  • a status record item and the first desired distance are determined.
  • the request interest packet repeatedly sent by the client may be received, where the request interest packet includes an update value, and the update value is an update value that updates a revision value of the first expected distance, and then And forwarding the request interest packet to the first network node according to the update value and the hop value.
  • the second forwarding unit 605 is configured to forward the request interest packet to the first network node according to the revised value of the first expected distance and the hop value.
  • the second network node receives the requested interest packet sent by the client, and the hop value is increased by one.
  • the second network node queries whether a response data packet corresponding to the content name is stored in the content cache table (CS), and if the content cache table does not store the response data packet corresponding to the content name, the query interest packet resident table (PIT) Whether the request interest packet is recorded, and if the interest packet resident table (PIT) does not record the request interest packet, whether the first network node identifier of the content corresponding to the content name is stored in the query response table, if the response table stores the The content name corresponds to the first network node identifier of the content, and the query distance table is The second network node is remote from the first network node, and forwards the request interest packet to the first network node according to the revised value and the hop value of the first expected distance. Specifically, if the interest packet resident table (PIT) records the request interest packet, the second network node discards the request interest packet.
  • the second forwarding unit 605 is specifically configured to:
  • the requesting interest packet is to the first network node.
  • the delay is forwarded to a predetermined length of time before the router forwards the request interest packet, that is, waiting for an extra time to forward the request interest packet.
  • the revision value of the first expected distance is a total hop value of the request interest packet from the client to the first network node, and the hop value is the number of times the interest packet has been forwarded, and the second network node is stored in the distance table. The distance from the first network node, the distance being the hop distance of the second network node to the nearest first network node.
  • the second network node forwards the request interest packet;
  • the hop value in the interest packet and the hop count distance of the second network node stored in the distance table to the first network node is greater than the revised value of the first expected distance, delaying forwarding the request interest packet, or discarding The request interest package.
  • the second network node adds the mobility state of the second network node to the state record item in the first mobility state record, so that the client detects the mobile node and the desired distance of the network node recorded in the data packet according to the response. Determining the revised value of the desired distance, thereby generating a request interest packet, so that the network node receives the request interest packet, effectively solving the problem that the content source or the router receives the request interest packet has a lower success rate.
  • the second network node 60 further includes:
  • the third receiving unit 606 is configured to receive the response request data packet sent by the first network node, where the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name.
  • the second expected distance is a hop distance of the request interest packet from the client to the first network node
  • the second mobile state record includes a second status record item, the second status record item And is used for recording a mobile state of each network node that forwards the response request packet to the client.
  • the second status record includes a mobile state of at least one network node, the mobile state including a moving speed of the network node and a moving direction of the network node, and the network node may be the second network node or the first network node.
  • the second adding unit 607 is configured to add a moving state of the second network node to the second state record item.
  • the third forwarding unit 608 is configured to forward the response request data packet to the client.
  • the second network node 60 further includes:
  • the updating unit 609 is configured to: if the response request packet sent by the first network node is not received in the first preset time period, update the revised value of the first expected distance to obtain an update value, where the request interest packet is The first preset time period is included.
  • the second network node Receiving, by the second network node, a request interest packet sent by the client, where the request interest packet includes a revision value and a hop value of the first expected distance, and the revival value and the hop according to the first expected distance at the second network node After forwarding the request interest packet to the first network node, updating the first desired distance when the response request data packet sent by the first network node is not received within the first preset time period
  • the revision value gets an updated value
  • the request interest package includes the first preset time period. It should be noted that, when another network node between the second network node and the first network node fails, the second network node may update the revised value of the first expected distance to obtain an updated value.
  • updating the revision value of the first desired distance results in an updated value, that is, the revision value of the first desired distance can be increased by one.
  • the revised value of the first expected distance is 4 hops
  • the revised value of the first expected distance can be increased by 1 hop
  • the revised value of the first expected distance is updated to obtain an updated value of 5 hops.
  • the second forwarding unit 605 is further configured to:
  • the embodiment of the present invention provides a client 70, as shown in FIG. 11, including: a first receiving unit 701, configured to receive, by the at least one network node, a response probe packet sent by the probe interest packet sent by the client. .
  • the client Before receiving the response probe data packet returned by the at least one network node for the probe interest packet sent by the client, the client sends a probe interest packet to the at least one network node, where the probe interest packet includes a content name.
  • the selecting unit 702 is configured to select a first response probe data packet from the received response probe data packet, where the first response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobile state record.
  • the first expected distance is a hop distance of the probe interest packet from the client to the first network node
  • the first mobile state record includes a first state record, the first state record
  • the item is used to record the movement status of each network node that forwards the first response probe data packet to the client.
  • the selecting unit 702 is specifically configured to:
  • the received response probe data packet is parsed, the first expected distance and the first mobile state record in the response probe data packet are selected according to the response, and the first response probe data packet is selected according to a selection rule.
  • the client parses the response probe data packet to obtain the information of the first expected distance and the first mobile state record, and then the client can according to the first expectation.
  • Distance first At least one of the mobile state record and the selection rule selects a response probe data packet, so that the client generates a request interest packet according to the response probe data packet, and the selection rule may be that the router that forwards the response probe data packet processes the response probe data packet.
  • the speed is either the first response probe packet received by the client.
  • the two response probe data packets are a first response probe data packet and a second response probe data packet, respectively, and the first response probe data packet is a client.
  • the response probe packet received first the second response probe packet is a response probe packet received by the client after receiving the first response probe packet, and the first response probe packet and The second response probe data packet is a response probe data packet in response to the probe interest packet sent by the client to the content source.
  • the second response is the first expectation in the probe packet
  • the distance between the content source and the client is 4 hops, and the client can select a response probe packet with a short hop distance according to the first desired distance, that is, the router can select to forward through less routers.
  • the first response probe packet generates a request interest packet.
  • the second response probe packet has the same hop distance from the content source to the client, and the client may check the first response probe packet recorded in the first mobile state record in the first response probe packet.
  • the mobile state of the network node and the mobile state of the network node that forwards the second response probe data packet recorded in the first mobile state record in the second response probe data packet, if the second response probe data packet is forwarded The mobile state of the network node is relatively stable compared to the mobile node that forwards the first response probe packet, that is, the network node that forwards the second response probe packet may be slower, and the first response probe is forwarded.
  • the network node of the data packet may move faster.
  • the client may select the second response probe data packet forwarded by the more stable router according to the first mobile state record to generate the request interest packet, where the network node may be a router or a content. source.
  • the second response probe packet has the same hop distance from the content source to the client, and the network node that forwards the first response probe packet recorded in the first mobility state record in the first response probe packet
  • the mobile state is the same as the mobile state of the network node that forwards the second response probe data packet recorded in the first mobile state record in the second response probe data packet, and the client may select to process the response probe data packet according to the selection rule.
  • the first response probe packet forwarded by the faster router generates the request interest packet.
  • the client selects the response probe packet to generate the request interest packet.
  • the response probe data packet may be a first response probe data packet, and the first response probe data packet may be forwarded by a minimum of network nodes, and the network node is relatively stable in response to the probe data packet.
  • the determining unit 703 is configured to determine a revised value of the first expected distance according to the first state record item and the first expected distance.
  • the first status record includes a mobile state of at least one network node, the mobile status including a moving speed of the network node and a moving direction of the network node.
  • a generating unit 704 configured to generate a request interest packet, where the request interest packet includes the content name, the content source identifier, a revised value of the first desired distance, and a hop value, where the hop value is used to indicate the The number of times the request packet was forwarded.
  • the sending unit 705 is configured to send the request interest packet to the at least one network node.
  • the client determines the revised value of the expected distance according to the moving state of the network node recorded in the response detection data packet and the expected distance, thereby generating the request interest packet, so that the network node receives the request interest packet, and effectively solves the content source.
  • the router receives the request request packet with a lower success rate.
  • the determining unit 703 is specifically configured to:
  • Determining a revised value of the first desired distance according to a moving state of the network section that forwards the first response probe data packet, and the first expected distance, where the revised value of the first expected distance is greater than, less than, or equal to The first desired distance is described.
  • the client 70 further includes:
  • the second receiving unit 706 is configured to receive a response request packet returned for the request packet.
  • the first response request data packet is selected, where the first response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name.
  • the second expected distance is a hop distance of the request interest packet from the client to the first network node
  • the second mobile state record includes a second status record, the second status record
  • the item is used to record the mobile state of each network node that forwards the response request packet to the client.
  • the client After the client receives the response request packet forwarded by at least one router, first, the client parses the response request packet to obtain the information of the desired distance and the mobile state record, and then the client can record at least according to the desired distance, the mobile state record, and at least Selecting a response request packet, so that the client generates a request interest packet according to the response request packet, where the router that forwards the response request packet processes the response request packet or the first time the client receives the packet The response to the request packet.
  • the two response request packets are a first response request packet and a second response request packet, respectively, and the first response request packet is a client.
  • the response request packet received first The second response request packet is a response request packet received by the client after receiving the first response request packet, and the first response request packet and the second response request packet are both
  • the request packet is in response to the response of the request interest packet sent by the client to the content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client is 3 hops
  • the second response requests the second expectation in the data packet
  • the distance of the second response request packet from the content source to the client is 4 hops, and the client can select a response request packet with a short hop distance according to the second desired distance, that is, the router can select to forward through less routers.
  • the first response request packet generates a request interest packet.
  • the second response request packet has the same hop distance from the content source to the client, and the client may check the forwarding of the first response request packet recorded in the second mobile status record in the first response request packet.
  • the mobile state of the network node and the mobile state of the network node that forwards the second response request packet recorded in the second mobile state record in the second response request packet if the second response request packet is forwarded.
  • the mobile state of the network node is relatively stable compared to the mobile node that forwards the first response request packet, that is, the network node that forwards the second response request packet may be slower, and the first response request data is forwarded.
  • the network node of the packet may move faster, and the client may select the stable according to the second mobile state record.
  • the second response request packet forwarded by the router generates a request interest packet, which may be a router or a content source.
  • the second response request packet has the same hop distance from the content source to the client, and the second response in the first response request packet a mobile node that forwards the first response request packet recorded in the state record and a network that forwards the second response request packet recorded in the second mobile state record in the second response request packet.
  • the moving state of the node is the same, and the client can select the first response request packet forwarded by the router that processes the response request packet with the selection rule to generate the request interest packet.
  • the client selects the response request packet to generate the request interest packet.
  • the response request data packet may be a first response request data packet, and the first response request data packet may be forwarded by a minimum network node, and the network node is relatively stable in response to the request data packet.
  • the client 70 further includes:
  • the updating unit 707 is configured to: if the response request packet returned for the request packet is not received within the first preset time period, update the revision value of the first expected distance to obtain an update value, where the request interest packet is The first preset time period is included.
  • the request interest package includes the first preset time period.
  • updating the revision value of the first desired distance results in an updated value, that is, the revision value of the first desired distance can be increased by one.
  • the revised value of the first expected distance is 3 hops
  • the revised value of the first expected distance can be increased by 1 hop
  • the revised value of the first expected distance is updated to obtain an updated value of 4 hops.
  • the sending unit 705 is further configured to:
  • the embodiment of the invention provides a transmission data system 80, as shown in FIG. Includes:
  • the at least one first network node 801, the at least one second network node 802, the client 803, the first network node 801, the second network node 802, and the client 803 perform message exchange by wireless, the first network node 801 It can be a router or a content source, and the second network node 802 can be a router.
  • a client 803 configured to receive a response probe data packet returned by the at least one network node for the probe interest packet sent by the client, and select a first response probe data packet from the received response probe data packet, where the first
  • the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first movement status record, where the first expected distance is a hop count of the probe interest packet from the client to the first network node
  • the first movement state record includes a first state record item, where the first state record item is used to record a movement state of each network node that forwards the first response probe data packet to the client; Determining, by the first state record item and the first expected distance, a revision value of the first desired distance; generating a request interest package, where the request interest package includes the content name, the content source identifier, the first a revision value and a hop value of the desired distance, the hop value being used to indicate the number of times the request interest packet is forwarded; to at least one network node Send the
  • a second network node 802 configured to receive a response probe data packet returned by the first network node for the probe interest packet sent by the client, where the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first move a status record, the first expected distance is a hop distance of the probe interest packet from the client to the first network node, and the first mobile state record includes a first status record, the first a status record item is configured to record a mobile state of each network node that forwards the response probe data packet to the client; add a mobile state of the second network node to the first status record item; to the client Forwarding the response probe data packet; receiving the request interest packet sent by the client according to the response probe data packet, where the request interest packet includes the content name, the content source identifier, and the first expectation Revised value of distance And a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded, and the revised value of the first expected distance is that the client records the first state
  • a first network node 801 configured to receive a probe interest packet sent by the second network node, where the probe interest packet includes a content name, and generate a response probe data packet according to the content name, where the response probe data packet includes the content name a content source identifier, a first desired distance, and a first mobile state record, where the first expected distance is a hop distance of the probe interest packet from the client to the first network node, the first move
  • the status record includes a first status record item, where the first status record item is used to record the mobile state of each network node that forwards the response probe data packet to the client; and add the mobile state of the first network node to Transmitting the response probe data packet to the second network node, so as to forward the response probe data packet to each network node of the client to add a mobile node's own mobile state to the location Determining a first status record item, and sending the response probe data packet to the client; receiving the second network node to send
  • the request interest package includes the content name, the content source
  • the embodiment of the present invention provides a first network node 90, as shown in FIG. 14, which includes:
  • the receiver 901 is configured to receive a probe interest packet sent by the second network node, where the probe interest packet includes a content name.
  • the probe interest packet further includes a hop value, which is set to 0, and the hop value is used to indicate the number of times the probe interest packet is forwarded.
  • the current hop value is incremented by one. For example, when the probe interest packet is sent from the client to the first road By the device, the hop value is incremented by 1, and then the first router forwards to the second router, and the hop value after adding 1 is further increased by one.
  • the memory 902 is configured to store program code.
  • the processor 903 is configured to invoke the program code stored by the memory 902 to perform the following method: generating a response probe data packet according to the content name, where the response probe data packet includes the content name, a content source identifier, and a first desired distance And the first mobile state record, the first expected distance is a hop distance of the probe interest packet from the client to the first network node, and the first mobile state record includes a first state record entry, The first status record is used to record a mobile state of each network node that forwards the response probe data packet to the client.
  • the response probe packet may be generated based on the hop value of the probe interest packet.
  • the response probe packet may further include content corresponding to the content name.
  • the method performed by the processor 903 further includes:
  • the first status record includes a mobile state of at least one network node, the mobile status including a moving speed of the network node and a moving direction of the network node.
  • the transmitter 904 is configured to send the response probe data packet to the second network node, so as to forward the response probe data packet to each network node of the client to add a mobility state of the network node itself to the first A status record entry, and the response probe data packet is sent to the client.
  • the receiver 901 is also used to:
  • the second network node And receiving, by the second network node, the request interest packet, where the request interest package includes the content name, the content source identifier, and a revised value of the first desired distance, where the first desired distance is The revision value is determined by the client according to the first state record item in the response probe data packet and the first expected distance.
  • the mobile node is recorded in the response probe packet in response to the probe interest packet, so that the client detects the network recorded in the data packet according to the response.
  • the moving state of the network node and the expected distance determine a revised value of the desired distance, thereby generating a request interest packet, so that the network node receives the request interest packet, which effectively solves the problem that the content source or the router receives the request packet low success rate.
  • the receiver may further receive the request interest packet repeatedly sent by the second network node or the client, where the request interest packet includes an update value, and the update value is the client update station. An update value of the revised value of the first expected distance; receiving the request interest packet repeatedly sent by the second network node, the request interest packet includes an update value, and the update value is the second network node update An updated value of the revised value of the first expected distance.
  • the method performed by the processor 903 further includes:
  • the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name, where the second expected distance is the request interest packet from the client to a hop count distance of the first network node
  • the second mobility state record includes a second state record item, where the second state record item is used to record and forward the response request data packet to each network of the client The moving state of the node.
  • the first network node Receiving, by the first network node, the request interest packet sent by the second network node, parsing the request interest packet to obtain a content source identifier and a revised value of the first desired distance, when the content source identifier and the identifier of the first network node Similarly, the first network node generates a response request packet.
  • the method performed by the processor 903 further includes:
  • the first network node adds the movement state of the first network node to the second state record item according to the second movement state record. It should be noted that, if the second mobile state record is invalid, the first network node does not have to add the mobile state of the first network node to the second state record entry.
  • the transmitter 904 is also used to: Sending the response request data packet to the second network node, so as to forward the response request data packet to each network node of the client, adding a mobile node's own mobile state to the second status record item, and Sending the response request packet to the client.
  • the embodiment of the present invention provides a second network node 100, as shown in FIG. 15, which includes:
  • the receiver 1001 is configured to receive a response probe data packet returned by the first network node for the probe interest packet sent by the client, where the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobile state record.
  • the first expected distance is a hop distance of the probe interest packet from the client to the first network node
  • the first mobile state record includes a first state record, the first state record
  • the item is used to record the movement status of each network node that forwards the response probe data packet to the client.
  • the first status record includes a mobile state of at least one network node, the mobile status including a moving speed of the network node and a moving direction of the network node.
  • the second network node before receiving the response probe data packet returned by the first network node for the probe interest packet sent by the client, receives the probe interest packet broadcast by the client to the at least one first network node. Querying whether the response data packet of the content corresponding to the content name is stored in the content cache table. If the content cache table does not store the response data packet corresponding to the content corresponding to the content name, whether the content source identifier of the content corresponding to the content name is stored in the query response table If the content source identifier of the content corresponding to the content name is stored in the response table, query the first network node in the distance table that is closest to the second network node, and then the PIT of the second network node records the probe interest packet.
  • the second network node forwards the probe interest packet to the first network node, and the hop value of the probe interest packet is incremented by one.
  • the distance table stores a distance of a first network node that is closest to the second network node, and the distance is a hop distance of the second network node to the nearest first network node.
  • the second network node may forward the probe to other second network nodes first
  • the interest packet is forwarded by the other second network node to the first network node, or the second network node directly forwards the probe interest packet to the first network node.
  • the second network node continues to broadcast the probe interest packet, and when the probe interest packet reaches the maximum hop value, discarding the probe interest packet .
  • the memory 1002 is configured to store program code.
  • the processor 1003 is configured to invoke the program code stored by the memory 1002 to perform the following method: adding a moving state of the second network node to the first state record item;
  • the transmitter 1004 is configured to forward the response probe data packet to the client; the receiver 1001 is further configured to:
  • the request interest packet sent according to the response probe data packet, where the request interest packet includes the content name, the content source identifier, a revised value of the first desired distance, and a hop value.
  • the hop value is used to indicate the number of times the request interest packet is forwarded, and the revised value of the first expected distance is that the client records the first state record item in the response probe data packet according to the A desired distance is determined.
  • the receiver may further receive the request interest packet that is repeatedly sent by the client, where the request interest packet includes an update value, and the update value is an update value that updates a revision value of the first expected distance. .
  • the transmitter 1004 is also used to:
  • the second network node receives the requested interest packet sent by the client, and the hop value is increased by one.
  • the second network node queries whether a response data packet corresponding to the content name is stored in the content cache table (CS), and if the content cache table does not store the response data packet corresponding to the content name, the query interest packet resident table (PIT) Whether the request was recorded
  • the interest packet if the interest packet residency table (PIT) does not record the request interest packet, whether the first network node identifier of the content corresponding to the content name is stored in the query response table, and if the response table stores the content corresponding to the content name
  • identifying, by the first network node, a first network node that is closest to the second network node in the distance table and forwarding the request interest packet to the first network node according to the revised value and the hop value of the first expected distance.
  • the request interest packet includes the content name, the first network node identifier, the revision value of the first desired distance, and a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded. Specifically, if the interest packet resident table (PIT) records the request interest packet, the second network node discards the request interest packet.
  • PIT interest packet resident table
  • the transmitter 1004 is specifically configured to:
  • the requesting interest packet is to the first network node.
  • the delay is forwarded to a predetermined length of time before the router forwards the request interest packet, that is, waiting for an extra time to forward the request interest packet.
  • the revision value of the first expected distance is a total hop value of the request interest packet from the client to the first network node, and the hop value is the number of times the interest packet has been forwarded, and the second network node is stored in the distance table. The distance from the first network node, the distance being the hop distance of the second network node to the nearest first network node.
  • the second network node forwards the request interest packet;
  • the second network node adds the mobility state of the second network node to the state record item in the first mobility state record, so that the client detects the mobile node and the desired distance of the network node recorded in the data packet according to the response. Determining the revised value of the desired distance, thereby generating a request interest packet, so that the network node receives the request interest packet, effectively solving the problem that the content source or the router receives the request interest packet has a lower success rate.
  • the receiver 1001 is also used to:
  • the response request data packet includes a second expected distance, a second mobile state record, and content corresponding to the content name, where the second expected distance is Determining a hop distance of the interest packet from the client to the first network node, the second mobility state record includes a second status record item, where the second status record item is used to record and forward the response request The mobile state of the packet to each of the network nodes of the client.
  • the second status record includes a mobile state of at least one network node, the mobile state including a moving speed of the network node and a moving direction of the network node, and the network node may be the second network node or the first network node.
  • the method performed by the processor 1003 further includes:
  • the second network node adds the movement state of the second network node to the second state record item according to the second movement state record. It should be noted that, if the second mobile state record is invalid, the second network node does not have to add the mobile state of the second network node to the second state record entry.
  • the transmitter 1004 is also used to:
  • the method performed by the processor 1003 further includes:
  • the transmitter 1004 is also used to:
  • the second network node Receiving, by the second network node, a request interest packet sent by the client, where the request interest packet includes a revision value and a hop value of the first expected distance, and the revival value and the hop according to the first expected distance at the second network node After forwarding the request interest packet to the first network node, updating the first desired distance when the response request data packet sent by the first network node is not received within the second preset time period
  • the revision value gets an updated value
  • the request interest packet includes the second preset time period. It should be noted that, when another second network node between the second network node and the first network node fails, the second network node may update the revision of the first expected distance to an updated value.
  • the embodiment of the present invention provides a client 1 10 , as shown in FIG. 16 , including: a receiver 1 101 , configured to receive, by the at least one network node, a response probe data packet sent by the probe interest packet sent by the client.
  • the memory 1 102 is configured to store program code.
  • the processor 1 103 the program code for calling the memory storage performs the following method:
  • the first response probe data packet includes a content name, a content source identifier, a first expected distance, and a first mobility state record
  • the first expectation The distance is the hop distance of the probe interest packet from the client to the first network node
  • the first mobile state record includes a first state record item
  • the first state record entry is used for record forwarding A response to the mobile state of the probe packet to each of the network nodes of the client.
  • the moving state in the status record item includes the moving speed and moving direction of the network node.
  • the client After the client receives the response probe data packet forwarded by the at least one router, first, the client parses the response probe data packet to obtain the information of the first expected distance and the first mobile state record, and then the client may according to the first desired distance, At least one of the first mobile state record and the selection rule selects a response probe data packet, so that the client generates a request interest packet according to the response probe data packet, and the selection rule may be that the router that forwards the response probe data packet processes the response probe data packet. The speed of the packet is either the first response probe packet received by the client.
  • the two response probe data packets are a first response probe data packet and a second response probe data packet, respectively, and the first response probe data packet is a client.
  • the response probe packet received first the second response probe packet is a response probe packet received by the client after receiving the first response probe packet, and the first response probe packet and The second response probe data packet is a response probe data packet in response to the probe interest packet sent by the client to the content source.
  • the second response is the first expectation in the probe packet
  • the distance between the content source and the client is 4 hops, and the client can select a response probe packet with a short hop distance according to the first desired distance, that is, the router can select to forward through less routers.
  • the first response probe packet generates a request interest packet.
  • the second response probe packet has the same hop distance from the content source to the client, and the client may check the first response probe packet recorded in the first mobile state record in the first response probe packet.
  • the internet a moving state of the node and a moving state of the network node that forwards the second response probe packet recorded in the first mobile state record in the second response probe packet, if forwarding the second network that responds to the probe packet
  • the moving state of the node is relatively stable compared to the state of the network node that forwards the first response probe packet, that is, the network node that forwards the second response probe packet may move at a slower speed, and forwards the first response probe packet.
  • the network node may move faster.
  • the client may select a second response probe packet forwarded by a more stable router according to the first mobility state record to generate a request interest packet, where the network node may be a router or a content source.
  • the second response probe packet has the same hop distance from the content source to the client, and the network node that forwards the first response probe packet recorded in the first mobility state record in the first response probe packet
  • the mobile state is the same as the mobile state of the network node that forwards the second response probe data packet recorded in the first mobile state record in the second response probe data packet, and the client may select to process the response probe data packet according to the selection rule.
  • the first response probe packet forwarded by the faster router generates the request interest packet.
  • the client selects the response probe packet to generate the request interest packet.
  • the response probe data packet may be a first response probe data packet, and the first response probe data packet may be forwarded by a minimum of network nodes, and the network node is relatively stable in response to the probe data packet.
  • the method performed by the processor 1 103 further includes:
  • a revised value of the first desired distance is determined based on the first state record item and the first desired distance.
  • the first state record item includes a mobile state of at least one network node,
  • the mobility state includes the moving speed of the network node and the moving direction of the network node.
  • request interest packet includes the content name, the content source identifier, the revision value of the first desired distance, and a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded .
  • the transmitter 1 104 is configured to send the request interest packet to at least one network node.
  • the client determines the revised value of the expected distance according to the moving state of the network node recorded in the response detection data packet and the expected distance, thereby generating the request interest packet, so that the network node receives the request interest packet, and effectively solves the content source. Or the router receives the request request packet with a lower success rate.
  • the method performed by the processor 1 103 includes:
  • Determining a revised value of the first desired distance according to a moving state of the network section that forwards the first response probe data packet, and the first expected distance, where the revised value of the first expected distance is greater than, less than, or equal to The first desired distance is described.
  • the method performed by the processor 1 103 includes:
  • the received response probe data packet is parsed, the first expected distance and the first mobile state record in the response probe data packet are selected according to the response, and the first response probe data packet is selected according to a selection rule.
  • the receiver 1 101 is also used to:
  • a response request packet returned for the request packet is received.
  • the first response request data packet is selected, where the first response request data packet includes the content name, the content source identifier, the second desired distance, the second mobile state record, and the content corresponding to the content name.
  • the second expected distance is a hop distance of the request interest packet from the client to the first network node
  • the second mobile state record includes a status identifier bit and a status record item, where the status flag is The bit is used to indicate the validity of the second mobile state record, and the status record is used to record the mobile state of each network node that forwards the first response request packet to the client.
  • the client After the client receives the response request packet forwarded by the at least one router, first, the client parses the response request packet to obtain the information of the second expected distance and the second mobile state record, and then the client may according to the second desired distance, At least one of the second mobile state record and the selection rule selects a response request packet, so that the client generates a request interest packet according to the response request packet, and the selection rule may be that the router that forwards the response request packet processes the response request data.
  • the speed of the packet is either the first response request packet received by the client.
  • the two response request packets are a first response request packet and a second response request packet, respectively, and the first response request packet is a client.
  • the second response request packet being a response request packet received by the client after receiving the first response request packet, the first response request packet and
  • the second response request data packet is a response request data packet in response to the request interest packet sent by the client to the content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client is 3 hops
  • the second response requests the second expectation in the data packet
  • the distance of the second response request packet from the content source to the client is 4 hops, and the client can select a response request packet with a short hop distance according to the second desired distance, that is, the router can select to forward through less routers.
  • the first response request packet generates a request interest packet.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client and the second expected distance in the second response request packet
  • the second response request packet has the same hop distance from the content source to the client, and the client may check the forwarding of the first response request packet recorded in the second mobile status record in the first response request packet.
  • the mobile state of the network node and the mobile state of the network node that forwards the second response request packet recorded in the second mobile state record in the second response request packet if The mobile node of the network node that forwards the second response request packet is more stable than the network node that forwards the first response request packet, that is, the moving speed of the network node that forwards the second response request packet may be slower.
  • the network node that forwards the first response request packet may move faster, and the client may select the second response request packet forwarded by the more stable router according to the second mobility state record to generate the request interest packet.
  • the network node can be a router or a content source.
  • the second expected distance in the first response request packet records the hop count distance of the first response request packet from the content source to the client and the second expected distance in the second response request packet
  • the second response request packet has the same hop distance from the content source to the client, and the network node that forwards the first response request packet recorded in the second mobile state record in the first response request packet
  • the mobile state is the same as the mobile state of the network node that forwards the second response request packet recorded in the second mobile state record in the second response request packet, and the client may select to process the response request packet according to the selection rule.
  • the first response request packet forwarded by the faster router generates the request interest packet.
  • the client selects the response request packet to generate the request interest packet.
  • the response request data packet may be a first response request data packet, and the first response request data packet may be forwarded by a minimum network node, and the network node is relatively stable in response to the request data packet.
  • the method performed by the processor 1 103 further includes:
  • the client sends the request interest packet to the at least one network node, when the response request packet sent by the at least one network node is not received within the first preset time period And updating the revised value of the first expected distance to obtain an updated value, where the request interest package includes the first preset time period.
  • updating the revision value of the first desired distance results in an updated value, that is, the revision value of the first desired distance can be increased by one.
  • the revised value of the first expected distance is 3 hops
  • the revised value of the first expected distance can be increased by 1 hop
  • the revised value of the first expected distance is updated to obtain an updated value of 4 hops.
  • the transmitter 1 104 is also used to:
  • the embodiment of the present invention provides a transmission data system 120, as shown in FIG. 17, which includes:
  • the node 1201 may be a content source or a router
  • the second network node 1202 may be a router
  • the client 1203 is configured to receive a response probe data packet returned by the at least one network node for the probe interest packet sent by the client.
  • a second network node 1202 configured to receive a response probe data packet returned by the first network node for the probe interest packet sent by the client, where the response probe data packet includes a content name, a content source identifier, a first expected distance, and a first move a status record, the first expected distance is a hop distance of the probe interest packet from the client to the first network node, and the first mobile state record includes a first status record, the first a status record item is configured to record a mobile state of each network node that forwards the response probe data packet to the client; add a mobile state of the second network node to the first status record item; to the client Forwarding the response probe data packet; receiving the request interest packet sent by the client according to the response probe data packet, where the request interest packet includes the content name, the content source identifier, and the first expectation a revised value of the distance and a hop value, where the hop value is used to indicate the number of times the request interest packet is forwarded, and the revised value of the first expected distance is Determining, according
  • a first network node 1201 configured to receive a probe interest packet sent by the second network node, where the probe interest packet includes a content name, and generate a response probe data packet according to the content name, where the response probe data packet includes the content name a content source identifier, a first desired distance, and a first mobile state record, where the first expected distance is a hop distance of the probe interest packet from the client to the first network node, the first move
  • the status record includes a first status record item, where the first status record item is used to record the mobile state of each network node that forwards the response probe data packet to the client; and add the mobile state of the first network node to Transmitting the response probe data packet to the second network node, so as to forward the response probe data packet to each network node of the client to add a mobile node's own mobile state to the location Determining a first status record item, and sending the response probe data packet to the client; receiving a request sent by the second network node Interest packet, the request packet includes the interest a
  • the client sends a probe interest packet to the content source through the router, and the content source generates a response probe data packet according to the content name included in the probe interest packet, and adds the mobile state of the content source to a status record item, and then sending a response probe data packet to the router, the router adds the mobile state of the router to the first status record item, and forwards the response probe data packet to the client, and then the client selects the first response probe data packet, and then the client selects the first response probe data packet, and Determining a revised value of the first expected distance according to the first state record item and the first expected distance, generating a request interest packet, sending a request interest packet to the router, and the router forwarding the request interest packet according to the revised value and the hop value of the first expected distance
  • the content source generates a response request packet, adds the mobile state of the content source to the second state record item, and then sends the response request packet to the router to add the
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the client may select the first response request packet.
  • the record item determines a revised value of the expected distance, thereby generating a request interest packet, and sending the request interest packet to the at least one network node, so that the network node receives the request interest packet, effectively solving the problem that the existing route forwarding does not adapt to the network node movement.
  • the problem of large network load, large transmission delay and low success rate effectively improves the success rate of content source or router receiving request interest packets, reduces unnecessary path broadcast, reduces network load, and saves energy of network nodes.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, and 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 embodiment of the present embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included 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 hardware plus software functional units.

Landscapes

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

Abstract

一种传输数据的方法、装置及系统,涉及通信领域,能够有效提高内容源或路由器接收请求兴趣包成功率。包括:接收探测兴趣包,根据内容名生成响应探测数据包,添加第一网络节点(50)的移动状态到状态记录项;向第二网络节点(60)发送响应探测数据包,以便于第二网络节点(60)添加第二网络节点(60)的移动状态到第一状态记录项,向客户端(70)发送响应探测数据包,以便于客户端(70)根据第一状态记录项以及第一期望距离确定第一期望距离的修订值,生成请求兴趣包,向至少一个网络节点发送请求兴趣包;接收第二网络节点(60)发送的请求兴趣包。该传输数据的方法、装置及系统用于传输数据。

Description

一种传输数据的方法、 装置及系统 技术领域
本发明涉及通信领域, 尤其涉及一种传输数据的方法、 装置及 系统。
背景技术
ICN(Information Centric Network , 信息中心网络)是一种以内 容和服务为核心, 为客户端提供内容和服务的未来互联网, 主要用 于产生、 传播和共享网络新闻、 搜索引擎, 网络音乐、 网络视频、 微博、 社交网站或网络论坛等内容。 ICN 包括客户端和网络节点, 客户端和网络节点可以是工作站、 个人计算机、 服务器等设备。 所 述网络节点可以是内容源或路由器, 所述客户端用于向网络节点请 求内容, 所述内容源用于产生内容, 所述路由器用于路由、 转发和 緩存内容。 其中, 当路由器之间通过有线连接传输数据时, 路由器 设置有 C S ( Content Store , 内容緩存) 表、 PIT ( Pending Interest Table , 兴趣包驻留表) 和 FIB ( Forwarding Information Base , 转发 信息库)表, 当路由器之间通过无线传输数据时, 路由器设置有 CS 表、 ΡΙΤ、 响应表和距离表。 所述 C S表用于緩存转发过的响应数据 包, 以便于客户端从该路由器获取内容, 所述 PIT 用于记录已经转 发的探测兴趣包和请求兴趣包, 以便于响应探测兴趣包的响应数据 包或响应请求兴趣包的响应数据包返回到客户端, 所述响应表用于 记录能够提供内容的内容源标识, 所述距离表用于记录内容源标识 与路由器之间的距离关系, 所述响应表和所述距离表实现了 FIB表 的功能。 所述探测兴趣包用于探测客户端从网络节点获取内容的路 径, 所述请求兴趣包用于客户端向网络节点请求内容。
现有技术中, 客户端可以先向路由器广播探测兴趣包, 所述探 测兴趣包包括内容名, 当路由器接收到该探测兴趣包后, 查询 CS 表中是否存储有内容名对应内容的响应数据包, 若 CS 表中存储有 内容名对应内容的响应数据包, 艮据 PIT 向客户端返回响应数据 包, 所述响应数据包包括内容源标识和期望距离; 若 CS 表中没有 存储内容名对应内容的响应数据包, 查询响应表中是否存储有该内 容名对应内容的内容源标识, 若响应表中没有存储该内容名对应内 容的内容源标识, 该路由器继续广播该探测兴趣包, 若响应表中存 储有该内容名对应内容的内容源标识, 则查询距离表中与该路由器 距离最近的内容源, 向所述客户端发送响应数据包, 所述响应数据 包包括内容源标识、 期望距离, 同时该路由器继续转发该探测兴趣 包, 直到内容源接收到该探测兴趣包后设置期望距离, 并向客户端 返回响应数据包, 或者当探测兴趣包达到最大传输跳数值时, 丟弃 该探测兴趣包。 当客户端接收到响应数据包后, 可以根据内容源标 识、 期望距离和跳数值生成请求兴趣包, 再向路由器广播请求兴趣 包, 可以从路由器中获取内容或者经过路由器转发从内容源获取内 容。
但是, ICN 中的客户端、 内容源和路由器之间可以通过无线传 输探测兴趣包、 请求兴趣包和响应数据包, 客户端、 内容源或路由 器可能处于移动状态, 当客户端根据响应数据包向路由器广播请求 兴趣包获取内容时, ICN 的网络拓朴可能已经改变, 请求兴趣包可 能无法到达内容源或路由器, 则出现了 内容源或路由器接收请求兴 趣包成功率较低的问题。
发明内容
本发明的实施例提供一种传输数据的方法、 装置及系统, 解决 了内容源或路由器接收请求兴趣包成功率较低的问题。
为达到上述目 的, 本发明的实施例采用如下技术方案: 第一方面, 提供一种传输数据的方法, 应用于第一网络节点, 包括:
接收第二网络节点发送的探测兴趣包, 所述探测兴趣包包括内 容名;
根据所述内容名生成响应探测数据包, 所述响应探测数据包包 括所述内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包从所述客户端到所述第一网络 节点的跳数距离, 所述第一移动状态记录包括第一状态记录项, 所 述第一状态记录项用于记录转发所述响应探测数据包到所述客户端 的每个网络节点的移动状态;
添加所述第一网络节点的移动状态到所述第一状态记录项; 向所述第二网络节点发送所述响应探测数据包, 以便于转发所 述响应探测数据包到所述客户端的每个网络节点添加网络节点自身 的移动状态到所述第一状态记录项, 并向所述客户端发送所述响应 探测数据包;
接收所述第二网络节点发送的请求兴趣包, 所述请求兴趣包中 包括所述内容名、 所述内容源标识、 所述第一期望距离的修订值, 所述第一期望距离的修订值是所述客户端根据所述响应探测数据包 中的所述第一状态记录项以及所述第一期望距离确定的。
结合第一方面, 在第一种可实现方式中, 在所述接收所述第二 网络节点发送的请求兴趣包之后, 所述方法还包括:
生成响应请求数据包, 所述响应请求数据包包括第二期望距 离、 第二移动状态记录和所述内容名对应的内容, 所述第二期望距 离为所述请求兴趣包从所述客户端到所述第一网络节点的跳数距 离, 所述第二移动状态记录包括第二状态记录项, 所述第二状态记 录项用于记录转发所述响应请求数据包到所述客户端的每个网络节 点的移动状态;
添加所述第一网络节点的移动状态到所述第二状态记录项; 向所述第二网络节点发送所述响应请求数据包, 以便于转发所 述响应请求数据包到所述客户端的每个网络节点添加网络节点自身 的移动状态到所述第二状态记录项, 并向所述客户端发送所述响应 请求数据包。
结合第一方面至第一种可实现方式中的任意一个, 在第二种可 实现方式中, 所述移动状态包括网络节点的移动速度和移动方向。
第二方面, 提供一种传输数据的方法, 应用于第二网络节点, 包括:
接收第一网络节点针对客户端发送的探测兴趣包返回的响应探 测数据包, 所述响应探测数据包包括内容名、 内容源标识、 第一期 望距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包 从所述客户端到所述第一网络节点的跳数距离, 所述第一移动状态 记录包括第一状态记录项, 所述第一状态记录项用于记录转发所述 响应探测数据包到所述客户端的每个网络节点的移动状态;
添加所述第二网络节点的移动状态到所述第一状态记录项; 向所述客户端转发所述响应探测数据包;
接收所述客户端根据所述响应探测数据包发送的所述请求兴趣 包, 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一 期望距离的修订值和跳数值, 所述跳数值用于指示所述请求兴趣包 的转发次数, 所述第一期望距离的修订值是所述客户端根据所述响 应探测数据包中的所述第一状态记录项以及所述第一期望距离确定 的;
根据所述第一期望距离的修订值和所述跳数值转发所述请求兴 趣包至所述第一网络节点。
结合第二方面, 在第一种可实现方式中, 所述根据所述第一期 望距离的修订值和所述跳数值转发所述请求兴趣包至所述第一网络 节点, 包括: 若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和小于等于所述第一期望距离的修订 值, 转发所述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和大于所述第一期望距离的修订值, 延 时预设时长后转发所述请求兴趣包至所述第一网络节点。
结合第二方面或第一种可实现方式, 在第二种可实现方式中, 在所述根据所述第一期望距离的修订值和所述跳数值转发所述请求 兴趣包至所述第一网络节点之后, 所述方法还包括:
接收所述第一网络节点发送的所述响应请求数据包, 所述响应 请求数据包包括第二期望距离、 第二移动状态记录和所述内容名对 应的内容, 所述第二期望距离为所述请求兴趣包从所述客户端到所 述第一网络节点的跳数距离, 所述第二移动状态记录包括第二状态 记录项, 所述第二状态记录项用于记录转发所述响应请求数据包到 所述客户端的每个网络节点的移动状态;
添加所述第二网络节点的移动状态到所述第二状态记录项; 向所述客户端转发所述响应请求数据包。
结合第二方面或第一种可实现方式, 在第三种可实现方式中, 在所述根据所述第一期望距离的修订值和所述跳数值转发所述请求 兴趣包至所述第一网络节点之后, 所述方法还包括:
若在第一预设时间段内没有接收到所述第一网络节点发送的响 应请求数据包, 更新所述第一期望距离的修订值得到更新值, 所述 请求兴趣包包括所述第一预设时间段;
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一 网络节点, 所述请求兴趣包包括更新值。
结合第二方面或者第一种可实现方式至第三种可实现方式中任 意一个, 在第四种可实现方式中, 所述移动状态包括网络节点的移 动速度和移动方向。
第三方面, 提供一种传输数据的方法, 应用于客户端, 包括: 接收至少一个网络节点针对所述客户端发送的探测兴趣包返回 的响应探测数据包;
从所述接收的响应探测数据包中选择第一响应探测数据包, 所 述第一响应探测数据包包括内容名、 内容源标识、 第一期望距离和 第一移动状态记录, 所述第一期望距离为所述探测兴趣包从所述客 户端到所述第一网络节点的跳数距离, 所述第一移动状态记录包括 第一状态记录项, 所述第一状态记录项用于记录转发所述第一响应 探测数据包到所述客户端的每个网络节点的移动状态;
根据所述第一状态记录项以及所述第一期望距离确定所述第一 期望距离的修订值;
生成请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容 源标识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于指 示所述请求兴趣包的转发次数;
向至少一个网络节点发送所述请求兴趣包。
结合第三方面, 在第一种可实现方式中, 所述根据所述状态记 录项确定所述第一期望距离的修订值包括:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及 所述第一期望距离确定所述第一期望距离的修订值, 所述第一期望 距离的修订值大于、 小于或等于所述第一期望距离。
结合第三方面或第一种可实现方式, 在第二种可实现方式中, 所述从所述接收的响应探测数据包中选择第一响应探测数据包, 包 括:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第 一响应探测数据包。 结合第二种可实现方式, 在第三种可实现方式中, 在所述向至 少一个网络节点发送所述请求兴趣包之后, 所述方法还包括:
接收针对所述请求数据包返回的响应请求数据包。
结合第三方面或第二种可实现方式, 在第四种可实现方式中, 在所述向至少一个网络节点发送所述请求兴趣包之后, 所述方法还 包括:
若在第一预设时间段内没有接收到针对所述请求数据包返回的 响应请求数据包, 更新所述第一期望距离的修订值得到更新值, 所 述请求兴趣包包括所述第一预设时间段;
向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述 更新后的请求兴趣包包括所述更新值。
结合第三方面或者第一种可实现方式至第四种可实现方式中任 意一个, 在第五种可实现方式中, 所述移动状态包括网络节点的移 动速度和移动方向。
第四方面, 提供一种第一网络节点, 包括:
第一接收单元, 用于接收第二网络节点发送的探测兴趣包, 所 述探测兴趣包包括内容名;
第一生成单元, 用于根据所述内容名生成响应探测数据包, 所 述响应探测数据包包括所述内容名、 内容源标识、 第一期望距离和 第一移动状态记录, 所述第一期望距离为所述探测兴趣包从所述客 户端到所述第一网络节点的跳数距离, 所述第一移动状态记录包括 第一状态记录项, 所述第一状态记录项用于记录转发所述响应探测 数据包到所述客户端的每个网络节点的移动状态;
第一添加单元, 用于添加所述第一网络节点的移动状态到所述 第一状态记录项;
第一发送单元, 用于向所述第二网络节点发送所述响应探测数 据包, 以便于转发所述响应探测数据包到所述客户端的每个网络节 点添加网络节点自身的移动状态到所述第一状态记录项, 并向所述 客户端发送所述响应探测数据包;
第二接收单元, 用于接收所述第二网络节点发送的请求兴趣 包, 所述请求兴趣包中包括所述内容名、 所述内容源标识、 所述第 一期望距离的修订值, 所述第一期望距离的修订值是所述客户端根 据所述响应探测数据包中的所述第一状态记录项以及所述第一期望 距离确定的。
结合第四方面, 在第一种可实现方式中, 所述第一网络节点还 包括:
第二生成单元, 用于生成响应请求数据包, 所述响应请求数据 包包括第二期望距离、 第二移动状态记录和所述内容名对应的内 容, 所述第二期望距离为所述请求兴趣包从所述客户端到所述第一 网络节点的跳数距离, 所述第二移动状态记录包括第二状态记录 项, 所述第二状态记录项用于记录转发所述响应请求数据包到所述 客户端的每个网络节点的移动状态;
第二添加单元, 用于添加所述第一网络节点的移动状态到所述 第二状态记录项;
第二发送单元, 用于向所述第二网络节点发送所述响应请求数 据包, 以便于转发所述响应请求数据包到所述客户端的每个网络节 点添加网络节点自身的移动状态到所述第二状态记录项, 并向所述 客户端发送所述响应请求数据包。
结合第四方面至第一种可实现方式中的任意一个, 在第二种可 实现方式中, 所述移动状态包括网络节点的移动速度和移动方向。
第五方面, 提供一种第二网络节点, 包括:
第一接收单元, 用于接收第一网络节点针对客户端发送的探测 兴趣包返回的响应探测数据包, 所述响应探测数据包包括内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期望距 离为所述探测兴趣包从所述客户端到所述第一网络节点的跳数距 离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态记 录项用于记录转发所述响应探测数据包到所述客户端的每个网络节 点的移动状态;
第一添加单元, 用于添加所述第二网络节点的移动状态到所述 第一状态记录项;
第一转发单元, 用于向所述客户端转发所述响应探测数据包; 第二接收单元, 用于接收所述客户端根据所述响应探测数据包 发送的所述请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内 容源标识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于 指示所述请求兴趣包的转发次数, 所述第一期望距离的修订值是所 述客户端根据所述响应探测数据包中的所述第一状态记录项以及所 述第一期望距离确定的;
第二转发单元, 用于根据所述第一期望距离的修订值和所述跳 数值转发所述请求兴趣包至所述第一网络节点。
结合第五方面, 在第一种可实现方式中, 所述第二转发单元具 体用于:
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和小于等于所述第一期望距离的修订 值, 转发所述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和大于所述第一期望距离的修订值, 延 时预设时长后转发所述请求兴趣包至所述第一网络节点。
结合第五方面或第一种可实现方式, 在第二种可实现方式中, 所述第二网络节点还包括:
第三接收单元, 用于接收所述第一网络节点发送的所述响应请 求数据包, 所述响应请求数据包包括第二期望距离、 第二移动状态 记录和所述内容名对应的内容, 所述第二期望距离为所述请求兴趣 包从所述客户端到所述第一网络节点的跳数距离, 所述第二移动状 态记录包括第二状态记录项, 所述第二状态记录项用于记录转发所 述响应请求数据包到所述客户端的每个网络节点的移动状态;
第二添加单元, 用于添加所述第二网络节点的移动状态到所述 第二状态记录项;
第三转发单元, 用于向所述客户端转发所述响应请求数据包。 结合第五方面或第一种可实现方式, 在第三种可实现方式中, 所述第二网络节点还包括:
更新单元, 用于若在第一预设时间段内没有接收到所述第一网 络节点发送的响应请求数据包, 更新所述第一期望距离的修订值得 到更新值, 所述请求兴趣包包括所述第一预设时间段;
所述第二转发单元还用于:
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一 网络节点, 所述请求兴趣包包括更新值。
结合第五方面或者第一种可实现方式至第三种可实现方式中任 意一个, 在第四种可实现方式中, 所述移动状态包括网络节点的移 动速度和移动方向。
第六方面, 提供一种客户端, 包括:
第一接收单元, 用于接收至少一个网络节点针对所述客户端发 送的探测兴趣包返回的响应探测数据包;
选择单元, 用于从所述接收的响应探测数据包中选择第一响应 探测数据包, 所述第一响应探测数据包包括内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期望距离为所述探测 兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第一移 动状态记录包括第一状态记录项, 所述第一状态记录项用于记录转 发所述第一响应探测数据包到所述客户端的每个网络节点的移动状 态;
确定单元, 用于根据所述第一状态记录项以及所述第一期望距 离确定所述第一期望距离的修订值;
生成单元, 用于生成请求兴趣包, 所述请求兴趣包包括所述内 容名、 所述内容源标识、 所述第一期望距离的修订值和跳数值, 所 述跳数值用于指示所述请求兴趣包的转发次数;
发送单元, 用于向至少一个网络节点发送所述请求兴趣包。 结合第六方面, 在第一种可实现方式中, 所述确定单元具体用 于:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及 所述第一期望距离确定所述第一期望距离的修订值, 所述第一期望 距离的修订值大于、 小于或等于所述第一期望距离。
结合第六方面或第一种可实现方式, 在第二种可实现方式中, 所述选择单元具体用于:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第 一响应探测数据包。
结合第二种可实现方式, 在第三种可实现方式中, 所述客户端 还包括:
第二接收单元, 用于接收针对所述请求数据包返回的响应请求 数据包。
结合第六方面或第二种可实现方式, 在第四种可实现方式中, 所述客户端还包括:
更新单元, 用于若在第一预设时间段内没有接收到针对所述请 求数据包返回的响应请求数据包, 更新所述第一期望距离的修订值 得到更新值, 所述请求兴趣包包括所述第一预设时间段;
所述发送单元还用于: 向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述 更新后的请求兴趣包包括所述更新值。
结合第六方面或者第一种可实现方式至第四种可实现方式中任 意一个, 在第五种可实现方式中, 所述移动状态包括网络节点的移 动速度和移动方向。
第七方面, 提供一种传输数据系统, 包括:
至少一个以上任意所述的第一网络节点, 至少一个以上任意所 述的第二网络节点, 至少一个以上任意所述的客户端。
第八方面, 提供一种第一网络节点, 包括:
接收机, 用于接收第二网络节点发送的探测兴趣包, 所述探测 兴趣包包括内容名;
存储器, 用于存储程序代码;
处理器, 用于调用所述存储器存储的程序代码执行如下方法: 根据所述内容名生成响应探测数据包, 所述响应探测数据包包括所 述内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述 第一期望距离为所述探测兴趣包从所述客户端到所述第一网络节点 的跳数距离, 所述第一移动状态记录包括第一状态记录项, 所述第 一状态记录项用于记录转发所述响应探测数据包到所述客户端的每 个网络节点的移动状态;
所述处理器执行的方法还包括:
添加所述第一网络节点的移动状态到所述第一状态记录项; 发射机, 用于向所述第二网络节点发送所述响应探测数据包, 以便于转发所述响应探测数据包到所述客户端的每个网络节点添加 网络节点自身的移动状态到所述第一状态记录项, 并向所述客户端 发送所述响应探测数据包;
所述接收机还用于:
接收所述第二网络节点发送的所述请求兴趣包, 所述请求兴趣 包中包括所述内容名、 所述内容源标识、 所述第一期望距离的修订 值, 所述第一期望距离的修订值是所述客户端根据所述响应探测数 据包中的所述第一状态记录项以及所述第一期望距离确定的。
结合第八方面, 在第一种可实现方式中,
所述处理器执行的方法还包括:
生成响应请求数据包, 所述响应请求数据包包括第二期望距 离、 第二移动状态记录和所述内容名对应的内容, 所述第二期望距 离为所述请求兴趣包从所述客户端到所述第一网络节点的跳数距 离, 所述第二移动状态记录包括第二状态记录项, 所述第二状态记 录项用于记录转发所述响应请求数据包到所述客户端的每个网络节 点的移动状态;
所述处理器执行的方法还包括:
添加所述第一网络节点的移动状态到所述第二状态记录项; 所述发射机还用于:
向所述第二网络节点发送所述响应请求数据包, 以便于转发所 述响应请求数据包到所述客户端的每个网络节点添加网络节点自身 的移动状态到所述第二状态记录项, 并向所述客户端发送所述响应 请求数据包。
结合第八方面至第一种可实现方式中的任意一个, 在第二种可 实现方式中, 所述移动状态包括网络节点的移动速度和移动方向。
第九方面, 提供一种第二网络节点, 包括:
接收机, 用于接收第一网络节点针对客户端发送的探测兴趣包 返回的响应探测数据包, 所述响应探测数据包包括内容名、 内容源 标识、 第一期望距离和第一移动状态记录, 所述第一期望距离为所 述探测兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述 第一移动状态记录包括第一状态记录项, 所述第一状态记录项用于 记录转发所述响应探测数据包到所述客户端的每个网络节点的移动 状态;
存储器, 用于存储程序代码;
处理器, 用于调用所述存储器存储的程序代码执行如下方法: 添加所述第二网络节点的移动状态到所述第一状态记录项;
发射机, 用于向所述客户端转发所述响应探测数据包; 所述接收机还用于:
接收所述客户端根据所述响应探测数据包发送的所述请求兴趣 包, 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一 期望距离的修订值和跳数值, 所述跳数值用于指示所述请求兴趣包 的转发次数, 所述第一期望距离的修订值是所述客户端根据所述响 应探测数据包中的所述第一状态记录项以及所述第一期望距离确定 的;
所述发射机还用于:
根据所述第一期望距离的修订值和所述跳数值转发所述请求兴 趣包至所述第一网络节点。
结合第九方面, 在第一种可实现方式中, 所述发射机具体用 于:
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和小于等于所述第一期望距离的修订 值, 转发所述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和大于所述第一期望距离的修订值, 延 时预设时长后转发所述请求兴趣包至所述第一网络节点。
结合第九方面或第一种可实现方式, 在第二种可实现方式中, 所述接收机还用于:
接收所述第一网络节点发送的所述响应请求数据包, 所述响应 请求数据包包括第二期望距离、 第二移动状态记录和所述内容名对 应的内容, 所述第二期望距离为所述请求兴趣包从所述客户端到所 述第一网络节点的跳数距离, 所述第二移动状态记录包括第二状态 记录项, 所述第二状态记录项用于记录转发所述响应请求数据包到 所述客户端的每个网络节点的移动状态;
所述处理器执行的方法还包括: :
添加所述第二网络节点的移动状态到所述第二状态记录项; 所述发射机还用于:
向所述客户端转发所述响应请求数据包。
结合第九方面或第一种可实现方式, 在第三种可实现方式中, 所述处理器执行的方法还包括:
若在第一预设时间段内没有接收到所述第一网络节点发送的响 应请求数据包, 更新所述第一期望距离的修订值得到更新值, 所述 请求兴趣包包括所述第一预设时间段;
所述发射机还用于:
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一 网络节点, 所述请求兴趣包包括更新值。
结合第九方面或者第一种可实现方式至第三种可实现方式中任 意一个, 在第四种可实现方式中, 所述移动状态包括网络节点的移 动速度和移动方向。
第十方面, 提供一种客户端, 包括:
接收机, 用于接收至少一个网络节点针对所述客户端发送的探 测兴趣包返回的响应探测数据包;
存储器, 用于存储程序代码;
处理器, 用于调用所述存储器存储的程序代码执行如下方法: 从所述接收的响应探测数据包中选择第一响应探测数据包, 所述第 一响应探测数据包包括内容名、 内容源标识、 第一期望距离和第一 移动状态记录, 所述第一期望距离为所述探测兴趣包从所述客户端 到所述第一网络节点的跳数距离, 所述第一移动状态记录包括第一 状态记录项, 所述第一状态记录项用于记录转发所述第一响应探测 数据包到所述客户端的每个网络节点的移动状态;
所述处理器执行的方法还包括:
根据所述第一状态记录项以及所述第一期望距离确定所述第一 期望距离的修订值;
生成请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容 源标识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于指 示所述请求兴趣包的转发次数;
发射机, 用于向至少一个网络节点发送所述请求兴趣包。
结合第十方面, 在第一种可实现方式中, 所述处理器执行的方 法包括:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及 所述第一期望距离确定所述第一期望距离的修订值, 所述第一期望 距离的修订值大于、 小于或等于所述第一期望距离。
结合第十方面或第一种可实现方式, 在第二种可实现方式中, 所述处理器执行的方法包括:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第 一响应探测数据包。
结合第二种可实现方式, 在第三种可实现方式中,
所述接收机还用于:
接收针对所述请求数据包返回的响应请求数据包。
结合第十方面或第二种可实现方式, 在第四种可实现方式中, 所述处理器执行的方法还包括:
若在第一预设时间段内没有接收到针对所述请求数据包返回的 响应请求数据包, 更新所述第一期望距离的修订值得到更新值, 所 述请求兴趣包包括所述第一预设时间段;
所述发射机还用于:
向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述 更新后的请求兴趣包包括所述更新值。
结合第十方面或者第一种可实现方式至第四种可实现方式中任 意一个, 在第五种可实现方式中, 所述移动状态包括网络节点的移 动速度和移动方向。
第十一方面, 提供一种传输数据系统, 包括:
至少一个以上任意所述的第一网络节点, 至少一个以上任意所 述的第二网络节点, 至少一个以上任意所述的客户端。
本发明的实施例提供一种传输数据的方法、 装置及系统。 通过 在响应探测兴趣包的响应探测数据包中记录网络节点的移动状态, 以便于客户端根据响应探测数据包中记录的网络节点的移动状态以 及期望距离确定期望距离的修订值, 从而生成请求兴趣包, 使得网 络节点接收所述请求兴趣包, 有效解决了 内容源或路由器接收请求 兴趣包成功率较低问题。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下 面将对实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于 本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以 根据这些附图获得其他的附图。
图 1为本发明实施例提供一种传输数据的方法流程图; 图 2为本发明实施例提供另一种传输数据的方法流程图; 图 3为本发明实施例提供又一种传输数据的方法流程图; 图 4为本发明实施例提供再一种传输数据的方法流程图; 图 5为本发明实施例提供另再一种传输数据的方法流程图; 图 6为本发明实施例提供又再一种传输数据的方法流程图; 图 7为本发明实施例提供一种第一网络节点的结构示意图; 图 8为本发明实施例提供另一种第一网络节点的结构示意图; 图 9为本发明实施例提供一种第二网络节点的结构示意图; 图 10 为本发明实施例提供另一种第二网络节点的结构示意 图;
图 1 1为本发明实施例提供一种客户端的结构示意图;
图 12为本发明实施例提供另一种客户端的结构示意图; 图 13为本发明实施例提供一种传输数据系统示意图;
图 14 为本发明实施例提供又一种第一网络节点的结构示意 图;
图 15 为本发明实施例提供又一种第二网络节点的结构示意 图;
图 16为本发明实施例提供又一种客户端的结构示意图; 图 17为本发明实施例提供另一种传输数据系统示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明 一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本 领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他 实施例, 都属于本发明保护的范围。
本发明实施例提供一种传输数据的方法, 如图 1 所示, 应用于 第一网络节点, 包括:
步骤 101、 接收第二网络节点发送的探测兴趣包, 所述探测兴 趣包包括内容名。
步骤 102、 根据所述内容名生成响应探测数据包, 所述响应探 测数据包包括所述内容名、 内容源标识、 第一期望距离和第一移动 状态记录, 所述第一期望距离为所述探测兴趣包从所述客户端到所 述第一网络节点的跳数距离, 所述第一移动状态记录包括第一状态 记录项, 所述第一状态记录项用于记录转发所述响应探测数据包到 所述客户端的每个网络节点的移动状态。
所述第一状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向等。
步骤 103、 添加所述第一网络节点的移动状态到所述第一状态 i己录项。
步骤 104、 向所述第二网络节点发送所述响应探测数据包, 以 便于转发所述响应探测数据包到所述客户端的每个网络节点添加网 络节点自身的移动状态到所述第一状态记录项, 并向所述客户端发 送所述响应探测数据包。
步骤 105、 接收所述第二网络节点发送的请求兴趣包, 所述请 求兴趣包中包括所述内容名、 所述内容源标识、 所述第一期望距离 的修订值, 所述第一期望距离的修订值是所述客户端根据所述响应 探测数据包中的所述第一状态记录项以及所述第一期望距离确定 的。
这样一来, 通过在响应探测兴趣包的响应探测数据包中记录网 络节点的移动状态, 以便于客户端根据响应探测数据包中记录的网 络节点的移动状态以及期望距离确定期望距离的修订值, 从而生成 请求兴趣包, 使得网络节点接收所述请求兴趣包, 有效解决了 内容 源或路由器接收请求兴趣包成功率较低问题。
本发明实施例提供一种传输数据的方法, 如图 2所示, 应用于 第二网络节点, 包括:
步骤 201、 接收第一网络节点针对客户端发送的探测兴趣包返 回的响应探测数据包, 所述响应探测数据包包括内容名、 内容源标 识、 第一期望距离和第一移动状态记录, 所述第一期望距离为所述 探测兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第 一移动状态记录包括第一状态记录项, 所述第一状态记录项用于记 录转发所述响应探测数据包到所述客户端的每个网络节点的移动状 态。
步骤 202、 添加所述第二网络节点的移动状态到所述第一状态 i己录项。
步骤 203、 向所述客户端转发所述响应探测数据包。
步骤 204、 接收所述客户端根据所述响应探测数据包发送的所 述请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容源标 识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于指示所 述请求兴趣包的转发次数, 所述第一期望距离的修订值是所述客户 端根据所述响应探测数据包中的所述第一状态记录项以及所述第一 期望距离确定的。
步骤 205、 根据所述第一期望距离的修订值和所述跳数值转发 所述请求兴趣包至所述第一网络节点。
这样一来, 第二网络节点将该第二网络节点的移动状态添加到 第一移动状态记录中的状态记录项, 以便于客户端根据响应探测数 据包中记录的网络节点的移动状态以及期望距离确定期望距离的修 订值, 从而生成请求兴趣包, 使得网络节点接收所述请求兴趣包, 有效解决了内容源或路由器接收请求兴趣包成功率较低问题。
本发明实施例提供一种传输数据的方法, 如图 3 所示, 应用于 客户端, 包括:
步骤 301、 接收至少一个网络节点针对所述客户端发送的探测 兴趣包返回的响应探测数据包。
步骤 302、 从所述接收的响应探测数据包中选择第一响应探测 数据包, 所述第一响应探测数据包包括内容名、 内容源标识、 第一 期望距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣 包从所述客户端到所述第一网络节点的跳数距离, 所述第一移动状 态记录包括第一状态记录项, 所述第一状态记录项用于记录转发所 述第一响应探测数据包到所述客户端的每个网络节点的移动状态。
步骤 303、 根据所述第一状态记录项以及所述第一期望距离确 定所述第一期望距离的修订值。
步骤 304、 生成请求兴趣包, 所述请求兴趣包包括所述内容 名、 所述内容源标识、 所述第一期望距离的修订值和跳数值, 所述 跳数值用于指示所述请求兴趣包的转发次数。
步骤 305、 向至少一个网络节点发送所述请求兴趣包。
这样一来, 客户端根据响应探测数据包中记录的网络节点的移 动状态以及期望距离确定期望距离的修订值, 从而生成请求兴趣 包, 使得网络节点接收所述请求兴趣包, 有效解决了 内容源或路由 器接收请求兴趣包成功率较低问题。
本发明实施例提供的传输数据的方法的实现基于 ICN , 包括客 户端和网络节点, 所述网络节点可以是内容源或路由器, 所述客户 端用于向网络节点请求内容, 所述内容源用于产生内容, 所述路由 器用于路由、 转发和緩存内容。 其中, 路由器之间通过无线传输数 据, 路由器设置有 C S表、 PIT、 响应表和距离表。 所述 C S表用于 緩存转发过的响应数据包, 以便于客户端从该路由器获取内容, 所 述 PIT 用于记录已经转发的探测兴趣包和请求兴趣包, 以便于响应 探测兴趣包的响应数据包或响应请求兴趣包的响应数据包返回到客 户端, 所述响应表用于记录能够提供内容的内容源标识, 所述距离 表用于记录内容源标识与路由器之间的距离关系。 所述探测兴趣包 用于探测客户端从网络节点获取内容的路径, 所述请求兴趣包用于 客户端向网络节点请求内容。
本发明实施例提供一种传输数据的方法, 假设应用于路由器、 内容源和客户端, 如图 4所示, 包括: 步骤 401、 客户端向路由器发送探测兴趣包。
客户端向至少一个路由器广播探测兴趣包, 所述探测兴趣包包 括内容名, 该探测兴趣包还包括跳数值, 该跳数值被置为 0 , 所述 跳数值用于指示所述探测兴趣包的转发次数, 当探测兴趣包被转发 一次, 则当前的跳数值加 1。 示例的, 当探测兴趣包从客户端发送 到第一路由器, 跳数值加 1 , 再由该第一路由器转发到第二路由 器, 加 1后的跳数值再加 1。
步骤 402、 路由器向内容源转发探测兴趣包。
路由器接收到客户端向至少一个路由器广播的探测兴趣包, 查 询内容緩存表中是否存储有内容名对应内容的响应数据包, 若内容 緩存表中没有存储有内容名对应内容的响应数据包, 查询响应表中 是否存储有该内容名对应内容的内容源标识, 若响应表中存储有该 内容名对应内容的内容源标识, 查询距离表中与该路由器距离最近 的内容源, 然后, 该路由器的 PIT 记录该探测兴趣包, 该路由器向 内容源转发该探测兴趣包, 该探测兴趣包的跳数值加 1。 该距离表 存储有与该路由器距离最近的内容源的距离, 所述距离为该路由器 到所述最近的内容源的跳数距离。 该路由器可以先向其他路由器转 发该探测兴趣包, 由所述其他路由器转发至内容源, 或者该路由器 直接将该探测兴趣包转发至内容源。
需要说明的是, 若响应表中没有存储有该内容名对应内容的内 容源标识, 该路由器继续广播该探测兴趣包, 当探测兴趣包达到最 大跳数值时, 丟弃该探测兴趣包。
步骤 403、 内容源根据内容名生成响应探测数据包。
内容源接收到路由器发送的探测兴趣包, 所述探测兴趣包包括 内容名和跳数值。 响应探测数据包为响应探测兴趣包的响应数据 包, 所述响应探测数据包包括所述内容名、 内容源标识、 第一期望 距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包从 发出所述探测兴趣包的客户端到所述内容源的跳数距离, 根据所述 探测兴趣包的跳数值生成; 所述第一移动状态记录包括第一状态标 识位和第一状态记录项, 所述第一状态标志位用于指示所述第一移 动状态记录的有效性, 所述第一状态记录项用于记录转发所述响应 探测数据包到所述客户端的每个网络节点的移动状态。 所述第一状 态记录项包括至少一个网络节点的移动状态, 所述移动状态包括网 络节点的移动速度和网络节点的移动方向, 所述网络节点可以是路 由器或内容源。
示例的, 当第一状态标志位为 0 时, 第一移动状态为无效状 态, 即第一状态记录项不记录转发所述响应探测数据包到所述客户 端的每个网络节点的移动状态; 当第一状态标志位为 1 时, 第一移 动状态为有效状态, 即第一状态记录项记录转发所述响应探测数据 包到所述客户端的每个网络节点的移动状态。
特别的, 响应探测数据包还可以包括内容名对应的内容。
步骤 404、 内容源根据第一状态标志位添加该内容源的移动状 态到第一状态记录项。
内容源可以检查探测兴趣包的内容源标识为空和期望距离为 空, 则将第一状态标志位置为 1 , 即第一移动状态为有效状态, 内 容源将该内容源的移动状态添加到第一状态记录项。
步骤 405、 内容源向路由器发送响应探测数据包。
步骤 406、 路由器根据第一状态标志位添加该路由器的移动状 态到第一状态记录项。
路由器接收到内容源发送的响应探测数据包, 所述响应探测数 据包包括所述内容名、 内容源标识、 第一期望距离和第一移动状态 记录, 所述第一期望距离为所述探测兴趣包从发出所述探测兴趣包 的客户端到所述内容源的跳数距离, 所述第一移动状态记录包括第 一状态标识位和第一状态记录项, 所述第一状态标志位用于指示所 述第一移动状态记录的有效性, 所述第一状态记录项用于记录转发 所述响应探测数据包到所述客户端的每个网络节点的移动状态。 所 述第一状态记录项包括至少一个网络节点的移动状态, 所述移动状 态包括网络节点的移动速度和网络节点的移动方向, 所述网络节点 可以是路由器或内容源。
路由器检查第一状态标志位为 1 , 即第一移动状态为有效状 态, 路由器将该路由器的移动状态添加到第一状态记录项。
步骤 407、 路由器根据兴趣包驻留表向客户端转发响应探测数 据包。
路由器的兴趣包驻留表 PIT记录探测兴趣包, 路由器根据兴趣 包驻留表向客户端转发响应探测数据包。
步骤 408、 客户端接收至少一个路由器转发的响应探测数据 包。
客户端接收至少一个路由器转发的响应探测数据包, 每一个响 应探测数据包可以是不同的路由器转发的, 即每一个响应探测数据 包包括的移动状态记录可以记录转发所述响应探测数据包的路由器 的移动状态。
步骤 409、 客户端选择第一响应探测数据包。
客户端接收到至少一个路由器转发的响应探测数据包后, 首 先, 客户端解析响应探测数据包, 得到第一期望距离和第一移动状 态记录的信息, 然后, 客户端可以根据第一期望距离、 第一移动状 态记录和选择规则中至少一个选择一个响应探测数据包, 使得客户 端根据该响应探测数据包生成请求兴趣包, 所述选择规则可以是转 发响应探测数据包的路由器处理该响应探测数据包的速度或者是客 户端第一个接收到的响应探测数据包。
例如, 当客户端接收到两个响应探测数据包, 两个响应探测数 据包分别为第一个响应探测数据包和第二个响应探测数据包, 所述 第一个响应探测数据包为客户端先接收到的响应探测数据包, 所述 第二个响应探测数据包为客户端接收到该第一个响应探测数据包之 后接收到的响应探测数据包, 所述第一个响应探测数据包和所述第 二个响应探测数据包都是为了响应客户端向内容源发送的探测兴趣 包的响应探测数据包。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 探测数据包中的第一期望距离记录该第二个响应探测数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第一期望距离选择 跳数距离短的响应探测数据包, 即可以选择经过较少路由器转发的 第一个响应探测数据包生成请求兴趣包。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离与该第二个响应探测数 据包中的第一期望距离记录该第二个响应探测数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应探测数据包中 的第一移动状态记录中记录的转发该第一个响应探测数据包的网络 节点的移动状态和该第二个响应探测数据包中的第一移动状态记录 中记录的转发该第二个响应探测数据包的网络节点的移动状态, 若 转发第二个响应探测数据包的网络节点的移动状态相比转发第一个 响应探测数据包的网络节点的移动状态较稳定, 即转发第二个响应 探测数据包的网络节点的移动速度可能较慢, 转发第一个响应探测 数据包的网络节点的移动速度可能较快, 客户端可以根据第一移动 状态记录选择经过较稳定的路由器转发的第二个响应探测数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离与该第二个响应探测数 据包中的第一期望距离记录该第二个响应探测数据包从内容源到客 户端的跳数距离相等, 且该第一个响应探测数据包中的第一移动状 态记录中记录的转发该第一个响应探测数据包的网络节点的移动状 态和该第二个响应探测数据包中的第一移动状态记录中记录的转发 该第二个响应探测数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应探测数据包较快的路由器转发的第一个 响应探测数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应探测数据包, 当客户 端接收到响应探测数据包, 则客户端选择所述响应探测数据包生成 请求兴趣包。
在实际应用中, 所述响应探测数据包可以是第一响应探测数据 包, 该第一响应探测数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应探测数据包。
所述第一响应探测数据包包括内容名、 内容源标识、 第一期望 距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包从 所述客户端到所述第一网络节点的跳数距离, 所述第一移动状态记 录包括第一状态标识位和第一状态记录项, 所述第一状态标志位用 于指示所述第一移动状态记录的有效性, 所述第一状态记录项用于 记录转发所述第一响应探测数据包到所述客户端的每个网络节点的 移动状态。
步骤 4010、 客户端根据第一状态记录项以及所述第一期望距 离确定第一期望距离的修订值。
客户端从第一响应探测数据包获取第一移动状态记录的第一状 态记录项, 所述第一状态记录项记录转发所述响应探测数据包到所 述客户端的每个网络节点的移动状态。 当转发所述第一响应探测数 据包的网络节点移动的较快, 客户端可以将第一期望距离加 1 , 得 到第一期望距离的修订值, 即第一期望距离的修订值大于第一期望 距离; 当转发所述第一响应探测数据包的网络节点移动的较慢或不 移动, 客户端可以不增加第一期望距离, 即第一期望距离的修订值 与第一期望距离相同。
步骤 401 1、 客户端生成请求兴趣包。
所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一 期望距离的修订值和跳数值, 所述跳数值用于指示所述请求兴趣包 的转发次数, 该跳数值置为 0。
步骤 4012、 客户端向路由器发送请求兴趣包。
客户端向至少一个路由器发送所述请求兴趣包。
步骤 4013、 路由器根据第一期望距离的修订值和跳数值转发 所述请求兴趣包至内容源。
路由器接收到所述客户端发送的所述请求兴趣包, 该跳数值增 加 1。 路由器查询内容緩存表 ( C S ) 中是否存储有内容名对应内容 的响应数据包, 若内容緩存表中没有存储有内容名对应内容的响应 数据包, 查询兴趣包驻留表( PIT )是否记录有该请求兴趣包, 若兴 趣包驻留表( PIT ) 没有记录该请求兴趣包, 查询响应表中是否存储 有该内容名对应内容的内容源标识, 若响应表中存储有该内容名对 应内容的内容源标识, 查询距离表中与该路由器距离最近的内容 源, 根据第一期望距离的修订值和跳数值转发所述请求兴趣包至内 容源。 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第 一期望距离的修订值和跳数值, 所述跳数值用于指示所述请求兴趣 包的转发次数。 特别的, 若兴趣包驻留表 ( PIT ) 记录该请求兴趣 包, 该路由器丟弃该请求兴趣包。
需要说明的是, 第一期望距离的修订值为请求兴趣包从客户端 到内容源的总跳数值, 跳数值为已经转发请求兴趣包的次数, 距离 表中存储有该路由器与内容源的距离, 所述距离为该路由器到所述 最近的内容源的跳数距离。 当请求兴趣包中的跳数值与距离表中存 储的该路由器到内容源的跳数距离之和小于等于第一期望距离的修 订值, 该路由器转发请求兴趣包; 当请求兴趣包中的跳数值与距离 表中存储的该路由器到内容源的跳数距离之和大于第一期望距离的 修订值, 再延时预设时长后转发请求兴趣包, 或者丟弃该请求兴趣 包。 所述延时预设时长后转发为路由器在转发请求兴趣包之前额外 增加一个预设时长, 即等待一段额外的时间再转发请求兴趣包。
步骤 4014、 内容源生成响应请求数据包。
内容源接收到路由器发送的所述请求兴趣包, 解析该请求兴趣 包得到内容源标识、 第一期望距离的修订值和跳数值, 当所述内容 源标识与该内容源的标识相同, 则内容源生成响应请求数据包, 所 述响应请求数据包包括所述内容名、 所述内容源标识、 第二期望距 离、 第二移动状态记录和所述内容名对应的内容, 所述第二期望距 离为所述请求兴趣包从发出所述请求兴趣包的客户端到所述路由器 的跳数距离, 由所述请求兴趣包中的跳数值生成, 所述第二移动状 态记录包括第二状态标识位和第二状态记录项, 所述第二状态标志 位用于指示所述第二移动状态记录的有效性, 所述第二状态记录项 用于记录转发所述响应请求数据包到所述客户端的每个网络节点的 移动状态。
步骤 4015、 内容源根据第二状态标志位判断所述第二移动状 态记录是否有效。
若内容源将第二状态标志位置为 1 , 即第二移动状态为有效状 态; 若内容源将第二状态标志位置为 0 , 即第二移动状态为无效状 态。 需要说明的是, 当响应数据包为请求兴趣包的响应请求数据包 时, 内容源可以将第二状态标志位置为 1 , 即第二移动状态为有效 状态, 或者将第二状态标志位置为 0 , 即第二移动状态为无效状 态。
当内容源将第二状态标志位置为 1 , 即第二移动状态为有效状 态, 执行步骤 4016a。 当内容源将第二状态标志位置为 0 , 即第二移动状态为无效状 态, 执行步骤 4016b。
步骤 4016a、 内容源将该内容源的移动状态添加到第二状态记 录项。 执行步骤 4016b。
内容源根据所述第二移动状态记录有效将该内容源的移动状态 添加到第二状态记录项。 需要说明的是, 若所述第二移动状态记录 无效, 内容源不必将该内容源的移动状态添加到第二状态记录项。
步骤 401 6b、 内容源向路由器发送所述响应请求数据包。
步骤 4017、 路由器根据第二状态标志位判断所述第二移动状 态记录是否有效。
路由器接收内容源发送的所述响应请求数据包, 所述响应请求 数据包包括所述内容名、 所述内容源标识、 第二期望距离、 第二移 动状态记录和所述内容名对应的内容, 所述第二期望距离为所述请 求兴趣包从发出所述请求兴趣包的客户端到所述内容源的跳数距 离, 所述第二移动状态记录包括第二状态标识位和第二状态记录 项, 所述第二状态标志位用于指示所述第二移动状态记录的有效 性, 所述第二状态记录项用于记录转发所述响应请求数据包到所述 客户端的每个网络节点的移动状态。 所述第二状态记录项包括至少 一个网络节点的移动状态, 所述移动状态包括网络节点的移动速度 和网络节点的移动方向, 所述网络节点可以是路由器或内容源。
若路由器检查第二状态标志位为 1 , 即第二移动状态为有效状 态; 若路由器检查第二状态标志位为 0 , 即第二移动状态为无效状 态。 需要说明的是, 当响应数据包为请求兴趣包的响应请求数据包 时, 路由器可以根据第二状态标志位为 1 , 即第二移动状态为有效 状态, 或者第二状态标志位为 0 , 即第二移动状态为无效状态。
当路由器将第二状态标志位置为 1 , 即第二移动状态为有效状 态, 执行步骤 4018a。 当路由器将第二状态标志位置为 0 , 即第二移动状态为无效状 态, 执行步骤 4018b。
步骤 4018a、 路由器将该路由器的移动状态添加到第二状态记 录项。 执行步骤 4018b。
路由器根据所述第二移动状态记录有效将该路由器的移动状态 添加到第二状态记录项。 需要说明的是, 若所述第二移动状态记录 无效, 路由器不必将该路由器的移动状态添加到第二状态记录项。
步骤 4018b、 路由器根据兴趣包驻留表向客户端转发所述响应 请求数据包。
路由器的兴趣包驻留表 PIT记录请求兴趣包, 路由器根据兴趣 包驻留表向客户端转发所述第一响应请求数据包。
步骤 4019、 客户端接收针对所述请求数据包返回的响应请求 数据包。
客户端接收至少一个路由器转发的响应请求数据包, 每一个响 应请数据包可以是不同的路由器转发的, 即每一个响应请求数据包 包括的移动状态记录可以记录转发所述响应请求数据包的路由器的 移动状态。
步骤 4020、 客户端选择第一响应请求数据包。
客户端接收到至少一个路由器转发的响应请求数据包后, 首 先, 客户端解析响应请求数据包, 得到第二期望距离和第二移动状 态记录的信息, 然后, 客户端可以根据第二期望距离、 第二移动状 态记录和选择规则中至少一个选择一个响应请求数据包, 使得客户 端根据该响应请求数据包生成请求兴趣包, 所述选择规则可以是转 发响应请求数据包的路由器处理该响应请求数据包的速度或者是客 户端第一个接收到的响应请求数据包。
例如, 当客户端接收到两个响应请求数据包, 两个响应请求数 据包分别为第一个响应请求数据包和第二个响应请求数据包, 所述 第一个响应请求数据包为客户端先接收到的响应请求数据包, 所述 第二个响应请求数据包为客户端接收到该第一个响应请求数据包之 后接收到的响应请求数据包, 所述第一个响应请求数据包和所述第 二个响应请求数据包都是为了响应客户端向内容源发送的请求兴趣 包的响应请求数据包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 请求数据包中的第二期望距离记录该第二个响应请求数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第二期望距离选择 跳数距离短的响应请求数据包, 即可以选择经过较少路由器转发的 第一个响应请求数据包生成请求兴趣包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应请求数据包中 的第二移动状态记录中记录的转发该第一个响应请求数据包的网络 节点的移动状态和该第二个响应请求数据包中的第二移动状态记录 中记录的转发该第二个响应请求数据包的网络节点的移动状态, 若 转发第二个响应请求数据包的网络节点的移动状态相比转发第一个 响应请求数据包的网络节点的移动状态较稳定, 即转发第二个响应 请求数据包的网络节点的移动速度可能较慢, 转发第一个响应请求 数据包的网络节点的移动速度可能较快, 客户端可以根据第二移动 状态记录选择经过较稳定的路由器转发的第二个响应请求数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 且该第一个响应请求数据包中的第二移动状 态记录中记录的转发该第一个响应请求数据包的网络节点的移动状 态和该第二个响应请求数据包中的第二移动状态记录中记录的转发 该第二个响应请求数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应请求数据包较快的路由器转发的第一个 响应请求数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应请求数据包, 当客户 端接收到响应请求数据包, 则客户端选择所述响应请求数据包生成 请求兴趣包。
在实际应用中, 所述响应请求数据包可以是第一响应请求数据 包, 该第一响应请求数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应请求数据包。
所述第一响应请求数据包包括所述内容名、 所述内容源标识、 第二期望距离、 第二移动状态记录和所述内容名对应的内容, 所述 第二期望距离为所述请求兴趣包从发出所述请求兴趣包的客户端到 所述内容源的跳数距离, 所述第二移动状态记录包括第二状态标识 位和第二状态记录项, 所述第二状态标志位用于指示所述第二移动 状态记录的有效性, 所述第二状态记录项用于记录转发所述响应请 求数据包到所述客户端的每个网络节点的移动状态。
步骤 4020为可选步骤。
需要说明的是, 本发明实施例所述的第一移动状态记录可以添 加到响应探测数据包的包头中, 第二移动状态记录可以添加到响应 请求数据包的包头中, 且在响应探测兴趣包的响应探测数据包的包 头中必须添加移动状态记录, 而在响应请求兴趣包的响应请求数据 包的包头中可以随机添加移动状态记录, 且客户端可以指示网络节 点添加所述网络节点的移动状态。 移动状态记录在响应数据包中的 包头中的响应数据包结构可以如表 1 所示, 响应数据包可以是响应 探测数据包或响应请求数据包,
表 1 响应数据包结构
内容名 ( Content Name )
签名 ( Signature )
标识信息 ( Signed Info )
(移动状态记录 ( identifier ) )
数据 ( Data )
实际应用 中 , 移动状态记录可以用 identifier 表示, 所述 identifier 字段可以包括至少一个网络节点的移动状态, 所述移动状 态可以是网络节点的移动速度或 /和网络节点的移动方向 , 该 identifier字段可以设置为:
<record><nodeID><speed></speed> ... <direction></direction></ node ID> </record> ,
其中, <record></record> 以包括至少一个网络节点的移动状 态, 即至少一个 <node ID></node ID> , <node ID></node ID>可以包 括该网络节点的移动状态, 可以是该网络节点的移动速度或 /和该 网络节点的移动方向, <speed></speed> 以包括该网络节点的移动 速度 , < ^ (^ 011></ ^ (^ 011>可以包括该网络节点的移动方向。 网 络节点的移动速度可以是网络节点的具体的速度, 也可以是网络节 点的移动速度级别, 即高、 中和低。
特别的, 本发明实施例所述的内容源还可以是路由器, 即当路 由器的内容緩存表中存储有内容名对应内容的响应数据包时, 该路 由器具有与内容源相同的作用, 为客户端提供内容。 实际应用中, 客户端与内容源之间可以不经过路由器的转发, 客户端直接从内容 源获取内容, 或者客户端与该客户端最近的路由器之间可以不经过 其他路由器的转发, 客户端直接从所述与该客户端最近的路由器获 取内容。 示例的, 当路由器转发过内容名对应内容的响应数据包时, 路 由器的内容緩存表中可以存储有内容名对应内容的响应数据包, 在 路由器接收到探测兴趣包后, 路由器查询内容緩存表中存储有内容 名对应内容的响应探测数据包或响应请求数据包, 根据内容名生成 响应探测数据包, 根据状态标志位添加该路由器的移动状态到状态 记录项, 向第二网络节点或客户端发送响应探测数据包, 以便于客 户端根据所述状态记录项确定第一期望距离的修订值, 从而生成请 求兴趣包, 并向至少一个网络节点发送所述请求兴趣包, 使得网络 节点接收所述请求兴趣包。
本发明实施例所述的传输数据的方法, 首先, 客户端通过路由 器向内容源发送探测兴趣包, 内容源根据探测兴趣包包括的内容名 生成响应探测数据包, 且根据第一状态标志位添加该内容源的移动 状态到第一状态记录项, 再向路由器发送响应探测数据包, 路由器 根据第一状态标志位添加该路由器的移动状态到所述第一状态记录 项, 并向客户端转发响应探测数据包, 然后, 客户端选择第一响应 探测数据包, 并根据状态记录项以及第一期望距离确定第一期望距 离的修订值, 生成请求兴趣包, 向路由器发送请求兴趣包, 路由器 根据第一期望距离的修订值和跳数值转发所述请求兴趣包至内容 源, 内容源生成响应请求数据包, 并根据第二状态标志位判断所述 第二移动状态记录有效, 将该内容源的移动状态添加到第二状态记 录项, 再向路由器发送所述响应请求数据包, 路由器根据所述第二 状态标志位判断所述第二移动状态记录有效, 将该路由器的移动状 态添加到第二状态记录项, 并向客户端转发所述响应请求数据包, 客户端接收响应请求数据包。 相对于现有技术, 通过在响应数据包 设置移动状态记录, 将网络节点的移动状态添加到移动状态记录中 的状态记录项, 将响应数据包发送至客户端, 以便于客户端根据所 述状态记录项确定期望距离的修订值, 从而生成请求兴趣包, 并向 至少一个网络节点发送所述请求兴趣包, 使得网络节点接收所述请 求兴趣包, 有效解决了现有路由转发没有适应网络节点移动, 带来 的网络负载大, 传输时延大及成功率低的问题, 能够提高内容源或 路由器接收请求兴趣包成功率。
本发明实施例提供一种传输数据的方法, 假设应用于如图 4 中 所示的路由器、 内容源和客户端, 在客户端向路由器发送请求兴趣 包之后, 当在第一预设时间段内没有接收到针对所述请求数据包返 回的响应请求数据包时, 如图 5所示, 包括:
步骤 41 1 1、 客户端更新第一期望距离的修订值得到更新值。 在客户端向至少一个路由器发送请求兴趣包之后, 当在第一预 设时间段内没有接收到至少一个路由器发送的响应请求数据包时, 更新第一期望距离的修订值得到更新值, 所述请求兴趣包包括所述 第一预设时间段。
示例的, 更新第一期望距离的修订值得到更新值, 即可以将第 一期望距离的修订值增加 1。 假设第一期望距离的修订值为 3 跳, 可以将第一期望距离的修订值增加 1 跳, 更新第一期望距离的修订 值得到更新值为 4跳。
步骤 41 12、 客户端向路由器重复发送更新后的请求兴趣包。 客户端向至少一个路由器重复发送更新后的请求兴趣包, 所述 更新后的请求兴趣包包括所述更新值。
步骤 41 13、 路由器根据所述更新值和跳数值转发所述更新后 的请求兴趣包至内容源。
路由器接收到所述客户端重复发送的所述更新后的请求兴趣 包, 所述更新后的请求兴趣包包括更新值, 所述更新值为更新所述 第一期望距离的修订值的更新值, 根据所述更新值和跳数值转发所 述更新后的请求兴趣包至内容源。
步骤 41 14、 内容源生成响应请求数据包。 内容源接收到路由器重复发送的所述更新后的请求兴趣包, 所 述更新后的请求兴趣包包括更新值, 所述更新值为所述客户端更新 所述第一期望距离的修订值的更新值。 解析该更新后的请求兴趣包 得到内容源标识和更新值, 所述内容源标识与该内容源的标识相 同, 即该内容源为路由器根据所述更新值和跳数值转发所述请求兴 趣包的内容源。 内容源生成响应请求数据包, 所述响应请求数据包 包括所述内容名、 所述内容源标识、 第二期望距离、 第二移动状态 记录和所述内容名对应的内容, 所述第二期望距离为所述请求兴趣 包从发出所述请求兴趣包的客户端到所述内容源的跳数距离, 所述 第二移动状态记录包括第二状态标识位和第二状态记录项, 所述第 二状态标志位用于指示所述第二移动状态记录的有效性, 所述第二 状态记录项用于记录转发所述响应请求数据包到所述客户端的每个 网络节点的移动状态。
步骤 41 15、 内容源根据第二状态标志位判断所述第二移动状 态记录是否有效。
若内容源将第二状态标志位置为 1 , 即第二移动状态为有效状 态; 若内容源将第二状态标志位置为 0 , 即第二移动状态为无效状 态。 需要说明的是, 当响应数据包为请求兴趣包的响应请求数据包 时, 内容源可以将第二状态标志位置为 1 , 即第二移动状态为有效 状态, 或者将第二状态标志位置为 0 , 即第二移动状态为无效状 态。
当内容源将第二状态标志位置为 1 , 即第二移动状态为有效状 态, 执行步骤 41 16a。
当内容源将第二状态标志位置为 0 , 即第二移动状态为无效状 态, 执行步骤 41 16b。
步骤 41 1 6a、 内容源将该内容源的移动状态添加到第二状态记 录项。 执行步骤 41 16b。 内容源根据所述第二移动状态记录有效将该内容源的移动状态 添加到第二状态记录项。 需要说明的是, 若所述第二移动状态记录 无效, 内容源不必将该内容源的移动状态添加到第二状态记录项。
步骤 41 16b、 内容源向路由器发送所述响应请求数据包。
步骤 41 17、 路由器根据第二状态标志位判断所述第二移动状 态记录是否有效。
路由器接收内容源发送的所述响应请求数据包, 所述响应请求 数据包包括所述内容名、 所述内容源标识、 第二期望距离、 第二移 动状态记录和所述内容名对应的内容, 所述第二期望距离为所述请 求兴趣包从发出所述请求兴趣包的客户端到所述内容源的跳数距 离, 所述第二移动状态记录包括第二状态标识位和第二状态记录 项, 所述第二状态标志位用于指示所述第二移动状态记录的有效 性, 所述第二状态记录项用于记录转发所述响应请求数据包到所述 客户端的每个网络节点的移动状态。 所述第二状态记录项包括至少 一个网络节点的移动状态, 所述移动状态包括网络节点的移动速度 和网络节点的移动方向, 所述网络节点可以是路由器或内容源。
若路由器检查第二状态标志位为 1 , 即第二移动状态为有效状 态; 若路由器检查第二状态标志位为 0 , 即第二移动状态为无效状 态。 需要说明的是, 当响应数据包为请求兴趣包的响应请求数据包 时, 路由器可以根据第二状态标志位为 1 , 即第二移动状态为有效 状态, 或者第二状态标志位为 0 , 即第二移动状态为无效状态。
当路由器将第二状态标志位置为 1 , 即第二移动状态为有效状 态, 执行步骤 41 18a。
当路由器将第二状态标志位置为 0 , 即第二移动状态为无效状 态, 执行步骤 41 18b。
步骤 41 1 8a、 路由器将该路由器的移动状态添加到第二状态记 录项。 执行步骤 41 18b。 路由器根据所述第二移动状态记录有效将该路由器的移动状态 添加到第二状态记录项。 需要说明的是, 若所述第二移动状态记录 无效, 路由器不必将该路由器的移动状态添加到第二状态记录项。
步骤 41 18b、 路由器根据兴趣包驻留表向客户端转发所述响应 请求数据包。
路由器的兴趣包驻留表 PIT记录请求兴趣包, 路由器根据兴趣 包驻留表向客户端转发所述响应请求数据包。
步骤 41 19、 客户端接收针对所述请求数据包返回的响应请求 数据包。
客户端接收至少一个路由器转发的响应请求数据包, 每一个响 应请数据包可以是不同的路由器转发的, 即每一个响应请求数据包 包括的移动状态记录可以记录转发所述响应请求数据包的路由器的 移动状态。
步骤 4120、 客户端选择第一响应请求数据包。
客户端接收到至少一个路由器转发的响应请求数据包后, 首 先, 客户端解析响应请求数据包, 得到第二期望距离和第二移动状 态记录的信息, 然后, 客户端可以根据第二期望距离、 第二移动状 态记录和选择规则中至少一个选择一个响应请求数据包, 使得客户 端根据该响应请求数据包生成请求兴趣包, 所述选择规则可以是转 发响应请求数据包的路由器处理该响应请求数据包的速度或者是客 户端第一个接收到的响应请求数据包。
例如, 当客户端接收到两个响应请求数据包, 两个响应请求数 据包分别为第一个响应请求数据包和第二个响应请求数据包, 所述 第一个响应请求数据包为客户端先接收到的响应请求数据包, 所述 第二个响应请求数据包为客户端接收到该第一个响应请求数据包之 后接收到的响应请求数据包, 所述第一个响应请求数据包和所述第 二个响应请求数据包都是为了响应客户端向内容源发送的请求兴趣 包的响应请求数据包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 请求数据包中的第二期望距离记录该第二个响应请求数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第二期望距离选择 跳数距离短的响应请求数据包, 即可以选择经过较少路由器转发的 第一个响应请求数据包生成请求兴趣包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应请求数据包中 的第二移动状态记录中记录的转发该第一个响应请求数据包的网络 节点的移动状态和该第二个响应请求数据包中的第二移动状态记录 中记录的转发该第二个响应请求数据包的网络节点的移动状态, 若 转发第二个响应请求数据包的网络节点的移动状态相比转发第一个 响应请求数据包的网络节点的移动状态较稳定, 即转发第二个响应 请求数据包的网络节点的移动速度可能较慢, 转发第一个响应请求 数据包的网络节点的移动速度可能较快, 客户端可以根据第二移动 状态记录选择经过较稳定的路由器转发的第二个响应请求数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 且该第一个响应请求数据包中的第二移动状 态记录中记录的转发该第一个响应请求数据包的网络节点的移动状 态和该第二个响应请求数据包中的第二移动状态记录中记录的转发 该第二个响应请求数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应请求数据包较快的路由器转发的第一个 响应请求数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应请求数据包, 当客户 端接收到响应请求数据包, 则客户端选择所述响应请求数据包生成 请求兴趣包。
在实际应用中, 所述响应请求数据包可以是第一响应请求数据 包, 该第一响应请求数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应请求数据包。
所述第一响应请求数据包包括所述内容名、 所述内容源标识、 第二期望距离、 第二移动状态记录和所述内容名对应的内容, 所述 第二期望距离为所述请求兴趣包从发出所述请求兴趣包的客户端到 所述内容源的跳数距离, 所述第二移动状态记录包括第二状态标识 位和第二状态记录项, 所述第二状态标志位用于指示所述第二移动 状态记录的有效性, 所述第二状态记录项用于记录转发所述响应请 求数据包到所述客户端的每个网络节点的移动状态。
步骤 4120为可选步骤。
需要说明的是, 在客户端获取到内容后, 还可以再向内容源发 送探测兴趣包, 当客户端通过探测兴趣包获取的路径恢复正常时, 即客户端接收到的响应探测兴趣包的响应探测数据包携带的期望距 离小于、 等于大于更新的第一期望距离的修订值, 则客户端再向内 容源或路由器发送的请求兴趣包可以携带所述期望距离; 客户端可 以恢复到更新第一期望距离的修订值之前的第一期望距离的修订值 生成请求兴趣包, 向内容源或路由器发送请求兴趣包。
本发明实施例所述的传输数据的方法, 首先, 客户端通过路由 器向内容源发送探测兴趣包, 内容源根据探测兴趣包包括的内容名 生成响应探测数据包, 且根据第一状态标志位添加该内容源的移动 状态到第一状态记录项, 再向路由器发送响应探测数据包, 路由器 根据第一状态标志位添加该路由器的移动状态到所述第一状态记录 项, 并向客户端转发响应探测数据包, 然后, 客户端选择第一响应 探测数据包, 并根据状态记录项以及第一期望距离确定第一期望距 离的修订值, 生成请求兴趣包, 向路由器发送请求兴趣包, 在客户 端向路由器发送请求兴趣包之后, 当在第一预设时间段内没有接收 到至少一个路由器发送的响应请求数据包时, 更新第一期望距离的 修订值得到更新值, 再向路由器重复发送更新后的请求兴趣包, 路 由器根据所述更新值和跳数值转发所述请求兴趣包至内容源, 内容 源生成响应请求数据包, 并根据所述第二状态标志位判断所述第二 移动状态记录有效, 将该内容源的移动状态添加到第二状态记录 项, 再向路由器发送所述响应请求数据包, 路由器根据所述第二状 态标志位判断所述第二移动状态记录是否有效, 若所述第二移动状 态记录有效将该路由器的移动状态添加到第二状态记录项, 并向客 户端转发所述响应请求数据包。 相对于现有技术, 通过客户端更新 期望距离的修订值, 即增加期望距离的修订值的跳数值, 再向路由 器或内容源重复发送更新后的请求兴趣包, 以便于路由器或内容源 接收到请求兴趣包, 有效解决了 内容源或路由器接收请求兴趣包成 功率较低问题。
本发明实施例提供一种传输数据的方法, 假设应用于如图 4 中 所示的路由器、 内容源和客户端, 在路由器根据第一期望距离的修 订值和所述跳数值转发所述请求兴趣包至所述内容源之后, 当在第 一预设时间段内没有接收到所述内容源发送的响应请求数据包时, 如图 6所示, 包括:
步骤 4213、 路由器更新所述第一期望距离的修订值得到更新 值。
路由器接收到所述客户端发送的请求兴趣包, 所述请求兴趣包 包括第一期望距离的修订值和跳数值, 在路由器根据第一期望距离 的修订值和所述跳数值转发所述请求兴趣包至所述内容源之后, 当 在第一预设时间段内没有接收到所述内容源发送的响应请求数据包 时, 更新所述第一期望距离的修订值得到更新值, 所述请求兴趣包 包括所述第一预设时间段。 需要说明的是, 在该路由器与内容源之 间的其他路由器出现故障时, 该路由器可以更新所述第一期望距离 的修订值得到更新值。
示例的, 更新第一期望距离的修订值得到更新值, 即可以将第 一期望距离的修订值增加 1。 假设第一期望距离的修订值为 4 跳, 可以将第一期望距离的修订值增加 1 跳, 更新第一期望距离的修订 值得到更新值为 5跳。
步骤 4214、 路由器根据更新值和所述跳数值转发所述请求兴 趣包至内容源。
路由器根据所述更新值和所述跳数值重复转发所述请求兴趣包 至内容源, 所述请求兴趣包包括更新值。
步骤 421 5、 内容源生成响应请求数据包。
内容源接收到路由器重复发送的所述请求兴趣包, 所述请求兴 趣包包括更新值, 所述更新值为所述路由器更新所述第一期望距离 的修订值的更新值。 解析该请求兴趣包得到内容源标识和更新值, 所述内容源标识与该内容源的标识相同, 即该内容源为路由器根据 所述更新值和跳数值转发所述请求兴趣包的内容源。 内容源生成响 应请求数据包, 所述响应请求数据包包括所述内容名、 所述内容源 标识、 第二期望距离、 第二移动状态记录和所述内容名对应的内 容, 所述第二期望距离为所述请求兴趣包从发出所述请求兴趣包的 客户端到所述内容源的跳数距离, 所述第二移动状态记录包括第二 状态标识位和第二状态记录项, 所述第二状态标志位用于指示所述 第二移动状态记录的有效性, 所述第二状态记录项用于记录转发所 述响应请求数据包到所述客户端的每个网络节点的移动状态。 步骤 4216、 内容源根据第二状态标志位判断所述第二移动状 态记录是的有效。
若内容源将第二状态标志位置为 1 , 即第二移动状态为有效状 态; 若内容源将第二状态标志位置为 0 , 即第二移动状态为无效状 态。 需要说明的是, 当响应数据包为请求兴趣包的响应请求数据包 时, 内容源可以将第二状态标志位置为 1 , 即第二移动状态为有效 状态, 或者将第二状态标志位置为 0 , 即第二移动状态为无效状 态。
当内容源将第二状态标志位置为 1 , 即第二移动状态为有效状 态, 执行步骤 4217a。
当内容源将第二状态标志位置为 0 , 即第二移动状态为无效状 态, 执行步骤 4217b。
步骤 4217a、 内容源将该内容源的移动状态添加到第二状态记 录项。 执行步骤 4217b。
内容源根据所述第二移动状态记录有效将该内容源的移动状态 添加到第二状态记录项。 需要说明的是, 若所述第二移动状态记录 无效, 内容源不必将该内容源的移动状态添加到第二状态记录项。
步骤 4217b、 内容源向路由器发送所述响应请求数据包。
步骤 4218、 路由器根据第二状态标志位判断所述第二移动状 态记录是否有效。
路由器接收内容源发送的所述响应请求数据包, 所述响应请求 数据包包括所述内容名、 所述内容源标识、 第二期望距离、 第二移 动状态记录和所述内容名对应的内容, 所述第二期望距离为所述请 求兴趣包从发出所述请求数据包的客户端到所述内容源的跳数距 离, 所述第二移动状态记录包括第二状态标识位和第二状态记录 项, 所述第二状态标志位用于指示所述第二移动状态记录的有效 性, 所述第二状态记录项用于记录转发所述响应请求数据包到所述 客户端的每个网络节点的移动状态。 所述第二状态记录项包括至少 一个网络节点的移动状态, 所述移动状态包括网络节点的移动速度 和网络节点的移动方向, 所述网络节点可以是路由器或内容源。
若路由器检查第二状态标志位为 1 , 即第二移动状态为有效状 态; 若路由器检查第二状态标志位为 0 , 即第二移动状态为无效状 态。 需要说明的是, 当响应数据包为请求兴趣包的响应请求数据包 时, 路由器可以根据第二状态标志位为 1 , 即第二移动状态为有效 状态, 或者第二状态标志位为 0 , 即第二移动状态为无效状态。
当路由器将第二状态标志位置为 1 , 即第二移动状态为有效状 态, 执行步骤 4219a。
当路由器将第二状态标志位置为 0 , 即第二移动状态为无效状 态, 执行步骤 4219b。
步骤 4219a、 路由器将该路由器的移动状态添加到第二状态记 录项。 执行步骤 4219b。
路由器根据所述第二移动状态记录有效将该路由器的移动状态 添加到第二状态记录项。 需要说明的是, 若所述第二移动状态记录 无效, 路由器不必将该路由器的移动状态添加到第二状态记录项。
步骤 4219b、 路由器根据兴趣包驻留表向客户端转发所述响应 请求数据包。
路由器的兴趣包驻留表 PIT记录请求兴趣包, 路由器根据兴趣 包驻留表向客户端转发所述响应请求数据包。
步骤 4220、 客户端接收针对所述请求数据包返回的响应请求 数据包。
客户端接收至少一个路由器转发的响应请求数据包, 每一个响 应请数据包可以是不同的路由器转发的, 即每一个响应请求数据包 包括的移动状态记录可以记录转发所述响应请求数据包的路由器的 移动状态。 步骤 422 1、 客户端选择第一响应请求数据包。
客户端接收到至少一个路由器转发的响应请求数据包后, 首 先, 客户端解析响应请求数据包, 得到第二期望距离和第二移动状 态记录的信息, 然后, 客户端可以根据第二期望距离、 第二移动状 态记录和选择规则中至少一个选择一个响应请求数据包, 使得客户 端根据该响应请求数据包生成请求兴趣包, 所述选择规则可以是转 发响应请求数据包的路由器处理该响应请求数据包的速度或者是客 户端第一个接收到的响应请求数据包。
例如, 当客户端接收到两个响应请求数据包, 两个响应请求数 据包分别为第一个响应请求数据包和第二个响应请求数据包, 所述 第一个响应请求数据包为客户端先接收到的响应请求数据包, 所述 第二个响应请求数据包为客户端接收到该第一个响应请求数据包之 后接收到的响应请求数据包, 所述第一个响应请求数据包和所述第 二个响应请求数据包都是为了响应客户端向内容源发送的请求兴趣 包的响应请求数据包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 请求数据包中的第二期望距离记录该第二个响应请求数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第二期望距离选择 跳数距离短的响应请求数据包, 即可以选择经过较少路由器转发的 第一个响应请求数据包生成请求兴趣包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应请求数据包中 的第二移动状态记录中记录的转发该第一个响应请求数据包的网络 节点的移动状态和该第二个响应请求数据包中的第二移动状态记录 中记录的转发该第二个响应请求数据包的网络节点的移动状态, 若 转发第二个响应请求数据包的网络节点的移动状态相比转发第一个 响应请求数据包的网络节点的移动状态较稳定, 即转发第二个响应 请求数据包的网络节点的移动速度可能较慢, 转发第一个响应请求 数据包的网络节点的移动速度可能较快, 客户端可以根据第二移动 状态记录选择经过较稳定的路由器转发的第二个响应请求数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 且该第一个响应请求数据包中的第二移动状 态记录中记录的转发该第一个响应请求数据包的网络节点的移动状 态和该第二个响应请求数据包中的第二移动状态记录中记录的转发 该第二个响应请求数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应请求数据包较快的路由器转发的第一个 响应请求数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应请求数据包, 当客户 端接收到响应请求数据包, 则客户端选择所述响应请求数据包生成 请求兴趣包。
在实际应用中, 所述响应请求数据包可以是第一响应请求数据 包, 该第一响应请求数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应请求数据包。
所述第一响应请求数据包包括所述内容名、 所述内容源标识、 第二期望距离、 第二移动状态记录和所述内容名对应的内容, 所述 第二期望距离为所述请求兴趣包从发出所述请求兴趣包的客户端到 所述内容源的跳数距离, 所述第二移动状态记录包括第二状态标识 位和第二状态记录项, 所述第二状态标志位用于指示所述第二移动 状态记录的有效性, 所述第二状态记录项用于记录转发所述响应请 求数据包到所述客户端的每个网络节点的移动状态。
步骤 422 1为可选步骤。
本发明实施例所述的传输数据的方法, 首先, 客户端通过路由 器向内容源发送探测兴趣包, 内容源根据探测兴趣包包括的内容名 生成响应探测数据包, 且根据第一状态标志位添加该内容源的移动 状态到第一状态记录项, 再向路由器发送响应探测数据包, 路由器 根据第一状态标志位添加该路由器的移动状态到所述第一状态记录 项, 并向客户端转发响应探测数据包, 然后, 客户端选择第一响应 探测数据包, 并根据第一状态记录项确定第一期望距离的修订值, 生成请求兴趣包, 向路由器发送请求兴趣包, 在路由器根据第一期 望距离的修订值和所述跳数值转发所述请求兴趣包至所述内容源之 后, 当在第一预设时间段内没有接收到所述内容源发送的响应请求 数据包时, 路由器更新所述第一期望距离的修订值得到更新值, 并 根据所述更新值和所述跳数值转发所述请求兴趣包至内容源, 内容 源生成响应请求数据包, 并根据第二状态标志位判断所述第二移动 状态记录有效, 将该内容源的移动状态添加到第二状态记录项, 再 向路由器发送所述响应请求数据包, 路由器根据所述第二状态标志 位判断所述第二移动状态记录有效, 将该路由器的移动状态添加到 第二状态记录项, 并向客户端转发所述响应请求数据包。 相对于现 有技术, 通过路由器更新期望距离的修订值, 即增加期望距离的修 订值的跳数值, 再向内容源重复发送请求兴趣包, 以便于内容源接 收到请求兴趣包, 有效解决了 内容源或路由器接收请求兴趣包成功 率较低问题。
本发明实施例提供一种第一网络节点 50 , 如图 7所示, 包括: 第一接收单元 501 , 用于接收第二网络节点发送的探测兴趣 包, 所述探测兴趣包包括内容名。 探测兴趣包还包括跳数值, 该跳数值被置为 0 , 所述跳数值用 于指示所述探测兴趣包的转发次数, 当探测兴趣包被转发一次, 则 当前的跳数值加 1。 示例的, 当探测兴趣包从客户端发送到第一路 由器, 跳数值加 1 , 再由该第一路由器转发到第二路由器, 加 1 后 的跳数值再加 1。
第一生成单元 502 , 用于根据所述内容名生成响应探测数据 包, 所述响应探测数据包包括所述内容名、 内容源标识、 第一期望 距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包从 所述客户端到所述第一网络节点的跳数距离, 所述第一移动状态记 录包括第一状态记录项, 所述第一状态记录项用于记录转发所述响 应探测数据包到所述客户端的每个网络节点的移动状态。
响应探测数据包可以根据所述探测兴趣包的跳数值生成。
特别的, 响应探测数据包还可以包括内容名对应的内容。
第一添加单元 503 , 用于添加所述第一网络节点的移动状态到 所述第一状态记录项。
所述第一状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向。
第一发送单元 504 , 用于向所述第二网络节点发送所述响应探 测数据包, 以便于转发所述响应探测数据包到所述客户端的每个网 络节点添加网络节点自身的移动状态到所述第一状态记录项, 并向 所述客户端发送所述响应探测数据包。
第二接收单元 505 , 用于接收所述第二网络节点发送的请求兴 趣包, 所述请求兴趣包中包括所述内容名、 所述内容源标识、 所述 第一期望距离的修订值, 所述第一期望距离的修订值是所述客户端 根据所述响应探测数据包中的所述第一状态记录项以及所述第一期 望距离确定的。
这样一来, 通过在响应探测兴趣包的响应探测数据包中记录网 络节点的移动状态, 以便于客户端根据响应探测数据包中记录的网 络节点的移动状态以及期望距离确定期望距离的修订值, 从而生成 请求兴趣包, 使得网络节点接收所述请求兴趣包, 有效解决了 内容 源或路由器接收请求兴趣包成功率较低问题。
需要说明的是, 还可以接收所述第二网络节点或所述客户端重 复发送的所述请求兴趣包, 所述请求兴趣包包括更新值, 所述更新 值为所述客户端更新所述第一期望距离的修订值的更新值; 或者, 接收所述第二网络节点重复发送的所述请求兴趣包, 所述请求兴趣 包包括更新值, 所述更新值为所述第二网络节点更新所述第一期望 距离的修订值的更新值。
如图 8所示, 所述第一网络节点 50还包括:
第二生成单元 506 , 用于生成响应请求数据包, 所述响应请求 数据包包括第二期望距离、 第二移动状态记录和所述内容名对应的 内容, 所述第二期望距离为所述请求兴趣包从所述客户端到所述第 一网络节点的跳数距离, 所述第二移动状态记录包括第二状态记录 项, 所述第二状态记录项用于记录转发所述响应请求数据包到所述 客户端的每个网络节点的移动状态。
第一网络节点接收到第二网络节点发送的所述请求兴趣包, 解 析该请求兴趣包得到内容源标识和第一期望距离的修订值, 当所述 内容源标识与该第一网络节点的标识相同, 则第一网络节点生成响 应请求数据包。
第二添加单元 507 , 用于添加所述第一网络节点的移动状态到 所述第二状态记录项。
第一网络节点根据所述第二移动状态记录有效将该第一网络节 点的移动状态添加到第二状态记录项。 需要说明的是, 若所述第二 移动状态记录无效, 第一网络节点不必将该第一网络节点的移动状 态添加到第二状态记录项。 第二发送单元 508 , 用于向所述第二网络节点发送所述响应请 求数据包, 以便于转发所述响应请求数据包到所述客户端的每个网 络节点添加网络节点自身的移动状态到所述第二状态记录项, 并向 所述客户端发送所述响应请求数据包。
本发明实施例提供一种第二网络节点 60 , 如图 9所示, 包括: 第一接收单元 601 , 用于接收第一网络节点针对客户端发送的 探测兴趣包返回的响应探测数据包, 所述响应探测数据包包括内容 名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期 望距离为所述探测兴趣包从所述客户端到所述第一网络节点的跳数 距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态 记录项用于记录转发所述响应探测数据包到所述客户端的每个网络 节点的移动状态。
所述第一状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向。
需要说明的是, 在接收第一网络节点针对客户端发送的探测兴 趣包返回的响应探测数据包之前, 第二网络节点接收到客户端向至 少一个第一网络节点广播的探测兴趣包, 查询内容緩存表中是否存 储有内容名对应内容的响应数据包, 若内容緩存表中没有存储有内 容名对应内容的响应数据包, 查询响应表中是否存储有该内容名对 应内容的内容源标识, 若响应表中存储有该内容名对应内容的内容 源标识, 查询距离表中与该第二网络节点距离最近的第一网络节 点, 然后, 该第二网络节点的 PIT 记录该探测兴趣包, 该第二网络 节点向第一网络节点转发该探测兴趣包, 该探测兴趣包的跳数值加 1。 该距离表存储有与该第二网络节点距离最近的第一网络节点的 距离, 所述距离为该第二网络节点到所述最近的第一网络节点的跳 数距离。 该第二网络节点可以先向其他第二网络节点转发该探测兴 趣包, 由所述其他第二网络节点转发至第一网络节点, 或者该第二 网络节点直接将该探测兴趣包转发至第一网络节点。
需要说明的是, 若响应表中没有存储有该内容名对应内容的内 容源标识, 该第二网络节点继续广播该探测兴趣包, 当探测兴趣包 达到最大跳数值时, 丟弃该探测兴趣包。
第一添加单元 602 , 用于添加所述第二网络节点的移动状态到 所述第一状态记录项。
第一转发单元 603 , 用于向所述客户端转发所述响应探测数据 包。
第二接收单元 604 , 用于接收所述客户端根据所述响应探测数 据包发送的所述请求兴趣包, 所述请求兴趣包包括所述内容名、 所 述内容源标识、 所述第一期望距离的修订值和跳数值, 所述跳数值 用于指示所述请求兴趣包的转发次数, 所述第一期望距离的修订值 是所述客户端根据所述响应探测数据包中的所述第一状态记录项以 及所述第一期望距离确定的。
需要说明的是, 还可以接收所述客户端重复发送的所述请求兴 趣包, 所述请求兴趣包包括更新值, 所述更新值为更新所述第一期 望距离的修订值的更新值, 再根据所述更新值和所述跳数值转发所 述请求兴趣包至所述第一网络节点。
第二转发单元 605 , 用于根据所述第一期望距离的修订值和所 述跳数值转发所述请求兴趣包至所述第一网络节点。
第二网络节点接收到所述客户端发送的所述请求兴趣包, 该跳 数值增加 1。 第二网络节点查询内容緩存表 ( C S ) 中是否存储有内 容名对应内容的响应数据包, 若内容緩存表中没有存储有内容名对 应内容的响应数据包, 查询兴趣包驻留表( PIT )是否记录有该请求 兴趣包, 若兴趣包驻留表( PIT ) 没有记录该请求兴趣包, 查询响应 表中是否存储有该内容名对应内容的第一网络节点标识, 若响应表 中存储有该内容名对应内容的第一网络节点标识, 查询距离表中与 该第二网络节点距离最近的第一网络节点, 根据第一期望距离的修 订值和跳数值转发所述请求兴趣包至第一网络节点。 特别的, 若兴 趣包驻留表( PIT )记录该请求兴趣包, 该第二网络节点丟弃该请求 兴趣包。
所述第二转发单元 605具体用于:
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和小于等于所述第一期望距离的修订 值, 转发所述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和大于所述第一期望距离的修订值, 延 时预设时长后转发所述请求兴趣包至所述第一网络节点。 所述延时 预设时长后转发为路由器在转发请求兴趣包之前额外增加一个预设 时长, 即等待一段额外的时间再转发请求兴趣包。
需要说明的是, 第一期望距离的修订值为请求兴趣包从客户端 到第一网络节点的总跳数值, 跳数值为已经转发请求兴趣包的次 数, 距离表中存储有该第二网络节点与第一网络节点的距离, 所述 距离为该第二网络节点到所述最近的第一网络节点的跳数距离。 当 请求兴趣包中的跳数值与距离表中存储的该第二网络节点到第一网 络节点的跳数距离之和小于等于第一期望距离的修订值, 该第二网 络节点转发请求兴趣包; 当请求兴趣包中的跳数值与距离表中存储 的该第二网络节点到第一网络节点的跳数距离之和大于第一期望距 离的修订值, 再延时转发请求兴趣包, 或者丟弃该请求兴趣包。
这样一来, 第二网络节点将该第二网络节点的移动状态添加到 第一移动状态记录中的状态记录项, 以便于客户端根据响应探测数 据包中记录的网络节点的移动状态以及期望距离确定期望距离的修 订值, 从而生成请求兴趣包, 使得网络节点接收所述请求兴趣包, 有效解决了内容源或路由器接收请求兴趣包成功率较低问题。 如图 10所示, 所述第二网络节点 60还包括:
第三接收单元 606 , 用于接收所述第一网络节点发送的所述响 应请求数据包, 所述响应请求数据包包括第二期望距离、 第二移动 状态记录和所述内容名对应的内容, 所述第二期望距离为所述请求 兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第二移 动状态记录包括第二状态记录项, 所述第二状态记录项用于记录转 发所述响应请求数据包到所述客户端的每个网络节点的移动状态。
所述第二状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向, 所述网 络节点可以是第二网络节点或第一网络节点。
第二添加单元 607 , 用于添加所述第二网络节点的移动状态到 所述第二状态记录项。
第三转发单元 608 , 用于向所述客户端转发所述响应请求数据 包。
所述第二网络节点 60还包括:
更新单元 609 , 用于若在第一预设时间段内没有接收到所述第 一网络节点发送的响应请求数据包, 更新所述第一期望距离的修订 值得到更新值, 所述请求兴趣包包括所述第一预设时间段。
第二网络节点接收到所述客户端发送的请求兴趣包, 所述请求 兴趣包包括第一期望距离的修订值和跳数值, 在第二网络节点根据 第一期望距离的修订值和所述跳数值转发所述请求兴趣包至所述第 一网络节点之后, 当在第一预设时间段内没有接收到所述第一网络 节点发送的响应请求数据包时, 更新所述第一期望距离的修订值得 到更新值, 所述请求兴趣包包括所述第一预设时间段。 需要说明的 是, 在该第二网络节点与第一网络节点之间的其他网络节点出现故 障时, 该第二网络节点可以更新所述第一期望距离的修订值得到更 新值。 示例的, 更新第一期望距离的修订值得到更新值, 即可以将第 一期望距离的修订值增加 1。 假设第一期望距离的修订值为 4 跳, 可以将第一期望距离的修订值增加 1 跳, 更新第一期望距离的修订 值得到更新值为 5跳。
所述第二转发单元 605还用于:
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一 网络节点, 所述请求兴趣包包括更新值。
本发明实施例提供一种客户端 70 , 如图 1 1所示, 包括: 第一接收单元 701 , 用于接收至少一个网络节点针对所述客户 端发送的探测兴趣包返回发送的响应探测数据包。
在接收至少一个网络节点针对所述客户端发送的探测兴趣包返 回的响应探测数据包之前, 客户端向至少一个网络节点发送探测兴 趣包, 所述探测兴趣包包括内容名。
选择单元 702 , 用于从所述接收的响应探测数据包中选择第一 响应探测数据包, 所述第一响应探测数据包包括内容名、 内容源标 识、 第一期望距离和第一移动状态记录, 所述第一期望距离为所述 探测兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第 一移动状态记录包括第一状态记录项, 所述第一状态记录项用于记 录转发第一响应探测数据包到所述客户端的每个网络节点的移动状 态。
所述选择单元 702具体用于:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第 一响应探测数据包。
例如, 客户端接收到至少一个路由器转发的响应探测数据包 后, 首先, 客户端解析响应探测数据包, 得到第一期望距离和第一 移动状态记录的信息, 然后, 客户端可以根据第一期望距离、 第一 移动状态记录和选择规则中至少一个选择一个响应探测数据包, 使 得客户端根据该响应探测数据包生成请求兴趣包, 所述选择规则可 以是转发响应探测数据包的路由器处理该响应探测数据包的速度或 者是客户端第一个接收到的响应探测数据包。
例如, 当客户端接收到两个响应探测数据包, 两个响应探测数 据包分别为第一个响应探测数据包和第二个响应探测数据包, 所述 第一个响应探测数据包为客户端先接收到的响应探测数据包, 所述 第二个响应探测数据包为客户端接收到该第一个响应探测数据包之 后接收到的响应探测数据包, 所述第一个响应探测数据包和所述第 二个响应探测数据包都是为了响应客户端向内容源发送的探测兴趣 包的响应探测数据包。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 探测数据包中的第一期望距离记录该第二个响应探测数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第一期望距离选择 跳数距离短的响应探测数据包, 即可以选择经过较少路由器转发的 第一个响应探测数据包生成请求兴趣包。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离与该第二个响应探测数 据包中的第一期望距离记录该第二个响应探测数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应探测数据包中 的第一移动状态记录中记录的转发该第一个响应探测数据包的网络 节点的移动状态和该第二个响应探测数据包中的第一移动状态记录 中记录的转发该第二个响应探测数据包的网络节点的移动状态, 若 转发第二个响应探测数据包的网络节点的移动状态相比转发第一个 响应探测数据包的网络节点的移动状态较稳定, 即转发第二个响应 探测数据包的网络节点的移动速度可能较慢, 转发第一个响应探测 数据包的网络节点的移动速度可能较快, 客户端可以根据第一移动 状态记录选择经过较稳定的路由器转发的第二个响应探测数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离与该第二个响应探测数 据包中的第一期望距离记录该第二个响应探测数据包从内容源到客 户端的跳数距离相等, 且该第一个响应探测数据包中的第一移动状 态记录中记录的转发该第一个响应探测数据包的网络节点的移动状 态和该第二个响应探测数据包中的第一移动状态记录中记录的转发 该第二个响应探测数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应探测数据包较快的路由器转发的第一个 响应探测数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应探测数据包, 当客户 端接收到响应探测数据包, 则客户端选择所述响应探测数据包生成 请求兴趣包。
在实际应用中, 所述响应探测数据包可以是第一响应探测数据 包, 该第一响应探测数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应探测数据包。
确定单元 703 , 用于根据所述第一状态记录项以及所述第一期 望距离确定所述第一期望距离的修订值。
所述第一状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向。
生成单元 704 , 用于生成请求兴趣包, 所述请求兴趣包包括所 述内容名、 所述内容源标识、 所述第一期望距离的修订值和跳数 值, 所述跳数值用于指示所述请求兴趣包的转发次数。
发送单元 705 , 用于向至少一个网络节点发送所述请求兴趣 包。 这样一来, 客户端根据响应探测数据包中记录的网络节点的移 动状态以及期望距离确定期望距离的修订值, 从而生成请求兴趣 包, 使得网络节点接收所述请求兴趣包, 有效解决了 内容源或路由 器接收请求兴趣包成功率较低问题。
所述确定单元 703具体用于:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及 所述第一期望距离确定所述第一期望距离的修订值, 所述第一期望 距离的修订值大于、 小于或等于所述第一期望距离。
如图 12所示, 所述客户端 70还包括:
第二接收单元 706 , 用于接收针对所述请求数据包返回的响应 请求数据包。
可选的, 选择第一响应请求数据包, 所述第一响应请求数据包 包括所述内容名、 所述内容源标识、 第二期望距离、 第二移动状态 记录和所述内容名对应的内容, 所述第二期望距离为所述请求兴趣 包从所述客户端到所述第一网络节点的跳数距离, 所述第二移动状 态记录包括第二状态记录项, 所述第二状态记录项用于记录转发所 述响应请求数据包到所述客户端的每个网络节点的移动状态。
客户端接收到至少一个路由器转发的响应请求数据包后, 首 先, 客户端解析响应请求数据包, 得到期望距离和移动状态记录的 信息, 然后, 客户端可以根据期望距离、 移动状态记录和中至少一 个选择一个响应请求数据包, 使得客户端根据该响应请求数据包生 成请求兴趣包, 所述可以是转发响应请求数据包的路由器处理该响 应请求数据包的速度或者是客户端第一个接收到的响应请求数据 包。
例如, 当客户端接收到两个响应请求数据包, 两个响应请求数 据包分别为第一个响应请求数据包和第二个响应请求数据包, 所述 第一个响应请求数据包为客户端先接收到的响应请求数据包, 所述 第二个响应请求数据包为客户端接收到该第一个响应请求数据包之 后接收到的响应请求数据包, 所述第一个响应请求数据包和所述第 二个响应请求数据包都是为了响应客户端向内容源发送的请求兴趣 包的响应请求数据包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 请求数据包中的第二期望距离记录该第二个响应请求数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第二期望距离选择 跳数距离短的响应请求数据包, 即可以选择经过较少路由器转发的 第一个响应请求数据包生成请求兴趣包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应请求数据包中 的第二移动状态记录中记录的转发该第一个响应请求数据包的网络 节点的移动状态和该第二个响应请求数据包中的第二移动状态记录 中记录的转发该第二个响应请求数据包的网络节点的移动状态, 若 转发第二个响应请求数据包的网络节点的移动状态相比转发第一个 响应请求数据包的网络节点的移动状态较稳定, 即转发第二个响应 请求数据包的网络节点的移动速度可能较慢, 转发第一个响应请求 数据包的网络节点的移动速度可能较快, 客户端可以根据第二移动 状态记录选择经过较稳定的路由器转发的第二个响应请求数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 且该第一个响应请求数据包中的第二移动状 态记录中记录的转发该第一个响应请求数据包的网络节点的移动状 态和该第二个响应请求数据包中的第二移动状态记录中记录的转发 该第二个响应请求数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应请求数据包较快的路由器转发的第一个 响应请求数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应请求数据包, 当客户 端接收到响应请求数据包, 则客户端选择所述响应请求数据包生成 请求兴趣包。
在实际应用中, 所述响应请求数据包可以是第一响应请求数据 包, 该第一响应请求数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应请求数据包。
所述客户端 70还包括:
更新单元 707 , 用于若在第一预设时间段内没有接收到针对所 述请求数据包返回的响应请求数据包, 更新所述第一期望距离的修 订值得到更新值, 所述请求兴趣包包括所述第一预设时间段。
在客户端向至少一个网络节点发送请求兴趣包之后, 当在第一 预设时间段内没有接收到至少一个网络节点发送的响应请求数据包 时, 更新第一期望距离的修订值得到更新值, 所述请求兴趣包包括 所述第一预设时间段。
示例的, 更新第一期望距离的修订值得到更新值, 即可以将第 一期望距离的修订值增加 1。 假设第一期望距离的修订值为 3 跳, 可以将第一期望距离的修订值增加 1 跳, 更新第一期望距离的修订 值得到更新值为 4跳。
所述发送单元 705还用于:
向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述 更新后的请求兴趣包包括所述更新值。
本发明实施例提供一种传输数据系统 80 , 如图 13 所示, 包 括:
至少一个第一网络节点 801 , 至少一个第二网络节点 802 , 客 户端 803 , 第一网络节点 801、 第二网络节点 802和客户端 803之间 通过无线进行消息交互, 所述第一网络节点 801 可以是路由器或内 容源, 所述第二网络节点 802可以是路由器,
客户端 803 , 用于接收至少一个网络节点针对所述客户端发送 的探测兴趣包返回的响应探测数据包; 从所述接收的响应探测数据 包中选择第一响应探测数据包, 所述第一响应探测数据包包括内容 名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期 望距离为所述探测兴趣包从所述客户端到所述第一网络节点的跳数 距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态 记录项用于记录转发所述第一响应探测数据包到所述客户端的每个 网络节点的移动状态; 根据所述第一状态记录项以及所述第一期望 距离确定所述第一期望距离的修订值; 生成请求兴趣包, 所述请求 兴趣包包括所述内容名、 所述内容源标识、 所述第一期望距离的修 订值和跳数值, 所述跳数值用于指示所述请求兴趣包的转发次数; 向至少一个网络节点发送所述请求兴趣包。
第二网络节点 802 , 用于接收第一网络节点针对客户端发送的 探测兴趣包返回的响应探测数据包, 所述响应探测数据包包括内容 名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期 望距离为所述探测兴趣包从所述客户端到所述第一网络节点的跳数 距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态 记录项用于记录转发所述响应探测数据包到所述客户端的每个网络 节点的移动状态; 添加所述第二网络节点的移动状态到所述第一状 态记录项; 向所述客户端转发所述响应探测数据包; 接收所述客户 端根据所述响应探测数据包发送的所述请求兴趣包, 所述请求兴趣 包包括所述内容名、 所述内容源标识、 所述第一期望距离的修订值 和跳数值, 所述跳数值用于指示所述请求兴趣包的转发次数, 所述 第一期望距离的修订值是所述客户端根据所述响应探测数据包中的 所述第一状态记录项以及所述第一期望距离确定的; 根据所述第一 期望距离的修订值和所述跳数值转发所述请求兴趣包至所述第一网 络节点。
第一网络节点 801 , 用于接收第二网络节点发送的探测兴趣 包, 所述探测兴趣包包括内容名; 根据所述内容名生成响应探测数 据包, 所述响应探测数据包包括所述内容名、 内容源标识、 第一期 望距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包 从所述客户端到所述第一网络节点的跳数距离, 所述第一移动状态 记录包括第一状态记录项, 所述第一状态记录项用于记录转发所述 响应探测数据包到所述客户端的每个网络节点的移动状态; 添加所 述第一网络节点的移动状态到所述第一状态记录项; 向所述第二网 络节点发送所述响应探测数据包, 以便于转发所述响应探测数据包 到所述客户端的每个网络节点添加网络节点自身的移动状态到所述 第一状态记录项, 并向所述客户端发送所述响应探测数据包; 接收 所述第二网络节点发送的请求兴趣包, 所述请求兴趣包中包括所述 内容名、 所述内容源标识、 所述第一期望距离的修订值, 所述第一 期望距离的修订值是所述客户端根据所述响应探测数据包中的所述 第一状态记录项以及所述第一期望距离确定的。
本发明实施例提供一种第一网络节点 90 , 如图 14 所示, 包 括:
接收机 901 , 用于接收第二网络节点发送的探测兴趣包, 所述 探测兴趣包包括内容名。
探测兴趣包还包括跳数值, 该跳数值被置为 0 , 所述跳数值用 于指示所述探测兴趣包的转发次数, 当探测兴趣包被转发一次, 则 当前的跳数值加 1。 示例的, 当探测兴趣包从客户端发送到第一路 由器, 跳数值加 1 , 再由该第一路由器转发到第二路由器, 加 1 后 的跳数值再加 1。
存储器 902 , 用于存储程序代码。
处理器 903 , 用于调用所述存储器 902存储的程序代码执行如 下方法: 根据所述内容名生成响应探测数据包, 所述响应探测数据 包包括所述内容名、 内容源标识、 第一期望距离和第一移动状态记 录, 所述第一期望距离为所述探测兴趣包从所述客户端到所述第一 网络节点的跳数距离, 所述第一移动状态记录包括第一状态记录 项, 所述第一状态记录项用于记录转发所述响应探测数据包到所述 客户端的每个网络节点的移动状态。
响应探测数据包可以根据所述探测兴趣包的跳数值生成。
特别的, 响应探测数据包还可以包括内容名对应的内容。
所述处理器 903执行的方法还包括:
添加所述第一网络节点的移动状态到所述第一状态记录项。 所述第一状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向。
发射机 904 , 用于向所述第二网络节点发送所述响应探测数据 包, 以便于转发所述响应探测数据包到所述客户端的每个网络节点 添加网络节点自身的移动状态到所述第一状态记录项, 并向所述客 户端发送所述响应探测数据包。
所述接收机 901还用于:
接收所述第二网络节点发送的所述请求兴趣包, 所述请求兴趣 包中包括所述内容名、 所述内容源标识、 所述第一期望距离的修订 值, 所述第一期望距离的修订值是所述客户端根据所述响应探测数 据包中的所述第一状态记录项以及所述第一期望距离确定的。
这样一来, 通过在响应探测兴趣包的响应探测数据包中记录网 络节点的移动状态, 以便于客户端根据响应探测数据包中记录的网 络节点的移动状态以及期望距离确定期望距离的修订值, 从而生成 请求兴趣包, 使得网络节点接收所述请求兴趣包, 有效解决了 内容 源或路由器接收请求兴趣包成功率较低问题。
需要说明的是, 接收机还可以接收所述第二网络节点或所述客 户端重复发送的所述请求兴趣包, 所述请求兴趣包包括更新值, 所 述更新值为所述客户端更新所述第一期望距离的修订值的更新值; 接收所述第二网络节点重复发送的所述请求兴趣包, 所述请求兴趣 包包括更新值, 所述更新值为所述第二网络节点更新所述第一期望 距离的修订值的更新值。
所述处理器 903执行的方法还包括:
生成响应请求数据包, 所述响应请求数据包包括第二期望距 离、 第二移动状态记录和所述内容名对应的内容, 所述第二期望距 离为所述请求兴趣包从所述客户端到所述第一网络节点的跳数距 离, 所述第二移动状态记录包括第二状态记录项, 所述第二状态记 录项用于记录转发所述响应请求数据包到所述客户端的每个网络节 点的移动状态。
第一网络节点接收到第二网络节点发送的所述请求兴趣包, 解 析该请求兴趣包得到内容源标识和第一期望距离的修订值, 当所述 内容源标识与该第一网络节点的标识相同, 则第一网络节点生成响 应请求数据包。
所述处理器 903执行的方法还包括:
添加所述第一网络节点的移动状态到所述第二状态记录项。 第一网络节点根据所述第二移动状态记录有效将该第一网络节 点的移动状态添加到第二状态记录项。 需要说明的是, 若所述第二 移动状态记录无效, 第一网络节点不必将该第一网络节点的移动状 态添加到第二状态记录项。
所述发射机 904还用于: 向所述第二网络节点发送所述响应请求数据包, 以便于转发所 述响应请求数据包到所述客户端的每个网络节点添加网络节点自身 的移动状态到所述第二状态记录项, 并向所述客户端发送所述响应 请求数据包。
本发明实施例提供一种第二网络节点 100 , 如图 15 所示, 包 括:
接收机 1001 , 用于接收第一网络节点针对客户端发送的探测 兴趣包返回的响应探测数据包, 所述响应探测数据包包括内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期望距 离为所述探测兴趣包从所述客户端到所述第一网络节点的跳数距 离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态记 录项用于记录转发所述响应探测数据包到所述客户端的每个网络节 点的移动状态。
所述第一状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向。
需要说明的是, 在接收所述第一网络节点针对客户端发送的探 测兴趣包返回的响应探测数据包之前, 第二网络节点接收到客户端 向至少一个第一网络节点广播的探测兴趣包, 查询内容緩存表中是 否存储有内容名对应内容的响应数据包, 若内容緩存表中没有存储 有内容名对应内容的响应数据包, 查询响应表中是否存储有该内容 名对应内容的内容源标识, 若响应表中存储有该内容名对应内容的 内容源标识, 查询距离表中与该第二网络节点距离最近的第一网络 节点, 然后, 该第二网络节点的 PIT 记录该探测兴趣包, 该第二网 络节点向第一网络节点转发该探测兴趣包, 该探测兴趣包的跳数值 加 1。 该距离表存储有与该第二网络节点距离最近的第一网络节点 的距离, 所述距离为该第二网络节点到所述最近的第一网络节点的 跳数距离。 该第二网络节点可以先向其他第二网络节点转发该探测 兴趣包, 由所述其他第二网络节点转发至第一网络节点, 或者该第 二网络节点直接将该探测兴趣包转发至第一网络节点。
需要说明的是, 若响应表中没有存储有该内容名对应内容的内 容源标识, 该第二网络节点继续广播该探测兴趣包, 当探测兴趣包 达到最大跳数值时, 丟弃该探测兴趣包。
存储器 1002 , 用于存储程序代码。
处理器 1003 , 用于调用所述存储器 1002 存储的程序代码执行 如下方法: 添加所述第二网络节点的移动状态到所述第一状态记录 项;
发射机 1004 , 用于向所述客户端转发所述响应探测数据包; 所述接收机 1001还用于:
接收所述客户端根据所述响应探测数据包发送的所述请求兴趣 包, 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一 期望距离的修订值和跳数值, 所述跳数值用于指示所述请求兴趣包 的转发次数, 所述第一期望距离的修订值是所述客户端根据所述响 应探测数据包中的所述第一状态记录项以及所述第一期望距离确定 的。
需要说明的是, 接收机还可以接收所述客户端重复发送的所述 请求兴趣包, 所述请求兴趣包包括更新值, 所述更新值为更新所述 第一期望距离的修订值的更新值。
所述发射机 1004还用于:
根据所述第一期望距离的修订值和所述跳数值转发所述请求兴 趣包至所述第一网络节点。
第二网络节点接收到所述客户端发送的所述请求兴趣包, 该跳 数值增加 1。 第二网络节点查询内容緩存表 ( C S ) 中是否存储有内 容名对应内容的响应数据包, 若内容緩存表中没有存储有内容名对 应内容的响应数据包, 查询兴趣包驻留表( PIT )是否记录有该请求 兴趣包, 若兴趣包驻留表( PIT ) 没有记录该请求兴趣包, 查询响应 表中是否存储有该内容名对应内容的第一网络节点标识, 若响应表 中存储有该内容名对应内容的第一网络节点标识, 查询距离表中与 该第二网络节点距离最近的第一网络节点, 根据第一期望距离的修 订值和跳数值转发所述请求兴趣包至第一网络节点。 所述请求兴趣 包包括所述内容名、 所述第一网络节点标识、 所述第一期望距离的 修订值和跳数值, 所述跳数值用于指示所述请求兴趣包的转发次 数。 特别的, 若兴趣包驻留表( PIT )记录该请求兴趣包, 该第二网 络节点丟弃该请求兴趣包。
所述发射机 1004具体用于:
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和小于等于所述第一期望距离的修订 值, 转发所述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述 第一网络节点的跳数距离之和大于所述第一期望距离的修订值, 延 时预设时长后转发所述请求兴趣包至所述第一网络节点。 所述延时 预设时长后转发为路由器在转发请求兴趣包之前额外增加一个预设 时长, 即等待一段额外的时间再转发请求兴趣包。
需要说明的是, 第一期望距离的修订值为请求兴趣包从客户端 到第一网络节点的总跳数值, 跳数值为已经转发请求兴趣包的次 数, 距离表中存储有该第二网络节点与第一网络节点的距离, 所述 距离为该第二网络节点到所述最近的第一网络节点的跳数距离。 当 请求兴趣包中的跳数值与距离表中存储的该第二网络节点到第一网 络节点的跳数距离之和小于等于第一期望距离的修订值, 该第二网 络节点转发请求兴趣包; 当请求兴趣包中的跳数值与距离表中存储 的该第二网络节点到第一网络节点的跳数距离之和大于第一期望距 离的修订值, 再延时转发请求兴趣包, 或者丟弃该请求兴趣包。 这样一来, 第二网络节点将该第二网络节点的移动状态添加到 第一移动状态记录中的状态记录项, 以便于客户端根据响应探测数 据包中记录的网络节点的移动状态以及期望距离确定期望距离的修 订值, 从而生成请求兴趣包, 使得网络节点接收所述请求兴趣包, 有效解决了内容源或路由器接收请求兴趣包成功率较低问题。
所述接收机 1001还用于:
接收所述第一网络节点发送的所述响应请求数据包, 所述响应 请求数据包包括第二期望距离、 第二移动状态记录和所述内容名对 应的内容, 所述第二期望距离为所述请求兴趣包从所述客户端到所 述第一网络节点的跳数距离, 所述第二移动状态记录包括第二状态 记录项, 所述第二状态记录项用于记录转发所述响应请求数据包到 所述客户端的每个网络节点的移动状态。
所述第二状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向, 所述网 络节点可以是第二网络节点或第一网络节点。
所述处理器 1003执行的方法还包括:
添加所述第二网络节点的移动状态到所述第二状态记录项。 第二网络节点根据所述第二移动状态记录有效将该第二网络节 点的移动状态添加到第二状态记录项。 需要说明的是, 若所述第二 移动状态记录无效, 第二网络节点不必将该第二网络节点的移动状 态添加到第二状态记录项。
所述发射机 1004还用于:
向所述客户端转发所述响应请求数据包。
所述处理器 1003执行的方法还包括:
若在第一预设时间段内没有接收到所述第一网络节点发送的响 应请求数据包, 更新所述第一期望距离的修订值得到更新值, 所述 请求兴趣包包括所述第一预设时间段。 所述发射机 1004还用于:
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一 网络节点, 所述请求兴趣包包括更新值。
第二网络节点接收到所述客户端发送的请求兴趣包, 所述请求 兴趣包包括第一期望距离的修订值和跳数值, 在第二网络节点根据 第一期望距离的修订值和所述跳数值转发所述请求兴趣包至所述第 一网络节点之后, 当在第二预设时间段内没有接收到所述第一网络 节点发送的响应请求数据包时, 更新所述第一期望距离的修订值得 到更新值, 所述请求兴趣包包括所述第二预设时间段。 需要说明的 是, 在该第二网络节点与第一网络节点之间的其他第二网络节点出 现故障时, 该第二网络节点可以更新所述第一期望距离的修订值得 到更新值。
本发明实施例提供一种客户端 1 10 , 如图 16所示, 包括: 接收机 1 101 , 用于接收至少一个网络节点针对所述客户端发 送的探测兴趣包返回发送的响应探测数据包。
在接收至少一个网络节点针对所述客户端发送的探测兴趣包返 回发送的响应探测数据包之前, 向至少一个网络节点发送探测兴趣 包, 所述探测兴趣包包括内容名。
存储器 1 102 , 用于存储程序代码。
处理器 1 103 , 用于调用所述存储器存储的程序代码执行如下 方法:
从所述接收的响应探测数据包中选择第一响应探测数据包, 所 述第一响应探测数据包包括内容名、 内容源标识、 第一期望距离和 第一移动状态记录, 所述第一期望距离为所述探测兴趣包从所述客 户端到所述第一网络节点的跳数距离, 所述第一移动状态记录包括 第一状态记录项, 所述第一状态记录项用于记录转发第一响应探测 数据包到所述客户端的每个网络节点的移动状态。 所述状态记录项中的移动状态包括网络节点的移动速度和移动 方向
客户端接收到至少一个路由器转发的响应探测数据包后, 首 先, 客户端解析响应探测数据包, 得到第一期望距离和第一移动状 态记录的信息, 然后, 客户端可以根据第一期望距离、 第一移动状 态记录和选择规则中至少一个选择一个响应探测数据包, 使得客户 端根据该响应探测数据包生成请求兴趣包, 所述选择规则可以是转 发响应探测数据包的路由器处理该响应探测数据包的速度或者是客 户端第一个接收到的响应探测数据包。
例如, 当客户端接收到两个响应探测数据包, 两个响应探测数 据包分别为第一个响应探测数据包和第二个响应探测数据包, 所述 第一个响应探测数据包为客户端先接收到的响应探测数据包, 所述 第二个响应探测数据包为客户端接收到该第一个响应探测数据包之 后接收到的响应探测数据包, 所述第一个响应探测数据包和所述第 二个响应探测数据包都是为了响应客户端向内容源发送的探测兴趣 包的响应探测数据包。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 探测数据包中的第一期望距离记录该第二个响应探测数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第一期望距离选择 跳数距离短的响应探测数据包, 即可以选择经过较少路由器转发的 第一个响应探测数据包生成请求兴趣包。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离与该第二个响应探测数 据包中的第一期望距离记录该第二个响应探测数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应探测数据包中 的第一移动状态记录中记录的转发该第一个响应探测数据包的网络 节点的移动状态和该第二个响应探测数据包中的第一移动状态记录 中记录的转发该第二个响应探测数据包的网络节点的移动状态, 若 转发第二个响应探测数据包的网络节点的移动状态相比转发第一个 响应探测数据包的网络节点的移动状态较稳定, 即转发第二个响应 探测数据包的网络节点的移动速度可能较慢, 转发第一个响应探测 数据包的网络节点的移动速度可能较快, 客户端可以根据第一移动 状态记录选择经过较稳定的路由器转发的第二个响应探测数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应探测数据包中的第一期望距离记录该第一个响 应探测数据包从内容源到客户端的跳数距离与该第二个响应探测数 据包中的第一期望距离记录该第二个响应探测数据包从内容源到客 户端的跳数距离相等, 且该第一个响应探测数据包中的第一移动状 态记录中记录的转发该第一个响应探测数据包的网络节点的移动状 态和该第二个响应探测数据包中的第一移动状态记录中记录的转发 该第二个响应探测数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应探测数据包较快的路由器转发的第一个 响应探测数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应探测数据包, 当客户 端接收到响应探测数据包, 则客户端选择所述响应探测数据包生成 请求兴趣包。
在实际应用中, 所述响应探测数据包可以是第一响应探测数据 包, 该第一响应探测数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应探测数据包。
所述处理器 1 103执行的方法还包括:
根据所述第一状态记录项以及所述第一期望距离确定所述第一 期望距离的修订值。
所述第一状态记录项包括至少一个网络节点的移动状态, 所述 移动状态包括网络节点的移动速度和网络节点的移动方向。
生成请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容 源标识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于指 示所述请求兴趣包的转发次数。
发射机 1 104 , 用于向至少一个网络节点发送所述请求兴趣 包。
这样一来, 客户端根据响应探测数据包中记录的网络节点的移 动状态以及期望距离确定期望距离的修订值, 从而生成请求兴趣 包, 使得网络节点接收所述请求兴趣包, 有效解决了 内容源或路由 器接收请求兴趣包成功率较低问题。
所述处理器 1 103执行的方法包括:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及 所述第一期望距离确定所述第一期望距离的修订值, 所述第一期望 距离的修订值大于、 小于或等于所述第一期望距离。
所述处理器 1 103执行的方法包括:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第 一响应探测数据包。
所述接收机 1 101还用于:
接收针对所述请求数据包返回的响应请求数据包。
可选的, 选择第一响应请求数据包, 所述第一响应请求数据包 包括所述内容名、 所述内容源标识、 第二期望距离、 第二移动状态 记录和所述内容名对应的内容, 所述第二期望距离为所述请求兴趣 包从所述客户端到所述第一网络节点的跳数距离, 所述第二移动状 态记录包括状态标识位和状态记录项, 所述状态标志位用于指示所 述第二移动状态记录的有效性, 所述状态记录项用于记录转发第一 响应请求数据包到所述客户端的每个网络节点的移动状态。 客户端接收到至少一个路由器转发的响应请求数据包后, 首 先, 客户端解析响应请求数据包, 得到第二期望距离和第二移动状 态记录的信息, 然后, 客户端可以根据第二期望距离、 第二移动状 态记录和选择规则中至少一个选择一个响应请求数据包, 使得客户 端根据该响应请求数据包生成请求兴趣包, 所述选择规则可以是转 发响应请求数据包的路由器处理该响应请求数据包的速度或者是客 户端第一个接收到的响应请求数据包。
例如, 当客户端接收到两个响应请求数据包, 两个响应请求数 据包分别为第一个响应请求数据包和第二个响应请求数据包, 所述 第一个响应请求数据包为客户端先接收到的响应请求数据包, 所述 第二个响应请求数据包为客户端接收到该第一个响应请求数据包之 后接收到的响应请求数据包, 所述第一个响应请求数据包和所述第 二个响应请求数据包都是为了响应客户端向内容源发送的请求兴趣 包的响应请求数据包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离为 3 跳, 该第二个响应 请求数据包中的第二期望距离记录该第二个响应请求数据包从内容 源到客户端的跳数距离为 4跳, 客户端可以根据第二期望距离选择 跳数距离短的响应请求数据包, 即可以选择经过较少路由器转发的 第一个响应请求数据包生成请求兴趣包。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 客户端可以检查该第一个响应请求数据包中 的第二移动状态记录中记录的转发该第一个响应请求数据包的网络 节点的移动状态和该第二个响应请求数据包中的第二移动状态记录 中记录的转发该第二个响应请求数据包的网络节点的移动状态, 若 转发第二个响应请求数据包的网络节点的移动状态相比转发第一个 响应请求数据包的网络节点的移动状态较稳定, 即转发第二个响应 请求数据包的网络节点的移动速度可能较慢, 转发第一个响应请求 数据包的网络节点的移动速度可能较快, 客户端可以根据第二移动 状态记录选择经过较稳定的路由器转发的第二个响应请求数据包生 成请求兴趣包, 所述网络节点可以是路由器或内容源。
若该第一个响应请求数据包中的第二期望距离记录该第一个响 应请求数据包从内容源到客户端的跳数距离与该第二个响应请求数 据包中的第二期望距离记录该第二个响应请求数据包从内容源到客 户端的跳数距离相等, 且该第一个响应请求数据包中的第二移动状 态记录中记录的转发该第一个响应请求数据包的网络节点的移动状 态和该第二个响应请求数据包中的第二移动状态记录中记录的转发 该第二个响应请求数据包的网络节点的移动状态相同, 客户端可以 根据选择规则选择处理响应请求数据包较快的路由器转发的第一个 响应请求数据包生成请求兴趣包。
当选择规则是客户端第一个接收到的响应请求数据包, 当客户 端接收到响应请求数据包, 则客户端选择所述响应请求数据包生成 请求兴趣包。
在实际应用中, 所述响应请求数据包可以是第一响应请求数据 包, 该第一响应请求数据包可以是经过最少的网络节点转发, 且所 述网络节点较稳定的响应请求数据包。
所述处理器 1 103执行的方法还包括:
若在第一预设时间段内没有接收到至少一个网络节点发送的响 应请求数据包, 更新所述第一期望距离的修订值得到更新值, 所述 请求兴趣包包括所述第一预设时间段。
在客户端向至少一个网络节点发送请求兴趣包之后, 当在第一 预设时间段内没有接收到至少一个网络节点发送的响应请求数据包 时, 更新第一期望距离的修订值得到更新值, 所述请求兴趣包包括 所述第一预设时间段。
示例的, 更新第一期望距离的修订值得到更新值, 即可以将第 一期望距离的修订值增加 1。 假设第一期望距离的修订值为 3 跳, 可以将第一期望距离的修订值增加 1 跳, 更新第一期望距离的修订 值得到更新值为 4跳。
所述发射机 1 104还用于:
向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述 更新后的请求兴趣包包括所述更新值。
本发明实施例提供一种传输数据系统 120 , 如图 17 所示, 包 括:
至少一个第一网络节点 1201 , 至少一个第二网络节点 1202 , 至少一个客户端 1203 , 第一网络节点 1201、 第二网络节点 1202和 客户端 1203 之间通过无线进行消息交互, 所述第一网络节点 1201 可以是内容源或路由器, 所述第二网络节点 1202可以是路由器, 客户端 1203 , 用于接收至少一个网络节点针对所述客户端发 送的探测兴趣包返回的响应探测数据包; 从所述接收的响应探测数 据包中选择第一响应探测数据包, 所述第一响应探测数据包包括内 容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一 期望距离为所述探测兴趣包从所述客户端到所述第一网络节点的跳 数距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状 态记录项用于记录转发所述第一响应探测数据包到所述客户端的每 个网络节点的移动状态; 根据所述第一状态记录项以及所述第一期 望距离确定所述第一期望距离的修订值; 生成请求兴趣包, 所述请 求兴趣包包括所述内容名、 所述内容源标识、 所述第一期望距离的 修订值和跳数值, 所述跳数值用于指示所述请求兴趣包的转发次 数; 向至少一个网络节点发送所述请求兴趣包。 第二网络节点 1202 , 用于接收第一网络节点针对客户端发送 的探测兴趣包返回的响应探测数据包, 所述响应探测数据包包括内 容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一 期望距离为所述探测兴趣包从所述客户端到所述第一网络节点的跳 数距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状 态记录项用于记录转发所述响应探测数据包到所述客户端的每个网 络节点的移动状态; 添加所述第二网络节点的移动状态到所述第一 状态记录项; 向所述客户端转发所述响应探测数据包; 接收所述客 户端根据所述响应探测数据包发送的所述请求兴趣包, 所述请求兴 趣包包括所述内容名、 所述内容源标识、 所述第一期望距离的修订 值和跳数值, 所述跳数值用于指示所述请求兴趣包的转发次数, 所 述第一期望距离的修订值是所述客户端根据所述响应探测数据包中 的所述第一状态记录项以及所述第一期望距离确定的; 根据所述第 一期望距离的修订值和所述跳数值转发所述请求兴趣包至所述第一 网络节点。
第一网络节点 1201 , 用于接收第二网络节点发送的探测兴趣 包, 所述探测兴趣包包括内容名; 根据所述内容名生成响应探测数 据包, 所述响应探测数据包包括所述内容名、 内容源标识、 第一期 望距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包 从所述客户端到所述第一网络节点的跳数距离, 所述第一移动状态 记录包括第一状态记录项, 所述第一状态记录项用于记录转发所述 响应探测数据包到所述客户端的每个网络节点的移动状态; 添加所 述第一网络节点的移动状态到所述第一状态记录项; 向所述第二网 络节点发送所述响应探测数据包, 以便于转发所述响应探测数据包 到所述客户端的每个网络节点添加网络节点自身的移动状态到所述 第一状态记录项, 并向所述客户端发送所述响应探测数据包; 接收 所述第二网络节点发送的请求兴趣包, 所述请求兴趣包中包括所述 内容名、 所述内容源标识、 所述第一期望距离的修订值, 所述第一 期望距离的修订值是所述客户端根据所述响应探测数据包中的所述 第一状态记录项以及所述第一期望距离确定的。
本发明实施例所述的传输数据系统, 首先, 客户端通过路由器 向内容源发送探测兴趣包, 内容源根据探测兴趣包包括的内容名生 成响应探测数据包, 且添加该内容源的移动状态到状态记录项, 再 向路由器发送响应探测数据包, 路由器添加该路由器的移动状态到 第一状态记录项, 并向客户端转发响应探测数据包, 然后, 客户端 选择第一响应探测数据包, 并根据第一状态记录项以及第一期望距 离确定第一期望距离的修订值, 生成请求兴趣包, 向路由器发送请 求兴趣包, 路由器根据第一期望距离的修订值和跳数值转发所述请 求兴趣包至内容源, 内容源生成响应请求数据包, 将该内容源的移 动状态添加到第二状态记录项, 再向路由器发送所述响应请求数据 包, 将该路由器的移动状态添加到第二状态记录项, 并向客户端转 发所述响应请求数据包, 客户端可以选择第一响应请求数据包。 相 对于现有技术, 通过在响应数据包设置移动状态记录, 将网络节点 的移动状态添加到移动状态记录中的状态记录项, 将响应数据包发 送至客户端, 以便于客户端根据所述状态记录项确定期望距离的修 订值, 从而生成请求兴趣包, 并向至少一个网络节点发送所述请求 兴趣包, 使得网络节点接收所述请求兴趣包, 有效解决了现有路由 转发没有适应网络节点移动, 带来的网络负载大, 传输时延大及成 功率低的问题, 有效提高了 内容源或路由器接收请求兴趣包成功 率, 同时减少不必要路径广播, 降低网络负载, 节省网络节点的能 量。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简 洁, 上述描述的装置和单元的具体工作过程, 可以参考前述方法实 施例中的对应过程, 在此不再赘述。 在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置 和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施 例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能 划分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可 以结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执 行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连 接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以 是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分 开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可 以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实 际的需要选择其中的部分或者全部单元来实现本实施例方案的 目 的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处 理单元中, 也可以是各个单元单独物理包括, 也可以两个或两个以 上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式 实现, 也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或 部分步骤可以通过程序指令相关的硬件来完成, 前述的程序可以存 储于一计算机可读取存储介质中, 该程序在执行时, 执行包括上述 方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM、 磁碟 或者光盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为 准。

Claims

权 利 要 求 书
1、 一种传输数据的方法, 其特征在于, 应用于第一网络节点, 包括: 接收第二网络节点发送的探测兴趣包, 所述探测兴趣包包括内容名; 根据所述内容名生成响应探测数据包, 所述响应探测数据包包括所 述内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一 期望距离为所述探测兴趣包从所述客户端到所述第一网络节点的跳数距 离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态记录项 用于记录转发所述响应探测数据包到所述客户端的每个网络节点的移动 状态;
添加所述第一网络节点的移动状态到所述第一状态记录项; 向所述第二网络节点发送所述响应探测数据包, 以便于转发所述响 应探测数据包到所述客户端的每个网络节点添加网络节点自身的移动状 态到所述第一状态记录项, 并向所述客户端发送所述响应探测数据包; 接收所述第二网络节点发送的请求兴趣包, 所述请求兴趣包中包括 所述内容名、 所述内容源标识、 所述第一期望距离的修订值, 所述第一 期望距离的修订值是所述客户端根据所述响应探测数据包中的所述第一 状态记录项以及所述第一期望距离确定的。
2、 根据权利要求 1所述的传输数据的方法, 其特征在于, 在所述接 收所述第二网络节点发送的请求兴趣包之后, 所述方法还包括:
生成响应请求数据包, 所述响应请求数据包包括第二期望距离、 第 二移动状态记录和所述内容名对应的内容, 所述第二期望距离为所述请 求兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第二移动 状态记录包括第二状态记录项, 所述第二状态记录项用于记录转发所述 响应请求数据包到所述客户端的每个网络节点的移动状态;
添加所述第一网络节点的移动状态到所述第二状态记录项; 向所述第二网络节点发送所述响应请求数据包, 以便于转发所述响 应请求数据包到所述客户端的每个网络节点添加网络节点自身的移动状 态到所述第二状态记录项, 并向所述客户端发送所述响应请求数据包。
3、 根据权利要求 1至 2任意一项权利要求所述的传输数据的方法, 其特征在于, 所述移动状态包括网络节, 的移动速度和移动方向。
4、 一种传输数据的方法, 其特征在于, 应用于第二网络节点, 包括: 接收第一网络节点针对客户端发送的探测兴趣包返回的响应探测数 据包, 所述响应探测数据包包括内容名、 内容源标识、 第一期望距离和 第一移动状态记录, 所述第一期望距离为所述探测兴趣包从所述客户端 到所述第一网络节点的跳数距离, 所述第一移动状态记录包括第一状态 记录项, 所述第一状态记录项用于记录转发所述响应探测数据包到所述 客户端的每个网络节点的移动状态;
添加所述第二网络节点的移动状态到所述第一状态记录项; 向所述客户端转发所述响应探测数据包;
接收所述客户端根据所述响应探测数据包发送的所述请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一期望距离 的修订值和跳数值, 所述跳数值用于指示所述请求兴趣包的转发次数, 所述第一期望距离的修订值是所述客户端根据所述响应探测数据包中的 所述第一状态记录项以及所述第一期望距离确定的;
根据所述第一期望距离的修订值和所述跳数值转发所述请求兴趣包 至所述第一网络节点。
5、 根据权利要求 4所述的传输数据的方法, 其特征在于, 所述根据 所述第一期望距离的修订值和所述跳数值转发所述请求兴趣包至所述第 一网络节点, 包括:
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述第一 网络节点的跳数距离之和小于等于所述第一期望距离的修订值, 转发所 述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述第一 网络节点的跳数距离之和大于所述第一期望距离的修订值, 延时预设时 长后转发所述请求兴趣包至所述第一网络节点。
6、 根据权利要求 4或 5所述的传输数据的方法, 其特征在于, 在所 述根据所述第一期望距离的修订值和所述跳数值转发所述请求兴趣包至 所述第一网络节点之后, 所述方法还包括:
接收所述第一网络节点发送的所述响应请求数据包, 所述响应请求 数据包包括第二期望距离、 第二移动状态记录和所述内容名对应的内容, 所述第二期望距离为所述请求兴趣包从所述客户端到所述第一网络节点 的跳数距离, 所述第二移动状态记录包括第二状态记录项, 所述第二状 态记录项用于记录转发所述响应请求数据包到所述客户端的每个网络节 点的移动状态; 添加所述第二网络节点的移动状态到所述第二状态记录项; 向所述客户端转发所述响应请求数据包。
7、 根据权利要求 4或 5所述的传输数据的方法, 其特征在于, 在所 述根据所述第一期望距离的修订值和所述跳数值转发所述请求兴趣包至 所述第一网络节点之后, 所述方法还包括:
若在第一预设时间段内没有接收到所述第一网络节点发送的响应请 求数据包, 更新所述第一期望距离的修订值得到更新值, 所述请求兴趣 包包括所述第一预设时间段;
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一网络 节点, 所述请求兴趣包包括更新值。
8、 根据权利要求 4至 7任意一项权利要求所述的传输数据的方法, 其特征在于, 所述移动状态包括网络节, 的移动速度和移动方向。
9、 一种传输数据的方法, 其特征在于, 应用于客户端, 包括: 接收至少一个网络节点针对所述客户端发送的探测兴趣包返回的响 应探测数据包;
从所述接收的响应探测数据包中选择第一响应探测数据包, 所述第 一响应探测数据包包括内容名、 内容源标识、 第一期望距离和第一移动 状态记录, 所述第一期望距离为所述探测兴趣包从所述客户端到所述第 一网络节点的跳数距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态记录项用于记录转发所述第一响应探测数据包到所述客户 端的每个网络节点的移动状态;
根据所述第一状态记录项以及所述第一期望距离确定所述第一期望 距离的修订值;
生成请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容源标 识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于指示所述请 求兴趣包的转发次数;
向至少一个网络节点发送所述请求兴趣包。
10、 根据权利要求 9 所述的传输数据的方法, 其特征在于, 所述根 据所述第一状态记录项以及所述第一期望距离确定所述第一期望距离的 修订值包括:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及所述 第一期望距离确定所述第一期望距离的修订值, 所述第一期望距离的修 订值大于、 小于或等于所述第一期望距离。
1 1、 根据权利要求 9或 10所述的传输数据的方法, 其特征在于, 所 述从所述接收的响应探测数据包中选择第一响应探测数据包, 包括:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第一响 应探测数据包。
12、 根据权利要求 1 1所述的传输数据的方法, 其特征在于, 在所述 向至少一个网络节点发送所述请求兴趣包之后, 所述方法还包括:
接收针对所述请求数据包返回的响应请求数据包。
13、 根据权利要求 9或 1 1所述的传输数据的方法, 其特征在于, 在 所述向至少一个网络节点发送所述请求兴趣包之后, 所述方法还包括: 若在第一预设时间段内没有接收到针对所述请求数据包返回的响应 请求数据包, 更新所述第一期望距离的修订值得到更新值, 所述请求兴 趣包包括所述第一预设时间段;
向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述更新 后的请求兴趣包包括所述更新值。
14、根据权利要求 9至 13任意一项权利要求所述的传输数据的方法, 其特征在于, 所述移动状态包括网络节点的移动速度和移动方向。
15、 一种第一网络节点, 其特征在于, 包括:
第一接收单元, 用于接收第二网络节点发送的探测兴趣包, 所述探 测兴趣包包括内容名;
第一生成单元, 用于根据所述内容名生成响应探测数据包, 所述响 应探测数据包包括所述内容名、 内容源标识、 第一期望距离和第一移动 状态记录, 所述第一期望距离为所述探测兴趣包从所述客户端到所述第 一网络节点的跳数距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状态记录项用于记录转发所述响应探测数据包到所述客户端的 每个网络节点的移动状态;
第一添加单元, 用于添加所述第一网络节点的移动状态到所述第一 状态记录项;
第一发送单元, 用于向所述第二网络节点发送所述响应探测数据包, 以便于转发所述响应探测数据包到所述客户端的每个网络节点添加网络 节点自身的移动状态到所述第一状态记录项, 并向所述客户端发送所述 响应探测数据包;
第二接收单元, 用于接收所述第二网络节点发送的请求兴趣包, 所 述请求兴趣包中包括所述内容名、 所述内容源标识、 所述第一期望距离 的修订值, 所述第一期望距离的修订值是所述客户端根据所述响应探测 数据包中的所述第一状态记录项以及所述第一期望距离确定的。
16、 根据权利要求 15所述的第一网络节点, 其特征在于, 所述第一 网络节点还包括:
第二生成单元, 用于生成响应请求数据包, 所述响应请求数据包包 括第二期望距离、 第二移动状态记录和所述内容名对应的内容, 所述第 二期望距离为所述请求兴趣包从所述客户端到所述第一网络节点的跳数 距离, 所述第二移动状态记录包括第二状态记录项, 所述第二状态记录 项用于记录转发所述响应请求数据包到所述客户端的每个网络节点的移 动 态;
第二添加单元, 用于添加所述第一网络节点的移动状态到所述第二 状态记录项;
第二发送单元, 用于向所述第二网络节点发送所述响应请求数据包, 以便于转发所述响应请求数据包到所述客户端的每个网络节点添加网络 节点自身的移动状态到所述第二状态记录项, 并向所述客户端发送所述 响应请求数据包。
17、根据权利要求 15至 16任意一项权利要求所述的第一网络节点, 其特征在于, 所述移动状态包括网络节, 的移动速度和移动方向。
18、 一种第二网络节点, 其特征在于, 包括:
第一接收单元, 用于接收第一网络节点针对客户端发送的探测兴趣 包返回的响应探测数据包, 所述响应探测数据包包括内容名、 内容源标 识、 第一期望距离和第一移动状态记录, 所述第一期望距离为所述探测 兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第一移动状 态记录包括第一状态记录项, 所述第一状态记录项用于记录转发所述响 应探测数据包到所述客户端的每个网络节点的移动状态;
第一添加单元, 用于添加所述第二网络节点的移动状态到所述第一 状态记录项;
第一转发单元, 用于向所述客户端转发所述响应探测数据包; 第二接收单元, 用于接收所述客户端根据所述响应探测数据包发送 的所述请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于指示所述请求兴 趣包的转发次数, 所述第一期望距离的修订值是所述客户端根据所述响 应探测数据包中的所述第一状态记录项以及所述第一期望距离确定的; 第二转发单元, 用于根据所述第一期望距离的修订值和所述跳数值 转发所述请求兴趣包至所述第一网络节点。
19、 根据权利要求 18所述的第二网络节点, 其特征在于, 所述第二 转发单元具体用于:
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述第一 网络节点的跳数距离之和小于等于所述第一期望距离的修订值, 转发所 述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述第一 网络节点的跳数距离之和大于所述第一期望距离的修订值, 延时预设时 长后转发所述请求兴趣包至所述第一网络节点。
20、 根据权利要求 18或 19所述的第二网络节点, 其特征在于, 所 述第二网络节点还包括:
第三接收单元, 用于接收所述第一网络节点发送的所述响应请求数 据包, 所述响应请求数据包包括第二期望距离、 第二移动状态记录和所 述内容名对应的内容, 所述第二期望距离为所述请求兴趣包从所述客户 端到所述第一网络节点的跳数距离, 所述第二移动状态记录包括第二状 态记录项, 所述第二状态记录项用于记录转发所述响应请求数据包到所 述客户端的每个网络节点的移动状态;
第二添加单元, 用于添加所述第二网络节点的移动状态到所述第二 状态记录项;
第三转发单元, 用于向所述客户端转发所述响应请求数据包。
21、 根据权利要求 18或 19所述的第二网络节点, 其特征在于, 所 述第二网络节点还包括:
更新单元, 用于若在第一预设时间段内没有接收到所述第一网络节 点发送的响应请求数据包, 更新所述第一期望距离的修订值得到更新值, 所述请求兴趣包包括所述第一预设时间段;
所述第二转发单元还用于:
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一网络 节点, 所述请求兴趣包包括更新值。
22、根据权利要求 18至 21任意一项权利要求所述的第二网络节点, 其特征在于, 所述移动状态包括网络节, 的移动速度和移动方向。
23、 一种客户端, 其特征在于, 包括:
第一接收单元, 用于接收至少一个网络节点针对所述客户端发送的 探测兴趣包返回的响应探测数据包;
选择单元, 用于从所述接收的响应探测数据包中选择第一响应探测 数据包, 所述第一响应探测数据包包括内容名、 内容源标识、 第一期望 距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包从所述 客户端到所述第一网络节点的跳数距离, 所述第一移动状态记录包括第 一状态记录项, 所述第一状态记录项用于记录转发所述第一响应探测数 据包到所述客户端的每个网络节点的移动状态;
确定单元, 用于根据所述第一状态记录项以及所述第一期望距离确 定所述第一期望距离的修订值;
生成单元, 用于生成请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一期望距离的修订值和跳数值, 所述跳数值用 于指示所述请求兴趣包的转发次数;
发送单元, 用于向至少一个网络节点发送所述请求兴趣包。
24、 根据权利要求 23所述的客户端, 其特征在于, 所述确定单元具 体用于:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及所述 第一期望距离确定所述第一期望距离的修订值, 所述第一期望距离的修 订值大于、 小于或等于所述第一期望距离。
25、 根据权利要求 23或 24所述的客户端, 其特征在于, 所述选择 单元具体用于:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第一响 应探测数据包。
26、 根据权利要求 25所述的客户端, 其特征在于, 所述客户端还包 括:
第二接收单元, 用于接收针对所述请求数据包返回的响应请求数据 包。
27、 根据权利要求 23或 25所述的客户端, 其特征在于, 所述客户 端还包括:
更新单元, 用于若在第一预设时间段内没有接收 'J针对所述请求数 据包返回的响应请求数据包, 更新所述第一期望距离的修订值得到更新 值, 所述请求兴趣包包括所述第一预设时间段;
所述发送单元还用于:
向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述更新 后的请求兴趣包包括所述更新值。
28、 根据权利要求 23至 27任意一项权利要求所述的客户端, 其特 征在于, 所述移动状态包括网络节, 的移动速度和移动方向。
29、 一种传输数据系统, 其特征在于, 包括:
至少一个如权利要求 15至权利要求 17 中任意一项权利要求所述的 第一网络节点, 至少一个如权利要求 18至权利要求 22 中任意一项权利 要求所述的第二网络节点, 至少一个如权利要求 23 至权利要求 28 中任 意一项权利要求所述的客户端。
30、 一种第一网络节点, 其特征在于, 包括:
接收机, 用于接收第二网络节点发送的探测兴趣包, 所述探测兴趣 包包括内容名;
存储器, 用于存储程序代码;
处理器, 用于调用所述存储器存储的程序代码执行如下方法: 根据 所述内容名生成响应探测数据包, 所述响应探测数据包包括所述内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期望距离为 所述探测兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第 一移动状态记录包括第一状态记录项, 所述第一状态记录项用于记录转 发所述响应探测数据包到所述客户端的每个网络节点的移动状态;
所述处理器执行的方法还包括:
添加所述第一网络节点的移动状态到所述第一状态记录项; 发射机, 用于向所述第二网络节点发送所述响应探测数据包, 以便 于转发所述响应探测数据包到所述客户端的每个网络节点添加网络节点 自身的移动状态到所述第一状态记录项, 并向所述客户端发送所述响应 探测数据包;
所述接收机还用于: 接收所述第二网络节点发送的所述请求兴趣包, 所述请求兴趣包中 包括所述内容名、 所述内容源标识、 所述第一期望距离的修订值, 所述 第一期望距离的修订值是所述客户端根据所述响应探测数据包中的所述 第一状态记录项以及所述第一期望距离确定的。
3 1、 根据权利要求 30所述的第一网络节点, 其特征在于, 所述处理器执行的方法还包括:
生成响应请求数据包, 所述响应请求数据包包括第二期望距离、 第 二移动状态记录和所述内容名对应的内容, 所述第二期望距离为所述请 求兴趣包从所述客户端到所述第一网络节点的跳数距离, 所述第二移动 状态记录包括第二状态记录项, 所述第二状态记录项用于记录转发所述 响应请求数据包到所述客户端的每个网络节点的移动状态;
添加所述第一网络节点的移动状态到所述第二状态记录项; 所述发射机还用于:
向所述第二网络节点发送所述响应请求数据包, 以便于转发所述响 应请求数据包到所述客户端的每个网络节点添加网络节点自身的移动状 态到所述第二状态记录项, 并向所述客户端发送所述响应请求数据包。
32、 根据权利要求 30至 3 1任意一项所述的第一网络节点, 其特征 在于, 所述移动状态包括网络节点的移动速度和移动方向。
33、 一种第二网络节点, 其特征在于, 包括:
接收机, 用于接收第一网络节点针对客户端发送的探测兴趣包返回 的响应探测数据包, 所述响应探测数据包包括内容名、 内容源标识、 第 一期望距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包 从所述客户端到所述第一网络节点的跳数距离, 所述第一移动状态记录 包括第一状态记录项, 所述第一状态记录项用于记录转发所述响应探测 数据包到所述客户端的每个网络节点的移动状态;
存储器, 用于存储程序代码;
处理器, 用于调用所述存储器存储的程序代码执行如下方法: 添加 所述第二网络节点的移动状态到所述第一状态记录项;
发射机, 用于向所述客户端转发所述响应探测数据包;
所述接收机还用于:
接收所述客户端根据所述响应探测数据包发送的所述请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容源标识、 所述第一期望距离 的修订值和跳数值, 所述跳数值用于指示所述请求兴趣包的转发次数, 所述第一期望距离的修订值是所述客户端根据所述响应探测数据包中的 所述第一状态记录项以及所述第一期望距离确定的;
所述发射机还用于:
根据所述第一期望距离的修订值和所述跳数值转发所述请求兴趣包 至所述第一网络节点。
34、 根据权利要求 33所述的第二网络节点, 其特征在于, 所述发射 机具体用于:
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述第一 网络节点的跳数距离之和小于等于所述第一期望距离的修订值, 转发所 述请求兴趣包至所述第一网络节点;
若所述请求兴趣包中的所述跳数值与所述第二网络节点到所述第一 网络节点的跳数距离之和大于所述第一期望距离的修订值, 延时预设时 长后转发所述请求兴趣包至所述第一网络节点。
35、 根据权利要求 33或 34所述的第二网络节点, 其特征在于, 所述接收机还用于:
接收所述第一网络节点发送的所述响应请求数据包, 所述响应请求 数据包包括第二期望距离、 第二移动状态记录和所述内容名对应的内容, 所述第二期望距离为所述请求兴趣包从所述客户端到所述第一网络节点 的跳数距离, 所述第二移动状态记录包括第二状态记录项, 所述第二状 态记录项用于记录转发所述响应请求数据包到所述客户端的每个网络节 点的移动状态;
添加所述第二网络节点的移动状态到所述第二状态记录项; 所述发射机还用于:
向所述客户端转发所述响应请求数据包。
36、 根据权利要求 33或 34所述的第二网络节点, 其特征在于, 所述处理器执行的方法还包括:
若在第一预设时间段内没有接收到所述第一网络节点发送的响应请 求数据包, 更新所述第一期望距离的修订值得到更新值, 所述请求兴趣 包包括所述第一预设时间段;
所述发射机还用于:
根据所述更新值和所述跳数值转发所述请求兴趣包至所述第一网络 节点, 所述请求兴趣包包括更新值。
37、根据权利要求 33至 36任意一项权利要求所述的第二网络节点, 其特征在于, 所述移动状态包括网络节, 的移动速度和移动方向。
38、 一种客户端, 其特征在于, 包括:
接收机, 用于接收至少一个网络节点针对所述客户端发送的探测兴 趣包返回的响应探测数据包;
存储器, 用于存储程序代码;
处理器, 用于调用所述存储器存储的程序代码执行如下方法: 从所 述接收的响应探测数据包中选择第一响应探测数据包, 所述第一响应探 测数据包包括内容名、 内容源标识、 第一期望距离和第一移动状态记录, 所述第一期望距离为所述探测兴趣包从所述客户端到所述第一网络节点 的跳数距离, 所述第一移动状态记录包括第一状态记录项, 所述第一状 态记录项用于记录转发所述第一响应探测数据包到所述客户端的每个网 络节点的移动状态;
所述处理器执行的方法还包括:
根据所述第一状态记录项以及所述第一期望距离确定所述第一期望 距离的修订值;
生成请求兴趣包, 所述请求兴趣包包括所述内容名、 所述内容源标 识、 所述第一期望距离的修订值和跳数值, 所述跳数值用于指示所述请 求兴趣包的转发次数;
发射机, 用于向至少一个网络节点发送所述请求兴趣包。
39、 根据权利要求 38所述的客户端, 其特征在于, 所述处理器执行 的方法包括:
根据转发所述第一响应探测数据包的网络节, 的移动状态以及所述 第一期望距离确定所述第一期望距离的修订值, 所述第一期望距离的修 订值大于、 小于或等于所述第一期望距离。
40、 根据权利要求 38或 39所述的客户端, 其特征在于, 所述处理 器执行的方法包括:
解析所述接收的响应探测数据包, 根据所述响应探测数据包中 的第一期望距离和第一移动状态记录, 并按照选择规则选择所述第一响 应探测数据包。
41、 根据权利要求 40所述的客户端, 其特征在于, 所述接收机还用于:
接收针对所述请求数据包返回的响应请求数据包。
42、 根据权利要求 38或 40所述的客户端, 其特征在于,
所述处理器执行的方法还包括:
若在第一预设时间段内没有接收到针对所述请求数据包返回的响应 请求数据包, 更新所述第一期望距离的修订值得到更新值, 所述请求兴 趣包包括所述第一预设时间段;
所述发射机还用于:
向至少一个网络节点重复发送所述更新后的请求兴趣包, 所述更新 后的请求兴趣包包括所述更新值。
43、 根据权利要求 38至 42任意一项权利要求所述的客户端, 其特 征在于, 所述移动状态包括网络节, 的移动速度和移动方向。
44、 一种传输数据系统, 其特征在于, 包括:
至少一个如权利要求 30至权利要求 32 中任意一项权利要求所述的 第一网络节点, 至少一个如权利要求 33 至权利要求 37 中任意一项权利 要求所述的第二网络节点, 至少一个如权利要求 38至权利要求 43 中任 意一项权利要求所述的客户端。
PCT/CN2014/079017 2014-05-30 2014-05-30 一种传输数据的方法、装置及系统 WO2015180184A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201480078570.0A CN106464657B (zh) 2014-05-30 2014-05-30 一种传输数据的方法、装置及系统
EP14893445.8A EP3136676B1 (en) 2014-05-30 2014-05-30 Method, device and system for transmitting data
PCT/CN2014/079017 WO2015180184A1 (zh) 2014-05-30 2014-05-30 一种传输数据的方法、装置及系统
US15/363,844 US10097447B2 (en) 2014-05-30 2016-11-29 Method, apparatus, and system for transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079017 WO2015180184A1 (zh) 2014-05-30 2014-05-30 一种传输数据的方法、装置及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/363,844 Continuation US10097447B2 (en) 2014-05-30 2016-11-29 Method, apparatus, and system for transmitting data

Publications (1)

Publication Number Publication Date
WO2015180184A1 true WO2015180184A1 (zh) 2015-12-03

Family

ID=54697950

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079017 WO2015180184A1 (zh) 2014-05-30 2014-05-30 一种传输数据的方法、装置及系统

Country Status (4)

Country Link
US (1) US10097447B2 (zh)
EP (1) EP3136676B1 (zh)
CN (1) CN106464657B (zh)
WO (1) WO2015180184A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9832123B2 (en) * 2015-09-11 2017-11-28 Cisco Technology, Inc. Network named fragments in a content centric network
US10313227B2 (en) * 2015-09-24 2019-06-04 Cisco Technology, Inc. System and method for eliminating undetected interest looping in information-centric networks
US20180006937A1 (en) * 2016-06-30 2018-01-04 Fujitsu Limited Packet forwarding in information centric networking networks
US10104633B1 (en) * 2017-03-31 2018-10-16 Futurewei Technologies, Inc. Active position driven mobility content delivery in information centric networks
US10986209B2 (en) * 2018-04-19 2021-04-20 Futurewei Technologies, Inc. Secure and reliable on-demand source routing in an information centric network
CN110086857B (zh) * 2019-04-15 2022-01-14 哈尔滨工程大学 基于缓存节点状态和位置的信息中心网络缓存部署方法
US11568014B2 (en) * 2019-06-28 2023-01-31 Intel Corporation Information centric network distributed search with approximate cache

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090045761A (ko) * 2007-11-02 2009-05-08 연세대학교 산학협력단 센서 네트워크의 라우팅 장치 및 그 방법
CN102131235A (zh) * 2010-01-15 2011-07-20 西门子公司 一种无线通信系统中的负载平衡方法
US8199677B1 (en) * 2005-12-14 2012-06-12 Rockwell Collins, Inc. Distance vector routing via multi-point relays
CN103051709A (zh) * 2012-12-20 2013-04-17 新浪网技术(中国)有限公司 数据传输路径确定方法、网络节点及内容分发网络系统
CN103491003A (zh) * 2012-06-14 2014-01-01 华为技术有限公司 一种内容路由器及其处理报文的方法
CN103765832A (zh) * 2011-09-01 2014-04-30 华为技术有限公司 用于信息中心网络的通用双模式数据转发平面

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5987011A (en) * 1996-08-30 1999-11-16 Chai-Keong Toh Routing method for Ad-Hoc mobile networks
US20040009749A1 (en) * 2001-03-20 2004-01-15 Nitzan Arazi Wireless private branch exchange(wpbx) and communicating between mobile units and base stations
WO2005062554A1 (en) * 2003-12-23 2005-07-07 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for efficient routing in ad hoc networks
US8027322B2 (en) * 2006-03-02 2011-09-27 Panasonic Corporation Communication method, communication system, mobile node and network node for notification about the proximity of a second wireless network via a first wireless network
US9014658B2 (en) * 2008-03-14 2015-04-21 William J. Johnson System and method for application context location based configuration suggestions
US8634796B2 (en) * 2008-03-14 2014-01-21 William J. Johnson System and method for location based exchanges of data facilitating distributed location applications
KR101797221B1 (ko) * 2011-07-29 2017-11-14 삼성전자주식회사 컨텐츠 중심 네트워크에서 컨텐츠 소스 노드 및 제1 컨텐츠 라우터와 그 통신 방법
US9544075B2 (en) * 2012-02-22 2017-01-10 Qualcomm Incorporated Platform for wireless identity transmitter and system using short range wireless broadcast
US9253087B2 (en) * 2012-04-24 2016-02-02 Futurewei Technologies, Inc. Principal-identity-domain based naming scheme for information centric networks
CN103118013B (zh) * 2013-01-16 2015-12-23 西安电子科技大学 内容中心网络中数据包捎带反向兴趣包的方法
EP3024267B1 (en) * 2013-08-15 2018-01-03 Huawei Technologies Co., Ltd. Method and device for judging node movement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8199677B1 (en) * 2005-12-14 2012-06-12 Rockwell Collins, Inc. Distance vector routing via multi-point relays
KR20090045761A (ko) * 2007-11-02 2009-05-08 연세대학교 산학협력단 센서 네트워크의 라우팅 장치 및 그 방법
CN102131235A (zh) * 2010-01-15 2011-07-20 西门子公司 一种无线通信系统中的负载平衡方法
CN103765832A (zh) * 2011-09-01 2014-04-30 华为技术有限公司 用于信息中心网络的通用双模式数据转发平面
CN103491003A (zh) * 2012-06-14 2014-01-01 华为技术有限公司 一种内容路由器及其处理报文的方法
CN103051709A (zh) * 2012-12-20 2013-04-17 新浪网技术(中国)有限公司 数据传输路径确定方法、网络节点及内容分发网络系统

Also Published As

Publication number Publication date
US10097447B2 (en) 2018-10-09
CN106464657B (zh) 2019-10-25
EP3136676A1 (en) 2017-03-01
US20170078185A1 (en) 2017-03-16
EP3136676B1 (en) 2018-07-11
CN106464657A (zh) 2017-02-22
EP3136676A4 (en) 2017-05-03

Similar Documents

Publication Publication Date Title
WO2015180184A1 (zh) 一种传输数据的方法、装置及系统
KR101978173B1 (ko) 컨텐츠 중심 네트워크에서 컨텐츠 제공자가 데이터 패킷을 전송하는 방법 및 그 컨텐츠 제공자
US9948550B2 (en) Method, apparatus, and system for routing and forwarding
KR101337039B1 (ko) 통신 네트워크 내의 패킷을 라우팅하는 방법 및 통신 네트워크 내의 패킷을 라우팅하기 위한 네트워크 노드
JP5551247B2 (ja) マルチnat64環境のための方法及びホストノード
US9681345B2 (en) Data transmission method for mobile receiver in publish/subscribe system
KR20150091880A (ko) 모바일 애드혹 네트워크 환경에서 icn 기반 콘텐트 통신 방법 및 장치
US20120136945A1 (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
KR20140009931A (ko) 컨텐츠 이름 기반의 컨텐츠 중심 네트워크에서 컨텐츠 및 실시간 스트리밍 컨텐츠 제공을 위한 컨텐츠 요청자 및 컨텐츠 제공자의 통신 방법
TW201312980A (zh) 在網際網路中內容識別、檢索及路由
WO2014139481A1 (zh) 报文处理方法及设备
JP2005312045A5 (zh)
KR101779917B1 (ko) 미디어 리소스 피드백 방법, 장치, 프로그램 및 기록매체
KR20140144579A (ko) 컨텐츠 중심 네트워크에서 컨텐츠를 엿듣는 노드의 통신 방법 및 그 노드
WO2014019516A1 (zh) 一种报文转发的方法和设备
WO2015010519A1 (zh) 拓扑结构发现方法及装置
TW200901715A (en) Multimedia broadcast/multicast service (MBMS) service discovery
WO2014166078A1 (zh) 数据发送处理方法及路由器
WO2012167659A1 (zh) 受限应用协议中数据通信的方法和装置
WO2011140801A1 (zh) 一种发送彩信的方法,装置和系统
US20220166708A1 (en) Method and apparatus for selecting packet path to support producer mobility in information-centric networking
JP6169242B2 (ja) ショートメッセージサービス(SMS)メッセージを通信するようDiameterプロキシエージェントを利用するための方法、システムおよびコンピュータ読取可能媒体
CN106487890A (zh) 一种基于xmpp协议的跨节点通讯网络请求方法
JP6698700B2 (ja) ターゲットクエリおよび探査クエリをアグリゲートすること
KR20220075985A (ko) 출판자의 이동성을 지원하는 ndn 기반의 통신 시스템 및 방법

Legal Events

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

Ref document number: 14893445

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014893445

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014893445

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE