Don't miss our holiday offer - up to 50% OFF!
Ethereum: Bitcoin client two-way communication
Ethereum: the bidirectional communication protocol between customers
The Ethereum network is a decentralized open source blockchain platform which allows the creation of intelligent contracts and decentralized applications (DAPP). One of the main characteristics of Ethereum is its customer-server architecture, which allows two-way communication between customers. In this article, we will immerse ourselves in the details of how customers on different sides of an Ethereum connection interact with each other.
The TCP
connection
When a customer has opens up a connection to another B client B, he establishes a TCP (Transmission Control Protocol) connection to Port 8333. This is a common practice in networking protocols that require communication between Several parts.
However, the question remains: can the two customers use this connection for requests and answers? The answer is yes, but with certain limits.
Client requests A
When the customer wishes to ask questions or send data to customer B, he can do so via the established TCP connection. Customer B will respond with the information or data requested from customer A.
However, if customer B must question customers outside this local network (that is to say requests that do not involve Ethereum blockchain), the TCP connection is not suitable for two-way communication. In such cases, customer B should establish a new TCP connection from its local machine to an external server or another customer on the same network.
Customer responses B
On the other hand, customer B can return data to customer A via the established TCP connection. This is useful when customers exchange information in real time, such as during transactions or when sharing files.
However, if customer B must ask questions or send requests outside this local network, he should establish a new TCP connection from his local machine to an external server or another customer on the same network.
Example of bidirectional communication
Let’s illustrate this with an example. Suppose we have two customers, Alice and Bob. The customer wants to question “What is my balance?” In real time, while customer B is currently not connected to the Ethereum network. To establish a connection between them, Alice establishes a TCP connection to Port 8333 from her local machine.
Customer B can then return requests to Alice via this connection, asking for updates to its balance. If Bob wants to ask Alice questions or share data with him outside this local network, he should establish a new TCP connection from his local machine to an external server or another customer on the same network.
In summary, although customers A and B can use their TCP connections established for requests and responses, they also have the possibility of exchanging information in real time via these connections. However, if requests are not linked to Ethereum blockchain, new connections must be established from the local machine of one or the other customer to an external server or another customer on the same network.
This bidirectional communication protocol is a fundamental aspect of the Ethereum platform, allowing customers to interact with each other and to facilitate the creation of complex applications and decentralized services.