CN1878147A - Method for balancing load between multi network cards of network file system server - Google Patents
Method for balancing load between multi network cards of network file system server Download PDFInfo
- Publication number
- CN1878147A CN1878147A CN 200610089538 CN200610089538A CN1878147A CN 1878147 A CN1878147 A CN 1878147A CN 200610089538 CN200610089538 CN 200610089538 CN 200610089538 A CN200610089538 A CN 200610089538A CN 1878147 A CN1878147 A CN 1878147A
- Authority
- CN
- China
- Prior art keywords
- network
- server
- network card
- file system
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000005540 biological transmission Effects 0.000 claims description 10
- 230000003068 static effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 241001522296 Erithacus rubecula Species 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供一种平衡网络文件系统服务器多网卡间负载的方法,包括:网络文件系统服务器为每个网卡配置网络地址;在多个网卡中选择一个主网卡,为每个网卡创建套接字;将网卡与套接字结构绑定在一起;网络文件系统客户端获取服务器以太网地址;客户端从获取的服务器多块网卡地址中以轮循选择的方式选择一个网络地址发送文件访问请求;服务器端接受到请求后交由网络文件系统服务进程进行处理,将处理结果通过接受请求的网卡发送给客户端。本发明充分利用了服务器网络带宽资源,提高了文件访问吞吐率。The present invention provides a method for balancing the load among multiple network cards of a network file system server, comprising: the network file system server configures a network address for each network card; selects a main network card among multiple network cards, and creates a socket for each network card; Bind the network card with the socket structure; the network file system client obtains the server's Ethernet address; the client selects a network address in a round-robin manner from the obtained server network card addresses to send a file access request; the server After the end receives the request, it is processed by the network file system service process, and the processing result is sent to the client through the network card that accepts the request. The invention makes full use of the bandwidth resources of the server network and improves the file access throughput rate.
Description
技术领域technical field
本发明涉及网络文件系统服务器,特别涉及一种平衡网络文件系统服务器多网卡间负载的方法。The invention relates to a network file system server, in particular to a method for balancing the load among multiple network cards of the network file system server.
背景技术Background technique
不断增长的在不同主机之间共享文件的需求推动了分布式文件系统的发展,NFS就是最早出现的分布式文件系统。随着科学计算等应用的运算规模的不断提高,网络文件系统(NFS)服务器的存储容量在不断扩大,因此NFS服务器开始配置百兆、千兆以太网卡。随着用户对网络速度及带宽的要求,目前NFS服务器大都配置有多块网卡以提高数据传输速度。The ever-increasing demand for sharing files between different hosts has promoted the development of distributed file systems, and NFS is the earliest distributed file system. With the increasing operation scale of scientific computing and other applications, the storage capacity of Network File System (NFS) servers is constantly expanding, so NFS servers are beginning to be equipped with 100M and 1000M Ethernet cards. With the user's requirements for network speed and bandwidth, most of the current NFS servers are equipped with multiple network cards to increase the data transmission speed.
然而当前所有NFS实现中,NFS客户端只能通过一块网卡与NFS服务器进行通信,这种实现对于拥有多个物理网卡的高性能I/O服务器来说,无法充分发挥服务器端网络负载的支持能力。However, in all current NFS implementations, the NFS client can only communicate with the NFS server through one network card. For a high-performance I/O server with multiple physical network cards, this implementation cannot fully utilize the server-side network load support capability. .
现行NFS服务器对多网卡的配置一般采用以下几种方法:The current NFS server generally adopts the following methods for configuring multiple network cards:
(1)服务器的多块网卡配置在不同的网段上,同时将客户端分成若干组,每组客户端的网卡配置在相同的网段上,不同组的客户端配置不同的网段,每组客户端利用与自己处于相同网段的NFS服务器网卡地址挂载网络文件系统,之后的文件访问均通过该服务器网卡访问服务器。(1) The multiple network cards of the server are configured on different network segments, and the clients are divided into several groups at the same time. The network cards of each group of clients are configured on the same network segment, and the clients of different groups are configured on different network segments. The client uses the NFS server network card address on the same network segment as itself to mount the network file system, and all subsequent file accesses access the server through the server network card.
上述的NFS多网卡配置方法使得网卡的利用率不高,当一组客户端访问服务器的负载很大造成网络拥塞而另一组被分配另一块网卡的客户端负载很轻的情况下,会导致两块网卡负载机器不均衡,也无法充分发挥服务器的I/O带宽。另外,一旦网络失效,由于无法选择备用网络,使得客户端便无法再访问NFS服务器。若多块网卡配置在同一网段,根据路由规则服务器总会选择第一块网卡发送数据,难以同时利用多块网卡的传输能力。The above-mentioned NFS multi-network card configuration method makes the utilization rate of the network card not high. When a group of clients accessing the server has a large load and causes network congestion, while another group of clients assigned another network card has a light load, it will cause The load of the two network cards is unbalanced, and the I/O bandwidth of the server cannot be fully utilized. In addition, once the network fails, the client can no longer access the NFS server because the backup network cannot be selected. If multiple network cards are configured on the same network segment, the server will always select the first network card to send data according to the routing rules, and it is difficult to use the transmission capabilities of multiple network cards at the same time.
(2)利用网卡绑定技术,多网卡绑定技术的主要思想是将服务器的多块网卡绑定成为一个虚拟网卡。多个客户端通过一个虚拟网卡访问NFS服务器。当服务器网络设备发送数据时,由网络设备驱动实现多个物理网卡轮循发送数据包。(2) Using the network card binding technology, the main idea of the multi-network card binding technology is to bind multiple network cards of the server into a virtual network card. Multiple clients access the NFS server through a virtual network card. When the server network device sends data, multiple physical network cards are driven by the network device to send data packets in turn.
上述配置方法一般需要交换机的支持,因为交换机也需要把数据包轮循发送给服务器多个物理网卡。而对于不支持轮循发送的交换机则对绑定模式的负载平衡效果又不理想,甚至产生错误。The above configuration method generally needs the support of the switch, because the switch also needs to send the data packets to multiple physical network cards of the server in turn. However, for switches that do not support round-robin sending, the load balancing effect of the binding mode is not ideal, and even errors occur.
发明内容Contents of the invention
本发明的目的是克服现行的NFS服务器对多网卡配置及使用方法均不能够很好的解决多网卡之间负载平衡问题,无法充分发挥网络提供的带宽,数据传输效率较低的缺陷,从而提供一种可较好平衡多网卡间负载的方法。The purpose of the present invention is to overcome the current NFS server configuration and use of multiple network cards can not well solve the problem of load balancing between multiple network cards, can not fully utilize the bandwidth provided by the network, the defect of low data transmission efficiency, thereby providing A method that can better balance the load among multiple network cards.
为了实现上述目的,本发明提供了一种平衡网络文件系统服务器多网卡间负载的方法,应用于由网络文件系统服务器、交换机、客户端组成的网络文件系统上,所述方法包括以下步骤:In order to achieve the above object, the present invention provides a method for balancing the load between multiple network cards of a network file system server, which is applied to a network file system composed of a network file system server, a switch, and a client. The method includes the following steps:
1)、为网络文件系统服务器上的所有网卡配置网络地址;1), configure network addresses for all network cards on the network file system server;
2)、获取网络文件系统服务器上所有网卡的物理地址、网络地址及物理设备的名称,并记录在网络文件系统服务器的网卡信息表中;2), obtain the physical address of all network cards on the network file system server, the network address and the title of physical equipment, and record in the network card information table of the network file system server;
3)、从网络文件系统服务器上的所有网卡中选择一块网卡为主网卡,其余网卡为从网卡,并为主网卡指定端口号;3), select a network card from all network cards on the network file system server as the main network card, and the remaining network cards are slave network cards, and specify the port number for the main network card;
4)、网络文件系统服务器根据步骤2)得到的网卡信息表,为每个网卡创建对应的套接字结构,并为每个从网卡指定一个端口号,初始化所述的套接字结构,将端口号和步骤2)中所得到的网络地址填充到所述的套接字结构中;4), the network file system server according to the network card information table that step 2) obtains, creates corresponding socket structure for each network card, and designates a port number for each from network card, initializes described socket structure, will The network address obtained in port number and step 2) is filled in the described socket structure;
5)、选择主网卡的套接字结构为主套接字,并将主网卡的端口号注册到服务器的端口映射器中;5), select the socket structure of the main network card as the main socket, and register the port number of the main network card in the port mapper of the server;
6)、将各个网卡与该网卡所指定的套接字结构绑定在一起;6), bind each network card with the socket structure specified by the network card;
7)、客户端向服务器发送获取服务器网卡物理地址信息、网络地址信息及端口号信息的请求,保存服务器返回的结果;7), the client sends to the server a request to obtain the server network card physical address information, network address information and port number information, and saves the result returned by the server;
8)、根据步骤7)得到的网卡的信息,以及客户端自带的自动设置客户端arp配置文件,将服务器所有网卡的网络地址及物理地址填充到arp协议的读取静态解析网络地址的文件中,然后运行arp配置文件;8), according to the information of the network card obtained in step 7), and the automatic setting client arp configuration file that comes with the client, fill the network address and physical address of all network cards of the server into the file of the arp protocol to read the static analysis network address , and then run the arp configuration file;
9)、客户端利用服务器主网卡的网络地址安装网络文件系统;9), the client uses the network address of the main network card of the server to install the network file system;
10)、客户端通过交换机与服务器进行通信,客户端截取远程过程调用协议数据包,该数据包的地址域中包括目的网卡的端口号和网络地址,客户端从步骤7)获得的服务器网络地址和端口地址对中选择一个作为服务器网卡目标地址,修改所述数据包的地址域中目的网卡的网络地址和端口号;10), the client communicates with the server through the switch, the client intercepts the remote procedure call protocol packet, the address field of the packet includes the port number and the network address of the destination network card, and the client obtains the server network address from step 7) Select one of the port address pairs as the server network card target address, and modify the network address and port number of the destination network card in the address field of the data packet;
11)、判断步骤10)中所选择的服务器网卡目标地址是否有效,若网卡有效,则执行下一步,否则,执行步骤13);11), determine whether the selected server network card target address in step 10) is valid, if the network card is valid, then perform the next step, otherwise, perform step 13);
12)、客户端向服务器发送远程过程调用协议数据包,若发送失败,则标志网卡无效,并设置故障开始的时间,再按照步骤10)重新选择网卡,若发送成功,则执行步骤15);12), the client sends the remote procedure call protocol packet to the server, if sending fails, then the mark network card is invalid, and the time that the failure starts is set, then reselect the network card according to step 10), if sending successfully, then perform step 15);
13)、网卡为无效状态,探测从故障时间到当前时间是否到达无效时间间隔阈值,如果到达无效时间间隔阈值,执行下一步,否则按照步骤10)重新选择网卡;13), the network card is in an invalid state, detect whether the invalid time interval threshold is reached from the failure time to the current time, if the invalid time interval threshold is reached, execute the next step, otherwise reselect the network card according to step 10);
14)、试探网络是否处于连通的状态,若网络连通,则重新发送数据包,发送成功后,标志网卡有效位为有效,若网络尚未连通,则重新设置故障时间为当前时间,然后按照步骤10)重新选择网卡;14) Test whether the network is connected. If the network is connected, resend the data packet. After the transmission is successful, the effective bit of the network card is marked as valid. If the network is not connected, reset the fault time to the current time, and then follow step 10 ) to re-select the network card;
15)、服务器从网卡接收到数据包后,通过步骤4)所创建的套接字结构将数据包传递给网络文件系统服务线程进行处理,服务器将处理后的结果通过接受到请求的网卡返还给客户端。15), after the server receives the data packet from the network card, the socket structure created in step 4) passes the data packet to the network file system service thread for processing, and the server returns the processed result to the server through the network card that received the request. client.
上述技术方案中,在所述的步骤1)中,所述的网络地址配置在同一网段中。In the above technical solution, in the step 1), the network addresses are configured in the same network segment.
上述技术方案中,在所述的步骤2)中,利用ifconfig-a获取网络文件系统服务器上所有网卡的网络地址、物理地址以及物理设备的名称。In the above technical solution, in the step 2), ifconfig-a is used to obtain the network addresses, physical addresses and names of physical devices of all network cards on the network file system server.
上述技术方案中,在所述的步骤3)中,所述的主网卡的端口号为2049号端口。In the above technical solution, in the step 3), the port number of the main network card is port 2049.
上述技术方案中,在所述的步骤6)中,将所有套接字结构的“sk_bound_dev_if”字段设置为“1”,使所述的网卡与该网卡所指定的套接字结构绑定在一起。In the above technical solution, in the step 6), the "sk_bound_dev_if" field of all socket structures is set to "1", so that the network card is bound together with the specified socket structure of the network card .
上述技术方案中,在所述的步骤10)中,所述的客户端从步骤7)获得的服务器网络地址和端口地址对中选择一个作为服务器网卡目标地址时,采用轮循选择的策略。In the above technical solution, in step 10), when the client selects one of the server network address and port address pairs obtained in step 7) as the target address of the server network card, a strategy of round robin selection is adopted.
上述技术方案中,所述的多网卡指2个以上的网卡。In the above technical solution, the multi-network card refers to more than 2 network cards.
采用本发明的方法可以使得每个客户端充分利用网络带宽,提高网络传输效率。By adopting the method of the invention, each client can make full use of the network bandwidth and improve the network transmission efficiency.
附图说明Description of drawings
图1为本发明采用的网络文件系统组成图;Fig. 1 is the composition figure of the network file system that the present invention adopts;
图2为本发明的平衡网络文件系统服务器多网卡间负载的方法在客户端的操作;Fig. 2 is the operation of the method for balancing network file system server load among multiple network cards of the present invention at the client;
图3为本发明的平衡网络文件系统服务器多网卡间负载的方法在服务器端的操作;Fig. 3 is the operation on the server end of the method for balancing the load between multiple network cards of the network file system server of the present invention;
图4为本发明的方法中选择目标地址发送数据请求的流程图;Fig. 4 is the flowchart of selecting target address to send data request in the method of the present invention;
图5为网络文件系统客户端与服务器端的结构图。FIG. 5 is a structural diagram of a network file system client and server.
具体实施方式Detailed ways
下面结合附图和具体实施方式对本发明的方法进行具体说明。The method of the present invention will be specifically described below in conjunction with the accompanying drawings and specific embodiments.
如图1所示,为常见的NFS系统的结构图,本实施例的方法是利用该系统,该系统中包括客户端、交换机和服务器,其中的交换机不需要支持轮循操作,服务器上具有多块网卡。As shown in Figure 1, it is a structural diagram of a common NFS system. The method of this embodiment utilizes the system, which includes a client, a switch and a server, wherein the switch does not need to support round-robin operation, and the server has multiple NIC.
图5是对客户端和服务器端的进一步说明。客户端包括:系统调用层、虚拟文件系统层、网络文件系统客户端模块、请求负载分发模块、远程过程调用客户端模块。服务器端包括:系统调用层、虚拟文件系统层、网络文件系统服务器端模块、网络通道并发模块、远程过程调用服务器端模块。Figure 5 is a further illustration of the client and server. The client includes: a system call layer, a virtual file system layer, a network file system client module, a request load distribution module, and a remote procedure call client module. The server side includes: a system call layer, a virtual file system layer, a network file system server-side module, a network channel concurrent module, and a remote procedure call server-side module.
利用本发明的方法平衡网络文件系统服务器多网卡间负载时,需要在服务器和客户端分别进行操作,下面对其操作过程分别进行以下描述。When the method of the present invention is used to balance the load among multiple network cards of the network file system server, the server and the client need to be operated separately, and the operation process is described below respectively.
对服务器的操作:Operations on the server:
步骤1.1、为NFS服务器上的所有网卡配置网络地址,这些地址可配置为属于同一个网段,也可配置为属于不同的网段。Step 1.1. Configure network addresses for all network cards on the NFS server. These addresses can be configured to belong to the same network segment or to belong to different network segments.
步骤1.2、利用ifconfig-a获取NFS服务器上所有网卡的网络地址、物理地址以及物理设备的名称,并将所得到的每块网卡的信息记录在一个表中。例如,在NFS服务器上的第一块网卡的网络地址是159.211.10.101,其物理设备名称是eth0,其物理地址为00:0C:76:9D:37:69,上述信息都记录到网卡信息表中。Step 1.2, use ifconfig-a to obtain the network addresses, physical addresses and names of physical devices of all network cards on the NFS server, and record the obtained information of each network card in a table. For example, the network address of the first network card on the NFS server is 159.211.10.101, its physical device name is eth0, and its physical address is 00:0C:76:9D:37:69. The above information is recorded in the network card information table middle.
步骤1.3、从NFS服务器的网卡中选择一块主网卡,服务器中的其他网卡即为从网卡。在选择主网卡时,可任意选定一块网卡为主网卡,并将主网卡的端口号指定为2049号端口。Step 1.3. Select a master network card from the network cards of the NFS server, and other network cards in the server are slave network cards. When selecting the main network card, you can choose a network card as the main network card arbitrarily, and specify the port number of the main network card as port 2049.
步骤1.4、服务器根据步骤1.2得到的网卡信息表,为每个网卡创建对应的套接字结构,并初始化套接字结构,为网卡指定一个端口号,将步骤1.2中所得到的网络地址和端口号填充到所述的套接字结构中。通过上述操作,扩展了网卡与NFS服务线程的数据传输通道个数,由原来共用一个通道扩展为与网卡个数匹配的通道数,增加了数据传输的并发度,可以提高数据的传输性能。Step 1.4, the server creates a corresponding socket structure for each network card according to the network card information table obtained in step 1.2, and initializes the socket structure, specifies a port number for the network card, and uses the network address and port obtained in step 1.2 number into the socket structure as described. Through the above operations, the number of data transmission channels between the network card and the NFS service thread is expanded, from the original sharing of one channel to the number of channels matching the number of network cards, which increases the concurrency of data transmission and improves data transmission performance.
步骤1.5、选择主网卡的套接字为主套接字,其服务端口号为2049,向服务器端口映射器进行端口号注册,其余套接字并不向端口映射器注册端口号。Step 1.5, select the socket of the main network card as the main socket, and its service port number is 2049, and register the port number with the server port mapper, and the other sockets do not register the port number with the port mapper.
所述的端口映射器的作用是当客户端不知道服务端口号时,可以向服务器查询。服务器根据端口映射器中注册的信息,返回给用户所请求服务的端口号。The function of the port mapper is that when the client does not know the service port number, it can query the server. According to the information registered in the port mapper, the server returns the port number of the service requested by the user.
在此步骤中,为NFS服务器指定了多个服务端口(即套接字),但是只有公开默认的2049号端口向端口映射器进行了注册。由于在安装(mount)服务器端NFS文件系统时,为了保留原有的mount协议,只指定了服务器端主网卡的地址。In this step, multiple service ports (i.e. sockets) are specified for the NFS server, but only the public default port 2049 is registered with the portmapper. When installing (mount) the server-side NFS file system, in order to retain the original mount protocol, only the address of the server-side main network card is specified.
步骤1.6、同时将所有套接字的“sk_bound_dev_if”字段设置为“1”,使得套接字结构与所指定的网卡绑定在一起。将套接字与指定的网卡绑定在一起,使得当网络设备发送数据包时就不会查询路由表发送数据,避免了对于处于同一网段的网卡总是选择首个网卡发送的问题。Step 1.6. At the same time, set the "sk_bound_dev_if" field of all sockets to "1", so that the socket structure is bound to the specified network card. Bind the socket with the specified network card, so that when the network device sends a data packet, it will not query the routing table to send data, avoiding the problem of always selecting the first network card to send for network cards in the same network segment.
完成服务器端的操作后,服务器把主网卡的网络地址和服务器端口号发送给客户端,然后在客户端中完成以下的操作:After completing the operation on the server side, the server sends the network address of the main network card and the server port number to the client, and then completes the following operations in the client:
步骤2.1、客户端向服务器发送获取服务器网卡物理地址信息和网络地址信息及端口号信息的请求,将服务器返回的结果保存在表中;在本步骤中所述的服务器网卡包括前述的主网卡和从网卡。Step 2.1, the client sends to the server a request to obtain the server network card physical address information, network address information and port number information, and saves the result returned by the server in the table; the server network card described in this step includes the aforementioned main network card and from the network card.
步骤2.2、根据得到的网卡信息及自动设置客户端arp配置文件,将服务器多个网卡的网络地址及物理地址填充到arp协议的读取静态解析网络地址的文件中;然后运行arp使配置生效,使得后续步骤中ethernet协议可以把目标IP地址转化为网卡物理地址,可以在媒体介质上传输数据。Step 2.2, according to the obtained network card information and automatically set the client arp configuration file, fill the network addresses and physical addresses of multiple network cards of the server into the file of the arp protocol for reading statically resolved network addresses; then run arp to make the configuration take effect, In the following steps, the ethernet protocol can convert the target IP address into the physical address of the network card, and can transmit data on the media medium.
步骤2.3、客户端利用服务器主网卡的网络地址安装(mount)NFS文件系统。完成本步骤的操作后,客户端即可使用网络文件系统。Step 2.3, the client uses the network address of the main network card of the server to install (mount) the NFS file system. After completing this step, the client can use the network file system.
步骤2.4、当客户端通过交换机与服务器进行通信时,客户端截取远程过程调用协议(RPC)数据包,该数据包的地址域中包括发送的目的网卡端口号和网络地址,在默认情况下,所述的目的网卡和网络地址是服务器中的主网卡的地址,网卡端口号为2049端口号。客户端从步骤2.1获得的服务器网络地址和端口地址对中选择一个目标地址,修改RPC数据包中的地址域中目的网卡的地址和端口号,这样网络层就可以根据目标地址将数据包发送到指定服务器网卡。在从服务器网络地址和端口地址对中选择一个目标地址时,采用轮循选择的策略,根据该策略可实现对网卡的动态选择。Step 2.4, when the client communicates with the server through the switch, the client intercepts the remote procedure call protocol (RPC) packet, and the address field of the packet includes the destination network card port number and network address sent, by default, The destination network card and the network address are the addresses of the main network card in the server, and the port number of the network card is port number 2049. The client selects a target address from the server network address and port address pair obtained in step 2.1, and modifies the address and port number of the destination network card in the address field in the RPC data packet, so that the network layer can send the data packet to Specifies the server NIC. When selecting a target address from the server network address and port address pair, a round-robin selection strategy is adopted, and the dynamic selection of the network card can be realized according to the strategy.
步骤2.5、判断上一步骤中选择的服务器网卡目标地址是否有效,若网卡标志为有效状态,则执行下一步,否则,执行步骤2.7;Step 2.5, judging whether the target address of the server network card selected in the previous step is valid, if the network card flag is valid, then perform the next step, otherwise, perform step 2.7;
步骤2.6、客户端向服务器发送远程过程调用协议(RPC)数据包,若发送失败,则标志网卡无效,并设置故障开始的时间,再按照步骤2.4重新选择网卡,若发送成功,则执行步骤2.9Step 2.6, the client sends a remote procedure call protocol (RPC) packet to the server. If the sending fails, the network card is marked as invalid, and the time when the fault starts is set, and then the network card is reselected according to step 2.4. If the sending is successful, then perform step 2.9
步骤2.7、网卡为无效状态,探测从故障时间到当前时间是否到达无效时间间隔阈值,如果到达无效时间间隔阈值,执行下一步,否则按照步骤2.4重新选择网卡;Step 2.7, the network card is in an invalid state, detect whether the invalid time interval threshold has been reached from the fault time to the current time, if the invalid time interval threshold is reached, perform the next step, otherwise, reselect the network card according to step 2.4;
步骤2.8、试探网络是否处于连通的状态,若网络连通,则重新发送数据包,发送成功后,标志网卡有效位为有效,若网络尚未连通,则重新设置故障时间为当前时间,然后按照步骤2.4重新选择网卡;Step 2.8. Test whether the network is connected. If the network is connected, resend the data packet. After the transmission is successful, the valid bit of the network card is marked as valid. If the network is not connected, reset the fault time to the current time, and then follow step 2.4 Reselect the network card;
步骤2.9、服务器从网卡接收到数据包后,通过所述创建的套接字传递给网络文件系统服务线程(nfsd),服务器将处理后的结果仍然从接受到请求的网卡发送给客户端。Step 2.9: After the server receives the data packet from the network card, it passes the created socket to the network file system service thread (nfsd), and the server still sends the processed result to the client from the network card that received the request.
图4是客户端发起服务器文件访问请求的流程实例。以客户端写操作为例,客户端应用程序调用写操作系统,虚拟文件系统层将操作转化为多个网络文件系统写操作请求,请求负载分发模块截获请求,为其选择目标地址,远程过程调用客户端模块将请求发往所指定的服务器目标地址。服务器将接受到的请求交给网络文件系统服务器端模块进行处理,将数据写回磁盘后,将应答信息交给网络通道并发模块,该模块按照初始化时设置的网卡设备与套接字绑定的原则将应答数据包传给远程过程调用服务器端模块,并从接受与该应答数据包相应的请求数据包的网卡发送给客户端。Fig. 4 is a flow example of a client initiating a server file access request. Taking the client write operation as an example, the client application calls the write operating system, and the virtual file system layer converts the operation into multiple network file system write operation requests, and the request load distribution module intercepts the request, selects the target address for it, and remote procedure call The client module sends the request to the specified server target address. The server sends the received request to the network file system server module for processing, writes the data back to the disk, and then sends the response information to the network channel concurrent module, which binds the network card device and the socket according to the initialization settings. The principle transmits the response packet to the remote procedure call server-side module, and sends it to the client from the network card that accepts the request packet corresponding to the response packet.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200610089538XA CN100414936C (en) | 2006-06-30 | 2006-06-30 | Method for Balancing the Load among Multiple Network Cards of Network File System Server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200610089538XA CN100414936C (en) | 2006-06-30 | 2006-06-30 | Method for Balancing the Load among Multiple Network Cards of Network File System Server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1878147A true CN1878147A (en) | 2006-12-13 |
CN100414936C CN100414936C (en) | 2008-08-27 |
Family
ID=37510443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200610089538XA Active CN100414936C (en) | 2006-06-30 | 2006-06-30 | Method for Balancing the Load among Multiple Network Cards of Network File System Server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100414936C (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719916B (en) * | 2009-11-13 | 2013-01-02 | 曙光信息产业(北京)有限公司 | Method for realizing multi-port network card data transmission |
CN103458011A (en) * | 2013-08-20 | 2013-12-18 | 厦门亿联网络技术股份有限公司 | Network interface controller binding method of multi-NIC computers in remote control |
CN104125303A (en) * | 2014-08-12 | 2014-10-29 | 北京奇虎科技有限公司 | Data read-and-write requesting method, client end and data read-and-write requesting system |
CN108829340A (en) * | 2018-05-03 | 2018-11-16 | 广州金山安全管理系统技术有限公司 | storage processing method, device, storage medium and processor |
CN109542001A (en) * | 2018-11-23 | 2019-03-29 | 中国汽车工程研究院股份有限公司 | A kind of Ethernet high-speed data acquisition working method for new-energy automobile chassis production |
CN109660422A (en) * | 2018-12-03 | 2019-04-19 | 郑州云海信息技术有限公司 | Network interface card bandwidth test method, apparatus, terminal and storage medium based on multi-process |
CN115174214A (en) * | 2022-07-05 | 2022-10-11 | 中孚安全技术有限公司 | Method and system for packet capturing of operating system application layer global network |
CN115297028A (en) * | 2022-10-08 | 2022-11-04 | 浙江大华技术股份有限公司 | Network card connectivity detection method and device, electronic device and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1272938C (en) * | 2002-12-04 | 2006-08-30 | 联想(北京)有限公司 | A method for increasing the bandwidth for Ethernet |
CN1261890C (en) * | 2003-01-23 | 2006-06-28 | 英业达股份有限公司 | Network card test method that can balance the load |
US7389298B2 (en) * | 2004-11-18 | 2008-06-17 | International Business Machines Corporation | Seamless remote traversal of multiple NFSv4 exported file systems |
-
2006
- 2006-06-30 CN CNB200610089538XA patent/CN100414936C/en active Active
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719916B (en) * | 2009-11-13 | 2013-01-02 | 曙光信息产业(北京)有限公司 | Method for realizing multi-port network card data transmission |
CN103458011A (en) * | 2013-08-20 | 2013-12-18 | 厦门亿联网络技术股份有限公司 | Network interface controller binding method of multi-NIC computers in remote control |
CN103458011B (en) * | 2013-08-20 | 2016-09-14 | 厦门亿联网络技术股份有限公司 | Network card binding method between multi-network card computer in remotely controlling |
CN104125303A (en) * | 2014-08-12 | 2014-10-29 | 北京奇虎科技有限公司 | Data read-and-write requesting method, client end and data read-and-write requesting system |
CN108829340A (en) * | 2018-05-03 | 2018-11-16 | 广州金山安全管理系统技术有限公司 | storage processing method, device, storage medium and processor |
CN109542001A (en) * | 2018-11-23 | 2019-03-29 | 中国汽车工程研究院股份有限公司 | A kind of Ethernet high-speed data acquisition working method for new-energy automobile chassis production |
CN109660422A (en) * | 2018-12-03 | 2019-04-19 | 郑州云海信息技术有限公司 | Network interface card bandwidth test method, apparatus, terminal and storage medium based on multi-process |
CN109660422B (en) * | 2018-12-03 | 2022-03-22 | 郑州云海信息技术有限公司 | Network card bandwidth testing method, device, terminal and storage medium based on multiple processes |
CN115174214A (en) * | 2022-07-05 | 2022-10-11 | 中孚安全技术有限公司 | Method and system for packet capturing of operating system application layer global network |
CN115297028A (en) * | 2022-10-08 | 2022-11-04 | 浙江大华技术股份有限公司 | Network card connectivity detection method and device, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100414936C (en) | 2008-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102907055B (en) | Systems and methods for link load balancing on multi-core device | |
CN1878147A (en) | Method for balancing load between multi network cards of network file system server | |
CN103155496B (en) | For the system and method for the connection that management server in multiple nucleus system is initiated | |
CN102763393B (en) | System and method for managing ports of RTSP across cores in a multi-core system | |
CN102771084B (en) | For managing the system and method for static proximity in multinuclear GSLB equipment | |
CN102460394B (en) | Systems and methods for a distributed hash table in a multi-core system | |
CN102549984B (en) | Systems and methods for packet steering in a multi-core architecture | |
CN103416025B (en) | Systems and methods for adding VLAN tags via a cloud bridge | |
CN102763374B (en) | Systems and methods for policy based integration to horizontally deployed wan optimization appliances | |
CN102483707B (en) | The system and method for source IP is kept in the multi-core environment of load balance | |
CN103650426B (en) | System and method for cloud bridging between public cloud and private cloud | |
CN102783090B (en) | Systems and methods for object rate limiting in a multi-core system | |
CN102763375B (en) | Systems and methods for gslb spillover | |
EP2601778B1 (en) | Systems and methods for iip address sharing across cores in a multi-core system | |
CN102771089B (en) | For the system and method by virtual server mixed mode process IP v6 and IPv4 flow | |
CN102714657B (en) | Systems and methods for client IP address insertion via TCP options | |
EP2267983B1 (en) | System and method for providing link management in a multi-core system | |
CN102771086B (en) | The system and method for intercept strategy for the virtual server of equipment | |
CN102771090B (en) | The system and method inserting for the transparent client computer IP based on strategy | |
CN104365067B (en) | System and method for recombinating the grouping distributed across cluster | |
CN104618243B (en) | Method for routing, apparatus and system, Scheduling of Gateway method and device | |
WO2012033613A1 (en) | Systems and methods for self-load balancing access gateways | |
CN103583022A (en) | Systems and methods for handling NIC congestion via NIC aware application | |
CN101043398A (en) | Method and system for sharing connection dynamically | |
JP2008295043A (en) | Intelligent load balancing and failover of network traffic |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210826 Address after: Building 5, No. 4, Nansi street, Zhongguancun, Haidian District, Beijing 100190 Patentee after: NFS-CHINA SOFTWARE Co.,Ltd. Address before: 100080 No. 6 South Road, Zhongguancun Academy of Sciences, Beijing, Haidian District Patentee before: Institute of Computing Technology, Chinese Academy of Sciences |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240617 Address after: 201210 3rd floor, building 1, No.400, Fangchun Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai Patentee after: SHANGHAI HUFANG SOFTWARE Co.,Ltd. Country or region after: China Address before: Building 5, No. 4, Nansi street, Zhongguancun, Haidian District, Beijing 100190 Patentee before: NFS-CHINA SOFTWARE Co.,Ltd. Country or region before: China |