Project

General

Profile

Actions

Bug #5009

closed

Sync interest should be sent only after NLSR has registered routes

Added by Ashlesh Gawande about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

NLSR was changed in the past to initialize everything in the constructor such that Sync is also initialized there.
In Sync constructor, the initial sync interest is sent and NACK'd immidiately. This is because NLSR has not yet registered the routes for sync prefix to its neighbors. The registration only happens after NLSR has received face dataset from NFD. Neither ChronoSync nor PSync reacts to NACKs so sync is delayed by syncInterestLifetime / 2 and treat them as a timeout delaying the sync process to the next sync interest (which is after 60 seconds by default in NLSR). ChronoSync and PSync should expose their sendSyncInterest function which can then be used by NLSR to start sync after it has registered the sync prefix to the neighbors. ChronoSync and PSync should also react to the NACK by sending a sync interest after some jitter instead of waiting for scheduled sync interest to take place.


Related issues 1 (0 open1 closed)

Related to NLSR - Bug #2649: SyncLogicHandler does not check validity of SyncSocket before useClosedVince Lehman03/16/2015

Actions
Actions

Also available in: Atom PDF