The input of each D flip flop is connected to the output of the previous except for the inverse output of the last one connected to the input of the first.
This results in all outputs starting as 0s then one at a time becoming 1s and then back and forth between 0s and 1s.