A method of controlling a network packet processing apparatus using a service function chaining, the network packet processing apparatus including a plurality of service function modules, an input logger, an output logger, and a service function forwarder module, the method comprising:
- transmitting a packet to the input logger, by the service function forwarder module;
- transmitting the packet to the service function forwarder module after storing the packet, by the input logger;
- transmitting, by the service function forwarder module, the packet to a service function module A, a stateful service function module of the plurality of service function modules;
- processing the packet, generating a packet access log(PAL) with respect to the packet, and transmitting the packet and the packet access log to the service function forwarder module, by the service function module A;
- transmitting the packet and the packet access log to the output logger, by the service function forwarder module;
- and
- transmitting the packet access log to a backup service function module of the service function module A, by the output logger.