[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107404438A - Network route method and network route system - Google Patents

Network route method and network route system Download PDF

Info

Publication number
CN107404438A
CN107404438A CN201610342073.8A CN201610342073A CN107404438A CN 107404438 A CN107404438 A CN 107404438A CN 201610342073 A CN201610342073 A CN 201610342073A CN 107404438 A CN107404438 A CN 107404438A
Authority
CN
China
Prior art keywords
routing
content
name
http
content name
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.)
Pending
Application number
CN201610342073.8A
Other languages
Chinese (zh)
Inventor
关宇
张行功
郭宗明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN201610342073.8A priority Critical patent/CN107404438A/en
Publication of CN107404438A publication Critical patent/CN107404438A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/021Ensuring consistency of routing table updates, e.g. by using epoch numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

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

Abstract

The present invention proposes a kind of network route method and a kind of network route system, wherein, network route method includes:According to the HTTP request received, content caching is searched in HTTP ICN routers;When not finding content caching, by routing mode corresponding to the selection of nearest copy Routing Protocol, to search next routing address using the routing mode.Pass through technical scheme, can be when not finding content caching, according to the routing mode that predetermined nearest copy Routing Protocol selection is suitable, it is to be route according to host name according further to content name to determine, so that user can more easily obtain required content nearby, mitigate the load of server, save network traffics.

Description

Network route method and network route system
Technical field
The present invention relates to technical field of the computer network, in particular to a kind of network route method and a kind of network Route system.
Background technology
In recent years, file transmission accounting in network application is very big, at present, typically passes through peer-to-peer network and content center net Network carries out file transmission.
Wherein, content center network (Content-Centric Networking) is also known as ICN (Information- Centric Networking, information centre's network) or name data network, it is that a kind of content name that is based on carries out data sharing With exchange, using the communication construction of cache mode built in network, have and support " wide to store tape swapping " and extensive content distribution Advantage.
It is local that the content center network difference maximum with traditional IP is that content center network is supported in design Data buffer storage, the function enable the packet transmitted from the server for permanently store data by intermediate router Nodal cache, so that user can hit required content nearby on nigh router.
However, due to content name enormous amount, and be difficult to do layered shaping, in working as calculation scale explosive increase Under, content center network is difficult to meet the needs of user is to high usage route.
Therefore, how while application content central site network to meet the needs of user is to high usage route, turn at present urgently Technical problem to be solved.
The content of the invention
The present invention is based on above mentioned problem, it is proposed that a kind of new technical scheme, in the same of application content central site network When meet the needs of user is to high usage route.
In view of this, an aspect of of the present present invention proposes a kind of network route method, including:Please according to the HTTP received Ask, content caching is searched in HTTP-ICN routers;When not finding content caching, selected by nearest copy Routing Protocol Corresponding routing mode, to search next routing address using the routing mode.
For compatible HTTP (HTTP), HTTP-ICN is still come pair using URL (URL) Content is identified, and in HTTP-ICN naming systems, URL is translated into 2 contents:Host name and content name, main frame Name is the intrinsic a part of substrings of URL, and it is typically denoted as domain name or IP address.Because network to a certain extent can be with It is considered as tree, therefore host name can preferably be sorted out, so as to reduce the name space of route.And content name It is defined as whole URL, because in a network, URL is Protean, so content name space is very big, it is difficult to be classified.
Therefore, in the technical scheme, the method for Multistage Proxy can be used to realize that ICN is route, specifically, can be not When finding content caching, suitable routing mode is selected according to predetermined nearest copy Routing Protocol, is according to main frame to determine Name is route according further to content name, so that user can more easily obtain required content nearby, mitigates service The load of device, saves network traffics.
In the above-mentioned technical solutions, it is preferable that the routing mode includes:Routing mode based on content name and it is based on The routing mode of host address.
In the technical scheme, when not finding content caching, select to be adapted to according to predetermined nearest copy Routing Protocol Routing mode, with determine be to be route according to host name according further to content name, that is to say, that routing mode can It is divided into the routing mode based on content name and two kinds of the routing mode of Intrusion Detection based on host address.Specifically, can be in HTTP- ICN routers are route using " nearest copy Routing Protocol ", and this is a mixed type routing policy, such as, Ke Yishe It is fixed that the route based on content name is carried out to hot content, other contents are carried out with Intrusion Detection based on host address i.e. the road of domain name By.
In any of the above-described technical scheme, it is preferable that described to select corresponding route side by nearest copy Routing Protocol Formula, specifically include:According to the copy Routing Protocol recently, judge whether routing object meets predetermined content name route bar Part;And the use routing mode searches next routing address, including:When judged result is to be, using described Routing mode based on content name searches next routing address, when the judged result is no, using described based on master The routing mode of machine address searches next routing address.
In the technical scheme, it can first judge whether routing object meets predetermined content name route conditions, if It is next routing address then to be searched using the routing mode based on content name, otherwise, using the route of Intrusion Detection based on host address Mode searches next routing address, wherein, predetermined content name route conditions can be configured according to being actually needed, than Such as, can be that the attributes such as the length, type, keyword of content name set threshold value, when the actual attribute of content name reaches this During threshold value, then judge that it meets predetermined content name route conditions, otherwise, judge not meeting., can root by the technical scheme According to whether the suitable routing mode of predetermined content name route conditions selection is met, so that user can more easily nearby Content needed for acquisition, mitigate the load of server, save network traffics.
In any of the above-described technical scheme, it is preferable that in the HTTP-ICN routers have content name routing table and Domain name routing table, each list item of the content name routing table are a content name, each table of domain name routing table Xiang Weiyi domain name, and it is described next routing address is searched by the routing mode, including:Using based on content name Routing mode search next routing address in the content name routing table, or the route side using Intrusion Detection based on host address Formula searches next routing address in domain name routing table.
In the technical scheme, the routing mode based on content name is corresponding with content name routing table, content name road It is a content name by each list item of table, the routing mode of Intrusion Detection based on host address is corresponding with domain name routing table, domain name route Each list item of table is a domain name.
When HTTP-ICN routers receive HTTP request, content name routing table is inquired about first, if content name be present The identical list item of word, then HTTP-ICN routers be known that content routing table hit have an Edge Server in store Next this content, therefore, the HTTP request will be progressively forwarded to the Edge Server.Wherein, there is nothing due to actual The content of the different names of number, and be difficult to set up hierarchical relationship between different content, so content can not all be carried out to all the elements The route of name, content name route are only applicable to some popular contents.
If content name routing table is not hit by, the following nslookup routing table of HTTP-ICN routers, because domain name has Have levels relation, then all HTTP requests can be route using limited individual list item, therefore, the route based on address can Suitable for all HTTP requests.
In any of the above-described technical scheme, it is preferable that also include:The route sent according to Edge Server to source server List item refreshing information, it is that each HTTP-ICN routers in transmitting path update the content name routing table.
In the technical scheme, content name routing table is only generated by Edge Server, whenever edge server storage During one content, it can send route table items refreshing information, on the way each every the set time to the source server of content HTTP-ICN routers can all consider to add this into content name routing table.Obviously, the route table size in router It is limited, but content name is unlimited, therefore more popular content can be added in content name routing table by router.
In addition, in any of the above-described technical scheme, it is preferable that also include:The HTTP request is parsed, for root Content caching is searched according to analysis result, wherein, the analysis result includes:Content name, content-length and content type.
In any of the above-described technical scheme, it is preferable that also include:, will be described corresponding when finding content caching Content caching is sent to the sender of the HTTP request.
Another aspect of the present invention proposes a kind of network route system, including:Content caching searching unit, according to reception The HTTP request arrived, content caching is searched in HTTP-ICN routers;Routing processing unit, when not finding content caching, By routing mode corresponding to the selection of nearest copy Routing Protocol, to search next routing address using the routing mode.
For compatible HTTP (HTTP), HTTP-ICN is still come pair using URL (URL) Content is identified, and in HTTP-ICN naming systems, URL is translated into 2 contents:Host name and content name, main frame Name is the intrinsic a part of substrings of URL, and it is typically denoted as domain name or IP address.Because network to a certain extent can be with It is considered as tree, therefore host name can preferably be sorted out, so as to reduce the name space of route.And content name It is defined as whole URL, because in a network, URL is Protean, so content name space is very big, it is difficult to be classified.
Therefore, in the technical scheme, the method for Multistage Proxy can be used to realize that ICN is route, specifically, can be not When finding content caching, suitable routing mode is selected according to predetermined nearest copy Routing Protocol, is according to main frame to determine Name is route according further to content name, so that user can more easily obtain required content nearby, mitigates service The load of device, saves network traffics.
In the above-mentioned technical solutions, it is preferable that the routing mode includes:Routing mode based on content name and it is based on The routing mode of host address.
In the technical scheme, when not finding content caching, select to be adapted to according to predetermined nearest copy Routing Protocol Routing mode, with determine be to be route according to host name according further to content name, that is to say, that routing mode can It is divided into the routing mode based on content name and two kinds of the routing mode of Intrusion Detection based on host address.Specifically, can be in HTTP- ICN routers are route using " nearest copy Routing Protocol ", and this is a mixed type routing policy, such as, Ke Yishe It is fixed that the route based on content name is carried out to hot content, other contents are carried out with Intrusion Detection based on host address i.e. the road of domain name By.
In any of the above-described technical scheme, it is preferable that the routing processing unit includes:Judging unit, according to it is described most Nearly copy Routing Protocol, judges whether routing object meets predetermined content name route conditions, wherein, when judged result is yes When, next routing address is searched using the routing mode based on content name, when the judged result is no, is used The routing mode of the Intrusion Detection based on host address searches next routing address.
In the technical scheme, it can first judge whether routing object meets predetermined content name route conditions, if It is next routing address then to be searched using the routing mode based on content name, otherwise, using the route of Intrusion Detection based on host address Mode searches next routing address, wherein, predetermined content name route conditions can be configured according to being actually needed, than Such as, can be that the attributes such as the length, type, keyword of content name set threshold value, when the actual attribute of content name reaches this During threshold value, then judge that it meets predetermined content name route conditions, otherwise, judge not meeting., can root by the technical scheme According to whether the suitable routing mode of predetermined content name route conditions selection is met, so that user can more easily nearby Content needed for acquisition, mitigate the load of server, save network traffics.
In any of the above-described technical scheme, it is preferable that in the HTTP-ICN routers have content name routing table and Domain name routing table, each list item of the content name routing table are a content name, each table of domain name routing table Xiang Weiyi domain name, and the routing processing unit are used for:Using based on the routing mode of content name in the content name Next routing address is searched in word routing table, or is looked into using the routing mode of Intrusion Detection based on host address in domain name routing table Look for next routing address.
In the technical scheme, the routing mode based on content name is corresponding with content name routing table, content name road It is a content name by each list item of table, the routing mode of Intrusion Detection based on host address is corresponding with domain name routing table, domain name route Each list item of table is a domain name.
When HTTP-ICN routers receive HTTP request, content name routing table is inquired about first, if content name be present The identical list item of word, then HTTP-ICN routers be known that content routing table hit have an Edge Server in store Next this content, therefore, the HTTP request will be progressively forwarded to the Edge Server.Wherein, there is nothing due to actual The content of the different names of number, and be difficult to set up hierarchical relationship between different content, so content can not all be carried out to all the elements The route of name, content name route are only applicable to some popular contents.
If content name routing table is not hit by, the following nslookup routing table of HTTP-ICN routers, because domain name has Have levels relation, then all HTTP requests can be route using limited individual list item, therefore, the route based on address can Suitable for all HTTP requests.
In any of the above-described technical scheme, it is preferable that also include:Refresh unit, according to Edge Server to source server The route table items refreshing information of transmission, it is that each HTTP-ICN routers in transmitting path update the content name route Table.
In the technical scheme, content name routing table is only generated by Edge Server, whenever edge server storage During one content, it can send route table items refreshing information, on the way each every the set time to the source server of content HTTP-ICN routers can all consider to add this into content name routing table.Obviously, the route table size in router It is limited, but content name is unlimited, therefore more popular content can be added in content name routing table by router.
By above technical scheme, can be selected when not finding content caching according to predetermined nearest copy Routing Protocol Suitable routing mode is selected, is to be route according to host name according further to content name to determine, so that user can be with Content needed for more easily obtaining nearby, mitigates the load of server, saves network traffics.
Brief description of the drawings
Fig. 1 shows the flow chart of network route method according to an embodiment of the invention;
Fig. 2 shows the block diagram of network route system according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of HTTP-ICN basic frameworks according to an embodiment of the invention;
Fig. 4 shows the schematic diagram of the basic structure of HTTP-ICN routers according to an embodiment of the invention;
Fig. 5 shows the HTTP-ICN routers work side according to an embodiment of the invention based on Nginx platforms The schematic diagram of formula.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the flow chart of network route method according to an embodiment of the invention.
As shown in figure 1, network route method according to an embodiment of the invention, including:
Step 102, according to the HTTP request received, content caching is searched in HTTP-ICN routers;
Step 104, when not finding content caching, by nearest copy Routing Protocol selection corresponding to routing mode, with Next routing address is searched using the routing mode.
For compatible HTTP (HTTP), HTTP-ICN is still come pair using URL (URL) Content is identified, and in HTTP-ICN naming systems, URL is translated into 2 contents:Host name and content name, main frame Name is the intrinsic a part of substrings of URL, and it is typically denoted as domain name or IP address.Because network to a certain extent can be with It is considered as tree, therefore host name can preferably be sorted out, so as to reduce the name space of route.And content name It is defined as whole URL, because in a network, URL is Protean, so content name space is very big, it is difficult to be classified.
Therefore, in the technical scheme, the method for Multistage Proxy can be used to realize that ICN is route, specifically, can be not When finding content caching, suitable routing mode is selected according to predetermined nearest copy Routing Protocol, is according to main frame to determine Name is route according further to content name, so that user can more easily obtain required content nearby, mitigates service The load of device, saves network traffics.
In the above-mentioned technical solutions, it is preferable that the routing mode includes:Routing mode based on content name and it is based on The routing mode of host address.
In the technical scheme, when not finding content caching, select to be adapted to according to predetermined nearest copy Routing Protocol Routing mode, with determine be to be route according to host name according further to content name, that is to say, that routing mode can It is divided into the routing mode based on content name and two kinds of the routing mode of Intrusion Detection based on host address.Specifically, can be in HTTP- ICN routers are route using " nearest copy Routing Protocol ", and this is a mixed type routing policy, such as, Ke Yishe It is fixed that the route based on content name is carried out to hot content, other contents are carried out with Intrusion Detection based on host address i.e. the road of domain name By.
In any of the above-described technical scheme, it is preferable that step 104 specifically includes:According to the copy Routing Protocol recently, Judge whether routing object meets predetermined content name route conditions;And the use routing mode searches next Routing address, including:When judged result is to be, next route ground is searched using the routing mode based on content name Location, when the judged result is no, next routing address is searched using the routing mode of the Intrusion Detection based on host address.
In the technical scheme, it can first judge whether routing object meets predetermined content name route conditions, if It is next routing address then to be searched using the routing mode based on content name, otherwise, using the route of Intrusion Detection based on host address Mode searches next routing address, wherein, predetermined content name route conditions can be configured according to being actually needed, than Such as, can be that the attributes such as the length, type, keyword of content name set threshold value, when the actual attribute of content name reaches this During threshold value, then judge that it meets predetermined content name route conditions, otherwise, judge not meeting., can root by the technical scheme According to whether the suitable routing mode of predetermined content name route conditions selection is met, so that user can more easily nearby Content needed for acquisition, mitigate the load of server, save network traffics.
In any of the above-described technical scheme, it is preferable that in the HTTP-ICN routers have content name routing table and Domain name routing table, each list item of the content name routing table are a content name, each table of domain name routing table Xiang Weiyi domain name, and it is described next routing address is searched by the routing mode, including:Using based on content name Routing mode search next routing address in the content name routing table, or the route side using Intrusion Detection based on host address Formula searches next routing address in domain name routing table.
In the technical scheme, the routing mode based on content name is corresponding with content name routing table, content name road It is a content name by each list item of table, the routing mode of Intrusion Detection based on host address is corresponding with domain name routing table, domain name route Each list item of table is a domain name.
When HTTP-ICN routers receive HTTP request, content name routing table is inquired about first, if content name be present The identical list item of word, then HTTP-ICN routers be known that content routing table hit have an Edge Server in store Next this content, therefore, the HTTP request will be progressively forwarded to the Edge Server.Wherein, there is nothing due to actual The content of the different names of number, and be difficult to set up hierarchical relationship between different content, so content can not all be carried out to all the elements The route of name, content name route are only applicable to some popular contents.
If content name routing table is not hit by, the following nslookup routing table of HTTP-ICN routers, because domain name has Have levels relation, then all HTTP requests can be route using limited individual list item, therefore, the route based on address can Suitable for all HTTP requests.
In any of the above-described technical scheme, it is preferable that also include:The route sent according to Edge Server to source server List item refreshing information, it is that each HTTP-ICN routers in transmitting path update the content name routing table.
In the technical scheme, content name routing table is only generated by Edge Server, whenever edge server storage During one content, it can send route table items refreshing information, on the way each every the set time to the source server of content HTTP-ICN routers can all consider to add this into content name routing table.Obviously, the route table size in router It is limited, but content name is unlimited, therefore more popular content can be added in content name routing table by router.
In addition, in any of the above-described technical scheme, it is preferable that also include:The HTTP request is parsed, for root Content caching is searched according to analysis result, wherein, the analysis result includes:Content name, content-length and content type.
In any of the above-described technical scheme, it is preferable that also include:, will be described corresponding when finding content caching Content caching is sent to the sender of the HTTP request.
Fig. 2 shows the block diagram of network route system according to an embodiment of the invention.
As shown in Fig. 2 network route system 200 according to an embodiment of the invention, including:Content caching is searched single Member 202 and routing processing unit 204.
Wherein, content caching searching unit 202 is used to, according to the HTTP request received, look into HTTP-ICN routers Look for content caching;Routing processing unit 204 is used for when not finding content caching, is selected by nearest copy Routing Protocol corresponding Routing mode, to search next routing address using the routing mode.
For compatible HTTP (HTTP), HTTP-ICN is still come pair using URL (URL) Content is identified, and in HTTP-ICN naming systems, URL is translated into 2 contents:Host name and content name, main frame Name is the intrinsic a part of substrings of URL, and it is typically denoted as domain name or IP address.Because network to a certain extent can be with It is considered as tree, therefore host name can preferably be sorted out, so as to reduce the name space of route.And content name It is defined as whole URL, because in a network, URL is Protean, so content name space is very big, it is difficult to be classified.
Therefore, in the technical scheme, the method for Multistage Proxy can be used to realize that ICN is route, specifically, can be not When finding content caching, suitable routing mode is selected according to predetermined nearest copy Routing Protocol, is according to main frame to determine Name is route according further to content name, so that user can more easily obtain required content nearby, mitigates service The load of device, saves network traffics.
In the above-mentioned technical solutions, it is preferable that the routing mode includes:Routing mode based on content name and it is based on The routing mode of host address.
In the technical scheme, when not finding content caching, select to be adapted to according to predetermined nearest copy Routing Protocol Routing mode, with determine be to be route according to host name according further to content name, that is to say, that routing mode can It is divided into the routing mode based on content name and two kinds of the routing mode of Intrusion Detection based on host address.Specifically, can be in HTTP- ICN routers are route using " nearest copy Routing Protocol ", and this is a mixed type routing policy, such as, Ke Yishe It is fixed that the route based on content name is carried out to hot content, other contents are carried out with Intrusion Detection based on host address i.e. the road of domain name By.
In any of the above-described technical scheme, it is preferable that routing processing unit 204 includes:Judging unit 2042, according to described Nearest copy Routing Protocol, judges whether routing object meets predetermined content name route conditions, wherein, when judged result is When being, next routing address is searched using the routing mode based on content name, when the judged result is no, is made Next routing address is searched with the routing mode of the Intrusion Detection based on host address.
In the technical scheme, it can first judge whether routing object meets predetermined content name route conditions, if It is next routing address then to be searched using the routing mode based on content name, otherwise, using the route of Intrusion Detection based on host address Mode searches next routing address, wherein, predetermined content name route conditions can be configured according to being actually needed, than Such as, can be that the attributes such as the length, type, keyword of content name set threshold value, when the actual attribute of content name reaches this During threshold value, then judge that it meets predetermined content name route conditions, otherwise, judge not meeting., can root by the technical scheme According to whether the suitable routing mode of predetermined content name route conditions selection is met, so that user can more easily nearby Content needed for acquisition, mitigate the load of server, save network traffics.
In any of the above-described technical scheme, it is preferable that in the HTTP-ICN routers have content name routing table and Domain name routing table, each list item of the content name routing table are a content name, each table of domain name routing table Xiang Weiyi domain name, and routing processing unit 204 are used for:Using based on the routing mode of content name in the content name Next routing address is searched in routing table, or is searched using the routing mode of Intrusion Detection based on host address in domain name routing table Next routing address.
In the technical scheme, the routing mode based on content name is corresponding with content name routing table, content name road It is a content name by each list item of table, the routing mode of Intrusion Detection based on host address is corresponding with domain name routing table, domain name route Each list item of table is a domain name.
When HTTP-ICN routers receive HTTP request, content name routing table is inquired about first, if content name be present The identical list item of word, then HTTP-ICN routers be known that content routing table hit have an Edge Server in store Next this content, therefore, the HTTP request will be progressively forwarded to the Edge Server.Wherein, there is nothing due to actual The content of the different names of number, and be difficult to set up hierarchical relationship between different content, so content can not all be carried out to all the elements The route of name, content name route are only applicable to some popular contents.
If content name routing table is not hit by, the following nslookup routing table of HTTP-ICN routers, because domain name has Have levels relation, then all HTTP requests can be route using limited individual list item, therefore, the route based on address can Suitable for all HTTP requests.
In any of the above-described technical scheme, it is preferable that also include:Refresh unit 206, serviced according to Edge Server to source The route table items refreshing information that device is sent, it is that each HTTP-ICN routers in transmitting path update the content name route Table.
In the technical scheme, content name routing table is only generated by Edge Server, whenever edge server storage During one content, it can send route table items refreshing information, on the way each every the set time to the source server of content HTTP-ICN routers can all consider to add this into content name routing table.Obviously, the route table size in router It is limited, but content name is unlimited, therefore more popular content can be added in content name routing table by router.
Fig. 3 shows the schematic diagram of HTTP-ICN basic frameworks according to an embodiment of the invention.
As shown in figure 3, in HTTP-ICN systems, one shares 3 kinds of nodes:HTTP-ICN routers, source server and side Edge server, each node connect according to topological structure, and are allocated the domain name of an administration.Source server preserves original Data, HTTP-ICN routers belong to HTTP-ICN casual network facilities, are a standards, with cache (buffering) function HTTP (HTTP) server, for handling HTTP request.Edge Server is used for spreading in automated back-up network Content, for user download.Therefore, user can also can both download from source server downloading data from Edge Server The backup of initial data.
For compatible HTTP, HTTP-ICN is still identified using URL (URL) to content, In HTTP-ICN naming systems, URL is translated into 2 contents:Host name and content name, host name are URL intrinsic A part of substring, it is typically denoted as domain name or IP address.Because network can be considered as tree to a certain extent, Therefore host name can preferably be sorted out, so as to reduce the name space of route.And content name is defined as entirely URL, because in a network, URL is Protean, so content name space is very big, it is difficult to be classified.
Therefore, in the technical scheme, the method for Multistage Proxy can be used to realize that ICN is route, specifically, can be not When finding content caching, suitable routing mode is selected according to predetermined nearest copy Routing Protocol, is according to main frame to determine Name is route according further to content name, so that user can more easily obtain required content nearby, mitigates service The load of device, saves network traffics.
In a particular embodiment, the method for Multistage Proxy can be used to realize the route of ICN networks, uses the HTTP of standard Agreement and cache module, realize the instrument applied to web browser.So, user only needs to set the agency of browser It is set to the IP address of HTTP-ICN routers, you can it is connected among ICN networks, it is current so as to be applied to greatest extent Http network framework.
Fig. 4 shows the schematic diagram of the basic structure of HTTP-ICN routers according to an embodiment of the invention.
As shown in figure 4, in the basic structure of HTTP-ICN routers, including:Acquisition request module 402, cache module 404th, routing module 406, request forwarding module 408, content caching area 410, route control 412 and standard HTTP service module The work of 414, HTTP-ICN routers is based on standard HTTP service module 414.
Wherein, HTTP-ICN routers are handled in four steps after receiving HTTP request:
1st, URL parsings are carried out using acquisition request module 402.When HTTP request reaches, carried by HTTP-ICN routers Take out the attribute of each field, including URL, content-length, content type etc..
2nd, cached by cache module 404 in the scope of examination of content buffer area 410.HTTP-ICN routers are searched required Content caching, if cache hit, illustrate requested content just in this website, so content needed for directly returning, no longer Carry out routing operations.
3rd, it is route by routing module 406 using route control 412.If caching is not hit by, pass through routing module 406 lookup routing tables are route, and are inquired about next address, specifically, nearest copy Routing Protocol be can be used to be route.
4th, according to routing table lookup result, HTTP request is transmitted to next address using request forwarding module 408.
When HTTP-ICN routers receive HTTP request, content name routing table is inquired about first, if content name be present The identical list item of word, then HTTP-ICN routers be known that content routing table hit have an Edge Server in store Next this content, therefore, the HTTP request will be progressively forwarded to the Edge Server.Wherein, there is nothing due to actual The content of the different names of number, and be difficult to set up hierarchical relationship between different content, so content can not all be carried out to all the elements The route of name, content name route are only applicable to some popular contents.
If content name routing table is not hit by, the following nslookup routing table of HTTP-ICN routers, because domain name has Have levels relation, then all HTTP requests can be route using limited individual list item, therefore, the route based on address can Suitable for all HTTP requests.
In HTTP-ICN, the maintenance mode to two kinds of routing tables is different.Domain name routing table according to network topology come Generation, traditional link-state routing algorithm (LSR) and distance-vector routing (DV) are still available.Each HTTP-ICN roads A domain suffix is all assigned by device, all domain names under the suffix all are responsible for directly connecting by the router.According to LSR algorithms or DV algorithms, the distance that they arrive each domain name is exchanged between router, so as to calculate under each domain name Whom one jump is.Therefore, we can ensure for any one URL, can find at least one domain name route table items, its domain Name is a suffix of host name shown in the URL.
And content name routing table is only generated by Edge Server, whenever one content of edge server storage, it Every the set time route table items refreshing information, each HTTP-ICN routers on the way can be sent to the source server of content It can consider inwardly to hold in name routing table and add this.Obviously, the route table size in router is limited, but content Name is unlimited, therefore more popular content can be added in content name routing table by router.
Domain name routing table is used for the route based on address.Each list item is a domain name.If content routing table is not hit by, The following nslookup routing table of router.Because domain name has hierarchical relationship, we can be using limited individual list item come to institute There is request to be route.Therefore the route based on address is applied to all requests.
HTTP is a stateless protocol end to end, and HTTP-ICN is erected on the http protocol of standard, can be just Used in the browser in user, the forwarding between multiple routers is carried out using the method for HTTP Multistage Proxies, at the same it is real The refresh function of existing content caching, route and route table items, any user can be connected to by way of browser agent HTTP-ICN networks.
Fig. 5 shows the HTTP-ICN routers work side according to an embodiment of the invention based on Nginx platforms The schematic diagram of formula.
As shown in figure 5, HTTP-ICN routers can be built using Nginx, wherein, Nginx is a kind of high performance Web and Reverse Proxy.Nginx provides FastCGI (CGI(Common gateway interface)) and is used for calling external program, and carries height The file cache function of performance, Hash table is done after file is carried out into MD5 (message digest algorithm the 5th edition) codings, is stored in hard disk On.Specifically, comprise the following steps after a HTTP request is received:
1st, a HTTP-ICN is considered as destination server by user, sends HTTP request by 80 ports, Nginx is connected to please A socket (socket) is sent it to by FastCGI after asking.
2nd, Wrapper (process) receives HTTP request by FastCGI, derives a new process, calls one PHP (HyperText Preprocessor) is acted on behalf of to handle HTTP request.
3rd, PHP proxy resolutions URL, table of query and routing, the host name or IP address of next-hop is obtained, inserts it into URL Among, so as to produce a new HTTP request.
4th, HTTP request is sent to next-hop and waits reply by PHP agencies as a user.When next jumper connection arrives During HTTP request, its behavior is also identical, therefore HTTP request can be forwarded always, until eventually arriving at a source server Or Edge Server.
When PHP agencies receive reply, it can be reported to Wrapper, then Wrapper by FastCGI by the number of return According to Nginx is submitted to, most returned data issues user to Nginx at last.
Technical scheme is described in detail above in association with accompanying drawing, can be not by technical scheme When finding content caching, suitable routing mode is selected according to predetermined nearest copy Routing Protocol, is according to main frame to determine Name is route according further to content name, so that user can more easily obtain required content nearby, mitigates service The load of device, saves network traffics.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. network route method, it is characterised in that including:
    According to the HTTP request received, content caching is searched in HTTP-ICN routers;
    When not finding content caching, by routing mode corresponding to the selection of nearest copy Routing Protocol, to use the route Mode searches next routing address.
  2. 2. network route method according to claim 1, it is characterised in that the routing mode includes:Based on content name The routing mode of word and the routing mode of Intrusion Detection based on host address.
  3. 3. network route method according to claim 2, it is characterised in that described to be selected by nearest copy Routing Protocol Corresponding routing mode, is specifically included:
    According to the copy Routing Protocol recently, judge whether routing object meets predetermined content name route conditions;And
    It is described to search next routing address using the routing mode, including:
    When judged result is to be, next routing address is searched using the routing mode based on content name, when described When judged result is no, next routing address is searched using the routing mode of the Intrusion Detection based on host address.
  4. 4. network route method according to any one of claim 1 to 3, it is characterised in that the HTTP-ICN routes There is content name routing table and domain name routing table, each list item of the content name routing table is a content name in device Word, each list item of domain name routing table is a domain name, and
    It is described that next routing address is searched by the routing mode, including:
    Next routing address is searched in the content name routing table using based on the routing mode of content name, or is used The routing mode of Intrusion Detection based on host address searches next routing address in domain name routing table.
  5. 5. network route method according to claim 4, it is characterised in that also include:
    The route table items refreshing information sent according to Edge Server to source server, it is each HTTP-ICN in transmitting path Router updates the content name routing table.
  6. A kind of 6. network route system, it is characterised in that including:
    Content caching searching unit, according to the HTTP request received, content caching is searched in HTTP-ICN routers;
    Routing processing unit, when not finding content caching, by nearest copy Routing Protocol selection corresponding to routing mode, with Next routing address is searched using the routing mode.
  7. 7. network route system according to claim 6, it is characterised in that the routing mode includes:Based on content name The routing mode of word and the routing mode of Intrusion Detection based on host address.
  8. 8. network route system according to claim 7, it is characterised in that the routing processing unit includes:
    Judging unit, according to the copy Routing Protocol recently, judge whether routing object meets predetermined content name route Condition, wherein, when judged result for when being, next routing address is searched using the routing mode based on content name, When the judged result is no, next routing address is searched using the routing mode of the Intrusion Detection based on host address.
  9. 9. the network route system according to any one of claim 6 to 8, it is characterised in that the HTTP-ICN routes There is content name routing table and domain name routing table, each list item of the content name routing table is a content name in device Word, each list item of domain name routing table is a domain name, and
    The routing processing unit is used for:
    Next routing address is searched in the content name routing table using based on the routing mode of content name, or is used The routing mode of Intrusion Detection based on host address searches next routing address in domain name routing table.
  10. 10. network route system according to claim 9, it is characterised in that also include:
    Refresh unit, the route table items refreshing information sent according to Edge Server to source server, it is every in transmitting path Individual HTTP-ICN routers update the content name routing table.
CN201610342073.8A 2016-05-20 2016-05-20 Network route method and network route system Pending CN107404438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610342073.8A CN107404438A (en) 2016-05-20 2016-05-20 Network route method and network route system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610342073.8A CN107404438A (en) 2016-05-20 2016-05-20 Network route method and network route system

Publications (1)

Publication Number Publication Date
CN107404438A true CN107404438A (en) 2017-11-28

Family

ID=60389530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610342073.8A Pending CN107404438A (en) 2016-05-20 2016-05-20 Network route method and network route system

Country Status (1)

Country Link
CN (1) CN107404438A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287043A (en) * 2019-07-01 2019-09-27 山东浪潮人工智能研究院有限公司 A kind of AWG control method and AWG control system
CN110807160A (en) * 2018-07-20 2020-02-18 华为技术有限公司 Content acquisition method and device
CN108123879B (en) * 2018-01-09 2020-12-25 天津芯海创科技有限公司 Routing table look-up method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984223A (en) * 2012-11-14 2013-03-20 华为技术有限公司 Message sending method and network equipment and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984223A (en) * 2012-11-14 2013-03-20 华为技术有限公司 Message sending method and network equipment and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123879B (en) * 2018-01-09 2020-12-25 天津芯海创科技有限公司 Routing table look-up method and system
CN110807160A (en) * 2018-07-20 2020-02-18 华为技术有限公司 Content acquisition method and device
CN110287043A (en) * 2019-07-01 2019-09-27 山东浪潮人工智能研究院有限公司 A kind of AWG control method and AWG control system
CN110287043B (en) * 2019-07-01 2021-04-02 浪潮集团有限公司 AWG control method and AWG control system for arbitrary waveform generator

Similar Documents

Publication Publication Date Title
EP2813060B1 (en) A method for collaborative caching for content-oriented networks
JP5855817B2 (en) Computer-implemented method for transferring packets with hierarchical variable length identifiers in a network
US7664876B2 (en) System and method for directing clients to optimal servers in computer networks
US7552233B2 (en) System and method for information object routing in computer networks
US7725596B2 (en) System and method for resolving network layer anycast addresses to network layer unicast addresses
US6850980B1 (en) Content routing service protocol
JP2017069950A (en) Information centric network by small multi-pass or single-pass transfer state
Jiang et al. What benefits does NDN have in supporting mobility
US20220103476A1 (en) Network routing method and apparatus
CN104243320A (en) Method and device for optimizing network access paths
US20130166680A1 (en) Method, apparatus, and network system for acquiring content
CN105991793B (en) The method and apparatus of message forwarding
JP2014241135A (en) Communication method of node in content centric network, and node therefor
CN103618801A (en) Method, device and system for sharing P2P (Peer-to-Peer) resources
CN100495995C (en) Method for constructing peer-to-peer network in Internet and obtaining shared information in said network
CN108965479B (en) Domain collaborative caching method and device based on content-centric network
CN107404438A (en) Network route method and network route system
US10536368B2 (en) Network-aware routing in information centric networking
EP1433077B1 (en) System and method for directing clients to optimal servers in computer networks
CN108141463B (en) ICN-based distributed resource directory for Internet of things resource discovery and routing
CN103546375A (en) Content routing method and device
WO2017097092A1 (en) Method and system for processing cache cluster service
Yang et al. Content-based hyperbolic routing and push mechanism in named data networking
Li et al. A smart routing scheme for named data networks
Guan et al. Name-based routing with on-path name lookup in information-centric network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171128

RJ01 Rejection of invention patent application after publication