Tunable high-repetition-rate fiber laser for the generation of pulse trains and packets.