Highly integrated optical heterodyne phase-locked loop with phase/frequency detection.