A method for operating machine-to-machine devices in a network includes: monitoring a traffic condition of a communication network; determining, based on a result of monitoring the traffic condition, an allowed time duration for a group of machine-to-machine devices to communicate with a machine-to-machine server through the communication network; and transmitting information indicating the allowed time duration to a machine-to-machine gateway for operating the machine-to-machine devices according to the allowed time duration.