CN104823479B - A kind of data transmission device based on content center network, method and communication system - Google Patents
A kind of data transmission device based on content center network, method and communication system Download PDFInfo
- Publication number
- CN104823479B CN104823479B CN201380003085.2A CN201380003085A CN104823479B CN 104823479 B CN104823479 B CN 104823479B CN 201380003085 A CN201380003085 A CN 201380003085A CN 104823479 B CN104823479 B CN 104823479B
- Authority
- CN
- China
- Prior art keywords
- source
- serving
- switching
- base station
- handover
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/02—Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention provides a kind of data transmission device and method based on content center network, it is related to the communications field, the described method includes: receiving the switching instruction of the first source, first source switching instruction include purpose base station can route prefix/first source switching sign/source can route prefix, the source can route prefix include that the source is communicating serving BS title/source title when initiating;According to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule include the source can route prefix and the source switching after transmit data to the source interface between corresponding relationship.The present invention, which passes through to realize, is transmitted to source for the interest packet that user terminal is sent by source serving BS after handover, and whole process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies system and is arranged.And communication efficiency is high, and it is time-consuming short, it can satisfy requirement of real-time.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of data transmission device based on content center network, method and
Communication system.
Background technique
Content center network (Content Centric Network, abbreviation CCN) is current Future Internet architecture
One of important achievement of research.In CCN, there are two kinds of data packets: interest packet (Interest Packet) and data
It wraps (Date Packet).User terminal is by sending interest packet request content, if any other node in CCN receives the interest
It wraps and preserves corresponding content thereon, then can send data packet and the interest packet is made a response.
Currently, more and more characteristics of the source (content source is provided) with mobility, with network site and environment
Variation, source can switch between different base stations.When source switches, the prior art generallys use indirect one device
(Indirection Server) guarantees normal communication, and detailed process is as follows: user terminal sends the interest packet of specific format
Indirect one device is given, the interest packet of the specific format includes the/source indirect one device title (Indirection Server Name)
Hold title (Source Name)/content name (Content Name);According to conventional CCN interest packet stream journey, the specific format
Interest packet can be forwarded to indirect one device.Indirect one device is cached after receiving the interest packet, and is encapsulated into emerging
It is forwarded after interest packet, new interest packet includes that source can route prefix (Source Routable Prefix, abbreviation SRP)/interior
Hold title, new interest packet can be forwarded to source;Source receives new interest packet and searches content caching (Content Store, letter
Claim CS), generate the data packet for being sent to indirect one device;Indirect one device matches data packet with the interest packet of caching,
When successful match, user terminal is delivered a packet to.
When source will be switched to new serving BS from current serving BS, it is logical switching to be sent to indirect one device
Know, and informs that after the completion of switching, the new of indirect one device source can route prefix (Routable Prefix, abbreviation RP);
Indirect one device can be by the interest packet for being sent to source received only as caching, Zhi Daoshou after receiving the switching notice that source is sent
To after the new RP of source, indirect one device, which will use after the interest encapsulating of caching is dressed up emerging interest packet by the new RP of source, to be led to
It crosses the new serving BS of source and is sent to source.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The prior art needs to be separately provided an indirect one device for forwarding interest packet, increases the complexity of system.
And indirect one device needs each the interest packet sent to user terminal to Reseal, and can just be sent to source, communicates
Efficiency is very low.In addition, the interest that indirect one device after the switching notice for receiving source transmission, can only send user terminal
Packet caches, and the encapsulating of the interest of caching could be dressed up emerging interest packet and is sent to by the new RP of the source until receiving source transmission
Source takes a long time, and is not able to satisfy requirement of real-time.
Summary of the invention
In order to solve the problems, such as that prior art communication efficiency is low, not be able to satisfy requirement of real-time, the embodiment of the present invention is provided
A kind of data transmission device based on content center network, method and communication system.The technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of data transmission device based on content center network, the dress
It sets and includes:
Receiving module, for receiving the switching instruction of the first source, the first source switching instruction includes purpose base station
Can route prefix/first source switching sign/source can route prefix, the source can route prefix be that the source exists
Serving BS title/source title when communication is initiated, the purpose base station are the service base of the source before the handover
It stands or source serving BS after handover;
Rule increases module, for according to the source can route prefix, increase forwarding information storehouse rule, it is increased described
Forwarding information storehouse rule include the source can route prefix and the source switching after transmit data to connecing for the source
Corresponding relationship between mouthful.
In the first possible implementation, when first source switching instruction is to be completed by the source in switching
When send when, the purpose base station be the serving BS of the source before the handover, the source switching after transmit data
To the interface of the source, connect to indicate that the internet protocol address of upper hop node is corresponding with first source switching
Mouthful;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base
Stand as the serving BS of the source after handover, the interface of the source transmitted data to after source switching, for
The corresponding interface of IP address of the first source switching instruction next-hop node.
In the second possible implementation, when first source switching instruction be by the source before the handover
Serving BS send when, the purpose base station be the serving BS of the source after handover, the source switching after pass
Transmission of data gives the interface of the source, for interface corresponding with first source switching instruction IP address of next-hop node;
Wherein, the first source switching instruction is the second source switching instruction sent according to the source when switching will occur
Construction, the second source switching instruction includes that serving BS title/second source of the source when communication is initiated is cut
Changing sign/source can route prefix.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received;
Described device further include:
Searching module, for searching whether in pending interest table there are occurrence, the occurrence be content name with
Content name in the last one described interest packet is identical, and serial number is greater than or equal to the serial number in the last one described interest packet
Interest packet;
Sending module, for when there are the occurrence, send according to the increased forwarding information storehouse rule described in
The corresponding interest packet of occurrence.
Optionally, the sending module is used for,
When first source switching instruction is to be sent by the source when switching will occur, alternatively, working as institute
State the switching instruction of the first source be sent by source serving BS before the handover when, cut receiving the source
After the source switching instruction confirmation message that serving BS after changing is sent, sent according to the increased forwarding information storehouse rule
The corresponding interest packet of the occurrence, the source switching instruction confirmation message is for indicating that the source completes switching.
Optionally, the sending module is also used to,
When the occurrence is not present, switch receiving the source that the serving BS of the source after handover is sent
After indicating confirmation message, the source switching instruction confirmation message, institute are sent to the serving BS of the source before the handover
Source switching instruction confirmation message is stated for indicating that the source completes switching.
In the fourth possible implementation, the rule increase module includes:
Interface selecting unit in the interface in the dynamic range of setting, selecting a dynamic socket, and establishes choosing
The corresponding relationship of the IP address of the dynamic socket selected and the adjacent node that source is transmitted data to after source switching;
Relationship establishes unit, for establish selection dynamic socket and the source can route prefix corresponding relationship, with
Increase forwarding information storehouse rule, the selected dynamic socket and the source can route prefix be arranged in a one-to-one correspondence.
Optionally, described device further include:
Redundant rule elimination module, it is emerging for ought not sent within the set time according to the increased forwarding information storehouse rule
When interest packet, the increased forwarding information storehouse rule is deleted.
Second aspect, the embodiment of the invention provides a kind of data transmission device based on content center network, the dresses
It sets including perhaps more than one program one of them or more than one program of central processing unit and memory and one
Be stored in the memory, and be configured to by one or more than one described central processing unit executes, it is one or
More than one program of person includes the instruction for performing the following operation:
Receive the switching instruction of the first source, first source switching instruction include purpose base station can route prefix/the
One source switch sign/source can route prefix, the source can route prefix be the source communicate initiate when
Serving BS title/source title, the purpose base station are source serving BS before the handover or the source
Serving BS after handover;
According to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule packet
Including the source can route prefix and the corresponding relationship between the interface for transmitting data to the source after source switching.
In the first possible implementation, when first source switching instruction is to be completed by the source in switching
When send when, the purpose base station be the serving BS of the source before the handover, the source switching after transmit data
To the interface of the source, connect to indicate that the internet protocol address of upper hop node is corresponding with first source switching
Mouthful;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base
Stand as the serving BS of the source after handover, the interface of the source transmitted data to after source switching, for
The corresponding interface of IP address of the first source switching instruction next-hop node.
In the second possible implementation, when first source switching instruction be by the source before the handover
Serving BS send when, the purpose base station be the serving BS of the source after handover, the source switching after pass
Transmission of data gives the interface of the source, for interface corresponding with first source switching instruction IP address of next-hop node;
Wherein, the first source switching instruction is the second source switching instruction sent according to the source when switching will occur
Construction, the second source switching instruction includes that serving BS title/second source of the source when communication is initiated is cut
Changing sign/source can route prefix.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received;The one or more programs also include for carrying out
The instruction operated below:
It searches whether in pending interest table there are occurrence, the occurrence is content name and described the last one is emerging
Content name in interest packet is identical, and serial number is greater than or equal to the interest packet of the serial number in the last one described interest packet;
When there are the occurrence, it is corresponding emerging that the occurrence is sent according to the increased forwarding information storehouse rule
Interest packet.
Optionally, when first source switching instruction is to be sent by the source when switching and completing, alternatively, working as
First source switching instruction be sent by the serving BS of the source before the handover when, it is one or one with
Upper program includes the instruction for performing the following operation:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching
Instruction confirmation message is for indicating that the source completes switching;
After receiving the source switching instruction confirmation message, sent according to the increased forwarding information storehouse rule
The corresponding interest packet of the occurrence.
Optionally, when be not present the occurrence when, the one or more programs also include for carry out with
The instruction of lower operation:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching
Instruction confirmation message is for indicating that the source completes switching;
The source switching instruction confirmation message is sent to the serving BS of the source before the handover.
In the fourth possible implementation, the one or more programs include for performing the following operation
Instruction:
In the interface in the dynamic range of setting, select a dynamic socket, and establish selection dynamic socket and
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after source switching;
Establish selection dynamic socket and the source can route prefix corresponding relationship, with increase forwarding information storehouse rule
Then, the selected dynamic socket and the source can route prefix be arranged in a one-to-one correspondence.
Optionally, the one or more programs also include the instruction for performing the following operation:
When according to the increased forwarding information storehouse rule not sending interest packet within the set time, delete increased
The forwarding information storehouse rule.
The third aspect, the embodiment of the invention provides a kind of data transmission device based on content center network, the dresses
It sets and includes:
Indication structure module, for constructing the switching instruction of the first source, the first source switching instruction includes purpose base
Stand can route prefix/first source switching sign/source can route prefix, the source can route prefix be the source
It holds and is communicating serving BS title/source title when initiating, the first source switching sign is used to indicate receipts
To first source switching instruction node according to the source can route prefix, increase forwarding information storehouse rule, it is increased
The forwarding information storehouse rule include the source can route prefix and the source switching after transmit data to the source
Interface between corresponding relationship, the purpose base station is that source serving BS before the handover or the source are switching
Serving BS afterwards;
Sending module, for sending the first source switching instruction.
In the first possible implementation, first source switching instruction be by the source switch complete when
It constructs and sends, the purpose base station is the serving BS of the source before the handover;Alternatively, the first source switching refers to
Show constructed and sent when switching will occur by the source, the purpose base station is the clothes of the source after handover
Business base station.
In the second possible implementation, described device further include:
Receiving module, the second source switching instruction sent for receiving the source, the second source switching instruction
It is to be sent by the source when switching will occur, the second source switching instruction includes that the source is initiated in communication
When serving BS title/second source switching sign/source can route prefix;
The indication structure module is used for, and is referred to according to the first source switching described in second source switching indication structure
Show.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received, the first source switching sign are also used to, and instruction is received
Node to first source switching instruction searches whether in pending interest table there are occurrence that the occurrence is content
Title is identical as the content name in the last one described interest packet, and serial number is greater than or equal in the last one described interest packet
The interest packet of serial number sends the occurrence pair according to the increased forwarding information storehouse rule when there are the occurrence
The interest packet answered.
Fourth aspect, the embodiment of the invention provides a kind of data transmission device based on content center network, the dresses
It sets including perhaps more than one program one of them or more than one program of central processing unit and memory and one
Be stored in the memory, and be configured to by one or more than one described central processing unit executes, it is one or
More than one program of person includes the instruction for performing the following operation:
Construct the switching instruction of the first source, first source switching instruction include purpose base station can route prefix/the
One source switch sign/source can route prefix, the source can route prefix be the source communicate initiate when
Serving BS title/source title, first source switching sign, which is used to indicate, to be received first source and cuts
Change the node of instruction according to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule
It then include that the source can route prefix and the correspondence between the interface for transmitting data to the source after source switching
Relationship, the purpose base station are the serving BS of serving BS or the source after handover of the source before the handover;
Send the first source switching instruction.
In the first possible implementation, first source switching instruction be by the source switch complete when
It constructs and sends, the purpose base station is the serving BS of the source before the handover;Alternatively, the first source switching refers to
Show constructed and sent when switching will occur by the source, the purpose base station is the clothes of the source after handover
Business base station.
In the second possible implementation, the one or more programs include for performing the following operation
Instruction:
The second source switching instruction that the source is sent is received, the second source switching instruction is existed by the source
What switching was sent when will occur, the second source switching instruction includes that the source is communicating serving BS name when initiating
Claim the/the second source switching sign/source can route prefix;
According to the first source switching instruction described in second source switching indication structure.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received, the first source switching sign are also used to, and instruction is received
Node to first source switching instruction searches whether in pending interest table there are occurrence that the occurrence is content
Title is identical as the content name in the last one described interest packet, and serial number is greater than or equal in the last one described interest packet
The interest packet of serial number sends the occurrence pair according to the increased forwarding information storehouse rule when there are the occurrence
The interest packet answered.
5th aspect, the embodiment of the invention provides a kind of communication systems, and the system comprises source, base station, Yi Jilu
By device,
The base station and the router are used for,
Receive the switching instruction of the first source, first source switching instruction include purpose base station can route prefix/the
One source switch sign/source can route prefix, the source can route prefix be the source communicate initiate when
Serving BS title/source title, the purpose base station are source serving BS before the handover or the source
Serving BS after handover;
According to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule packet
Including the source can route prefix and the corresponding relationship between the interface for transmitting data to the source after source switching.
In the first possible implementation, when first source switching instruction is to be completed by the source in switching
When send when, the purpose base station be the serving BS of the source before the handover, the source switching after transmit data
To the interface of the source, connect to indicate that the internet protocol address of upper hop node is corresponding with first source switching
Mouthful;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base
Stand as the serving BS of the source after handover, the interface of the source transmitted data to after source switching, for
The corresponding interface of IP address of the first source switching instruction next-hop node.
In the second possible implementation, when first source switching instruction be by the source before the handover
Serving BS send when, the purpose base station be the serving BS of the source after handover, the source switching after pass
Transmission of data gives the interface of the source, for interface corresponding with first source switching instruction IP address of next-hop node;
Wherein, the first source switching instruction is the second source switching instruction sent according to the source when switching will occur
Construction, the second source switching instruction includes that serving BS title/second source of the source when communication is initiated is cut
Changing sign/source can route prefix.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received;
The base station and the router are also used to,
It searches whether in pending interest table there are occurrence, the occurrence is content name and described the last one is emerging
Content name in interest packet is identical, and serial number is greater than or equal to the interest packet of the serial number in the last one described interest packet;
When there are the occurrence, it is corresponding emerging that the occurrence is sent according to the increased forwarding information storehouse rule
Interest packet.
6th aspect, the embodiment of the invention provides a kind of communication systems, and the system comprises source, base station, Yi Jilu
By device,
The source or the base station are used for,
Construct the switching instruction of the first source, first source switching instruction include purpose base station can route prefix/the
One source switch sign/source can route prefix, the source can route prefix be the source communicate initiate when
Serving BS title/source title, first source switching sign, which is used to indicate, to be received first source and cuts
Change the node of instruction according to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule
It then include that the source can route prefix and the correspondence between the interface for transmitting data to the source after source switching
Relationship, the purpose base station are the serving BS of serving BS or the source after handover of the source before the handover;
Send the first source switching instruction.
In the first possible implementation, first source switching instruction be by the source switch complete when
It constructs and sends, the purpose base station is the serving BS of the source before the handover;Alternatively, the first source switching refers to
Show constructed and sent when switching will occur by the source, the purpose base station is the clothes of the source after handover
Business base station.
In the second possible implementation, the first source of construction switching instruction, comprising:
The second source switching instruction that the source is sent is received, the second source switching instruction is existed by the source
What switching was sent when will occur, the second source switching instruction includes that the source is communicating serving BS name when initiating
Claim the/the second source switching sign/source can route prefix;
According to the first source switching instruction described in second source switching indication structure.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received, the first source switching sign are also used to, and instruction is received
Node to first source switching instruction searches whether in pending interest table there are occurrence that the occurrence is content
Title is identical as the content name in the last one described interest packet, and serial number is greater than or equal in the last one described interest packet
The interest packet of serial number sends the occurrence pair according to the increased forwarding information storehouse rule when there are the occurrence
The interest packet answered.
7th aspect, the embodiment of the invention provides a kind of data transmission method based on content center network, the sides
Method includes:
Receive the switching instruction of the first source, first source switching instruction include purpose base station can route prefix/the
One source switch sign/source can route prefix, the source can route prefix be the source communicate initiate when
Serving BS title/source title, the purpose base station are source serving BS before the handover or the source
Serving BS after handover;
According to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule packet
Including the source can route prefix and the corresponding relationship between the interface for transmitting data to the source after source switching.
In the first possible implementation, when first source switching instruction is to be completed by the source in switching
When send when, the purpose base station be the serving BS of the source before the handover, the source switching after transmit data
To the interface of the source, connect to indicate that the internet protocol address of upper hop node is corresponding with first source switching
Mouthful;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base
Stand as the serving BS of the source after handover, the interface of the source transmitted data to after source switching, for
The corresponding interface of IP address of the first source switching instruction next-hop node.
In the second possible implementation, when first source switching instruction be by the source before the handover
Serving BS send when, the purpose base station be the serving BS of the source after handover, the source switching after pass
Transmission of data gives the interface of the source, for interface corresponding with first source switching instruction IP address of next-hop node;
Wherein, the first source switching instruction is the second source switching instruction sent according to the source when switching will occur
Construction, the second source switching instruction includes that serving BS title/second source of the source when communication is initiated is cut
Changing sign/source can route prefix.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received;
The method also includes:
It searches whether in pending interest table there are occurrence, the occurrence is content name and described the last one is emerging
Content name in interest packet is identical, and serial number is greater than or equal to the interest packet of the serial number in the last one described interest packet;
When there are the occurrence, it is corresponding emerging that the occurrence is sent according to the increased forwarding information storehouse rule
Interest packet.
Optionally, when first source switching instruction is to be sent by the source when switching will occur, or
Person, when first source switching instruction be sent by source serving BS before the handover when, it is described according to increase
The forwarding information storehouse rule send the corresponding interest packet of the occurrence, comprising:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching
Instruction confirmation message is for indicating that the source completes switching;
After receiving the source switching instruction confirmation message, sent according to the increased forwarding information storehouse rule
The corresponding interest packet of the occurrence.
Optionally, when the occurrence is not present, the method also includes:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching
Instruction confirmation message is for indicating that the source completes switching;
The source switching instruction confirmation message is sent to the serving BS of the source before the handover.
In the fourth possible implementation, it is described according to the source can route prefix, increase forwarding information storehouse rule
Then, comprising:
In the interface in the dynamic range of setting, select a dynamic socket, and establish selection dynamic socket and
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after source switching;
Establish selection dynamic socket and the source can route prefix corresponding relationship, with increase forwarding information storehouse rule
Then, the selected dynamic socket and the source can route prefix be arranged in a one-to-one correspondence.
Optionally, the method also includes:
When according to the increased forwarding information storehouse rule not sending interest packet within the set time, delete increased
The forwarding information storehouse rule.
Eighth aspect, the embodiment of the invention provides a kind of data transmission method based on content center network, the sides
Method includes:
Construct the switching instruction of the first source, first source switching instruction include purpose base station can route prefix/the
One source switch sign/source can route prefix, the source can route prefix be the source communicate initiate when
Serving BS title/source title, first source switching sign, which is used to indicate, to be received first source and cuts
Change the node of instruction according to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule
It then include that the source can route prefix and the correspondence between the interface for transmitting data to the source after source switching
Relationship, the purpose base station are the serving BS of serving BS or the source after handover of the source before the handover;
Send the first source switching instruction.
In the first possible implementation, first source switching instruction be by the source switch complete when
It constructs and sends, the purpose base station is the serving BS of the source before the handover;Alternatively, the first source switching refers to
Show constructed and sent when switching will occur by the source, the purpose base station is the clothes of the source after handover
Business base station.
In the second possible implementation, the first source of construction switching instruction, comprising:
The second source switching instruction that the source is sent is received, the second source switching instruction is existed by the source
What switching was sent when will occur, the second source switching instruction includes that the source is communicating serving BS name when initiating
Claim the/the second source switching sign/source can route prefix;
According to the first source switching instruction described in second source switching indication structure.
In the third possible implementation, the first source switching instruction further includes that the source connects before the handover
The content name and serial number in the last one interest packet received, the first source switching sign are also used to, and instruction is received
Node to first source switching instruction searches whether in pending interest table there are occurrence that the occurrence is content
Title is identical as the content name in the last one described interest packet, and serial number is greater than or equal in the last one described interest packet
The interest packet of serial number sends the occurrence pair according to the increased forwarding information storehouse rule when there are the occurrence
The interest packet answered.
The beneficial effect of technical solution provided in an embodiment of the present invention is:
By receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station, and SRP is source logical
Serving BS title/source title when letter is initiated, and according to SRP, increase FIB rule, since interest packet includes source logical
Serving BS title/source title/content name when letter is initiated, the SRP in FIB rule before increasing is that source is communicating
Serving BS title when initiation, therefore according to the longest prefix match of routing rule, the interest packet for being sent to source can be according to
Increased FIB rule is sent, and is realized and is transmitted to the interest packet that user terminal is sent by the serving BS of source after handover
Source, whole process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies system setting.And it is emerging
Interest packet does not need Reseal that source can be issued, and improves communication efficiency.In addition, in source switching, direct basis
SRP in first SHI increases FIB rule, so that the interest packet for being sent to source is sent according to increased FIB rule, does not need
After waiting source to send its switching can route prefix, do not need to Reseal interest packet yet, it is time-consuming shorter (to test
About 0.1 second in environment), it can satisfy requirement of real-time.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the application scenario diagram of the data transmission method provided in an embodiment of the present invention based on CCN;
Fig. 2 is a kind of structural schematic diagram for data transmission device based on CCN that the embodiment of the present invention 1 provides;
Fig. 3 is a kind of structural schematic diagram for data transmission device based on CCN that the embodiment of the present invention 2 provides;
Fig. 4 is a kind of hardware structural diagram for data transmission device based on CCN that the embodiment of the present invention 3 provides;
Fig. 5 is a kind of structural schematic diagram for data transmission device based on CCN that the embodiment of the present invention 4 provides;
Fig. 6 is a kind of structural schematic diagram for data transmission device based on CCN that the embodiment of the present invention 5 provides;
Fig. 7 is a kind of hardware structural diagram for data transmission device based on CCN that the embodiment of the present invention 6 provides;
Fig. 8 is a kind of structural schematic diagram for communication system that the embodiment of the present invention 7 provides;
Fig. 9 is a kind of structural schematic diagram for communication system that the embodiment of the present invention 8 provides;
Figure 10 is a kind of flow chart for data transmission method based on CCN that the embodiment of the present invention 9 provides;
Figure 11 is a kind of flow chart for data transmission method based on CCN that the embodiment of the present invention 10 provides;
Figure 12 is a kind of process interaction figure for data transmission method based on CCN that the embodiment of the present invention 11 provides;
Figure 13 is a kind of process interaction figure for data transmission method based on CCN that the embodiment of the present invention 12 provides;
Figure 14 is a kind of process interaction figure for data transmission method based on CCN that the embodiment of the present invention 13 provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is combined simply to introduce the data transmission method provided in an embodiment of the present invention based on CCN first below
Application scenarios.
It is the center of circle to base station, base station is the border circular areas generation that the longest distance that terminal provides service is radius in Fig. 1
The service area of the table base station, the i.e. base station can provide communication service for the terminal in the border circular areas.Such as first area A
Border circular areas with second area B composition is the service area of first base station 11, the circle of second area B and third region C composition
Region is the service area of the second base station 12, and the border circular areas where the fourth region D is the service area of third base station 13.To guarantee eventually
End is constantly in the state that can be communicated, and the fringe region of the service area of two adjacent base stations is it is possible that overlapping, such as the secondth area
Domain B is the overlapping region of the service area of first base station 11 and the service area of the second base station 12.
It is readily apparent that, mobile terminal passes through serving BS and accesses the internet Internet() elliptical region is used in 30(Fig. 1
Indicate Internet) it is communicated.Mobile terminal includes source and user terminal, and user terminal is request content (i.e. transmission interest packet)
Terminal, source is to issue the terminal of content (i.e. transmission data packet).It include several routers interconnected in Interne30
31.Assuming that current source 21 is located in the A of first area, user terminal 22 is located in the fourth region D.User terminal 22 is requested to source 21
When content, the interest packet that user terminal 22 is sent passes sequentially through third base station 13, router 31, first base station 11 are transferred to source
21.Source 21 generates data packet according to interest packet, which passes sequentially through first base station 11, router 31, third base station 13
It is transferred to user terminal 22.
Usual mobile terminal can be cut between the base stations in the fringe region for the service area for being moved to serving BS
It changes.For example, when source 21 is moved to second area B from first area A, source 21 is switched to second from first base station 1
Base station 2.When source 21 is moved to second area B from third region C, source 21 is switched to first base station 1 from the second base station 2.
Embodiment 1
The embodiment of the invention provides a kind of data transmission device based on CCN, which be can be set on node, section
Point includes but is not limited to router and base station, and referring to fig. 2, which includes:
Receiving module 101, for receiving the switching of the first source instruction (Source Handoff Indication, abbreviation
SHI), the first SHI includes the first SHI mark of RP//SRP of purpose base station;
Rule increases module 102, for increasing forwarding information storehouse (Forwarding Information according to SRP
Base, abbreviation FIB) rule.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.First SHI mark is used to indicate the router for receiving the first SHI or purpose base station and increases FIB rule according to SRP.SRP
Serving BS title/source title when being initiated for communication.When sending interest packet when communication is initiated for user terminal first time, it is based on
The issue mechanism of CCN, user terminal are known that the serving BS of source at this time.
Increased FIB rule includes the interface that SRP in the first SHI and node transmit data to source after source switching
Between corresponding relationship.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, as third generation partner program (The3rd Generation Partnership Project,
Abbreviation 3GPP) network, the first SHI is that the 2nd SHI sent according to source when switching will be sent is constructed, the 2nd SHI packet
It includes source and is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI mark is used to indicate source
Serving BS before the handover constructs the first SHI according to the SRP in the 2nd SHI.In this implementation, in the first SHI
The RP of purpose base station is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the interface (face) of node belonging to RP and the FIB rule of each node
Corresponding relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user
End) there is mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP of router
The RP(base station name of (router rs name) and base station).In view of terminal must access CCN by base station, therefore the RP of terminal is logical
It is often serving BS title/terminal name of terminal.Since the serving BS title (RP of base station) of terminal is the service of terminal
Base station name/terminal name prefix, according to the longest prefix match of routing rule, to the RP including terminal of terminal transmission
The packet of (serving BS title/terminal name of terminal), such as include SRP(source serving BS title/source title) it is emerging
Interest packet, can be routed to the serving BS of source, the serving BS of source according to the serving BS title (RP of base station) of source
Further according to serving BS title/source title of SRP(source) interest packet is transmitted to source.Therefore, the RP including node and
It does not include that the packet sent to terminal can be routed to terminal by the FIB rule of the RP of terminal.
The interface of node is closed between the address Internet Protocol (Internet Protocol, abbreviation IP) with corresponding
System, node can send the data to node belonging to the corresponding IP address of the interface by some interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and according to SRP, increases FIB rule, due to interest packet
Serving BS title/source title/content name when initiating is being communicated including source, the SRP in FIB rule before increasing
Serving BS title when initiating is being communicated for source, therefore according to the longest prefix match of routing rule, is being sent to source
Interest packet can send according to increased FIB rule, realize and sent user terminal by the serving BS of source after handover
Interest packet is transmitted to source, and whole process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies and is
System setting.And interest packet does not need Reseal that source can be issued, and improves communication efficiency.In addition, being cut in source
When changing, FIB rule is directly increased according to the SRP in the first SHI, so that the interest packet for being sent to source is advised according to increased FIB
Then send, without waiting for source send its switching after can route prefix, do not need to Reseal interest packet yet, consume
When shorter (in experimental situation about 0.1 second), can satisfy requirement of real-time.
Embodiment 2
The embodiment of the invention provides a kind of data transmission device based on CCN, which be can be set on node, section
Point includes but is not limited to router and purpose base station, and referring to Fig. 3, which includes:
Receiving module 201, for receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station;
Rule increases module 202, for increasing FIB rule according to SRP.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.First SHI mark is used to indicate the router for receiving the first SHI or purpose base station and increases FIB rule according to SRP.SRP
Serving BS title/source title when being initiated for communication.When sending interest packet when communication is initiated for user terminal first time, it is based on
The issue mechanism of CCN, user terminal are known that the serving BS of source at this time.
Increased FIB rule includes the interface that SRP in the first SHI and node transmit data to source after source switching
Between corresponding relationship.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name).In view of terminal must access CCN by base station, the data for being sent to terminal are first
It is sent to the serving BS of terminal, terminal is then transmitted to by the serving BS of terminal, therefore the RP of terminal is usually terminal
Serving BS title/terminal name.Since the serving BS title (RP of base station) of terminal is serving BS title/end of terminal
The prefix for holding title, according to the longest prefix match of routing rule, the service base of the RP(terminal including terminal sent to terminal
Station name/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can basis
The serving BS title (RP of base station) of source is routed to the serving BS of source, and the serving BS of source is further according to SRP(source
Serving BS title/source title) interest packet is transmitted to source.Therefore, the RP including node is without the RP including terminal
FIB rule the packet sent to terminal can be routed to terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
It is to be appreciated that the device can also include: sending module 203, for sending the first SHI to purpose base station.
It should be noted that CS, FIB rule and pending interest table (Pending Interest Table, abbreviation PIT) are
The important component of node.Node includes router, base station.
CS is used for the data packet (i.e. the corresponding content of content name) that memory node receives.FIB rule includes each node
RP and the FIB rule belonging to node interface corresponding relationship.PIT table has been forwarded and has not been responded for recording
Interest packet and receive the interface of the interest packet, the data packet for responding the interest packet is transmitted to user terminal.
Since the connection relationship between router and base station is usually fixed constant, terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and FIB rule generally only includes the RP of router and the RP of base station, i.e. road
By device title and base station name.In view of terminal must access CCN by base station, therefore the RP of terminal is usually the service of terminal
Base station name/terminal name.Since the serving BS title (RP of base station) of terminal is serving BS title/terminal name of terminal
The prefix of title, according to the longest prefix match of routing rule, the serving BS name of the RP(terminal including terminal sent to terminal
Title/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can be according to source
Serving BS title (RP of base station) be routed to the serving BS of source, the serving BS of source is according to the service of SRP(source
Base station name/source title) interest packet is transmitted to source.It therefore, does not include that the FIB rule of RP of terminal can will be to terminal
The packet of transmission is routed to terminal.
The interface of node and there is corresponding relationship between IP address, node by some interface, send the data to
Node belonging to the corresponding IP address of the interface.
Specifically, the course of work of node is as follows:
After node receives interest packet, node first looks for the data packet for responding the interest packet whether is stored in CS
(i.e. the corresponding content of content name).When node is stored with the data packet for responding the interest packet, node will respond the interest packet
Data packet be sent to user terminal, and abandon the interest packet.
When node does not have the data packet of the memory response interest packet, node searches whether to exist in PIT table emerging with this
The identical item of content name in interest packet.When there is item identical with the content name in the interest packet in PIT table, node exists
In item identical with the content name in the interest packet, increase the interface for receiving the interest packet, and abandon the interest packet.
When item identical with the content name in the interest packet is not present in PIT table, by the source in interest packet logical
The RP of each node in serving BS title/source title/content name when letter is initiated, with FIB rule carries out longest
Match, since the RP of each node in the rule of FIB at this time is router rs name or base station name, obtained longest occurrence
Serving BS title when initiating is being communicated for source.In the present embodiment, source is source communicating serving BS when initiating
The serving BS of end before the handover.Node is according to FIB rule, by interest packet from the serving BS title pair with source before the handover
The interface answered forwards, and by the interest packet and receives the interface of the interest packet and be recorded in PIT table.When in FIB rule
When there is no occurrence, the interest packet is abandoned.
After node receives data packet, whether node is stored with the content name with the data packet in searching CS first
Identical data packet.When being stored with data packet identical with the content name of the data packet in CS, node loses the data packet
It abandons.
When not having to store data packet identical with the content name of the data packet in CS, node is searched in PIT table is
It is no to there is the interest packet data packet matched with this.When there is the interest packet data packet matched with this in PIT table, node is from PIT
Interface corresponding with the interest packet forwards the data packet in table, and the data packet is stored in CS, deletes and is somebody's turn to do from PIT table
Data packet matched interest packet.When node receives the identical interest packet of content name again, node can directly will be in CS
Data packet issues user terminal, to respond the interest packet.If the interest packet data packet matched with this is not present in PIT table,
Abandon the data packet.
In a kind of implementation of the present embodiment, the first SHI can also include that source receives most before handover
Content name and serial number in the latter interest packet (Last Received Interest, abbreviation LRI).
It should be noted that in CCN, the corresponding data of a usual content are larger, therefore, the corresponding number of each content
According to several data blocks are all split into, it is identified between the data block of each content with serial number.One interest packet and one
Data packet usually corresponds to a data block.
When user terminal first time request content, the content name in interest packet only includes user and inputs asking for user terminal
It asks, source can inform the serial number of user terminal all data blocks corresponding with the content that user requests according to the interest packet.User terminal
The serial number of the data block sent according to source sends the interest packet including request content and serial number, so that it includes the sequence that source, which is sent,
The data packet of number corresponding data block.
Due to generalling use the serial number of each data block of the continuous number as a content, and user terminal is usually
Several continuous data blocks in one content are made requests, therefore user terminal is usually successively to send content name to source
Claim identical and serial number continuous interest packet.The windowing mechanism according to present in CCN, user terminal receive source transmission and certain
After the corresponding data packet of a serial number, interest packet corresponding with several serial numbers after the serial number can be sent to source, at this time
The quantity of the interest packet of transmission is related with window size.For example, user terminal receives the data packet of serial number 50, window size is
5, then user terminal sends sequence number to source as the interest packet of 51-55.If source switches at this time, source will be received not
To these interest packets, it is impossible to be made a response to it, these interest packets can be stored in router and the PIT table at former base station.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI of the RP/ mark of/purpose base station/
The serial number in content name/LRI in SRP/LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
In this kind of implementation, which can also include:
Searching module 204, for being searched whether in PIT there are occurrence, occurrence be content name with it is interior in LRI
Appearance title is identical, and serial number is greater than or equal to the interest packet of the serial number in LRI;
Sending module 203 is also used to, and when there are occurrence, it is corresponding emerging to send occurrence according to increased FIB rule
Interest packet.
In a particular application, the serial number in LRI can be added 1 first by searching module 204, then by the content name in LRI
The item in serial number and PIT after claiming and adding 1 compares, should if having found all identical item of content name and serial number
Item is determined as occurrence, and continues to add serial number into 1, and then the serial number by the content name in LRI and after adding 1 (is equivalent to
2) it compares in serial number in LRI plus with the item in PIT, so recycles, until not finding content name and serial number all phases
Until same item.
In practical applications, when there are occurrence, can by the interest packet that source is not received by when switching over,
Again it issues source to be responded, if purpose base station is the serving BS of source before the handover, sending module 203 is not needed again
The first SHI is sent to purpose base station, to save the flow of network.
Optionally, sending module 203 can be used for,
When the first SHI is to be sent by source when switching will occur, alternatively, when the first SHI is being cut by source
Serving BS before changing send when, in the source handover information confirmation for receiving the serving BS of source after handover and sending
After (Acknowledgement of SHI, abbreviation AOS) message, it is corresponding emerging that occurrence is sent according to increased FIB rule
Interest packet, the AOS message is for indicating that source completes switching.
It is readily apparent that, receiving module 201 is also used to, and receives AOS message.
In the present embodiment, AOS information may include RP and the AOS mark of the serving BS of source before the handover.In reality
In the application of border, the format of AOS can be such that ccnx: the RP/AOS mark of the serving BS of/source before the handover.
Optionally, receiving module 201 can be also used for, and when occurrence is not present, receive source after handover
After the AOS message that serving BS is sent, AOS message is sent to the serving BS of source before the handover.
In a kind of implementation of the present embodiment, interface corresponding with the SRP in the first SHI can be tatic range
Interior interface, and the interface is corresponding with the IP address of adjacent node for transmitting data to source after source switching.
It is to be appreciated that interface corresponding with the RP of node is the interface in tatic range.Interface in tatic range with
It is usually one-to-many relationship between the RP of node.Interface in tatic range only with the change of the node adjacent with node and
Change.For a node, it is sent to the data of different nodes, it may be necessary to the same node forwarding connected to it,
Therefore in the FIB rule before increase, the interface in RP and tatic range of usual multiple nodes is corresponding, i.e., static model
Enclosing between the RP of interior interface and node is one-to-many relationship.
In another implementation of the present embodiment, rule increases module 202 and may include:
Interface selecting unit in the interface in the dynamic range of setting, selecting a dynamic socket, and establishes choosing
The corresponding relationship of the IP address of the dynamic socket selected and the adjacent node that source is transmitted data to after source switching;
Relationship establishes unit, for establishing the corresponding relationship between the dynamic socket of selection and SRP, to increase FIB rule,
The dynamic socket of selection is arranged in a one-to-one correspondence with SRP.
In this kind of implementation, described device can also include:
Redundant rule elimination module 205, for when within the set time according to increased FIB rule transmission interest packet when,
Delete increased FIB rule.
In the present embodiment, setting time can for setting according to increased FIB rule send interest packet after when
Between, any value such as between 10 seconds to 30 seconds.
In this kind of implementation, due to being one-to-one relationship between the RP of interface and node in dynamic range, because
Interface in this dynamic range can arbitrarily increase and decrease.When a period of time using the corresponding relationship according to increased FIB without (being advised
Then send interest packet) when, which can be deleted, prevent from causing FIB rule to increase without limitation due to source frequent switching,
Save Internet resources.
It should be noted that source is switched before increased FIB redundant rule elimination again, FIB rule increases again
One.Since the RP in increased FIB rule is that source is communicating serving BS title/source title when initiating.Therefore
There are two the RP that longest match rule can be carried out with interest packet, at this point, node can be simultaneously to the RP for meeting longest match rule
Corresponding interface sends interest packet, so that it is guaranteed that interest packet is sent to source.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and according to SRP, increases FIB rule, due to interest packet
Serving BS title/source title/content name when initiating is being communicated including source, the SRP in FIB rule before increasing
Serving BS title when initiating is being communicated for source, therefore according to the longest prefix match of routing rule, is being sent to source
Interest packet can send according to increased FIB rule, realize and sent user terminal by the serving BS of source after handover
Interest packet is transmitted to source, and whole process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies and is
System setting.And interest packet does not need Reseal that source can be issued, and improves communication efficiency.In addition, being cut in source
When changing, FIB rule is directly increased according to the SRP in the first SHI, so that the interest packet for being sent to source is advised according to increased FIB
Then send, without waiting for source send its switching after can route prefix, do not need to Reseal interest packet yet, consume
When shorter (in experimental situation about 0.1 second), can satisfy requirement of real-time.
Embodiment 3
The embodiment of the invention provides a kind of data transmission device based on CCN, which can be setting on node,
Node includes but is not limited to router or base station, and referring to fig. 4, which can generate bigger because of configuration or performance difference
Difference, may include one or more CPU(central processing units, central processing unit) 1922(
Such as, one or more processors) and memory 1932, one or more storage application programs 1942 or data 1944
Storage medium 1930(such as one or more mass memory units).Wherein, memory 1932 and storage medium 1930
It can be of short duration storage or persistent storage.The program for being stored in storage medium 1930 may include one or more modules
(diagram does not mark), each module may include to the series of instructions operation in the device.Further, central processing unit
1922 can be set to communicate with storage medium 1930, and the series of instructions in storage medium 1930 are executed on the device 1900
Operation.
The device 1900 can also include one or more power supplys 1926, one or more wired or wireless nets
Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or
More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM
Etc..
The device 1900 includes perhaps one of them or one of more than one program of CPU and memory and one
Procedure above is stored in memory, and be configured to by one perhaps more than one CPU execute one or more than one journey
Sequence includes the instruction for performing the following operation:
The first SHI is received, the first SHI includes the first SHI mark of RP//SRP of purpose base station, and SRP is that source is sent out in communication
Serving BS title/source title when rising;
According to SRP, increase FIB rule, increased FIB rule includes SRP in the first SHI and transmits after source switching
Data are to the corresponding relationship between the interface of source.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.First SHI mark is used to indicate the router for receiving the first SHI or purpose base station and increases FIB rule according to SRP.It is logical
When interest packet is sent for user terminal when letter is initiated for the first time, based on issue mechanism, user terminal is known that the clothes of source at this time
Business base station.
Increased FIB rule includes the interface that SRP in the first SHI and node transmit data to source after source switching
Between corresponding relationship.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name).In view of terminal must access CCN by base station, the data for being sent to terminal are first
It is sent to the serving BS of terminal, terminal is then transmitted to by the serving BS of terminal, therefore the RP of terminal is usually terminal
Serving BS title/terminal name.Since the serving BS title (RP of base station) of terminal is serving BS title/end of terminal
The prefix for holding title, according to the longest prefix match of routing rule, the service base of the RP(terminal including terminal sent to terminal
Station name/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can basis
The serving BS title (RP of base station) of source is routed to the serving BS of source, and the serving BS of source is further according to SRP(source
Serving BS title/source title) interest packet is transmitted to source.Therefore, the RP including node is without the RP including terminal
FIB rule the packet sent to terminal can be routed to terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
It is to be appreciated that one or more than one program can also include the instruction for performing the following operation: to mesh
Base station send the first SHI.
In a kind of implementation of the present embodiment, the first SHI can also include the LRI that source receives before handover
In content name and serial number.
It should be noted that in CCN, the corresponding data of a usual content are larger, therefore, the corresponding number of each content
According to several data blocks are all split into, it is identified between the data block of each content with serial number.One interest packet and one
Data packet usually corresponds to a data block.
When user terminal first time request content, the content name in interest packet only includes user and inputs asking for user terminal
It asks, source can inform the serial number of user terminal all data blocks corresponding with the content that user requests according to the interest packet.User terminal
The serial number of the data block sent according to source sends the interest packet including request content and serial number, so that it includes the sequence that source, which is sent,
The data packet of number corresponding data block.
Due to generalling use the serial number of each data block of the continuous number as a content, and user terminal is usually
Several continuous data blocks in one content are made requests, therefore user terminal is usually successively to send content name to source
Claim identical and serial number continuous interest packet.The windowing mechanism according to present in CCN, user terminal receive source transmission and certain
After the corresponding data packet of a serial number, interest packet corresponding with several serial numbers after the serial number can be sent to source, at this time
The quantity of the interest packet of transmission is related with window size.For example, user terminal receives the data packet of serial number 50, window size is
5, then user terminal sends sequence number to source as the interest packet of 51-55.If source switches at this time, source will be received not
To these interest packets, it is impossible to be made a response to it, these interest packets can be stored in router and the PIT table at former base station.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI of the RP/ mark of/purpose base station/
The serial number in content name/LRI in SRP/LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
In this kind of implementation, one or more than one program also include the instruction for performing the following operation:
Occurrence is searched in PIT, occurrence is that content name is identical as the content name in LRI, and serial number is greater than or equal to the sequence in LRI
Number interest packet;When there are occurrence, the corresponding interest packet of occurrence is sent according to increased FIB rule.
In a particular application, one or more than one program may include the instruction for performing the following operation: first
Serial number in LRI is added 1, then the item in the serial number and PIT by the content name in LRI and after adding 1 compares, if looked for
The all identical item of content name and serial number has been arrived, then this has been determined as occurrence, and has continued to add serial number into 1, then by LRI
In content name and the serial number (be equivalent in the serial number in LRI plus 2) after adding 1 compared with the item in PIT, so follow
Ring, until not finding content name and serial number all identical items.
In practical applications, when there are occurrence, can by the interest packet that source is not received by when switching over,
Again it issues source to be responded, if purpose base station is the serving BS of source before the handover, not need again to purpose base station
The first SHI is sent, to save the flow of network.
Optionally, one or more than one program may include the instruction for performing the following operation: when the first SHI is
By source sent when switching will occur when, alternatively, when the first SHI sent by the serving BS of source before the handover
When, the AOS message that the serving BS of source after handover is sent is received, the AOS message is for indicating that source completes switching;It is connecing
After receiving AOS message, the corresponding interest packet of occurrence is sent according to increased FIB rule.
In the present embodiment, AOS information may include RP and the AOS mark of the serving BS of source before the handover.In reality
In the application of border, the format of AOS can be such that ccnx: the RP/AOS mark of the serving BS of/source before the handover.
Optionally, one or more than one program can also include the instruction for performing the following operation: receive source
The AOS message that serving BS after handover is sent, the AOS message is for indicating that source completes switching;
AOS message is sent to the serving BS of source before the handover.
In a kind of implementation of the present embodiment, interface corresponding with the SRP in the first SHI can be tatic range
Interior interface, and the interface is corresponding with the IP address of adjacent node for transmitting data to source after source switching.
It is to be appreciated that interface corresponding with the RP of node is the interface in tatic range.Interface in tatic range with
It is usually one-to-many relationship between the RP of node.Interface in tatic range only with the change of the node adjacent with node and
Change.For a node, it is sent to the data of different nodes, it may be necessary to the same node forwarding connected to it,
Therefore in the FIB rule before increase, the interface in RP and tatic range of usual multiple nodes is corresponding, i.e., static model
Enclosing between the RP of interior interface and node is one-to-many relationship.
In another implementation of the present embodiment, one or more than one program may include following for carrying out
The instruction of operation: in the interface in the dynamic range of setting, selecting a dynamic socket, and establish selection dynamic socket and
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after source switching;Establish the dynamic socket of selection with
Corresponding relationship between SRP, to increase FIB rule, dynamic socket and the SRP of selection are arranged in a one-to-one correspondence.
In this way, one or more than one program can also include the instruction for performing the following operation: when
When within the set time not according to increased FIB rule transmission interest packet, increased FIB rule is deleted.
In the present embodiment, setting time can be setting according to setting after increased FIB rule transmission interest packet
It fixes time, such as any value between 10 seconds to 30 seconds.
In this kind of implementation, due to being one-to-one relationship between the RP of interface and node in dynamic range, because
Interface in this dynamic range can arbitrarily increase and decrease.When a period of time using the corresponding relationship according to increased FIB without (being advised
Then send interest packet) when, which can be deleted, prevent from causing FIB rule to increase without limitation due to source frequent switching,
Save Internet resources.
It should be noted that source is switched before increased FIB redundant rule elimination again, FIB rule increases again
One.Since the RP in increased FIB rule is that source is communicating serving BS title/source title when initiating.Therefore
There are two the RP that longest match rule can be carried out with interest packet, at this point, node can be simultaneously to the RP for meeting longest match rule
Corresponding interface sends interest packet, so that it is guaranteed that interest packet is sent to source.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and according to SRP, increases FIB rule, due to interest packet
Serving BS title/source title/content name when initiating is being communicated including source, the SRP in FIB rule before increasing
Serving BS title when initiating is being communicated for source, therefore according to the longest prefix match of routing rule, is being sent to source
Interest packet can send according to increased FIB rule, realize and sent user terminal by the serving BS of source after handover
Interest packet is transmitted to source, and whole process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies and is
System setting.And interest packet does not need Reseal that source can be issued, and improves communication efficiency.In addition, being cut in source
When changing, FIB rule is directly increased according to the SRP in the first SHI, so that the interest packet for being sent to source is advised according to increased FIB
Then send, without waiting for source send its switching after can route prefix, do not need to Reseal interest packet yet, consume
When shorter (in experimental situation about 0.1 second), can satisfy requirement of real-time.
Embodiment 4
A kind of data transmission device based on CCN is present embodiments provided, which can be set exists in source or source
On serving BS before switching, referring to Fig. 5, which includes:
Indication structure module 401, for construct the first SHI, the first SHI include purpose base station the first SHI of RP/ mark/
SRP, SRP are that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives first
The node of SHI increases FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and passes after source switching
Transmission of data is to the corresponding relationship between the interface of source;
Sending module 402, for sending the first SHI.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.When sending interest packet when communication is initiated for user terminal first time, the issue mechanism based on CCN, user terminal is known that
The serving BS of source at this time.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name).In view of terminal must access CCN by base station, therefore the RP of terminal is usually eventually
Serving BS title/the terminal name at end.Since the serving BS title (RP of base station) of terminal is the serving BS name of terminal
Title/terminal name prefix, it is regular according to the longest prefix match of routing, the RP(terminal including terminal sent to terminal
Serving BS title/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can
To be routed to the serving BS of source according to the serving BS title of source (RP of base station), the serving BS of source further according to
Serving BS title/source title of SRP(source) interest packet is transmitted to source.Therefore, the RP including node is without including
The packet sent to terminal can be routed to terminal by the FIB rule of the RP of terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
For the embodiment of the present invention by the first SHI of construction, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives the first SHI's
Router or purpose base station increase FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and node in source
Transmit data to the corresponding relationship between the interface of source after the switching of end, and send the first SHI, thus according to the longest of routing before
Sew matching rule, the interest packet for being sent to source can be sent according to increased FIB rule, be realized through source after handover
The interest packet that user terminal is sent is transmitted to source by serving BS, and whole process does not need to be arranged special indirect one device to emerging
Interest packet is forwarded, and simplifies system setting.And interest packet does not need Reseal that source can be issued, and improves logical
Believe efficiency.In addition, directly increasing FIB rule according to the SRP in the first SHI, so as to be sent to the emerging of source in source switching
Interest packet according to increased FIB rule send, without waiting for source send its switching after can route prefix, also not needing will be emerging
Interest packet is Resealed, and time-consuming shorter (in experimental situation about 0.1 second) can satisfy requirement of real-time.
Embodiment 5
The embodiment of the invention provides a kind of data transmission device based on CCN, which be can be set in source or source
On the serving BS of end before the handover, referring to Fig. 6, which includes:
Indication structure module 501, for construct the first SHI, the first SHI include purpose base station the first SHI of RP/ mark/
SRP, SRP are that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives first
The node of SHI increases FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and passes after source switching
Transmission of data is to the corresponding relationship between the interface of source;
Sending module 502, for sending the first SHI.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.When sending interest packet when communication is initiated for user terminal first time, the issue mechanism based on CCN, user terminal is known that
The serving BS of source at this time.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name).In view of terminal must access CCN by base station, therefore the RP of terminal is usually eventually
Serving BS title/the terminal name at end.Since the serving BS title (RP of base station) of terminal is the serving BS name of terminal
Title/terminal name prefix, it is regular according to the longest prefix match of routing, the RP(terminal including terminal sent to terminal
Serving BS title/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can
To be routed to the serving BS of source according to the serving BS title of source (RP of base station), the serving BS of source further according to
Serving BS title/source title of SRP(source) interest packet is transmitted to source.Therefore, the RP including node is without including
The packet sent to terminal can be routed to terminal by the FIB rule of the RP of terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
In a kind of implementation of the present embodiment, the first SHI can also include in the LRI that source receives before the handover
Content name and serial number, the first SHI mark be also used to, instruction receive the first SHI instruction node searched whether in PIT table
There are occurrence, occurrence is that content name is identical as the content name in LRI, and serial number is greater than or equal to the serial number in LRI
Interest packet sends the corresponding interest packet of occurrence according to increased FIB rule when there are occurrence.
It should be noted that in CCN, the corresponding data of a usual content are larger, therefore, the corresponding number of each content
According to several data blocks are all split into, it is identified between the data block of each content with serial number.One interest packet and one
Data packet usually corresponds to a data block.
When user terminal first time request content, the content name in interest packet only includes user and inputs asking for user terminal
It asks, source can inform the serial number of user terminal all data blocks corresponding with the content that user requests according to the interest packet.User terminal
The serial number of the data block sent according to source sends the interest packet including request content and serial number, so that it includes the sequence that source, which is sent,
The data packet of number corresponding data block.
Due to generalling use the serial number of each data block of the continuous number as a content, and user terminal is usually
Several continuous data blocks in one content are made requests, therefore user terminal is usually successively to send content name to source
Claim identical and serial number continuous interest packet.The windowing mechanism according to present in CCN, user terminal receive source transmission and certain
After the corresponding data packet of a serial number, interest packet corresponding with several serial numbers after the serial number can be sent to source, at this time
The quantity of the interest packet of transmission is related with window size.For example, user terminal receives the data packet of serial number 50, window size is
5, then user terminal sends sequence number to source as the interest packet of 51-55.If source switches at this time, source will be received not
To these interest packets, it is impossible to be made a response to it, these interest packets can be stored in router and the PIT table at former base station.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI of the RP/ mark of/purpose base station/
The serial number in content name/LRI in SRP/LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
For the embodiment of the present invention by the first SHI of construction, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives the first SHI's
Router or purpose base station increase FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and node in source
Transmit data to the corresponding relationship between the interface of source after the switching of end, and send the first SHI, thus according to the longest of routing before
Sew matching rule, the interest packet for being sent to source can be sent according to increased FIB rule, be realized through source after handover
The interest packet that user terminal is sent is transmitted to source by serving BS, and whole process does not need to be arranged special indirect one device to emerging
Interest packet is forwarded, and simplifies system setting.And interest packet does not need Reseal that source can be issued, and improves logical
Believe efficiency.In addition, directly increasing FIB rule according to the SRP in the first SHI, so as to be sent to the emerging of source in source switching
Interest packet according to increased FIB rule send, without waiting for source send its switching after can route prefix, also not needing will be emerging
Interest packet is Resealed, and time-consuming shorter (in experimental situation about 0.1 second) can satisfy requirement of real-time.
Embodiment 6
The embodiment of the invention provides a kind of data transmission device based on CCN, which be can be set in source or source
On the serving BS before the handover of end, by taking source (terminal) as an example, referring to Fig. 7, device 60 may include RF circuit 610 including
There are the memory 620, input unit 630, display unit 640, sensor of one or more computer readable storage mediums
650, voicefrequency circuit 660, WiFi module 670, processor 680, the Yi Ji electricity for including one or more than one processing core
The components such as source 690.It will be understood by those skilled in the art that the restriction of the not structure twin installation of apparatus structure shown in Fig. 7, it can
To include perhaps combining certain components or different component layouts than illustrating more or fewer components.Wherein:
RF circuit 610 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 680 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 610 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillator,
SIM card, transceiver, coupler, LNA, duplexer etc..In addition, RF circuit 610 can also by wireless communication with network and its
He communicates equipment.The wireless communication can be used any communication standard or agreement, including but not limited to GSM, GPRS, CDMA,
WCDMA, LTE, Email, SMS etc..
Memory 620 can be used for storing software program and module, and processor 680 is stored in memory 620 by operation
Software program and module, thereby executing various function application and data processing.Memory 620 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as construct the first SHI) etc.;Storage data area, which can be stored, uses created data (such as the first SHI according to device 60
Deng) etc..In addition, memory 620 may include high-speed random access memory, it can also include nonvolatile memory, such as
At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 620 can be with
Including Memory Controller, to provide the access of processor 680 and input unit 630 to memory 620.
Input unit 630 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 630 may include touching
Sensitive surfaces 631 and other input equipments 632.Touch sensitive surface 631, also referred to as touch display screen or Trackpad are collected and are used
Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table
Operation on face 631 or near touch sensitive surface 631), and corresponding attachment device is driven according to preset formula.It is optional
, touch sensitive surface 631 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 680, and can receive processor 680
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 631.In addition to touch sensitive surface 631, input unit 630 can also include other input equipments 632.Specifically,
Other input equipments 632 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 640 can be used for showing information input by user or be supplied to user information and device 30 it is each
Kind graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.It is aobvious
Show that unit 640 may include display panel 641, optionally, display panel 641 can be configured using forms such as LCD, OLED.Into
One step, touch sensitive surface 631 can cover display panel 641, when touch sensitive surface 631 detects touch operation on it or nearby
Afterwards, processor 680 is sent to determine the type of touch event, is followed by subsequent processing device 680 and is being shown according to the type of touch event
Corresponding visual output is provided on panel 641.Although touch sensitive surface 631 and display panel 641 are only as two in Fig. 7
Vertical component realizes input and input function, but in some embodiments it is possible to by touch sensitive surface 631 and display panel
641 integrate and realize and output and input function.
Device 60 may also include at least one sensor 650, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 641, and proximity sensor can close display surface when device 30 is moved in one's ear
Plate 641 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect (generally three in all directions
Axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as
Horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that device 60 can also configure, herein no longer
It repeats.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and device 60.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 661, be converted to sound by loudspeaker 661 by circuit 660
Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, after being received by voicefrequency circuit 660
Audio data is converted to, then by after the processing of audio data output processor 680, such as another dress is sent to through RF circuit 610
It sets, or audio data is exported to memory 620 to be further processed.Voicefrequency circuit 360 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone Yu device 60.
WiFi belongs to short range wireless transmission technology, and device 60 can help user's transceiver electronics by WiFi module 670
Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 7 is shown
WiFi module 670, but it is understood that, and it is not belonging to must be configured into for device 30, it can according to need completely
Do not change in the range of the essence of invention and omits.
Processor 680 is the control centre of device 60, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 620, and calls and be stored in memory 620
Data, the various functions of executive device 60 and processing data, to carry out integral monitoring to device 60.Optionally, processor
680 may include one or more processing cores;Preferably, processor 680 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Although being not shown, device 60 can also include camera, bluetooth module etc., and details are not described herein.In the present embodiment
In, device 60 further includes having memory and one perhaps more than one program one of them or more than one program being deposited
Be stored in memory, and be configured to by one perhaps more than one processor execute one or more than one program and include
Instruction for performing the following operation: the first SHI of construction, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives the first SHI's
Node increases FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and transmits data after source switching
To the corresponding relationship between the interface of source;Send the first SHI.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.When sending interest packet when communication is initiated for user terminal first time, the issue mechanism based on CCN, user terminal is known that
The serving BS of source at this time.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name), i.e. router rs name and base station name.In view of terminal must be accessed by base station
CCN, therefore the RP of terminal is usually serving BS title/terminal name of terminal.Due to the serving BS title (base station of terminal
RP) be that serving BS title/terminal name prefix of terminal is sent out according to the longest prefix match of routing rule to terminal
Serving BS title/the terminal name for the RP(terminal including terminal sent) packet, such as include SRP(source serving BS name
Title/source title) interest packet, the service base of source can be routed to according to the serving BS title (RP of base station) of source
Stand, the serving BS title/source title of the serving BS of source further according to SRP(source) interest packet is transmitted to source.Cause
This, the packet sent to terminal can be routed to terminal without the FIB rule of the RP including terminal by the RP including node.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
In a kind of implementation of the present embodiment, the first SHI can also include in the LRI that source receives before the handover
Content name and serial number, the first SHI mark be also used to, instruction receive the first SHI instruction node searched whether in PIT table
There are occurrence, occurrence is that content name is identical as the content name in LRI, and serial number is greater than or equal to the serial number in LRI
Interest packet sends the corresponding interest packet of occurrence according to increased FIB rule when there are occurrence.
It should be noted that in CCN, the corresponding data of a usual content are larger, therefore, the corresponding number of each content
According to several data blocks are all split into, it is identified between the data block of each content with serial number.One interest packet and one
Data packet usually corresponds to a data block.
When user terminal first time request content, the content name in interest packet only includes user and inputs asking for user terminal
It asks, source can inform the serial number of user terminal all data blocks corresponding with the content that user requests according to the interest packet.User terminal
The serial number of the data block sent according to source sends the interest packet including request content and serial number, so that it includes the sequence that source, which is sent,
The data packet of number corresponding data block.
Due to generalling use the serial number of each data block of the continuous number as a content, and user terminal is usually
Several continuous data blocks in one content are made requests, therefore user terminal is usually successively to send content name to source
Claim identical and serial number continuous interest packet.The windowing mechanism according to present in CCN, user terminal receive source transmission and certain
After the corresponding data packet of a serial number, interest packet corresponding with several serial numbers after the serial number can be sent to source, at this time
The quantity of the interest packet of transmission is related with window size.For example, user terminal receives the data packet of serial number 50, window size is
5, then user terminal sends sequence number to source as the interest packet of 51-55.If source switches at this time, source will be received not
To these interest packets, it is impossible to be made a response to it, these interest packets can be stored in router and the PIT table at former base station.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI of the RP/ mark of/purpose base station/
The serial number in content name/LRI in SRP/LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
For the embodiment of the present invention by the first SHI of construction, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives the first SHI's
Router or purpose base station increase FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and node in source
Transmit data to the corresponding relationship between the interface of source after the switching of end, and send the first SHI, thus according to the longest of routing before
Sew matching rule, the interest packet for being sent to source can be sent according to increased FIB rule, be realized through source after handover
The interest packet that user terminal is sent is transmitted to source by serving BS, and whole process does not need to be arranged special indirect one device to emerging
Interest packet is forwarded, and simplifies system setting.And interest packet does not need Reseal that source can be issued, and improves logical
Believe efficiency.In addition, directly increasing FIB rule according to the SRP in the first SHI, so as to be sent to the emerging of source in source switching
Interest packet according to increased FIB rule send, without waiting for source send its switching after can route prefix, also not needing will be emerging
Interest packet is Resealed, and time-consuming shorter (in experimental situation about 0.1 second) can satisfy requirement of real-time.
Embodiment 7
The embodiment of the invention provides a kind of communication systems, referring to Fig. 8, the system include source 701, base station 702 and
Router 703.Source 701, base station 702, router 703 are sequentially connected.
Router 703 and base station 702 can be used for,
The first SHI is received, the first SHI includes the first SHI mark of RP//SRP of purpose base station;
According to SRP, increase FIB rule.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.First SHI mark is used to indicate the router for receiving the first SHI or purpose base station and increases FIB rule according to SRP.SRP
Serving BS title/source title when being initiated for communication.When sending interest packet when communication is initiated for user terminal first time, it is based on
The issue mechanism of CCN, user terminal are known that the serving BS of source at this time.
Increased FIB rule includes the interface that SRP in the first SHI and node transmit data to source after source switching
Between corresponding relationship.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name).In view of terminal must access CCN by base station, the data for being sent to terminal are first
It is sent to the serving BS of terminal, terminal is then transmitted to by the serving BS of terminal, therefore the RP of terminal is usually terminal
Serving BS title/terminal name.Since the serving BS title (RP of base station) of terminal is serving BS title/end of terminal
The prefix for holding title, according to the longest prefix match of routing rule, the service base of the RP(terminal including terminal sent to terminal
Station name/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can basis
The serving BS title (RP of base station) of source is routed to the serving BS of source, and the serving BS of source is further according to SRP(source
Serving BS title/source title) interest packet is transmitted to source.Therefore, the RP including node is without the RP including terminal
FIB rule the packet sent to terminal can be routed to terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
In a kind of implementation of the present embodiment, the first SHI can also include the LRI that source receives before handover
In content name and serial number.
It should be noted that in CCN, the corresponding data of a usual content are larger, therefore, the corresponding number of each content
According to several data blocks are all split into, it is identified between the data block of each content with serial number.One interest packet and one
Data packet usually corresponds to a data block.
When user terminal first time request content, the content name in interest packet only includes user and inputs asking for user terminal
It asks, source can inform the serial number of user terminal all data blocks corresponding with the content that user requests according to the interest packet.User terminal
The serial number of the data block sent according to source sends the interest packet including request content and serial number, so that it includes the sequence that source, which is sent,
The data packet of number corresponding data block.
Due to generalling use the serial number of each data block of the continuous number as a content, and user terminal is usually
Several continuous data blocks in one content are made requests, therefore user terminal is usually successively to send content name to source
Claim identical and serial number continuous interest packet.The windowing mechanism according to present in CCN, user terminal receive source transmission and certain
After the corresponding data packet of a serial number, interest packet corresponding with several serial numbers after the serial number can be sent to source, at this time
The quantity of the interest packet of transmission is related with window size.For example, user terminal receives the data packet of serial number 50, window size is
5, then user terminal sends sequence number to source as the interest packet of 51-55.If source switches at this time, source will be received not
To these interest packets, it is impossible to be made a response to it, these interest packets can be stored in router and the PIT table at former base station.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI of the RP/ mark of/purpose base station/
The serial number in content name/LRI in SRP/LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
In this kind of implementation, router 703 and base station 702 be can be also used for,
Search whether that, there are occurrence, occurrence is that content name is identical as the content name in LRI, serial number in PIT
More than or equal to the interest packet of the serial number in LRI;
When there are occurrence, the corresponding interest packet of occurrence is sent according to increased FIB rule.
In a particular application, the serial number in LRI can be added 1 first by searching module 204, then by the content name in LRI
The item in serial number and PIT after claiming and adding 1 compares, should if having found all identical item of content name and serial number
Item is determined as occurrence, and continues to add serial number into 1, and then the serial number by the content name in LRI and after adding 1 (is equivalent to
2) it compares in serial number in LRI plus with the item in PIT, so recycles, until not finding content name and serial number all phases
Until same item.
In practical applications, when there are occurrence, can by the interest packet that source is not received by when switching over,
Again it issues source to be responded, if purpose base station is the serving BS of source before the handover, sending module 203 is not needed again
The first SHI is sent to purpose base station, to save the flow of network.
Optionally, router 703 and base station 702 can be used for,
When the first SHI is to be sent by source when switching and completing, the serving BS of source after handover is being received
After the AOS message of transmission, the corresponding interest packet of occurrence is sent according to increased FIB rule, the AOS message is for indicating source
Complete switching in end.
In the present embodiment, AOS information may include RP and the AOS mark of the serving BS of source before the handover.In reality
In the application of border, the format of AOS can be such that ccnx: the RP/AOS mark of the serving BS of/source before the handover.
Optionally, router 703 and base station 702 can be used for, and when occurrence is not present, switch receiving source
After the AOS message that serving BS afterwards is sent, AOS message is sent to the serving BS of source before the handover.
In a kind of implementation of the present embodiment, interface corresponding with the SRP in the first SHI can be tatic range
Interior interface, and the interface is corresponding with the IP address of adjacent node for transmitting data to source after source switching.
It is to be appreciated that interface corresponding with the RP of node is the interface in tatic range.Interface in tatic range with
It is usually one-to-many relationship between the RP of node.Interface in tatic range only with the change of the node adjacent with node and
Change.For a node, it is sent to the data of different nodes, it may be necessary to the same node forwarding connected to it,
Therefore in the FIB rule before increase, the interface in RP and tatic range of usual multiple nodes is corresponding, i.e., static model
Enclosing between the RP of interior interface and node is one-to-many relationship.
In another implementation of the present embodiment, router 703 and base station 702 can be used for,
In the interface in the dynamic range of setting, select a dynamic socket, and establish selection dynamic socket and
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after source switching;
Establish the corresponding relationship between the dynamic socket of selection and SRP, with increase FIB rule, the dynamic socket of selection with
SRP is arranged in a one-to-one correspondence.
In this kind of implementation, router 703 and base station 702 be can be also used for,
When according to increased FIB rule not sending interest packet within the set time, increased FIB rule is deleted.
In the present embodiment, setting time can for setting according to increased FIB rule send interest packet after when
Between, any value such as between 10 seconds to 30 seconds.
In this kind of implementation, due to being one-to-one relationship between the RP of interface and node in dynamic range, because
Interface in this dynamic range can arbitrarily increase and decrease.When a period of time using the corresponding relationship according to increased FIB without (being advised
Then send interest packet) when, which can be deleted, prevent from causing FIB rule to increase without limitation due to source frequent switching,
Save Internet resources.
It should be noted that source is switched before increased FIB redundant rule elimination again, FIB rule increases again
One.Since the RP in increased FIB rule is that source is communicating serving BS title/source title when initiating.Therefore
There are two the RP that longest match rule can be carried out with interest packet, at this point, node can be simultaneously to the RP for meeting longest match rule
Corresponding interface sends interest packet, so that it is guaranteed that interest packet is sent to source.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and according to SRP, increases FIB rule, due to interest packet
Serving BS title/source title/content name when initiating is being communicated including source, the SRP in FIB rule before increasing
Serving BS title when initiating is being communicated for source, therefore according to the longest prefix match of routing rule, is being sent to source
Interest packet can send according to increased FIB rule, realize and sent user terminal by the serving BS of source after handover
Interest packet is transmitted to source, and whole process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies and is
System setting.And interest packet does not need Reseal that source can be issued, and improves communication efficiency.In addition, being cut in source
When changing, FIB rule is directly increased according to the SRP in the first SHI, so that the interest packet for being sent to source is advised according to increased FIB
Then send, without waiting for source send its switching after can route prefix, do not need to Reseal interest packet yet, consume
When shorter (in experimental situation about 0.1 second), can satisfy requirement of real-time.
Embodiment 8
The embodiment of the invention provides a kind of communication systems, referring to Fig. 9, the system include source 801, base station 802 and
Router 803.Source 801, base station 802, router 803 are sequentially connected.
Source 801 or base station 802 can be used for,
The first SHI is constructed, the first SHI includes the first SHI mark of RP//SRP of purpose base station, and SRP is that source is sent out in communication
Serving BS title/source title when rising, the first SHI mark are used to indicate the node for receiving the first SHI according to SRP, increase
FIB rule, increased FIB rule include SRP in the first SHI and between the interface for transmitting data to source after source switching
Corresponding relationship;
Send the first SHI.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.When sending interest packet when communication is initiated for user terminal first time, the issue mechanism based on CCN, user terminal is known that
The serving BS of source at this time.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is the RP of the serving BS of source before the handover.
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP of serving BS after changing.
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is the RP of the serving BS of source after handover.
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name).In view of terminal must access CCN by base station, therefore the RP of terminal is usually eventually
Serving BS title/the terminal name at end.Since the serving BS title (RP of base station) of terminal is the serving BS name of terminal
Title/terminal name prefix, it is regular according to the longest prefix match of routing, the RP(terminal including terminal sent to terminal
Serving BS title/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can
To be routed to the serving BS of source according to the serving BS title of source (RP of base station), the serving BS of source further according to
Serving BS title/source title of SRP(source) interest packet is transmitted to source.Therefore, the RP including node is without including
The packet sent to terminal can be routed to terminal by the FIB rule of the RP of terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
In a kind of implementation of the present embodiment, the first SHI can also include in the LRI that source receives before the handover
Content name and serial number, the first SHI mark be also used to, instruction receive the first SHI instruction node searched whether in PIT table
There are occurrence, occurrence is that content name is identical as the content name in LRI, and serial number is greater than or equal to the serial number in LRI
Interest packet sends the corresponding interest packet of occurrence according to increased FIB rule when there are occurrence.
It should be noted that in CCN, the corresponding data of a usual content are larger, therefore, the corresponding number of each content
According to several data blocks are all split into, it is identified between the data block of each content with serial number.One interest packet and one
Data packet usually corresponds to a data block.
When user terminal first time request content, the content name in interest packet only includes user and inputs asking for user terminal
It asks, source can inform the serial number of user terminal all data blocks corresponding with the content that user requests according to the interest packet.User terminal
The serial number of the data block sent according to source sends the interest packet including request content and serial number, so that it includes the sequence that source, which is sent,
The data packet of number corresponding data block.
Due to generalling use the serial number of each data block of the continuous number as a content, and user terminal is usually
Several continuous data blocks in one content are made requests, therefore user terminal is usually successively to send content name to source
Claim identical and serial number continuous interest packet.The windowing mechanism according to present in CCN, user terminal receive source transmission and certain
After the corresponding data packet of a serial number, interest packet corresponding with several serial numbers after the serial number can be sent to source, at this time
The quantity of the interest packet of transmission is related with window size.For example, user terminal receives the data packet of serial number 50, window size is
5, then user terminal sends sequence number to source as the interest packet of 51-55.If source switches at this time, source will be received not
To these interest packets, it is impossible to be made a response to it, these interest packets can be stored in router and the PIT table at former base station.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI of the RP/ mark of/purpose base station/
The serial number in content name/LRI in SRP/LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
For the embodiment of the present invention by the first SHI of construction, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives the first SHI's
Router or purpose base station increase FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and node in source
Transmit data to the corresponding relationship between the interface of source after the switching of end, and send the first SHI, thus according to the longest of routing before
Sew matching rule, the interest packet for being sent to source can be sent according to increased FIB rule, be realized through source after handover
The interest packet that user terminal is sent is transmitted to source by serving BS, and whole process does not need to be arranged special indirect one device to emerging
Interest packet is forwarded, and simplifies system setting.And interest packet does not need Reseal that source can be issued, and improves logical
Believe efficiency.In addition, directly increasing FIB rule according to the SRP in the first SHI, so as to be sent to the emerging of source in source switching
Interest packet according to increased FIB rule send, without waiting for source send its switching after can route prefix, also not needing will be emerging
Interest packet is Resealed, and time-consuming shorter (in experimental situation about 0.1 second) can satisfy requirement of real-time.
Embodiment 9
The embodiment of the invention provides a kind of data transmission method based on CCN, this method can be executed by node, the section
Point includes but is not limited to router and base station.Referring to Figure 10, this method comprises:
Step 901: receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.First SHI mark be used to indicate the router for receiving the first SHI or purpose base station according to SRP increase FIB rule (see
Step 902).SRP is that source is communicating serving BS title/source title when initiating.It is user terminal first when communication is initiated
When secondary transmission interest packet, the issue mechanism based on CCN, user terminal is known that the serving BS of source at this time.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, the first SHI is sent when source switches, and includes switching when will occur, handoff procedure when source switches
In and switching complete when.
In the first implementation of the present embodiment, the first SHI, which can be, to be sent by source when switching and completing.?
In this implementation, the RP of the purpose base station in the first SHI is that the RP(of the serving BS of source before the handover is shown in embodiment
11).
In second of implementation of the present embodiment, the first SHI be can be by source transmission when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP(of serving BS after changing is shown in embodiment 12).
In the third implementation of the present embodiment, the first SHI can be the serving BS hair by source before the handover
It send, at this point, CCN is that the serving BS of source before the handover can know that the serving BS of source after handover (such as passes through end
Hold examining report) network, such as 3GPP network, the first SHI is the 2nd SHI structure sent according to source when switching will be sent
It makes, the 2nd SHI includes that source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Wherein, the 2nd SHI is marked
Know and is used to indicate the serving BS of source before the handover according to the first SHI of SRP construction in the 2nd SHI.In this implementation
In, the RP of the purpose base station in the first SHI is that the RP(of the serving BS of source after handover is shown in embodiment 13).
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
Step 902: according to SRP, increasing FIB rule.
In the present embodiment, increased FIB rule includes that SRP in the first SHI and node transmit number after source switching
According to the corresponding relationship between the interface of source.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(router of router
Title) and base station RP(base station name).In view of terminal must access CCN by base station, therefore the RP of terminal is usually eventually
Serving BS title/the terminal name at end.Since the serving BS title (RP of base station) of terminal is the serving BS name of terminal
Title/terminal name prefix, it is regular according to the longest prefix match of routing, the RP(terminal including terminal sent to terminal
Serving BS title/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can
To be routed to the serving BS of source according to the serving BS title of source (RP of base station), the serving BS of source further according to
Serving BS title/source title of SRP(source) interest packet is transmitted to source.Therefore, the RP including node is without including
The packet sent to terminal can be routed to terminal by the FIB rule of the RP of terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and according to SRP, increases FIB rule, due to interest packet
Serving BS title/source title/content name when initiating is being communicated including source, the SRP in FIB rule before increasing
Serving BS title when initiating is being communicated for source, therefore according to the longest prefix match of routing rule, is being sent to source
Interest packet can send according to increased FIB rule, realize and sent user terminal by the serving BS of source after handover
Interest packet is transmitted to source, and whole process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies and is
System setting.And interest packet does not need Reseal that source can be issued, and improves communication efficiency.In addition, being cut in source
When changing, FIB rule is directly increased according to the SRP in the first SHI, so that the interest packet for being sent to source is advised according to increased FIB
Then send, without waiting for source send its switching after can route prefix, do not need to Reseal interest packet yet, consume
When shorter (in experimental situation about 0.1 second), can satisfy requirement of real-time.
Embodiment 10
The embodiment of the invention provides a kind of data transmission method based on CCN, this method can be existed by source or source
Serving BS before switching executes.Referring to Figure 11, this method comprises:
Step 1001: the first SHI of construction, the first SHI includes the first SHI mark of RP//SRP of purpose base station.
In the present embodiment, the RP of purpose base station is used to indicate node (router or base station) and sends mesh for the first SHI
Base station.First SHI mark is used to indicate the router for receiving the first SHI or purpose base station and increases FIB rule according to SRP.SRP
Serving BS title/source title when being initiated for communication.When sending interest packet when communication is initiated for user terminal first time, it is based on
The issue mechanism of CCN, user terminal are known that the serving BS of source at this time.
Increased FIB rule includes the interface that SRP in the first SHI and node transmit data to source after source switching
Between corresponding relationship.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Specifically, which can carry out when source switches, and include when switching to occur when source switches, cut
During changing and when switching is completed.
In the first implementation of the present embodiment, which can be what source was executed when switching and completing.
In this implementation, the RP of the purpose base station in the first SHI is that the RP(of the serving BS of source before the handover is shown in embodiment
11).
In second of implementation of the present embodiment, which can be source execution when switching will occur
, for example, when source is located at the overlapping region of the service area of two base stations, if the service base that source-end detection is current to non-source
The signal that the signal stood is better than the current serving BS of source (can be setting number and detect the current serving BS of non-source
Signal be better than the signal of the current serving BS of source, such as twice in succession), then it represents that be at this time that switching will occur
When, source will do it switching after this.In this implementation, the RP of the purpose base station in the first SHI is that source is being cut
The RP(of serving BS after changing is shown in embodiment 12).
In the third implementation of the present embodiment, which can be the serving BS root of source before the handover
It is executed according to the 2nd SHI, at this point, CCN is that the serving BS of source before the handover can know the service base of source after handover
The network stood (as by terminal examining report), such as 3GPP network, the first SHI is according to source transmission when switching will occur
The 2nd SHI construction, the 2nd SHI includes source is communicating serving BS title/the 2nd SHI mark/SRP when initiating.Its
In, the 2nd SHI mark is used to indicate the serving BS of source before the handover and constructs the first SHI according to the SRP in the 2nd SHI.?
In this implementation, the RP of the purpose base station in the first SHI is that the RP(of the serving BS of source after handover is shown in embodiment
13).
Wherein, in the third implementation, since the serving BS of source before the handover can know that source is switching
Serving BS afterwards, therefore can directly be sent from the serving BS of source before the handover to the serving BS of source after handover
First SHI, source specially record the module of new base station RP without exploitation, and exploitation amount is small, reduces development cost.
In practical applications, FIB rule includes the correspondence of the interface of node belonging to RP and the FIB rule of each node
Relationship.Since the connection relationship between router and base station is usually fixed constant, and terminal (source and user terminal) has
Mobility, FIB rule frequently changes in order to prevent, and FIB rule generally only includes the RP(router rs name of router) and
The RP(base station name of base station).In view of terminal must access CCN by base station, therefore the RP of terminal is usually the service of terminal
Base station name/terminal name.Since the serving BS title (RP of base station) of terminal is serving BS title/terminal name of terminal
The prefix of title, according to the longest prefix match of routing rule, the serving BS name of the RP(terminal including terminal sent to terminal
Title/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet, can be according to source
Serving BS title (RP of base station) be routed to the serving BS of source, the clothes of the serving BS of source further according to SRP(source
Business base station name/source title) interest packet is transmitted to source.Therefore, FIB of the RP including node without the RP including terminal
The packet sent to terminal can be routed to terminal by rule.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
In the first implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source before the handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of upper hop node of the first SHI
Mouthful.
In second of implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
In the third implementation of the present embodiment, the RP of the purpose base station of the first SHI is the clothes of source after handover
The RP of business base station, interface corresponding with the SRP in the first SHI connect to be corresponding with the IP address of next-hop node of the first SHI
Mouthful.
It should be noted that since user terminal is before sending interest packet, it is known that source is communicating clothes when initiating
Business base station, therefore interest packet includes that source is communicating serving BS title/source title/content name when initiating.According to road
By longest prefix match principle, the SRP(source in the first SHI communicating serving BS title/source title when initiating)
Serving BS title when initiating is being communicated than the RP(source of source before the handover, in the present embodiment, source is initiated in communication
When serving BS be the serving BS of source before the handover) with interest packet (source communicate initiation when serving BS title/
Source title/content name) matched length, therefore router or base station be when sending interest packet according to FIB rule, it can be from first
The corresponding interface of SRP in SHI sends interest packet, i.e., sends interest from the interface for transmitting data to source after source switches
Packet realizes and sends interest packet according to increased FIB rule.Exactly because the longest prefix match principle of routing is also deferred to,
SRP in first SHI is serving BS title of the source when communicating initiation, rather than the serving BS name of source after handover
Claim, and further include source title, so as to which in the case where user terminal does not know that source switches over, user terminal is sent
Interest packet source is transmitted to by the serving BS of source after handover.
Step 1002: sending the first SHI.
For the embodiment of the present invention by the first SHI of construction, the first SHI includes the first SHI mark of RP//SRP of purpose base station,
SRP is that source is communicating serving BS title/source title when initiating, and the first SHI mark, which is used to indicate, receives the first SHI's
Router or purpose base station increase FIB rule according to SRP, and increased FIB rule includes SRP in the first SHI and node in source
Transmit data to the corresponding relationship between the interface of source after the switching of end, and send the first SHI, thus according to the longest of routing before
Sew matching rule, the interest packet for being sent to source can be sent according to increased FIB rule, be realized through source after handover
The interest packet that user terminal is sent is transmitted to source by serving BS, and whole process does not need to be arranged special indirect one device to emerging
Interest packet is forwarded, and simplifies system setting.And interest packet does not need Reseal that source can be issued, and improves logical
Believe efficiency.In addition, directly increasing FIB rule according to the SRP in the first SHI, so as to be sent to the emerging of source in source switching
Interest packet according to increased FIB rule send, without waiting for source send its switching after can route prefix, also not needing will be emerging
Interest packet is Resealed, and time-consuming shorter (in experimental situation about 0.1 second) can satisfy requirement of real-time.
Embodiment 11
The embodiment of the invention provides a kind of data transmission methods based on CCN, and in the present embodiment, source is before the handover
Serving BS be referred to as former base station, the serving BS of source after handover is referred to as new base station, and the first router is former base station
It is routed to user terminal and new base station is routed to the congruent point of user terminal, the first SHI is to be sent by source when switching and completing, and is joined
See Figure 12, this method comprises:
Step 1101: user terminal sends interest packet, and interest packet includes that source is communicating serving BS title/source when initiating
Hold title/content name.
In practical applications, CCN has content issue mechanism, and by the content issue mechanism, user can know network
In the content that has.Content needed for user can according to need selection, user terminal according to user instructions, are sent comprising required interior
The interest packet of the title of appearance.
In a particular application, CCN names content using hierarchical approaches, and "/" is used to separate the different composition portions of content name
Point.
It is readily apparent that, interest packet can also include minimum suffix component (Min Suffix Components), maximum suffix
Component (Max Suffix Components), publisher public keys abstract (Publisher Public Key Digest),
Exclude (Exclude), children select (Child Selector), respond source type (Answer Origin Kind), range
(Scope), one or more of interest packet life span (Interest Life time), the embodiment of the present invention does not make this
Limitation.
Step 1102: the first router searches CS after receiving interest packet, corresponding interior when content name is not present in CS
Rong Shi forwards interest packet according to FIB rule and updates PIT table.
When content corresponding there are content name in CS, the corresponding content of content name is encapsulated as counting by the first router
According to packet, it is sent to user terminal, to make a response to the interest packet.In the present embodiment, since the first router is to connect for the first time
The interest packet including the content name is received, therefore does not have the corresponding content of storage content title in CS.
Wherein, CS, FIB rule and PIT table are the important components of node.Node includes router, base station.
CS is used for the data packet (i.e. the corresponding content of content name) that memory node receives.FIB rule includes each node
RP and the FIB rule belonging to node interface corresponding relationship.PIT table has been forwarded and has not been responded for recording
Interest packet and receive the interface of the interest packet, the data packet for responding the interest packet is transmitted to user terminal.
Due to the connection relationship between router and base station be usually fixed it is constant, and terminal (source and user terminal) have
There is mobility, FIB rule frequently changes in order to prevent, and the FIB rule in node generally only includes the RP(routing of router
Device title) and base station RP(base station name).In view of terminal must access CCN by base station, therefore the RP of terminal is usually
Serving BS title/terminal name of terminal.Since the serving BS title (RP of base station) of terminal is the serving BS of terminal
Title/terminal name prefix, according to the longest prefix match of routing rule, to the RP(terminal including terminal of terminal transmission
Serving BS title/terminal name) packet, such as include SRP(source serving BS title/source title) interest packet,
Can be routed to the serving BS of source according to the serving BS title (RP of base station) of source, the serving BS of source further according to
Serving BS title/source title of SRP(source) interest packet is transmitted to source.Therefore, the RP including node is without including
The packet sent to terminal can be routed to terminal by the FIB rule of the RP of terminal.
The interface of node and there is corresponding relationship between IP address, node can send data by some interface
To node belonging to the corresponding IP address of the interface.
Specifically, detailed process is as follows for the step 1102:
After the first router receives interest packet, whether the first router, which first looks for being stored in CS, responds the interest
The data packet (i.e. the corresponding content of content name) of packet.When the first router is stored with the data packet for responding the interest packet, the
The data packet for responding the interest packet is sent to user terminal by one router, and abandons the interest packet.
When the first router does not have the data packet of the memory response interest packet, the first router is searched in PIT table is
It is no to there is item identical with the content name in the interest packet.It is identical as the content name in the interest packet when existing in PIT table
Item when, the first router in item identical with the content name in the interest packet, increase receive the interest packet interface, and
Abandon the interest packet.
When item identical with the content name in the interest packet is not present in PIT table, by the source in interest packet logical
The RP of each node in serving BS title/source title/content name when letter is initiated, with FIB rule carries out longest
Match, since the RP of each node in the rule of FIB at this time is router rs name or base station name, obtained longest occurrence
Serving BS title when initiating is being communicated for source.In the present embodiment, source is original communicating serving BS when initiating
Base station.The first router forwards interest packet from interface corresponding with former base station name, and this is emerging according to FIB rule
Interest packet and the interface for receiving the interest packet are recorded in PIT table.When there is no occurrence in FIB rule, the interest is abandoned
Packet.
It should be noted that multiple node (including but not limited to routers may be related to by being routed to source from user terminal
And base station), the course of work of these nodes is all identical with the first router, omits detailed description herein.
Step 1103: CS is searched after receiving interest packet in former base station, when the content for meeting interest packet is not present in CS, according to
FIB rule forwarding interest packet simultaneously updates PIT table.
As previously mentioned, the course of work of all nodes is all essentially identical with the first router, therefore, which can be with
Identical as step 1102, this will not be detailed here.
Step 1104: source searches Repository(storeroom after receiving interest packet) component, it generates and responds the interest
The data packet of packet and the data packet for sending generation.
It is to be appreciated that the course of work of source and the first router are essentially identical, the difference is that, source receives
What is searched after interest packet is Repository component, is not CS.In fact, searching Repository component and process and searching CS
The course of work be it is identical, i.e., the step 1104 can be received with the first router searches CS after interest packet, generates response
The data packet of the interest packet and the step of sending the data packet of generation is identical, this will not be detailed here.Repository component and CS
The difference is that Repository component has the content issuing function similar to server, in Repository component
The content of middle storage be it is static, will not generally change;The content stored in CS is dynamically, may to change at any time, such as work as
When the capacity of CS reaches maximum value, CS can delete the content stored at first, to store the content of newest storage.
Step 1105: after former base station receives data packet, storing data packet updates PIT table, forwards data to user terminal
Packet.
In practical applications, after former base station receives data packet, former base station first search CS in whether be stored with
The identical data packet of the content name of the data packet.When being stored with data packet identical with the content name of the data packet in CS
When, former base station is by the data packet discarding.
When not having to store data packet identical with the content name of the data packet in CS, former base station is searched in PIT table
With the presence or absence of the interest packet data packet matched with this.When in PIT table exist the interest packet data packet matched with this when, former base station from
Interface corresponding with the interest packet forwards the data packet in PIT table, and the data packet is stored in CS, deletes from PIT table
The interest packet data packet matched with this.When former base station receives the identical interest packet of content name again, former base station can be direct
Data packet in CS is issued into user terminal, to respond the interest packet.If the interest data packet matched with this is not present in PIT table
Bao Shi then abandons the data packet.
Step 1106: after the first router receives data packet, storing data packet updates PIT table, to user terminal forwarding number
According to packet.
As previously mentioned, the course of work of all nodes is all identical, therefore, which can be identical as step 1105,
This will not be detailed here.
Step 1107: user terminal received data packet.
It is to be appreciated that in the present embodiment, the data packet of the step 1107 be user in step 1101 is sent it is emerging
The response of interest packet.
It should be noted that in CCN, the corresponding data of a usual content are larger, therefore, the corresponding number of each content
According to several data blocks are all split into, it is identified between the data block of each content with serial number.One interest packet and one
Data packet usually corresponds to a data block.
When user terminal first time request content, the content name in interest packet only includes user and inputs asking for user terminal
It asks, source can inform the serial number of user terminal all data blocks corresponding with the content that user requests according to the interest packet.User terminal
The serial number of the data block sent according to source sends the interest packet including request content and serial number, so that it includes the sequence that source, which is sent,
The data packet of number corresponding data block.
Therefore, before step 1108, step 1101-1107 can be repeated as many times and execute.It is of course also possible to only executing
It crosses after a step 1101-1102, directly starts to execute step 1108.
Due to generalling use the serial number of each data block of the continuous number as a content, and user terminal is usually
Several continuous data blocks in one content are made requests, therefore user terminal is usually successively to send content name to source
Claim identical and serial number continuous interest packet.The windowing mechanism according to present in CCN, user terminal receive source transmission and certain
After the corresponding data packet of a serial number, interest packet corresponding with several serial numbers after the serial number can be sent to source, at this time
The quantity of the interest packet of transmission is related with window size.For example, user terminal receives the data packet of serial number 50, window size is
5, then user terminal sends sequence number to source as the interest packet of 51-55.If source switches at this time, source will be received not
To these interest packets, it is impossible to be made a response to it, these interest packets can be stored in router and the PIT table at former base station.
Step 1108: after source completes switching, source constructs and sends the first SHI, and the first SHI includes the RP/ at former base station
Content name and serial number in first SHI mark/SRP/LRI.
In above-mentioned communication process, source may be changed due to mobile or network environment and be switched.Source is cut
When changing completion, i.e., the first SHI is constructed in RP, source title, the LRI for communicating serving BS when initiating according to source.In this reality
It applies in example, source is former base station communicating serving BS when initiating.
In the present embodiment, the RP at former base station is used to indicate node (router or base station) and sends former base for the first SHI
It stands.First SHI mark is used to indicate the router for receiving the first SHI or purpose base station and (is detailed in step according to SRP increase FIB rule
It is rapid 1109).SRP is that source is communicating serving BS (former base station) title/source title when initiating.It is user when communication is initiated
When end sends interest packet for the first time, the issue mechanism based on CCN, user terminal is known that the serving BS of source at this time.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI mark of the RP//SRP/ at/former base station
The serial number in content name/LRI in LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Step 1109: new base station increases FIB rule according to SRP, and occurrence is searched in PIT, when there is no occurrences
When, send the first SHI.
In the present embodiment, increased FIB rule includes that SRP in the first SHI and node transmit number after source switching
According to the corresponding relationship between the interface of source.
Occurrence is that content name is identical as the content name in LRI, and serial number is greater than or equal to the interest of the serial number in LRI
Packet.When there are occurrence, new base station sends the corresponding interest packet of occurrence according to increased FIB rule.Due to interest packet
Serving BS (former base station) title/source title/content name of source when communicating initiation is included, the forward-path of interest packet is answered
This is followed successively by the first router, former base station, source, and therefore, interest packet does not pass through the forwarding of new base station, does not deposit in new base station
In occurrence.
In a kind of implementation of the present embodiment, interface corresponding with the SRP in the first SHI can be tatic range
Interior interface, and the interface is corresponding with the IP address of adjacent node for transmitting data to source after source switching.
It is to be appreciated that interface corresponding with the RP of node is the interface in tatic range.Interface in tatic range with
It is usually one-to-many relationship between the RP of node.Interface in tatic range only with the change of the node adjacent with node and
Change.For a node, it is sent to the data of different nodes, it may be necessary to the same node forwarding connected to it,
Therefore in the FIB rule before increase, the interface in RP and tatic range of usual multiple nodes is corresponding, i.e., static model
Enclosing between the RP of interior interface and node is one-to-many relationship.
In another implementation of the present embodiment, interface corresponding with the SRP in the first SHI can be dynamic model
Interior interface is enclosed, and the interface is corresponding with the IP address of adjacent node for transmitting data to source after source switching.
In this kind of implementation, according to SRP, increasing FIB rule may include:
In the interface in the dynamic range of setting, select a dynamic socket, and establish selection dynamic socket and
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after source switching;Establish the dynamic socket and SRP of selection
Corresponding relationship, to increase FIB rule, dynamic socket and the SRP of selection be arranged in a one-to-one correspondence.Due to the interface in dynamic range
It is one-to-one relationship between SRP, therefore the interface in dynamic range can arbitrarily increase and decrease.It should without using when a period of time
When corresponding relationship (sending interest packet according to increased FIB rule), which can be deleted, be prevented due to source frequency
Numerous switching causes FIB rule to increase without limitation, and saves Internet resources.
In the concrete realization, the interface in the interface and dynamic range in tatic range can be carried out to different numbers,
The range according to belonging to interface index determines that the interface is the interface in tatic range or the interface in dynamic range.
Step 1110: the first router increases FIB rule, occurrence is searched in PIT, when there are occurrences according to SRP
When, the corresponding interest packet of occurrence is sent according to increased FIB rule.
It should be noted that since the first router is that former base station is routed to user terminal and new base station is routed to user terminal
Congruent point, interest packet include that source is communicating serving BS (former base station) title/source title/content name when initiating, because
The forward-path of this interest packet should be followed successively by the first router, former base station, source, and there are occurrences in the first router.
In a particular application, searching occurrence can be in the following way: the serial number in LRI being added 1 first, then will
Item in content name in LRI and serial number and PIT after adding 1 compares, if having found content name and serial number all phases
Same item, then be determined as occurrence for this, and continue to add serial number into 1, then by the content name in LRI and after adding 1
Serial number (be equivalent in the serial number in LRI and add 2) is compared with the item in PIT, is so recycled, until not finding content name
Until title and all identical item of serial number.
It should be noted that the first router is the congruent point that former base station and new base station are routed to user terminal, the first SHI is logical
It crosses after new base station is transferred to the first router, can establish the path for the source that the first router reaches after switching, and due to
There are occurrences in the first router, the interest packet that source is not received by when switching over can be issued source again
It is responded, therefore in the present embodiment, the first router can not need to send the first SHI to former base station again, to save net
The flow of network.
In another embodiment, the first router can send the first SHI to former base station, correspondingly, in the embodiment also
Comprising steps of former base station increases FIB rule, occurrence is searched in PIT, when there are occurrence, according to increase according to SRP
FIB rule send the corresponding interest packet of occurrence.
In another embodiment, when former base station and new base station are not present to the congruent point of user terminal, what former base station executed
The step of step is executed with the first router in the present embodiment is identical.
Step 1111: CS is searched after receiving the corresponding interest packet of occurrence in new base station, when there is no meet occurrence to CS
When the content of corresponding interest packet, according to the corresponding interest packet of increased FIB rule forwarding occurrence and PIT table is updated.
As previously mentioned, the course of work of all nodes is all essentially identical with the first router, therefore, which can be with
Identical as step 1110, this will not be detailed here.
Step 1112: source searches Repository component after receiving the corresponding interest packet of occurrence, generates response
Data packet with the corresponding interest packet of item and the data packet for sending generation.
It is to be appreciated that the step 1112 can be identical as step 1104, this will not be detailed here.
Step 1113: after new base station receives data packet, storing data packet updates PIT table, forwards data to user terminal
Packet.
As previously mentioned, the course of work of all nodes is all identical, therefore, which can be identical as step 1105,
This will not be detailed here.
Step 1114: after the first router receives data packet, storing data packet updates PIT table, to user terminal forwarding number
According to packet.
As previously mentioned, the course of work of all nodes is all identical, therefore, which can be identical as step 1105,
This will not be detailed here.
Step 1115: user terminal received data packet.
It is to be appreciated that in the present embodiment, the data packet of the step 1115 is also to the first router in step 1110
The response of the corresponding interest packet of the occurrence of transmission.
Optionally, the method for the present embodiment can also include step 1116: when node in setting time not according to increase
FIB rule when sending interest packet, knot removal increased FIB rule.
In the present embodiment, setting time can for setting according to increased FIB rule send interest packet after when
Between, any value such as between 10 seconds to 30 seconds.
It should be noted that source is switched before increased FIB redundant rule elimination again, FIB rule increases again
One.Since the RP in increased FIB rule is that source is communicating serving BS title/source title when initiating.Therefore
There are two the RP that longest match rule can be carried out with interest packet, at this point, node can be regular to longest prefix match is met simultaneously
The corresponding interface of RP send interest packet, so that it is guaranteed that interest packet is sent to source.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of the RP//SRP, SRP at former base station
Serving BS title/source title when initiating is being communicated for source, and according to SRP, is increasing FIB rule, due to interest packet
It includes source and is communicating serving BS title/source title/content name when initiating, the SRP in FIB rule before increasing is
Source is communicating serving BS title when initiating, therefore according to the longest prefix match of routing rule, is sent to the emerging of source
Interest packet can be sent according to increased FIB rule, realize and the interest packet that user terminal is sent is transmitted to source by new base station, whole
A process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies system setting.And interest packet is not
Reseal and can issue source, improves communication efficiency.In addition, in source switching, directly according to the first SHI
In SRP increase FIB rule so that the interest packet for being sent to source is sent according to increased FIB rule, without waiting for source
After sending its switching can route prefix, do not need to Reseal interest packet yet, it is time-consuming it is shorter (in experimental situation about
0.1 second), it can satisfy requirement of real-time.
Embodiment 12
The embodiment of the invention provides one kind be based on CCN data transmission method, the present embodiment can as embodiment 11,
First carry out step 1101-1107, the present embodiment and embodiment 11 the difference is that, in the present embodiment, the first SHI be by
What source was sent when switching will occur, referring to Figure 13, after executing step 1101-1107, this method further include:
Step 1201: when source switching will occur, source constructs and sends the first SHI, and the first SHI includes new base station
Content name and serial number in the first SHI mark of RP//SRP/LRI.
In the communication process of step 1101-1107, source may be changed due to mobile or network environment and be occurred
Switching.When source switching will occur, i.e., according to source in RP, source title, the LRI structure for communicating serving BS when initiating
Make the first SHI.In the present embodiment, source is former base station communicating serving BS when initiating.
In the present embodiment, the RP of new base station is used to indicate node (router or base station) and sends new base for the first SHI
It stands.First SHI mark is used to indicate the router for receiving the first SHI or purpose base station and (is detailed in step according to SRP increase FIB rule
It is rapid 1202).SRP is that source is communicating serving BS (former base station) title/source title when initiating.It is user when communication is initiated
When end sends interest packet for the first time, the issue mechanism based on CCN, user terminal is known that the serving BS of source at this time.
In practical applications, the format of the first SHI can be such that ccnx: the first SHI mark of RP//SRP/ of/new base station
The serial number in content name/LRI in LRI, wherein ccnx is for indicating that the first SHI uses ccnx agreement.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Step 1202: former base station increases FIB rule according to SRP, and occurrence is searched in PIT.
In the present embodiment, increased FIB rule includes that SRP in the first SHI and node transmit number after source switching
According to the corresponding relationship between the interface of source.
Occurrence is that content name is identical as the content name in LRI, and serial number is greater than or equal to the interest of the serial number in LRI
Packet.When occurrence is not present, new base station sends the first SHI.Since interest packet includes that source is communicating service base when initiating
Stand (former base station) title/source title/content name, the forward-path of interest packet should be followed successively by the first router, former base station,
Source, therefore, there are occurrences in former base station.
In a kind of implementation of the present embodiment, interface corresponding with the SRP in the first SHI can be tatic range
Interior interface, and the interface is corresponding with the IP address of adjacent node for transmitting data to source after source switching.
It is to be appreciated that interface corresponding with the RP of node is the interface in tatic range.Interface in tatic range with
It is usually one-to-many relationship between the RP of node.Interface in tatic range only with the change of the node adjacent with node and
Change.For a node, it is sent to the data of different nodes, it may be necessary to the same node forwarding connected to it,
Therefore in the FIB rule before increase, the interface in RP and tatic range of usual multiple nodes is corresponding, i.e., static model
Enclosing between the RP of interior interface and node is one-to-many relationship.
In another implementation of the present embodiment, interface corresponding with the SRP in the first SHI can be dynamic model
Interior interface is enclosed, and the interface is corresponding with the IP address of adjacent node for transmitting data to source after source switching.Dynamic model
Enclosing between the RP of interior interface and node is one-to-one relationship.
In this kind of implementation, according to SRP, increasing FIB rule may include:
In the interface in the dynamic range of setting, select a dynamic socket, and establish selection dynamic socket and
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after source switching;Establish the dynamic socket and SRP of selection
Corresponding relationship, to increase FIB rule, dynamic socket and the SRP of selection be arranged in a one-to-one correspondence.Due to the interface in dynamic range
It is one-to-one relationship between SRP, therefore the interface in dynamic range can arbitrarily increase and decrease.It should without using when a period of time
When corresponding relationship (sending interest packet according to increased FIB rule), which can be deleted, be prevented due to source frequency
Numerous switching causes FIB rule to increase without limitation, and saves Internet resources.
In the concrete realization, the interface in the interface and dynamic range in tatic range can be carried out to different numbers,
The range according to belonging to interface index determines that the interface is the interface in tatic range or the interface in dynamic range.
In a particular application, searching occurrence can be in the following way: the serial number in LRI being added 1 first, then will
Item in content name in LRI and serial number and PIT after adding 1 compares, if having found content name and serial number all phases
Same item, then be determined as occurrence for this, and continue to add serial number into 1, then by the content name in LRI and after adding 1
Serial number (be equivalent in the serial number in LRI and add 2) is compared with the item in PIT, is so recycled, until not finding content name
Until title and all identical item of serial number.
Step 1203: the first router increases FIB rule according to SRP, and occurrence is searched in PIT.
As described in Example 11, the course of work of all nodes is all identical, and therefore, which can be with step 1202
Identical, this will not be detailed here.
Step 1204: new base station is according to the first SHI, after the completion of source switching, sends AOS message, AOS message includes original
The RP/SHI ACK of base station.
It should be noted that the RP at former base station, which is used to indicate node, sends former base station for the first SHI.SHIACK is for referring to
Show the router for receiving AOS message or former base station, source completes switching, and the corresponding interest packet of occurrence can be sent to source
(it is detailed in step 1205 and step 1206).
In practical applications, the format of AOS can be such that ccnx: the RP/AOS ACK at/former base station, wherein ccnx is used for
Indicate that the first SHI uses ccnx agreement.
Step 1205: the first router sends the corresponding interest of occurrence according to AOS message, according to increased FIB rule
Packet.
It is readily apparent that, in the router between former base station and new base station, other routers in addition to the first router
Effect is exactly to forward AOS, i.e. reception AOS information and sending AOS message.
It should be noted that in other embodiments, when there is no be routed to user terminal between former base station and new base station
When congruent point, the executing subject of step 1205 is former base station.
Step 1206: CS is searched after receiving the corresponding interest packet of occurrence in new base station, when content name pair is not present in CS
When the content answered, according to the corresponding interest packet of increased FIB rule forwarding occurrence and PIT table is updated.
When content corresponding there are content name, the corresponding content of content name is encapsulated as data packet by new base station, hair
User terminal is given, to make a response to the interest packet.In the present embodiment, due to new base station be for the first time receive it is interior including this
Hold the interest packet of title, therefore there is no the corresponding content of storage content title in CS.
As described in Example 11, the course of work of all nodes is all identical, and therefore, which can be with step 1102
Identical, this will not be detailed here.
Step 1207: source searches Repository component after receiving the corresponding interest packet of occurrence, generates response
Data packet with the corresponding interest packet of item is simultaneously sent.
It is to be appreciated that the step 1207 can be identical as step 1104, this will not be detailed here.
Step 1208: after new base station receives data packet, storing data packet updates PIT table, forwards data to user terminal
Packet.
As described in Example 11, the course of work of all nodes is all identical, and therefore, which can be with step 1105
Identical, this will not be detailed here.
Step 1209: after the first router receives data packet, storing data packet updates PIT table, to user terminal forwarding number
According to packet.
As described in Example 11, the course of work of all nodes is all identical, and therefore, which can be with step 1105
Identical, this will not be detailed here.
Step 1210: user terminal receives data packet.
It is to be appreciated that the step 1210 can be identical as step 1107, this will not be detailed here.In the present embodiment, should
The data packet of step 1210 is the response of the corresponding interest packet of occurrence sent to the first router in step 1205.
Optionally, the method for the present embodiment can also include step 1211: when node in setting time not according to increase
FIB rule when sending interest packet, knot removal increased FIB rule.
It is to be appreciated that the step 1211 can be identical as step 1116, this will not be detailed here.
It should be noted that source is switched before increased FIB redundant rule elimination again, FIB rule increases again
One.Since the RP in increased FIB rule is that source is communicating serving BS title/source title when initiating.Therefore
There are two the RP that longest match rule can be carried out with interest packet, at this point, node can be regular to longest prefix match is met simultaneously
The corresponding interface of RP send interest packet, so that it is guaranteed that interest packet is sent to source.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of the RP//SRP, SRP at former base station
Serving BS title/source title when initiating is being communicated for source, and according to SRP, is increasing FIB rule, due to interest packet
It includes source and is communicating serving BS title/source title/content name when initiating, the SRP in FIB rule before increasing is
Source is communicating serving BS title when initiating, therefore according to the longest prefix match of routing rule, is sent to the emerging of source
Interest packet can be sent according to increased FIB rule, realize and the interest packet that user terminal is sent is transmitted to source by new base station, whole
A process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies system setting.And interest packet is not
Reseal and can issue source, improves communication efficiency.In addition, in source switching, directly according to the first SHI
In SRP increase FIB rule so that the interest packet for being sent to source is sent according to increased FIB rule, without waiting for source
After sending its switching can route prefix, do not need to Reseal interest packet yet, it is time-consuming it is shorter (in experimental situation about
0.1 second), it can satisfy requirement of real-time.
Embodiment 13
The embodiment of the invention provides a kind of data transmission method based on CCN, the present embodiment can be with embodiment 12 1
Sample, first carries out step 1101- step 1107, the present embodiment and embodiment 12 the difference is that, the present embodiment is applied to source
The serving BS of end before the handover can know the network of the serving BS (as by terminal examining report) of source after handover,
Such as 3GPP network, in the present embodiment, source constructs when switching will occur and sends the 2nd SHI, and the first SHI is by former base
Stand according to the 2nd SHI construct and send, referring to Figure 14, after executing step 1101-1107, this method further include:
Step 1301: source switching will occur, and source constructs and send the 2nd SHI, and the 2nd SHI includes former base station
Content name and serial number in the 2nd SHI mark of RP//SRP/LRI.
In the communication process of step 1101-1107, source may be changed due to mobile or network environment and be occurred
Switching.When source switching will occur, i.e., according to source in RP, source title, the LRI structure for communicating serving BS when initiating
Make the 2nd SHI.In the present embodiment, source is former base station communicating serving BS when initiating.
In the present embodiment, the RP at former base station is used to indicate source and sends new base station for the 2nd SHI.2nd SHI mark
Be used to indicate former base station according in the SRP and LRI in the 2nd SHI content name and serial number construct and send the first SHI(be detailed in
Step 1302).SRP is that source is communicating serving BS (former base station) title/source title when initiating.It is use when communication is initiated
When family end sends interest packet for the first time, the issue mechanism based on CCN, user terminal is known that the serving BS of source at this time.
In practical applications, the format of the 2nd SHI can be such that ccnx: the 2nd SHI mark of the RP//SRP/ at/former base station
The serial number in content name/LRI in LRI, wherein ccnx is for indicating that the 2nd SHI uses ccnx agreement.
It should be noted that the base station name and source title that include in SHI can also use Base Station Identification and source respectively
Mark replace, the embodiment of the present invention to this with no restriction.
Step 1302: former base station constructs and sends the first SHI according to the 2nd SHI, and the first SHI includes the RP/ of new base station
One SHI mark/SRP/LRI.
It should be noted that the RP of new base station is used to indicate node (router or base station) and sends new base for the first SHI
It stands.First SHI mark is used to indicate router or purpose base station and (is detailed in step 1203) according to SRP increase FIB rule.
In a particular application, since former base station can obtain the RP of new base station by terminal survey report, source is not needed
To the new base station RP of former base station report, so source specially records the module of new base station RP without exploitation, exploitation amount is small, reduces out
Send out cost.
Step 1303: the first router increases FIB rule according to SRP, and occurrence is searched in PIT.
In the present embodiment, increased FIB rule includes that SRP in the first SHI and node transmit number after source switching
According to the corresponding relationship between the interface of source.
Occurrence is that content name is identical as the content name in LRI, and serial number is greater than or equal to the interest of the serial number in LRI
Packet.When occurrence is not present, the first router only sends the first SHI.Since interest packet includes that source is communicating when initiating
Serving BS (former base station) title/source title/content name, the forward-path of interest packet should be followed successively by the first router,
Former base station, source, therefore, there are occurrences in the first router.
It is to be appreciated that the step 1303 can be identical as step 1203, this will not be detailed here.
Step 1304: new base station is according to the first SHI, after the completion of source switching, sends AOS message, AOS message includes original
The RP/SHI ACK of base station.
It should be noted that the RP at former base station, which is used to indicate node, sends former base station for the first SHI.SHIACK is for referring to
Show the router for receiving AOS message or former base station, source completes switching, and the corresponding interest packet of occurrence can be sent to source
(it is detailed in step 1305 and step 1306).
In practical applications, the format of AOS can be such that ccnx: the RP/AOS ACK at/former base station, wherein ccnx is used for
Indicate that the first SHI uses ccnx agreement.
Step 1305: the first router sends the corresponding interest of occurrence according to AOS message, according to increased FIB rule
Packet.
It is readily apparent that, in the router between former base station and new base station, other routers in addition to the first router
Effect is exactly to forward AOS, i.e. reception AOS information and sending AOS message.
It should be noted that in other embodiments, when there is no be routed to user terminal between former base station and new base station
When congruent point, the executing subject of step 1303 and step 1305 is former base station.
Step 1306: CS is searched after receiving the corresponding interest packet of occurrence in new base station, when content name pair is not present in CS
When the content answered, according to the corresponding interest packet of increased FIB rule forwarding occurrence and PIT table is updated.
When content corresponding there are content name, the corresponding content of content name is encapsulated as data packet by new base station, hair
User terminal is given, to make a response to the interest packet.In the present embodiment, due to new base station be for the first time receive it is interior including this
Hold the interest packet of title, therefore there is no the corresponding content of storage content title in CS.
As described in Example 11, the course of work of all nodes is all identical, and therefore, which can be with step 1102
Identical, this will not be detailed here.
Step 1307: source searches Repository component after receiving the corresponding interest packet of occurrence, generates response
Data packet with the corresponding interest packet of item is simultaneously sent.
It is to be appreciated that the step 1307 can be identical as step 1104, this will not be detailed here.
Step 1308: after new base station receives data packet, storing data packet updates PIT table, forwards data to user terminal
Packet.
As described in Example 11, the course of work of all nodes is all identical, and therefore, which can be with step 1105
Identical, this will not be detailed here.
Step 1309: after the first router receives data packet, storing data packet updates PIT table, to user terminal forwarding number
According to packet.
As described in Example 11, the course of work of all nodes is all identical, and therefore, which can be with step 1105
Identical, this will not be detailed here.
Step 1310: user terminal receives data packet.
It is to be appreciated that the step 1310 can be identical as step 1107, this will not be detailed here.In the present embodiment, should
The data packet of step 1310 is the response of the corresponding interest packet of occurrence sent to the first router in step 1305.
Optionally, the method for the present embodiment can also include step 1311: when node in setting time not according to increase
FIB rule when sending interest packet, knot removal increased FIB rule.
It is to be appreciated that the step 1311 can be identical as step 1116, it be not described in detail herein.
It should be noted that source is switched before increased FIB redundant rule elimination again, FIB rule increases again
One.Since the RP in increased FIB rule is that source is communicating serving BS title/source title when initiating.Therefore
There are two the RP that longest match rule can be carried out with interest packet, at this point, node can be regular to longest prefix match is met simultaneously
The corresponding interface of RP send interest packet, so that it is guaranteed that interest packet is sent to source.
For the embodiment of the present invention by receiving the first SHI, the first SHI includes the first SHI mark of the RP//SRP, SRP at former base station
Serving BS title/source title when initiating is being communicated for source, and according to SRP, is increasing FIB rule, due to interest packet
It includes source and is communicating serving BS title/source title/content name when initiating, the SRP in FIB rule before increasing is
Source is communicating serving BS title when initiating, therefore according to the longest prefix match of routing rule, is sent to the emerging of source
Interest packet can be sent according to increased FIB rule, realize and the interest packet that user terminal is sent is transmitted to source by new base station, whole
A process, which does not need special indirect one device is arranged, is forwarded interest packet, simplifies system setting.And interest packet is not
Reseal and can issue source, improves communication efficiency.In addition, in source switching, directly according to the first SHI
In SRP increase FIB rule so that the interest packet for being sent to source is sent according to increased FIB rule, without waiting for source
After sending its switching can route prefix, do not need to Reseal interest packet yet, it is time-consuming it is shorter (in experimental situation about
0.1 second), it can satisfy requirement of real-time.
It should be understood that provided by the above embodiment transmitting data based on the data transmission device of content center network
When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function
With being completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete above description
All or part of function.In addition, it is provided by the above embodiment based on the data transmission method of content center network be based on
The data transmission device embodiment of content center network belongs to same design, and specific implementation process is detailed in embodiment of the method, this
In repeat no more.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (44)
1. a kind of data transmission device based on content center network CCN, which is characterized in that described device includes:
Receiving module, for receiving the switching instruction of the first source, first source switching instruction include purpose base station can road
By prefix, the first source switching sign and source can route prefix, the source can route prefix be the source logical
Serving BS title and the source title when letter is initiated, the purpose base station are the serving BS of the source before the handover
Or the serving BS of the source after handover;
Rule increase module, for according to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding
Information bank rule include the source can route prefix and the source switching after transmit data to the source interface it
Between corresponding relationship.
2. the apparatus according to claim 1, which is characterized in that when first source switching instruction is existed by the source
Switching complete when send when, the purpose base station be the serving BS of the source before the handover, the source switching after
The interface of the source is transmitted data to, for the internet protocol address for switching instruction upper hop node with first source
Corresponding interface;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base station is
The serving BS of the source after handover transmits data to the interface of the source after source switching, for it is described
The corresponding interface of IP address of first source switching instruction next-hop node.
3. the apparatus according to claim 1, which is characterized in that when first source switching instruction is existed by the source
Serving BS before switching send when, the purpose base station is the serving BS of the source after handover, in the source
The interface of the source is transmitted data to after switching, it is corresponding to switch the instruction IP address of next-hop node with first source
Interface;Wherein, the first source switching instruction is the second source sent according to the source when switching will occur
Switch indication structure, the second source switching instruction, which includes the source, is communicating serving BS title when initiating, the
Two sources switch sign and the source can route prefix.
4. device according to claim 1-3, which is characterized in that the first source switching instruction further includes institute
State the content name and serial number in the last one interest packet that source receives before the handover;
Described device further include:
Searching module, for searching whether in pending interest table there are occurrence, the occurrence be content name with it is described
Content name in the last one interest packet is identical, and serial number is greater than or equal to the interest of the serial number in the last one described interest packet
Packet;
Sending module, for sending the matching according to the increased forwarding information storehouse rule when there are the occurrence
The corresponding interest packet of item.
5. device according to claim 4, which is characterized in that the sending module is used for,
When first source switching instruction is to be sent by the source when switching will occur, alternatively, when described the
The switching instruction of one source be sent by source serving BS before the handover when, receiving the source after handover
The source switching instruction confirmation message that sends of serving BS after, send according to the increased forwarding information storehouse rule described in
The corresponding interest packet of occurrence, the source switching instruction confirmation message is for indicating that the source completes switching.
6. device according to claim 4, which is characterized in that the sending module is also used to,
When the occurrence is not present, indicated receiving the source switching that the serving BS of the source after handover is sent
After confirmation message, the source switching instruction confirmation message, the source are sent to the serving BS of the source before the handover
Switching instruction confirmation message in end is for indicating that the source completes switching.
7. device according to claim 1-3, which is characterized in that the rule increases module and includes:
Interface selecting unit in the interface in the dynamic range of setting, selecting a dynamic socket, and establishes selection
Dynamic socket and source switching after transmit data to source adjacent node IP address corresponding relationship;
Relationship establishes unit, for establish selection dynamic socket and the source can route prefix corresponding relationship, with increase
Forwarding information storehouse rule, the selected dynamic socket and the source can route prefix be arranged in a one-to-one correspondence.
8. device according to claim 7, which is characterized in that described device further include:
Redundant rule elimination module, for interest packet ought not sent according to the increased forwarding information storehouse rule within the set time
When, delete the increased forwarding information storehouse rule.
9. a kind of data transmission device based on content center network CCN, which is characterized in that described device includes central processing unit
And perhaps more than one program one of them or more than one program is stored in the memory by memory and one
In, and be configured to by one or more than one described central processing unit executes, the one or more programs packet
Containing the instruction for performing the following operation:
Receive the switching instruction of the first source, first source switching instruction include purpose base station can route prefix, the first source
End switching sign and source can route prefix, the source can route prefix be the source communicate initiate when service
Base station name and the source title, the purpose base station are that source serving BS before the handover or the source are being cut
Serving BS after changing;
According to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule includes institute
Stating source can route prefix and the corresponding relationship between the interface for transmitting data to the source after source switching.
10. device according to claim 9, which is characterized in that when first source switching instruction is by the source
Switch complete when send when, the purpose base station be the serving BS of the source before the handover, the source switch
The interface of the source is transmitted data to, afterwards for switching the Internet protocol IP for indicating upper hop node with first source
The corresponding interface in location;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base station is
The serving BS of the source after handover transmits data to the interface of the source after source switching, for it is described
The corresponding interface of IP address of first source switching instruction next-hop node.
11. device according to claim 9, which is characterized in that when first source switching instruction is by the source
Serving BS before the handover send when, the purpose base station is the serving BS of the source after handover, in the source
The interface of the source is transmitted data to after the switching of end, for the IP address pair for switching instruction next-hop node with first source
The interface answered;Wherein, the first source switching instruction is the second source sent according to the source when switching will occur
End switching indication structure, the second source switching instruction include the source communicate serving BS title when initiating,
Second source switches sign and the source can route prefix.
12. according to the described in any item devices of claim 9-11, which is characterized in that first source switches instruction and further includes
The content name and serial number in the last one interest packet that the source receives before the handover;The one or more
Program also includes the instruction for performing the following operation:
It searches whether in pending interest table there are occurrence, the occurrence is content name and the last one described interest packet
In content name it is identical, serial number is greater than or equal to the interest packet of the serial number in the last one described interest packet;
When there are the occurrence, the corresponding interest of the occurrence is sent according to the increased forwarding information storehouse rule
Packet.
13. device according to claim 12, which is characterized in that when first source switching instruction is by the source
Sent when switching and completing when, alternatively, when first source switching instruction is service base by the source before the handover
Stand send when, the one or more programs include instruction for performing the following operation:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching instruction
Confirmation message is for indicating that the source completes switching;
After receiving the source switching instruction confirmation message, according to described in the increased forwarding information storehouse rule transmission
The corresponding interest packet of occurrence.
14. device according to claim 12, which is characterized in that when be not present the occurrence when, it is one or
More than one program also includes the instruction for performing the following operation:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching instruction
Confirmation message is for indicating that the source completes switching;
The source switching instruction confirmation message is sent to the serving BS of the source before the handover.
15. according to the described in any item devices of claim 9-11, which is characterized in that the one or more programs packet
Containing the instruction for performing the following operation:
In the interface in the dynamic range of setting, a dynamic socket is selected, and establishes the dynamic socket of selection and in source
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after switching;
Establish selection dynamic socket and the source can route prefix corresponding relationship, with increase forwarding information storehouse rule, institute
State the dynamic socket of selection and the source can route prefix be arranged in a one-to-one correspondence.
16. device according to claim 15, which is characterized in that the one or more programs also include to be used for
The instruction performed the following operation:
When according to the increased forwarding information storehouse rule not sending interest packet within the set time, delete increased described
Forwarding information storehouse rule.
17. a kind of data transmission device based on content center network CCN, which is characterized in that described device includes:
Indication structure module, for constructing the switching instruction of the first source, the first source switching instruction includes purpose base station
Can route prefix, the first source switching sign and source can route prefix, the source can route prefix be the source
Serving BS title and the source title when initiating are being communicated, the first source switching sign, which is used to indicate, to be received
The node of first source switching instruction according to the source can route prefix, increase forwarding information storehouse rule, increased institute
State forwarding information storehouse rule include the source can route prefix and the source switching after transmit data to the source
Corresponding relationship between interface, the purpose base station be source serving BS before the handover or the source after handover
Serving BS;
Sending module, for sending the first source switching instruction.
18. device according to claim 17, which is characterized in that the first source switching instruction is existed by the source
It constructs and sends when switching is completed, the purpose base station is the serving BS of the source before the handover;Alternatively, described first
Source switching instruction is constructed and is sent when switching will occur by the source, and the purpose base station is that the source exists
Serving BS after switching.
19. device according to claim 17, which is characterized in that described device further include:
Receiving module, the second source switching instruction sent for receiving the source, the second source switching instruction be by
What the source was sent when switching will occur, the second source switching instruction includes that the source is communicating when initiating
Serving BS title, the second source switching sign and the source can route prefix;
The indication structure module is used for, according to the first source switching instruction described in second source switching indication structure.
20. the described in any item devices of 7-19 according to claim 1, which is characterized in that the first source switching instruction is also wrapped
The content name and serial number in the last one interest packet that the source receives before the handover are included, the first source switching refers to
Indicating knowledge is also used to, and the node that instruction receives the first source switching instruction searches whether there is matching in pending interest table
, the occurrence is that content name is identical as the content name in the last one described interest packet, and serial number is greater than or equal to institute
The interest packet for stating the serial number in the last one interest packet, when there are the occurrence, according to the increased forwarding information storehouse
Rule sends the corresponding interest packet of the occurrence.
21. a kind of data transmission device based on content center network CCN, which is characterized in that described device includes central processing
Perhaps more than one program one of them or more than one program is stored in the storage by device and memory and one
In device, and it is configured to by one or more than one described central processing unit executes, the one or more programs
Include the instruction for performing the following operation:
Construct the switching instruction of the first source, first source switching instruction include purpose base station can route prefix, the first source
End switching sign and source can route prefix, the source can route prefix be the source communicate initiate when service
Base station name and the source title, first source switching sign, which is used to indicate, to be received the first source switching and refers to
The node shown according to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule packet
Include the source can route prefix and the source switching after transmit data to the source interface between corresponding relationship,
The purpose base station is the serving BS of serving BS or the source after handover of the source before the handover;
Send the first source switching instruction.
22. device according to claim 21, which is characterized in that the first source switching instruction is existed by the source
It constructs and sends when switching is completed, the purpose base station is the serving BS of the source before the handover;Alternatively, described first
Source switching instruction is constructed and is sent when switching will occur by the source, and the purpose base station is that the source exists
Serving BS after switching.
23. device according to claim 21, which is characterized in that the one or more programs include for into
The following instruction operated of row:
The second source switching instruction that the source is sent is received, the second source switching instruction is being switched by the source
Sent when will occur, second source switching instruction include the source communicate serving BS title when initiating,
Second source switches sign and the source can route prefix;
According to the first source switching instruction described in second source switching indication structure.
24. according to the described in any item devices of claim 21-23, which is characterized in that the first source switching instruction is also wrapped
The content name and serial number in the last one interest packet that the source receives before the handover are included, the first source switching refers to
Indicating knowledge is also used to, and the node that instruction receives the first source switching instruction searches whether there is matching in pending interest table
, the occurrence is that content name is identical as the content name in the last one described interest packet, and serial number is greater than or equal to institute
The interest packet for stating the serial number in the last one interest packet, when there are the occurrence, according to the increased forwarding information storehouse
Rule sends the corresponding interest packet of the occurrence.
25. a kind of communication system, which is characterized in that the system comprises source, base station and router,
The base station and the router are used for,
Receive the switching instruction of the first source, first source switching instruction include purpose base station can route prefix, the first source
End switching sign and source can route prefix, the source can route prefix be the source communicate initiate when service
Base station name and the source title, the purpose base station are that source serving BS before the handover or the source are being cut
Serving BS after changing;
According to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule includes institute
Stating source can route prefix and the corresponding relationship between the interface for transmitting data to the source after source switching.
26. system according to claim 25, which is characterized in that when first source switching instruction is by the source
Switch complete when send when, the purpose base station be the serving BS of the source before the handover, the source switch
The interface of the source is transmitted data to, afterwards for switching the Internet protocol IP for indicating upper hop node with first source
The corresponding interface in location;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base station is
The serving BS of the source after handover transmits data to the interface of the source after source switching, for it is described
The corresponding interface of IP address of first source switching instruction next-hop node.
27. system according to claim 25, which is characterized in that when first source switching instruction is by the source
Serving BS before the handover send when, the purpose base station is the serving BS of the source after handover, in the source
The interface of the source is transmitted data to after the switching of end, for the IP address pair for switching instruction next-hop node with first source
The interface answered;Wherein, the first source switching instruction is the second source sent according to the source when switching will occur
End switching indication structure, the second source switching instruction include the source communicate serving BS title when initiating,
Second source switches sign and the source can route prefix.
28. according to the described in any item systems of claim 25-27, which is characterized in that the first source switching instruction is also wrapped
Include the content name and serial number in the last one interest packet that the source receives before the handover;
The base station and the router are also used to,
It searches whether in pending interest table there are occurrence, the occurrence is content name and the last one described interest packet
In content name it is identical, serial number is greater than or equal to the interest packet of the serial number in the last one described interest packet;
When there are the occurrence, the corresponding interest of the occurrence is sent according to the increased forwarding information storehouse rule
Packet.
29. a kind of communication system, which is characterized in that the system comprises source, base station and router,
The source or the base station are used for,
Construct the switching instruction of the first source, first source switching instruction include purpose base station can route prefix, the first source
End switching sign and source can route prefix, the source can route prefix be the source communicate initiate when service
Base station name and the source title, first source switching sign, which is used to indicate, to be received the first source switching and refers to
The node shown according to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule packet
Include the source can route prefix and the source switching after transmit data to the source interface between corresponding relationship,
The purpose base station is the serving BS of serving BS or the source after handover of the source before the handover;
Send the first source switching instruction.
30. system according to claim 29, which is characterized in that the first source switching instruction is existed by the source
It constructs and sends when switching is completed, the purpose base station is the serving BS of the source before the handover;Alternatively, described first
Source switching instruction is constructed and is sent when switching will occur by the source, and the purpose base station is that the source exists
Serving BS after switching.
31. system according to claim 29, which is characterized in that the source or the base station are used for:
The second source switching instruction that the source is sent is received, the second source switching instruction is being switched by the source
Sent when will occur, second source switching instruction include the source communicate serving BS title when initiating,
Second source switches sign and the source can route prefix;
According to the first source switching instruction described in second source switching indication structure.
32. according to the described in any item systems of claim 29-31, which is characterized in that the first source switching instruction is also wrapped
The content name and serial number in the last one interest packet that the source receives before the handover are included, the first source switching refers to
Indicating knowledge is also used to, and the node that instruction receives the first source switching instruction searches whether there is matching in pending interest table
, the occurrence is that content name is identical as the content name in the last one described interest packet, and serial number is greater than or equal to institute
The interest packet for stating the serial number in the last one interest packet, when there are the occurrence, according to the increased forwarding information storehouse
Rule sends the corresponding interest packet of the occurrence.
33. a kind of data transmission method based on content center network, which is characterized in that the described method includes:
Receive the switching instruction of the first source, first source switching instruction include purpose base station can route prefix, the first source
End switching sign and source can route prefix, the source can route prefix be the source communicate initiate when service
Base station name and the source title, the purpose base station are that source serving BS before the handover or the source are being cut
Serving BS after changing;
According to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule includes institute
Stating source can route prefix and the corresponding relationship between the interface for transmitting data to the source after source switching.
34. according to the method for claim 33, which is characterized in that when first source switching instruction is by the source
Switch complete when send when, the purpose base station be the serving BS of the source before the handover, the source switch
The interface of the source is transmitted data to, afterwards for switching the Internet protocol IP for indicating upper hop node with first source
The corresponding interface in location;Alternatively,
When first source switching instruction is to be sent by the source when switching will occur, the purpose base station is
The serving BS of the source after handover transmits data to the interface of the source after source switching, for it is described
The corresponding interface of IP address of first source switching instruction next-hop node.
35. according to the method for claim 33, which is characterized in that when first source switching instruction is by the source
Serving BS before the handover send when, the purpose base station is the serving BS of the source after handover, in the source
The interface of the source is transmitted data to after the switching of end, for the IP address pair for switching instruction next-hop node with first source
The interface answered;Wherein, the first source switching instruction is the second source sent according to the source when switching will occur
End switching indication structure, the second source switching instruction include the source communicate serving BS title when initiating,
Second source switches sign and the source can route prefix.
36. according to the described in any item methods of claim 33-35, which is characterized in that the first source switching instruction is also wrapped
Include the content name and serial number in the last one interest packet that the source receives before the handover;
The method also includes:
It searches whether in pending interest table there are occurrence, the occurrence is content name and the last one described interest packet
In content name it is identical, serial number is greater than or equal to the interest packet of the serial number in the last one described interest packet;
When there are the occurrence, the corresponding interest of the occurrence is sent according to the increased forwarding information storehouse rule
Packet.
37. according to the method for claim 36, which is characterized in that when first source switching instruction is by the source
Sent when switching and completing when, alternatively, when first source switching instruction is service base by the source before the handover
Stand send when, it is described to send the corresponding interest packet of the occurrence according to the increased forwarding information storehouse rule, comprising:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching instruction
Confirmation message is for indicating that the source completes switching;
After receiving the source switching instruction confirmation message, according to described in the increased forwarding information storehouse rule transmission
The corresponding interest packet of occurrence.
38. according to the method for claim 36, which is characterized in that when the occurrence is not present, the method is also wrapped
It includes:
Receive the source switching instruction confirmation message that the serving BS of the source after handover is sent, the source switching instruction
Confirmation message is for indicating that the source completes switching;
The source switching instruction confirmation message is sent to the serving BS of the source before the handover.
39. according to the described in any item methods of claim 33-35, which is characterized in that it is described can be routed according to the source before
Sew, increase forwarding information storehouse rule, comprising:
In the interface in the dynamic range of setting, a dynamic socket is selected, and establishes the dynamic socket of selection and in source
The corresponding relationship of the IP address of the adjacent node of source is transmitted data to after switching;
Establish selection dynamic socket and the source can route prefix corresponding relationship, with increase forwarding information storehouse rule, institute
State the dynamic socket of selection and the source can route prefix be arranged in a one-to-one correspondence.
40. according to the method for claim 39, which is characterized in that the method also includes:
When according to the increased forwarding information storehouse rule not sending interest packet within the set time, delete increased described
Forwarding information storehouse rule.
41. a kind of data transmission method based on content center network, which is characterized in that the described method includes:
Construct the switching instruction of the first source, first source switching instruction include purpose base station can route prefix, the first source
End switching sign and source can route prefix, the source can route prefix be the source communicate initiate when service
Base station name and the source title, first source switching sign, which is used to indicate, to be received the first source switching and refers to
The node shown according to the source can route prefix, increase forwarding information storehouse rule, the increased forwarding information storehouse rule packet
Include the source can route prefix and the source switching after transmit data to the source interface between corresponding relationship,
The purpose base station is the serving BS of serving BS or the source after handover of the source before the handover;
Send the first source switching instruction.
42. according to the method for claim 41, which is characterized in that the first source switching instruction is existed by the source
It constructs and sends when switching is completed, the purpose base station is the serving BS of the source before the handover;Alternatively, described first
Source switching instruction is constructed and is sent when switching will occur by the source, and the purpose base station is that the source exists
Serving BS after switching.
43. according to the method for claim 41, which is characterized in that the switching instruction of the first source of the construction, comprising:
The second source switching instruction that the source is sent is received, the second source switching instruction is being switched by the source
Sent when will occur, second source switching instruction include the source communicate serving BS title when initiating,
Second source switches sign and the source can route prefix;
According to the first source switching instruction described in second source switching indication structure.
44. according to the described in any item methods of claim 41-43, which is characterized in that the first source switching instruction is also wrapped
The content name and serial number in the last one interest packet that the source receives before the handover are included, the first source switching refers to
Indicating knowledge is also used to, and the node that instruction receives the first source switching instruction searches whether there is matching in pending interest table
, the occurrence is that content name is identical as the content name in the last one described interest packet, and serial number is greater than or equal to institute
The interest packet for stating the serial number in the last one interest packet, when there are the occurrence, according to the increased forwarding information storehouse
Rule sends the corresponding interest packet of the occurrence.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2013/088191 WO2015077992A1 (en) | 2013-11-29 | 2013-11-29 | Device, method, and communication system for data transmission based on content centric network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104823479A CN104823479A (en) | 2015-08-05 |
CN104823479B true CN104823479B (en) | 2018-12-07 |
Family
ID=53198235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380003085.2A Active CN104823479B (en) | 2013-11-29 | 2013-11-29 | A kind of data transmission device based on content center network, method and communication system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104823479B (en) |
WO (1) | WO2015077992A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3424251B1 (en) * | 2016-03-01 | 2020-11-04 | Telefonaktiebolaget LM Ericsson (PUBL) | Handover initiated alignment of pending interest tables |
US11051355B2 (en) | 2016-03-01 | 2021-06-29 | Telefonaktiebolaget Lm Ericsson (Publ) | Correlation of user equipment identity to information centric networking request |
US10122624B2 (en) * | 2016-07-25 | 2018-11-06 | Cisco Technology, Inc. | System and method for ephemeral entries in a forwarding information base in a content centric network |
CN106603297B (en) * | 2016-12-22 | 2019-05-31 | 北京邮电大学 | Content provider's mobile switch method of content center network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271148A (en) * | 2010-05-13 | 2011-12-07 | 三星电子株式会社 | Terminal for a content centric network and method of communication for a terminal and a hub in a content centric network |
WO2013007208A1 (en) * | 2011-07-12 | 2013-01-17 | Huawei Technologies Co., Ltd. | Method and apparatus for seamless mobility techniques in content-centric network |
CN103415047A (en) * | 2013-07-25 | 2013-11-27 | 北京交通大学 | Mobility supporting method in content center network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8837511B2 (en) * | 2011-08-12 | 2014-09-16 | Futurewei Technologies, Inc. | Seamless mobility schemes in names-data networking using multi-path routing and content caching |
-
2013
- 2013-11-29 CN CN201380003085.2A patent/CN104823479B/en active Active
- 2013-11-29 WO PCT/CN2013/088191 patent/WO2015077992A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271148A (en) * | 2010-05-13 | 2011-12-07 | 三星电子株式会社 | Terminal for a content centric network and method of communication for a terminal and a hub in a content centric network |
WO2013007208A1 (en) * | 2011-07-12 | 2013-01-17 | Huawei Technologies Co., Ltd. | Method and apparatus for seamless mobility techniques in content-centric network |
CN103415047A (en) * | 2013-07-25 | 2013-11-27 | 北京交通大学 | Mobility supporting method in content center network |
Also Published As
Publication number | Publication date |
---|---|
CN104823479A (en) | 2015-08-05 |
WO2015077992A1 (en) | 2015-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104639672B (en) | The method and apparatus for carrying out domain name mapping | |
CN104035948B (en) | Geographic position display packing and device | |
CN103929796B (en) | The method and device of shared access point | |
CN103310009B (en) | Method, device and terminal for updating webpage data | |
WO2021243884A1 (en) | Network element determination method and device | |
CN106506728B (en) | A kind of access point name configuration method and mobile terminal | |
CN104636664B (en) | Cross-site scripting attack leak detection method and device based on DOM Document Object Model | |
CN106686396A (en) | Method and system for switching broadcasting rooms | |
CN103678605B (en) | A kind of method of information transfer, device and terminal device | |
TWI528182B (en) | Method and device for communications between processes | |
CN103530115B (en) | Application program display method and device and terminal equipment | |
CN103279574A (en) | Method, device and terminal device for loading explorer pictures | |
CN104281600B (en) | The method and apparatus of Intelligent Selection word | |
CN103678502B (en) | Information collection method and device | |
CN104823479B (en) | A kind of data transmission device based on content center network, method and communication system | |
CN103472995B (en) | A kind of method of message display, device and terminal unit | |
CN109982383A (en) | Data transmission method for uplink, device and equipment | |
CN107147549A (en) | Intelligent home device networking method and device | |
CN106658657A (en) | Network access method and device | |
CN107222902A (en) | A kind of method and apparatus for transmitting data | |
CN105376138B (en) | Method, the method and user equipment of data transmission of a kind of contact person addition | |
CN104731806B (en) | A kind of method and terminal for quickly searching user information in social networks | |
CN103399706A (en) | Page interaction method, device and terminal | |
CN104468483B (en) | Data transmission method and system, control device and node apparatus | |
CN105025064B (en) | Download the method, apparatus and system of file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |