This paper studies the problem of allocating buffers in stochastic production flow lines with product travel time. We build a model that decomposes the production line into the S-B-S (Station-Buffer-Station) subsystems, and use queueing theory to aggregate the subsystems. Experiments are designed for both balanced and unbalanced production lines, and with the computational results, some general rules for the buffer allocation problem are proposed.