1. Field of the Invention
The present invention relates to an iSCSI network interface card, and more particularly to an iSCSI network interface card with an ARP/ICMP resolution function.
2. Related Art
With the rapid development and popularization of the network technology, the Internet has played an indispensable role in people's daily life, so that people exchange the needed information over Internet rapidly. A network interface card (NIC) functions to enable computers to interconnect with each other, so as to share resources and exchange information. The Internet Engineering Task Force (IETF) has proposed a communication protocol standard of the internet small computer systems interface (iSCSI), which is used to link a plurality of computers together through a transmission control protocol/Internet protocol (TCP/IP) communication protocol to form a virtual network storage server. The virtual network storage server is capable of transmitting data in a high speed and expanding/backing up the capacity of virtual storage devices unlimitedly.
Computers communicate with each other by packets. During transmission, after being processed by the ARP/ICMP 114, the packets are transferred by the iSCSI network interface card 120. The ARP/ICMP 114 is executed by the host bus adapter driver 112 of the host 110. When it intends to transmit a large number of packets, the workload of the host 110 is increased, and the execution speed thereof is reduced.
In view of the above problems, the present invention is directed to an iSCSI network interface card with an ARP/ICMP resolution function, so as to realize an ARP procedure and an ICMP procedure in the network interface card.
Therefore, the present invention provides an iSCSI network interface card with an ARP/ICMP resolution function, which includes a first connection interface, an ARP procedure, an ICMP procedure, a storage unit, and a processor. The first connection interface is electrically connected to the host. The ARP procedure is used to query an IP address of a client. The ICMP procedure is used to process a circumstance that the IP address of the client cannot be reached and detect a connecting status to the Internet. The storage unit is electrically connected to the first connection interface and is used to store the network packet, the ARP procedure, and the ICMP procedure. The processor is electrically connected to the first connection interface and the storage unit. The processor executes the ARP procedure and the ICMP procedure according to a service request.
The present invention provides an iSCSI network interface card with an ARP/ICMP resolution function, and the iSCSI network interface card is combined with an ARP procedure and an ICMP procedure. The iSCSI network interface card with the ARP/ICMP resolution function can reduce the workload of the host driver, thereby increasing the operation efficiency of the iSCSI.
The present invention will become more fully understood from the detailed description given herein below for illustration only, which thus is not limitative of the present invention, and wherein:
Computers communicate with each other by packets. During the packet transmission, after being processed by the ARP/ICMP 226, the packets are transferred by the iSCSI network interface card 220. The ARP/ICMP 226 is executed in the iSCSI network interface card 220.
The network interface card of the present invention can be disposed in a computer device, or in other network devices. Referring to
The first connection interface 310 is electrically connected to the host 380. The first connection interface 310 can be a peripheral component interconnect (PCI) interface, a universal serial bus (USB) interface, or a personal computer memory card international association (PCMCIA) interface. The second connection interface 330 is electrically connected to the processor 320 and the storage unit 340. The second connection interface 330 is connected to the client 390 through the Internet. The second connection interface 330 can be a PCI interface, a USB interface, or a PCMCIA interface.
The storage unit 340 is electrically connected to the first connection interface 310 and is used to store the network packet 350, the ARP procedure 360, and the ICMP procedure 370. The processor 320 is electrically connected to the first connection interface 310 and the storage unit 340. The processor 320 executes the ARP procedure 360 and the ICMP procedure 370 according to a service request from the host 380. The ARP procedure 360 is used to query an IP address of the client 390 or perform conflict detection on the IP address. The ICMP procedure 370 is used to transfer a message of failing to reach the IP address of the client 390, detect a connecting status to the Internet, and send the detected connecting status to the host 380.
If the query fails, the processor carries out a network broadcasting query to the network layer through the ARP procedure (Step S450). The network broadcasting query is used to query the IP address of the client. It is determined whether the IP address of the client is successfully queried by the network broadcasting query or not (Step S460). If the query is successful, the processor uses the IP address of the client to send the network packet (Step S440). If the query fails, the processor stops sending the network packet (Step S470).
The active conflict means that the processor has detected that a newly-set IP address of the client is the same as the IP address of the host. The passive conflict means that the processor has received a conflict notification from the client, and the conflict notification notifies that a newly-set IP address of the host is the same as the IP address of the client. In addition, the conflict processing can include disabling the network interface card, or obtaining a valid IP address again and returning the valid IP address to the host.
In addition to executing the ARP procedure as described above, the processor further executes the ICMP procedure.
The processor executes the ICMP procedure according to a service request from the host, which can be used to transfer a message of failing to reach the IP address of the client and detect a connecting status to the Internet.
The present invention provides an iSCSI network interface card with an ARP/ICMP resolution function, and the iSCSI network interface card is combined with an ARP procedure and an ICMP procedure. The iSCSI network interface card with the ARP/ICMP resolution function can reduce the workload of the host driver, thereby enhancing the operation efficiency of the iSCSI systems.