Patent attributes
Aspects of the present disclosure relate to implementing on-device latency detection into operating system (OS)-level functionality of a client device in client-server and/or network communications. An example method includes extracting packet headers from data-connection packets transmitted between a local application client and a remote application server. Data records including packet headers and timestamps are stored. Data records for related data-connection packets (e.g., queries and responses, handshakes) are identified via the packet headers, and timestamps of the identified data records are compared to determine latency measurements. Latency measurements are then distributed to relevant application clients locally residing on an upper layer. The latency measurements are presented in dashboard display to an end user and used for server-side dynamic load balancing.