[Metric] HTLC Response Time

date
Nov 20, 2021
slug
htlc-response-time
status
Published
tags
Metrics
Liquidity Scan
summary
What does it measure?
type
Post
HTLC Response Time is a measure of the time it takes to respond to a newly offered HTLC (payment attempt) by a peer. To send a payment, Lightning clients send several payment attempts one after the other to find a working route to the payment receiver. Lower response times reduce the time for a successful payment significantly and are especially important for selecting your direct peers.
notion image

Contributing Factors

The HTLC response time depends on 3 factors:
  • Hardware/software of the node.
  • Hardware/software of the peer.
  • The connection between them.
The response time can therefore vary widely for the same node depending on its peer. Especially TOR nodes can see high response times even though both nodes have great hardware.

Average Channel Response Time

Average channel response time is the average time it takes to forward a payment attempt from the node to one of its peer.

Node Response Time

Due to the fact that the average channel response time is also a function of the nodes peers, it is not a good measure of the nodes response time itself. Therefore, LnRouter uses an average of the best 33% channel response times to approximate the nodes response time.
This response time is close to the response time you get if you open a direct channel to the node with great hardware and good connection.

Measurement

LnRouter measures the response time of several channels during a liquidity scan. At least 10 channels with inbound liquidity are required to make a successful measurement.
 
 

© LnRouter 2021 - 2024