A method of reconfiguring a current protocol of an application program, wherein the application program is running on a first device to process data transmitted to the first device using the current protocol from a second device connected to the first device, the method comprising: maintaining a memory that stores a stack of a plurality of component modules in the first device; analyzing requirement information of the application program and system information obtained from a protocol layer in the first device, said requirement information being pre-stored in the application program or the requirement information being received from the second device using in-band signaling during an association process in which the second device associates with the first device; in the first device, determining protocol configuration information comprising a reconfigured protocol of the application program and an operating parameter of the reconfigured protocol based on a result of the analyzing; and in the first device, determining a connection relationship of at least one component module, among the plurality of component modules, needed to implement the reconfigured protocol based on the protocol configuration information; the method further comprising determining an optimal protocol of the application program and an optimal value of the operating parameter of the optimal protocol in the first device based on the requirement information of the application program and the system information obtained from the protocol layer, the determining of the optimal protocol being performed when the requirement information of the application program changes, or when a third device connects to the first device; when the current protocol of the application program is not the optimal protocol, the first device reconfiguring the current protocol of the application program to the optimal protocol using at least one component module missing from the current protocol of the application program and at least one component module of the current protocol of the application program, and setting a value of the operating parameter of the optimal protocol to the optimal value of the operating parameter of the optimal protocol; and the first device transmitting the optimal protocol and operating parameter value to the second device and the second device implementing the optimal protocol based on the received optimal protocol and operating parameter value. maintaining a memory that stores a stack of a plurality of component modules in the first device; analyzing requirement information of the application program and system information obtained from a protocol layer in the first device, said requirement information being pre-stored in the application program or the requirement information being received from the second device using in-band signaling during an association process in which the second device associates with the first device; in the first device, determining protocol configuration information comprising a reconfigured protocol of the application program and an operating parameter of the reconfigured protocol based on a result of the analyzing; and in the first device, determining a connection relationship of at least one component module, among the plurality of component modules, needed to implement the reconfigured protocol based on the protocol configuration information; the method further comprising determining an optimal protocol of the application program and an optimal value of the operating parameter of the optimal protocol in the first device based on the requirement information of the application program and the system information obtained from the protocol layer, the determining of the optimal protocol being performed when the requirement information of the application program changes, or when a third device connects to the first device; when the current protocol of the application program is not the optimal protocol, the first device reconfiguring the current protocol of the application program to the optimal protocol using at least one component module missing from the current protocol of the application program and at least one component module of the current protocol of the application program, and setting a value of the operating parameter of the optimal protocol to the optimal value of the operating parameter of the optimal protocol; and the first device transmitting the optimal protocol and operating parameter value to the second device and the second device implementing the optimal protocol based on the received optimal protocol and operating parameter value.