摘要 |
PROBLEM TO BE SOLVED: To provide a communication device capable of reducing a transfer information search time.SOLUTION: The communication device includes: a plurality of interfaces; retention means for retaining transfer information indicative of relationship between a variable-length prefix, an interface of an output destination; search means for searching for a longest prefix which is included in the transfer information and coincident with the destination address of a received packet; and output means for outputting the packet to the interface corresponding to the searched prefix of the transfer information. The output means sets to the output packet the length of the searched prefix of the transfer information. |