The invention provides a
message forwarding method and a
message forwarding device. The method comprises the following steps: receiving a message to be forwarded by a network device, and acquiring a 5-tuple group; finding out whether a
message forwarding session table matched with the 5-tuple group exists in the existing message forwarding session tables, if so,
processing the message to be forwarded through a
processing manner recorded in the matched message forwarding session table, and transmitting the processed message; if not, finding out whether a
blacklist session table matched with the 5-tuple group exists in the existing
blacklist session tables, if so, discarding the message to be forwarded, and if not,
processing the message to be forwarded by the network device; if the message to be forwarded is processed and successfully transmitted, establishing the message forwarding session table of the 5-tuple group; recording the processing manner into the message forwarding session table; if the message to be forwarded is discarded by any one module in processing, establishing the
blacklist session table of the 5-tuple group; and recording a discarding module and discarding reasons into the blacklist session table. With the adoption of the message forwarding method and the message forwarding device, CPU (
central processing unit) consumption can be reduced, and the forwarding efficiency is improved.