A performance model of layered communication architecture