Chain Rail, Safety rail, Chain Guard

How to model chain rail as highlighted in snap?
Is there any utility?