Router
Overview
Routers are strategically distributed hubs that link all nodes to the Thets network. Their main role is to handle incoming and outgoing web requests to the validator. Routers are incentivized to operate efficiently, earning rewards based on the total validated bandwidth relayed through them. All traffic routed is encrypted and carefully metered to ensure security and accurate tracking.
Verification
The router is tasked with reporting the following metrics to the validators in the Thets network:
The size in bytes of each incoming and outgoing request.
The latency from each node and the latency to the validator.
The network status of each connected node.
These metrics help ensure accurate tracking and validation of data within the network.
Rewards
Router rewards in the Thets network are calculated based on a combination of metrics:
R: Reward for a router.
B: Total validated bandwidth handled, encompassing both incoming and outgoing requests in bytes.
Lₙ: Average latency from nodes to the router.
Lᵥ: Latency from the router to the validator.
S: Reputation score of each connected node.
The reward formula can be expressed as:
Where:
k_B is a constant that scales with the amount of bandwidth.
k_L is a constant that adjusts for latency.
L_{\text{max}} is the maximum allowable latency.
This formula ensures that routers are compensated based on the total bandwidth they process, their latency performance, and the reliability of the nodes they connect, encouraging efficient and effective network operation.
Last updated