How did the Tower of London protect London?

From river attacks first but since it was inside the Roamn wall of the City Of London it was prepared to defend against intruders into the City over under or through the Roman walls.