Patent ID: 7792087

Claim:
An ad hoc network system, comprising: a first relay; at least one second relay which is coupled to the first relay via a network by way of another relay; and one terminal which is coupled to the second relay via the network, wherein the at least one second relay and the one terminal constitutes a virtual network, wherein the first relay holds relay information indicating a correspondence established between an IP address of the at least one second relay, an IP address of the one terminal coupled to the at least one second relay via the network, and a group ID of a group to which the one terminal belongs, wherein when the first relay receives information, the first relay extracts an IP address of a destination terminal to which the information thus received is transmitted and a group ID to which the destination terminal belongs, from the information thus received, then when the relay information includes the IP address of the second relay corresponding to the IP address and the group ID of the destination terminal, the first relay encapsulates the information thus received by adding the IP address of the second relay and the group ID of the destination terminal to the information thus received and transmits the information thus encapsulated to the second relay, and wherein when the second relay receives the information encapsulated by the IP address of the second relay, the second relay de-capsulates the encapsulated information thus received and transmits the information thus de-capsulated to the one terminal coupled to the second relay in a case where the IP address and the group ID of the destination terminal respectively coincide with the IP address and the group ID of the one terminal coupled to the second relay.