@Mokkan Mok NN does not write blocks to DN, only client to DN and DN to DN (depending on replication factor). Client to DN depends on client you are using. If you are using webhdfs you will be using HTTP for example. Other clients like hdfs use RPC protocol. I think DN to DN replication is always RPC.
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.