summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-03-31feat: boostrap hicn 22.02Luca Muscariello1096-64497/+68012
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-21HICN-717 Packages for libmemif v21.06v22.02-rc0stable/2106Mauro Sardara1-1/+1
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I85b1e9a0084373934ae0c450989d63baa8e191e6
2021-07-21HICN-715 Correct debs dependencies for libhicntransport package.Mauro Sardara1-5/+5
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I5acf591facdf61cf981a7de9bb1a4f88782fe708
2021-07-21[HICN-687] Add clang-format for libhicn.Mauro Sardara0-0/+0
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ie401d35998f1efd8019b3db7236120a69fcf3c2a
2021-07-20HICN-716 Upgrade to VPP 21.06Mauro Sardara65-1724/+1638
Also: - Format hicn-plugin code Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I0f4626fdeaf0fc5ae1f43904ca006b092e3e9d5f
2021-07-16[HICN-714] Update build scriptsv21.06-rc0Mauro Sardara4-55/+36
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ica3b4f66087446551230a3742fd7bd4db87a4a7e Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-07-06[HICN-713] Transport Library Major Refactoring 2Mauro336-18950/+15417
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-02[HICN-705] correct package for windowsAngelo Mantellini1-30/+25
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I29a6be1d5dff2a58c014a46c183eeb801a7be909
2021-06-01Merge "[HICN-706] libhicn: don't use designated initializers on Android"Mauro Sardara1-0/+4
2021-06-01Merge "[HICN-704] facemgr: fix compilation issue for CLI on Android"Mauro Sardara1-1/+1
2021-06-01[HICN-706] libhicn: don't use designated initializers on AndroidJordan Augé1-0/+4
Change-Id: Iab68f157d9dde478ff10e39faa50d3f43949be7f Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-06-01[HICN-705] create packages for windows and mac osAngelo Mantellini8-2/+209
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-17Merge "[HICN-695] facemgr: add systemd service"Mauro Sardara8-0/+261
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-05-03[HICN-703] correct minor cmake issues and memset in manifest_format_fixed.ccAngelo Mantellini4-16/+8
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I3ed763941fa58bdfc61b9462d3f3bd268d5a76ed
2021-04-30[HICN-703] Update windows-sdk and hicn codeAngelo Mantellini48-142/+325
Signed-off-by: Angelo Mantellini <@ngelo.mantellini@cisco.com> Change-Id: I05e4c92ce7de3640f0272afae127e1377862bd3e Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com>
2021-04-27[HICN-694] Do not use prefix received by server when autoconfiguring http-proxyMauro Sardara1-1/+0
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I3b7db1357e705e6f3c79176ad48a26284687c8a1
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-21[HICN-700] hicn-light: more informative MAP-Me logsJordan Augé1-2/+20
Change-Id: I6e6b5ca716e029f6dff539730ddf3a877fd80b41 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 Muscariello276-3007/+20362
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-04-09Merge "[HICN-696] packethicn: add support for native hicn and fix find ↵transport-ngMauro Sardara3-42/+12
wireshark for macOS"
2021-04-09[HICN-696] packethicn: add support for native hicn and fix find wireshark ↵Marco Trinelli3-42/+12
for macOS Allow wireshark to parse native hicn traffic (decode IPv6 traffic as HICN, by default) Fix find_package(wireshark) for macOS, to automatically find wireshark sources in macOS Signed-off-by: Marco Trinelli <marcotrinelli@gmail.com> Change-Id: I95599a894b91685ab1f274b1fa8d75efe6b96178 Signed-off-by: Marco Trinelli <marcotrinelli@gmail.com>
2021-04-06Merge "[HICN-692] Fix deb package installation of packethicn"Mauro Sardara5-26/+69
2021-04-06[HICN-692] Fix deb package installation of packethicnMarco Trinelli5-26/+69
Signed-off-by: Marco Trinelli <marcotrinelli@gmail.com> Change-Id: I3c916807904d78c17a3444808f904b9c0cf0a4f5
2021-04-01Merge "[HICN-694] Do not use prefix received by server when autoconfiguring ↵Jacques SAMAIN1-1/+0
http-proxy"
2021-04-01[HICN-694] Do not use prefix received by server when autoconfiguring http-proxyMauro Sardara1-1/+0
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ibe623ddffbde7679d41946c18e3381854db0b779
2021-03-25Merge "[HICN-688] Include packethicn in hicn build"Luca Muscariello11-6/+575
2021-03-25[HICN-688] Include packethicn in hicn buildMarco Trinelli11-6/+575
Add license headers Add dependencies Fix build for Ubuntu 18.04 Move doc Signed-off-by: Marco Trinelli <marcotrinelli@gmail.com> Change-Id: Ie92268d2d3a47c47746107ac6f9c34b21949671c
2021-02-16HICN-686 Wrong type definition for HICN_TYPE_IPV4_TCP_AH and ↵Mauro Sardara1-2/+2
HICN_TYPE_IPV4_ICMP_AH Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I3a9f3a26bafd0d3711090dc151f587148851f5b6
2021-02-11[HICN-683] Add clang format for hicn-plugin.Mauro18-2218/+1929
As vpp has moved away from the dear old indent, also the hicn plugin should do the same and use clang-format. Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Iee896f3ce01cef53b1acfccbebeef66ca77add7d Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-02-11HICN-685 Fix package script for centos8Mauro Sardara1-2/+2
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I4a683dc37e6669d51e001604c41221efb26fb0de
2021-02-11HICN-685 Fix package script for centos8Mauro Sardara1-0/+3
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I9973034088879b23cc0de6116d65c3a70272a706
2021-02-11HICN-685 Fix package script for centos8Mauro Sardara2-15/+3
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I84c0461d5a7869b38a676f3a02a53080e32d271c
2021-02-10[HICN-682] Fix hicn-plugin to be compatible with version 21.01Mauro Sardara11-1031/+919
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ia116ad74ce78e2ca2d7ee624eea75a38936d27f8 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-02-10Merge "[HICN-679] Do not throw exception when receiving corrupted/not-hicn ↵v21.01-rc0Mauro Sardara6-22/+31
packet from network layer"
2021-02-05[HICN-681] Remove compilation warning in ubuntu 20.04 jobs.Mauro Sardara3-15/+13
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Id9666941d2a84d5deb75716a410abe9305923531 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-02-05[HICN-679] Do not throw exception when receiving corrupted/not-hicn packet ↵Mauro Sardara6-24/+35
from network layer Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I082e3c1b5fc9f535089114cfe14940f094947b66 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-01-27Merge "[HICN-677] Add link flag to workaround undefined symbols referenced ↵Michele Papalini1-0/+4
in vpp libraries."
2021-01-27[HICN-677] Add link flag to workaround undefined symbols referenced in vpp ↵Mauro Sardara1-0/+4
libraries. Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I9d628826374a38aaab749270dac1ca88fc9ebb35
2021-01-27Merge "[HICN-668] Fix leaks + double free"Jacques SAMAIN5-110/+96
2021-01-27[HICN-668] Fix leaks + double freeJordan Augé5-110/+96
Change-Id: I88795e5dc2a55df7ffee5cf66a9bd4fa5652e353 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-01-26[HICN-677] Fix compilation error for tests in ubuntu bionic.Mauro Sardara1-42/+1
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I5ee18d4039a40bf47e889b90748bdbd94987a5ed
2021-01-26[HICN-677] Add support for unit testing across all subprojectsMauro Sardara15-133/+113
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I7fa6442f53860fe8dcda3c17b63cfca15aa26c63 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-01-22[HICN-676] Memory leak fix in VerifierJacques Samain1-0/+1
Signed-off-by: Jacques Samain <jsamain@cisco.com> Change-Id: If4f45a48734ac8220701899ef179ec5498b0c49d
2021-01-20[HICN-668] Fix leaks + double freeJordan Augé2-8/+23
Change-Id: I976659b160654b511f712e65c8439b91d1cabd55 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2021-01-20[HICN-668] Fix leaks + double freeJacques Samain3-3/+6
Signed-off-by: Jacques Samain <jsamain@cisco.com> Change-Id: Ic52adacaeee737120f08e4fece93eff44fa29f87
2021-01-19Merge "[HICN-668] Fix various leaks across codebase"Mauro Sardara2-7/+23