From Eric Gorr's website (yes, it's English):
The exhaust pipe of a two-stroke engine attempts to harness the energy of the pressure waves from combustion. The diameter and length of the five main sections of a pipe, are critical to producing the desired power band. The five sections of the pipe are the head pipe, diffuser cone, dwell, baffle cone, and the stinger. In general, after market exhaust pipes shift the power band up the rpm scale. Most pipes are designed for original cylinders not tuned cylinders. Companies like MOTOWERKS custom computer design and fabricate pipes based on the cylinder specifications and the type of power band targeted.