All-optical 3R regeneration for DPSK signal based on a semiconductor optical amplifier scheme.