Use SegmentPublisher utility from PSync to publish LSA data
Currently when NLSR receives an interest for an LSA it segments LSA data into n segments and puts all of them onto face using face.put. Of these segments, only the 1st segment makes it back, since others are unsolicited data they are discarded by NFD. When the interest for the 2nd segment comes, NLSR again segments and puts on face and now the second segment makes it back. And so on. Need to use segment publisher utility from PSync which segments once and stores the segment to serve future interests.
Updated by Ashlesh Gawande over 2 years ago
Segmented LSA data is not being fetched by the mechanism described above. In fact, Lsdb::processInterest discards interests with a segment number. Current unit test does not catch this behaviour because fetching is not done by calling expressInterest. Instead SegmentFetcher callback afterFetchLsa is directly called.