Two basic queueing problems in communications