aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/src
AgeCommit message (Collapse)AuthorFilesLines
2022-03-31feat: boostrap hicn 22.02Luca Muscariello44-8290/+7911
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-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-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-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 Muscariello1-3/+3
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-02-12[HICN-516] remove facemgr android-utility header from installed onesJordan Augé3-2/+51
Change-Id: I72018d73fdf0a295c6121efd38b0ce1a00519dd5 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2020-02-03[HICN-489] Add iOS support to hicn stackAngelo Mantellini4-47/+47
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é1-88/+78
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é1-0/+121
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-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-10[HICN-438] facemgr should allow face creation with physical interface downJordan Augé3-33/+71
Change-Id: I6487fbec0607464a625daa01455ddac8fdd75ee2 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-12-09[HICN-438] facemgr should allow face creation with physical interface downJordan Augé6-99/+80
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é10-123/+368
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é2-4/+82
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é3-68/+381
2019-11-17[HICN-378] Add a maximum number of reattempts in face manager before ↵Jordan Augé3-34/+87
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é3-68/+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-14[HICN-386] Improve API error management in libhicnctrlJordan Augé17-1101/+14
Change-Id: I332e74ebcd89798c93de50ae7a20f7af8f59f54c Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-12Merge "[HICN-376] Add manual connection/route setting to face manager"Michele Papalini10-122/+989
2019-11-12[HICN-389] facemgr calls unregister_all multiple times in case of errorJordan Augé1-1/+0
Change-Id: Iaac34a53ae95b511594a5dcd6b1e614eba9ff135 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-12[HICN-376] Add manual connection/route setting to face managerJordan Augé10-122/+989
Change-Id: I5c24f687e8e815d0e2f437ff8ce7fbb2c76e0579 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-11Merge "[HICN-383] Code cleanup"Jordan Augé2-36/+39
2019-11-08[HICN-385] fix route removal in hicnctrl, code uniformization in hicn-light ↵Jordan Augé1-1/+1
control api Change-Id: Id097368dcde993775f206623195cc5aa57b4fe12 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-05[HICN-383] Code cleanupJordan Augé2-36/+39
Change-Id: I41ca0f411053992625dec0b32ffe6a444c5bc51c Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-05[HICN-382] Misc compilation issues on MacOS (incl. Catalina specific code)Jordan Augé4-20/+20
Change-Id: I4cb2378b2e44afbaedb984409a221b2e3f0e99b4 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-31[HICN-372] Code clean upJordan Augé7-21/+32
Change-Id: Ic0ce2d01a05c2724eeaf91f76aafa2facedcbaf3 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-31[HICN-369] Implement reconciliation state machine in face manager incl. ↵Jordan Augé19-625/+968
reattempts in case of errors Change-Id: Ia4ecf621fbd513d9e29313d2aaa487aa65811183 Signed-off-by: Jordan Augé <jordan.auge@cisco.com>
2019-10-24[HICN-352] facemgr event loop enhancement; timer support & async hicn-light ↵Jordan Augé21-949/+1929
interface Change-Id: I920a0eb091d826e1eb0d1f786fb0b437487f7ff7 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-23[HICN-350] Minor cleanup in control APIJordan Augé1-2/+2
Change-Id: I5c3705aa439a1cf6bdca915f82c0c014771cc542 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-11[HICN-319] facemgr should allow face creation even though already in cacheJordan Augé6-36/+110
Change-Id: Icadfdc6369711575cfc8b8fee8e956b004860e1b Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>