Optimization problems in the design of a multiple access protocol