Your issue is that Iran has very poor connectivity to most of the world - I doubt there is anything you can do to get consistantly low ping times on the shares your miner submits.
For the ZCash mining, the effect of poor connection is not as bad as the Ethereum mining as the block time is 2.5 min.