KernLab.Tier.Core.Net
1.0.0-alpha.17
This is a prerelease version of KernLab.Tier.Core.Net.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package KernLab.Tier.Core.Net --version 1.0.0-alpha.17
NuGet\Install-Package KernLab.Tier.Core.Net -Version 1.0.0-alpha.17
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KernLab.Tier.Core.Net" Version="1.0.0-alpha.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KernLab.Tier.Core.Net" Version="1.0.0-alpha.17" />
<PackageReference Include="KernLab.Tier.Core.Net" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KernLab.Tier.Core.Net --version 1.0.0-alpha.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KernLab.Tier.Core.Net, 1.0.0-alpha.17"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KernLab.Tier.Core.Net@1.0.0-alpha.17
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KernLab.Tier.Core.Net&version=1.0.0-alpha.17&prerelease
#tool nuget:?package=KernLab.Tier.Core.Net&version=1.0.0-alpha.17&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
KernLab.Tier.Core.Net
KernLab.Tier 的网络与共识层——节点身份 + 统一线协议 + 介质无关传输三形态 + 共识/对等机制全家(raft / HyParView / Swarm),三段式装配成节点。零产品知识(永不依赖 KernLab.Tier.Products——编译期依赖锁封堵)。
能力
- 线协议(Wire):统一帧(16B 帧头双 CRC32C,
[BinaryLayout]生成 codec)+ 握手协商(集群标签/安全档/特征位) - 传输三形态(Channels):数据报(尽力送达)× 请求回调(CorrId 关联 + 超时 + 可选 at-least-once)× 流式(可靠有序 + 背压,GB 级 O(单帧))——
IProtocolTransport介质无关消费面 - 传输介质(Transport):TCP 长连接(三步握手/双优先写队列/保活)∥ InProcess 枢纽(同构基准)∥ UDP 数据报承载——故障注入面(延迟/分区/丢包/乱序)介质等价
- raft 共识(Raft):选举/复制/提交/成员变更/ReadIndex 线性读;单写者事件循环 + per-peer 复制链 + apply 管道;快照安装(单源流式 ∥ 多源 swarm)
- P2P 会员(P2P):HyParView partial view 维护 + Phi Accrual 故障检测 + gossip 广播
- 多源块同步(Swarm):manifest 协商 + K 并行拉块 + 错块拦截 + 反熵对账——快照 swarm 的协议族复用件
- 安全(Security):Plaintext ∥ KeyPair(签名+ECDH+AEAD,推荐缺省)∥ MutualTls——防降级 fail-closed
- 装配(Hosting):
ClusterBuilder(集群成员)/NetClientBuilder(直连客户端)→StartAsync一次成型NodeEndpoint
快速开始
await using var endpoint = await ClusterBuilder.Create(nodeId)
.ClusterTag(0x74696572) // 错集群握手期拒绝
.Listen("0.0.0.0", 9400)
.Peers(peers) // NodeId → 端点
.WithMechanism(myMechanism) // 机制显式 opt-in
.StartAsync(ct);
await endpoint.SendRequestAsync(target, protocolId, payload,
new RequestOptions { Timeout = TimeSpan.FromSeconds(2) }, ct);
依赖
- KernLab.Tier.Core(执行原语/日志/可观测——不自建)
文档
- 使用指南:docs/net.md(在线:docs.kernlab.dev/tier)
- 性能基线:docs/perf/loopback-baseline.md
- 积木拼装指南与红线:COORDINATION.md
状态
Beta—— raft 语义与线协议已按场景矩阵验证;生产部署请以产品层(KernLab.Tier.Products.Net)完整故障注入验证为准。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- KernLab.Loom.Abstractions (>= 1.0.0-rc.2)
- KernLab.Tier.Core (>= 1.0.0-alpha.17)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KernLab.Tier.Core.Net:
| Package | Downloads |
|---|---|
|
KernLab.Tier.Products.Net
KernLab.Tier 的 raft × TierWAL 官方产品节点——Core.Net 共识与 Products 存储的产品层汇合点:TierRaftNode 一个装配器成完整节点(TierWAL 持久化 + raft 共识 + 提交应用管道 + 多源快照分发/反熵 + 宿主调度)。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta.1 | 77 | 10/31/2026 |
| 1.0.0-alpha.17 | 81 | 10/21/2026 |
| 1.0.0-alpha.15 | 70 | 10/8/2026 |
| 1.0.0-alpha.14 | 103 | 9/30/2026 |
| 1.0.0-alpha.13 | 257 | 9/29/2026 |
| 1.0.0-alpha.12 | 103 | 9/27/2026 |
| 1.0.0-alpha.11 | 92 | 9/26/2026 |