Commit Graph

680 Commits

Author SHA1 Message Date
Teng Liang fdcbb4d0ef face: support NonDiscovery and PrefixAnnouncement in GenericLinkService
Change-Id: I2b9577203274d28b374ebfd6a8154b5398b8ec57
Refs: #4280, #4355
2018-02-18 11:23:56 +00:00
Eric Newberry 17d1849dec face: enable congestion marking by default on supported faces
refs #4465

Change-Id: Id545f83763f1ba27ba0d770fd4398948d6f20acf
2018-02-11 23:23:09 -07:00
Davide Pesavento 003357899d tests: increase tolerance in several time-sensitive test cases
To avoid spurious failures when CI build bots are overloaded.

Change-Id: If6ec5579dfef1f9fdbd57723e6aeec0a46221a3f
2018-02-11 14:42:47 -05:00
Eric Newberry de33245d9f tools: add congestion marking parameters to nfdc face create
refs #4465

Change-Id: I5df5d6136f4729ad836a72f55531208d868da5f7
2018-02-10 14:04:10 -07:00
Junxiao Shi 26667e16df mgmt: include capacity and enablement flags in cs/info dataset
refs #4050

Change-Id: I3de0692ec9f26429733bade80a96e154865928fe
2018-02-08 20:01:18 +00:00
Junxiao Shi c9b5e018ed mgmt: implement cs/config command
refs #4050

Change-Id: I86b050ac062855bad66197a775a502007e687d8d
2018-02-07 15:04:18 +00:00
Junxiao Shi 02a0e0fbe3 mgmt: limit prefix length in fib/add-nexthop
This commit also makes FibManager logging more consistent.

refs #4262

Change-Id: I8e1d58eacfdf0a87d6f94182c78a157421de6f6f
2018-02-06 02:03:45 +00:00
Ashlesh Gawande 92e4ea53ba fw: Add ASF strategy parameters n-silent-timeouts & probing-interval
refs: #4193

Change-Id: I9572425a2fdcbf67b9886c2a5b6b50a10a0856e2
2018-02-06 01:09:01 +00:00
Davide Pesavento 494a955b56 face: support non-listening UDP channels
This commit also improves coverage of the ProcessConfig
test suite for the various protocol factories.

Change-Id: Id9dbe2ca914e273f9225cd93db41bf714c714591
Refs: #4098
2018-02-05 02:31:20 -05:00
Junxiao Shi 332783b3e5 mgmt: respond with 414 if StrategyChoice prefix is too long
refs #4262

Change-Id: Ief6dec02d7fbf372382a167e04d82e48777fa30b
2018-02-04 23:52:46 +00:00
Davide Pesavento d96744d968 mgmt: don't crash if no authorizations are configured
Change-Id: I02d439a73c9b02fcb7141104d62a67aa1fa5aefb
Refs: #4487
2018-02-03 20:19:09 -05:00
Davide Pesavento 85244373f9 core: don't complain if the configuration file is empty
It is not an error in itself.

Change-Id: I2d100203c9c63ef4774e00dfa17fd1087e381122
2018-02-03 20:19:09 -05:00
Junxiao Shi 75306351ff rib: limit route prefix length in rib/register command
refs #4262

Change-Id: I567934419f6872cb0f5a823400f53014b9c6e85e
2018-02-01 21:59:44 +00:00
Junxiao Shi 3d2049fbc1 table: add CS enablement flags
This commit also:

* deletes never-implemented and unused Cs::erase method
* groups CS configuration methods together
* uses Table::emplace in Cs::insert

refs #4050

Change-Id: If8cf29dd33921da2f2c4ce56e02395d43cd3ee99
2018-01-30 09:15:15 -08:00
Eric Newberry 0c3e57b399 face+mgmt: allow congestion marking parameters to be enabled and set
refs #4465

Change-Id: I9d49135ab32bacb2885b70031c573f7c8709ac1f
2018-01-29 21:52:53 -07:00
Davide Pesavento 15b5505e01 face: group parameters to createFace and connect into a common structure
Change-Id: Icb6857602ed7e897be6c5334b05be23793d133bb
2018-01-29 18:56:12 -05:00
Davide Pesavento 97a010178c tests: prevent unsigned integer underflow in TestUdpFactory/Blacklist
Change-Id: If00bb69fc2ddaded91c199c6ba17d94e12b1ffea
2018-01-22 19:37:44 -05:00
Davide Pesavento 5cc706c8cb tests: update copyright in test case example
Change-Id: Ifb12152dc56b59c038751c53abc169f3d36c8b17
2018-01-22 17:39:00 -05:00
Eric Newberry 0c84164fd0 face: allow enabling/disabling congestion marking through config file
refs #4465

Change-Id: I888b83b1fdbe8e3fc36a902bf7af52147807d829
2018-01-22 01:00:16 +00:00
Davide Pesavento a6f2d245d7 tests: use BOOST_TEST_GLOBAL_CONFIGURATION with boost >= 1.65
Change-Id: I12b06a97955f611a48642bc20ebc896e1007ccb1
Refs: #4255
2018-01-21 16:18:00 -05:00
Md Ashiqur Rahman 8ce09032ff face: implement IPv6 UDP multicast transport
Change-Id: Ib6ab956354dbbba00694c7949fa9ee4639579879
Refs: #4222
2018-01-14 22:43:25 -05:00
Eric Newberry b49313db62 face: congestion detection in TCP, UDP, and Unix socket transports
refs #4362

Change-Id: Idaa5d65e1f33663d95bad56de42640183b2cda6d
2018-01-14 17:50:01 -07:00
Junxiao Shi 3160a3f820 tools: implement 'nfdc cs info' command
refs #4219

Change-Id: I4252878943c3f6c88f306f83f5023fffc82326b0
2018-01-09 21:25:15 +00:00
Junxiao Shi f2bfb44a4a mgmt: CS information dataset (hit/miss counters)
refs #4219

Change-Id: If3ede6b3cba3b836e4e3190989c65f13280fa972
2018-01-05 12:34:57 +00:00
Davide Pesavento 8215a3ada6 face: deduplicate multicast UDP socket setup
In preparation for adding IPv6 support.

Change-Id: I5a3be2007f7fecc44915a5d6794093143ce9c0f9
Refs: #4222
2017-12-26 13:58:24 -05:00
Eric Newberry 4738f15594 tests: make CongestionMarkStrategy parameters human-readable
Change-Id: I45448640b9125015a0ae2711f14fc3c1472603c3
2017-12-21 21:10:50 -05:00
Eric Newberry 00d39fda3c tests: improve LpReliability unit tests
count retransmitted, but received packets properly in LpReliability

refs #4391

Change-Id: I6867a70a1e7d7e949a250982df2ff97e49848996
2017-12-13 05:25:24 -08:00
Eric Newberry 78ef901f24 tests: allow parameters to be specified to CongestionMarkStrategy
refs #4327

Change-Id: If33efc23cc0e4d85aaa99cfcb5411e42b409c899
2017-12-12 13:49:01 -08:00
Junxiao Shi 3f9234b2cf table: limit prefix length in Measurements
refs #4262

Change-Id: Ife04f8df1fb833b477d055a1cd1f37d2af474e7f
2017-12-07 17:41:50 +00:00
Alexander Afanasyev 0c63c63ed7 build: Fix build when std::to_string is not available
Change-Id: If34fcebe17bd7e3de23655680957fa6e0df27676
Refs: #4393
2017-12-05 11:27:41 -05:00
Eric Newberry 69b63dcdd4 tests: add integration test helper strategy CongestionMarkStrategy
refs #4327

Change-Id: I966ed4fb4526338138712017e326cc80a1a3be7a
2017-11-22 00:06:53 -07:00
Eric Newberry 41aba10d3d fw: add strategy notification for Interests dropped by LpReliability
add dropped Interest counter to faces

refs #3823

Change-Id: I9910b66932d74383203e8f3732bb45cade83b972
2017-11-20 18:10:52 -08:00
Eric Newberry 52ae3296bd tests: remove reliance of other tests on WITH_TESTS
refs #3609

Change-Id: I8fa858d207cd060cfcda7c86af56dac4afb48fe1
2017-11-18 20:45:32 -07:00
Davide Pesavento bb734df9f6 face: pass the whole NetworkInterface to UdpFactory::createMulticastFace
Instead of just the interface name. This is in preparation
for adding IPv6 support to createMulticastFace.

Change-Id: Ie3c02af4483b041d39d4e85c85cd712368e9bb8f
Refs: #4222
2017-10-28 15:54:48 -04:00
Davide Pesavento bc79bd63c7 tests: fix Face/TestTcpTransport/PermanentReconnectWithExponentialBackoff
Change-Id: I9728c8e4f350589fd2f5af03fc82fcdb0f8bfe24
Refs: #4301
2017-10-28 15:54:17 -04:00
Davide Pesavento 22fba35327 tests: test IP transports under various combos of address family/scope
In particular, link-local addresses are now tested as well.

Additionally, WebSocketTransport send/receive tests are extended
to check transport counters.

Change-Id: I5b35f498a5d8d70cb1f7a2bea3ce99d22370e050
Refs: #1428
2017-10-17 16:00:11 -04:00
Davide Pesavento b8d1fc7562 tests: add support for link-local addresses in getTestIp
Change-Id: If57cb93f1c25a18b680aef12895ee5924ca90cfa
2017-10-09 16:09:55 -04:00
Davide Pesavento 6d1c1c320b tests: stop using deprecated Buffer::buf()
Change-Id: I48b7672098cfe57ccb470a247eed0c80e24cfffe
2017-10-09 15:53:37 -04:00
Davide Pesavento 4b89a6e943 face: move createChannel overloads that take strings to unit tests
They are used only there.

Change-Id: I0c70221bbcad36024223cc6e3c929b9c08b683c0
2017-10-07 15:29:50 -04:00
Yanbiao Li afb2059377 use ndn::ip::address(V6)FromString for scope-id aware conversion
Change-Id: Ifdc31771b8a990867c0a79ba42b71c87a97bcd56
Refs: #1428
2017-10-06 10:15:51 -07:00
Junxiao Shi 4e837f8d12 table: limit prefix length in StrategyChoice
refs #4262

Change-Id: Iddebeb555b2f3315515a298f8cded353fb51854d
2017-10-02 22:14:43 +00:00
Davide Pesavento b5eee2066b face: delete deprecated FaceSystem constructor
Change-Id: I54d623f1432428c2c3516a00f66dfe3f847bbc2c
Refs: #3377, #4021
2017-09-22 21:20:02 -04:00
Davide Pesavento 0804f5dd1f tests: stop using deprecated Block constructor
Change-Id: If50d5f0e2a4d6cef3a5e84e0f1da4a388b216233
2017-09-22 21:19:42 -04:00
Alexander Afanasyev 847de408cb build: Add warning for non-virtual destructor and fix discovered issues
Change-Id: I1d67b9b63d84d8524580e80ac06c3efef860c56a
2017-09-22 15:00:29 -04:00
Junxiao Shi cfe81d5098 face: increase tolerance in WebSocketChannel test
Face/TestWebSocketChannel/SetPingInterval now allows 80ms
absolute tolerance, so that the test case is more stable on
slower machines.

refs #4244

Change-Id: I897f3b33a0ea2eb9006f0dd8d70ef2a4624953e2
2017-09-15 03:26:08 +00:00
Junxiao Shi 042a331582 table: attach PIT entry to NameTree node within depth limit
refs #4262

Change-Id: I64d76a337c3b491efa2f93c803046cea70c87000
2017-09-15 02:51:20 +00:00
Davide Pesavento ac238f29be tests+tools: fix build with clang-5.0
Change-Id: I75eeb01b071c1702517a65a8099e52d4092a4638
Refs: #4278
2017-09-12 15:22:02 -04:00
Junxiao Shi f54d0301c6 table: advisory limit of NameTree depth
refs #4262

Change-Id: I691f9615e2b8a3b146a683919c6d5833f53f6122
2017-09-07 18:16:38 +00:00
Junxiao Shi 06a1eab063 fw: Forwarder provides CS hit/miss counters
refs #4219

Change-Id: I7058c43bac4a5508d4b9907f6e684663b8953656
2017-09-04 13:13:02 +00:00
Junxiao Shi a907980840 tests: do not encode invalid SignatureInfo
refs #3200

Change-Id: I54199080439a41cf91c190e64a68540afabc7414
2017-08-27 11:38:56 -07:00