An electronic device comprising: a wireless communication modem; a processor configured to be connected to the wireless communication modem; a volatile memory configured to be operatively connected to the processor; and a non-volatile memory operatively connected to the processor and configured to store at least one application program and instructions that, when executed by the processor, cause the processor to: control to transmit and receive first data packets to and from the wireless communication modem, provide a network device interface including at least one first parameter related to processing of the first data packets, control to receive information indicating a network service category and/or related to an operation of the application program, in response to failing to receive the information, acquire context information related to the electronic device that is transmitting or receiving the first data packets using the application program, including sensor data for the internal temperature of the electronic device; adjust values of the at least one first parameter based on the received information to a network service category that can reduce heat generation when the internal temperature exceeds a threshold temperature, and control the network device interface to transmit and receive the first data packets using at least some of the adjusted values of the at least one first parameter. a wireless communication modem; a processor configured to be connected to the wireless communication modem; a volatile memory configured to be operatively connected to the processor; and a non-volatile memory operatively connected to the processor and configured to store at least one application program and instructions that, when executed by the processor, cause the processor to: control to transmit and receive first data packets to and from the wireless communication modem, provide a network device interface including at least one first parameter related to processing of the first data packets, control to receive information indicating a network service category and/or related to an operation of the application program, in response to failing to receive the information, acquire context information related to the electronic device that is transmitting or receiving the first data packets using the application program, including sensor data for the internal temperature of the electronic device; adjust values of the at least one first parameter based on the received information to a network service category that can reduce heat generation when the internal temperature exceeds a threshold temperature, and control the network device interface to transmit and receive the first data packets using at least some of the adjusted values of the at least one first parameter. control to transmit and receive first data packets to and from the wireless communication modem, provide a network device interface including at least one first parameter related to processing of the first data packets, control to receive information indicating a network service category and/or related to an operation of the application program, in response to failing to receive the information, acquire context information related to the electronic device that is transmitting or receiving the first data packets using the application program, including sensor data for the internal temperature of the electronic device; adjust values of the at least one first parameter based on the received information to a network service category that can reduce heat generation when the internal temperature exceeds a threshold temperature, and control the network device interface to transmit and receive the first data packets using at least some of the adjusted values of the at least one first parameter.