added ping for keep alive measurement