open-ipv8-lab 0.11.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. open_ipv8_lab-0.11.0/AUTHORS.md +5 -0
  2. open_ipv8_lab-0.11.0/LICENSE +201 -0
  3. open_ipv8_lab-0.11.0/NOTICE +13 -0
  4. open_ipv8_lab-0.11.0/PKG-INFO +282 -0
  5. open_ipv8_lab-0.11.0/README.md +257 -0
  6. open_ipv8_lab-0.11.0/pyproject.toml +57 -0
  7. open_ipv8_lab-0.11.0/setup.cfg +4 -0
  8. open_ipv8_lab-0.11.0/src/ipv8lab/__init__.py +6 -0
  9. open_ipv8_lab-0.11.0/src/ipv8lab/__main__.py +8 -0
  10. open_ipv8_lab-0.11.0/src/ipv8lab/address.py +231 -0
  11. open_ipv8_lab-0.11.0/src/ipv8lab/benchmark.py +110 -0
  12. open_ipv8_lab-0.11.0/src/ipv8lab/bgp8_selection.py +244 -0
  13. open_ipv8_lab-0.11.0/src/ipv8lab/capture.py +85 -0
  14. open_ipv8_lab-0.11.0/src/ipv8lab/cf_dashboard.py +528 -0
  15. open_ipv8_lab-0.11.0/src/ipv8lab/checksum.py +16 -0
  16. open_ipv8_lab-0.11.0/src/ipv8lab/cli/__init__.py +2 -0
  17. open_ipv8_lab-0.11.0/src/ipv8lab/cli/addr.py +91 -0
  18. open_ipv8_lab-0.11.0/src/ipv8lab/cli/bench_cli.py +53 -0
  19. open_ipv8_lab-0.11.0/src/ipv8lab/cli/bgp8_cli.py +391 -0
  20. open_ipv8_lab-0.11.0/src/ipv8lab/cli/capture_cli.py +85 -0
  21. open_ipv8_lab-0.11.0/src/ipv8lab/cli/cf_dashboard_cli.py +286 -0
  22. open_ipv8_lab-0.11.0/src/ipv8lab/cli/dashboard_cli.py +32 -0
  23. open_ipv8_lab-0.11.0/src/ipv8lab/cli/docker_cli.py +241 -0
  24. open_ipv8_lab-0.11.0/src/ipv8lab/cli/frag_cli.py +240 -0
  25. open_ipv8_lab-0.11.0/src/ipv8lab/cli/fuzzer_cli.py +196 -0
  26. open_ipv8_lab-0.11.0/src/ipv8lab/cli/main.py +61 -0
  27. open_ipv8_lab-0.11.0/src/ipv8lab/cli/mtls_cli.py +320 -0
  28. open_ipv8_lab-0.11.0/src/ipv8lab/cli/multizone_cli.py +389 -0
  29. open_ipv8_lab-0.11.0/src/ipv8lab/cli/nat8_cli.py +296 -0
  30. open_ipv8_lab-0.11.0/src/ipv8lab/cli/netflow8_cli.py +304 -0
  31. open_ipv8_lab-0.11.0/src/ipv8lab/cli/packet_cli.py +112 -0
  32. open_ipv8_lab-0.11.0/src/ipv8lab/cli/pcap_cli.py +222 -0
  33. open_ipv8_lab-0.11.0/src/ipv8lab/cli/qos_cli.py +325 -0
  34. open_ipv8_lab-0.11.0/src/ipv8lab/cli/route_cli.py +82 -0
  35. open_ipv8_lab-0.11.0/src/ipv8lab/cli/traceroute_cli.py +162 -0
  36. open_ipv8_lab-0.11.0/src/ipv8lab/cli/tui_cli.py +125 -0
  37. open_ipv8_lab-0.11.0/src/ipv8lab/cli/udp_cli.py +57 -0
  38. open_ipv8_lab-0.11.0/src/ipv8lab/cli/xlate8_cli.py +389 -0
  39. open_ipv8_lab-0.11.0/src/ipv8lab/cli/zone_cli.py +404 -0
  40. open_ipv8_lab-0.11.0/src/ipv8lab/companions.py +438 -0
  41. open_ipv8_lab-0.11.0/src/ipv8lab/compliance.py +128 -0
  42. open_ipv8_lab-0.11.0/src/ipv8lab/cost_factor.py +197 -0
  43. open_ipv8_lab-0.11.0/src/ipv8lab/dashboard.py +236 -0
  44. open_ipv8_lab-0.11.0/src/ipv8lab/dhcp8.py +179 -0
  45. open_ipv8_lab-0.11.0/src/ipv8lab/dns_a8.py +101 -0
  46. open_ipv8_lab-0.11.0/src/ipv8lab/docker_testbed.py +514 -0
  47. open_ipv8_lab-0.11.0/src/ipv8lab/dump.py +58 -0
  48. open_ipv8_lab-0.11.0/src/ipv8lab/errors.py +32 -0
  49. open_ipv8_lab-0.11.0/src/ipv8lab/fragmentation.py +305 -0
  50. open_ipv8_lab-0.11.0/src/ipv8lab/fuzzer.py +603 -0
  51. open_ipv8_lab-0.11.0/src/ipv8lab/icmpv8.py +233 -0
  52. open_ipv8_lab-0.11.0/src/ipv8lab/integration.py +429 -0
  53. open_ipv8_lab-0.11.0/src/ipv8lab/mtls.py +835 -0
  54. open_ipv8_lab-0.11.0/src/ipv8lab/multicast.py +117 -0
  55. open_ipv8_lab-0.11.0/src/ipv8lab/multizone.py +377 -0
  56. open_ipv8_lab-0.11.0/src/ipv8lab/nat8.py +487 -0
  57. open_ipv8_lab-0.11.0/src/ipv8lab/netflow8.py +473 -0
  58. open_ipv8_lab-0.11.0/src/ipv8lab/netlog8.py +237 -0
  59. open_ipv8_lab-0.11.0/src/ipv8lab/node.py +33 -0
  60. open_ipv8_lab-0.11.0/src/ipv8lab/packet.py +188 -0
  61. open_ipv8_lab-0.11.0/src/ipv8lab/pcap_export.py +330 -0
  62. open_ipv8_lab-0.11.0/src/ipv8lab/plugin.py +92 -0
  63. open_ipv8_lab-0.11.0/src/ipv8lab/pvrst.py +110 -0
  64. open_ipv8_lab-0.11.0/src/ipv8lab/qos.py +410 -0
  65. open_ipv8_lab-0.11.0/src/ipv8lab/ratelimit.py +102 -0
  66. open_ipv8_lab-0.11.0/src/ipv8lab/route.py +143 -0
  67. open_ipv8_lab-0.11.0/src/ipv8lab/security.py +176 -0
  68. open_ipv8_lab-0.11.0/src/ipv8lab/simulator.py +155 -0
  69. open_ipv8_lab-0.11.0/src/ipv8lab/traceroute8.py +365 -0
  70. open_ipv8_lab-0.11.0/src/ipv8lab/transport.py +113 -0
  71. open_ipv8_lab-0.11.0/src/ipv8lab/tui_dashboard.py +424 -0
  72. open_ipv8_lab-0.11.0/src/ipv8lab/tunnel.py +85 -0
  73. open_ipv8_lab-0.11.0/src/ipv8lab/udp_runner.py +233 -0
  74. open_ipv8_lab-0.11.0/src/ipv8lab/utils/__init__.py +2 -0
  75. open_ipv8_lab-0.11.0/src/ipv8lab/utils/formatting.py +9 -0
  76. open_ipv8_lab-0.11.0/src/ipv8lab/validation.py +197 -0
  77. open_ipv8_lab-0.11.0/src/ipv8lab/vrf.py +127 -0
  78. open_ipv8_lab-0.11.0/src/ipv8lab/whois8.py +217 -0
  79. open_ipv8_lab-0.11.0/src/ipv8lab/xlate8_flow.py +356 -0
  80. open_ipv8_lab-0.11.0/src/ipv8lab/zoneserver.py +375 -0
  81. open_ipv8_lab-0.11.0/src/open_ipv8_lab.egg-info/PKG-INFO +282 -0
  82. open_ipv8_lab-0.11.0/src/open_ipv8_lab.egg-info/SOURCES.txt +141 -0
  83. open_ipv8_lab-0.11.0/src/open_ipv8_lab.egg-info/dependency_links.txt +1 -0
  84. open_ipv8_lab-0.11.0/src/open_ipv8_lab.egg-info/entry_points.txt +2 -0
  85. open_ipv8_lab-0.11.0/src/open_ipv8_lab.egg-info/requires.txt +10 -0
  86. open_ipv8_lab-0.11.0/src/open_ipv8_lab.egg-info/top_level.txt +1 -0
  87. open_ipv8_lab-0.11.0/tests/test_address.py +227 -0
  88. open_ipv8_lab-0.11.0/tests/test_benchmark.py +63 -0
  89. open_ipv8_lab-0.11.0/tests/test_bgp8_cli.py +371 -0
  90. open_ipv8_lab-0.11.0/tests/test_bgp8_selection.py +468 -0
  91. open_ipv8_lab-0.11.0/tests/test_capture.py +119 -0
  92. open_ipv8_lab-0.11.0/tests/test_cf_dashboard.py +184 -0
  93. open_ipv8_lab-0.11.0/tests/test_cf_dashboard_cli.py +296 -0
  94. open_ipv8_lab-0.11.0/tests/test_checksum.py +29 -0
  95. open_ipv8_lab-0.11.0/tests/test_companions.py +380 -0
  96. open_ipv8_lab-0.11.0/tests/test_compliance.py +110 -0
  97. open_ipv8_lab-0.11.0/tests/test_cost_factor.py +159 -0
  98. open_ipv8_lab-0.11.0/tests/test_dashboard.py +102 -0
  99. open_ipv8_lab-0.11.0/tests/test_dhcp8.py +240 -0
  100. open_ipv8_lab-0.11.0/tests/test_dns_a8.py +128 -0
  101. open_ipv8_lab-0.11.0/tests/test_docker_cli.py +250 -0
  102. open_ipv8_lab-0.11.0/tests/test_docker_testbed.py +320 -0
  103. open_ipv8_lab-0.11.0/tests/test_dump.py +59 -0
  104. open_ipv8_lab-0.11.0/tests/test_frag_cli.py +127 -0
  105. open_ipv8_lab-0.11.0/tests/test_fragmentation.py +300 -0
  106. open_ipv8_lab-0.11.0/tests/test_fuzzer.py +396 -0
  107. open_ipv8_lab-0.11.0/tests/test_fuzzer_cli.py +140 -0
  108. open_ipv8_lab-0.11.0/tests/test_icmpv8.py +135 -0
  109. open_ipv8_lab-0.11.0/tests/test_integration.py +270 -0
  110. open_ipv8_lab-0.11.0/tests/test_mtls.py +702 -0
  111. open_ipv8_lab-0.11.0/tests/test_multicast.py +133 -0
  112. open_ipv8_lab-0.11.0/tests/test_multizone.py +395 -0
  113. open_ipv8_lab-0.11.0/tests/test_multizone_cli.py +367 -0
  114. open_ipv8_lab-0.11.0/tests/test_nat8.py +286 -0
  115. open_ipv8_lab-0.11.0/tests/test_nat8_cli.py +230 -0
  116. open_ipv8_lab-0.11.0/tests/test_netflow8.py +502 -0
  117. open_ipv8_lab-0.11.0/tests/test_netflow8_cli.py +294 -0
  118. open_ipv8_lab-0.11.0/tests/test_netlog8.py +256 -0
  119. open_ipv8_lab-0.11.0/tests/test_packet.py +128 -0
  120. open_ipv8_lab-0.11.0/tests/test_pcap_cli.py +201 -0
  121. open_ipv8_lab-0.11.0/tests/test_pcap_export.py +223 -0
  122. open_ipv8_lab-0.11.0/tests/test_plugin.py +101 -0
  123. open_ipv8_lab-0.11.0/tests/test_pvrst.py +134 -0
  124. open_ipv8_lab-0.11.0/tests/test_qos.py +333 -0
  125. open_ipv8_lab-0.11.0/tests/test_qos_cli.py +266 -0
  126. open_ipv8_lab-0.11.0/tests/test_ratelimit.py +101 -0
  127. open_ipv8_lab-0.11.0/tests/test_route.py +97 -0
  128. open_ipv8_lab-0.11.0/tests/test_security.py +127 -0
  129. open_ipv8_lab-0.11.0/tests/test_simulator.py +294 -0
  130. open_ipv8_lab-0.11.0/tests/test_traceroute8.py +312 -0
  131. open_ipv8_lab-0.11.0/tests/test_traceroute_cli.py +143 -0
  132. open_ipv8_lab-0.11.0/tests/test_transport.py +64 -0
  133. open_ipv8_lab-0.11.0/tests/test_tui_cli.py +100 -0
  134. open_ipv8_lab-0.11.0/tests/test_tui_dashboard.py +263 -0
  135. open_ipv8_lab-0.11.0/tests/test_tunnel.py +98 -0
  136. open_ipv8_lab-0.11.0/tests/test_udp_runner.py +77 -0
  137. open_ipv8_lab-0.11.0/tests/test_validation.py +147 -0
  138. open_ipv8_lab-0.11.0/tests/test_vrf.py +123 -0
  139. open_ipv8_lab-0.11.0/tests/test_whois8.py +151 -0
  140. open_ipv8_lab-0.11.0/tests/test_xlate8_cli.py +348 -0
  141. open_ipv8_lab-0.11.0/tests/test_xlate8_flow.py +343 -0
  142. open_ipv8_lab-0.11.0/tests/test_zone_cli.py +310 -0
  143. open_ipv8_lab-0.11.0/tests/test_zoneserver.py +286 -0
@@ -0,0 +1,5 @@
1
+ # Authors
2
+
3
+ Created and maintained by:
4
+
5
+ Aleksei Aleinikov (@LF3551) — contact@alekseialeinikov.com — https://www.alekseialeinikov.com
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Aleksei Aleinikov
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,13 @@
1
+ IPv8 Lab
2
+ Copyright 2026 Aleksei Aleinikov
3
+
4
+ SPDX-License-Identifier: Apache-2.0
5
+
6
+ This product was originally created by Aleksei Aleinikov (@LF3551).
7
+ Contact: contact@alekseialeinikov.com
8
+ Website: https://www.alekseialeinikov.com
9
+ Project: https://github.com/LF3551/Open-IPv8-Lab
10
+
11
+ This NOTICE file must be included in all copies or substantial portions
12
+ of the software, as required by the Apache License 2.0, Section 4(d).
13
+ Attribution to the original author must be preserved in any redistribution.
@@ -0,0 +1,282 @@
1
+ Metadata-Version: 2.4
2
+ Name: open-ipv8-lab
3
+ Version: 0.11.0
4
+ Summary: Experimental userspace IPv8 toolkit implementing draft-thain-ipv8-00 — address parsing, packet building, routing simulation, ICMPv8, 8to4 tunnelling, and more.
5
+ Author-email: Aleksei Aleinikov <contact@alekseialeinikov.com>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/LF3551/Open-IPv8-Lab
8
+ Project-URL: Repository, https://github.com/LF3551/Open-IPv8-Lab
9
+ Keywords: ipv8,networking,internet-protocol,userspace-networking,packet-parser,routing-simulator,protocol-research,draft-thain-ipv8-00,icmpv8,asn-routing
10
+ Requires-Python: >=3.11
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ License-File: NOTICE
14
+ License-File: AUTHORS.md
15
+ Requires-Dist: typer>=0.12.0
16
+ Requires-Dist: pyyaml>=6.0.0
17
+ Requires-Dist: rich>=13.0.0
18
+ Requires-Dist: textual>=0.60.0
19
+ Provides-Extra: dev
20
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
21
+ Requires-Dist: pytest-asyncio>=0.24.0; extra == "dev"
22
+ Requires-Dist: ruff>=0.5.0; extra == "dev"
23
+ Requires-Dist: mypy>=1.10.0; extra == "dev"
24
+ Dynamic: license-file
25
+
26
+ # Open-IPv8-Lab
27
+
28
+ <p align="center">
29
+ <img src="assets/logo.png" alt="Open-IPv8-Lab" width="100%">
30
+ </p>
31
+
32
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
33
+ [![SPDX](https://img.shields.io/badge/SPDX-Apache--2.0-brightgreen.svg)](https://spdx.org/licenses/Apache-2.0.html)
34
+ [![Tests](https://github.com/LF3551/Open-IPv8-Lab/actions/workflows/tests.yml/badge.svg)](https://github.com/LF3551/Open-IPv8-Lab/actions/workflows/tests.yml)
35
+
36
+ Open-IPv8-Lab is an experimental userspace toolkit implementing [draft-thain-ipv8-00](https://www.ietf.org/archive/id/draft-thain-ipv8-00.html) — the Internet Protocol Version 8 specification. It covers ASN-based 64-bit addressing, packet encoding/decoding, two-tier routing, ICMPv8, 8to4 tunnelling, security filtering, VRF, PVRST, Cost Factor, WHOIS8, DHCP8, Zone Server (OAuth8/ACL8), NetLog8 telemetry, all companion spec modules, end-to-end integration scenarios, multi-zone simulation, BGP8 path selection with CF metric, XLATE8 north-south traffic flow, PCAP export for Wireshark integration, IPv8 packet fragmentation and reassembly, NAT8, NetFlow8, QoS, Docker testbed, TUI dashboard, packet fuzzer, mTLS encryption layer, and interactive Zone Server CLI.
37
+
38
+ Created and maintained by Aleksei Aleinikov ([@LF3551](https://github.com/LF3551)).
39
+
40
+ ## Status
41
+
42
+ > **This project is experimental and educational.** It is not an official IPv8 implementation, not production networking software.
43
+
44
+ ## Spec coverage (draft-thain-ipv8-00)
45
+
46
+ | Section | Topic | Module |
47
+ |---------|-------|--------|
48
+ | 1.3 | DHCP8 lease (single-response provisioning) | `dhcp8.py` |
49
+ | 1.3 | Zone Server (OAuth8 cache, ACL8 engine) | `zoneserver.py` |
50
+ | 1.4 | East-west / north-south security | `zoneserver.py` |
51
+ | 1.6 | Cost Factor (CF) metric simulation | `cost_factor.py` |
52
+ | 3 | Address format (64-bit, ASN prefix + host) | `address.py` |
53
+ | 4 | Address classes (unicast, multicast, broadcast, RINE, internal zone) | `address.py` |
54
+ | 5.1 | Packet header (28-byte, version 8) | `packet.py` |
55
+ | 6 | ASN dot notation | `address.py` |
56
+ | 7 | DNS A8 record (even/odd pair, RFC 1918 validation) | `dns_a8.py` |
57
+ | 8.7 | Two-tier routing table | `route.py` |
58
+ | 8.8 | VRF (management VLAN 4090, OOB VLAN 4091) | `vrf.py` |
59
+ | 9 | ICMPv8 (Echo, Unreachable, Redirect, Time Exceeded) | `icmpv8.py` |
60
+ | 10–12 | Multicast, anycast, broadcast | `multicast.py` |
61
+ | 13.3 | 8to4 tunnelling | `tunnel.py` |
62
+ | 17.1–17.3 | Device compliance tiers | `compliance.py` |
63
+ | 17.4 | PVRST (Zone Server root election) | `pvrst.py` |
64
+ | 17.5 | NIC rate limits | `ratelimit.py` |
65
+ | 18 | Security — ingress filtering, prefix protection | `security.py`, `validation.py` |
66
+ | 18 | NetLog8 telemetry (SEC-ALERT, E3 traps) | `netlog8.py` |
67
+ | — | WHOIS8 mock resolver (ASN/route validation) | `whois8.py` |
68
+ | — | Companion specs (BGP8, OSPF8, IS-IS8, RINE, ARP8, XLATE8, Update8, WiFi8, SNMPv8) | `companions.py` |
69
+ | — | End-to-end integration (DHCP8 → OAuth8 → ACL8 → routing) | `integration.py` |
70
+ | — | Multi-zone simulation (Zone Server pairs, IBGP8 inter-zone routing) | `multizone.py` |
71
+ | 8.4 | BGP8 path selection with CF metric (anomaly detection, failover) | `bgp8_selection.py` |
72
+ | 1.4 | XLATE8 north-south traffic flow (DNS8 → XLATE8 → translation) | `xlate8_flow.py` |
73
+ | — | PCAP export for Wireshark integration (PcapWriter, PcapReader, Lua dissector) | `pcap_export.py` |
74
+ | 5.1 | IPv8 packet fragmentation and reassembly (DF/MF flags, offset, Reassembler) | `fragmentation.py` |
75
+ | — | Interactive Zone Server CLI | `cli/zone_cli.py` |
76
+ | — | NAT8 address translation gateway | `nat8.py` |
77
+ | — | NetFlow8 flow monitoring and telemetry export | `netflow8.py` |
78
+ | — | QoS / traffic shaping based on TOS field | `qos.py` |
79
+ | — | Docker-based multi-node testbed | `docker_testbed.py` |
80
+ | — | TUI dashboard (Rich Live / Textual) | `tui_dashboard.py` |
81
+ | — | Packet fuzzer for protocol security testing | `fuzzer.py` |
82
+ | — | mTLS / encryption layer for Zone Server auth | `mtls.py` |
83
+
84
+ ## Goals
85
+
86
+ - Parse and validate IPv8 64-bit addresses (Section 3)
87
+ - Classify address types: unicast, multicast, broadcast, RINE, internal zone (Section 4)
88
+ - Build and parse spec-compliant IPv8 packets (Section 5.1)
89
+ - Two-tier routing simulation with VRF support (Sections 8.7, 8.8)
90
+ - ICMPv8 messages: Echo, Destination Unreachable, Redirect (Section 9)
91
+ - 8to4 tunnelling for IPv8-over-IPv4 transit (Section 13.3)
92
+ - DNS A8 record parsing with even/odd pair convention (Section 7)
93
+ - Device compliance tier validation (Sections 17.1–17.3)
94
+ - PVRST Zone Server root election (Section 17.4)
95
+ - NIC firmware rate limiting simulation (Section 17.5)
96
+ - Border router ingress filtering and security checks (Section 18)
97
+ - Cost Factor (CF) metric: 7-component path quality with physics floor (Section 1.6)
98
+ - WHOIS8 route/destination validation
99
+ - DHCP8 single-response lease provisioning (Section 1.3)
100
+ - Zone Server OAuth8 JWT cache and ACL8 access control (Sections 1.3, 1.4)
101
+ - NetLog8 telemetry with SEC-ALERT and E3 traps (Section 18)
102
+ - Companion spec modules: BGP8, OSPF8, IS-IS8, RINE, ARP8, XLATE8, Update8, WiFi8, SNMPv8
103
+ - End-to-end integration scenario: DHCP8 → OAuth8 → ACL8 → routing lifecycle
104
+ - Multi-zone simulation with Zone Server pairs and IBGP8-style inter-zone routing
105
+ - BGP8 path selection with CF metric: per-prefix RIB, anomaly detection, failover
106
+ - XLATE8 north-south traffic flow: DNS8 → XLATE8 → address translation (Section 1.4)
107
+ - PCAP export for Wireshark integration: PcapWriter, PcapReader, Lua dissector
108
+ - IPv8 packet fragmentation and reassembly: DF/MF flags, fragment offset, stateful Reassembler
109
+ - Interactive Zone Server CLI: `ipv8lab zone` (init, status, services, ACL8, OAuth8, VLAN)
110
+ - Traceroute8 diagnostic: `ipv8lab traceroute` (multi-hop trace simulation)
111
+ - NAT8 address translation gateway simulation: `ipv8lab nat8`
112
+ - NetFlow8 flow monitoring and telemetry export: `ipv8lab netflow8`
113
+ - QoS / traffic shaping based on TOS field: `ipv8lab qos`
114
+ - Docker-based multi-node testbed: `ipv8lab docker`
115
+ - TUI dashboard — Rich Live / Textual: `ipv8lab tui`
116
+ - Packet fuzzer for protocol security testing: `ipv8lab fuzz`
117
+ - mTLS / encryption layer for Zone Server authentication: `ipv8lab mtls`
118
+ - Mesh network simulation, packet capture, web dashboard, benchmarks, plugins
119
+
120
+ ## Non-goals
121
+
122
+ - No Linux kernel modifications
123
+ - No production networking
124
+ - No real BGP integration
125
+ - No claim of official IETF endorsement
126
+
127
+ ## Installation
128
+
129
+ ```bash
130
+ python -m venv .venv
131
+ source .venv/bin/activate
132
+ pip install -e ".[dev]"
133
+ ```
134
+
135
+ ## Quick start
136
+
137
+ ```bash
138
+ # Parse an IPv8 address
139
+ ipv8lab addr parse 64496.192.0.2.1
140
+
141
+ # Convert ASN to routing prefix
142
+ ipv8lab addr encode-asn 64496
143
+
144
+ # Decode prefix back to ASN
145
+ ipv8lab addr decode-prefix 0.0.251.240
146
+
147
+ # Build a packet
148
+ ipv8lab packet build --src 64496.192.0.2.1 --dst 64497.198.51.100.7 --payload "hello"
149
+
150
+ # Parse a packet from file
151
+ ipv8lab packet parse packet.bin
152
+
153
+ # Run routing simulation
154
+ ipv8lab route simulate --config examples/two_asn_demo.yaml
155
+
156
+ # Zone Server management
157
+ ipv8lab zone init --prefix 127.1.0.0
158
+ ipv8lab zone status
159
+ ipv8lab zone acl-add "*" gateway --action permit
160
+ ipv8lab zone oauth-issue device-42
161
+ ipv8lab zone vlan-check 100
162
+
163
+ # PCAP export for Wireshark
164
+ ipv8lab pcap demo -o demo.pcap
165
+ ipv8lab pcap inspect demo.pcap
166
+ ipv8lab pcap dissector -o ipv8_dissector.lua
167
+ ipv8lab pcap export trace.iv8cap trace.pcap
168
+
169
+ # mTLS encryption layer
170
+ ipv8lab mtls init
171
+ ipv8lab mtls issue my-device
172
+ ipv8lab mtls handshake my-device
173
+ ipv8lab mtls encrypt my-device "secret message"
174
+
175
+ # Packet fuzzer
176
+ ipv8lab fuzz run --iterations 1000
177
+ ipv8lab fuzz run --strategy all --json
178
+ ```
179
+
180
+ ## Example output
181
+
182
+ ```
183
+ ipv8lab addr parse 64496.192.0.2.1
184
+
185
+ Input 64496.192.0.2.1
186
+ Format ASN dot notation
187
+ ASN 64496
188
+ Routing prefix 0.0.251.240
189
+ Host part 192.0.2.1
190
+ Full notation 0.0.251.240.192.0.2.1
191
+ ```
192
+
193
+ ## Testing
194
+
195
+ ```bash
196
+ pytest -v
197
+ ```
198
+
199
+ 1406 tests covering all implemented spec sections.
200
+
201
+ ## Project structure
202
+
203
+ ```
204
+ src/ipv8lab/
205
+ ├── address.py # IPv8 64-bit addressing (Section 3, 4, 6)
206
+ ├── packet.py # Packet header (Section 5.1)
207
+ ├── checksum.py # CRC32 checksum
208
+ ├── route.py # Two-tier routing (Section 8.7)
209
+ ├── vrf.py # Virtual Routing & Forwarding (Section 8.8)
210
+ ├── icmpv8.py # ICMPv8 protocol (Section 9)
211
+ ├── multicast.py # Multicast/broadcast (Sections 10–12)
212
+ ├── tunnel.py # 8to4 tunnelling (Section 13.3)
213
+ ├── dns_a8.py # DNS A8 records (Section 7)
214
+ ├── compliance.py # Device compliance tiers (Sections 17.1–17.3)
215
+ ├── pvrst.py # PVRST spanning tree (Section 17.4)
216
+ ├── ratelimit.py # NIC rate limits (Section 17.5)
217
+ ├── security.py # Ingress filtering (Section 18)
218
+ ├── validation.py # Prefix validation (Sections 3.5, 3.9, 3.10)
219
+ ├── cost_factor.py # Cost Factor (CF) metric (Section 1.6)
220
+ ├── whois8.py # WHOIS8 mock resolver
221
+ ├── dhcp8.py # DHCP8 lease simulation (Section 1.3)
222
+ ├── zoneserver.py # Zone Server: OAuth8 cache, ACL8 (Sections 1.3, 1.4)
223
+ ├── netlog8.py # NetLog8 telemetry client (Section 18)
224
+ ├── companions.py # Companion spec modules (7 companion drafts)
225
+ ├── integration.py # End-to-end integration scenario
226
+ ├── multizone.py # Multi-zone simulation with Zone Server pairs
227
+ ├── bgp8_selection.py # BGP8 path selection with CF metric
228
+ ├── xlate8_flow.py # XLATE8 north-south traffic flow
229
+ ├── pcap_export.py # PCAP export for Wireshark (.pcap, Lua dissector)
230
+ ├── fragmentation.py # Packet fragmentation and reassembly
231
+ ├── cf_dashboard.py # CF performance dashboard (HTML, JSON API)
232
+ ├── errors.py # Error hierarchy
233
+ ├── node.py # Node abstraction
234
+ ├── simulator.py # Mesh network simulator
235
+ ├── transport.py # UDP transport
236
+ ├── udp_runner.py # Async UDP node orchestration
237
+ ├── capture.py # Packet capture (.iv8cap)
238
+ ├── dashboard.py # Web dashboard
239
+ ├── benchmark.py # Performance benchmarks
240
+ ├── plugin.py # Plugin system
241
+ ├── dump.py # Hex dump & JSON output
242
+ ├── nat8.py # NAT8 address translation gateway
243
+ ├── netflow8.py # NetFlow8 telemetry export
244
+ ├── qos.py # QoS / traffic shaping (TOS field)
245
+ ├── docker_testbed.py # Docker-based multi-node testbed
246
+ ├── tui_dashboard.py # TUI dashboard (Textual)
247
+ ├── fuzzer.py # Packet fuzzer for security testing
248
+ ├── mtls.py # mTLS encryption layer for Zone Server
249
+ ├── traceroute8.py # Traceroute8 diagnostic utility
250
+ └── cli/ # Typer CLI commands
251
+ ```
252
+
253
+ ## Documentation
254
+
255
+ - [Overview](docs/overview.md)
256
+ - [Addressing](docs/addressing.md)
257
+ - [Packet format](docs/packet-format.md)
258
+ - [Routing simulator](docs/routing-simulator.md)
259
+ - [Testbed](docs/testbed.md)
260
+ - [Roadmap](docs/roadmap.md)
261
+
262
+ ## License
263
+
264
+ This project is licensed under the [Apache License 2.0](LICENSE).
265
+
266
+ SPDX-License-Identifier: `Apache-2.0`
267
+
268
+ ## Attribution
269
+
270
+ Use, modification, and distribution are permitted under the Apache License 2.0,
271
+ provided that the following conditions are met:
272
+
273
+ - The original copyright notice and license text must be preserved in all copies or substantial portions of the software.
274
+ - The [NOTICE](NOTICE) file must be included in any redistribution.
275
+ - Attribution to the original author — **Aleksei Aleinikov** ([@LF3551](https://github.com/LF3551)) — must remain intact.
276
+
277
+ If you use this project in your own work, please credit:
278
+
279
+ ```
280
+ IPv8 Lab — Copyright 2026 Aleksei Aleinikov
281
+ https://github.com/LF3551/Open-IPv8-Lab
282
+ ```