Commit Graph
258 Commits
Author SHA1 Message Date
Junxiao Shi cbb490a6de fw: NccStrategy always sets pitEntryEntry->maxInterval
Change-Id: I675745cbd40e8d9c6651e6a728deb194ff37d189
refs: #1853
2014-08-13 12:24:24 -07:00
Junxiao Shi 15b12e759d core: use markers in StatusDataset and NotificationStream
This commit also refactors FaceMonitor as generic NotificationSubscriber,
and refactors AutoregServer to use FaceMonitor.

refs #1837 #1838

Change-Id: I8b40dfae118853d1224c8290cf92e7cc0daa116f
2014-08-10 19:23:09 -07:00
Alexander Afanasyev b3033247ee table: Fix segfault during Fib::removeNextHopFromAllEntries
Change-Id: I905a3c0da2f2a9197942cfeba7fd698b779e6e4a
Refs: #1816
2014-08-08 16:09:44 -07:00
Wentao Shang e612e2f9bf face: increment link layer byte counters in WebSocketFace
Change-Id: I88b7dea1cbd291765345982ce193700aacd73eb3
Refs: #1781
2014-08-04 17:40:51 -07:00
Junxiao Shi ee5a444344 table: erase NameTree entry when FIB/Measurements/StrategyChoice entry is erased
This commit also optimizes Measurements table to make use of NameTree shortcuts.

refs #1803

Change-Id: Ib0e465750ed5e8ff9ed129a926a7bc852db4e9e1
2014-07-27 17:13:43 -07:00
Junxiao Shi 5dd26c3ef8 face: increment link layer byte counters in StreamFace and DatagramFace
refs #1766

Change-Id: I69377fa561ae1ee845808aa02ae1b85b1771899e
2014-07-24 15:55:31 -07:00
Vince Lehman 5144f829b9 mgmt+core: Moving SegmentPublisher to core/ and removing KeyChain from nfd::AppFace
This change ensures interface uniformity between nfd::AppFace and
ndn::Face and allow now templated version of SegmentPublisher to be used
with either.

Change-Id: I82e29528b13b37bd2ae27ef47db30e8c87c15a38
Refs: #1749
2014-07-23 16:01:27 -07:00
Alexander Afanasyev e5966b7ac3 face: Serializing StreamFace::send(Interest|Data) operations using queue
Change-Id: I254d5e3030c94fac224e81e66bcbc58ffa752c0e
Refs: #1777
2014-07-21 13:48:35 -07:00
Junxiao Shi 632a62089a mgmt: expose link layer counters in Face Dataset
refs #1767

Change-Id: If0b66ead4c2f2741c83396f251cce9a0d83c1520
2014-07-20 19:47:06 -07:00
Junxiao Shi 7b984c6d8e face: reserved FaceIds and NullFace
refs #1620, #1622

Change-Id: I315ae262c7e0813a64b69d3e7d67de61b7b88c55
2014-07-20 14:58:26 -07:00
Junxiao Shi 651b75e214 table: capacity limit in PIT NonceList
refs #1770

Change-Id: Ia5722968cca1d9a4bbf3ef19e57be73eac702a69
2014-07-19 10:14:30 -07:00
Junxiao Shi 33152f18b1 face: link layer byte counts in FaceCounters
This commit declares the counters, but does not increment the new counters.

refs #1729

Change-Id: I9cd136fc65955192a92d567629a9aba2df8090f3
2014-07-19 01:14:05 -07:00
Alexander Afanasyev a57f8b4194 fw: set unsatisfy timer in incoming Interest pipeline
Change-Id: I478de1482f79f96f81162ab5e6e8df490061b852
Refs: #1754
2014-07-14 19:59:44 -07:00
Alexander Afanasyev 28d586a16b table: Store shared_ptr<Interest> instead of just Interest to avoid extra copy
Change-Id: I240ea4cbe2c9e14b4c1ca2df87d40da8042b78d1
Refs: #1753
2014-07-14 19:20:55 -07:00
Alexander Afanasyev 7bbe80cf74 mgmt: Change InternalFace::processEvents to accept shared_ptr, instead of weak_ptr
Change-Id: I13af9a4b07a339cf66be1fa8783dc0475ded75f0
Refs: #1753
2014-07-13 12:10:29 -07:00
Steve DiBenedetto fbea590074 mgmt: mark tables as configured after applying default configuration
refs: #1743

Change-Id: I8fa82462ff1dc328f70a1c6b335ef42c52d1f06f
2014-07-08 15:30:08 -06:00
Steve DiBenedetto 9bcc88fe8d mgmt,main: configure tables with defaults when missing config section/values
refs: #1743

Change-Id: Id0c24bd2b2e86df763892d194f9c04777a369d0c
2014-07-08 12:51:15 -07:00
Alexander Afanasyev 29d1fab41e face: Avoid calls to socket::local_endpoint()
Change-Id: I0cb9152efb95faa105a0d0e08ebfb263581d4d43
Refs: #1741
2014-07-08 10:59:02 -07:00
Alexander Afanasyev 7465d5fc0c face: Workaround to Boost.Asio bug 8795 with async_connect
Change-Id: I033a9ae719306f1af605124d982df60b9a8e7372
Refs: #1736
2014-07-07 19:52:19 -07:00
Junxiao Shi 0e173b7690 fw: permit setStragglerTimer with unexpired OutRecord
refs #1733

Change-Id: I899ce2f826d84b048536bcf56aec2ff038534901
2014-07-07 16:15:51 -07:00
Wentao Shang 3d36c2bc6c face: handle exceptions in WebSocket sending path
Change-Id: I231f201d0999f74369fab5ff98b24b2185e45815
Refs: #1732
2014-07-07 12:29:43 -07:00
Junxiao Shi 223271ba39 fw: require valid FaceId in outgoing Interest/Data pipelines
This is to avoid sending via a failed/closed face.

refs #1732

Change-Id: I31b205c2b97185e7955107a2591f8c4d2b7f0cc0
2014-07-03 22:52:00 -07:00
Alexander Afanasyev 583760b22b face: Cleaning up onFail EventEmitter after event is fired from Face::fail
Change-Id: I3e90ae4af6843c2cd6d24835e0d3dab98f4c94df
Refs: #1718
2014-06-30 23:14:53 -07:00
Davide Pesavento a75305892c face: remove pointless method UdpFace::handleFirstReceive
Simply call DatagramFace::receiveDatagram directly.

Change-Id: Icec976fb9f4a008d08ece56c28ac652ea615bc76
2014-06-30 23:14:53 -07:00
Alexander Afanasyev 40c61f77cc tools: Showing ExpirationPeriod if it is present in FaceStatus
Change-Id: I8e5b1350179830a1d12866c02c16393068e06369
Refs: #1686
2014-06-30 23:14:49 -07:00
Alexander Afanasyev e515f0a989 face: Moving idle UdpFace closing logic to UdpFace class
Change-Id: Ia7310fa18681f17d93c8214ce744da909fea7022
Refs: #1686
2014-06-30 19:54:33 -07:00
Alexander Afanasyev d9479aa9fa face: Fixing compilation failure with libpcap version 1.0.0
Change-Id: If285f1ed11a4e66bdafb50cbb7314faaed3d95f7
Refs: #1703
2014-06-26 13:54:22 -07:00
Davide Pesavento 0e76f628d2 face: disable path MTU discovery on unicast UDPv4 faces.
refs #1651

Change-Id: I81a664f6dedac8e983e2459700d2cd8e358a4ef4
2014-06-26 07:42:34 +02:00
Junxiao Shi 1983804963 table: set initial lifetime for Measurements entry
refs #1665

Change-Id: Idc83d158616c7a1833d2dbb33e25c35ec1e47f32
2014-06-22 23:36:17 -07:00
Steve DiBenedetto 2aa4eca578 face: prevent creation of duplicate tcp/udp faces due to async calls
refs: #1680

Change-Id: I0e685d6bde1f6745902c86f782d41c9070aecb21
2014-06-20 19:37:20 -07:00
Alexander Afanasyev 4b3fc86c96 table: Offload the implicit digest calculation to the library
Change-Id: I8577ec3ee194d639cce74b53fb5f02c7e718cbc3
Refs: #1678
2014-06-20 17:29:19 -07:00
Wentao Shang 93ef6c971f test: basic unit-test for WebSocket face
Change-Id: I41dcc2ecff57225db1aff8e359d507f0e89d4c96
Refs: #1553
2014-06-20 12:25:43 -07:00
Alexander Afanasyev dc01700b45 face: Switching to 2 sockets in MulticastUdpFace for sending and receiving
To send over UDP multicast, we should not bind to multicast address.
This is true at least on OSX 10.9, which generates "Can't assign
requested address" error (error code: 49).  However, without binding to
the multicast address, the socket may receive unnecessary unrelated
packets.  To solve this problem, this commit splits sending and
receiving into two sockets, one for sending and one for receiving.

Change-Id: Ibce05c7071fd683a26b3c88cd2a168546c5dc605
Refs: #1668
2014-06-20 09:55:29 -07:00
Alexander Afanasyev cd591e1781 face: Parametrizing DatagramFace to correct MulticastUdpFace logging
Change-Id: I8a117dd0209b3babe3b7df35cd692c268c059866
Refs: #1675
2014-06-20 09:46:11 -07:00
Junxiao Shi af6569aa7e core: unify randomization
Non-security randomizations are changed to use boost::random,
with a global random number generator.

refs #1369

Change-Id: I5000fd02f170fa47058af790e2bea767f9c65650
2014-06-17 17:34:39 -07:00
Alexander Afanasyev 1886180829 faces: Replace deadline_timer usage in TcpChannel with Scheduler-based events
Change-Id: I37a7a3203b3187e029697a21e3314cfacbbed314
Refs: #1368
2014-06-13 20:30:55 -07:00
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
Steve DiBenedetto ef04f27892 face, mgmt: add channel status dataset publisher
Expose channel maps in protocol factories

Change-Id: I057b1bba638bfc9372867318653d71ba7d0e9888
Refs: #1631, #1653
2014-06-13 11:30:36 -07:00
Junxiao Shi 08d07a764e face: avoid multiple onFail events
refs #1497

Change-Id: I8fda3fea5cd8a314b30eef45da104109e9748afc
2014-06-10 20:41:42 -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
Steve DiBenedetto 3fff5614a5 mgmt: publish Strategy Choice dataset
refs: #1632

Change-Id: I4ed09d191433fd80071367e7b2ffcd2ac81c5c17
2014-06-07 22:35:39 -07:00
Alexander Afanasyev c87bbf8d7f face: "Closing" WebSocket face when WebSocket tunnel closes
Change-Id: Ief2d643b09469eac7fc92aa5139e41bcb8d1e210
Refs: #1637
2014-06-06 07:36:54 +03:00
Alexander Afanasyev 5959b014c5 mgmt: Reinitialize multicast faces and partially reload config file on HUP signal
The following elements from the config file are reloaded:
- effective user/group
- log levels
- multicast faces (enable/disable)
- security

Change-Id: I6ddf124702b30610dd0404d8fbaa9a9d800f02bf
Refs: #1584
2014-06-04 09:15:03 +03:00
Alexander Afanasyev 251f3c1317 face: fire onFail event on WebSocket and Ethernet face close
Change-Id: I3d24c7b2e5003253ff04dab68ec1a2cb37b7d023
Refs: #1637
2014-06-03 18:37:04 +03:00
Alexander Afanasyev f4e89b4000 src: Small improvements
Change-Id: I9850cd6ec2330482915f815d94a2ac2ccaeae7f1
2014-05-31 15:54:18 +03:00
Junxiao Shi b5888d2ed9 table: make StrategyChoice enumerable
refs #1633

Change-Id: I203d76645649cc8ef2e3dcfbd254fa4ebab6e9dc
2014-05-26 13:53:15 -07:00
Steve DiBenedetto 2599928409 mgmt: update face created Control Response with URI's canonical form
refs: #1619

Change-Id: I7c0304ce390de9757d2352e182a075ac902020d2
2014-05-22 15:27:06 -06:00
Junxiao Shi 02e32247ac fw: RttEstimator
refs #1568

Change-Id: Ife59d8d4715e293aec44f8fbe24582bb684452c4
2014-05-20 01:21:34 -07:00
Junxiao Shi da006f5a05 fw: incoming Data pipeline avoid sending to inFace
refs #1556

Change-Id: I1e38e3142f9c6536180f2aa494d7e2032ad76c2d
2014-05-16 11:18:00 -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