Hi,
1. The difference is in the way you use the config framework.The first, I assume, uses the ConfigStore with a file being read with several parameters. The second (cmd.AddValue) uses the command line arguments to configure the TxPower. It's a matter of how you want to load your parameters.
2. I am not an expert, but that could be the case for certain scenarios.
3. From the ns-3 documentation:
- DlEarfcn: Downlink E-UTRA Absolute Radio Frequency Channel Number (EARFCN) as per 3GPP 36.101 Section 5.7.3.
- UlEarfcn: Uplink E-UTRA Absolute Radio Frequency Channel Number (EARFCN) as per 3GPP 36.101 Section 5.7.3.
4. The DL/ULBandwidth in LTE are number of resource blocks available. If your application is sending more traffic, then packets might be lost (in case of UDP) or a proper congestion mechanism will be used (in case of TCP).
I would recommend to study the LTE background in order to clarify how all these parameters affect your system and what is their meaning.