Patent ID: 8532128

Claim:
A relaying apparatus comprising: a plurality of reception ports each receiving a packet from an apparatus belonging to a predetermined virtual network; a plurality of transmission ports; a memory that stores therein first association of a transmission port from among the transmission ports with destination information set in a packet, and second association of a plurality of queues with a combination of a plurality of VLAN numbers handled as one virtual network group and a predetermined priority for each priority, a queue having a queue ID for identification indicated by a Map value of a port number indicating a reception port of the packet; and a controller that specifies a transmission port that corresponds to destination information set in a packet received by one of the reception ports, by referring to the first association stored in the memory, registers the packet in any of a plurality of queues corresponding to the transmission port specified by the memory when queue-unspecific information is stored in the memory in association with a combination of a VLAN number and a priority set in a packet received, registers the received packet in one of queues corresponding to the specified transmission port, the one of queues corresponding to the combination of the VLAN number and the priority set in the received packet and being specified by referring to the second association stored in the memory when queue-unspecific information is not stored in the memory in association with the combination of the VLAN number and the priority set in the packet received, and controls, for one transmission port included in the transmission ports, selection of a queue from a plurality of queues associated with a same priority, for different priorities, and transmission, in order of the different priorities, of packets registered in the selected queues, the queue ID indicating the queue-unspecific information that indicates no queue is specified as a relay-instruction storage destination for performing bandwidth control by each VLAN when a predetermined symbol is set in the queue ID.