Ultrafast-photonic logic circuits are crucial elements to perform ultrafast-optical signal processing functions in the next-generation ultrahigh-speed networks. A all-optical data distributor based on cross-phase modulation in a single highly nonlinear fiber is investigated and demonstrated. The numerical calculation is conducted, and the result shows that the data distributor can be realized in for the data signals of return-to-zero format with logical correctness and high quality. To evaluate the performance of the scheme, the Q-factor of the output signal on signal wavelength, the peak power of signals, the initial delay, and the filter position are calculated and discussed, respectively. The proposed data distributor is suitable for ultrafast applications for the emerging all-optical networks.