Samples are divided into "A" and "B" bottles, and the "B" samples are available in case they're needed to corroborate a positive result in the "A" bottle.
The initial tests take place in the lab located in the Olympic city. Because of the huge number of samples and tests that need to be conducted in a short period of time, not every sample is tested for every drug. Experts take educated guesses on which set of athletes are more likely to use certain drugs and run the according tests.
After those tests, the leftover urine is placed into a cargo container that's refrigerated, then loaded on an aeroplane that goes to the Swiss Laboratory for Doping Analyses in Geneva.
If a test for a certain drug wasn't completed at the Olympics, it can be done in a retest years later.
"The anti-doping guys have an arsenal that they don't make public," said Tom Brenna, a Cornell University professor and an expert on anti-doping laboratories.
An example Brenna gave was the discovery of a test for plastic residue from the bags some cyclists used for EPO-laden blood transfusions. Because EPO has been notoriously difficult to detect, the test for the "plasticiser" gave the drug-fighters a backdoor method to prove someone was using the drug.
MEDAL REALLOCATION
The IOC notifies the national Olympic committee of any athlete caught due to subsequent retests. Athletes found guilty of doping and stripped of medals. Any reallocation won't take place immediately, first the IOC will retest the samples of those athletes who stand to move up in the medals to make sure they were clean.
THE 2016 SHAME FILES
By nation
Armenia: 2
Azerbaijan: 1
Belarus: 7
Cuba: 1
Kazakhstan: 9
Moldova: 2
Russia: 19
Turkey: 1
Ukraine: 6
Uzbekistan: 1
By sport
Weightlifting: 26
Athletics (track): 18
Wrestling: 5
By sex
Men: 18
Women: 31