This is a retired 'pig'. This one scraped oil off the sides of the pipe. As the oil cools, it would start to stick to the inside of the pipeline. The pig flowed with the oil and was removed at a each pumping station. More sophisticated pigs monitor the pipeline for changes in pipe wall. A pig can detect problems before they become serious.