The diaphragm controls the size of the lens opening. The smaller the size of the opening, the more the ability the lens has to 'focus' on objects at different distances. The lens opening is described by the f-stop which is equal to f/D where D is the diameter of the lens in mm. A 25 mm opening would be recorded as f/2 (50mm/2 = 25 mm). The standard openings are: f/2.8, f/4, f/5.6, f/8, f/11, f/16, f/22 and f/32. As you go up the list you decrease the radius by SQRT(2) and hence the emitting area by a factor of 2. Thus each step decreases the light entering the camera and reaching the film by a factor of 2. To compensate for this you have to double the shutter exposure time.