Patent ID: 7633957

Claim:
A relay device for relaying a communication message on a packet-by-packet basis, comprising: order determining means for determining whether a packet received is one received in an order to be received; packet holding means for, when the order determining means determines that said packet is not one received in the order to be received, holding said packet, and for performing such a control as to relay said packet; merging means for determining whether said packet held by the packet holding means is one to be verified in conjunction with another packet received after said packet held by the packer holding means, based on the order to be received, and for merging a payload of said another packet with a payload of said packet held on the basis of the determination; verifying means for, when the order determining means determines that said packet is received in the order to be received, verifying whether the payload of said packet or a payload of merged packets merged by the merging means satisfies a predetermined rule, and for holding information about a verification content thereof in order to use the information in a next verification in the communication message; and relay controlling means for, when the verifying means verifies that said packet or merged packets satisfies the rule, performing such a control as to execute relay of said packet or merged packets and for, when the verifying means determines that said packet or merged packets does not satisfy the rule, performing such a control as to prohibit the relay of said packet or merged packets.