[PATCH v1 openEuler-1.0-LTS 3/4] tcp: create a helper to model exponential backoff