Commit Graph
424 Commits
Author SHA1 Message Date
Davide Pesavento 762912d711 face: use the correct macro to declare classes final
Change-Id: I7f07d49a4b622ea1207b34d0c4a0f830a0141783
2015-11-26 02:40:51 +01:00
Eric Newberry 4c3e6b89a1 face: NDNLPv2 fragmentation and reassembly
refs #3171

Change-Id: If29035b697b904ee49cb86d9248be488657c6f9e
2015-11-13 15:47:59 -07:00
Junxiao Shi 8c0500fd97 table: fix Measurements::get(Fib::s_emptyEntry) crash
refs #3275

Change-Id: Ie630111a3421f470756412896154f8a51f60d23d
2015-11-11 08:30:16 -07:00
Junxiao Shi da93f1fd0c face: LpFace counters
FaceCounters for LpFace consist of LinkService::Counters and
Transport::Counters. Old FaceCounters class from 2014 face architecture is
renamed as OldFaceCounters, and can be wrapped with new FaceCounters class.
OldFaceCounters is only used in old Face subclasses.

This commit also updates existing face test suites to use new FaceCounters,
updates ForwarderStatus so that it does not rely on FaceCounters,
and moves the logic of copying face properties and counters into management
structs from face system into FaceManager.

refs #3177

Change-Id: I587e8a32fa72bac3af9d750b2c88342740aa08d6
2015-11-11 06:13:16 -07:00
Junxiao Shi 57df288f5b face: LinkService and Transport counters
refs #3177

Change-Id: Idc495c58c3103dae5f01a2b6ebbff47a2c4a5d2b
2015-11-11 06:12:35 -07:00
Junxiao Shi 52e8540a86 fw: increase initial suppression interval in BestRouteStrategy2
refs #3230

Change-Id: I27217a01c066e90f65b5000a29991c938042a810
2015-11-11 06:06:58 -07:00
Davide Pesavento 8728a25f1d face: override Transport::beforeChangePersistency in all subclasses
This commit also adds the final specifier to some Transport
subclasses in order to improve code generation.

Change-Id: If2979fa1614476a98019ba79cee3961663fc447b
Refs: #3318
2015-11-10 13:07:10 +01:00
Davide Pesavento 47ab029798 face: deduplicate callback typedefs between Channel and ProtocolFactory
This should have been part of commit 1d7e7afd38

Change-Id: I61623152180d4df288fc7dd3c225518e438d2bda
Refs: #3258
2015-11-04 19:49:58 +01:00
Yukai Tu 16aabbcc3b face: TcpTransport
Change-Id: I3ff898225ad1b0c1178490f389048944e24a9f1b
Refs: #3166
2015-10-27 17:16:07 +01:00
Junxiao Shi a044be7ed9 face: refactor NullFace as LinkService+Transport
refs #3278

Change-Id: I424f70f9402823d58d097671bab8c0c2dc4f2d3b
2015-10-27 07:48:11 -07:00
Yukai Tu 2d6d5637c0 face: WebSocketTransport
Change-Id: I28db9cd6f828e4a9fe5895bb7a6152cca5baa9fc
Refs: #3169, #3160
2015-10-26 11:06:08 -07:00
Junxiao Shi 5b8a2b2128 face: change Transport static properties initialization
Transport constructor now initializes static properties to invalid values.
Subclass constructor must explicitly set every static property.

refs #3259

Change-Id: I7ac3819694e0772c33a8a5d573e260f0eb944bff
2015-10-26 10:56:42 -07:00
Alexander Afanasyev b755e9d5a7 docs: Fixing doxygen warnings
Change-Id: Ic85f86f4de8224e2fa5d1c41f6afb0f367af5b37
Refs: #3210
2015-10-22 11:34:56 -07:00
Junxiao Shi 1354611277 face: Transport::getMtu
refs #3253

Change-Id: Ia4c5cfe210a99b798ce7d05f74ebdd7cfab214f4
2015-10-14 19:33:07 -07:00
Davide Pesavento 1d7e7afd38 face+mgmt: simplify factories and FaceManager using C++11 features
Change-Id: I113a4c15ef82bff705f61f31b170f49727bc3794
Refs: #3258
2015-10-13 16:28:52 +02:00
Junxiao Shi 6535f1ed28 face: InternalForwarderTransport & InternalClientTransport
InternalForwarderTransport and InternalClientTransport are a pair of forwarder-side
and client-side transports that can be connected with each other, so that link-layer
packets sent by one transport can be received by the other.

They are used together with LpFace, GenericLinkService, and ndn::Face to replace
InternalFace and InternalClientFace used by NFD management.

They also replace TopologyForwarderTransport and TopologyClientTransport used by
TopologyTester of forwarding unit tests.

refs #3225

Change-Id: I5b6b579c43dfd0b1b9def5100be2ce516219cb74
2015-10-10 05:36:34 -07:00
Eric Newberry a1939ba993 face: GenericLinkService drops IDLE packets
refs #3249

Change-Id: I3d16bcf29f4858049d1040a3e421e1c7151b3fed
2015-10-09 21:28:19 -07:00
Minsheng Zhang 9c903e063e table: fix PriorityFifoPolicy memory leak
Change-Id: I1bd7d75b3a24b854a0a07e1fa197ef793f66192f
Refs: #3236
2015-10-04 12:17:43 -05:00
Spyridon Mastorakis d374c406b2 daemon: display extended exception information in top-level catch
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4912cb
Refs: #2541
2015-09-27 11:36:42 -07:00
Junxiao Shi 40cb61c6bd mgmt: LpFace faces/enable-local-control workaround
In this temporary workaround,
faces/enable-local-control enables all local fields in GenericLinkService,
and faces/disable-local-control disables all local fields in GenericLinkService.

This commit also modifies FaceTable::remove to retain shared_ptr<Face>
until signal execution is complete.

refs #3226

Change-Id: I3513e97ec2af87df94dbf57a7256b895ed9d2103
2015-09-26 14:38:38 -07:00
Junxiao Shi 643b36b814 face: receive LpPacket in InternalClientFace
refs #3225

Change-Id: Ia37cfb941f00c612fc265594dac33cf13c6ad32c
2015-09-26 14:38:31 -07:00
Yukai Tu 0a49d34342 face: UdpTransport
Change-Id: I54f43248785437cdf951d50099e46e9689962a75
Refs: #3168
2015-09-26 14:38:22 -07:00
Yukai Tu 74c895d316 face: UnixStreamTransport
Change-Id: Iaab3c09887d7167ab9024ba871162367bf835197
Refs: #3165
2015-09-26 14:38:13 -07:00
Junxiao Shi 5e5e445182 fw: Nack in pipelines and best-route strategy
* in PIT out-record, add last incoming Nack field
* create incoming Nack pipeline
* create outgoing Nack pipeline
* modify Interest loop pipeline to send Nack upon duplicate Nonce
* in strategy API, add after receive Nack trigger and send Nack action
* in best-route strategy, send Nack-NoRoute before rejecting pending Interest
* in best-route strategy, process incoming Nack

Other changes include:

* Pit::find
* StrategyTester saved arguments structs
* TopologyTester transmit at Transport level

refs #3156

Change-Id: I7868561c0838231083d471261200aeb280cc6e9d
2015-09-26 14:38:03 -07:00
Eric Newberry 86d3187d9b face: GenericLinkService encoding/decoding
refs #3104

Change-Id: I26e83cd1dd5dc87ebdc040105ab1bad4afdba5f7
2015-09-26 14:37:51 -07:00
Eric Newberry a98bf93a25 face: Refactor Face as LinkService+Transport
LpFace: new Face implementation
LpFaceWrapper: allows new Face system to work with old Face system

Eventually, LpFace will be renamed to Face and LpFaceWrapper will be removed.

refs #3088 #3179

Change-Id: Ia4ad7c84631e65b444d4f24e1d7593392927c8db
2015-09-26 13:40:17 -07:00
Davide Pesavento 01f8dba914 Use make_unique where appropriate
Change-Id: I30c9f0fb2033a810df73a1c9147fcf09d610f763
Refs: #3093
2015-09-19 21:56:34 +02:00
Davide Pesavento d2856a41ef Stop including <ndn-cxx/common.hpp>
It is considered an implementation detail, therefore its presence
and content should not be relied upon by other projects.

Change-Id: I7e53ecadf65336c8e9500481ff3a532761bac1f1
Refs: #2098
2015-09-19 21:30:47 +02:00
Alexander Afanasyev 441ba2175e daemon: Properly handle exception from NetworkMonitor when the platform doesn't support it
Change-Id: I713a6b6ebe4ac1e49f939325c7372954cb28e159
Refs: #3195
2015-09-17 16:50:56 -07:00
Alexander Afanasyev 435d705138 build: Fix compilation warnings/errors with clang-700.0.72 (apple LLVM 7.0.0)
Change-Id: Iedbebae03740a5d779c84e78d22b74dd9b9009f7
Refs: #3209
2015-09-17 15:10:25 -07:00
Alexander Afanasyev 483c43396c Merge feature branch 'mgmt-refactoring'
Change-Id: I3f122ede5bcfbad40800d8dae440dfea887bb10e
Refs: #2107
2015-09-08 18:41:01 -07:00
Alexander Afanasyev ecbf584299 mgmt refactoring: Correct ForwarderStatus publishing
Change-Id: I8207af814757b5f4ce3ea9b8bb66d7f5a369af2f
Refs: #2107
2015-09-08 17:25:23 -07:00
Vince Lehman 63ab1bb27a mgmt: Add tables.network_region section in config file to populate NetworkRegionTable
refs: #3159

Change-Id: If049eea2baf64a22abc9437d3ec117dd0d27bbab
2015-09-07 21:50:11 -07:00
Yanbiao Li 6704a4a6e4 mgmt refactoring: StrategyChoiceManager
Change-Id: Ib6df3f627070a3b6d4777f8efbe30e601e4c1512
Refs: #2107
2015-09-07 19:00:41 -07:00
Yanbiao Li 7cec7eafce mgmt refactoring: ForwarderStatusServer (renamed StatusServer)
Change-Id: I83aceca49e02f49553c9b17e16d6b50fb93e32de
Refs: #2107
2015-09-07 19:00:30 -07:00
Yanbiao Li 711c793171 mgmt refactoring: FibManager
Change-Id: Ied235d025cbe5059545c6482bfed0f38f987fdeb
Refs: #2107
2015-09-07 19:00:20 -07:00
Yanbiao Li 73860e3397 mgmt refactoring: FaceManager
Change-Id: I292a3e3d702746d6e946a2844e6f88f64cd711a4
Refs: #2107
2015-09-07 19:00:07 -07:00
Yanbiao Li 698f4fea3a mgmt refactoring: ManagerBase
Change-Id: I0710297f352723874d05092d091128b02b3747a2
Refs: #2107
2015-09-07 18:59:01 -07:00
Yanbiao Li 4ee73d42a4 mgmt refactoring: Refactor InternalFace
InternalFace is now exclusively for internal use by NFD's forwarding
pipelines.  A separate InternalClientFace has been introduced, intended
to be used by the NFD internal applications, including FIB, Face, RIB
manager, and others.

Change-Id: I4a06b9d05b1613a456c6267582091924557d73be
Refs: #2107
2015-09-07 18:58:48 -07:00
Yanbiao Li 36f3500d21 mgmt refactoring: Remove legacy code
Change-Id: Ib443ff3d45f9c49edee59d79c42a932017fc66ec
Refs: #2107
2015-09-07 18:58:34 -07:00
Yukai Tu 8149d1077b mgmt: Process FacePersistency in FaceManager
Change-Id:I3a93bd658d40f3d77f7790b72e8873646ecc7990
Refs: #2991
2015-09-04 10:44:24 -07:00
Junxiao Shi 0355e9fd06 fw: Forwarder processes Link for mobility
This commit also adds NetworkRegionTable to store producer region names,
and checks packets are well-formed before entering forwarding pipelines.

refs #3034, #3155

Change-Id: I8de4c482e8a289b922be70139675bc4661f9a301
2015-09-02 07:24:53 -07:00
Junxiao Shi 67ba8d28df fw: rename BroadcastStrategy to MulticastStrategy
BroadcastStrategy is temporarily retained for backwards compatibility.

This commit also updates nfd.conf and ndn-autoconfig to use MulticastStrategy
in place of BroadcastStrategy.

refs #3011

Change-Id: I011f1cf75db26b3c93552f8322a0bba4ce8dd033
2015-08-21 21:21:28 -07:00
Yukai Tu 375dcb0bd6 face: minimal UDP permanent face
Change-Id: I44f652b95c911667107fd30829c7ce6e5acab706
Refs: #2989
2015-08-18 15:04:21 -07:00
Junxiao Shi 0e092aee5c mgmt: revert router name configuration options
This reverts commit ee7c8441c8.
That implementation introduces a global static variable which conflicts with ndnSIM.

refs #3026

Change-Id: I803e2ab497f71ec259d96d7b094ba0d04718c344
2015-08-18 15:03:15 -07:00
Vince Lehman faa5c0cd3c fw: Correct log message in onContentStoreHit
refs: #3114

Change-Id: I918cffc5d0551484b4cc31a4b7d6aeb73b8969ae
2015-08-18 15:02:25 -07:00
Spyridon Mastorakis 149e02cf7d Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4919aa
Refs: #2541
2015-08-17 16:17:33 -07:00
Alexander Afanasyev 3f41ade02d daemon: Reload face_system section of the config file when NIC configuration changes
The main desired effect of the reloading is re-creation of multicast
faces, e.g., when a new interface appears in the system.

Change-Id: I8384e5f96285ddca363981c92e1b6de39e0072ef
Refs: #2460
2015-08-07 12:17:14 -07:00
Minsheng Zhang 0315269228 table: add CS policy LRU
Change-Id: Ief9e3d993782730069cedc8a99b8011d5d18ce7c
refs: #2219
2015-08-04 12:32:08 -07:00
Yukai Tu 7c90e6dfea face: ProtocolFactory::createFace with FacePersistency
Change-Id: If02510bd631e9aaa63b3cca89ced31a42e192ded
Refs: #2989
2015-07-29 23:50:25 +08:00