Commit Graph
57 Commits
Author SHA1 Message Date
Steve DiBenedetto 3a4f83dc7e mgmt, main: add "tables" configuration file section and processor
refs: #1623

Change-Id: If54097ba738381f7a75d755933e20b35387ff1d4
2014-06-13 17:10:41 -07:00
Alexander Afanasyev 281b916a35 tables: Adjust pre-allocated CS entry queue on Cs::setLimit call
Change-Id: I7611dfb671060864e40cadb707ad0a89f0359c07
Fixes: #1646
2014-06-09 08:44:03 +03:00
Junxiao Shi b5888d2ed9 table: make StrategyChoice enumerable
refs #1633

Change-Id: I203d76645649cc8ef2e3dcfbd254fa4ebab6e9dc
2014-05-26 13:53:15 -07:00
Junxiao Shi d938a6bb89 fw: Strategy::sendInterest allows changing Nonce
This commit also includes some tweaks in forwarding pipelines.

refs #1596

Change-Id: I65a4129be24089357b28fa9d35a3451e0d9ae258
2014-05-15 11:37:53 -07:00
Alexander Afanasyev f6980284e6 src: Remove unnecessary uses of boost::cref in make_shared and replace boost::cref/boost::ref with just cref/ref
In some cases, due to argument-dependent lookup, it is necessary to use
ndn::ref, instead of just ref.

Change-Id: I682180a007609535855f77511b49622154ad4f11
Refs: #1591
2014-05-15 09:52:28 -07:00
Junxiao Shi 66f91f87a3 table: PIT entry InRecord/OutRecord getters
refs #1569

Change-Id: I52d9516fa6154036904e163f918890579a745e4f
2014-05-10 23:58:08 -07:00
Alexander Afanasyev 4a77136894 build: == Dependency change == NFD now depends on ndn-cxx library
Change-Id: Ia9dd324a536573b5ac4fe1b73d82af772dc84923
Refs: #1536
2014-04-25 10:09:23 -07:00
Alexander Afanasyev 613e2a9ba3 src: Reorganizing source code in preparation to merge NRD code
Note that as of this commit, there are several changes in location of
compiled binaries in `build/` folder:

* `nfd` has been moved to `build/bin/nfd`
* `unit-tests` has been split into `unit-tests-core` and `unit-tests-daemon`

Change-Id: I2c830c117879edbaa5457d6423c13f0273285919
Refs: #1486
2014-04-16 11:54:35 -07:00
Ilya Moiseenko 9c9231b0e3 table: Processing of PublisherPublicKeyLocator in CS
refs: #1424

Change-Id: Ia4ad2c92a7a6860b73674444ba4a0120a90e5342
2014-04-11 10:42:19 -07:00
Haowei Yuan f52dac7f03 table: NameTree optimization
This commit adds platform-specific hash function selection and hash
table shrink function.

Change-Id: Iaaa0e5b86842d4e0582d3523f0a6b6836e152239
Refs: #1305
2014-04-10 16:46:49 -07:00
Alexander Afanasyev 11b9f3fccd table: Correcting type of Cost parameter in fib::Entry::addNextHop
Change-Id: I594dfb921367cff163ca07d987cbf61df8c10d0b
Refs: #1457
2014-04-10 15:14:19 -07:00
Alexander Afanasyev 8881162509 table: Calling the correct version of Cs::setData when refreshing CS entry
Change-Id: I9d33716a56c6aafb061716eed44d8e3f54363129
Refs: #1458
2014-04-10 15:14:19 -07:00
Davide Pesavento 52a18f9428 all: cleanup common.hpp and import typenames from ndn namespace.
This allows us to compile NFD in C++11 mode, making use of std::shared_ptr,
std::function, std::bind, etc. rather than their boost equivalents
(provided that ndn-cpp-dev is also compiled in C++11 mode). This is an
experimental feature and may not work properly.

Change-Id: I310529f78e1e428a8530b087983130d1ef3a9d88
2014-04-10 15:14:15 -07:00
Ilya Moiseenko 96b80bb645 table: Content Store performance fix
Change-Id: I7f6752ec279e64e81c90c0b3e8d756da34194965
Refs: #1432
2014-04-09 00:26:22 -07:00
Junxiao Shi 9f7455b6dd fw: avoid setting PIT unsatisfy timer twice
refs #1448

Change-Id: If48a90be2b554bc7c1ea4b869e1a927bad578e0a
2014-04-07 21:02:16 -07:00
Junxiao Shi 30d3599ff6 table: PIT PublisherPublicKeyLocator processing
refs #1425

Change-Id: I031d9699e10bf2cb90eb0811c7fa8afe493f26f0
2014-04-07 12:01:04 -07:00
Alexander Afanasyev 9bcbc7c130 docs: Update of copyright and license statement in all .hpp and .cpp files
Change-Id: I4082db67f2390482615a780d91a513f09d57a9a4
Refs: #1266
2014-04-07 09:18:25 -07:00
Alexander Afanasyev bf9edeeaee logging: Reducing log level in several places
INFO level is suppose to be used for informational messages that are
useful for ordinary user, but in several places we used it as a DEBUG
output.

In CS the level is reduced even more, to TRACE.

Change-Id: I9058e25d95de79661099dd4624d802cc33420983
2014-04-01 22:24:50 -07:00
Haowei Yuan 694bfb6d72 table: Fixing a bug in Name Tree resize function
In the Name Tree resize() function, the pre pointer needs to be reset for each bucket.

Change-Id: I58526c5aaedc63f47aa64dbe285657b98b2a227c
2014-04-01 14:47:17 -05:00
Steve DiBenedetto bf6a93da4e core: change logging from environment variable to configuration file-based
GlobalConfigurationFixture uses unit-tests.conf to determine default
and module specific logging levels. Logging will gracefully default to
INFO if unit-tests.conf is not found. See unit-tests.conf.sample for a
sample configuration file.

refs: #1375, #1267

Change-Id: Ib0c4eb4149748e6658f94ef1afa23ddd3072c0fa
2014-03-31 20:46:51 -06:00
Steve DiBenedetto 7564d97d13 mgmt: refactor management modules to conform to NFD Management Protocol
Refactor management protocol specific option types to ControlParameters
Add control parameter field enforcement
Add missing control response "success" message bodies
Update fib management protocol response codes and behavior
Merge local control header manager into face manager
Refactor references of nfd::LocalControlHeaderFeature enum to ndn::nfd::LocalControlFeature
Remove "control-header" privilege from default configuration

refs: #1397, #1399, #1400

Change-Id: Id042daf00b3cee1f1c7fa38d2e4a4ff6d95c15c6
2014-03-25 17:46:31 -06:00
Alexander Afanasyev efea8fe804 build: Enabling -Werror in debug mode and fixing discovered issues
Change-Id: I29685dcb9240a3e0c8d7eaf28c8bc2ae720e55a1
2014-03-25 11:01:53 -07:00
Alexander Afanasyev eb3197fa35 all: Update code to compile with latest time-related changes in ndn-cpp-dev library
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
2014-03-18 17:34:12 -07:00
Junxiao Shi 57f0f311f2 fw: make strategies understand scope
refs #1253

Change-Id: I57f7a6008e6f08c9817e58f480020eb9219a4aec
2014-03-16 17:19:28 -07:00
Junxiao Shi 11bd9c28e8 fw: /localhop scope control on outgoing Interests
refs #1253

Change-Id: I359747688568934070d1583995957835ac690f28
2014-03-15 22:27:19 -07:00
Junxiao Shi e349ea10e0 table: clear StrategyInfo during strategy change
refs #1234

Change-Id: Idd5383a5f8bc706aceea5a630b93cd4ab9bd2c3a
2014-03-13 15:36:41 -07:00
HangZhang 5d46942329 table: FIB enumeration
refs #1315

Change-Id: I535d519836720c40f72904e5520d11026ea30a33
2014-03-12 10:12:00 -07:00
Junxiao Shi f3c0781d22 fw: refine pipelines, dispatch to strategy
refs #1345 #1255

Change-Id: If1cfc26049f87318103fc09c3b211ebf1eb3ebaa
2014-03-11 22:33:15 -07:00
Steve DiBenedetto d030cfca45 mgmt: fib manager implicit fib entry insertion and deletion
refs: #1340

Change-Id: If552bbff71b54c4616ff4478a470c9cdc2a5c4e4
2014-03-11 17:13:28 -07:00
HangZhang cb4fc83bff table: shortcuts between FIB, PIT, Measurements, StrategyChoice
refs #1202

Change-Id: Ie63ab792e840de7e0889d385d3e8ea8a112cb7e5
2014-03-11 16:31:09 -07:00
Junxiao Shi efceadc378 fib: implicitly delete empty Entry
Fib::removeNextHopFromAllEntries automatically deletes fib::Entry
if the last nexthop record is being removed.

refs #1341

Change-Id: I36d42fe8f9fc8f03d194f845020aff408cd70488
2014-03-09 19:39:26 -07:00
Haowei Yuan e1079fc4e4 table: NameTree enumeration
refs #1318

Change-Id: I26f25cefe8f2939ca884103f1b081c0c02325207
2014-03-09 19:37:04 -05:00
Ilya Moiseenko 76cf77a5cb table: ContentStore based on skip list
ref: #1212

Change-Id: Iaa13aa7c110c3cd059438bf553a19b4fcd07e137
2014-03-06 15:29:38 +00:00
Junxiao Shi 7bb01512b0 table: MeasurementsAccessor uses StrategyChoice
This commit also deletes fib::Entry::set/getStrategy attribute.

refs #1276

Change-Id: I57dfe842a8024e0ad9908ba8a9c415d5f4ac1bbe
2014-03-06 07:06:29 -07:00
Junxiao Shi 2d9bdc8a5f fw: ClientControlStrategy
refs #1214

Change-Id: Ia382acad6c8eeac85663fd664d1d34ba6f2ad478
2014-03-05 01:46:12 -08:00
Junxiao Shi bb5105f218 table: Strategy Choice table
refs #1309

Change-Id: I6fd8efdfc98175a1cc39fdc3aa7175671596f470
2014-03-05 09:27:51 +00:00
Junxiao Shi 4063184af0 table: NameTree::findLongestPrefixMatch predicate
refs #1313

Change-Id: I759c8ddf9bc0fe5b970c979f69131a98b1ef32e4
2014-03-03 09:27:13 -07:00
HangZhang c85a23c457 table: Measurements on NameTree
Change-Id: I17bab4a7a085c529b04b35b7fe47e02dd9d6ff00
refs #1200
refs #1201
2014-03-01 16:08:56 +08:00
HangZhang ad4afd1492 table: FIB on NameTree
Change-Id:Ie949ad2209ed841af498f45e2d0f365ac905c45d
Refs: #1190
2014-02-28 23:31:29 -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
Junxiao Shi 0b5fbbb4ff fw: NccStrategy
refs #1242

Change-Id: I21f870728b7b361547adbde9d64357c93aeb1ed9
2014-02-26 23:53:53 -08: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 dbe7173db1 table: MeasurementsAccessor for strategy
refs #1276

Change-Id: Idec8f615c726f51612236a55a7532fabeb81a32d
2014-02-24 23:32:48 -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 408a7000a8 table: set/getStrategyInfo on FIB/PIT entities
refs #1241

Change-Id: I20f509384a0a046962c3debf3a53a1fc2a01b3bc
2014-02-12 17:53:47 -07:00
Junxiao Shi e5e2fceff5 table: StrategyInfo getter/setter
refs #1180

Change-Id: I8ac487b2b372ceb33d71ebeb14d4fbdeefca9e8e
2014-02-10 23:31:02 -07: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
Junxiao Shi d3c792f95c fw: basic forwarding procedure & strategy skeleton
refs #1131 #1136

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