Package transmitting method and system based on safety service

The present invention discloses a method and a system for packet forwarding based on the security service. A first association relation between an FIB table and an ARP table is established; the firstpacket of the service flow is received, the corresponding security service information and the FIB table of the first packet are obtained, and a second association relation between the attribute information of the service flow packet carried by the first packet and the security service information and the FIB table are established; the follow-up packet of the service flow is received, and according to the attribute information of the follow-up packet and the second association relation and the first association relation, the security service information and the ARP table information are searched, the follow-up packet is processed with the security service according to the security service information, and the follow-up packet is forwarded according to the ARP table information. The presentinvention does not need to search the security service table and the ARP table of each packet, thus greatly improving the packet forwarding efficiency based on the security service.