Hi Santhosh, you might read over this architecture good practice material.
DevTest Architecture Best Practice - Overview and the supporting Use Cases (links).
In terms of setting up DevTest on-prem or in the cloud, the majority of the setup is related to ensuring firewalls are open. The DT components themselves can be distributed horizontally or vertically.
Is there a specific setup you are looking to achieve?