Chapter 3. Planning the replica topology