If use geth
command,then the node starts to sync with Ethereum Mainnet by default.If usegeth --testnet --networkid 3 --datadir <testnetdatapath>
,then the node will connect to Ropsten.
How does this connection established? What are the steps executing at that time? Connecting to Blockchain,downloading genesis,downloading other blocks? How this functionality is achieved?