An electronic device, comprising: a communication module configured to exchange data with an external device; anc at least one processor configured to control the electronic device, wherein the processor is configured to: receive first information regarding a state of a network interface controller driver for the communication module, wherein the first information comprises at least one of the number of successfully transmitted bytes or packets, the number of successfully received bytes or packets, the number of transmitted or received error packets generated in the NIC driver, the number of transmitted or received packets dropped in the NIC driver; receive, as second information, at least a portion of simple network management protocol (SNMP) information regarding a network stack between the NIC driver and one or more sockets associated with one or more applications of the electronic device, wherein the second information comprises an error count of network data that has failed to be transmitted and received; receive third information regarding a state of the sockets; determine a target problem state of the electronic device based on the first information, the second information, and the third information; and perform a preset target recovery operation corresponding to the determined target problem state. a communication module configured to exchange data with an external device; anc at least one processor configured to control the electronic device, wherein the processor is configured to: receive first information regarding a state of a network interface controller driver for the communication module, wherein the first information comprises at least one of the number of successfully transmitted bytes or packets, the number of successfully received bytes or packets, the number of transmitted or received error packets generated in the NIC driver, the number of transmitted or received packets dropped in the NIC driver; receive, as second information, at least a portion of simple network management protocol (SNMP) information regarding a network stack between the NIC driver and one or more sockets associated with one or more applications of the electronic device, wherein the second information comprises an error count of network data that has failed to be transmitted and received; receive third information regarding a state of the sockets; determine a target problem state of the electronic device based on the first information, the second information, and the third information; and perform a preset target recovery operation corresponding to the determined target problem state. receive first information regarding a state of a network interface controller driver for the communication module, wherein the first information comprises at least one of the number of successfully transmitted bytes or packets, the number of successfully received bytes or packets, the number of transmitted or received error packets generated in the NIC driver, the number of transmitted or received packets dropped in the NIC driver; receive, as second information, at least a portion of simple network management protocol (SNMP) information regarding a network stack between the NIC driver and one or more sockets associated with one or more applications of the electronic device, wherein the second information comprises an error count of network data that has failed to be transmitted and received; receive third information regarding a state of the sockets; determine a target problem state of the electronic device based on the first information, the second information, and the third information; and perform a preset target recovery operation corresponding to the determined target problem state.