aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr
AgeCommit message (Collapse)AuthorFilesLines
2022-06-30refactor(lib, hicn-light, vpp, hiperf): HICN-723Luca Muscariello4-8/+2
- move infra data structure into the shared lib - new packet cache using double hashing and lookup on prefix suffix - testing updates - authenticated requests using interest manifests Co-authored-by: Mauro Sardara <msardara@cisco.com> Co-authored-by: Jordan Augé <jordan.auge+fdio@cisco.com> Co-authored-by: Michele Papalini <micpapal@cisco.com> Co-authored-by: Olivier Roques <oroques+fdio@cisco.com> Co-authored-by: Enrico Loparco <eloparco@cisco.com> Change-Id: Iaddebfe6aa5279ea8553433b0f519578f6b9ccd9 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2022-03-31feat: boostrap hicn 22.02Luca Muscariello60-8922/+8614
The current patch provides several new features, improvements, bug fixes and also complete rewrite of entire components. - lib The hicn packet parser has been improved with a new packet format fully based on UDP. The TCP header is still temporarily supported but the UDP header will replace completely the new hicn packet format. Improvements have been made to make sure every packet parsing operation is made via this library. The current new header can be used as header between the payload and the UDP header or as trailer in the UDP surplus area to be tested when UDP options will start to be used. - hicn-light The portable packet forwarder has been completely rewritten from scratch with the twofold objective to improve performance and code size but also to drop dependencies such as libparc which is now removed by the current implementation. - hicn control the control library is the agent that is used to program the packet forwarders via their binary API. This component has benefited from significant improvements in terms of interaction model which is now event driven and more robust to failures. - VPP plugin has been updated to support VPP 22.02 - transport Major improvement have been made to the RTC protocol, to the support of IO modules and to the security sub system. Signed manifests are the default data authenticity and integrity framework. Confidentiality can be enabled by sharing the encryption key to the prod/cons layer. The library has been tested with group key based applications such as broadcast/multicast and real-time on-line meetings with trusted server keys or MLS. - testing Unit testing has been introduced using GoogleTest. One third of the code base is covered by unit testing with priority on critical features. Functional testing has also been introduce using Docker, linux bridging and Robot Framework to define test with Less Code techniques to facilitate the extension of the coverage. Co-authored-by: Mauro Sardara <msardara@cisco.com> Co-authored-by: Jordan Augé <jordan.auge+fdio@cisco.com> Co-authored-by: Michele Papalini <micpapal@cisco.com> Co-authored-by: Angelo Mantellini <manangel@cisco.com> Co-authored-by: Jacques Samain <jsamain@cisco.com> Co-authored-by: Olivier Roques <oroques+fdio@cisco.com> Co-authored-by: Enrico Loparco <eloparco@cisco.com> Co-authored-by: Giulio Grassi <gigrassi@cisco.com> Change-Id: I75d0ef70f86d921e3ef503c99271216ff583c215 Signed-off-by: Luca Muscariello <muscariello@ieee.org> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-07-06[HICN-713] Transport Library Major Refactoring 2Mauro1-1/+1
Co-authored-by: Luca Muscariello <muscariello@ieee.org> Co-authored-by: Michele Papalini <micpapal@cisco.com> Co-authored-by: Olivier Roques <oroques+fdio@cisco.com> Co-authored-by: Giulio Grassi <gigrassi@cisco.com> Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I5b2c667bad66feb45abdb5effe22ed0f6c85d1c2
2021-06-01Merge "[HICN-704] facemgr: fix compilation issue for CLI on Android"Mauro Sardara1-1/+1
2021-06-01[HICN-705] create packages for windows and mac osAngelo Mantellini1-0/+2
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: Ie408cf35737b8c66d6de3ef49c2990ff4c868a50
2021-05-17Merge "[HICN-701] facemgr: add priority controller mobility example"Mauro Sardara2-0/+111
2021-05-17[HICN-704] facemgr: fix compilation issue for CLI on AndroidJordan Augé1-1/+1
Change-Id: I45899d0e21e0e7ce9b970d550491fef39dec4c31 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-04-26[HICN-695] facemgr: add systemd serviceJordan Augé8-0/+261
Change-Id: I6b345944ce3fb4714832798e32ac840a162dc268 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-04-26[HICN-701] facemgr: add priority controller mobility exampleJordan Augé2-0/+111
Change-Id: Id2c41164a59329e206e430e82f107cf5d4db8ae1 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-04-19[HICN-699] facemgr: cleaner logs for face interactionJordan Augé2-10/+28
Change-Id: Ic0c941812f758868498e4d087e237047f91d452b Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-04-15[HICN-690] Transport Library Major RefactoryLuca Muscariello2-4/+4
The current patch provides a major refactory of the transportlibrary. A summary of the different components that underwent major modifications is reported below. - Transport protocol updates The hierarchy of classes has been optimized to have common transport services across different transport protocols. This can allow to customize a transport protocol with new features. - A new real-time communication protocol The RTC protocol has been optimized in terms of algorithms to reduce consumer-producer synchronization latency. - A novel socket API The API has been reworked to be easier to consumer but also to have a more efficient integration in L4 proxies. - Several performance improvements A large number of performance improvements have been included in particular to make the entire stack zero-copy and optimize cache miss. - New memory buffer framework Memory management has been reworked entirely to provide a more efficient infra with a richer API. Buffers are now allocated in blocks and a single buffer holds the memory for (1) the shared_ptr control block, (2) the metadata of the packet (e.g. name, pointer to other buffers if buffer is chained and relevant offsets), and (3) the packet itself, as it is sent/received over the network. - A new slab allocator Dynamic memory allocation is now managed by a novel slab allocator that is optimised for packet processing and connection management. Memory is organized in pools of blocks all of the same size which are used during the processing of outgoing/incoming packets. When a memory block Is allocated is always taken from a global pool and when it is deallocated is returned to the pool, thus avoiding the cost of any heap allocation in the data path. - New transport connectors Consumer and producer end-points can communication either using an hicn packet forwarder or with direct connector based on shared memories or sockets. The usage of transport connectors typically for unit and funcitonal testing but may have additional usage. - Support for FEC/ECC for transport services FEC/ECC via reed solomon is supported by default and made available to transport services as a modular component. Reed solomon block codes is a default FEC model that can be replaced in a modular way by many other codes including RLNC not avaiable in this distribution. The current FEC framework support variable size padding and efficiently makes use of the infra memory buffers to avoid additiona copies. - Secure transport framework for signature computation and verification Crypto support is nativelty used in hICN for integrity and authenticity. Novel support that includes RTC has been implemented and made modular and reusable acrosso different transport protocols. - TLS - Transport layer security over hicn Point to point confidentiality is provided by integrating TLS on top of hICN reliable and non-reliable transport. The integration is common and makes a different use of the TLS record. - MLS - Messaging layer security over hicn MLS integration on top of hICN is made by using the MLSPP implemetation open sourced by Cisco. We have included instrumentation tools to deploy performance and functional tests of groups of end-points. - Android support The overall code has been heavily tested in Android environments and has received heavy lifting to better run natively in recent Android OS. Co-authored-by: Mauro Sardara <msardara@cisco.com> Co-authored-by: Michele Papalini <micpapal@cisco.com> Co-authored-by: Olivier Roques <oroques+fdio@cisco.com> Co-authored-by: Giulio Grassi <gigrassi@cisco.com> Change-Id: If477ba2fa686e6f47bdf96307ac60938766aef69 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2021-01-19[HICN-675] Handle invalid face polled from hicn-light in facemgrJordan Augé2-2/+9
Change-Id: Icf2868033d98f6bbd091418c3632dab733621894 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-01-16[HICN-674] change android class in facemgrAngelo Mantellini3-39/+39
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I585b4e03e7e01513b553c685e9845943ff02508a
2021-01-11[HICN-672] comment by default the use the priority controller in androidAngelo Mantellini1-1/+1
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I83832c6dff83a543dc5c92429a4b261a390c54b1
2020-12-14[HICN-660] Add priority priority control example based on RSSIJordan Augé1-3/+9
Change-Id: I745ad264b00e7fd3f7d09a9653779911f07becab Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-12-07[HICN-660] Add priority priority control example based on RSSIJordan Augé3-3/+189
Change-Id: Idc940d600e436f39fe78cd44bc29bd696c7dc9d6 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-09-18Revert to [HICN-638] Check if systemd is running before enabling hicn-light ↵Mauro Sardara1-2/+2
service Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I1810d96e001a4e6e097e1efa331b682af750925d
2020-09-14[HICN-574] Host stack plugin for VPP.Mauro Sardara1-2/+2
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I8d8fdffef31a7013265d6529c5f52f3d5ec70d18 Signed-off-by: Mauro Sardara <msardara@cisco.com> Signed-off-by: Mauro <you@example.com> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-05-29[HICH-618] HTTP proxy automatic configuration.Mauro Sardara1-2/+1
Change-Id: I6a76b31b743f155a2d9f7b88e84b838265aab6c8 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-03-31[HICN-581] update hicn stack to support windows, againAngelo Mantellini1-1/+5
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: Ic5cfeae600fde8140a076807fa1e411da1933a02
2020-02-12Merge "[HICN-512] documentation bundle using sphinx"Mauro Sardara1-358/+0
2020-02-12[HICN-512] documentation bundle using sphinxLuca Muscariello1-358/+0
Change-Id: I1dcbca50f7406ef2714683547b6bb32463e1baf8 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2020-02-12[HICN-516] remove facemgr android-utility header from installed onesJordan Augé5-4/+4
Change-Id: I72018d73fdf0a295c6121efd38b0ce1a00519dd5 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-02-03[HICN-489] Add iOS support to hicn stackAngelo Mantellini5-48/+48
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I8fa8c4eaa3218eb4be46f713b15ab789c6930aa0
2020-01-15[HICN-473] Add getter functions for face manager rule configurationJordan Augé2-88/+80
Change-Id: I04fd2f776d8fad7c2608e790b2b400a440bad8e0 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-01-15[HICN-467] Priority settings on interfaces yet to be created should be ↵Jordan Augé1-0/+18
cached for further application Change-Id: I715f908587838b47b0491880391d875044e03293 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-01-13[HICN-473] Add getter functions for face manager rule configurationJordan Augé2-0/+135
Change-Id: I8b78694462d2fc5dfc085c9e198a06ca4b93a199 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-01-13[HICN-472] Decrease reattempt timeout in face manager to 250msJordan Augé1-2/+2
Change-Id: I85a4b05db9867753318ce9ca59b54a7ec81cd9e9 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-01-07[HICN-467] Priority settings on interfaces yet to be created should be ↵Jordan Augé1-0/+61
cached for further application Change-Id: Ieeff69ee841583e40f5547f6f958ef964f42b4e5 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-17[HICN-461] Improve netlink event management in facemgrJordan Augé1-12/+12
Change-Id: I4d26843bd3a3ac23db9c72a095ab030a037237d4 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-12[HICN-446] Face manager incorrectly sets up static routes in case of ↵Jordan Augé1-0/+4
multihoming during startup Change-Id: Ifdf0bed4064d36b74129b929006b8c7ac9c56ebb Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-11Merge "[HICN-446] Face manager incorrectly sets up static routes in case of ↵Jordan Augé2-41/+143
multihoming during startup"
2019-12-11[HICN-446] Face manager incorrectly sets up static routes in case of ↵Jordan Augé2-41/+143
multihoming during startup Change-Id: Iee01146d3d9437f0267cfac3de793608cccca5bc Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-11Merge "[HICN-430] Rework on CMake"Luca Muscariello1-2/+3
2019-12-10[HICN-438] facemgr should allow face creation with physical interface downJordan Augé4-33/+73
Change-Id: I6487fbec0607464a625daa01455ddac8fdd75ee2 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-10[HICN-430] Rework on CMakeMauro Sardara1-2/+3
Change way targets are defined: each project defines targets. Fix project BUILD flags Add build-extras bash script Rework build tree of extras folder, using ExternalProject_Add Change-Id: I82fa29896e54c8a033490eba013c3f0431bec9d0 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-12-09[HICN-438] facemgr should allow face creation with physical interface downJordan Augé7-99/+81
Change-Id: I9d333f2d420c735d3867c0813dc93e82aceb3861 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-05[HICN-420] MAP-Me code refactoring & face manager changes in support of mobilityJordan Augé11-125/+381
Change-Id: Ifde50b4c161d1bda1326f18b705f575e539aea71 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-02[HICN-419] Expose facelet id in facelet_list(_json) in facemgr APIJordan Augé1-1/+11
Change-Id: Ibce2e82ba125ca2e927cd270a8c45855384cd7fa Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-27[HICN-416] Fix error handling in facemgr netlink interfaceJordan Augé1-18/+31
Change-Id: Ia04a2f01005ec28a92cc5065ee2f3bddad27f573 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-25[HICN-408] add a face manager interface for face priority controlJordan Augé1-2/+22
Change-Id: I07cd4c100251c42ef32117a515e8e9e39b9c3031 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-24[HICN-408] Add a face manager interface for face priority controlJordan Augé3-34/+17
Change-Id: I768112c920154380a614d0c5858f50efa135903d Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-22[HICN-408] add a face manager interface for face priority controlJunsu Choi4-1/+198
Change-Id: I166cb56e7376fe896d41d6d371ecb3727b7563ce Signed-off-by: Junsu Choi <junsu.choi@samsung.com>
2019-11-20[HICN-404] double-free in facemgr (facemgr_list_facelets_json) + valgrind fixesJordan Augé2-3/+1
Change-Id: Id57873d3f4152af654f3bc27778d7015495597d7 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-17[HICN-379] Add face priority support in face managerJordan Augé3-4/+97
Change-Id: If4f75d44fc66414a4a70135de7827f5082b97112 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-17Merge "[HICN-395] Static face/route maintainance though face manager"Jordan Augé4-75/+381
2019-11-17[HICN-378] Add a maximum number of reattempts in face manager before ↵Jordan Augé4-36/+109
entering face ignore mode Change-Id: Id6f8cc958d3c50027475d72d80eed6b65ac0996b Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-17[HICN-395] Static face/route maintainance though face managerJordan Augé4-75/+381
Change-Id: I8f2287a262412bacc50f3c89756ec9fd6ce30d33 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-17[HICN-396] Incorrect error handling order in facemgr during interface ↵Jordan Augé1-2/+4
creation causes double free Change-Id: I63f3ac8815611fe83e75edd283eabf4d721bdbac Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-15[HICN-386] Improve API error management in libhicnctrlJordan Augé1-1/+1
Change-Id: Ifab987a17255e20077242888b052e312f9e4c964 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>