Commit Graph
65 Commits
Author SHA1 Message Date
Alexander Afanasyev 7b9347b09f core: Implementing FaceUri abstraction
Change-Id: Ia4e0e9bb1a8b8c440ae97d45f77f792a50f87e85
Refs: #1195
2014-02-28 14:21:16 -08:00
Alexander Afanasyev 0eb70659f7 face: Rename all ChannelFactories to protocol Factories
Base class is ProtocolFactory and implementations are TcpFactory,
UnixStreamFactory, EthernetFactory.

Since Factories are doing more than just creating channels (some can
create faces directly), more general name is more appropriate.

Change-Id: I3d6c2460a1b29e244f8462453720f4e7785893ca
2014-02-28 12:54:16 -08:00
Alexander Afanasyev 7329e02f60 face: Convert to use the global IO service by all ChannelFactories
Change-Id: Ibd8d5cea142171b5700d8920eb3eedc084bbd588
2014-02-28 11:04:40 -08:00
Alexander Afanasyev 452e2822e7 core: Generic resolver implementation with option to select address filter
Change-Id: I467ed9f49a55392e89417aa9925f30b2d7cbeda9
2014-02-28 11:04:40 -08:00
Alexander Afanasyev ef968e15d5 face: Ignoring fireware interfaces (fw*) in EthernetChannelFactory
Change-Id: Ibfb512ce1229e74eee4c66efd87d6dc4a18c057e
2014-02-27 21:25:33 -08:00
Junxiao Shi d9ee45c952 tests: resetGlobalIoService for every test
All tests must use BaseFixture or a fixture derived from it to get this feature.

This commit also fixes a few warnings in tests/mgmt, and moves test cases into nfd::tests namespace.

refs #1290

Change-Id: I891441a5abce170e35648d463f7157b18429f79f
2014-02-27 19:36:19 -07:00
Haowei Yuan 78c84d1ce5 table: PIT on NameTree
ref# 1194

Change-Id: I32f103374885445725fc5deeebda60b1b1e54c2f
2014-02-27 15:35:13 -06:00
Davide Pesavento 44deacc811 face: Ethernet{Face,ChannelFactory} implementation.
refs: #1191

Change-Id: I08b7ebfdc5d70fb494b1f23bd7b1a77cf18653a1
2014-02-27 18:18:34 +01:00
Junxiao Shi 0b5fbbb4ff fw: NccStrategy
refs #1242

Change-Id: I21f870728b7b361547adbde9d64357c93aeb1ed9
2014-02-26 23:53:53 -08:00
Junxiao Shi 9b27bd2d92 fw: /localhost scope control on outgoing path
refs #1230

Change-Id: I25e38e1b2bf538a72d2185889c1be5401ed93b68
2014-02-27 00:11:36 -07:00
Junxiao Shi 09498f0646 fw: rename "Interest rebuff" to "Interest reject"
Change-Id: I8275354a3eff6f4785187a8fb00da1d421df8460
2014-02-26 19:43:22 -07:00
Junxiao Shi c041ca36ed core: global io_service and scheduler
Scheduler and time are imported from ndn-cpp-dev.
Forwarder is using the new scheduler API.
Face system is not transitioned yet.

refs #1290

Change-Id: I5679cb50bbf9890a105f663b038f13951403c2b6
2014-02-26 12:40:22 -07:00
HYuan a9b85754b2 table: Name Tree Implementation
Change-Id: I27dbe50a1f484a7722b443dea6197a0f8d74aa0a
2014-02-26 10:35:16 -08:00
Junxiao Shi df3b438c40 face: NDNLP encoding change
FragIndex and FragCount fields are encoded as nonNegativeInteger.

refs #1283

Change-Id: I4654078c3bfd73c83ce06ce6a9cd97952a4f49f8
2014-02-25 17:20:43 -08:00
Alexander Afanasyev c1e2ee07fa tests: Making Scheduler and TCP test cases more resilient to time
These two tests were frequently falsely failing on overloaded build bots

Change-Id: I4e6dc09a647317514a7318e09bb095c7d7e6045a
2014-02-25 17:05:45 -08:00
Alexander Afanasyev b84cc92a8f core: Initial implementation for run-time selection of log level
Log level can be controlled using NFD_LOG environment variable. The
following options are available

Set up log level using mnemonic

    NFD_LOG=none|error|warn|info|debug|trace

Set up log level using log-level number (0 none, >=5 all)

    NFD_LOG=0|1|2|3|4|5|6|...

Change-Id: Id38c2775f1137a4e38e4896963ab9a01fc863d2c
Refs: #1267
2014-02-25 16:51:25 -08:00
Junxiao Shi dbe7173db1 table: MeasurementsAccessor for strategy
refs #1276

Change-Id: Idec8f615c726f51612236a55a7532fabeb81a32d
2014-02-24 23:32:48 -07:00
Junxiao Shi 7860d4820a face: declare face counters
refs #1280

Change-Id: Ia1c50ab2b31d6131728489b3b038dc6f7608266f
2014-02-24 17:00:40 -07:00
Alexander Afanasyev bd220a053b face: Implementation of encode/decode of LocalControlHeader
LocalControlHeader can only be used on faces that are derived from
LocalFace.  UnixStreamFace is directly inherited from LocalFace,
TCP face has two specializations: generic TcpFace (strictly not local),
and LocalTcpFace.

refs #1213

Change-Id: I8a158c3bc4bb929eedd15757cfddecc0d1049f9f
2014-02-20 15:54:22 -08:00
Junxiao Shi 727ed29cf3 fw: broadcast strategy
refs #1243

Change-Id: I9ca2164812ea3e1815fa27b73a68166c93f97b27
2014-02-20 01:56:42 -08:00
Alexander Afanasyev 93ce75e6f7 face: Fixing bug with InternalFace considered not local and changing "isLocal" method to be pure virtual
This way the decision about the face locality has to be done explicitly
inside specific face implementation and potentially avoids problems.

Change-Id: I5219cce87385313546453d14a5a7ca4542893911
2014-02-19 14:11:07 -08:00
Steve DiBenedetto 471c060e6b mgmt: added manager to enable/disable control header features
refs: #1210

Change-Id: If4eb182c4baaba41be7c5f8e22e4f436eef1dac3
2014-02-18 13:21:37 -07:00
Junxiao Shi 16b8bc9c18 face: LocalControlHeader attributes
refs #1264

Change-Id: Iab8b875ea8102103390d2da37ca3c08ef58a3d55
2014-02-17 23:02:25 -07:00
Junxiao Shi 65d0072aa1 table: mock Measurements table
refs #1259, #1197

Change-Id: Ie7cd2ff6fbbb413a77539eb9f1c5354405252cec
2014-02-17 20:09:58 -07:00
Junxiao Shi c0d0591c69 face: fix warnings in NDNLP code
refs #1262

Change-Id: Iec17e22eefb04ee69f917c2826a1550906062013
2014-02-17 19:07:17 -07:00
Davide Pesavento bc4dd8c812 face: UnixStream{Face,Channel,ChannelFactory} implementation.
refs: #1174

Change-Id: I14d1e357c96a02995355e7970323fe40847580aa
2014-02-17 23:03:06 +01:00
Junxiao Shi d6dcd2c995 face: NDNLP partial message store
refs #1208

Change-Id: Ie10d590ebd2e3631c884a7b6b2d5ffce2758ab4d
2014-02-17 09:25:48 -07:00
Junxiao Shi 9b0d3e91b0 face: NDNLP slicer
refs #1206

Change-Id: Ifbf0aeedff8fc9300799c97772d988dce2fce306
2014-02-16 03:01:28 -07:00
Junxiao Shi 88884490ae fw: /localhost scope control for incoming Interest
refs #1230

Change-Id: I86fd071ef144caa506b26a723f14232e2af5e2de
2014-02-15 21:08:09 -07:00
Alexander Afanasyev a0a10fb081 face: Implementing close operation and many related fixes in TcpFace and TcpChannel
Change-Id: Ib6b751e80454e149bf94f3867663d5e705cbf4a0
refs: #1250, #1248
2014-02-14 10:00:50 -08:00
Junxiao Shi 06887acf80 fw: set incomingFaceId for incoming packets
refs #1237

Change-Id: I8d62aca2c5a08945fdab8511e7c3e4aaf5d02205
2014-02-13 23:27:36 -07:00
Steve DiBenedetto bb75b557fd mgmt: added subscription-based configuration file parser
Modules subscribe to configuration sections they are interested
in by name and provide a callback function. After parsing
the configuration file, ConfigFile will iterate through the
top level tree and invoke all subscribed callbacks for each
section it comes across.

ConfigFile has no concept of the specific tags or structure of the file
other than there being a single root tag (not a specific name) under which
all sections fall.

refs: #1120

Change-Id: Ic06fbdc85a9ac9740d46a6c2457ff5a9bd38e8a5
2014-02-11 13:32:04 -07:00
Junxiao Shi e5e2fceff5 table: StrategyInfo getter/setter
refs #1180

Change-Id: I8ac487b2b372ceb33d71ebeb14d4fbdeefca9e8e
2014-02-10 23:31:02 -07:00
Steve DiBenedetto 2693db9439 mgmt: echo FibManagementOptions as response body on command success
Add support for commands with FaceId == zero

refs: #1236

Change-Id: If67e955668d5a3622893582111601d358df9137e
2014-02-10 16:45:56 -07:00
Alexander Afanasyev d482fd3b6b build: Fixes for the latest reorganizations in ndn-cpp-dev library
Change-Id: I7cdb1e680342f72d90da6bc41028388dc57a22c0
2014-02-10 12:14:17 -08:00
Steve DiBenedetto 1d80cd057f test/mgmt: remove unnecessary fib and fib manager references
Clean up in preperation for FibManager construction
changes to support configuration files.

refs: #1120

Change-Id: I0864c6048a906fd2a3a539c83e62754fc8936921
2014-02-10 10:21:10 -08:00
Steve DiBenedetto 0b73f4455f mgmt: added FIB manager support for insert, delete, and remove-nexthop verbs
Refactor option decoding, verb authorization (placeholder),
and response sending into single location.
Added unit tests for ManagerBase.

refs: #1223

Change-Id: I731be586ee8f06defb00fcadc6010409560891a1
2014-02-07 12:49:22 -07:00
Alexander Afanasyev 94ceb12a4c core: Fixing scheduler, so it doesn't crash when an event is cancelled from the event invocation
Change-Id: I219df36a4ed19d75e97e676bedeba023fd53326e
2014-02-05 15:42:37 -08:00
Steve DiBenedetto d5f87930a1 table: added findExactMatch and remove methods to Fib
Added methods required to implement remaining FIB
management commands.

refs: #1223

Change-Id: Idf27a60a19286ab1d5712bbc00cca7f41092807b
2014-02-05 16:21:04 -07:00
Steve DiBenedetto bdedce9252 mgmt: moved signing into AppFace, code streamlining, and bug fixes
tests/management: improved callback validation

Fixed bad shared_ptr NULL checks
Fixed bad iterator decrement in InternalFace.sendInterest
Removed semi-useless constants in FibManager
Clarified ControlResponse text messages

Change-Id: Ic327a0b6b57827e401c7c3115d0ee92bae996a34
refs: #1138
2014-02-03 12:06:20 -07:00
Steve DiBenedetto 80ddc2195b mgmt: improved control response identification and bug fixes
tests/management: extended unit tests for new response types

Change-Id: Iebed4b3172ff6a07b71021a0ffa4870013d86f48
refs: #1138
2014-02-02 19:07:18 -07:00
Steve DiBenedetto 43cd037536 mgmt: improved interest filter matching and bug fixes
tests/mgmt: added test fixtures to simplify unit testing

Added control response Data signing
Fixed control response payload parsing
Simplified fib-manager unit test assumptions
Expanded internal-face unit tests

refs: #1138

Change-Id: Ibe5d95ab9c42f890c0691c9040e4ae792e598974
2014-02-02 19:07:18 -07:00
Steve DiBenedetto 3970c89293 mgmt: loosened coupling between FibManager and InternalFace
Implemented InternalFace.setInterestFilter to loosen
coupling

refs: #1138

Change-Id: Ie58daed35bc3613398c8d3fc1de8b796e29907b8
2014-02-02 19:07:18 -07:00
Steve DiBenedetto 042bfe935a mgmt: Initial fib manager with support for fib/add-nexthop
fw: Added FaceId to Face conversion method

Linked InternalFace's sendInterest to FibManager's
onFibRequest

refs: #1138

Change-Id: I0b18f2d41c9ba9d8749c586e3553b51a1e8b1269
2014-02-02 19:07:18 -07:00
Alexander Afanasyev a16abd2822 face/tcp: Fixing multiple accept on a channel
Also, this commit includes more thorough test for TCP channel (testing
if multiple connections can be made to the same channel).

Change-Id: I3b89a6d994b5b17286448013aa04a77c92c0267a
refs: #1134
2014-01-31 18:13:36 -08:00
Junxiao Shi 96dc0c49ac face: TCP end-to-end test case
The test case uses an additional Scheduler-based guard to protect
against potential communication failures.

Change-Id: I46b906f4882bfcc717b8d4a3bf074b494a39cf8d
refs: #1173
2014-01-31 17:24:23 -08:00
Alexander Afanasyev 6688681966 core: Logger extension to allow in-class-defined logger
Change-Id: Ifa31fb65eda772df47a81ad5db1c501eaa5f8ca1
2014-01-31 17:24:23 -08:00
Junxiao Shi 8c8d2187b3 fw: integrate forwarder, strategy, tables
refs #1131, #1136

Change-Id: Ica58341cdc1ea1dc421693a87f35fc50177a707d
2014-01-31 00:53:45 -07:00
Junxiao Shi 234a532c0a core: Scheduler::cancelEvent allows empty EventId
refs #1176

Change-Id: I80f10ed8026d64b46b4634ced9278f145f54c4a7
2014-01-30 22:40:48 -07:00
Junxiao Shi d3c792f95c fw: basic forwarding procedure & strategy skeleton
refs #1131 #1136

Change-Id: I3e97cb17bf85082b6499a310120409379f8eaa65
2014-01-30 16:39:21 -07:00