CN108347381B - A New Generation Data Network Communication Method - Google Patents
A New Generation Data Network Communication Method Download PDFInfo
- Publication number
- CN108347381B CN108347381B CN201810235151.3A CN201810235151A CN108347381B CN 108347381 B CN108347381 B CN 108347381B CN 201810235151 A CN201810235151 A CN 201810235151A CN 108347381 B CN108347381 B CN 108347381B
- Authority
- CN
- China
- Prior art keywords
- interface
- message
- name
- request message
- data
- 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
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000006854 communication Effects 0.000 title claims abstract description 25
- 238000004891 communication Methods 0.000 title claims abstract description 23
- 230000004044 response Effects 0.000 claims description 125
- 238000011144 upstream manufacturing Methods 0.000 claims description 33
- 230000008569 process Effects 0.000 claims description 12
- 101000601047 Homo sapiens Nidogen-1 Proteins 0.000 claims description 6
- 102100037369 Nidogen-1 Human genes 0.000 claims description 6
- 101000601048 Homo sapiens Nidogen-2 Proteins 0.000 claims description 3
- 102100037371 Nidogen-2 Human genes 0.000 claims description 3
- 238000007689 inspection Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/14—Routing performance; Theoretical aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供了一种新一代数据网络通信方法,所述网络包括一个骨干网和两个以上的末端网,一个骨干网包括两个以上的数据路由器,一个末端网包括一个边界路由器、两个以上的接入路由器和移动节点构成;在本发明中,节点通过能够快速获取数据,从而大幅度降低了数据通信延迟,提高了数据通信质量。本发明可应用于交通路况检控及农业工程化等诸多领域,具有广泛的应用前景。
The present invention provides a new generation data network communication method. The network includes a backbone network and more than two end networks, one backbone network includes more than two data routers, one end network includes a border router, more than two The access router and the mobile node are formed; in the present invention, the node can obtain data quickly, thereby greatly reducing the data communication delay and improving the data communication quality. The invention can be applied to many fields such as traffic road condition inspection and control, agricultural engineering, etc., and has wide application prospects.
Description
技术领域technical field
本发明涉及一种通信方法,尤其涉及的是一种新一代数据网络通信方法。The invention relates to a communication method, in particular to a new generation data network communication method.
背景技术Background technique
下一代网络中的节点之间通信通过中间节点的转发和路由来实现,因此,实现下一代网络需要解决的关键技术之一就是降低数据传输延迟,以便使用户能够快速获取网络服务。随着下一代网络技术的发展,下一代网络会成为未来网络提供服务的一种模式。The communication between nodes in the next generation network is realized through the forwarding and routing of intermediate nodes. Therefore, one of the key technologies to be solved in the realization of the next generation network is to reduce the data transmission delay so that users can quickly obtain network services. With the development of next-generation network technology, the next-generation network will become a mode for providing services in the future network.
目前,下一代网络的实现模式是通过广播来实现,因此延迟和代价都比较大,降低了网络服务性能。因此,如何降低下一代网络提供服务的延迟成为近年来研究的热点问题。At present, the implementation mode of the next generation network is realized by broadcasting, so the delay and cost are relatively large, which reduces the network service performance. Therefore, how to reduce the delay of providing services in the next generation network has become a hot research issue in recent years.
发明内容Contents of the invention
发明目的:本发明所要解决的技术问题是针对现有技术的不足,提供一种新一代数据网络通信方法。Purpose of the invention: The technical problem to be solved by the present invention is to provide a new generation data network communication method for the deficiencies of the prior art.
技术方案:本发明公开了一种新一代数据网络通信方法,所述网络包括一个骨干网和两个以上的末端网,一个骨干网包括两个以上的数据路由器,一个末端网包括一个边界路由器、两个以上的接入路由器和移动节点构成;一个数据路由器有T1个接口,T1为大于1的正整数,每个接口由接口ID j1唯一标识,j1取值1~T1;边界路由器和接入路由器各自包括一个上游接口和T2个下游接口,T2为大于1的正整数,上游接口由接口ID T2+1唯一标识,每个下游接口由接口ID j2唯一标识,j2取值1~T2;一个移动节点具有一个接口;Technical solution: The present invention discloses a new generation data network communication method. The network includes a backbone network and more than two end networks, one backbone network includes more than two data routers, and one end network includes a border router, More than two access routers and mobile nodes; a data router has T1 interfaces, T1 is a positive integer greater than 1, each interface is uniquely identified by an interface ID j1, and j1 ranges from 1 to T1; border routers and access The routers each include an upstream interface and T2 downstream interfaces, where T2 is a positive integer greater than 1. The upstream interface is uniquely identified by the interface ID T2+1, and each downstream interface is uniquely identified by the interface ID j2, where j2 ranges from 1 to T2; The mobile node has an interface;
边界路由器的上游接口与一个数据路由器的一个接口链路相连,边界路由器的每个下游接口与一个接入路由器的上游接口链路相连;一个接入路由器的上游接口与一个接入路由器或者边界路由器的下游接口链路相连,一个接入路由器的每个下游接口与一个接入路由器的上游接口或者一个移动节点的接口链路相连;The upstream interface of a border router is connected to an interface link of a data router, and each downstream interface of a border router is connected to an upstream interface link of an access router; an upstream interface of an access router is connected to an access router or a border router Each downstream interface of an access router is connected with an upstream interface of an access router or an interface link of a mobile node;
一种数据由一个名称唯一标识,一个名称由名称前缀和名称ID唯一标识;一个末端网或者一个末端网中的边界路由器由一个名称前缀唯一标识,该名称前缀预先设置,例如china/js/cslg;A type of data is uniquely identified by a name, and a name is uniquely identified by a name prefix and a name ID; an end network or a border router in an end network is uniquely identified by a name prefix, which is preset, such as china/js/cslg ;
一个消息包含名称域、源接口ID集合、骨干接口ID集合、目的接口ID集合、消息类型和负载;A message includes name field, source interface ID set, backbone interface ID set, destination interface ID set, message type and payload;
消息类型如下表所示:The message types are shown in the table below:
每个边界路由器保存一个骨干表和一个末端表,一个骨干表项由名称前缀域、接口ID集合域和生命周期域构成;一个末端表由名称域、接口ID集合域以及生命周期域构成;Each border router saves a backbone table and a stub table. A backbone table entry is composed of a name prefix field, an interface ID set field and a life cycle field; an end table is composed of a name field, an interface ID set field and a life cycle field;
边界路由器ER1由名称前缀NP1唯一标识,边界路由器ER1启动后,定期执行下述操作创建骨干表:The border router ER1 is uniquely identified by the name prefix NP1. After the border router ER1 is started, it periodically performs the following operations to create a backbone table:
步骤101:开始;Step 101: start;
步骤102:边界路由器ER1从上游接口发送一条发布消息,该发布消息中,名称域的名称前缀为NP1,名称ID为0,源接口ID集合域值为空,骨干接口ID集合为空,目的接口ID集合为空,消息类型为1,负载为空;Step 102: The border router ER1 sends a release message from the upstream interface. In the release message, the name prefix of the name domain is NP1, the name ID is 0, the field value of the source interface ID set is empty, the backbone interface ID set is empty, and the destination interface The ID set is empty, the message type is 1, and the payload is empty;
步骤103:如果数据路由器接收到发布消息,则执行步骤104,否则执行步骤108;Step 103: If the data router receives the publish message, execute step 104, otherwise execute step 108;
步骤104:数据路由器从接口p1接收到发布消息后,将接口p1添加到该发布消息的源接口ID集合中,接口p1作为源接口ID集合的最后一个元素;该数据路由器查看骨干表,如果存在一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀且接口ID集合域值等于该发布消息的源接口ID集合,则执行步骤105,否则执行步骤106;Step 104: After the data router receives the release message from the interface p1, it adds the interface p1 to the source interface ID set of the release message, and the interface p1 is the last element of the source interface ID set; the data router checks the backbone table, if it exists A backbone table entry, the name prefix field value of the backbone table entry is equal to the name prefix in the name of the published message received and the interface ID set field value is equal to the source interface ID set of the published message, then perform step 105, otherwise perform step 106 ;
步骤105:接收到发布消息的数据路由器选择一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,且接口ID集合域值等于该发布消息的源接口ID集合,将该骨干表项的生命周期设置为最大值,例如500ms,执行步骤107;Step 105: The data router that receives the published message selects a backbone entry whose name prefix field value is equal to the name prefix in the name of the received published message, and whose interface ID set field value is equal to the source interface of the published message ID set, set the lifetime of the backbone entry to a maximum value, for example 500ms, and execute step 107;
步骤106:接收到发布消息的数据路由器创建一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,接口ID集合域值等于该发布消息的源接口ID集合,生命周期设置为最大值;Step 106: The data router that receives the release message creates a backbone entry, the name prefix field value of the backbone entry is equal to the name prefix in the name of the received release message, and the interface ID set field value is equal to the source interface ID of the release message A collection with lifetime set to the maximum value;
步骤107:接收到发布消息的数据路由器从除了p1以外的每个接口转发该发布消息,执行步骤103;Step 107: The data router that receives the release message forwards the release message from every interface except p1, and executes step 103;
步骤108:边界路由器从自己的接口p2接收到发布消息后,将接口p2添加到该发布消息的源接口ID集合中,接口p2作为源接口ID集合的最后一个元素;该边界路由器查看骨干表,如果存在一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,且接口ID集合域值等于该发布消息的源接口ID集合,则执行步骤109,否则执行步骤110;Step 108: After the border router receives the publish message from its own interface p2, it adds the interface p2 to the source interface ID set of the publish message, and the interface p2 is the last element of the source interface ID set; the border router checks the backbone table, If there is a backbone table entry, the name prefix field value of the backbone table entry is equal to the name prefix in the name of the published message name received, and the interface ID set field value is equal to the source interface ID set of the published message, then perform step 109, otherwise Execute step 110;
步骤109:接收到发布消息的边界路由器选择一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,且接口ID集合域值等于该发布消息的源接口ID集合,将该骨干表项的生命周期设置为最大值,例如500ms,执行步骤111;Step 109: The border router that receives the advertisement selects a backbone entry whose name prefix field value is equal to the name prefix in the name of the advertisement message received, and whose interface ID set field value is equal to the source interface of the advertisement message ID set, set the lifetime of the backbone entry to the maximum value, for example, 500ms, and execute step 111;
步骤110:接收到发布消息的边界路由器创建一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,接口ID集合域值等于该发布消息的源接口ID集合,生命周期设置为最大值;Step 110: The border router that receives the advertisement creates a backbone entry, the name prefix field value of the backbone entry is equal to the name prefix in the name of the advertisement message received, and the interface ID set field value is equal to the source interface ID of the advertisement message A collection with lifetime set to the maximum value;
步骤111:结束。Step 111: end.
上述过程能够快速建立骨干表从而正确获取数据。The above process can quickly establish a backbone table to obtain data correctly.
本发明所述方法中,在数据C1由名称NA1唯一标识,名称NA1由名称前缀NP1和名称ID NID1构成的条件下,如果节点N1能够提供数据C1,它则定期执行下述操作创建末端表:In the method of the present invention, under the condition that the data C1 is uniquely identified by the name NA1, and the name NA1 is composed of the name prefix NP1 and the name ID NID1, if the node N1 can provide the data C1, it will periodically perform the following operations to create an end table:
步骤201:开始;Step 201: start;
步骤202:节点N1发送一条数据发布消息,该数据发布消息中,名称域为NA1,源接口ID集合域值为空,骨干接口ID集合为空,目的接口ID集合为空,消息类型为2,负载为空;Step 202: Node N1 sends a data release message. In the data release message, the name field is NA1, the value of the source interface ID set field is empty, the backbone interface ID set is empty, the destination interface ID set is empty, and the message type is 2. load is empty;
步骤203:如果接入路由器接收到数据发布消息,则执行步骤204,否则执行步骤208;Step 203: If the access router receives the data publishing message, execute step 204, otherwise execute step 208;
步骤204:接入路由器从自己的接口p3接收到数据发布消息后,将接口p3添加到该数据发布消息的源接口ID集合中,接口p3作为源接口ID集合的最后一个元素;该接入路由器查看末端表,如果存在一个末端表项,该末端表项的名称域值等于接收到的数据发布消息名称中的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,则执行步骤205,否则执行步骤206;Step 204: After the access router receives the data publishing message from its own interface p3, it adds the interface p3 to the source interface ID set of the data publishing message, and the interface p3 is the last element of the source interface ID set; the access router Check the end table, if there is an end entry, the name field value of the end entry is equal to the name in the name of the received data publishing message, and the interface ID set field value is equal to the source interface ID set of the data publishing message, then execute Step 205, otherwise execute step 206;
步骤205:接收到数据发布消息的接入路由器选择一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,将该末端表项的生命周期设置为最大值,执行步骤207;Step 205: The access router that has received the data release message selects an end entry whose name field value is equal to the name of the received data release message, and whose interface ID set field value is equal to the source interface of the data release message ID set, set the life cycle of the terminal entry to the maximum value, and execute step 207;
步骤206:接收到数据发布消息的接入路由器创建一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,接口ID集合域值等于该数据发布消息的源接口ID集合,生命周期设置为最大值;Step 206: The access router that receives the data release message creates an end entry, the name field value of the end entry is equal to the name of the received data release message, and the interface ID set field value is equal to the source interface ID of the data release message A collection with lifetime set to the maximum value;
步骤207:接收到数据发布消息的接入路由器从除了接口p3以外的每个接口转发该数据发布消息,执行步骤203;Step 207: The access router that has received the data publishing message forwards the data publishing message from every interface except interface p3, and executes step 203;
步骤208:边界路由器从自己的下游接口p4接收到数据发布消息后,将接口p4添加到该数据发布消息的源接口ID集合中,接口p4作为源接口ID集合的最后一个元素;该边界路由器查看末端表,如果存在一个末端表项,该末端表项的名称域值等于接收到的数据发布消息名称中的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,则执行步骤209,否则执行步骤210;Step 208: After the border router receives the data publishing message from its downstream interface p4, it adds the interface p4 to the source interface ID set of the data publishing message, and the interface p4 is the last element of the source interface ID set; the border router views End table, if there is an end table entry, the name field value of the end table entry is equal to the name in the name of the received data publishing message, and the interface ID set field value is equal to the source interface ID set of the data publishing message, then perform the steps 209, otherwise execute step 210;
步骤209:接收到数据发布消息的边界路由器选择一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,将该末端表项的生命周期设置为最大值,例如500ms,执行步骤211;Step 209: The border router that receives the data release message selects an end entry whose name field value is equal to the name of the received data release message, and whose interface ID set field value is equal to the source interface ID of the data release message Set, set the life cycle of the terminal entry to the maximum value, for example, 500ms, and execute step 211;
步骤210:接收到数据发布消息的边界路由器创建一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,接口ID集合域值等于该数据发布消息的源接口ID集合,生命周期设置为最大值;Step 210: The border router that receives the data release message creates an end entry, the name field value of the end entry is equal to the name of the received data release message, and the interface ID set field value is equal to the source interface ID set of the data release message , the lifetime is set to the maximum value;
步骤211:结束。Step 211: end.
上述过程能够快速建立末端表从而正确获取数据。The above process can quickly establish the terminal table to obtain the data correctly.
本发明所述方法中,在数据C1由名称NA1唯一标识,名称NA1由名称前缀NP1和名称ID NID1构成,节点N1位于末端网络内,该末端网络的边界路由器为ER1的条件下,如果边界路由器ER1存在一个末端表项E1,该末端表项E1的名字域为NA1,则节点N1通过下述过程获取数据C1:In the method of the present invention, under the condition that the data C1 is uniquely identified by the name NA1, the name NA1 is composed of the name prefix NP1 and the name ID NID1, the node N1 is located in the end network, and the border router of the end network is ER1, if the border router There is an end entry E1 in ER1, and the name field of the end entry E1 is NA1, then node N1 obtains data C1 through the following process:
步骤301:开始;Step 301: start;
步骤302:节点N1发送请求消息,该请求消息中,名称域值为NA1,源接口ID集合域为空,骨干接口ID集合域为空,目的接口ID集合域为空,消息类型为3,负载为空;Step 302: Node N1 sends a request message. In the request message, the name field is NA1, the source interface ID set field is empty, the backbone interface ID set field is empty, the destination interface ID set field is empty, the message type is 3, and the payload Is empty;
步骤303:如果接入路由器接收到该请求消息,则执行步骤304,否则执行步骤305;Step 303: If the access router receives the request message, execute step 304, otherwise execute step 305;
步骤304:接入路由器从自己的下游接口x1接收到请求消息,将接口x1加入到该请求消息源接口ID集合中,接口x1作为源接口ID集合的最后一个元素,从上游接口转发该请求消息,执行步骤303;Step 304: The access router receives the request message from its downstream interface x1, adds interface x1 to the source interface ID set of the request message, and forwards the request message from the upstream interface with interface x1 as the last element of the source interface ID set , execute step 303;
步骤305:边界路由器从自己的下游接口x2接收到请求消息,将接口x2加入到该请求消息源接口ID集合中,接口x2作为源接口ID集合的最后一个元素;该边界路由器选择一个末端表项,该末端表项的名称域等于该请求消息的名称域,将该请求消息的目的接口ID集合更新为该末端表项的接口ID集合;该边界路由器保存该请求消息目的接口ID集合中的最后一个接口ID L1,从该请求消息目的接口ID集合中删除接口L1,从接口L1转发该请求消息;Step 305: The border router receives the request message from its downstream interface x2, and adds the interface x2 to the source interface ID set of the request message, and the interface x2 is the last element of the source interface ID set; the border router selects an end entry , the name field of the end entry is equal to the name field of the request message, and the destination interface ID set of the request message is updated to the interface ID set of the end entry; the border router saves the last An interface ID L1, delete the interface L1 from the set of destination interface IDs of the request message, and forward the request message from the interface L1;
步骤306:如果接入路由器接收到该请求消息,则执行步骤307,否则执行步骤308;Step 306: If the access router receives the request message, execute step 307, otherwise execute step 308;
步骤307:接入路由器接收到该请求消息后,保存该请求消息目的接口ID集合中的最后一个接口ID L2,从该请求消息目的接口ID集合中删除接口L2,从接口L2转发该请求消息,执行步骤306;Step 307: After receiving the request message, the access router saves the last interface ID L2 in the request message destination interface ID set, deletes interface L2 from the request message destination interface ID set, and forwards the request message from interface L2, Execute step 306;
步骤308:节点接收到请求消息后,发送一条响应消息,该响应消息中,名称域值等于接收到的请求消息的名称,源接口ID集合为空,骨干接口ID集合为空,目的接口ID集合等于接收到的请求消息的源接口ID集合,消息类型为4,负载为接收到的请求消息的名称所标识的数据;Step 308: After receiving the request message, the node sends a response message. In the response message, the name field value is equal to the name of the received request message, the source interface ID set is empty, the backbone interface ID set is empty, and the destination interface ID set is empty. It is equal to the source interface ID set of the received request message, the message type is 4, and the payload is the data identified by the name of the received request message;
步骤309:如果接入路由器接收到该响应消息,则执行步骤310,否则执行步骤311;Step 309: If the access router receives the response message, execute step 310, otherwise execute step 311;
步骤310:接入路由器从下游接口接收到响应消息后,从上游接口转发该响应消息,执行步骤309;Step 310: After receiving the response message from the downstream interface, the access router forwards the response message from the upstream interface, and executes step 309;
步骤311:边界路由器接收到响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID L3,从该响应消息目的接口ID集合中删除接口L3,从接口L3转发该响应消息;Step 311: After receiving the response message, the border router saves the last interface ID L3 in the destination interface ID set of the response message, deletes the interface L3 from the destination interface ID set of the response message, and forwards the response message from the interface L3;
步骤312:如果接入路由器接收到该响应消息,则执行步骤313,否则执行步骤314;Step 312: If the access router receives the response message, execute step 313, otherwise execute step 314;
步骤313:接入路由器接收到该响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID L4,从该响应消息目的接口ID集合中删除接口L4,从接口L4转发该响应消息,执行步骤312;Step 313: After receiving the response message, the access router saves the last interface ID L4 in the response message destination interface ID set, deletes interface L4 from the response message destination interface ID set, and forwards the response message from interface L4, Execute step 312;
步骤314:节点N1接收到响应消息后,保存响应消息中的数据;Step 314: After receiving the response message, the node N1 saves the data in the response message;
步骤315:结束。Step 315: end.
节点通过上述过程能够快速获取数据。Nodes can quickly obtain data through the above process.
本发明所述方法中,在数据C2由名称NA2唯一标识,名称NA2由名称前缀NP2和名称ID NID2构成,节点N1位于末端网络内,该末端网络的边界路由器为ER1的条件下,如果边界路由器ER1的末端表中不存在名字域为NA2的末端表项,则节点N1通过下述过程获取数据C2:In the method of the present invention, under the condition that the data C2 is uniquely identified by the name NA2, the name NA2 is composed of the name prefix NP2 and the name ID NID2, the node N1 is located in the end network, and the border router of the end network is ER1, if the border router There is no end table entry whose name field is NA2 in the end table of ER1, then node N1 obtains data C2 through the following process:
步骤401:开始;Step 401: start;
步骤402:节点N1发送请求消息,该请求消息中,名称域值为NA1,源接口ID集合域为空,骨干接口ID集合域为空,目的接口ID集合域为空,消息类型为3,负载为空;Step 402: Node N1 sends a request message. In the request message, the name field is NA1, the source interface ID set field is empty, the backbone interface ID set field is empty, the destination interface ID set field is empty, the message type is 3, and the payload Is empty;
步骤403:如果接入路由器接收到该请求消息,则执行步骤404,否则执行步骤405;Step 403: If the access router receives the request message, execute step 404, otherwise execute step 405;
步骤404:接入路由器从自己的下游接口y1接收到请求消息,将接口y1加入到该请求消息源接口ID集合中,接口y1作为源接口ID集合的最后一个元素,从上游接口转发该请求消息,执行步骤403;Step 404: The access router receives the request message from its downstream interface y1, adds the interface y1 to the source interface ID set of the request message, and forwards the request message from the upstream interface with interface y1 as the last element of the source interface ID set , execute step 403;
步骤405:边界路由器从自己的下游接口y2接收到请求消息,将接口y2加入到该请求消息源接口ID集合中,接口x2作为源接口ID集合的最后一个元素;该边界路由器选择一个骨干表项,该骨干表项的名称前缀域等于该请求消息名称中的名称前缀,将该请求消息的目的接口ID集合更新为该骨干表项的接口ID集合;该边界路由器保存该请求消息目的接口ID集合中的最后一个接口ID F1,从该请求消息目的接口ID集合中删除接口F1,从接口F1转发该请求消息;Step 405: The border router receives the request message from its downstream interface y2, and adds interface y2 to the source interface ID set of the request message, with interface x2 as the last element of the source interface ID set; the border router selects a backbone entry , the name prefix field of the backbone entry is equal to the name prefix in the request message name, and the destination interface ID set of the request message is updated to the interface ID set of the backbone entry; the border router saves the request message destination interface ID set The last interface ID F1 in the request message, delete the interface F1 from the set of destination interface IDs of the request message, and forward the request message from the interface F1;
步骤406:如果边界路由器接收到该请求消息,则执行步骤408,否则执行步骤407;Step 406: If the border router receives the request message, then execute step 408, otherwise execute step 407;
步骤407:数据路由器从自己的接口y3接收到请求消息后,将接口y3加入到该请求消息骨干接口ID集合中,接口y3作为源接口ID集合的最后一个元素;该数据路由器保存该请求消息目的接口ID集合中的最后一个接口ID F2,从该请求消息目的接口ID集合中删除接口F2,从接口F2转发该请求消息,执行步骤406;Step 407: After receiving the request message from its own interface y3, the data router adds interface y3 to the backbone interface ID set of the request message, with interface y3 as the last element of the source interface ID set; the data router saves the request message purpose The last interface ID F2 in the interface ID set, delete the interface F2 from the request message destination interface ID set, forward the request message from the interface F2, and execute step 406;
步骤408:边界路由器从自己的接口y4接收到请求消息,将接口y4加入到该请求消息骨干接口ID集合中,接口y4作为骨干接口ID集合的最后一个元素;该边界路由器选择一个末端表项,该末端表项的名称域等于该请求消息的名称,将该请求消息的目的接口ID集合更新为该末端表项的接口ID集合;该边界路由器保存该请求消息目的接口ID集合中的最后一个接口ID F3,从该请求消息目的接口ID集合中删除接口F3,从接口F3转发该请求消息;Step 408: The border router receives the request message from its own interface y4, and adds the interface y4 to the backbone interface ID set of the request message, and the interface y4 is used as the last element of the backbone interface ID set; the border router selects an end entry, The name field of the end entry is equal to the name of the request message, and the destination interface ID set of the request message is updated to the interface ID set of the end entry; the border router saves the last interface in the request message destination interface ID set ID F3, delete the interface F3 from the ID set of the destination interface of the request message, and forward the request message from the interface F3;
步骤409:如果接入路由器接收到该请求消息,则执行步骤410,否则执行步骤411;Step 409: If the access router receives the request message, execute step 410, otherwise execute step 411;
步骤410:接入路由器接收到该请求消息后,保存该请求消息目的接口ID集合中的最后一个接口ID F4,从该请求消息目的接口ID集合中删除接口F4,从接口F4转发该请求消息,执行步骤409;Step 410: After receiving the request message, the access router saves the last interface ID F4 in the request message destination interface ID set, deletes interface F4 from the request message destination interface ID set, and forwards the request message from interface F4, Execute step 409;
步骤411:节点接收到请求消息后,发送一条响应消息,该响应消息中,名称域值等于接收到的请求消息的名称,源接口ID集合为空,骨干接口ID集合等于接收到的请求消息的骨干接口ID集合,目的接口ID集合等于接收到的请求消息的源接口ID集合,消息类型为4,负载为接收到的请求消息的名称所标识的数据;Step 411: After the node receives the request message, it sends a response message. In the response message, the name domain value is equal to the name of the received request message, the source interface ID set is empty, and the backbone interface ID set is equal to the received request message. The backbone interface ID set, the destination interface ID set is equal to the source interface ID set of the received request message, the message type is 4, and the payload is the data identified by the name of the received request message;
步骤412:如果接入路由器接收到该响应消息,则执行步骤413,否则执行步骤414;Step 412: If the access router receives the response message, execute step 413, otherwise execute step 414;
步骤413:接入路由器从下游接口接收到响应消息后,从上游接口转发该响应消息,执行步骤412;Step 413: After receiving the response message from the downstream interface, the access router forwards the response message from the upstream interface, and executes step 412;
步骤414:边界路由器接收到响应消息后,保存该响应消息骨干接口ID集合中的最后一个接口ID F5,从该响应消息骨干接口ID集合中删除接口F5,从接口F5转发该响应消息;Step 414: After receiving the response message, the border router saves the last interface ID F5 in the backbone interface ID set of the response message, deletes interface F5 from the backbone interface ID set of the response message, and forwards the response message from interface F5;
步骤415:如果边界路由器接收到响应消息,则执行步骤417,否则执行步骤416;Step 415: If the border router receives the response message, then execute step 417, otherwise execute step 416;
步骤416:数据路由器接收到响应消息后,保存该响应消息骨干接口ID集合中的最后一个接口ID F6,从该响应消息骨干接口ID集合中删除接口F6,从接口F6转发该响应消息,执行步骤415;Step 416: After receiving the response message, the data router saves the last interface ID F6 in the backbone interface ID set of the response message, deletes the interface F6 from the backbone interface ID set of the response message, forwards the response message from the interface F6, and executes the steps 415;
步骤417:边界路由器接收到响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID F7,从该响应消息目的接口ID集合中删除接口F7,从接口F7转发该响应消息;Step 417: After receiving the response message, the border router saves the last interface ID F7 in the destination interface ID set of the response message, deletes the interface F7 from the destination interface ID set of the response message, and forwards the response message from the interface F7;
步骤418:如果接入路由器接收到该响应消息,则执行步骤419,否则执行步骤420;Step 418: If the access router receives the response message, execute step 419, otherwise execute step 420;
步骤419:接入路由器接收到该响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID F8,从该响应消息目的接口ID集合中删除接口F8,从接口F8转发该响应消息,执行步骤418;Step 419: After receiving the response message, the access router saves the last interface ID F8 in the response message destination interface ID set, deletes interface F8 from the response message destination interface ID set, and forwards the response message from interface F8, Execute step 418;
步骤419:节点N1接收到响应消息后,保存响应消息中的数据;Step 419: After receiving the response message, the node N1 saves the data in the response message;
步骤420:结束。Step 420: end.
节点通过上述过程能够快速获取数据。Nodes can quickly obtain data through the above process.
有益效果:本发明提供了一种新一代数据网络通信方法,在本发明中,节点通过能够快速获取数据,从而大幅度降低了数据通信延迟,提高了数据通信质量。本发明可应用于交通路况检控及农业工程化等诸多领域,具有广泛的应用前景。Beneficial effects: the present invention provides a new generation data network communication method. In the present invention, nodes can obtain data quickly, thereby greatly reducing data communication delay and improving data communication quality. The invention can be applied to many fields such as traffic road condition inspection and control, agricultural engineering, etc., and has wide application prospects.
附图说明Description of drawings
下面结合附图和具体实施方式对本发明做更进一步的具体说明,本发明的上述和/或其他方面的优点将会变得更加清楚。The advantages of the above and/or other aspects of the present invention will become clearer as the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
图1为本发明所述的构建骨干表流程示意图。Fig. 1 is a schematic flow chart of constructing a backbone table according to the present invention.
图2为本发明所述的构建末端表流程示意图。Fig. 2 is a schematic flow chart of constructing an end table according to the present invention.
图3为本发明所述的数据通信流程示意图。FIG. 3 is a schematic diagram of the data communication process described in the present invention.
图4为本发明所述的获取数据流程示意图。FIG. 4 is a schematic diagram of the data acquisition process described in the present invention.
具体实施方式:Detailed ways:
本发明提供了一种新一代数据网络通信方法,在本发明中,节点通过能够快速获取数据,从而大幅度降低了数据通信延迟,提高了数据通信质量。本发明可应用于交通路况检控及农业工程化等诸多领域,具有广泛的应用前景。The invention provides a new-generation data network communication method. In the invention, nodes can obtain data quickly, thereby greatly reducing data communication delay and improving data communication quality. The invention can be applied to many fields such as traffic road condition inspection and control, agricultural engineering, etc., and has wide application prospects.
图1为本发明所述的构建骨干表流程示意图。所述网络包括一个骨干网和两个以上的末端网,一个骨干网包括两个以上的数据路由器,一个末端网包括一个边界路由器、两个以上的接入路由器和移动节点构成;一个数据路由器有T1个接口,T1为大于1的正整数,每个接口由接口ID j1唯一标识,j1取值1~T1;边界路由器和接入路由器各自包括一个上游接口和T2个下游接口,T2为大于1的正整数,上游接口由接口ID T2+1唯一标识,每个下游接口由接口ID j2唯一标识,j2取值1~T2;一个移动节点具有一个接口;Fig. 1 is a schematic flow chart of constructing a backbone table according to the present invention. The network includes a backbone network and more than two end networks, a backbone network includes more than two data routers, an end network includes a border router, more than two access routers and mobile nodes; a data router has T1 interfaces, T1 is a positive integer greater than 1, each interface is uniquely identified by an interface ID j1, j1 ranges from 1 to T1; the border router and the access router each include an upstream interface and T2 downstream interfaces, and T2 is greater than 1 is a positive integer, the upstream interface is uniquely identified by the interface ID T2+1, and each downstream interface is uniquely identified by the interface ID j2, where j2 takes a value from 1 to T2; a mobile node has one interface;
边界路由器的上游接口与一个数据路由器的一个接口链路相连,边界路由器的每个下游接口与一个接入路由器的上游接口链路相连;一个接入路由器的上游接口与一个接入路由器或者边界路由器的下游接口链路相连,一个接入路由器的每个下游接口与一个接入路由器的上游接口或者一个移动节点的接口链路相连;The upstream interface of a border router is connected to an interface link of a data router, and each downstream interface of a border router is connected to an upstream interface link of an access router; an upstream interface of an access router is connected to an access router or a border router Each downstream interface of an access router is connected with an upstream interface of an access router or an interface link of a mobile node;
一种数据由一个名称唯一标识,一个名称由名称前缀和名称ID唯一标识;一个末端网或者一个末端网中的边界路由器由一个名称前缀唯一标识,该名称前缀预先设置;A type of data is uniquely identified by a name, and a name is uniquely identified by a name prefix and a name ID; an end network or a border router in an end network is uniquely identified by a name prefix, which is preset;
一个消息包含名称域、源接口ID集合、骨干接口ID集合、目的接口ID集合、消息类型和负载;A message includes name field, source interface ID set, backbone interface ID set, destination interface ID set, message type and payload;
消息类型如下表所示:The message types are shown in the table below:
每个边界路由器保存一个骨干表和一个末端表,一个骨干表项由名称前缀域、接口ID集合域和生命周期域构成;一个末端表由名称域、接口ID集合域以及生命周期域构成;Each border router saves a backbone table and a stub table. A backbone table entry is composed of a name prefix field, an interface ID set field and a life cycle field; an end table is composed of a name field, an interface ID set field and a life cycle field;
边界路由器ER1由名称前缀NP1唯一标识,边界路由器ER1启动后,定期执行下述操作创建骨干表:The border router ER1 is uniquely identified by the name prefix NP1. After the border router ER1 is started, it periodically performs the following operations to create a backbone table:
步骤101:开始;Step 101: start;
步骤102:边界路由器ER1从上游接口发送一条发布消息,该发布消息中,名称域的名称前缀为NP1,名称ID为0,源接口ID集合域值为空,骨干接口ID集合为空,目的接口ID集合为空,消息类型为1,负载为空;Step 102: The border router ER1 sends a release message from the upstream interface. In the release message, the name prefix of the name domain is NP1, the name ID is 0, the field value of the source interface ID set is empty, the backbone interface ID set is empty, and the destination interface The ID set is empty, the message type is 1, and the payload is empty;
步骤103:如果数据路由器接收到发布消息,则执行步骤104,否则执行步骤108;Step 103: If the data router receives the publish message, execute step 104, otherwise execute step 108;
步骤104:数据路由器从接口p1接收到发布消息后,将接口p1添加到该发布消息的源接口ID集合中,接口p1作为源接口ID集合的最后一个元素;该数据路由器查看骨干表,如果存在一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀且接口ID集合域值等于该发布消息的源接口ID集合,则执行步骤105,否则执行步骤106;Step 104: After the data router receives the release message from the interface p1, it adds the interface p1 to the source interface ID set of the release message, and the interface p1 is the last element of the source interface ID set; the data router checks the backbone table, if it exists A backbone table entry, the name prefix field value of the backbone table entry is equal to the name prefix in the name of the published message received and the interface ID set field value is equal to the source interface ID set of the published message, then perform step 105, otherwise perform step 106 ;
步骤105:接收到发布消息的数据路由器选择一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,且接口ID集合域值等于该发布消息的源接口ID集合,将该骨干表项的生命周期设置为最大值,执行步骤107;Step 105: The data router that receives the published message selects a backbone entry whose name prefix field value is equal to the name prefix in the name of the received published message, and whose interface ID set field value is equal to the source interface of the published message ID set, set the life cycle of the backbone entry to the maximum value, and execute step 107;
步骤106:接收到发布消息的数据路由器创建一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,接口ID集合域值等于该发布消息的源接口ID集合,生命周期设置为最大值;Step 106: The data router that receives the release message creates a backbone entry, the name prefix field value of the backbone entry is equal to the name prefix in the name of the received release message, and the interface ID set field value is equal to the source interface ID of the release message A collection with lifetime set to the maximum value;
步骤107:接收到发布消息的数据路由器从除了p1以外的每个接口转发该发布消息,执行步骤103;Step 107: The data router that receives the release message forwards the release message from every interface except p1, and executes step 103;
步骤108:边界路由器从自己的接口p2接收到发布消息后,将接口p2添加到该发布消息的源接口ID集合中,接口p2作为源接口ID集合的最后一个元素;该边界路由器查看骨干表,如果存在一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,且接口ID集合域值等于该发布消息的源接口ID集合,则执行步骤109,否则执行步骤110;Step 108: After the border router receives the publish message from its own interface p2, it adds the interface p2 to the source interface ID set of the publish message, and the interface p2 is the last element of the source interface ID set; the border router checks the backbone table, If there is a backbone table entry, the name prefix field value of the backbone table entry is equal to the name prefix in the name of the published message name received, and the interface ID set field value is equal to the source interface ID set of the published message, then perform step 109, otherwise Execute step 110;
步骤109:接收到发布消息的边界路由器选择一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,且接口ID集合域值等于该发布消息的源接口ID集合,将该骨干表项的生命周期设置为最大值,执行步骤111;Step 109: The border router that receives the advertised message selects a backbone entry whose name prefix field value is equal to the name prefix in the received advertised message name, and whose interface ID set field value is equal to the source interface of the advertised message ID set, set the life cycle of the backbone table item to the maximum value, and execute step 111;
步骤110:接收到发布消息的边界路由器创建一个骨干表项,该骨干表项的名称前缀域值等于接收到的发布消息名称中的名称前缀,接口ID集合域值等于该发布消息的源接口ID集合,生命周期设置为最大值;Step 110: The border router that receives the advertisement creates a backbone entry, the name prefix field value of the backbone entry is equal to the name prefix in the name of the advertisement message received, and the interface ID set field value is equal to the source interface ID of the advertisement message A collection with lifetime set to the maximum value;
步骤111:结束。Step 111: end.
图2为本发明所述的构建末端表流程示意图。在数据C1由名称NA1唯一标识,名称NA1由名称前缀NP1和名称ID NID1构成的条件下,如果节点N1能够提供数据C1,它则定期执行下述操作创建末端表:Fig. 2 is a schematic flow chart of constructing an end table according to the present invention. Under the condition that data C1 is uniquely identified by name NA1, and name NA1 is composed of name prefix NP1 and name ID NID1, if node N1 can provide data C1, it will periodically perform the following operations to create an end table:
步骤201:开始;Step 201: start;
步骤202:节点N1发送一条数据发布消息,该数据发布消息中,名称域为NA1,源接口ID集合域值为空,骨干接口ID集合为空,目的接口ID集合为空,消息类型为2,负载为空;Step 202: Node N1 sends a data release message. In the data release message, the name field is NA1, the value of the source interface ID set field is empty, the backbone interface ID set is empty, the destination interface ID set is empty, and the message type is 2. load is empty;
步骤203:如果接入路由器接收到数据发布消息,则执行步骤204,否则执行步骤208;Step 203: If the access router receives the data publishing message, execute step 204, otherwise execute step 208;
步骤204:接入路由器从自己的接口p3接收到数据发布消息后,将接口p3添加到该数据发布消息的源接口ID集合中,接口p3作为源接口ID集合的最后一个元素;该接入路由器查看末端表,如果存在一个末端表项,该末端表项的名称域值等于接收到的数据发布消息名称中的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,则执行步骤205,否则执行步骤206;Step 204: After the access router receives the data publishing message from its own interface p3, it adds the interface p3 to the source interface ID set of the data publishing message, and the interface p3 is the last element of the source interface ID set; the access router Check the end table, if there is an end entry, the name field value of the end entry is equal to the name in the name of the received data publishing message, and the interface ID set field value is equal to the source interface ID set of the data publishing message, then execute Step 205, otherwise execute step 206;
步骤205:接收到数据发布消息的接入路由器选择一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,将该末端表项的生命周期设置为最大值,执行步骤207;Step 205: The access router that has received the data release message selects an end entry whose name field value is equal to the name of the received data release message, and whose interface ID set field value is equal to the source interface of the data release message ID set, set the life cycle of the terminal entry to the maximum value, and execute step 207;
步骤206:接收到数据发布消息的接入路由器创建一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,接口ID集合域值等于该数据发布消息的源接口ID集合,生命周期设置为最大值;Step 206: The access router that receives the data release message creates an end entry, the name field value of the end entry is equal to the name of the received data release message, and the interface ID set field value is equal to the source interface ID of the data release message A collection with lifetime set to the maximum value;
步骤207:接收到数据发布消息的接入路由器从除了接口p3以外的每个接口转发该数据发布消息,执行步骤203;Step 207: The access router that has received the data publishing message forwards the data publishing message from every interface except interface p3, and executes step 203;
步骤208:边界路由器从自己的下游接口p4接收到数据发布消息后,将接口p4添加到该数据发布消息的源接口ID集合中,接口p4作为源接口ID集合的最后一个元素;该边界路由器查看末端表,如果存在一个末端表项,该末端表项的名称域值等于接收到的数据发布消息名称中的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,则执行步骤209,否则执行步骤210;Step 208: After the border router receives the data publishing message from its downstream interface p4, it adds the interface p4 to the source interface ID set of the data publishing message, and the interface p4 is the last element of the source interface ID set; the border router views End table, if there is an end table entry, the name field value of the end table entry is equal to the name in the name of the received data publishing message, and the interface ID set field value is equal to the source interface ID set of the data publishing message, then perform the steps 209, otherwise execute step 210;
步骤209:接收到数据发布消息的边界路由器选择一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,且接口ID集合域值等于该数据发布消息的源接口ID集合,将该末端表项的生命周期设置为最大值,执行步骤211;Step 209: The border router that receives the data release message selects an end entry whose name field value is equal to the name of the received data release message, and whose interface ID set field value is equal to the source interface ID of the data release message set, set the life cycle of the terminal entry to the maximum value, and execute step 211;
步骤210:接收到数据发布消息的边界路由器创建一个末端表项,该末端表项的名称域值等于接收到的数据发布消息的名称,接口ID集合域值等于该数据发布消息的源接口ID集合,生命周期设置为最大值;Step 210: The border router that receives the data release message creates an end entry, the name field value of the end entry is equal to the name of the received data release message, and the interface ID set field value is equal to the source interface ID set of the data release message , the lifetime is set to the maximum value;
步骤211:结束。Step 211: end.
图3为本发明所述的数据通信流程示意图。在数据C1由名称NA1唯一标识,名称NA1由名称前缀NP1和名称ID NID1构成,节点N1位于末端网络内,该末端网络的边界路由器为ER1的条件下,如果边界路由器ER1存在一个末端表项E1,该末端表项E1的名字域为NA1,则节点N1通过下述过程获取数据C1:FIG. 3 is a schematic diagram of the data communication process described in the present invention. Under the condition that the data C1 is uniquely identified by the name NA1, the name NA1 is composed of the name prefix NP1 and the name ID NID1, the node N1 is located in the end network, and the border router of the end network is ER1, if the border router ER1 has an end entry E1 , the name field of the end entry E1 is NA1, then the node N1 obtains the data C1 through the following process:
步骤301:开始;Step 301: start;
步骤302:节点N1发送请求消息,该请求消息中,名称域值为NA1,源接口ID集合域为空,骨干接口ID集合域为空,目的接口ID集合域为空,消息类型为3,负载为空;Step 302: Node N1 sends a request message. In the request message, the name field is NA1, the source interface ID set field is empty, the backbone interface ID set field is empty, the destination interface ID set field is empty, the message type is 3, and the payload Is empty;
步骤303:如果接入路由器接收到该请求消息,则执行步骤304,否则执行步骤305;Step 303: If the access router receives the request message, execute step 304, otherwise execute step 305;
步骤304:接入路由器从自己的下游接口x1接收到请求消息,将接口x1加入到该请求消息源接口ID集合中,接口x1作为源接口ID集合的最后一个元素,从上游接口转发该请求消息,执行步骤303;Step 304: The access router receives the request message from its downstream interface x1, adds interface x1 to the source interface ID set of the request message, and forwards the request message from the upstream interface with interface x1 as the last element of the source interface ID set , execute step 303;
步骤305:边界路由器从自己的下游接口x2接收到请求消息,将接口x2加入到该请求消息源接口ID集合中,接口x2作为源接口ID集合的最后一个元素;该边界路由器选择一个末端表项,该末端表项的名称域等于该请求消息的名称域,将该请求消息的目的接口ID集合更新为该末端表项的接口ID集合;该边界路由器保存该请求消息目的接口ID集合中的最后一个接口ID L1,从该请求消息目的接口ID集合中删除接口L1,从接口L1转发该请求消息;Step 305: The border router receives the request message from its downstream interface x2, and adds the interface x2 to the source interface ID set of the request message, and the interface x2 is the last element of the source interface ID set; the border router selects an end entry , the name field of the end entry is equal to the name field of the request message, and the destination interface ID set of the request message is updated to the interface ID set of the end entry; the border router saves the last An interface ID L1, delete the interface L1 from the set of destination interface IDs of the request message, and forward the request message from the interface L1;
步骤306:如果接入路由器接收到该请求消息,则执行步骤307,否则执行步骤308;Step 306: If the access router receives the request message, execute step 307, otherwise execute step 308;
步骤307:接入路由器接收到该请求消息后,保存该请求消息目的接口ID集合中的最后一个接口ID L2,从该请求消息目的接口ID集合中删除接口L2,从接口L2转发该请求消息,执行步骤306;Step 307: After receiving the request message, the access router saves the last interface ID L2 in the request message destination interface ID set, deletes interface L2 from the request message destination interface ID set, and forwards the request message from interface L2, Execute step 306;
步骤308:节点接收到请求消息后,发送一条响应消息,该响应消息中,名称域值等于接收到的请求消息的名称,源接口ID集合为空,骨干接口ID集合为空,目的接口ID集合等于接收到的请求消息的源接口ID集合,消息类型为4,负载为接收到的请求消息的名称所标识的数据;Step 308: After receiving the request message, the node sends a response message. In the response message, the name field value is equal to the name of the received request message, the source interface ID set is empty, the backbone interface ID set is empty, and the destination interface ID set is empty. It is equal to the source interface ID set of the received request message, the message type is 4, and the payload is the data identified by the name of the received request message;
步骤309:如果接入路由器接收到该响应消息,则执行步骤310,否则执行步骤311;Step 309: If the access router receives the response message, execute step 310, otherwise execute step 311;
步骤310:接入路由器从下游接口接收到响应消息后,从上游接口转发该响应消息,执行步骤309;Step 310: After receiving the response message from the downstream interface, the access router forwards the response message from the upstream interface, and executes step 309;
步骤311:边界路由器接收到响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID L3,从该响应消息目的接口ID集合中删除接口L3,从接口L3转发该响应消息;Step 311: After receiving the response message, the border router saves the last interface ID L3 in the destination interface ID set of the response message, deletes the interface L3 from the destination interface ID set of the response message, and forwards the response message from the interface L3;
步骤312:如果接入路由器接收到该响应消息,则执行步骤313,否则执行步骤314;Step 312: If the access router receives the response message, execute step 313, otherwise execute step 314;
步骤313:接入路由器接收到该响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID L4,从该响应消息目的接口ID集合中删除接口L4,从接口L4转发该响应消息,执行步骤312;Step 313: After receiving the response message, the access router saves the last interface ID L4 in the response message destination interface ID set, deletes interface L4 from the response message destination interface ID set, and forwards the response message from interface L4, Execute step 312;
步骤314:节点N1接收到响应消息后,保存响应消息中的数据;Step 314: After receiving the response message, the node N1 saves the data in the response message;
步骤315:结束。Step 315: end.
图4为本发明所述的获取数据流程示意图。在数据C2由名称NA2唯一标识,名称NA2由名称前缀NP2和名称ID NID2构成,节点N1位于末端网络内,该末端网络的边界路由器为ER1的条件下,如果边界路由器ER1的末端表中不存在名字域为NA2的末端表项,则节点N1通过下述过程获取数据C2:FIG. 4 is a schematic diagram of the data acquisition process described in the present invention. Under the condition that the data C2 is uniquely identified by the name NA2, the name NA2 is composed of the name prefix NP2 and the name ID NID2, the node N1 is located in the end network, and the border router of the end network is ER1, if the end table of the border router ER1 does not exist The name field is the end entry of NA2, then node N1 obtains data C2 through the following process:
步骤401:开始;Step 401: start;
步骤402:节点N1发送请求消息,该请求消息中,名称域值为NA1,源接口ID集合域为空,骨干接口ID集合域为空,目的接口ID集合域为空,消息类型为3,负载为空;Step 402: Node N1 sends a request message. In the request message, the name field is NA1, the source interface ID set field is empty, the backbone interface ID set field is empty, the destination interface ID set field is empty, the message type is 3, and the payload Is empty;
步骤403:如果接入路由器接收到该请求消息,则执行步骤404,否则执行步骤405;Step 403: If the access router receives the request message, execute step 404, otherwise execute step 405;
步骤404:接入路由器从自己的下游接口y1接收到请求消息,将接口y1加入到该请求消息源接口ID集合中,接口y1作为源接口ID集合的最后一个元素,从上游接口转发该请求消息,执行步骤403;Step 404: The access router receives the request message from its downstream interface y1, adds the interface y1 to the source interface ID set of the request message, and forwards the request message from the upstream interface with interface y1 as the last element of the source interface ID set , execute step 403;
步骤405:边界路由器从自己的下游接口y2接收到请求消息,将接口y2加入到该请求消息源接口ID集合中,接口x2作为源接口ID集合的最后一个元素;该边界路由器选择一个骨干表项,该骨干表项的名称前缀域等于该请求消息名称中的名称前缀,将该请求消息的目的接口ID集合更新为该骨干表项的接口ID集合;该边界路由器保存该请求消息目的接口ID集合中的最后一个接口ID F1,从该请求消息目的接口ID集合中删除接口F1,从接口F1转发该请求消息;Step 405: The border router receives the request message from its downstream interface y2, and adds interface y2 to the source interface ID set of the request message, with interface x2 as the last element of the source interface ID set; the border router selects a backbone entry , the name prefix field of the backbone entry is equal to the name prefix in the request message name, and the destination interface ID set of the request message is updated to the interface ID set of the backbone entry; the border router saves the request message destination interface ID set The last interface ID F1 in the request message, delete the interface F1 from the set of destination interface IDs of the request message, and forward the request message from the interface F1;
步骤406:如果边界路由器接收到该请求消息,则执行步骤408,否则执行步骤407;Step 406: If the border router receives the request message, then execute step 408, otherwise execute step 407;
步骤407:数据路由器从自己的接口y3接收到请求消息后,将接口y3加入到该请求消息骨干接口ID集合中,接口y3作为源接口ID集合的最后一个元素;该数据路由器保存该请求消息目的接口ID集合中的最后一个接口ID F2,从该请求消息目的接口ID集合中删除接口F2,从接口F2转发该请求消息,执行步骤406;Step 407: After receiving the request message from its own interface y3, the data router adds interface y3 to the backbone interface ID set of the request message, with interface y3 as the last element of the source interface ID set; the data router saves the request message purpose The last interface ID F2 in the interface ID set, delete the interface F2 from the request message destination interface ID set, forward the request message from the interface F2, and execute step 406;
步骤408:边界路由器从自己的接口y4接收到请求消息,将接口y4加入到该请求消息骨干接口ID集合中,接口y4作为骨干接口ID集合的最后一个元素;该边界路由器选择一个末端表项,该末端表项的名称域等于该请求消息的名称,将该请求消息的目的接口ID集合更新为该末端表项的接口ID集合;该边界路由器保存该请求消息目的接口ID集合中的最后一个接口ID F3,从该请求消息目的接口ID集合中删除接口F3,从接口F3转发该请求消息;Step 408: The border router receives the request message from its own interface y4, and adds the interface y4 to the backbone interface ID set of the request message, and the interface y4 is used as the last element of the backbone interface ID set; the border router selects an end entry, The name field of the end entry is equal to the name of the request message, and the destination interface ID set of the request message is updated to the interface ID set of the end entry; the border router saves the last interface in the request message destination interface ID set ID F3, delete the interface F3 from the ID set of the destination interface of the request message, and forward the request message from the interface F3;
步骤409:如果接入路由器接收到该请求消息,则执行步骤410,否则执行步骤411;Step 409: If the access router receives the request message, execute step 410, otherwise execute step 411;
步骤410:接入路由器接收到该请求消息后,保存该请求消息目的接口ID集合中的最后一个接口ID F4,从该请求消息目的接口ID集合中删除接口F4,从接口F4转发该请求消息,执行步骤409;Step 410: After receiving the request message, the access router saves the last interface ID F4 in the request message destination interface ID set, deletes interface F4 from the request message destination interface ID set, and forwards the request message from interface F4, Execute step 409;
步骤411:节点接收到请求消息后,发送一条响应消息,该响应消息中,名称域值等于接收到的请求消息的名称,源接口ID集合为空,骨干接口ID集合等于接收到的请求消息的骨干接口ID集合,目的接口ID集合等于接收到的请求消息的源接口ID集合,消息类型为4,负载为接收到的请求消息的名称所标识的数据;Step 411: After the node receives the request message, it sends a response message. In the response message, the name domain value is equal to the name of the received request message, the source interface ID set is empty, and the backbone interface ID set is equal to the received request message. The backbone interface ID set, the destination interface ID set is equal to the source interface ID set of the received request message, the message type is 4, and the payload is the data identified by the name of the received request message;
步骤412:如果接入路由器接收到该响应消息,则执行步骤413,否则执行步骤414;Step 412: If the access router receives the response message, execute step 413, otherwise execute step 414;
步骤413:接入路由器从下游接口接收到响应消息后,从上游接口转发该响应消息,执行步骤412;Step 413: After receiving the response message from the downstream interface, the access router forwards the response message from the upstream interface, and executes step 412;
步骤414:边界路由器接收到响应消息后,保存该响应消息骨干接口ID集合中的最后一个接口ID F5,从该响应消息骨干接口ID集合中删除接口F5,从接口F5转发该响应消息;Step 414: After receiving the response message, the border router saves the last interface ID F5 in the backbone interface ID set of the response message, deletes interface F5 from the backbone interface ID set of the response message, and forwards the response message from interface F5;
步骤415:如果边界路由器接收到响应消息,则执行步骤417,否则执行步骤416;Step 415: If the border router receives the response message, then execute step 417, otherwise execute step 416;
步骤416:数据路由器接收到响应消息后,保存该响应消息骨干接口ID集合中的最后一个接口ID F6,从该响应消息骨干接口ID集合中删除接口F6,从接口F6转发该响应消息,执行步骤415;Step 416: After receiving the response message, the data router saves the last interface ID F6 in the backbone interface ID set of the response message, deletes the interface F6 from the backbone interface ID set of the response message, forwards the response message from the interface F6, and executes the steps 415;
步骤417:边界路由器接收到响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID F7,从该响应消息目的接口ID集合中删除接口F7,从接口F7转发该响应消息;Step 417: After receiving the response message, the border router saves the last interface ID F7 in the destination interface ID set of the response message, deletes the interface F7 from the destination interface ID set of the response message, and forwards the response message from the interface F7;
步骤418:如果接入路由器接收到该响应消息,则执行步骤419,否则执行步骤420;Step 418: If the access router receives the response message, execute step 419, otherwise execute step 420;
步骤419:接入路由器接收到该响应消息后,保存该响应消息目的接口ID集合中的最后一个接口ID F8,从该响应消息目的接口ID集合中删除接口F8,从接口F8转发该响应消息,执行步骤418;Step 419: After receiving the response message, the access router saves the last interface ID F8 in the response message destination interface ID set, deletes interface F8 from the response message destination interface ID set, and forwards the response message from interface F8, Execute step 418;
步骤419:节点N1接收到响应消息后,保存响应消息中的数据;Step 419: After receiving the response message, the node N1 saves the data in the response message;
步骤420:结束。Step 420: end.
实施例1Example 1
基于表1的仿真参数,本实施例模拟了本发明中的一种新一代数据网络通信方法,性能分析如下:当节点数量增加时,数据量随之增加,网络性能随之下降,数据通信延迟随之增加,数据通信平均延迟为1.45s。Based on the simulation parameters in Table 1, this embodiment simulates a new generation of data network communication method in the present invention, and the performance analysis is as follows: when the number of nodes increases, the amount of data increases, the network performance decreases, and the data communication delays With the increase, the average delay of data communication is 1.45s.
表1仿真参数Table 1 Simulation parameters
本发明提供了一种新一代数据网络通信方法的思路,具体实现该技术方案的方法和途径很多,以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。本实施例中未明确的各组成部份均可用现有技术加以实现。The present invention provides an idea of a new generation data network communication method. There are many methods and ways to realize this technical solution. The above description is only a preferred implementation mode of the present invention. That is to say, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be regarded as the protection scope of the present invention. All components that are not specified in this embodiment can be realized by existing technologies.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810235151.3A CN108347381B (en) | 2018-03-21 | 2018-03-21 | A New Generation Data Network Communication Method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810235151.3A CN108347381B (en) | 2018-03-21 | 2018-03-21 | A New Generation Data Network Communication Method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108347381A CN108347381A (en) | 2018-07-31 |
CN108347381B true CN108347381B (en) | 2019-10-11 |
Family
ID=62958074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810235151.3A Active CN108347381B (en) | 2018-03-21 | 2018-03-21 | A New Generation Data Network Communication Method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108347381B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108933657B (en) * | 2018-08-13 | 2021-02-05 | 常熟理工学院 | A Safe and Reliable Realization Method for Future Network Communication |
CN108965029B (en) * | 2018-08-13 | 2021-04-06 | 常熟理工学院 | Stable and reliable software defined network implementation method |
CN109088778B (en) * | 2018-09-14 | 2021-02-19 | 常熟理工学院 | Data communication implementation method for future mobile network |
CN109246015B (en) * | 2018-09-14 | 2020-10-30 | 常熟理工学院 | Reliable data communication implementation method for multimedia sensor network |
CN109218021B (en) * | 2018-10-24 | 2021-02-05 | 常熟理工学院 | A Secure New Generation IoT Data Communication Method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155179A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | A method for removing loops in multi-protocol label switching |
JP2009130393A (en) * | 2007-11-19 | 2009-06-11 | Alaxala Networks Corp | Network communication method and apparatus |
CN106059916A (en) * | 2016-05-31 | 2016-10-26 | 杭州华三通信技术有限公司 | Route injection method and route injection device |
CN106506368A (en) * | 2016-10-19 | 2017-03-15 | 常熟理工学院 | A Realization Method of Data Communication Based on Internet |
CN106973017A (en) * | 2017-03-29 | 2017-07-21 | 常熟理工学院 | A kind of quick network data communication method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9043855B2 (en) * | 2012-07-23 | 2015-05-26 | Maxlinear, Inc. | Noise suppression in a hybrid fiber coaxial network |
-
2018
- 2018-03-21 CN CN201810235151.3A patent/CN108347381B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155179A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | A method for removing loops in multi-protocol label switching |
JP2009130393A (en) * | 2007-11-19 | 2009-06-11 | Alaxala Networks Corp | Network communication method and apparatus |
CN106059916A (en) * | 2016-05-31 | 2016-10-26 | 杭州华三通信技术有限公司 | Route injection method and route injection device |
CN106506368A (en) * | 2016-10-19 | 2017-03-15 | 常熟理工学院 | A Realization Method of Data Communication Based on Internet |
CN106973017A (en) * | 2017-03-29 | 2017-07-21 | 常熟理工学院 | A kind of quick network data communication method |
Also Published As
Publication number | Publication date |
---|---|
CN108347381A (en) | 2018-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108347381B (en) | A New Generation Data Network Communication Method | |
CN109088778B (en) | Data communication implementation method for future mobile network | |
CN109246785B (en) | A Realization Method of Future Mobile Network | |
CN110138663A (en) | A kind of data-centered new generation network implementation method | |
CN101102325A (en) | Method and device for announcing autonomous system boundary connection information | |
CN110113264A (en) | A kind of caching and route implementation method for naming data network | |
CN106973017A (en) | A kind of quick network data communication method | |
CN108494688A (en) | A kind of Future Data network implementation approach of low-cost | |
CN106453090A (en) | Communication method taking data as center | |
CN108347382B (en) | A New Generation Network Implementation Method Based on Data Center | |
CN109167728B (en) | A method for realizing big data communication based on named data network | |
CN106506368A (en) | A Realization Method of Data Communication Based on Internet | |
WO2015117391A1 (en) | Method for realizing resource attribute notification, and common service entity | |
CN111277497B (en) | Method for realizing network service deployment and discovery based on distribution | |
CN105188104B (en) | A kind of implementation method of wireless communication | |
CN103037000A (en) | Publish-subscribe system and notification message processing method thereof | |
CN109005567A (en) | A kind of mobile network's implementation method based on cluster | |
CN106101210A (en) | A kind of data-centered radio network data communication method | |
CN108449274B (en) | A kind of data-centered future network implementation method | |
CN111245725B (en) | Future network implementation method based on distribution | |
CN109768893B (en) | An efficient implementation method of big data network data communication | |
CN110769479B (en) | High-efficiency new-generation wireless network communication method | |
CN108429673A (en) | A Fast Future Data Network Implementation Method | |
CN108494595A (en) | A kind of efficient big data network implementation approach of new generation | |
CN101715174B (en) | Multimedia message sending method, service center, WAP gateway and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |