Patent ID: 7848321

Claim:
A packet forwarding apparatus comprising: a first output port; a second output port; a routing processing section; a memory having a first area and a second area; and a judgment section that monitors conditions of the first and second output ports, and judges whether the first output port or the second output port is to be used based on a condition of the first output port and the second output port, wherein the memory retains an identifier of the first output port, first new header information, an identifier of the second output port, and second new header information, which are associated with at least part of header information about a received packet, in the first area, wherein the memory retains a first address indicating a storage location of the first output port and the first new header information in the first area, wherein the memory retains a second address indicating a storage location of the second output port and the second new header information in the second area; wherein, upon the judgment section judging that the first output port is to be used, the first output port transmits the received packet with the header information about the received packet replaced with the first new header information, which is read from the memory in accordance with the first address in the first area, and wherein, upon the judgment section judging that a failure of the first output port is detected and that the second output port is to be used, the routing processing section replaces the first address in the first area with the second address, which is read from the second area according to the identifier of the second output port, the router processing section reads the second address that has replaced the first address in the first area, and the second output port transmits the received packet with the header information about the received packet replaced by the second new header information.