Redshift and frequency comparison in Schwarzschild spacetime