MAC address-pairs-based communication restricting method

Abstract: A MAC address-based communication restricting method is disclosed. In the MAC address-based communication restricting method, packet data is received upon request of communication through an Ethernet switch, a destination address and a source address of the received packet data are read, it is determined whether access vectors of the addresses are present in an address entry table, and access is denied if the access vectors (security keys) of destination and source addresses are not matched.

Description: The present invention relates generally to a communication restricting method in an Ethernet switch, and in particular, to a communication restricting method in which access is controlled on a data link layer 2 by designating a particular terminal as a server and some nodes as communicable with the server terminal using MAC (Media Access Control) addresses. Worldwide communication is accomplished by an ISO standard referred to as OSI (Open System Interconnection) that defines a networking framework for implementing protocols in seven layers: Application Layer 7; Presentation Layer 6; Session Layer 5; Transport Layer 4; Network Layer 3; Data Link Layer 2; and Physical Layer 1. Control is passed from one layer to the next, starting at the application layer 7 in one station, proceeding to the bottom layer over a communication path (channel) to a next station and back up the hierarchy. Data link control (DLC) is performed by the second lowest layer, data link layer 2, in the hierarchy. Every network interface card (NIC) has a DLC address or DLC identifier (DLCI) that uniquely identifies a node on the network. Some network protocols, such as Ethernet, use the DLC addresses exclusively. The data link layer 2 comprises two sublayers, a logical link control (LLC) layer and media access control (MAC) layer. A MAC address is a hardware address that uniquely identifies each node of a network. The MAC layer interfaces directly with the network media. Consequently, each different type of network media requires a different MAC layer. A common connection point for devices in a network is a hub, commonly used to connect segments of a LAN (Local Area Network). A hub contains multiple ports. When a packet arrives at one port, it is copied to the other ports so that all segments of the LAN see all packets. To improve performance and increase bandwidth, the hub has given way to switching hubs or port-switching hubs that forward packets to an appropriate port based on the packets address. Some newer switching hubs support both Ethernet (10 Mpbs) and Fast Ethernet (100 Mbps) ports. The Ethernet is a LAN protocol. An Ethernet switch can efficiently transfer a plurality of packets from an Ethernet segment to another segment, thereby decreasing traffic over a network. By connecting a plurality of terminals to a plurality of ports of an Ethernet switch, data communication is conducted without contention on a LAN (Local Area Network) and a host terminal is designated among the plurality of terminals to store important information. A switched Ethernet is defined as an Ethernet LAN that uses switches to connect individual host or segments. In the case of individual hosts, the switch replaces a repeater and effectively gives the device full 10 Mbps bandwidth (or 100 Mbps for Fast Ethernet) to the rest of the network. This type of network is sometimes called a desktop switched Ethernet. In the case of segments, the hub is replaced with a switching hub. Traditional Ethernets, in which all hosts are connected to the same bus and compete with one another for the same bandwidth, are called shared Ethernets. Switched Ethernets are becoming very popular because they are an effective and convenient way to extend the bandwidth of existing Ethernets. That is, a switched Ethernet has one or more direct, point-to-point connections between hosts or segments. Devices connected to the Ethernet switch do not compete with each other and therefore have dedicated bandwidth. To protect server nodes connected to the Ethernet switch against hacking, a workstation is connected to the Ethernet switch, a firewall is provided to the workstation, IP (Internet Protocol) addresses are registered in the firewall, and the server terminal is connected to the workstation. A firewall is a system implemented by hardware and/or software to prevent unauthorized access to or from a private network, and are frequently used to prevent unauthorized Internet users (hackers) from accessing private networks connected to the Internet, especially intranets. When an external client terminal tries to access the server terminal, a path is connected between the external client terminal and the server terminal only when the IP address of the external terminal is registered. There are several types of known firewall techniques, one of which uses packet filtering. Packet filtering controls access to a network by analyzing the incoming and outgoing packets and letting them pass or halting them based in the source and destination IP addresses. The security function of packet filtering as a firewall technique is susceptible to attacks by hackers using a hacking technique called IP spoofing, wherein, forged IP source addresses are used to circumvent a firewall. That is, an attacking node uses an IP source address of a "trusted" node to try to get past a firewall of a target server. Thus, the packet appears to have come from inside the protected network and to be eligible for forwarding into the network. Consequently, access security to the information stored in the server terminal is not guaranteed. Security for computers connected to a network is discussed in the following patents: U.S. Patent No. 5,919,257 to Jonathan Trostle entitled Network Workstation Intrusion Detection System; U.S. Patent No. 5,958,053 to John S. Denker entitled Communications Protocol With Improved Security; U.S. Patent No. 6,067,620 to James M. Holden et al. entitled Stand Alone Security Device For Computer Networks; U.S. Patent No. 6,131,163 to Scott L. Wiegel entitled Network Gateway Mechanism Having A Protocol Stack Proxy ; and U.S. Patent No. 6,167,052 to Thomas G. McNeill et al. entitled Establishing connectivity In Networks. "8271 Nways EN LAN Switch Planning and Installation Guide" by IBM teaches a MAC address-based communication restricting method. A MAC filter allows to block communication for packets having a source address or destination address listed in the filter and also to chose the ports of the switch on which the filter rules should be applied to. It is, therefore, the object of the present invention to provide a method of restricting access to a server terminal from an unauthorized external client terminal using a MAC address in an Ethernet switch. This object is solved by the subject-matter of claim 1. Further embodiment are the subject-matter of several dependent claims. A more complete appreciation of the present invention, and many of the attendant advantages thereof, will become readily apparent as the same becomes better understood by reference to the following detailed description when considered in conjunction with the accompanying drawings in which like reference symbols indicate the same or similar components, wherein: FIG. 1 is a block diagram of a packet switch according to an embodiment of the present invention. FIGs. 2-1 and 2-2 are flowcharts illustrating a control operation for registering one entry of host or client mode using MAC addresses according to the embodiment of the present invention; and FIG. 3 illustrates an anti-hacker table according to the embodiment of the present invention. A preferred embodiment of the present invention will be described hereinbelow with reference to the accompanying drawings. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail. FIG. 1 is a block diagram of a packet switch according to an embodiment of the present invention. Referring to FIG. 1, a host 100 provides overall control to the packet switch. The host 100 takes charge of the highest layer, application layer 7, and executes a command input to the packet switch. First to nth MAC ports, 110 to 1n0, may be connected to another packet switch, a router, or a PC (Personal Computer), for performing a standard MAC control operation and outputting a transmit/receive command of a data packet to a transmission/reception controller 120. A data exchange 130 under control of a transmission/reception controller 120 establishes paths of data and control signal between the host 100 or the first to nth MAC ports 110 to 1n0 and a packet memory 150. A search memory 140 stores information by which an output MAC port corresponding to a destination address of a received packet is determined. The packet memory 150 includes a plurality of information resources, namely, an address table 152, a port table 154, and a packet descriptor 156. The packet memory 150 also stores received data packets. The address table 152 stores an information related to MAC addresses and the port table 154 stores information about the current status, port attributes enable/disable, and packet reception completion of each MAC port. The packet descriptor 156 stores information about each packet stored in the packet memory 150, such as packet connection information. The transmission/reception controller 120 controls transmission/reception of packets through the first to nth MAC ports 110 to 1n0 according to the packet transmission/reception command from the first to nth MAC ports 110 to 1n0. That is, the transmission/reception controller 120 temporarily stores received data packets, accesses a search memory 140, checks whether a destination address in the header of a received packet has been registered, and locates where the registered MAC address is stored in the address table 152. The transmission/reception controller 120 determines a MAC port through which the received packet is to be output. The transmission/reception controller 120 accesses the address table 152, the port table 154, and the packet descriptor 156 and stores the received data packet in the packet memory 150. For transmission of a packet, the transmission/reception controller 120 accesses the address table 152, the port table 154, and the packet descriptor 156, and transmits a data packet stored in the packet memory 150 through a corresponding output port. FIGs. 2-1 and 2-2 are flowcharts illustrating a control operation for registering one entry of server or client node using MAC addresses according to the embodiment of the present invention and FIG. 3 illustrates an anti-hacker table according to the embodiment of the present invention. Referring to FIGs. 1, 2-1, 2-2, and 3, an anti-hacker database for restricting communication according to the present invention can be considered in two parts. One part is _hackertbl for managing client nodes to communicate with a server node that wants security, as constituted below. This table is used to hold both a server node and a client node. The HostIndex is for the server node and the NodeIndex is for the client nodes. The other part is _hackerhead as anti-hacker headers to maintain the above pointers, as constituted below. Several Server to Client mappings can be in one system. At once, M to N server to client node mappings is possible Main members of _hackertbl include pointers for managing the list of server nodes that want security to be guaranteed (*Next_HostIndex, *Prev_HostIndx), pointers for managing the list of client nodes communicable with corresponding server nodes (*Next_NodeIndex[], *Prev_NodeIndex[]), a node ID to be used as the index of * XXXX_NodeIndex (where XXXX refers to Next or Previous), the IP addresses and MAC addresses of nodes, and port numbers. Main members of_hackerhead include an array including the IDs of security server nodes (HostID_Index) and pointers indicating a start server node and an end server node in the list of server nodes that want security (*StartHostIndex, *EndHostIndex). FIG. 3 illustrates an anti-hacker database based on two data structures, server nodes and client nodes. In a network there are several server nodes that many client nodes try to access. Shown at the bottom of Fig. 3 are three client nodes C1-C3, and in the middle of Fig. 3 are two server nodes S1 and S2. As shown by the arrows, the first and second client nodes C1 and C2 are going to access the first server node S1, and the second and third client nodes C2 and C3 are going to access the first server node S and the second server node S2. In the anti-hacker database shown in FIG. 3, *XXXX_HostIndex (where XXXX refers to Next or Previous) connects the tables of the server nodes; *XXXX_NodeIndex(x) (where x is ether 0 or 1) connects the tables of the client nodes to each other and to the server nodes, i.e. *XXXX_NodeIndex(0) connects a client node to the first server node and an adjacent (next or previous) client node, whereas XXXX_NodeIndex(1) connects a client node to the second server node and an adjacent (next or previous) client node. Registration of a client node that is to be allowed to communicate with a server node in the anti-hacker database shown in FIG. 3 in the Ethernet switch of FIG. 1 will be described with reference to FIGs. 2-1 and 2-2. It needs two processes to register one entry of server node or client node. One process (Fig 2-1) takes place when user input command through console. Another process (Fig 2-2) takes place when new packet from node comes into Ethernet switch. First process configures Hacker table and then update address entry field if the MAC address is in address entry table 152. In this process, if there is no corresponding entry in address table 152, then the security information update process is postponed until the packet which has the corresponding address as source address comes into Ethernet switch (process Fig 2-2). Second process registers one address entry to address table and then updates the security information for this address entry if it is in Hacker table. In step 201, the host 100 receives a security server node and an access client node address through the host 100. An entry command for the security server node can be ahaddhost<1 00:00:f0:aa:bb:cc 168.219.83.147>, by way of example, Here, 1 is HostID, oo:oo:f0:aa:bb: cc is a MAC address and 168.219.83.147 is an IP address. Upon receipt of the command, the transmission/reception controller 120 adds anti-hacker table entry ([0030]-[0038]) information for the input MAC address to the anti-hacker table without a port number in step 202. In step 203, the transmission/reception controller 120 checks whether the input MAC address is present in the address table 152 of the packet memory 150. If the address table 152 does not have the MAC address, the transmission/reception controller 120 finishes its work. If the address table 152 has the MAC address, in step 204, the transmission/reception controller 120 reads the corresponding address entry from address table 152 and modifies the access vector field of the MAC address to new access vector to be used as a security key. In step 205, the transmission/reception controller 120 updates address entry of the address table 152. An access vector consists of a bit vector. The bit value "0" means restriction to access and "1" means allowance for access. For example, if a server node S1 has an access vector 00010000 and a client host C1 has access vector 10000001, then client host C1 cannot access server node S1, but another client node C2 having access vector 00010001 can access server node S1. For further understanding, access vector 00010000 of a server node S1 means that S1's HostID is 3. At once, access vector is 0x80>>3. If C1 is going to be an access client node, the access vector of C1 should be (0x80>>3)| access vector of C1. At once, it will be 10010001. This access vector 10010001 means C1 can access server nodes that have HostID 0, 3 and 7. In step 203, if the MAC address is absent (step 202) in the address table 152, that means the transmission/reception controller 120 can not update the access vector of the MAC address. The security information update process is postponed until the packet which has the corresponding address as source address comes into Ethernet switch (process Fig 2-2). In step 211 of Fig 2-2, upon receipt of a packet which has address is absent in address table 152 from a node through the first to n MAC ports 110 to 10n for communication with the host, in step 212, the transmission/reception controller 120 makes new address entry with information for the new MAC address. The address entry information includes port number is delivered from MAC ports 110 to 1 on. In step 213, the transmission/reception controller 120 checks whether the new MAC address is present in the address table 152. If the address table 152 has the MAC address, in step 214, the transmission/reception controller 120 adds a port number into the Port field (0034) of the anti-hacker table. In step 215, the transmission/reception controller 120 modifies the access vector field of the MAC address to be used as a security key. If the new MAC address is not present in the address table 152, a configured address entry for the new MAC source address is stored in the address table 152. In step 216, the transmission/reception controller 120 adds a new address entry into address table 152. There will be given a description of communication between a client node and the server node after the security function is set for client nodes communicable with the server node. Upon receipt of a packet from a client node through the first to n MAC ports 110 to 10n for communication with the server node, the transmission/reception controller 120 reads the address entry of destination server node and source client node from address entry 152 and determines whether the access vector bit as the security key of a destination server node is set to the access vector bit as the restriction key of the source client node in the process of an address analysis. If it is, a normal packet switching operation is performed and otherwise, the received packet is discarded. Eventually, the security key is set to the access vector of a server node (destination node) and the restriction key is set to the access vector of a client node (source node). In accordance with the present invention as described above, client nodes communicable with a server node are registered preliminarily in an Ethernet switch so that unauthorized client nodes are denied access in a lower layer. Consequently, security is reinforced to prevent hacking.

Claims: A media access control, MAC, address-based communication restricting method using access vectors stored in an address table (152), wherein the access vectors indicate whether two nodes, corresponding to a MAC source address and a MAC destination address, may access each other, the method comprising the steps of: receiving (211) packet data upon request of communication through at least one port of a plurality of ports (110-1 n0) of an Ethernet switch; reading a received MAC destination address and a received MAC source address included in the received packet data; the method characterised in the steps of: detecting in the address table access vectors corresponding to the received MAC destination address and the received MAC source address; and denying access if the access vectors corresponding to the received MAC destination address and the received MAC source address are not matched. The method as set forth in claim 1, further comprising the steps of: configuring (202) an anti-hacker table comprising information pertaining to a plurality of client nodes and a plurality of server nodes of a network, wherein each client node is identified by a corresponding MAC address, a corresponding host identification and a corresponding Internet protocol (IP) address, and each server node is identified by a corresponding MAC address, a corresponding host identification and a corresponding IP address; determining (211) whether the received source MAC address is stored in said address table, configuring (212) an address entry for said received MAC source address when it is determined that said received MAC source address is not stored in said address table and identifying said received MAC source address as a new MAC source address, determining (213) whether said new MAC source address is stored in said anti-hacker table; and storing (216) the configured address entry for said received MAC source address in said address table (152) when it is determined (213) that said new MAC source address is not stored in said anti-hacker table. The method as set forth in claim 2, further comprising the steps of: adding a port number (214), corresponding to the port through which said packet data was received, to a storage area corresponding to said new MAC source address in said anti-hacker table, when it is determined that said new MAC source address is stored in said anti-hacker table; modifying (215) an access vector in said configured address entry for said new MAC source address, to set security; and storing (216) the modified configured address entry for said new MAC source address in said address table (152).

Inventors: KIM YOUNG-II, KIM, YOUNG-II, Kim, Young-II, c/oSamsung-Electronics Co., Ltd.
Applicants: SAMSUNG ELECTRONICS CO LTD, SAMSUNG ELECTRONICS CO. LTD.
Application year: 2001
Main classification: H04L29
IPC codes: H04L12, H04L29