Here is a diagram to visualize the protocols and processes involved:

Sources