Layered queueing model