Abstract:
By providing a plurality of virtual LAN&#39;s such that ports communicating according to one protocol are grouped and communication is performed between the ports in the group, a communication is possible according to a plurality of protocols and it is possible to enter into other virtual LAN&#39;s than a virtual LAN to which a connection is made.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a virtual LAN system and, particularly, to a virtual LAN system in which a virtual LAN is constructed every protocol. 
     2. Description of Related Art 
     In order to construct a plurality of virtual LAN&#39;s every protocol indicative of communication procedures in a virtual LAN system of this kind, it has been usual, as disclosed in Japanese Patent Application Laid-open No. Sho 64-54954, to determine a protocol higher in level than a network layer of OSI reference model used in a communication every LAN (referred to as &#34;upper protocol&#34;, hereinafter) such that a communication is possible in a LAN according to only the determined protocol. 
     The term &#34;virtual LAN&#34; in this description means a LAN which services a host terminal by connecting the host terminal to the LAN through not a physical port of the host terminal but a logical connection. 
     Further, in order to enable the host terminal to belong to a plurality of virtual LAN&#39;s, virtual LAN&#39;s to which the host terminal can belong are preliminarily registered in a virtual server for controlling the construction of the virtual LAN&#39;s and a connection is made to the virtual LAN server by assigning the virtual LAN to be used in a communication when the host terminal starts the communication. 
     Since such conventional virtual LAN system determines the upper protocol to be used in a communication every LAN in order to construct a plurality of virtual LAN&#39;s every protocol indicative of the communication procedures, a communication within the LAN must be performed by using only this protocol. Therefore, there is a problem that the host terminal can not perform communication by using a plurality of upper protocols within the connected LAN. Further, since, in order to enable the host terminal to belong to a plurality of virtual LAN&#39;s, virtual LAN&#39;s to which the host terminal can belong are preliminarily registered in a virtual server for controlling the construction of the virtual LAN&#39;s and a connection is made to the virtual LAN server by assigning the virtual LAN to be used in a communication when the host terminal starts the communication, there is another problem that can not use other virtual LAN&#39;s than the virtual LAN to which the connection is made. 
     SUMMARY OF THE INVENTION 
     An object of the present invention is to provide a virtual LAN system in which a host terminal can perform communication by using a plurality of upper protocols within a LAN to which the host terminal is connected and can use other virtual LAN&#39;s than a virtual LAN to which a connection is made. 
     In the virtual LAN system according to the present invention, a plurality of virtual LAN&#39;s are provided in each of which a communication is performed between ports in a port group including a plurality of ports which communicate with each other by using the same protocol. 
     Further, the virtual LAN system according to the present invention which uses an intelligent switching hub device including a plurality of ports and a frame switch for outputting a frame to one of the ports according to a destination MAC (Media Access Control) address indicative of the one port as a destination and contained in the frame received by one of the ports, is featured by that the frame switch comprises a port table having pointers A indicative of next tables corresponding to the respective ports, a plurality of protocol ID tables produced correspondingly to the pointers A of the respective port tables and having pointers B indicative of respective next tables corresponding in number to protocols which can be communicated with the ports corresponding to the respective pointers A, a plurality of virtual LAN data tables produced for respective virtual LAN&#39;s preliminarily determined in the frame switch and having pointers C indicative of respective next tables appointed by the pointers B in the protocol ID tables and a port information indicative of the ports belonging to the respective virtual LAN&#39;s and a plurality of MAC forwarding tables produced correspondingly to the respective pointers C in the virtual LAN data tables and having port numbers of the ports corresponding to the respective pointers A and produced correspondingly to transmitting MAC addresses contained in the frame received by the ports corresponding to the pointers A in the port tables and indicative of transmitters and a count value of a counter for continuously counting from a time at which the port numbers are registered. 
     Further, the virtual LAN system according to the present invention which uses an intelligent switching hub device including a plurality of ports and a frame switch for outputting a frame to one of the ports according to a destination MAC address indicative of the one port as a destination and contained in the frame received by one of the ports, is featured by that the frame switch receives the frame at one of the ports, searches the pointer A from the port table according to the number of the port which received the frame, searches the pointer B from the protocol ID table indicated by the pointer A according to a protocol ID indicative of the kind of protocol contained in the received frame and used in the frame communication, extracts the pointer C from the virtual LAN data table indicated by the pointer B, searches the MAC forwarding table indicated by the pointer C according to the transmitting MAC address contained in the received frame and, when there is a constructive component of the MAC forwarding table corresponding to the transmitting MAC address, sets the port number of the received frame to the port number of the constructive component and resets the count value of the timer of the constructive component, newly registers the port number in the MAC forwarding table correspondingly to the transmitting MAC address when there is no constructive component, searches the MAC forwarding table indicated by the pointer C using the destination MAC address contained in the frame and, when there is a constructive component of the MAC forwarding table corresponding to the destination MAC address, sends the received frame to the port indicated by the port number of the searched constructive component, and sends the received frame to all of the ports indicated by the port numbers which can communicate by the virtual LAN indicated by the port information in the virtual LAN table having the pointers C indicated by the MAC forwarding table when there is no constructive component. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram showing an embodiment of a virtual LAN system according to the present invention; 
     FIG. 2 shows a construction of a frame switch; 
     FIG. 3 shows a port information indicative of a port belonging to a virtual LAN; and 
     FIG. 4 shows a construction of a frame. 
    
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS 
     Now, preferred embodiments of the present invention will be described with reference to the drawings. 
     FIG. 1 is a block diagram showing an embodiment of a virtual LAN system according to the present invention. In this embodiment, the virtual LAN system, which uses an intelligent switching hub device 1 comprising a plurality of ports 3 which include physical ports which can be physically connected or logical ports which can be logically connected and a frame switch 2 for outputting a frame 9 to one of the ports 3 according to a destination MAC (Media Access Control) address indicative of the one port as a destination and contained in the frame 9 received by one of the ports 3, is featured by that the frame switch 2 comprises a port table 4 having pointers A indicative of next tables corresponding to the respective ports 3, a plurality of protocol ID tables 5 produced correspondingly to the respective pointers A and having pointers B indicative of respective next tables, a plurality of virtual LAN data tables 6 produced for respective virtual LAN&#39;s preliminarily determined in the frame switch 2 and having pointers C indicative of respective next tables and a port information 8 indicative of the ports 3 belonging to the respective virtual LAN&#39;s and a plurality of forwarding tables 7 produced correspondingly to the respective pointers C in the virtual LAN data tables 6 and having port numbers of the ports 3 corresponding to the respective pointers A and a count value of a counter for continuously counting from a time at which the port numbers are registered. Incidentally, the MAC is a control using a MAC sub-layer among data link layers of a hierarchical model of LAN. 
     An operation of the virtual LAN system according to this embodiment will be described in detail with reference to FIGS. 2, 3 and 4. 
     FIG. 2 shows a construction of the frame switch. The frame switch 2 comprises the port table 4 having pointers A indicative of next tables corresponding to the respective ports 3, the plurality of the protocol ID tables 5 produced correspondingly to the respective pointers A and having pointers B indicative of respective next tables the number of which corresponds to the number of the protocols according to which the ports 3 corresponding to the pointers A can communicate, the plurality of the virtual LAN data tables 6 produced for respective virtual LAN&#39;s preliminarily determined in the frame switch 2 and having the pointers C indicative of respective next tables and the port information 8 indicative of the ports 3 belonging to the respective virtual LAN&#39;s and the plurality of the forwarding tables 7 produced correspondingly to the respective pointers C in the virtual LAN data tables 6 and having the port numbers of the ports 3 corresponding to the respective pointers A and the count value of the timer for continuously counting from the time at which the port numbers are registered. 
     FIG. 3 shows an example of the port information indicating a port belonging to the virtual LAN. The shown port information indicates that the ports P2, P3, P5 and Pn of the n ports 3 belong to the virtual LAN. 
     FIG. 4 shows an example of a construction of the frame 9 which is composed of the destination MAC address indicative of a destination of the frame 9, the transmitting MAC address indicative of a transmitter of the frame 9, the protocol ID indicative of a protocol which defines the communication procedures used in the communication of this frame 9, a packet indicative of a content of the communication using the frame 9 and FCS indicating a code for checking the frame 9. 
     In FIG. 1, the frame switch 2 of the intelligent switching hub device 1 receives the frame 9 at one of its ports 3 and searches the pointer A from the port table 4 according to the number of the port which received the frame 9 as shown in FIG. 2. According to the protocol ID indicative of the kind of the protocol contained in the received frame 9, used in the communication of the frame 9 and shown in FIG. 4, the pointer B is searched from the protocol ID table 5 indicated by the pointer A, as shown in FIG. 2. Then, as shown in FIG. 2, the pointer C is extracted from the virtual LAN data table 6 indicated by the pointer B and the MAC forwarding table 7 indicated by the pointer C with using the transmitting MAC address contained in the received frame 9 and shown in FIG. 4. When there is the constructive component of the MAC forwarding table 7 corresponding to the transmitting MAC address, the number of the port which received the frame 9 is set to the port number of the searched constructive component and the count value of the timer of this constructive component is reset. When there is no constructive component, the number of the port 3 is newly registered in the MAC forwarding table 7 correspondingly to the transmitting MAC address as the port number. In this case, the port number and the count value of the timer corresponding to this port number and continuing the counting from the time at which the port number is registered become the constructive components of the MAC forwarding table 7. Then, the MAC forwarding table 7 indicated by the pointer C is searched by using the destination MAC address contained in the frame 9 and shown in FIG. 4 and, when there are constructive components of the MAC forwarding table 7 corresponding to the destination MAC address, the frame 9 received at the port 3 having the port number of the searched constructive components is sent. When there is no constructive component, the received frame 9 is sent to all of the ports 3 which are indicated in the port information 8 shown in FIG. 3 and contained in the virtual LAN data table 6 having the pointer C indicating the MAC forwarding table 7 and are enabled to communicate by the virtual LAN. When the count value of the timer among other constructive components produced in the MAC forwarding table 7 correspondingly to the transmitting MAC address contained in the frame 9 received by the port 3 and indicative of the transmitter exceeds a predetermined value, the constructive component corresponding to the transmitting MAC address is deleted from the MAC forwarding table 7. 
     As described hereinbefore, according to the virtual LAN system of the present invention, a protocol ID table is provided every part for defining a protocol according to which the port can communicate. Therefore, a communication is possible according to a plurality of upper protocols by using a port. 
     Further, since a virtual LAN data table is provided which makes a virtual LAN to which the frame belongs passible to define by a protocol ID contained in a received frame, it is possible to join other virtual LAN&#39;s than a connection is provided. 
     Further, since, in a case where a destination MAC address in the received frame is not learnt (indicating that there is no constructive component corresponding to this MAC address registered in the MAC forwarding table), the frame is transmitted to only ports which can communicate through a virtual LAN corresponding to a protocol ID which is indicated in the port information of the virtual LAN data table and corresponds to the protocol ID in this frame. Therefore, there are only frames in the virtual LAN, which are to be communicated with according to a protocol corresponding to the virtual LAN, so that an intra-LAN communication can be performed with high transmission efficiency without unnecessary load on the virtual LAN.