[go: up one dir, main page]

CN105681203B - A kind of countermeasure that the connection of space delay tolerant network is surprisingly failed - Google Patents

A kind of countermeasure that the connection of space delay tolerant network is surprisingly failed Download PDF

Info

Publication number
CN105681203B
CN105681203B CN201610021507.4A CN201610021507A CN105681203B CN 105681203 B CN105681203 B CN 105681203B CN 201610021507 A CN201610021507 A CN 201610021507A CN 105681203 B CN105681203 B CN 105681203B
Authority
CN
China
Prior art keywords
connection
failure
node
record
bundle
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.)
Expired - Fee Related
Application number
CN201610021507.4A
Other languages
Chinese (zh)
Other versions
CN105681203A (en
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.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
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 Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN201610021507.4A priority Critical patent/CN105681203B/en
Publication of CN105681203A publication Critical patent/CN105681203A/en
Application granted granted Critical
Publication of CN105681203B publication Critical patent/CN105681203B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/20Hop count for routing purposes, e.g. TTL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

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

Abstract

The present invention discloses a kind of countermeasure that the connection of space delay tolerant network is surprisingly failed, this method and the LTP protocol in conjunction that transmitting is provided, including establishing and using Joint failure discovery mechanism, connection restores detection mechanism, Joint failure and recovery notifying mechanism, connection figure update mechanism and the router-level topology mechanism for considering Joint failure, using the continuous re-transmission of beam as the mark of Joint failure, fail message is informed into other nodes when finding Joint failure, other nodes update link information according to notice, failure connection is excluded from path in time when calculating routing, with this come cope with spatial electromagnetic interference or the excessively low reason of node energy caused by loss of connectivity issue.

Description

一种空间延迟容忍网络连接意外失效的应对方法A Spatial Delay Tolerance Method for Unexpected Failure of Network Connections

技术领域technical field

本发明涉及计算机网络技术领域。更具体地,涉及一种空间延迟容忍网络连接意外失效的应对方法。The invention relates to the technical field of computer network. More specifically, it relates to a method for dealing with unexpected failures of spatial delay tolerant network connections.

背景技术Background technique

随着互联网和空间探测技术的不断发展,空间网络设计成为研究热点。由于空间环境存在较长的端到端时延、较高的误码率、频繁的链路中断等特点,传统的TCP/IP网络无法直接在空间网络中使用,NASA提出的延迟容忍网络(Delay Tolerant Network,DTN)可以很好的解决这些问题,成为空间网络的一种解决方案。DTN协议新定义了束(bundle)层和汇聚层,将应用层数据分割成小的束(bundle)发送,使用存储转发的策略来应对频繁的链路中断,当无端到端链路时将束存储在中间节点等待传输机会。束协议使用EID(endpointID)表示通信的双方,EID由节点号和服务号组成,节点号即DTN节点编号,用来计算路由,服务号来区分节点上注册的不同通信方,节点号和服务号类似于TCP/IP协议中的ip地址和端口号。With the continuous development of Internet and space detection technology, space network design has become a research hotspot. Due to the long end-to-end delay, high bit error rate, and frequent link interruptions in the space environment, the traditional TCP/IP network cannot be directly used in the space network. The delay-tolerant network (Delay Tolerant Network) proposed by NASA Tolerant Network (DTN) can solve these problems very well and become a solution of spatial network. The DTN protocol newly defines the bundle layer and the aggregation layer, divides the application layer data into small bundles for transmission, and uses a store-and-forward strategy to deal with frequent link interruptions. When there is no end-to-end link, the bundle Stored in intermediate nodes waiting for transmission opportunities. The bundle protocol uses EID (endpointID) to represent the two parties of communication. EID is composed of node number and service number. The node number is the DTN node number, which is used to calculate the route. The service number is used to distinguish different communication parties registered on the node, node number and service number. Similar to the ip address and port number in the TCP/IP protocol.

汇聚层协议完成束层和传输层的交互,现有汇聚层协议包括TCPCL(TCPConvergence Layer protocol)、UDPCL(UDP Convergence Layers protocol)、LTPCL(LTPConvergence Layer protocol)等,LTP(Licklider Transmission Protocol)协议是为了应对空间网络长延迟、高信道误码率、非对称链路问题而设计的传输协议。LTP协议通过设计的重传机制提供可靠的数据传输服务,首先LTPCLA(LTP Convergence Layer Adapter)将下一跳节点是同一个邻居节点的所有束聚合成一个数据块(block),当束聚合成块之后,又将块分割成小的段(segment),作为LTP协议的最小数据单元,块大小和段大小都是可以设置的,数据束聚合数量根据预先配置的LTP块大小确定。段的类型有红色部分(redpart)、绿色部分(green part)、检查点(checkpoint)、报告段(report segment)和报告确认段(report ACK)。红色部分为需要可靠传输的数据,绿色部分为不需要可靠传输的数据。对于每一个检查点,接收端都需要回复相应的报告段告知发送者已经接收到的段,发送者根据收到的报告段重传丢失的段。检查点和报告段都有重传定时器,当发送者不能及时接收到回应的报告段时将重传检查点,检查点连续重传十次之后数据块中聚合的束将被取出重新计算路由,此时束发生重传。The convergence layer protocol completes the interaction between the beam layer and the transport layer. The existing convergence layer protocols include TCPCL (TCPConvergence Layer protocol), UDPCL (UDP Convergence Layers protocol), LTPCL (LTPConvergence Layer protocol), etc. The LTP (Licklider Transmission Protocol) protocol is for A transmission protocol designed to deal with long delays, high channel bit error rates, and asymmetric link problems in space networks. The LTP protocol provides reliable data transmission services through the designed retransmission mechanism. First, LTPCLA (LTP Convergence Layer Adapter) aggregates all bundles whose next-hop node is the same neighbor node into a data block (block). When bundles are aggregated into blocks Afterwards, the block is divided into small segments. As the smallest data unit of the LTP protocol, both the block size and the segment size can be set, and the number of data bundle aggregations is determined according to the pre-configured LTP block size. The types of segments are red part, green part, checkpoint, report segment and report ACK. The red part is the data that needs reliable transmission, and the green part is the data that does not need reliable transmission. For each checkpoint, the receiver needs to reply the corresponding report segment to inform the sender of the received segment, and the sender retransmits the lost segment according to the received report segment. Both the checkpoint and the report segment have a retransmission timer. When the sender fails to receive the response report segment in time, the checkpoint will be retransmitted. After the checkpoint is retransmitted ten times in a row, the aggregated bundle in the data block will be taken out to recalculate the route , when the bundle retransmission occurs.

由于空间节点具有轨迹可以预知的特点,能够预先得到两个节点间的通信机会即链路信息,包括每次通信的起始时间、终止时间、传输速率等,连接图路由(Contact GraphRouting,CGR)将每一次通信机会称为一次连接(contact),用连接信息代表链路信息,CGR将链路信息按照连接的方式预先配置在连接计划(contact plan)中,预先配置的连接信息为连接的起始节点(from node)、终止节点(to node)、起始时间(from time)、终止时间(totime)、传输速率(rate)、起始节点与终止节点间的距离(range)。连接计划中连接信息格式如表1所示:Since space nodes have the characteristics of predictable trajectories, the communication opportunities between two nodes, that is, the link information, can be obtained in advance, including the start time, end time, transmission rate, etc. of each communication, and the connection graph routing (Contact GraphRouting, CGR) Each communication opportunity is called a contact, and the connection information is used to represent the link information. CGR pre-configures the link information in the contact plan according to the connection method, and the pre-configured connection information is the starting point of the connection. Start node (from node), end node (to node), start time (from time), end time (totime), transmission rate (rate), distance between start node and end node (range). The connection information format in the connection plan is shown in Table 1:

表1连接信息格式Table 1 Connection information format

CGR根据预先配置的连接信息,将可用的连接连一起,逐跳地把束从源节点发送到目的节点。According to the pre-configured connection information, CGR connects the available connections together and sends bundles from the source node to the destination node hop by hop.

CGR在利用预知连接信息计算路由的同时,也带来了对连接图准确性要求极高的问题。而复杂多变的空间环境极易导致连接意外失效的发生,此时按初始连接信息配置的连接图与实际的连接状况不再一致,按照原本配置计算出来的路由将无法使用,导致路由失败。While CGR uses the predicted connection information to calculate the route, it also brings the problem that the accuracy of the connection graph is extremely high. The complex and changeable space environment can easily lead to unexpected connection failures. At this time, the connection diagram configured according to the initial connection information is no longer consistent with the actual connection status. The route calculated according to the original configuration will not be available, resulting in routing failure.

因此,需要提供一种空间延迟容忍网络连接意外失效的应对方法。Therefore, it is necessary to provide a response method for spatial delay tolerance to unexpected failure of network connections.

发明内容Contents of the invention

本发明的目的在于提供一种空间延迟容忍网络连接意外失效的应对方法,应对空间延迟容忍网络中的连接意外失效问题,当发现连接失效后及时将检测到的失效连接通告给其他节点,在选路时避免使用失效连接。The purpose of the present invention is to provide a method for dealing with accidental failure of a space delay tolerant network connection, to deal with the problem of accidental connection failure in a space delay tolerant network, and to notify other nodes of the detected failure connection in time when the connection failure is found. Avoid using dead connections while on the road.

为达到上述目的,本发明采用下述技术方案:To achieve the above object, the present invention adopts the following technical solutions:

一种空间延迟容忍网络连接意外失效的应对方法,该方法和LTP协议协同工作,由于LTP协议的重传机制可以在正常误码率下保证数据可靠传输,束发生连续重传的概率极低,因此本发明将同一条链路上束的连续重传看做连接失效的标志。A method for responding to accidental failures of spatial delay tolerant network connections. This method works in conjunction with the LTP protocol. Since the retransmission mechanism of the LTP protocol can ensure reliable data transmission under normal bit error rates, the probability of continuous retransmission of bundles is extremely low. Therefore, the present invention regards the continuous retransmission of bundles on the same link as a sign of connection failure.

一种空间延迟容忍网络连接意外失效的应对方法包括如下步骤:A method for responding to accidental failure of a spatial delay tolerant network connection includes the following steps:

S1、根据链路中束的传输情况判断连接是否发生意外失效;S1. According to the transmission situation of the beam in the link, it is judged whether the connection fails unexpectedly;

S2、当发现连接失效时,将失效的连接通告其他节点,并利用连接恢复探测束检测失效的连接是否恢复,当判断该连接恢复后将恢复的连接通告其他节点;S2. When it is found that the connection is invalid, notify other nodes of the invalid connection, and use the connection recovery detection beam to detect whether the failed connection is restored, and notify other nodes of the restored connection when it is judged that the connection is restored;

S3、当节点接收到连接失效通告信息或连接恢复通告信息后,更新该节点本地连接计划中相应连接的失效状态;S3. After the node receives the connection failure notification information or the connection recovery notification information, update the failure status of the corresponding connection in the node's local connection plan;

S4、为束计算路由,将失效连接排除在外,并优先转发剩余生存时间小的束。S4. Calculate the route for the bundle, exclude the failed connection, and preferentially forward the bundle with the smallest remaining lifetime.

优选地,步骤S1进一步包括如下子步骤:Preferably, step S1 further includes the following sub-steps:

S1.1、在节点的连接计划中原有的连接信息中加入失效状态标志位,并建立束重传记录列表和失效连接记录列表,束重传记录列表记录束的源节点、源服务号、生成时间戳和下一跳节点,失效连接记录列表记录失效连接的起始节点、终止节点、终止时间、最小检测时间间隔、连接恢复探测定时器、失效通告发送标志位和连接恢复标志位;S1.1. Add the failure status flag bit to the original connection information in the connection plan of the node, and establish a bundle retransmission record list and a failure connection record list. The bundle retransmission record list records the bundle’s source node, source service number, generation Timestamp and next hop node, failure connection record list records the start node, end node, termination time, minimum detection time interval, connection recovery detection timer, failure notification sending flag and connection recovery flag in the failure connection record list;

S1.2、根据链路中束的传输情况,利用失效状态标志位、束重传记录列表和失效连接记录列表判断连接是否发生意外失效。S1.2. According to the transmission status of the bundle in the link, use the failure status flag bit, the bundle retransmission record list and the failure connection record list to determine whether the connection fails unexpectedly.

优选地,步骤S1.2进一步包括如下子步骤:Preferably, step S1.2 further includes the following sub-steps:

S1.2.1、当束到来时,首先判断束的目的节点是否为本地节点,如果是则执行步骤S1.2.2,否则执行步骤S1.2.3;S1.2.1. When the bundle arrives, first judge whether the destination node of the bundle is a local node, if yes, execute step S1.2.2, otherwise execute step S1.2.3;

S1.2.2、根据束的标志位和目的服务号判断束是否为连接失效状态通告束,如果是则在连接计划中更新所通告连接的失效状态;S1.2.2. Determine whether the bundle is a connection failure state notification bundle according to the flag bit of the bundle and the destination service number, and if so, update the failure state of the notified connection in the connection plan;

S1.2.3、判断束是否发生重传,如果不是则执行步骤S4,否则执行步骤S1.2.4;S1.2.3. Determine whether the bundle is retransmitted, if not, execute step S4, otherwise execute step S1.2.4;

S1.2.4、根据束的标志位和目的服务号检查是否为连接恢复探测束,如果是则连接恢复探测束发生了重传,将该束丢弃,否则执行步骤S1.2.5;S1.2.4. Check whether it is a connection recovery probe beam according to the flag bit and the destination service number of the beam. If yes, the connection recovery probe beam is retransmitted, and the beam is discarded; otherwise, step S1.2.5 is performed;

S1.2.5、检查束重传记录列表中是否有该束的记录,如果没有则记录束的重传信息,所述重传信息包括束的源节点、源服务号、生成时间戳和下一跳节点,随后执行步骤S4;如果有则执行步骤S1.2.6;S1.2.5. Check whether there is a record of the bundle in the bundle retransmission record list, if not, record the retransmission information of the bundle, the retransmission information includes the source node of the bundle, the source service number, the generation time stamp and the next hop node, then execute step S4; if there is, execute step S1.2.6;

S1.2.6、判断束的下一跳节点和重传记录中的下一跳节点是否一致,如果不一致则更新束的重传记录,将记录中的下一跳节点改为束当前的下一跳节点,并执行步骤S4;否则执行步骤S1.2.7;S1.2.6. Determine whether the next hop node of the bundle is consistent with the next hop node in the retransmission record, if not, update the retransmission record of the bundle, and change the next hop node in the record to the current next hop of the bundle node, and execute step S4; otherwise execute step S1.2.7;

S1.2.7、判断本地节点到束的下一跳节点的连接发生失效状况,在本地连接计划中将本地节点到束下一跳节点的连接标记为失效;检查失效连接记录列表中是否已存在该连接的记录,如果不存在,则在连接失效记录列表中记录该失效连接的信息,所述失效连接的信息包括起始节点、终止节点、终止时间、最小探测时间间隔和连接恢复探测定时器,并执行步骤S4;如果已存在该连接的失效记录则不再记录,执行步骤S4。S1.2.7. Determine the failure of the connection between the local node and the next-hop node of the bundle, and mark the connection between the local node and the next-hop node of the bundle as invalid in the local connection plan; check whether the failure connection record list already exists If the record of the connection does not exist, record the information of the failure connection in the connection failure record list, the information of the failure connection includes the starting node, the ending node, the termination time, the minimum detection time interval and the connection recovery detection timer, And execute step S4; if there is already an invalidation record for the connection, no longer record it, and execute step S4.

优选地,所述连接失效状态通告束的负载部分记录连接的起始节点、终止节点、起始时间、终止时间和失效标志。Preferably, the payload part of the connection failure status notification bundle records the starting node, ending node, starting time, ending time and failure flag of the connection.

优选地,步骤S2进一步包括如下子步骤:Preferably, step S2 further includes the following sub-steps:

S2.1、节点打开失效连接记录列表,执行步骤S2.2;S2.1, the node opens the invalid connection record list, and executes step S2.2;

S2.2、检查列表中是否存在失效连接记录,如果存在则找到第一条失效连接记录,执行步骤S2.3;否则执行步骤S2.10;S2.2. Check whether there is an invalid connection record in the list, if it exists, find the first invalid connection record, and execute step S2.3; otherwise, execute step S2.10;

S2.3、检查该失效连接记录的失效恢复标志位是否为1,如果是则说明失效的连接已经恢复,执行步骤S2.4;否则说明失效的连接还没有恢复,执行步骤S2.5;S2.3. Check whether the failure recovery flag bit of the failure connection record is 1, if yes, it means that the failure connection has been recovered, and perform step S2.4; otherwise, it means that the failure connection has not been recovered, and perform step S2.5;

S2.4、在本地连接计划中将相应连接的失效状态标志位标记为0,根据连接记录中的终止时间计算失效通告域,将通告束格式中的失效标志标记为0,生成连接失效状态通告束发送给失效通告域中的节点,告知其他节点连接已经恢复,删除失效记录列表中关于该连接的记录,执行步骤S2.9,检查列表中记录的下一条失效连接;S2.4. Mark the failure state flag of the corresponding connection as 0 in the local connection plan, calculate the failure notification field according to the termination time in the connection record, mark the failure flag in the notification bundle format as 0, and generate a connection failure state notification The bundle is sent to the nodes in the failure notification domain to inform other nodes that the connection has been restored, delete the record about the connection in the failure record list, perform step S2.9, and check the next failure connection recorded in the list;

S2.5、检查失效通告发送标志位是否为1,如果是则说明已经发送过关于该连接的失效通告,执行步骤S2.7;否则说明还没有发送失效通告,执行步骤S2.6;S2.5. Check whether the invalidation notification sending flag is 1, if yes, it means that the invalidation notification about the connection has been sent, and execute step S2.7; otherwise, it means that the invalidation notification has not been sent, and execute step S2.6;

S2.6、根据连接记录中的终止时间计算该连接的失效通告域,将通告束格式中的失效标志标记为1,生成连接失效状态通告束发送到失效通告域内的节点,告知其他节点连接已经失效,并将失效记录中的失效通告发送标志标记为1,执行步骤S2.7;S2.6. Calculate the failure notification domain of the connection according to the termination time in the connection record, mark the failure flag in the notification bundle format as 1, generate a connection failure status notification bundle and send it to the nodes in the failure notification domain, and inform other nodes that the connection has been completed Invalid, and mark the invalidation notification sending flag in the invalidation record as 1, and execute step S2.7;

S2.7、检查连接失效恢复探测定时器是否到期,如果到期则执行步骤S2.8,否则执行步骤S2.9;S2.7. Check whether the connection failure recovery detection timer expires, if it expires, execute step S2.8, otherwise execute step S2.9;

S2.8、发送连接恢复探测束,束的目的节点设置为该连接的终止节点,服务号设置为16,并重新设置连接恢复探测定时器,执行步骤S2.9;S2.8. Send the connection recovery detection beam, the destination node of the beam is set as the termination node of the connection, the service number is set to 16, and the connection recovery detection timer is reset, and step S2.9 is performed;

S2.9、检查下一条失效连接记录是否存在,如果存在则对其执行步骤S2.3;如果不存在,则说明已经遍历完连接记录,执行步骤S2.10;S2.9. Check whether the next invalid connection record exists, and if it exists, execute step S2.3; if it does not exist, it means that the connection record has been traversed, and execute step S2.10;

S2.10、休眠一秒,返回步骤S2.2,执行新一轮检测。S2.10, sleep for one second, return to step S2.2, and execute a new round of detection.

优选地,步骤S2还包括如下子步骤:Preferably, step S2 also includes the following sub-steps:

S2.11、当束发送成功后检查束是否为连接恢复探测束,如果是则说明连接已经恢复,执行步骤S2.12;否则执行步骤S2.13;S2.11. After the beam is sent successfully, check whether the beam is a connection recovery detection beam. If yes, it means that the connection has been restored, and execute step S2.12; otherwise, execute step S2.13;

S2.12、从失效连接记录列表中找到起始节点是本地节点、终止节点是束的下一跳节点的连接,将该连接的失效恢复标志位标记为1,在步骤S2.3中作为连接恢复的标志;S2.12. Find the connection whose starting node is the local node and the ending node is the next hop node of the beam from the failure connection record list, mark the failure recovery flag of the connection as 1, and use it as a connection in step S2.3 signs of recovery;

S2.13、检查束重传记录列表中是否记录有该束的信息,如果有则删除该记录。S2.13. Check whether information about the bundle is recorded in the bundle retransmission record list, and if so, delete the record.

优选地,所述失效通告域为连接计划中满足开始时间小于失效连接终止时间的所有连接的开始节点和终止节点。Preferably, the failure notification domain is the start node and termination node of all connections in the connection plan whose start time is less than the failure connection termination time.

优选地,步骤S4的具体过程为:Preferably, the specific process of step S4 is:

为束计算路由,如果束是连接恢复探测束,则发往所探测的邻居节点;如果不是,则在计算路由时将失效的连接排除在路径之外,并比较该束与队列中的束的剩余生存时间,按剩余生存时间由小到大顺序发送。Calculate the route for the bundle, if the bundle is a connection recovery detection bundle, send it to the detected neighbor node; if not, exclude the failed connection from the path when calculating the route, and compare the bundle with the bundle in the queue The remaining time to live is sent in ascending order of the remaining time to live.

本发明的有益效果如下:The beneficial effects of the present invention are as follows:

本发明所述技术方案当发现连接失效后及时将检测到的失效连接通告给其他节点,在选路时避免使用失效连接。本发明所述技术方案在连接计划中为连接新加入失效标志位,用来表示连接失效状态,例如:1代表失效,0代表恢复,当计算路由时将每段连接的失效状态考虑在内。本发明所述技术方案新建立束重传记录列表和失效连接记录列表,束重传记录列表用来记录发生重传的束信息,作为判断连接发生失效的依据;失效连接记录列表用来记录暂时失效的连接。本发明所述技术方案使用束协议预留的束标志位和服务号15新定义了连接恢复探测束,用来探测失效连接记录列表中记录的连接是否恢复。本发明所述技术方案使用束协议预留的束标志位和服务号16新定义了连接失效状态通告束来通告连接失效和恢复信息。The technical scheme of the present invention notifies other nodes of the detected invalid connection in time after the invalid connection is found, so as to avoid using the invalid connection during route selection. In the technical solution of the present invention, a failure flag is newly added to the connection in the connection plan to indicate the failure status of the connection, for example: 1 means failure, 0 means recovery, and the failure status of each connection is taken into consideration when calculating the route. The technical scheme of the present invention newly establishes a bundle retransmission record list and an invalid connection record list. The bundle retransmission record list is used to record the retransmitted bundle information as a basis for judging that a connection fails; the invalid connection record list is used to record temporary Broken connection. The technical scheme of the present invention uses the bundle flag reserved by the bundle protocol and the service number 15 to newly define a connection recovery detection bundle, which is used to detect whether the connection recorded in the invalid connection record list is restored. The technical scheme of the present invention uses the bundle flag reserved by the bundle protocol and the service number 16 to newly define a connection failure status notification bundle to notify connection failure and recovery information.

附图说明Description of drawings

下面结合附图对本发明的具体实施方式作进一步详细的说明。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.

图1示出空间延迟容忍网络连接意外失效的应对方法的流程图。FIG. 1 shows a flow chart of a method for coping with unexpected failure of a spatial delay-tolerant network connection.

图2示出连接失效判断的流程图。Fig. 2 shows a flow chart of connection failure judgment.

图3示出连接恢复探测及失效状态通告的流程图。Fig. 3 shows a flow chart of connection recovery detection and failure state notification.

图4示出连接恢复判断的流程图。FIG. 4 shows a flow chart of connection recovery judgment.

图5示出空间延迟容忍网络连接意外失效的应对方法的应用场景示意图。FIG. 5 shows a schematic diagram of an application scenario of a method for responding to an unexpected failure of a spatial delay-tolerant network connection.

具体实施方式Detailed ways

为了更清楚地说明本发明,下面结合优选实施例和附图对本发明做进一步的说明。附图中相似的部件以相同的附图标记进行表示。本领域技术人员应当理解,下面所具体描述的内容是说明性的而非限制性的,不应以此限制本发明的保护范围。In order to illustrate the present invention more clearly, the present invention will be further described below in conjunction with preferred embodiments and accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. Those skilled in the art should understand that the content specifically described below is illustrative rather than restrictive, and should not limit the protection scope of the present invention.

本实施例提供的空间延迟容忍网络连接意外失效的应对方法在软件ION-3.3.1版本上实现,该方法建立并使用如下五个机制:连接失效发现机制、连接恢复探测机制、连接失效及恢复通告机制、连接图更新机制和考虑连接失效的路由计算机制。The method for dealing with accidental failure of spatial delay-tolerant network connections provided in this embodiment is implemented on the software version ION-3.3.1. This method establishes and uses the following five mechanisms: connection failure discovery mechanism, connection recovery detection mechanism, connection failure and recovery Notification mechanism, connection graph update mechanism and routing calculation mechanism considering connection failure.

如图1所示,本实施例提供的空间延迟容忍网络连接意外失效的应对方法包括如下步骤:As shown in FIG. 1, the method for responding to unexpected failure of a spatial delay-tolerant network connection provided by this embodiment includes the following steps:

S1、使用连接失效发现机制根据链路中束的传输情况判断连接是否发生意外失效;S1. Use the connection failure discovery mechanism to judge whether the connection fails unexpectedly according to the transmission status of the bundle in the link;

S2、当发现连接失效时,使用连接失效及恢复通告机制将失效的连接通告其他节点;考虑到连接失效既可能是电磁干扰引起的暂时失效也可能是空间节点故障引起的永久失效,在使用连接失效及恢复通告机制将失效的连接通告其他节点之后,基于连接恢复探测机制,利用连接恢复探测束及时检测失效的连接是否恢复,当判断该连接恢复后使用连接失效及恢复通告机制将恢复的连接通告其他节点;S2. When the connection failure is found, use the connection failure and recovery notification mechanism to notify other nodes of the failed connection; considering that the connection failure may be either a temporary failure caused by electromagnetic interference or a permanent failure caused by a space node failure, when using the connection After the failure and recovery notification mechanism notifies other nodes of the failed connection, based on the connection recovery detection mechanism, use the connection recovery detection beam to detect whether the failed connection is restored in time. When it is judged that the connection is restored, use the connection failure and recovery notification mechanism to restore the connection Notify other nodes;

S3、当节点接收到连接状态通告信息(连接失效通告信息或连接恢复通告信息)后,使用连接图更新机制更新该节点本地连接计划中相应连接的失效状态;S3. After the node receives the connection status notification information (connection failure notification information or connection recovery notification information), use the connection map update mechanism to update the failure status of the corresponding connection in the node's local connection plan;

S4、使用考虑连接失效的路由计算机制的连接图路由CGR为束计算路由,将失效连接排除在外,并优先转发剩余生存时间小的束。S4. Using the connection graph routing CGR of the route calculation mechanism considering connection failure to calculate the route for the bundle, exclude the failed connection, and preferentially forward the bundle with the smallest remaining lifetime.

本实施例提供的空间延迟容忍网络连接意外失效的应对方法可以及时地避免不必要的重传,降低传递时延。The method for dealing with accidental failure of spatial delay-tolerant network connections provided in this embodiment can avoid unnecessary retransmission in time and reduce transmission delay.

其中in

步骤S1“使用连接失效发现机制根据链路中束的传输情况判断连接是否发生意外失效”的具体过程为:The specific process of step S1 "using the connection failure discovery mechanism to judge whether the connection fails unexpectedly according to the transmission status of the bundle in the link" is as follows:

连接失效发现机制修改了连接计划中原有的连接信息格式,为连接加入失效状态标志位,并新建立了束重传记录列表和失效连接记录列表,分别用来记录发生重传的束和失效的连接。The connection failure discovery mechanism modifies the original connection information format in the connection plan, adds a failure status flag bit for the connection, and newly establishes a bundle retransmission record list and a failure connection record list, which are used to record retransmitted bundles and failed connections respectively. connect.

新定义的连接信息格式如表2所示:The newly defined connection information format is shown in Table 2:

表2新定义的连接信息格式Table 2 newly defined connection information format

连接失效状态标志位为1代表连接失效,为0代表连接恢复。If the connection failure status flag is 1, the connection is invalid, and if it is 0, the connection is restored.

束重传记录列表用来记录发生重传的束,记录的内容包括束的源节点、源服务号、生成时间戳和下一跳节点。格式如表3所示:The bundle retransmission record list is used to record the retransmitted bundle, and the recorded content includes the bundle's source node, source service number, generation timestamp and next hop node. The format is shown in Table 3:

表3束重传记录列表格式Table 3 Bundle retransmission record list format

束的源节点、源服务号和生成时间戳为束的唯一标识,用来识别不同的束,束的下一跳节点标识发生重传的邻居连接,通过这些信息可以唯一的确定发生在本地节点到下一跳邻居节点的连接上发生重传的束。The bundle’s source node, source service number, and generation timestamp are the unique identifiers of the bundle, which are used to identify different bundles. The next-hop node of the bundle identifies the neighbor connection where the retransmission occurs. Through these information, it can be uniquely determined that the retransmission occurred on the local node. A bundle of retransmissions occurs on a connection to a next-hop neighbor node.

CGR使用连接表示连接信息,当节点检测到束为重传束之后,继续检测束重传记录列表中是否已存在该束的记录,如果不存在则按照表3记录束的重传信息,当该束传输成功时再将束的重传信息从束重传列表中删除;如果存在,则检查记录中的下一跳节点与束的下一跳节点是否一致,如果不一致则更新束的重传记录,将记录中的下一跳节点改为束当前的下一跳节点,如果一致则表明束在同一条连接上发生了连续两次重传,将本地节点到束的下一跳节点的连接视为暂时失效,随后在本地连接计划中将起始节点为本地节点、终止节点为束下一跳节点的连接标记为失效,使用新的连接计划为束重新计算路由,并检查失效连接记录列表中有无该失效连接的记录,如果没有则记录该失效连接。失效连接记录列表格式如表4所示:CGR uses connections to represent connection information. When a node detects that a bundle is a retransmission bundle, it continues to check whether a record of the bundle already exists in the bundle retransmission record list. If it does not exist, record the retransmission information of the bundle according to Table 3. When the bundle transmission is successful, delete the retransmission information of the bundle from the retransmission list of the bundle; if it exists, check whether the next hop node in the record is consistent with the next hop node of the bundle, and if not, update the retransmission record of the bundle , change the next hop node in the record to the current next hop node of the bundle. If they are consistent, it indicates that the bundle has undergone two consecutive retransmissions on the same connection, and the connection between the local node and the next hop node of the bundle is regarded as In order to temporarily invalidate, then in the local connection plan, mark the connection whose starting node is the local node and the ending node is the next hop node of the bundle as invalid, use the new connection plan to recalculate the route for the bundle, and check the invalid connection record list Whether there is a record of the invalid connection, if not, record the invalid connection. The format of the failed connection record list is shown in Table 4:

表4失效连接记录列表格式Table 4 Format of the list of failed connection records

失效连接记录列表记录失效连接的起始节点、终止节点、终止时间、最小检测时间间隔BDCT(basic disrupted contact check time)、连接恢复探测定时器、失效通告发送标志位和连接恢复标志位。最小检测时间间隔作为设置连接恢复探测定时器的基准,将定时器设置为最小检测间隔BDCT的整数倍,当定时器到期后,向失效连接的终止节点发送连接恢复探测束来检查连接是否恢复,定时器具体设置方式和连接恢复探测束的格式在连接恢复探测机制中描述。当连接被判断为失效后计算BDCT,并将首次连接恢复探测定时器设置为BDCT。BDCT根据失效连接的持续时间决定,使用连接持续时间的百分之一作为BDCT,比例可调:The failed connection record list records the starting node, ending node, termination time, minimum detection time interval BDCT (basic disrupted contact check time), connection recovery detection timer, failure notification sending flag and connection recovery flag of the failed connection. The minimum detection time interval is used as the basis for setting the connection recovery detection timer, and the timer is set to an integer multiple of the minimum detection interval BDCT. When the timer expires, a connection recovery detection beam is sent to the terminating node of the invalid connection to check whether the connection is restored. , the specific setting method of the timer and the format of the connection recovery detection beam are described in the connection recovery detection mechanism. When the connection is judged to be invalid, BDCT is calculated, and the first connection recovery detection timer is set as BDCT. The BDCT is determined according to the duration of the failed connection, using one percent of the connection duration as the BDCT, and the ratio is adjustable:

失效连接记录列表中失效通告发送标志位用来标记是否已向其他节点发送过该连接的失效状态通告,初始化设置为0,当发送过失效通告后,将失效通告发送标志位标记为1。连接恢复标志用来标记连接是否已经恢复,如果恢复则标记为1。另外当列表中的失效连接到达其终止时间后,将该失效连接记录在失效连接记录列表中删除。The failure notification sending flag in the failure connection record list is used to mark whether the failure status notification of the connection has been sent to other nodes. The initialization is set to 0. After the failure notification is sent, the failure notification sending flag is marked as 1. The connection recovery flag is used to mark whether the connection has been restored, and if it is restored, it is marked as 1. In addition, when the invalid connection in the list reaches its termination time, the invalid connection record is deleted in the invalid connection record list.

步骤S2中“使用连接恢复探测机制及时检测失效的连接是否恢复”的具体过程为:The specific process of "using the connection recovery detection mechanism to detect in time whether the failed connection is restored" in step S2 is as follows:

当BDCT秒过去之后,连接恢复探测定时器过期,节点将发送连接恢复探测束到失效的邻居节点来检查连接是否已经恢复。探测束发送之后,重新设置连接恢复探测定时器为2*BDCT。我们使用束协议预留的标志位和服务号15来标记连接恢复探测束,将探测束的源节点设置为本地节点,目的节点设置为失效连接的终止节点,源和目的服务号设置为15,发送内容为字符1。When BDCT seconds have elapsed, the connection recovery probe timer expires, and the node will send a connection recovery probe beam to the failed neighbor node to check whether the connection has been restored. After the probe beam is sent, reset the connection recovery probe timer to 2*BDCT. We use the flag reserved by the bundle protocol and the service number 15 to mark the connection recovery probe beam, set the source node of the probe beam as the local node, set the destination node as the termination node of the failed connection, and set the source and destination service numbers to 15. The sending content is character 1.

连接恢复探测机制使用连接恢复探测定时器来限制连接恢复探测束的发送间隔,避免发送大量的连接恢复探测信息对卫星能量等资源产生大量的消耗,同时使用最大探测间隔MT(maximum check time)来保证探测粒度,如果下一次连接恢复探测定时器的时间大于MT,则将定时器直接设置成MT。当发送连接恢复探测束后如果连接还未恢复,则连接恢复探测束将被重传,当发送节点检测到连接恢复探测束重传时,将连接恢复探测束从存储中移除。当2*BDCT秒之后,发送另一个连接恢复探测束,并将连接恢复探测定时器设置为3*BDCT。重复这个过程直到连接恢复或者连接恢复探测定时器时间超过MT。当连接恢复探测定时器超过MT后将连接恢复探测定时器设置为固定值MT,MT可根据需要进行设置,比如设置为30秒或60秒。The connection recovery detection mechanism uses the connection recovery detection timer to limit the sending interval of the connection recovery detection beam, so as to avoid sending a large amount of connection recovery detection information to cause a large amount of consumption of satellite energy and other resources. At the same time, the maximum detection interval MT (maximum check time) is used to Guarantee the detection granularity. If the time of the next connection recovery detection timer is greater than MT, the timer will be directly set to MT. If the connection has not been restored after sending the connection recovery probe beam, the connection recovery probe beam will be retransmitted, and when the sending node detects the retransmission of the connection recovery probe beam, the connection recovery probe beam will be removed from the storage. When 2*BDCT seconds pass, send another connection recovery probe beam and set the connection recovery probe timer to 3*BDCT. Repeat this process until the connection is restored or the connection recovery detection timer exceeds MT. When the connection recovery detection timer exceeds the MT, the connection recovery detection timer is set to a fixed value MT, and the MT can be set as required, such as 30 seconds or 60 seconds.

当连接恢复探测束传输成功后,本地发送节点在失效列表中找到起始节点为本地节点、终止节点为所探测邻居节点的连接,将表4中该连接的连接恢复标志位标记为1。After the transmission of the connection recovery detection beam is successful, the local sending node finds the connection whose starting node is the local node and the termination node is the detected neighbor node in the invalidation list, and marks the connection recovery flag bit of the connection in Table 4 as 1.

步骤S2中“当发现连接失效时,使用连接失效及恢复通告机制将失效的连接通告其他节点”和“使用连接失效及恢复通告机制将恢复的连接通告其他节点”的具体过程为:In step S2, the specific process of "when the connection failure is found, use the connection failure and restoration notification mechanism to notify other nodes of the connection failure" and "use the connection failure and restoration notification mechanism to notify other nodes of the restored connection" is as follows:

当发现连接失效或探测到连接恢复之后使用连接失效状态通告束向其他节点通告连接失效状态,通告信息放在束的负载部分,连接失效状态通告束格式如表5所示:When the connection failure is found or the connection recovery is detected, the connection failure status notification bundle is used to notify other nodes of the connection failure status. The notification information is placed in the load part of the bundle. The format of the connection failure status notification bundle is shown in Table 5:

表5连接失效状态通告束格式Table 5 Connection Failure Status Notification Bundle Format

起始节点、终止节点、起始时间、终止时间用来识别连接,失效标志用来表示连接的失效状态,为1时表示连接发生失效,为0则代表连接已经恢复,通告的连接信息放在束的负载部分。我们使用bundle协议预留标志位和服务号16来标记连接失效状态通告束,将通告束的源节点设置为本地节点、目的节点为通告域内的节点、源和目的服务号均为16。The start node, end node, start time, and end time are used to identify the connection, and the failure flag is used to indicate the failure status of the connection. When it is 1, it means that the connection has failed, and when it is 0, it means that the connection has been restored. The notified connection information is placed in load portion of the bundle. We use the bundle protocol reserved flag and service number 16 to mark the notification bundle of connection failure status, set the source node of the notification bundle as a local node, the destination node as a node in the notification domain, and the source and destination service numbers are both 16.

该机制中节点每隔1秒遍历一次失效连接记录列表,当发现列表中记录有失效连接时向其他节点发送连接失效状态通告束,通告连接失效信息,并将失效连接记录列表中该连接的失效通告发送标志位标记为1,表示已经发送过该连接的失效通告,以后将不再发送该失效通告。同样,检测连接恢复标志位是否为1,如果为1则说明连接已经恢复,在本地连接计划中将相应的连接失效状态标记为恢复,使用连接失效状态通告束向其他节点通告连接恢复信息,并在连接失效记录列表中将相应的连接记录删除。由于某些节点可能使用不到该失效的连接,通告机制使用失效通告域CDAG(Contact Disruption AnnounceGroup)限制连接失效状态通告束只向通告域内的节点发送,以保证通告束的有用性,减少不必要的传输。CDAG定义如下:In this mechanism, a node traverses the list of failed connection records every 1 second, and when it finds that there is a failed connection recorded in the list, it sends a connection failure status notification bundle to other nodes, notifies the connection failure information, and sends the failure status of the connection in the failed connection record list. The notification sending flag is marked as 1, indicating that the failure notification of the connection has been sent, and the failure notification will not be sent in the future. Similarly, check whether the connection recovery flag is 1, if it is 1, it means that the connection has been recovered, mark the corresponding connection failure status as recovery in the local connection plan, use the connection failure status notification bundle to notify other nodes of the connection recovery information, and Delete the corresponding connection record in the connection invalidation record list. Since some nodes may not be able to use the failed connection, the notification mechanism uses the failure notification domain CDAG (Contact Disruption Announce Group) to limit the notification bundle of the connection failure status to only the nodes in the notification domain, so as to ensure the usefulness of the notification bundle and reduce unnecessary transmission. CDAG is defined as follows:

CDAG={连接计划中满足开始时间小于失效连接终止时间的所有连接的开始节点和终止节点}CDAG={start node and end node of all connections in the connection plan whose start time is less than the termination time of the failed connection}

因为只有开始时间小于失效连接终止时间的连接才有机会使用到该失效的连接,因此CDAG限制通告只发往这些连接的开始节点和终止节点。比如连接1的起始节点、终止节点、起始时间、终止时间分别为1、2、100s、300s,连接2的分别为3、4、200s、400s,连接3分别为5、6、400s、500s,当连接1失效时,由于连接2的开始时间小于连接1的终止时间,连接3的开始时间大于连接1的终止时间,则通告域为连接2的开始节点和终止节点即3和4。通告信息的生存时间设置为信息发送时刻与失效连接终止时刻的时间差。Because only the connection whose start time is less than the termination time of the failed connection has the opportunity to use the failed connection, CDAG restricts notifications to only the start node and the end node of these connections. For example, the start node, end node, start time, and end time of connection 1 are 1, 2, 100s, and 300s respectively; those of connection 2 are 3, 4, 200s, and 400s; connections 3 are 5, 6, 400s, 500s, when connection 1 fails, since the start time of connection 2 is less than the end time of connection 1, and the start time of connection 3 is greater than the end time of connection 1, the notification domain is the start node and end node of connection 2, namely 3 and 4. The life time of the notification information is set as the time difference between the time when the information is sent and the time when the invalid connection is terminated.

步骤S3中“使用连接图更新机制更新本地连接计划中相应连接的失效状态”的具体过程为:The specific process of "updating the failure status of the corresponding connection in the local connection plan using the connection map update mechanism" in step S3 is as follows:

当节点接收到束之后,首先判断束是否为发往本地节点的连接失效状态通告束,如果是则读取出通告的连接信息,包括起始节点、终止节点、起始时间、终止时间、失效标志位。如果失效标志位为1,则代表相应的连接发生失效状况,更新本地连接计划,将其失效标志位标记为1;若失效标志位为0,则代表相应失效连接已经恢复,在本地连接计划中将其失效标志位标记为0。After the node receives the bundle, it first judges whether the bundle is a connection failure notification bundle sent to the local node, and if so, reads the notified connection information, including the start node, end node, start time, end time, failure Flag bit. If the failure flag is 1, it means that the corresponding connection has failed, update the local connection plan, and mark its failure flag as 1; if the failure flag is 0, it means that the corresponding failure connection has been restored, in the local connection plan Mark its failure flag bit as 0.

步骤S4“使用考虑连接失效的路由计算机制的连接图路由CGR为束计算路由,将失效连接排除在外,并优先发送剩余生存时间小的束”的具体过程为:The specific process of step S4 "using the connection graph routing CGR of the route calculation mechanism considering connection failure to calculate the route for the bundle, excluding the failed connection, and giving priority to sending the bundle with the smallest remaining lifetime" is as follows:

当节点计算路径时考虑路径中每段连接的失效状态,如果失效标志位为1则将该连接从路径中排除,如果失效标志位为0则继续使用,同时考虑到达束的剩余生存时间,优先发送剩余生存时间小的束。When the node calculates the path, the failure status of each connection in the path is considered. If the failure flag is 1, the connection will be excluded from the path. If the failure flag is 0, it will continue to be used. At the same time, the remaining survival time of the arrival beam will be considered. Priority Send bundles with a small remaining time to live.

步骤S1进一步包括如下子步骤:Step S1 further includes the following sub-steps:

S1.1、在节点的连接计划中原有的连接信息中加入失效状态标志位,并建立束重传记录列表和失效连接记录列表,束重传记录列表包括束的源节点、源服务号、生成时间戳和下一跳节点,失效连接记录列表包括失效连接的起始节点、终止节点、终止时间、最小检测时间间隔、连接恢复探测定时器、失效通告发送标志位和连接恢复标志位;S1.1. Add the failure status flag to the original connection information in the connection plan of the node, and establish a bundle retransmission record list and a failure connection record list. The bundle retransmission record list includes the bundle source node, source service number, generation Timestamp and next hop node, the failure connection record list includes the start node, termination node, termination time, minimum detection time interval, connection recovery detection timer, failure notification sending flag and connection recovery flag of the failure connection;

S1.2、根据链路中束的传输情况,利用失效状态标志位、束重传记录列表和失效连接记录列表判断连接是否发生意外失效。S1.2. According to the transmission status of the bundle in the link, use the failure status flag bit, the bundle retransmission record list and the failure connection record list to determine whether the connection fails unexpectedly.

如图2所示,步骤S1.2进一步包括如下子步骤:As shown in Figure 2, step S1.2 further includes the following sub-steps:

S1.2.1、当束到来时,首先判断束的目的节点是否为本地节点,如果是则执行步骤S1.2.2,否则执行步骤S1.2.3;S1.2.1. When the bundle arrives, first judge whether the destination node of the bundle is a local node, if so, execute step S1.2.2, otherwise execute step S1.2.3;

S1.2.2、根据束的标志位和目的服务号判断束是否为连接失效状态通告束,如果是则在连接计划中更新所通告连接的失效状态;S1.2.2. Determine whether the bundle is a connection failure state notification bundle according to the flag bit of the bundle and the destination service number, and if so, update the failure state of the notified connection in the connection plan;

S1.2.3、判断束是否发生重传,如果不是则执行步骤S4,否则执行步骤S1.2.4;S1.2.3. Determine whether the bundle is retransmitted, if not, execute step S4, otherwise execute step S1.2.4;

S1.2.4、根据束的标志位和目的服务号检查是否为连接恢复探测束,如果是则连接恢复探测束发生了重传,说明连接尚未恢复,将该束丢弃,否则执行步骤S1.2.5;S1.2.4. Check whether it is a connection recovery probe beam according to the flag bit and the destination service number of the beam. If yes, the connection recovery probe beam has been retransmitted, indicating that the connection has not been recovered, and the beam is discarded. Otherwise, perform step S1.2.5;

S1.2.5、检查束重传记录列表中是否有该束的记录,如果没有则记录束的重传信息,包括束的源节点、源服务号、生成时间戳、下一跳节点,随后执行步骤S4转发该束;如果有,则执行步骤S1.2.6;S1.2.5. Check whether there is a record of the bundle in the bundle retransmission record list, if not, record the retransmission information of the bundle, including the source node, source service number, generation time stamp, next hop node of the bundle, and then execute the steps S4 forwards the bundle; if so, execute step S1.2.6;

S1.2.6、判断束的下一跳节点和重传记录中的下一跳节点是否一致,如果不一致则更新束的重传记录,将记录中的下一跳节点改为束当前的下一跳节点,随后执行步骤S4,否则执行步骤S1.2.7;S1.2.6. Determine whether the next hop node of the bundle is consistent with the next hop node in the retransmission record, if not, update the retransmission record of the bundle, and change the next hop node in the record to the current next hop of the bundle node, then execute step S4, otherwise execute step S1.2.7;

S1.2.7、此时说明该束已经在同一条路径上经历了连续的重传,判断本地节点到束的下一跳节点的连接发生失效状况,在本地连接计划中将本地节点到束下一跳节点的连接标记为失效;检查失效连接记录列表中是否已存在该连接的记录,如果不存在,则在连接失效记录列表中记录该失效连接的信息,包括起始节点、终止节点、终止时间、最小探测时间间隔、连接恢复探测定时器,随后执行步骤S4,如果已存在该连接的失效记录,则不再记录,直接执行步骤S4;S1.2.7. At this time, it means that the bundle has experienced continuous retransmission on the same path. It is judged that the connection between the local node and the next hop node of the bundle is invalid, and the local node is connected to the next hop node of the bundle in the local connection plan. The connection of the skip node is marked as invalid; check whether the connection record already exists in the invalid connection record list, if not, record the information of the invalid connection in the connection invalidation record list, including the starting node, ending node, and ending time , the minimum detection time interval, the connection recovery detection timer, and then execute step S4, if there is already an invalidation record for the connection, no longer record, and directly execute step S4;

步骤S4的具体过程为:The concrete process of step S4 is:

为束计算路由,如果束是连接恢复探测束,则发往所探测的邻居节点;如果不是,则在计算路由时将失效的连接排除在路径之外,并比较该束与队列中的束的剩余生存时间,按剩余生存时间由小到大顺序发送。Calculate the route for the bundle, if the bundle is a connection recovery detection bundle, send it to the detected neighbor node; if not, exclude the failed connection from the path when calculating the route, and compare the bundle with the bundle in the queue The remaining time to live is sent in ascending order of the remaining time to live.

如图3所示,步骤S2进一步包括如下子步骤:As shown in Figure 3, step S2 further includes the following sub-steps:

S2.1、当节点启动DTN程序时,打开失效连接记录列表,执行步骤S2.2;S2.1, when the node starts the DTN program, open the invalid connection record list, and execute step S2.2;

S2.2、检查列表中是否存在失效连接记录,如果存在则找到第一条失效连接记录,执行步骤S2.3,否则执行步骤S2.10;S2.2. Check whether there is an invalid connection record in the list, if it exists, find the first invalid connection record, execute step S2.3, otherwise execute step S2.10;

S2.3、检查该失效连接记录的失效恢复标志位是否为1,如果是则说明失效的连接已经恢复,执行步骤S2.4,否则说明失效的连接还没有恢复,执行步骤S2.5;S2.3. Check whether the failure recovery flag bit of the failure connection record is 1, if yes, it means that the failure connection has been recovered, and perform step S2.4, otherwise, it means that the failure connection has not been recovered, and perform step S2.5;

S2.4、首先在本地连接计划中将相应连接的失效状态标志位标记为0,然后按照连接失效及恢复通告机制中描述的方式根据连接记录中的终止时间计算失效通告域,将通告束格式中的失效标志标记为0,生成连接失效状态通告束发送给失效通告域中的节点,告知其他节点连接已经恢复,之后删除失效记录列表中关于该连接的记录,随后执行步骤S2.9,检查列表中记录的下一条失效连接;S2.4. First, mark the failure state flag of the corresponding connection as 0 in the local connection plan, then calculate the failure notification field according to the termination time in the connection record according to the method described in the connection failure and recovery notification mechanism, and set the notification bundle format The failure flag in is marked as 0, and a connection failure status notification bundle is generated and sent to the nodes in the failure notification domain to inform other nodes that the connection has been restored, and then delete the record about the connection in the failure record list, and then perform step S2.9 to check The next failed connection recorded in the list;

S2.5、检查失效通告发送标志位是否为1,如果为1,则说明已经发送过关于该连接的失效通告,执行步骤S2.7,如果不为1则说明还没有发送失效通告,执行步骤S2.6;S2.5. Check whether the invalidation notification sending flag is 1, if it is 1, it means that the invalidation notification about the connection has been sent, execute step S2.7, if it is not 1, it means that the invalidation notification has not been sent yet, execute step S2.6;

S2.6、按照连接失效及恢复通告机制中描述的方式,将通告束格式中的失效标志标记为1,根据连接记录中的终止时间计算该连接的失效通告域,告知其他节点连接已经失效,并将失效记录中的失效通告发送标志标记为1,之后执行步骤S2.7;S2.6. According to the method described in the connection failure and recovery notification mechanism, mark the failure flag in the notification bundle format as 1, calculate the failure notification field of the connection according to the termination time in the connection record, and inform other nodes that the connection has failed, And mark the invalidation notification sending flag in the invalidation record as 1, and then execute step S2.7;

S2.7、检查连接失效恢复探测定时器是否到期,如果到期则执行步骤S2.8,否则执行步骤S2.9,检测下一条失效记录;S2.7. Check whether the connection failure recovery detection timer expires, if it expires, execute step S2.8, otherwise execute step S2.9, and detect the next failure record;

S2.8、发送连接恢复探测束,束的目的节点设置为该连接的终止节点,服务号设置为16,并按照连接恢复探测机制中描述的方式重新设置连接恢复探测定时器,之后执行步骤S2.9,检查下一条失效连接记录;S2.8. Send the connection recovery detection beam, set the destination node of the beam as the termination node of the connection, set the service number to 16, and reset the connection recovery detection timer according to the method described in the connection recovery detection mechanism, and then perform step S2 .9. Check the next failed connection record;

S2.9、检查下一条失效连接记录是否存在,如果存在则对其执行步骤S2.3;如果不存在,则说明已经遍历完连接记录,执行步骤S2.10;S2.9. Check whether the next invalid connection record exists, and if it exists, execute step S2.3; if it does not exist, it means that the connection record has been traversed, and execute step S2.10;

S2.10、休眠一秒,然后返回步骤S2.2,执行新一轮检测。S2.10, sleep for one second, and then return to step S2.2 to perform a new round of detection.

如图4所示,步骤S2还包括如下子步骤:As shown in Figure 4, step S2 also includes the following sub-steps:

S2.11、当束发送成功后检查束是否为连接恢复探测束,如果是则说明连接已经恢复,执行步骤S2.12;如果不是执行步骤S2.13;S2.11. After the beam is sent successfully, check whether the beam is a connection recovery detection beam. If yes, it means that the connection has been restored, and execute step S2.12; if not, execute step S2.13;

S2.12、从失效连接记录列表中找到起始节点是本地节点、终止节点是束的下一跳节点的连接,将该连接的失效恢复标志位标记为1,在图3所示连接恢复探测流程的步骤S2.3中作为连接恢复的标志;S2.12. Find the connection whose starting node is the local node and the terminating node is the next hop node of the bundle from the failure connection record list, mark the failure recovery flag bit of the connection as 1, and detect the connection recovery as shown in Figure 3 In the step S2.3 of the process, it is used as a sign of connection recovery;

S2.13、检查束重传记录列表中是否记录有该束的信息,如果有则删除该记录;如果没有则说明束未发生重传现象,执行CGR默认操作,不做附加处理。S2.13. Check whether the information of the bundle is recorded in the bundle retransmission record list, and if so, delete the record; if not, it means that the bundle has not been retransmitted, and execute the CGR default operation without additional processing.

下面将本实施例提供的空间延迟容忍网络连接意外失效的应对方法应用于如图5所示的场景中,对本发明做进一步的说明:In the following, the method for coping with the accidental failure of the spatial delay tolerance network connection provided by this embodiment is applied to the scenario shown in FIG. 5 to further describe the present invention:

图5所示的场景为模拟卫星节点向地面数据中心发送数据的场景,场景中,空间节点运行DTN协议,地面节点运行TCP/IP协议,网关负责实现DTN协议向IP协议的转换,数据发送节点为卫星1,目的节点为数据中心,数据首先会以束的形式发送到网关5,经网关进行DTN协议向IP协议的转换后使用IP网络发送到数据中心。假设卫星节点2到卫星节点3的连接持续时间为1秒到1000秒,在30秒由于节点3的天线发生故障,节点2到3的连接产生连接意外失效的状况,失效持续时间为600s。假设节点1和节点2之间连接的开始时间为1s,终止时间为1000s,节点3和5之间连接的开始时间和终止时间分别为1s和1000s,节点1和4之间连接的分别为100s和1100s,节点4和6之间连接的分别为100s和1100s,节点6和5之间连接的分别为100s和1100s,节点4和7之间连接的分别为1200s和2200s,最大探测间隔MT为35s。以下步骤为一个完整的失效应对方法流程。The scenario shown in Figure 5 is a scenario where the simulated satellite node sends data to the ground data center. In the scenario, the space node runs the DTN protocol, the ground node runs the TCP/IP protocol, and the gateway is responsible for realizing the conversion from the DTN protocol to the IP protocol. The data sending node It is satellite 1, and the destination node is the data center. The data will first be sent to the gateway 5 in the form of bundles, and then the data will be sent to the data center through the IP network after conversion from the DTN protocol to the IP protocol by the gateway. Assume that the duration of the connection from satellite node 2 to satellite node 3 is from 1 second to 1000 seconds. In 30 seconds, due to the failure of the antenna of node 3, the connection from node 2 to 3 unexpectedly fails, and the failure duration is 600 seconds. Suppose the start time of the connection between node 1 and node 2 is 1s and the end time is 1000s, the start time and end time of the connection between nodes 3 and 5 are 1s and 1000s respectively, and the connection between nodes 1 and 4 is 100s respectively and 1100s, the connection between nodes 4 and 6 is 100s and 1100s, the connection between nodes 6 and 5 is 100s and 1100s, the connection between nodes 4 and 7 is 1200s and 2200s, the maximum detection interval MT is 35s. The following steps are a complete failure response method flow.

在源节点卫星1执行以下操作:Perform the following operations on the source node Satellite 1:

步骤1:源节点卫星1向数据中心发送数据,共两条路径可用,一条为1>2>3>5到达网关,然后通过地面IP网络传输到数据中心,另一条为1>4>6>5到达网关5,然后通过地面IP网络传输到数据中心。首先节点1根据原始配置计算出束在在空间网络中使用路径1>2>3>5到达网关5的时间比路径1>4>6>5路径到达网关5的时间要早,因此选择1>2>3>5为最佳路径传输束,即虚线箭头所指路径,在30秒之前该路径可以正常使用。Step 1: The source node satellite 1 sends data to the data center. There are two paths available, one is 1>2>3>5 to the gateway, and then transmitted to the data center through the ground IP network, and the other is 1>4>6> 5 reaches the gateway 5, and then is transmitted to the data center through the terrestrial IP network. First, according to the original configuration, node 1 calculates that the time for the bundle to reach gateway 5 using path 1>2>3>5 in the space network is earlier than the time for path 1>4>6>5 to reach gateway 5, so choose 1> 2>3>5 is the best path for beam transmission, that is, the path indicated by the dotted arrow, which can be used normally before 30 seconds.

步骤2:当30秒之后,节点2到3的连接发生失效,而此时节点1并不知道失效状况,将继续使用路径1>2>3>5发送束,因为失效的连接并不会影响到节点1到节点2的连接,所以束可以正常的到达节点2,但是束将在节点2到3的连接上发生重传现象,节点2会使用连接失效应对方法发现失效的连接并发送连接失效状态通告束,具体实现步骤在节点2具体描述。Step 2: After 30 seconds, the connection between nodes 2 and 3 fails, and node 1 does not know the failure at this time, and will continue to use the path 1>2>3>5 to send beams, because the failed connection will not affect To the connection from node 1 to node 2, so the bundle can reach node 2 normally, but the bundle will be retransmitted on the connection from node 2 to 3, node 2 will use the connection failure response method to find the failed connection and send the connection failure Status notification bundle, specific implementation steps are described in node 2.

步骤3:当节点1接收到节点2发送的束后,判断是否为发往本地的连接失效状态通告束,当发现是连接失效状态通告束之后,更新连接计划,将节点2到节点3的连接标记为失效,在计算路由时,将节点2和节点3之间的连接从路径中排除,选择使用次优路径1>4>6>5,在600s秒之前将一直使用路径1>4>6>5发送束,即实现箭头所指路径;Step 3: When node 1 receives the bundle sent by node 2, it judges whether it is a connection failure state notification bundle sent to the local. Marked as invalid, when calculating the route, exclude the connection between node 2 and node 3 from the path, choose to use the suboptimal path 1>4>6>5, and will always use the path 1>4>6 before 600s seconds >5 sending bundles, that is to realize the path pointed by the arrow;

步骤4:当600秒之后,节点2使用连接失效应对方法发现节点2到节点3的连接已经恢复,此时将再次发送失效状态通告束通告节点2到节点3之间的连接已经恢复。当节点1识别发过来的连接失效状态通告束,发现节点2到节点3的连接已经恢复,此时在本地连接计划中将节点2到节点3的连接标记为恢复,后续束将继续使用路径1>2>3>5发送。Step 4: After 600 seconds, node 2 finds that the connection between node 2 and node 3 has been restored by using the connection failure response method. At this time, it will send the failure status notification bundle again to notify that the connection between node 2 and node 3 has been restored. When node 1 recognizes the connection failure notification bundle sent and finds that the connection from node 2 to node 3 has been restored, it will mark the connection from node 2 to node 3 as restored in the local connection plan, and the subsequent bundle will continue to use path 1 >2>3>5 send.

在卫星节点2执行以下步骤操作:Perform the following steps on satellite node 2:

步骤1:当DTN程序启动时,启动连接恢复探测机制,每隔一秒检测一次失效连接记录列表。同时对于到来的束,节点2首先会使用图2连接失效探测流程图所示流程检查是否为发往本地的失效状态通告束,因为实施例中只有节点2到节点3的路径失效,因此节点2不会接收到目的节点为自己的失效状态通告。之后节点2将检测束是否为重传的束,由于在30s之前没有连接失效状况发生,所有束都可以正常发送,没有重传的束,因此节点2直接为束计算路由,束将按照路径2>3>5成功传输。Step 1: When the DTN program is started, the connection recovery detection mechanism is started, and the invalid connection record list is detected every second. At the same time, for the incoming bundle, node 2 will first use the process shown in the connection failure detection flow chart in Figure 2 to check whether it is a failure status notification bundle sent to the local, because only the path from node 2 to node 3 fails in the embodiment, so node 2 It will not receive notifications of the failure status of the destination node for itself. After that, node 2 will check whether the bundle is a retransmitted bundle. Since no connection failure occurs before 30s, all bundles can be sent normally, and there is no retransmitted bundle, so node 2 directly calculates the route for the bundle, and the bundle will follow the path 2 >3>5 successfully transmitted.

步骤2:当束传输成功后,按照图4连接恢复判断流程图所示流程执行相应操作,首先节点2会检查传输成功的束是否为连接恢复探测束,因为在30秒前没有失效状况发生,因此不会有探测束,对束执行CGR默认处理,不做附加处理。Step 2: After the beam transmission is successful, perform the corresponding operations according to the process shown in the connection recovery judgment flow chart in Figure 4. First, node 2 will check whether the successfully transmitted beam is a connection recovery detection beam, because no failure occurred before 30 seconds. Therefore there will be no probing beams, and the CGR default processing will be performed on beams with no additional processing.

步骤3:当第30秒后,卫星节点2到3的连接出现意外失效的状况,此时数据在节点2到3的连接上将无法传输,根据LTP协议重传机制,当节点2发出的检查点未及时收到节点3回应的报告段时,将出现检查点的重传,当节点2发出的检查点连续重传十次均未收到回应时,节点2将数据块中聚合的束取出,重新计算路由,此时束将发生重传现象。Step 3: After the 30th second, the connection between satellite nodes 2 and 3 fails unexpectedly. At this time, data cannot be transmitted on the connection between nodes 2 and 3. According to the retransmission mechanism of the LTP protocol, when the check sent by node 2 When the node does not receive the report segment of the response from node 3 in time, there will be a retransmission of the checkpoint. When the checkpoint sent by node 2 has not received a response for ten consecutive retransmissions, node 2 will take out the aggregated bundle in the data block , recalculate the route, and the beam will be retransmitted at this time.

步骤4:按图2流程,当节点2检测到束为重传束之后,查看束重传记录列表中有无关于该束的记录,由于此时是第一次重传,并没有记录,则按照连接失效发现机制中描述的束重传记录格式,记录束的源节点、源服务号、生成时间戳、下一跳节点,之后为束重新计算路由,由于此时尚未发现2到3的连接发生意外失效问题,因此节点2计算得到的最优路径仍为2>3>5。Step 4: According to the process in Figure 2, when node 2 detects that the bundle is a retransmission bundle, check whether there is a record about the bundle in the bundle retransmission record list. Since it is the first retransmission at this time, there is no record, then According to the bundle retransmission record format described in the connection failure discovery mechanism, record the source node, source service number, generation timestamp, and next hop node of the bundle, and then recalculate the route for the bundle, because the connection from 2 to 3 has not been found at this time Unexpected failure occurs, so the optimal path calculated by node 2 is still 2>3>5.

步骤5:由于连接还处于失效状态中,节点3此时依然无法回应报告段,节点2发出的检查点将会继续重传,当LTP协议中的检查点传输次数再次超过十次时,束将再次重传。Step 5: Since the connection is still in an invalid state, node 3 still cannot respond to the report segment at this time, and the checkpoint sent by node 2 will continue to be retransmitted. When the number of checkpoint transmissions in the LTP protocol exceeds ten times again, the bundle will Retransmit again.

步骤6:当节点2检测到束为重传束时,查找束重传记录列表中关于重传束的记录。发现束重传记录列表中存在关于该束的记录,且记录中的下一跳节点和束的下一跳节点均为节点3,则判断节点2到节点3的连接发生了失效状况,在束重传记录列表中将该束的记录删除,在本地接触计划中更新连接信息,并将节点2到3的连接标记为失效;随后查看失效连接记录列表中有无该连接的失效记录,因为是第一次检查到失效,所以失效连接记录列表中并无记录,在失效连接列表中记录失效连接的开始节点为2、终止节点为3、终止时间为1000s、BDCT为10s,第一次设置连接恢复探测定时器为BDCT(10s)、失效通过标志位为0、失效恢复标志位0;并为重传的束使用新的连接计划重新计算路由,此时连接计划中的连接信息已有失效记录,因此计算路由时会将束返回到节点1。Step 6: When node 2 detects that the bundle is a retransmission bundle, it searches for the record about the retransmission bundle in the bundle retransmission record list. If it is found that there is a record about the bundle in the bundle retransmission record list, and the next-hop node in the record and the next-hop node of the bundle are both node 3, it is judged that the connection between node 2 and node 3 has failed. Delete the record of the beam in the transmission record list, update the connection information in the local contact plan, and mark the connection between nodes 2 and 3 as invalid; then check whether there is an invalid record of the connection in the invalid connection record list, because it is the first The failure was detected at one time, so there is no record in the failure connection record list. In the failure connection list, record the start node of the failure connection as 2, the end node as 3, the termination time as 1000s, and the BDCT as 10s. Set the connection recovery for the first time The detection timer is BDCT (10s), the failure pass flag is 0, and the failure recovery flag is 0; and the new connection plan is used to recalculate the route for the retransmitted beam. At this time, the connection information in the connection plan has an invalidation record. So computing the route will return the bundle to node 1.

步骤7:节点2按图3流程每隔一秒遍历一次失效连接记录列表,此时将检查到失效连接记录列表中存在失效连接的记录,查看失效连接信息,检查到连接恢复标志位为0,判断此时连接还没有恢复;继续检查到失效通告标志位为0,表示尚未向其他节点发送关于该连接的失效状态通告束,随后节点2将计算失效状态通告域,然后按照表3格式发送连接失效状态通告束,并将记录中的失效通告发送标志位标记为1。根据通告域规则,节点4到7的连接开始时间为1200秒,小于失效的节点2到节点3间的连接终止时间1000s,因此按照4和7之间的连接开始时间计算的通告域不包含节点4和7,但是节点4到6间连接开始时间为100s,小于失效连接的终止时间,因此按照该连接计算的通告域将包含节点4,同理可得到最终的通告域为{1、3、4、5、6},不含节点7。Step 7: Node 2 traverses the failed connection record list every second according to the flow shown in Figure 3. At this time, it will check that there is a failed connection record in the failed connection record list, check the failed connection information, and check that the connection recovery flag is 0. Judging that the connection has not been restored at this time; continue to check that the failure notification flag is 0, indicating that the failure status notification bundle about the connection has not been sent to other nodes, and then node 2 will calculate the failure status notification field, and then send the connection according to the format of Table 3 The notification of the failure status is completed, and the sending flag bit of the failure notification in the record is marked as 1. According to the notification domain rules, the connection start time between nodes 4 and 7 is 1200 seconds, which is 1000 seconds less than the connection termination time between node 2 and node 3, so the notification domain calculated based on the connection start time between 4 and 7 does not include nodes 4 and 7, but the start time of the connection between nodes 4 and 6 is 100s, which is less than the termination time of the failed connection. Therefore, the notification domain calculated according to this connection will include node 4. Similarly, the final notification domain can be obtained as {1, 3, 4, 5, 6}, excluding node 7.

步骤8:节点2继续检查连接恢复探测定时器有没有到期,发现此时还没有到期,之后检测发现没有下一条失效连接记录,此时休眠1秒;Step 8: Node 2 continues to check whether the connection recovery detection timer has expired, and finds that it has not expired at this time, and then detects that there is no next invalid connection record, and sleeps for 1 second at this time;

步骤9:1秒过后,节点2继续遍历一次失效连接记录列表,此时检测到卫星2到3的连接失效记录,发现恢复标志位为0,表示尚未恢复,通告标志位为1,表明已经发送过通告。再检测探测定时器设置,发现定时器尚未到期,休眠1秒;Step 9: After 1 second, node 2 continues to traverse the list of invalid connection records. At this time, it detects the connection failure records of satellites 2 to 3, and finds that the recovery flag is 0, indicating that it has not been restored, and the notification flag is 1, indicating that it has been sent by notice. Then check the detection timer setting, find that the timer has not expired, and sleep for 1 second;

步骤10:1秒过后节点2再次检查,发现定时器还没有到期,继续休眠1秒;重复这个过程知道定时器到期;当检查到探测定时器到期时,发送连接恢复探测束到邻居节点3,并按照连接恢复探测机制中描述的探测定时器设置方式设置下次恢复探测束的发送定时器为20s。Step 10: After 1 second, node 2 checks again and finds that the timer has not expired, and continues to sleep for 1 second; repeat this process until the timer expires; when the detection timer expires, send a connection recovery detection beam to the neighbor Node 3, and set the sending timer of the next recovery probe beam to 20s according to the detection timer setting method described in the connection recovery detection mechanism.

步骤11:在600s之前节点2到节点3的连接还没有恢复,此时发送的探测束同样将发生重传,当节点2发现重传的束是探测束后,直接删除该束。Step 11: The connection between node 2 and node 3 has not been restored before 600s, and the probe beam sent at this time will also be retransmitted. When node 2 finds that the retransmitted beam is a probe beam, it deletes the beam directly.

步骤12:当20s之后定时器再次到期,重新发送连接探测束,并按照格式设置定时器为30s;同样连接还未恢复,则检查到重传的连接恢复探测束后将束删除。Step 12: When the timer expires again after 20s, resend the connection detection bundle, and set the timer to 30s according to the format; also, if the connection has not been restored, check the retransmitted connection recovery detection bundle and delete the bundle.

步骤13:当30s过去之后,此时连接恢复探定时器到期,再次发送连接恢复探测束,因为此时4*BDCT为40s,大于MT(35s),故将定时器设置为35s;当35s之后,定时器再次过期,发送探测束,并将定时器设置为MT,重复这个过程直到连接恢复。Step 13: After 30s have elapsed, the connection recovery detection timer expires at this time, and the connection recovery detection beam is sent again, because at this time 4*BDCT is 40s, which is greater than MT (35s), so the timer is set to 35s; when 35s After that, the timer expires again, a probe beam is sent, and the timer is set to MT, and the process is repeated until the connection is restored.

步骤14:当600s之后节点2和3之间的连接已经恢复,此时探测束将会发送成功。此时连接恢复判断机制检测到传输成功的束为连接恢复探测束,判断本地节点2到探测束目的节点3的连接已经恢复,在失效连接列表中将连接恢复标志位标记为1。Step 14: When the connection between nodes 2 and 3 has been restored after 600s, the probe beam will be sent successfully. At this time, the connection recovery judging mechanism detects that the successfully transmitted beam is the connection recovery detection beam, judges that the connection from the local node 2 to the detection beam destination node 3 has been recovered, and marks the connection recovery flag as 1 in the invalid connection list.

步骤14:当节点2遍历失效列表时发现节点2到3的连接恢复标志位1,表明连接已经恢复,此时更新本地连接计划,将相应连接标记为恢复,并计算失效状态通告域,向通告域内的节点发送连接恢复信息,随后在失效记录列表中将该恢复的连接记录删除。Step 14: When node 2 traverses the invalidation list, it finds that the connection recovery flag bit 1 of nodes 2 to 3 indicates that the connection has been restored. At this time, the local connection plan is updated, the corresponding connection is marked as restored, and the failure status notification field is calculated, and the notification is sent to Nodes in the domain send connection recovery information, and then delete the recovered connection record in the failure record list.

步骤15:由于已经向其他节点告知节点2到3的连接已回访,节点1将再次把束发往节点2,;当节点2接收到束之后发现本地连接计划中节点2到节点3的连接已经恢复,则重新使用路径2>3>5发送已经发过来的束。Step 15: Since other nodes have been notified that the connection from node 2 to node 3 has been visited, node 1 will send the bundle to node 2 again; when node 2 receives the bundle, it finds that the connection from node 2 to node 3 in the local connection plan has been completed recovery, re-use the path 2>3>5 to send the beams that have been sent.

显然,本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定,对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动,这里无法对所有的实施方式予以穷举,凡是属于本发明的技术方案所引伸出的显而易见的变化或变动仍处于本发明的保护范围之列。Apparently, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Those of ordinary skill in the art can also make It is impossible to exhaustively list all the implementation modes here, and any obvious changes or changes derived from the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims (6)

1. a kind of space delay tolerant network connects the countermeasure surprisingly to fail, which is characterized in that this method includes following step Suddenly:
S1, judge whether connection occurs unexpected failure according to the transmission situation of beam in link;
S2, when finding Joint failure, other nodes are noticed into the connection of failure, and restore detection beam detection failure using connection Connection whether restore, the connection of recovery noticed into other nodes after judging that the connection restores;
S3, when node receive Joint failure advertised information or connection restore advertised information after, update the node locality connection meter The failure state accordingly connected in drawing;
S4, routing is calculated for beam, the beam that failure connection is foreclosed, and preferentially forwards remaining life span small;
Wherein, step S1 further comprises following sub-step:
S1.1, failure state flag bit is added in original link information in the works in the connection of node, and establishes Shu Chongchuan notes Record list and failure linkage record list, Shu Chongchuan record the source node of list records beam, source service number, generated time stamp and under One hop node, failure linkage record list records failure connection start node, terminal node, terminate the time, minimum detection when Between interval, connection restores probe timer, failure notification sends flag bit and connection recovering mark position;
S1.2, according to the transmission situation of beam in link, utilize failure state flag bit, Shu Chongchuan record lists and failure connection note Record list judges whether connection occurs unexpected failure;
Step S1.2 further comprises following sub-step:
S1.2.1, when beam arrives, first determine whether the destination node of beam is local node, if it is thening follow the steps S1.2.2, it is no to then follow the steps S1.2.3;
S1.2.2, judge whether beam is Joint failure state advertisement beam according to the flag bit and purpose service number of beam, if it is In connection, the failure state connected is noticed in update in the works;
S1.2.3, judge whether beam retransmits, it is no to then follow the steps S1.2.4 if not thening follow the steps S2;
S1.2.4, it is checked whether according to the flag bit and purpose service number of beam and restores detection beam for connection, if it is connected extensive Detection beam is retransmitted again, which is abandoned, no to then follow the steps S1.2.5;
S1.2.5, the record for whether having the beam in Shu Chongchuan record lists checked, if the retransmission information for recording beam without if, institute It includes the source node of beam, source service number, generated time stamp and next-hop node to state retransmission information, then executes step S2;If Then follow the steps S1.2.6;
Whether S1.2.6, the next-hop node for judging beam and the next-hop node retransmitted in recording are consistent, if inconsistent more Next-hop node in record, is changed to the next-hop node of Shu Dangqian, and execute step S2 by the re-transmission record of new beam;Otherwise it holds Row step S1.2.7;
S1.2.7, judge that the connection of the next-hop node of beam disabled status occurs for local node, in the works will in locality connection The linkage flag of local node to beam next-hop node is failure;Check failure linkage record list in whether the existing connection Record, if it does not exist, then recorded in linkage record list of failing the failure connection information, it is described failure connection letter Breath includes that start node, terminal node, termination time, minimum detection time interval and connection restore probe timer, and execute Step S2;It is not re-recorded if the record of the existing connection, executes step S2.
2. space delay tolerant network according to claim 1 connects the countermeasure surprisingly to fail, which is characterized in that institute State Joint failure state advertisement beam loading section record connection start node, terminal node, initial time, terminate the time and Failure mark.
3. space delay tolerant network according to claim 1 connects the countermeasure surprisingly to fail, which is characterized in that step Rapid S2 further comprises following sub-step:
S2.1, node open failure linkage record list execute step S2.2;
S2.2, it checks with the presence or absence of failure linkage record in list, and if so, finding first failure linkage record, executes Step S2.3;It is no to then follow the steps S2.10;
S2.3, it checks whether the failure recovery flag bit of the failure linkage record is 1, has if it is illustrated the connection of failure Restore, executes step S2.4;Otherwise illustrate that the connection of failure restores not yet, execute step S2.5;
S2.4, the failure state flag bit accordingly connected is labeled as 0 in the works in locality connection, according in failure linkage record The termination time calculate failure notification domain, it is 0 that will notice the failure flag tag in beam format, generates Joint failure state advertisement Beam is sent to the node in failure notification domain, informs that the connection of other nodes is recovered, deletes and closed in failure linkage record list In the record of the connection, step S2.9 is executed, checks the next failure connection recorded in list;
S2.5, check that failure notification sends whether flag bit is 1, if it is illustrates to be transmitted across the failure about the connection Notice executes step S2.7;Otherwise explanation sends failure notification not yet, executes step S2.6;
S2.6, the failure notification domain that the connection is calculated according to the termination time in failure linkage record, will be in notice beam format The flag tag that fails is 1, generates Joint failure state advertisement beam and is sent to the node in failure notification domain, informs that other nodes connect Connect no longer valid, and it is 1 that the failure notification in failure logging (record), which is sent flag tag, executes step S2.7;
S2.7, check that Joint failure restores whether probe timer expires, and thens follow the steps S2.8 if expired, otherwise executes step Rapid S2.9;
S2.8, connection recovery detection beam is sent, the destination node of beam is set as the terminal node of the connection, and service number is set as 16, and reset connection and restore probe timer, execute step S2.9;
S2.9, check that next failure linkage record whether there is, and if so, executing step S2.3 to it;If do not deposited Then illustrating to have had stepped through failure linkage record, is executing step S2.10;
S2.10, suspend mode one second, return to step S2.2 executes new round detection.
4. wanting the space delay tolerant network described in 3 to connect the countermeasure surprisingly to fail according to right, which is characterized in that step S2 further includes following sub-step:
S2.11, it checks whether beam is that connection restores detection beam after beam is sent successfully, if it is illustrates that connection is recovered, Execute step S2.12;It is no to then follow the steps S2.13;
S2.12, start node is found from failure linkage record list is the next-hop nodes that local node, terminal node are beam Connection, by the failure recovery flag bit of the connection be labeled as 1, in step S2.3 as connection recovery mark;
S2.13, the information that the beam whether is recorded in Shu Chongchuan record lists checked, if there is then deleting the record.
5. wanting the space delay tolerant network described in 3 to connect the countermeasure surprisingly to fail according to right, which is characterized in that described Failure notification domain be connection meet in the works the time started be less than failure connection terminate the time all connections start node and Terminal node.
6. space delay tolerant network according to claim 1 connects the countermeasure surprisingly to fail, which is characterized in that step Suddenly the detailed process of S4 is:
It calculates and route for beam, if beam, which is connection, restores detection beam, be sent to detected neighbor node;If it is not, then The connection of failure is excluded except path when calculating routing, and compares the remaining life span of the beam and the beam in queue, is pressed The remaining ascending sequence of life span is sent.
CN201610021507.4A 2016-01-14 2016-01-14 A kind of countermeasure that the connection of space delay tolerant network is surprisingly failed Expired - Fee Related CN105681203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610021507.4A CN105681203B (en) 2016-01-14 2016-01-14 A kind of countermeasure that the connection of space delay tolerant network is surprisingly failed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610021507.4A CN105681203B (en) 2016-01-14 2016-01-14 A kind of countermeasure that the connection of space delay tolerant network is surprisingly failed

Publications (2)

Publication Number Publication Date
CN105681203A CN105681203A (en) 2016-06-15
CN105681203B true CN105681203B (en) 2018-07-20

Family

ID=56300377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610021507.4A Expired - Fee Related CN105681203B (en) 2016-01-14 2016-01-14 A kind of countermeasure that the connection of space delay tolerant network is surprisingly failed

Country Status (1)

Country Link
CN (1) CN105681203B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833063B (en) * 2018-08-29 2021-04-27 新华三技术有限公司 Message retransmission method and device
CN111147198B (en) * 2020-01-02 2021-05-25 中科驭数(北京)科技有限公司 Data retransmission method and device
CN111262941B (en) * 2020-01-17 2021-08-20 杭州涂鸦信息技术有限公司 Method for reconnecting cloud server and electronic equipment
CN111510380B (en) * 2020-04-13 2022-08-09 中国人民解放军国防科技大学 Fault-tolerant routing method, device and system for delay tolerant network
CN112803988B (en) * 2021-01-25 2022-08-02 哈尔滨工程大学 Hybrid contact graph routing method based on link error rate prediction

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571571A (en) * 2011-12-28 2012-07-11 南京邮电大学 Multilayer effective routing method applied to delay tolerant network (DTN)
CN102780637A (en) * 2012-08-14 2012-11-14 虞万荣 Routing method for data transmission in space delay/disruption tolerant network
CN102883397A (en) * 2012-09-07 2013-01-16 航天恒星科技有限公司 Data forwarding method of delay/disruption tolerant network (DTN) facing space environment
CN105072031A (en) * 2015-08-04 2015-11-18 北京航空航天大学 Delay-tolerant disruption-tolerant network routing method based on link transmission capacity

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8149716B2 (en) * 2007-08-20 2012-04-03 Raytheon Bbn Technologies Corp. Systems and methods for adaptive routing in mobile ad-hoc networks and disruption tolerant networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571571A (en) * 2011-12-28 2012-07-11 南京邮电大学 Multilayer effective routing method applied to delay tolerant network (DTN)
CN102780637A (en) * 2012-08-14 2012-11-14 虞万荣 Routing method for data transmission in space delay/disruption tolerant network
CN102883397A (en) * 2012-09-07 2013-01-16 航天恒星科技有限公司 Data forwarding method of delay/disruption tolerant network (DTN) facing space environment
CN105072031A (en) * 2015-08-04 2015-11-18 北京航空航天大学 Delay-tolerant disruption-tolerant network routing method based on link transmission capacity

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Towards flexibility and accuracy in space DTN communications;Nikolaos Bezirgiannidis等;《CHANTS "13 Proceedings of the 8th ACM MobiCom workshop on Challenged networks》;20130930;第43-48页 *
一种针对DTN通道失效的可靠性方法研究;邵清等;《计算机仿真》;20130515;第187-190页 *

Also Published As

Publication number Publication date
CN105681203A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN105681203B (en) A kind of countermeasure that the connection of space delay tolerant network is surprisingly failed
US6961327B2 (en) TCP aware local retransmissioner scheme for unreliable transmission network
US7903546B2 (en) Detecting unavailable network connections
US8085656B2 (en) Apparatus and method for improving transport control protocol performance using path recovery notification over wireless network
US9292370B2 (en) Relay node, control method of relay node and network system
CN101572584B (en) Error detection method, equipment and system for message
JP6623137B2 (en) COMMUNICATION DEVICE, COMPUTER PROGRAM, AND RADIO COMMUNICATION SYSTEM
CN105636011A (en) Communications methods, system and apparatus
CN110808816A (en) Railway train-ground redundant wireless data communication method
CN101815028B (en) Method and system for tracing multicast routing and routing equipment
CN102143018B (en) Message loop detection method, routing agent equipment and networking system
CN104717144B (en) A kind of reliable multicast method confirmed based on caching in net and hop-by-hop
CN102143077B (en) Method and system for realizing multi-service link of route equipment and route equipment thereof
CN108632940A (en) Reliable multi-path routing algorithm suitable for photoelectric sensor Wireless MESH network
CN110266587B (en) Method and device for processing link state information
US7496038B2 (en) Method for faster detection and retransmission of lost TCP segments
CN103188716A (en) Location method and device for failures of reliable user datagram protocol (RUDP) link
US7869350B1 (en) Method and apparatus for determining a data communication network repair strategy
CN103024813B (en) Based on holding the binding layer improvement algorithm that holds late link sensor network
CN108199903B (en) Distributed aggregation system configuration method and device
CN102292936A (en) Link state database synchronization detection method and routing equipment
CN102983941B (en) Data transmission method and device
CN102055635B (en) TM method for Ethernet ring network and ring network node
CN102318272A (en) A kind of process group and method for eliminating abnormal group member in the process group
WO2016177078A1 (en) Method and system for processing announcement messages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180720

Termination date: 20220114

CF01 Termination of patent right due to non-payment of annual fee