implemented upstream and downstream heartbeats. With jitter