1. A network processor for processing packet switching in a network switching system, comprising: a first memory, for storing a first packet among a plurality of packets; a second memory, for storing a second packet among the plurality of packets; and a memory selecting unit, for selecting the first memory or the second memory for storing each of the plurality of packets according to whether a traffic of the network switching system is congested; wherein attributes of the first memory and the second memory are different.