保存到桌面加入收藏设为首页

首页 > 商学院

JBCC公正链协议

内容摘要:A部分:JUST Chain跨链资产转移基于可靠的模块间通信协议构建,包括跨链资产转移,智能合约和分片技术。模块间通信协议写在JUST链的网络层上,称为JUST区块链通信协议(JBCC)。JBCC也使用数据中继技术。JBCC将创建一些中继过程,这些过程监视实现JBCC的一组计算机...
A部分:

JUST Chain跨链资产转移基于可靠的模块间通信协议构建,包括跨链资产转移,智能合约和分片技术。模块间通信协议写在JUST链的网络层上,称为JUST区块链通信协议(JBCC)。

JBCC也使用数据中继技术。JBCC将创建一些中继过程,这些过程监视实现JBCC的一组计算机,连续扫描每台计算机的状态,并在提交传出数据包时在另一台计算机上执行事务。为了正确操作并在两台机器之间建立连接的进度,JBCC仅要求,少存在一个可以在机器之间进行中继的正确且实时的中继过程。通过数据中继技术,计算机不会通过网络基础结构直接向彼此发送消息,而是通过数据中继进程(DRP)创建消息。

JBCC协议提供了数据机密性和可靠性功能。JBCC协,要求数据必须是机密的。数据包括共识状态,客户端,连接,通道和数据包信息。必须证明其他服务器上的所有数据都清晰易读,以便状态机可以选择使数据仅可用于特定的DRP(数据中继过程)。网络层和DRP(数据中继过程)可以以任意方式运行,丢弃,重新排序或复制数据包,有意尝,发送无效事务或以拜占庭方式运行。这是通过为通过JBCC连接发送的每个数据包分配一个序列号来实现的,该序列号由接收计算机上的JBCC处理程序检查,

JBCC是状态

JBCC协议提供了如上所述的可靠性,机密性和身份验证功能。JBCC协议必须为每个数据流初始化并维护某些状态信息。此信息分为两个抽象:连接和通道。每个连接对象都包含有关已连接计算机的共识状态的信息。特定于一对模块的每个通道均包含有关协商的编码和多路复用选项以及状态和序列号的信息。当两个模块希望进行通信时,它们必须在其两台机器之间找到一个现有的连接和通道,或者如果尚不存在,则初始化一个新的连接和通道。初始化连接和通道需要多步握手,一旦完成,

JBCC多路复用

JBCC协议包括多路复用技术,它允许单个服务器中的许多模块同时使用JBCC连接,JBCC在每个连接中提供一组通道,通常希望通道与每台计算机上的单个模块相关联,但是-多对多和一对多渠道也是可能的。通道数不受限制,从而促进了并发吞吐量<该吞吐量仅受底层计算机的吞吐量限制,并且只有一个连接即可跟踪共识信息。

JBCC基本图

JBCC图可以描述为分层协议栈,数据通过该协议栈从上到下和从下到上流动。<如,有两个分布式分类帐A和分类帐B。当分类帐A与分类帐B通信时,根据JBCC协议,信息将被概念化为打包过程,通道过程,连接过程,然后发送给位于分布式中的客户端分类帐A。信息将通过DRP(数据中继过程)发送到共识模块。当从DRP收到分类帐B的数据包时,它还将被解码为通道,<态,数据包,然后将信息解码为分布式分类帐B。


下面是原文转载:


Part A:

JUST Chain cross-chain asset transfer are built on reliable inter-module communication protocol, include cross-chain asset transfer, smart contracts and sharding technology. The inter-module communication protocol is written on the network layer of JUST chain, named JUST Blockchain Communication Protocols (JBCC).

JBCC uses Data Relay technology as well. JBCC will create a few relay processes which monitor a set of machines implementing the JBCC, continuously scanning the state of each machine and executing transactions on another machine when outgoing packets have been committed. For correct operation and progress in a connection between two machines, JBCC requires only that at least one correct and live relay process exists which can relay between the machines. Through Data Relay technology, machines are not directly sending messages to each other over networking infrastructure, but rather creating messages by Data Relay Process (DRP).

JBCC protocols provides data confidentiality and reliability feature. JBCC protocol requires that the data must be confidentiality. The data consists of consensus state, client, connection, channel and packet information. All data which be proved to other servers must be legible so that the state machine may elect to make the data available only to specific DRP (Data Relay Process). The network layer and the DRP (Data Relay Process) may behave in arbitrary ways, dropping, reordering or duplicating packets, purposely attempting to send invalid transactions, or acting in a Byzantine fashion. This is implemented by assigning a sequence number to each packet sent over an JBCC connection, which is checked by the JBCC handler on the receiving machine, and providing a method for the sending machine to check that the receiving machine has in fact received and handled a packet before sending more packets or taking further action.

JBCC is Statefulness

JBCC protocols provide reliability, confidentiality and authentication features as described above. JBCC protocols must initialises and maintains certain status information for each datastream. This information is split between two abstractions: connections & channels. Each connection object contains information about the consensus state of the connected machine. Each channel, specific to a pair of modules, contains information concerning negotiated encoding & multiplexing options and state & sequence numbers. When two modules wish to communicate, they must locate an existing connection & channel between their two machines, or initialise a new connection & channels if none yet exists. Initialising connections & channels requires a multi-step handshake which, once complete, ensures that only the two intended machines are connected, in the case of connections, and ensures that two modules are connected and that future datagrams relayed will be authenticated, encoded, and sequenced as desired, in the case of channels.

JBCC Multiplexing

JBCC protocols include multiplexing technology, it allow for many modules within a single server to use an JBCC connection simultaneously, JBCC provides a set of channels within each connection, Channels are usually expected to be associated with a single module on each machine, but one-to-many and many-to-one channels are also possible. The number of channels is unbounded, facilitating concurrent throughput limited only by the throughput of the underlying machines with only a single connection necessary to track consensus information.

JBCC Basic Diagram

JBCC diagram could be described as the layered protocol stack through which data flows top-to-bottom and bottom-to-top. For example there are two distributed ledger A & ledger B. When ledger A communcate with ledger B, according to JBCC protocols, information will be conceptualised as the package process, channel process, connection process, and then send to client which is located in distributed ledger A. And the information will be sent to consensus module through DRP (Data Relay Process). When the ledger B is received the package from DRP, it will also be decoded to channel, state, package and then the information to distributed ledger B.


原文地址:https://medium.com/@elysiumwonderland/jbcc-protocal-of-just-chain-4057da01e8f0?







标签:JUST钱包  JT  

上一篇: 功勋奖励是怎么来的?

下一篇: 没有了