šŸ›œRouter

Functionality

Routers in Beans Finance act as critical geographically distributed hubs that link all nodes within the network. Their main role is to manage and relay incoming and outgoing web requests between nodes and the validator. Routers are crucial for maintaining the flow and integrity of data throughout the network.

Incentives

Routers are incentivized to perform efficiently through a reward system based on the total amount of bandwidth they validate. This reward mechanism ensures that routers are motivated to maintain high performance and reliability, as their compensation is directly tied to the volume of data they successfully process.

Security and Data Handling

All traffic that passes through a router is both encrypted and metered, ensuring that data remains secure and usage is accurately tracked. This encryption protects the integrity of data as it moves through the network, while metering allows for the fair assessment of network usage and router performance.

Verification Responsibilities

Metrics Reporting

Routers are tasked with providing detailed metrics to validators to assist in the overall management and security of the network. These metrics include:

  • Length in Bytes: Routers report the size of each incoming and outgoing request in bytes, allowing validators to monitor and analyze data flow.

  • Latency Measurements: Routers measure and report the latency from each node to the router and from the router to the validator. This helps in assessing the efficiency of data transmission across the network.

  • Network Status: Routers monitor and report the status of each connected node. This includes connectivity issues, data transmission speeds, and other relevant network health indicators.

These metrics are essential for maintaining network efficiency and reliability, providing validators with the data needed to optimize network operations and ensure smooth data processing across Beans Finance.

Rewards Calculation for Routers

Reward Formula Overview

The compensation for routers within Beans Finance is calculated based on several performance metrics to ensure fairness and encourage efficiency. The formula used is as follows:

R=kBā‹…Bā‹…(1āˆ’kLā‹…(Ln+Lr)Lmaxā”)ā‹…SR=k_{B} \cdot B \cdot\left(1-\frac{k_{L} \cdot\left(L_{n}+L_{r}\right)}{L_{\max }}\right) \cdot S

Where:

  • RR is the reward for a router.

  • BB represents the total validated bandwidth served, accounting for both incoming and outgoing request lengths in bytes.

  • LnL_{n} is the average latency from each node to the router.

  • LvL_{v} is the latency from the router to the validator.

  • SS denotes the network reputation of each connected node, reflecting its reliability and performance.

Coefficients Explained:

  • kBk_{B}: This coefficient determines the base reward per byte of validated bandwidth, incentivizing routers to process more data.

  • kLk_{L}: This is a coefficient used to adjust the impact of latency on the rewards. Higher latencies reduce the reward proportionally, emphasizing the importance of a fast, efficient network.

  • Lmaxā”L_{\max }: The normalization factor for latency, representing the maximum reasonable latency expected within the network operations.

  • SS: A multiplier based on the quality of the network connection of each node as assessed by the network, rewarding routers for maintaining high-quality connections.

This structured approach to calculating router rewards emphasizes the importance of both the quantity of data served and the quality of the network service. Adjustments to the coefficients kBk_{B}, kLk_{L}and Lmaxā”L_{\max }ā€‹ are managed by the network to maintain balance and adapt to changing network conditions.

Security and Compliance

Economic Stake Requirements

To ensure reliability and compliance, routers are required to post a significant economic stake as collateral. This stake acts as a security deposit, guarding against non-compliance and operational failures.

Operational Compliance

Routers are responsible for:

  • Conducting initial checks on each node to ensure adherence to network standards.

  • Maintaining connectivity above a threshold (currently set at 75% but subject to change), which is critical for the network's ability to collect and process data effectively.

Consequences of Non-Compliance

Failure to meet these standards can lead to the slashing of the staked assets. This means that routers that do not provide a consistent pool of accessible nodes or fail to meet other network criteria may face financial penalties, losing a portion of their staked collateral.

This dual focus on rewards and stringent security measures ensures that routers are both motivated to perform and held accountable for their role in maintaining the integrity and efficiency of the Beans Finance network.

Last updated