aboutsummaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2021-04-15[HICN-690] Transport Library Major RefactoryLuca Muscariello4-259/+478
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>
2020-11-20[HICN-658] Improve memif connector.Mauro Sardara1-2/+4
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ie3b48148dcb3f782a1ca906a5ba59d605f17f93e Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-07-17[HICN-633] compute the correct data packet size in hiperfmichele papalini1-1/+4
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: If3492136cfc41da94d4d80538694eae4428c6f8c
2020-07-17[HICN-632] Do not send packets larger more than 1400 bytes over RTC socketMauro Sardara1-217/+236
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ib0a3fbdd35d451c1892b66b22f1599141b92e213 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-04-11[HICN-595] Bring TLS up to dateOlivier Roques1-248/+231
HICN-2 would enable TLS only if OpenSSL 1.1.1 was present. However the mechanism to do so was broken and hiperf always ended up using normal consumer and producer sockets. This patch fixes that by updating the build files. It also fixes various bugs in the TLS implementation that went unnoticed and cleans up the code. Change-Id: Ifda75a9929e14460af43fe79d737d0c926bb671e Signed-off-by: Olivier Roques <oroques+fdio@cisco.com> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-03-31[HICN-581] update hicn stack to support windows, againAngelo Mantellini1-1/+3
Alberto Compagno3-279/+532
P2P confidential communications exploit the TLS 1.3 protocol to let a consumer to establish a secure communication on an hICN name. Currently we don't support the consumer authentication (mutual authentication in TLS) and the 0-rtt session establishment. Change-Id: I2be073847c08a17f28c837d444081920c5e57a07 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Signed-off-by: Olivier Roques <oroques+fdio@cisco.com> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-02-12[HICN-512] documentation bundle using sphinxLuca Muscariello1-325/+0
Change-Id: I1dcbca50f7406ef2714683547b6bb32463e1baf8 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2020-02-03[HICN-489] Add iOS support to hicn stackAngelo Mantellini1-26/+28
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I8fa8c4eaa3218eb4be46f713b15ab789c6930aa0
2019-12-11[HICN-449] [HICN-430] Build sysrepo plugin. Update sysrepo and libyang ↵Mauro Sardara1-1/+0
dependencies for centos. Change-Id: I92afec16346929e101e57466d5621e4ebe4dc4d2 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-12-10[HICN-430] Rework on CMakeMauro Sardara1-1/+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-11-22[HICN-412] Added option LINK_FLAGSgto build_executable to specify link flagsAlberto Compagno1-1/+4
Change-Id: I6b382abe374d896c9ea1e0ef5573ba166fafec94 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-04[HICN-262] Fix binary api to prevent byteswapping of ip addresses in vapiAlberto Compagno1-0/+1
Change-Id: If3f9a7db1e1310fdc08d1003b28e5e1d4006b61e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-31[HICN-371] Solve memory leaks in libtransport.Mauro Sardara1-0/+5
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I654843c3361c7bdb4b160f2441f08e8d91e97384 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-10-22[HICN-328] Reworking setSocketOption and getSocketOption to be thread-safeAlberto Compagno1-9/+8
Change-Id: Ie22572822b9ac1e6c300fd7982035c799546bd76 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-09Merge "[HICN-280] Adding set interest lifetime option and deallocating data ↵Alberto Compagno1-8/+14
packet at consumer side before the content is completely downloaded in order to allow to use an endless hiper producer."
2019-10-09[HICN-280] Adding set interest lifetime option and deallocatingAlberto Compagno1-8/+14
data packet at consumer side before the content is completely downloaded in order to allow to use an endless hiper producer. Change-Id: I3613b5310a4f8b696818f9453d03682fd61b1f93 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-07[HICN-298] Release new hICN app for AndroidJordan Augé1-1/+1
Change-Id: I43adc62fadf00690b687078d739788dffdc5e566 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-04[HICN-293] remove stats in hiperf in RTC modemichele papalini1-2/+11
Change-Id: I6e577a4122042248900b4f48fd9f4fd45825aae9 Signed-off-by: michele papalini <micpapal@cisco.com>
2019-09-24[HICN-279] Added libmemif packaging.Mauro Sardara52-12519/+1
Change-Id: Ie8662059163b7a01211bb18fb8f6b77bbbc07279 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-09-17[ HICN-277] Add README to router pluginmhemmatp1-0/+49
Signed-off-by: mhemmatp <mhemmatp@cisco.com> Change-Id: I838da25116f5fc4a674957510699bf5a00c99cad
2019-07-26[HICN-253] Mark cmake target for library as static or shared.Mauro Sardara1-4/+6
Change-Id: I1e8a14f9255f04bddbb87f74a6d6163a02dedb22 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-07-24[HICN-251] Renaming hicn_extra_plugin.so in hicn_router.so and adjusting ↵Alberto Compagno1-2/+5
installation path to cope with x86_64-linux-gnu Change-Id: I5314b871bd4143f7249f3a3f639e17a25b22380b Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-07-24Merge "[HICN-243] Adding router plugin"Luca Muscariello14-0/+3553
2019-07-24[HICN-243] Adding router pluginmasoud hemmatpour14-0/+3553
The original package is https://gerrit.fd.io/r/#/c/15062/ which was compatible with VPP 18.10. This patch is the modification of the original to be compatible with VPP 19.04. It was tested with FRR (i.e., OSPF). Change-Id: I85d579b26be2ef68f1b4a1d54e5c599b3665574b Signed-off-by: masoud hemmatpour <mhemmatp@cisco.com>
2019-07-08[HICN-242] Perform only one allocation for the whole buffer passed to produce()Mauro Sardara1-5/+13
Change-Id: Ib4628d0a7711e2d7175b3dbb5c152dd22616ff32 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-07-05[HICN-240] Open stdin fd only in interacrive mode.Mauro Sardara1-1/+6
Change-Id: I5978776bde6b013a0a9829d62d3d77d6ab1675ad Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-06-25[HICN-223] Utils tutorialMauro Sardara1-23/+211
Change-Id: Icfa91c6f939d073c358c146cd0cf2ab13733c603 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-05-19Merge "[HICN-202] Compile apps in release mode if no build mode is specified"Alberto Compagno1-0/+5
2019-05-19[HICN-202] Compile apps in release mode if no build mode is specifiedMauro Sardara1-0/+5
Change-Id: I23680a4a4f3863e9aef396dbb9aebe7cc75c3353 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-05-16[HICN-195] Generate static libs for androidAngelo Mantellini2-1/+8
Change-Id: Ib78e0ba5108713c6fac0e422eb7bb6f7ba10abc7 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-05-13Merge "[HICN-194] support for android environment"Mauro Sardara1-0/+2
2019-05-13[HICN-194] support for android environmentAngelo Mantellini1-0/+2
Change-Id: I11a614709152035784e492ccd99bc383765a0aa1 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-05-09[HICN-191]updating plugin to run on vpp 19.04Masoud Hemmatpour1-2/+2
Change-Id: I85ceabb1bde847edf030c6ccb3943be047d167f5 Signed-off-by: Masoud Hemmatpour <mhemmatp@cisco.com>
2019-05-03[HICN-153] vapi definition warningMasoud Hemmatpour23-1728/+5560
Change-Id: I50f381540e171fe2808d4e56cc24ba6d66e8a2ab Signed-off-by: Masoud Hemmatpour <mhemmatp@cisco.com>
2019-04-18[HICN-178] Sync send of control messages.v19.04Mauro Sardara1-0/+2
Change-Id: I9a07c6c806ceba10f80a5f67337dce2eee76120d Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-04-15[HICN-155] Consumer socket allows now to read N bytes from the network, ↵Mauro Sardara2-115/+211
where N is defined by the application. Change-Id: Ib20309b40e43e4c0db09b9b484e18cd2e3ebf581 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-04-15[HICN-163] check inside hiperf if the client receives all the packets in ↵michele papalini1-7/+86
case of RTC Change-Id: Ie418b4cdba3e4e17cfe302c0e79e9d786e40cbd4 Signed-off-by: michele papalini <micpapal@cisco.com>
2019-04-03[HICN-164] hiperf RTC ratemichele papalini1-4/+4
Change-Id: I17eae19aaf717255c8812738868c27e4e5a9bb95 Signed-off-by: michele papalini <micpapal@cisco.com>
2019-04-02[HICN-159] RTC traffic in hiperfmichele papalini1-160/+258
Change-Id: I6a6d791e97446aab03ea463046d24f98444e9a1c Signed-off-by: michele papalini <micpapal@cisco.com>