That is the Automatic Train Protection (ATP) at work. The speed
limit is higher the further away from the train in front, so if the
train behind goes too close to the train in front, it will slow
down to keep within the limit. Think of it as a moving speed limit
block.