CN110099115A - A kind of load-balancing method and system of transparent scheduling forwarding - Google Patents
A kind of load-balancing method and system of transparent scheduling forwarding Download PDFInfo
- Publication number
- CN110099115A CN110099115A CN201910361429.6A CN201910361429A CN110099115A CN 110099115 A CN110099115 A CN 110099115A CN 201910361429 A CN201910361429 A CN 201910361429A CN 110099115 A CN110099115 A CN 110099115A
- Authority
- CN
- China
- Prior art keywords
- network
- server
- port
- network address
- client
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/0209—Architectural arrangements, e.g. perimeter networks or demilitarized zones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1023—Server selection for load balancing based on a hash applied to IP addresses or costs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Abstract
The invention discloses the load-balancing methods and system of a kind of transparent scheduling forwarding, are suitable for LVS DR operating mode.This method is based on LVS serve port and carries out transparent scheduling forwarding to service request, breach the limitation that LVS DR must be LVS virtual network address VIP for service request purpose network address, do not influence service request, client does not perceive scheduling process, it can be improved and disposes efficiency, reduce lower deployment cost, breach the limitation that LVS DR necessarily is in load-balanced server LB and backstage real server RS same local area network, the Network Isolation that dispatch network and service network can be achieved, improves the safety of service network;The system includes adhering to the intermediate dispatch network and background service network of heterogeneous networks separately, the intermediate dispatch network is constructed based on this method, for positioned at the LB of same local area network and dispatch server FS cluster, the background service network is RS cluster, and cluster flexible form can match.
Description
Technical field
The present invention relates to computer network communication technology fields, and in particular to a kind of load balancing side of transparent scheduling forwarding
Method and system, for realizing the load balancing based on transparent scheduling forwarding.
Background technique
The access number that the rapid growth of internet faces network server quicklys increase, and needs to have the big rule of processing
The ability of mould concurrent services access, for the server of heavy load, CPU, I/O processing capacity are quickly become bottleneck, and single
The performance of platform server is always limited, and the simple hardware performance that improves can not be solved the problems, such as really.Therefore, it is necessary to using more
Server and load-balancing technique are just able to satisfy the needs of large-scale concurrent service access.
Multiple servers are formed a virtual server by LVS (Linux Virtual Server) load-balancing technique,
Service is externally provided so that virtual network address is unified, provides a load capacity to adapt to the network access requirements of rapid growth
It is easy to extension and cheap solution, it is true by the load balancer (Load Balancer, LB) and backstage of front end
Server (Real Server, RS) group composition, when the request of client is sent to virtual server, LB integrated network agreement
(Protocol), client network address (Client IP, CIP), port (Client Port, CPort) and Virtual Service
Virtual network address (Virtual IP, VIP), serve port (Virtual Port, VPort) that device externally services etc. are wanted
Service request scheduling is transmitted to RS according to preset scheduling forwarding strategy and load balance scheduling algorithm by element, and RS processing services,
And return to service response result.
LVS supports the tunnel NAT, TUN() and DR(direct routing) three kinds of operating modes.
The system structure diagram of existing LVS DR operating mode shown in referring to Fig.1, wherein RIP(RS IP) it is that backstage is true
The live network address of real server, RPort(RS Port) be backstage real server service response port, VPort is
The serve port of LVS virtual server.In existing LVS DR operating mode, the DIP of client-side service request is necessary for VIP, LB
It must be positioned in same local area network with RS, service interaction process are as follows:
1.Client initiates service request to VIP, VPort, and source network address and port are CIP, CPort, purpose network address
And port is VIP, VPort.
2.LB receives Client service request, according to Protocol, CIP, CPort, VIP, VPort lookup or newly-built company
It connects, scheduling is forwarded to the RS in same local area network.
3.RS handles service request, and service response is directly returned back to Client, source network address and port be RIP,
RPort, purpose network address and port are CIP, CPort.
Existing LVS DR operating mode is realized simply, and the high expense of IP tunnel is both used without TUN operating mode, was not also had
NAT operating mode realizes the big load of network address translation bring, and performance highest can also greatly improve server cluster
The retractility of system.However, LVS DR operating mode also has its limitation, shortcoming, it is required that client-side service request network
The purpose network address (Destination IP, DIP) of data must be the VIP of LVS virtual server, therefore its deployment request pair
Existing customer end carries out corresponding technological transformation, may increase lower deployment cost, influences to dispose efficiency.In addition, LVS DR Working mould
Formula requires LB and RS to must be positioned in same local area network, may be decreased the safety of background service network.
Summary of the invention
The technical problem to be solved in the present invention: in view of the above problems in the prior art, the transparent scheduling forwarding of one kind is provided
Load-balancing method and system, the present invention can be realized the forwarding of the transparent scheduling to client-side service request, can reduce and be deployed to
This, improves deployment efficiency, while separating scheduling and service, gives Network Isolation to intermediate dispatch network and background service network,
It can be improved the safety of background service network.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows:
A kind of load-balancing method of transparent scheduling forwarding, implementation steps include:
1) load balancer LB receives the service request that client initiates RIP, VPort, the source network address of the service request
And port is CIP, CPort, purpose network address and port are RIP, VPort, wherein CIP is the network address of client,
CPort is the port of client, and RIP is the live network address of backstage real server, and VPort is LVS virtual server
Serve port;
2) load balancer LB according to the source network address and port of agreement Protocol and its carrying be CIP, CPort and
The serve port VPort of LVS virtual server is searched or newly-built connection, by searching for or newly-built connection be dispatched to positioned at same
Dispatch server FS in local area network;
3) service request that load balancer LB scheduling comes is forwarded to background service network, the backstage by dispatch server FS
Service network belongs to different networks from dispatch server FS, load balancer LB;
4) background service network receives service request and is dispatched to backstage real server RS processing service request, and the backstage is true
Service response is directly returned back to client by real server RS, and the source network address of service response and port are RIP, RPort,
Purpose network address and port are CIP, CPort, and wherein CIP is the network address of client, and CPort is the port of client,
RIP is the live network address of backstage real server, and RPort is the answer service port of backstage real server.
Preferably, step 2 includes:
2.1) judge whether to receive the service request that client initiates RIP, VPort, if receiving client to RIP, VPort
The service request of initiation, which then jumps, executes step 2.2);Otherwise continue to jump and execute step 2.1);
It 2.2) is CIP, CPort and LVS Virtual Service according to the source network address and port of agreement Protocol and its carrying
The serve port VPort of device searches matching connection in connection Hash table ip_vs_conn_tab, if matched less than connection
It then jumps and executes step 2.5);Otherwise it jumps and performs the next step;
2.3) matched connection is obtained;
2.4) judge whether the corresponding dispatch server FS of the connection can be used, turn the service request of client if available
It send to corresponding dispatch server FS, jumps execution step 3);Otherwise the service request for abandoning client, terminates and exits;
2.5) judge whether newly-built connection, be then to jump and perform the next step;Otherwise, terminate and exit;
2.6) scheduling forwarding strategy Hash is matched according to the serve port VPort of agreement Protocol and its LVS virtual server
Table ip_vs_svc_table finds matched dispatch server FS;
2.7) selection scheduling server FS and new connection is created, if creating new successful connection, jumps and execute step 2.4);It is no
Then, terminate and exit.
Preferably, step 2.1)~step 2.7) is by the input processing interface function in LVS kernel module ip_vs
What ip_vs_in was realized, and further include the step being customized to input processing interface function ip_vs_in before step 2.1)
Suddenly, comprising:
Ip_vs_in interface function is moved into NF_INET_PRE_ROUTING mount point;
Ip_vs_in interface function is removed to the forbidden limitation of the network data of non-VIP in purpose network address DIP to handle mesh
The non-VIP of network address DIP network data;
By VIP from connection Hash table ip_vs_conn_tab, scheduling forwarding strategy Hash table ip_vs_svc_table storing data
It needs to remove in the element of the Hash keys hash key calculated in the process;
The process that will acquire scheduling forwarding strategy is revised as the serve port of foundation agreement Protocol, LVS virtual server
VPort element carries out match query;
By the process for searching dispatch server FS connection be revised as source network address according to agreement Protocol and its carrying and
Port is that the serve port VPort of CIP, CPort and LVS virtual server is searched.
The present invention also provides a kind of SiteServer LBSs of transparent scheduling forwarding, the intermediate scheduling including adhering to heterogeneous networks separately
Network and background service network, load-balancing method of the intermediate dispatch network based on transparent scheduling forwarding disclosed by the invention
Building is realized including the load balancer LB and dispatch server FS being located in same local area network to client-side service request net
The transparent scheduling of network data forwards, and the background service network is backstage real server RS cluster, and cluster form can flexibly match
It sets, service processing and answering is provided.Load balancer LB receives the service request that client initiates RIP, VPort, should
The source network address of service request and port be CIP, CPort, purpose network address and port are RIP, VPort, and wherein CIP is
The network address of client, CPort are the ports of client, and RIP is the live network address of backstage real server, VPort
It is the serve port of LVS virtual server;Load balancer LB according to the source network address of agreement Protocol and its carrying and
Port is that the serve port VPort of CIP, CPort and LVS virtual server is searched or newly-built connection, by searching for or it is newly-built
Connection be dispatched to the dispatch server FS in same local area network;Dispatch server FS comes load balancer LB scheduling
Service request be forwarded to background service network, the background service network adheres to separately with dispatch server FS, load balancer LB
In different networks;Background service network receives service request and is dispatched to backstage real server RS processing service request, institute
It states backstage real server RS and service response is directly returned back into client, and the source network address of service response and port are
RIP, RPort, purpose network address and port are CIP, CPort, and wherein CIP is the network address of client, and CPort is client
The port at end, RIP are the live network addresses of backstage real server, and RPort is the answer service end of backstage real server
Mouthful.
Compared to the prior art, the present invention has an advantage that
1, the method for the present invention is realized based on the load-balancing technique LVS of open source, is suitable for direct routing (DR) operating mode.The party
Method is based on LVS serve port and carries out transparent scheduling forwarding to service request, breaches LVS DR operating mode and client is taken
Business request data purpose network address must be the limitation of load-balanced server virtual network address, not influence client service
Request, client do not perceive scheduling process, it can be improved and disposes efficiency, reduces its lower deployment cost.
2, the method for the present invention breach LVS DR operating mode must for load-balanced server and backstage real server
Must in same local area network limitation, it can be achieved that dispatch network and service network Network Isolation, improve the safety of service network
Property.
Detailed description of the invention
Fig. 1 is the schematic illustration of existing LVS DR operating mode.
Fig. 2 is the schematic illustration of the load-balancing method of the embodiment of the present invention.
Fig. 3 is the theory structure schematic diagram of the load-balancing method of the embodiment of the present invention.
Fig. 4 is the techniqueflow chart of load balancer LB load-balancing method in the embodiment of the present invention.
Fig. 5 is the system structure diagram of the load-balancing method of the embodiment of the present invention.
Specific embodiment
In order to be more clear the mode of the present invention solved the problems, such as it can be readily appreciated that with reference to the accompanying drawings and detailed description
It is described in detail.
As shown in Fig. 2, the implementation steps of the load-balancing method of the transparent scheduling forwarding of the present embodiment include:
1) load balancer LB receives the service request that client initiates RIP, VPort, the source network address of the service request
And port is CIP, CPort, purpose network address and port are RIP, VPort, wherein CIP is the network address (visitor of client
Family end IP), CPort is the port of client, and RIP is live network address (the backstage real server of backstage real server
IP), VPort is the serve port of LVS virtual server;
2) load balancer LB according to the source network address and port of agreement Protocol and its carrying be CIP, CPort and
The serve port VPort of LVS virtual server is searched or newly-built connection, by searching for or newly-built connection be dispatched to positioned at same
Dispatch server FS in local area network;
3) service request that load balancer LB scheduling comes is forwarded to background service network, the backstage by dispatch server FS
Service network belongs to different networks (such as local area network) from dispatch server FS, load balancer LB;
4) background service network receives service request and is dispatched to backstage real server RS processing service request, and the backstage is true
Service response is directly returned back to client by real server RS, and the source network address of service response and port are RIP, RPort,
Purpose network address and port are CIP, CPort, and wherein CIP is the network address (client ip) of client, and CPort is client
The port at end, RIP are the live network addresses (backstage real server IP) of backstage real server, and RPort is that backstage is true
The serve port of server.
The load-balancing method of transparent scheduling forwarding disclosed by the invention is applied to LVS server, is suitable for LVS DR work
Operation mode, the load balance scheduling algorithm for supporting LVS all.The load of the transparent scheduling forwarding of the present embodiment referring to shown in Fig. 2 is equal
The schematic illustration of weighing apparatus method, wherein FS(Forward Server) it is dispatch server, VPort is LVS virtual server
Serve port, RIP, RPort paraphrase see above explanation.The DIP that the present embodiment method breaches Client service request is necessary
For the limitation of VIP, DIP RIP, LB and FS are located at same local area network, but adhere to heterogeneous networks separately with RS, realize Network Isolation.
As shown in figure 3, the DIP of client-side service request is directly the live network address RIP of backstage real server, in
Between LB in dispatch network (Middle Forward Net) service request is dispatched to dispatch server FS, dispatch server FS
Service request is forwarded to background service network (Backend Service Net), background service network receives service request, and
It is dispatched to backstage real server RS processing service request, service response is directly returned back to client by backstage real server RS
End.Wherein, intermediate dispatch network (Middle Forward Net) realizes that the transparent scheduling to client-side service request forwards, visitor
Family end does not perceive scheduling repeating process.Wherein, intermediate dispatch network (Middle Forward Net) and background service network
(Backend Service Net) adheres to heterogeneous networks separately, realizes Network Isolation.Since dispatch server FS is for realizing service
The forwarding of request, therefore, it is necessary in advance be that dispatch server FS opening network forwards.
As shown in figure 4, step 2 includes:
2.1) judge whether to receive the service request that client initiates RIP, VPort, if receiving client to RIP, VPort
The service request of initiation, which then jumps, executes step 2.2);Otherwise continue to jump and execute step 2.1);
It 2.2) is CIP, CPort and LVS Virtual Service according to the source network address and port of agreement Protocol and its carrying
The serve port VPort of device searches whether that there are existing connections in connection Hash table ip_vs_conn_tab, if existing
Connection there is no then jump execute step 2.5);Otherwise it jumps and performs the next step;
2.3) connection found is obtained;
2.4) judge whether the corresponding dispatch server FS of the connection can be used, pass through the service request of client if available
NF_INET_LOCAL_OUT is sent to corresponding dispatch server FS, jumps execution step 3);Otherwise the service for abandoning client is asked
It asks, returns to packet loss signal NF_DROP, terminate and exit;
2.5) judge whether newly-built connection, be then to jump and perform the next step;Otherwise, NF_ACCEPT is returned, terminates and exits;
2.6) scheduling forwarding strategy Hash table ip_ is matched according to the serve port VPort of agreement Protocol and LVS virtual server
Vs_svc_table finds matched dispatch server FS;
2.7) selection scheduling server FS and new connection is created, if creating new successful connection, jumps and execute step 2.4);It is no
Then, continue to transmit signal NF_ACCEPT or packet loss signal NF_DROP according to situation return, terminate and exit.
In the present embodiment, step 2.1)~step 2.7) is by the input processing interface letter in LVS kernel module ip_vs
Number ip_vs_in is realized, and is further included the step being customized to input processing interface function ip_vs_in before step 2.1)
Suddenly, comprising:
Ip_vs_in interface function is moved into NF_INET_PRE_ROUTING mount point;Input processing interface function ip_vs_in
Rely on linux kernel NetFilter frame, NF_INET_PRE_ROUTING mount point be exactly NetFilter frame wherein
Ip_vs_in interface function can be mounted to by one function mount point by NF_INET_PRE_ROUTING mount point
NetFilter frame, to realize the input processing to service request;
Ip_vs_in interface function is removed to the forbidden limitation of the network data of non-VIP in purpose network address DIP to handle mesh
The non-VIP of network address DIP network data;
By VIP from connection Hash table ip_vs_conn_tab, scheduling forwarding strategy Hash table ip_vs_svc_table storing data
It needs to remove in the element of the Hash keys hash key calculated in the process;
The process that will acquire scheduling forwarding strategy is revised as the serve port of foundation agreement Protocol, LVS virtual server
VPort element carries out match query;
The process for searching dispatch server FS is revised as source network address and port according to agreement Protocol and its carrying
It is searched for the serve port VPort of CIP, CPort and LVS virtual server.
The load-balancing method of the transparent scheduling forwarding of the present embodiment has an advantage that
1, it is applied to LVS server, is suitable for LVS DR operating mode, the load balance scheduling algorithm for supporting LVS all.
2, this method supports transparent scheduling forwarding, breaches LVS DR operating mode for client-side service request network number
It must be the limitation for the virtual network address that load-balanced server is configured, client-side service request according to packet purpose network address
The purpose network address of network packet is the live network address of backstage real server.
3, this method supports transparent scheduling forwarding, is carried out based on LVS serve port to service request network packet transparent
Scheduling forwarding, does not influence the service request network data of client to backstage real server, client does not perceive load balancing
Repeating process is dispatched, the efficiency of its load balancing deployment can be improved, reduces adaptation requirement of its load balancing deployment to client.
4, this method supports Network Isolation, and it is true for load-balanced server and backstage to breach LVS DR operating mode
Server necessarily be in the limitation of same local area network, it can be achieved that dispatch network and service network Network Isolation, improve service network
The safety of network.
As shown in Figure 3 and Figure 5, the SiteServer LBS of the transparent scheduling forwarding of the present embodiment includes adhering to separately in heterogeneous networks
Between dispatch network and background service network, the intermediate dispatch network include load balancer LB in same local area network and
Dispatch server FS, the background service network are backstage real server RS cluster.Load balancer LB receives client pair
The service request that RIP, VPort are initiated, the source network address of the service request and port are CIP, CPort, purpose network address
And port is RIP, VPort, wherein CIP is the network address of client, and CPort is the port of client, and RIP is that backstage is true
The live network address of server, VPort are the serve ports of LVS virtual server;Load balancer LB is according to agreement
The source network address and port of Protocol and its carrying are the serve port VPort of CIP, CPort and LVS virtual server
Search or newly-built connection, by searching for or newly-built connection be dispatched to the dispatch server FS in same local area network;Scheduling
The service request that comes of load balancer LB scheduling is forwarded to background service network by server FS, the background service network with
Dispatch server FS, load balancer LB belong to different networks;After background service network receives service request and is dispatched to
Platform real server RS handles service request, and service response is directly returned back to client by the backstage real server RS, and
The source network address of service response and port are RIP, RPort, and purpose network address and port are CIP, CPort, and wherein CIP is
The network address of client, CPort are the ports of client, and RIP is the live network address of backstage real server, RPort
It is the serve port of backstage real server.The SiteServer LBS of the present embodiment is by intermediate dispatch network and background service network
Composition, intermediate dispatch network and background service network adhere to heterogeneous networks separately, and data are by intermediate dispatch network to background service network
One-way flow realizes the Network Isolation of intermediate dispatch network Yu background service network, improves the safety of background service network
Property.Load-balancing method building of the intermediate dispatch network based on transparent scheduling forwarding disclosed by the invention, by being in same local
The load balancer and server cluster of net form, and function is realized to the transparent of client-side service request network data
Scheduling forwarding.Background service network is made of backstage real server cluster, and backstage real server cluster form can be by user
Flexible configuration, function are service processing and service response.
In the present embodiment, load balancer LB receives the step executed after the service request that client initiates RIP, VPort
Suddenly include abovementioned steps 2.1)~step 2.7).
In conclusion present embodiment discloses a kind of load-balancing methods of transparent scheduling forwarding and system, it can be achieved that right
The transparent scheduling of client-side service request forwards, and can reduce lower deployment cost, improves deployment efficiency, while separating scheduling and service,
Network Isolation is given to intermediate dispatch network and background service network, improves the safety of background service network.
The above is only a preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-mentioned implementation
Example, all technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art
Those of ordinary skill for, several improvements and modifications without departing from the principles of the present invention, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (4)
1. a kind of load-balancing method of transparent scheduling forwarding, it is characterised in that implementation steps include:
1) load balancer LB receives the service request that client initiates RIP, VPort, the source network address of the service request
And port is CIP, CPort, purpose network address and port are RIP, VPort, wherein CIP is the network address of client,
CPort is the port of client, and RIP is the live network address of backstage real server, and VPort is LVS virtual server
Serve port;
2) load balancer LB according to the source network address and port of agreement Protocol and its carrying be CIP, CPort and
The serve port VPort of LVS virtual server is searched or newly-built connection, by searching for or newly-built connection be dispatched to positioned at same
Dispatch server FS in local area network;
3) service request that load balancer LB scheduling comes is forwarded to background service network, the backstage by dispatch server FS
Service network belongs to different networks from dispatch server FS, load balancer LB;
4) background service network receives service request and is dispatched to backstage real server RS processing service request, and the backstage is true
Service response is directly returned back to client by real server RS, and the source network address of service response and port are RIP, RPort,
Purpose network address and port are CIP, CPort, and wherein CIP is the network address of client, and CPort is the port of client,
RIP is the live network address of backstage real server, and RPort is the service response port of backstage real server.
2. the load-balancing method of transparent scheduling forwarding according to claim 1, which is characterized in that step 2 includes:
2.1) judge whether to receive the service request that client initiates RIP, VPort, if receiving client to RIP, VPort
The service request of initiation, which then jumps, executes step 2.2);Otherwise continue to jump and execute step 2.1);
It 2.2) is CIP, CPort and LVS Virtual Service according to the source network address and port of agreement Protocol and its carrying
The serve port VPort of device searches matching connection in connection Hash table ip_vs_conn_tab, if matching less than connection
It jumps and executes step 2.5);Otherwise it jumps and performs the next step;
2.3) matched connection is obtained;
2.4) judge whether the corresponding dispatch server FS of the connection can be used, transfer the service request of client if available
To corresponding dispatch server FS, execution step 3) is jumped;Otherwise the service request for abandoning client, terminates and exits;
2.5) judge whether newly-built connection, be then to jump and perform the next step;Otherwise, terminate and exit;
2.6) scheduling forwarding strategy Hash is matched according to the serve port VPort of agreement Protocol and its LVS virtual server
Table ip_vs_svc_table finds matched dispatch server FS;
2.7) selection scheduling server FS and new connection is created, if creating new successful connection, jumps and execute step 2.4);It is no
Then, terminate and exit.
3. the load-balancing method of transparent scheduling forwarding according to claim 2, which is characterized in that step 2.1)~step
It 2.7) is to be realized by the input processing interface function ip_vs_in in LVS kernel module ip_vs, and before step 2.1)
Further include the steps that being customized input processing interface function ip_vs_in, comprising:
Ip_vs_in interface function is moved into NF_INET_PRE_ROUTING mount point;
Ip_vs_in interface function is removed to the forbidden limitation of the network data of non-VIP in purpose network address DIP to handle mesh
The non-VIP of network address DIP network data;
By VIP from connection Hash table ip_vs_conn_tab, scheduling forwarding strategy Hash table ip_vs_svc_table storing data
It needs to remove in the element of the Hash keys hash key calculated in the process;
The process that will acquire scheduling forwarding strategy is revised as the serve port of foundation agreement Protocol, LVS virtual server
VPort element carries out match query;
By search dispatch server FS connection process be revised as according to agreement Protocol, service request source network address and
Port is that the serve port VPort of CIP, CPort and LVS virtual server is searched.
4. a kind of SiteServer LBS of transparent scheduling forwarding, which is characterized in that dispatch net including adhering to the intermediate of heterogeneous networks separately
Network and background service network, load-balancing method structure of the intermediate dispatch network based on transparent scheduling forwarding disclosed by the invention
It builds, including the load balancer LB and dispatch server FS being located in same local area network, realizes to client-side service request network
The transparent scheduling of data forwards, and the background service network is backstage real server RS cluster, and the load balancer LB is received
The service request initiated to client RIP, VPort, the source network address of the service request and port are CIP, CPort, mesh
Network address and port be RIP, VPort, wherein CIP is the network address of client, and CPort is the port of client, RIP
It is the live network address of backstage real server, VPort is the serve port of LVS virtual server;Load balancer LB root
Source network address and port according to agreement Protocol and its carrying are the server-side of CIP, CPort and LVS virtual server
Mouthful VPort is searched or newly-built connection, by searching for or newly-built connection be dispatched to the dispatch server in same local area network
FS;The service request that load balancer LB scheduling comes is forwarded to background service network, the backstage clothes by dispatch server FS
Business network belongs to different networks from dispatch server FS, load balancer LB;Background service network receives service request simultaneously
It is dispatched to backstage real server RS processing service request, service response is directly returned back to visitor by the backstage real server RS
Family end, and the source network address of service response and port are RIP, RPort, purpose network address and port are CIP, CPort,
Middle CIP is the network address of client, CPort is the port of client, and RIP is the live network of backstage real server
Location, RPort are the answer service ports of backstage real server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910361429.6A CN110099115B (en) | 2019-04-30 | 2019-04-30 | Load balancing method and system for transparent scheduling forwarding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910361429.6A CN110099115B (en) | 2019-04-30 | 2019-04-30 | Load balancing method and system for transparent scheduling forwarding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110099115A true CN110099115A (en) | 2019-08-06 |
CN110099115B CN110099115B (en) | 2022-02-22 |
Family
ID=67446530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910361429.6A Active CN110099115B (en) | 2019-04-30 | 2019-04-30 | Load balancing method and system for transparent scheduling forwarding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110099115B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110311982A (en) * | 2019-07-05 | 2019-10-08 | 浪潮云信息技术有限公司 | A kind of implementation method of High Availabitity server cluster system |
CN110932992A (en) * | 2019-11-29 | 2020-03-27 | 深圳供电局有限公司 | Load balancing communication method based on tunnel mode |
CN110933190A (en) * | 2019-10-18 | 2020-03-27 | 平安科技(深圳)有限公司 | Client address obtaining method and device, storage medium and computer equipment |
CN112073503A (en) * | 2020-09-03 | 2020-12-11 | 浪潮云信息技术股份公司 | High-performance load balancing method based on flow control mechanism |
CN113877199A (en) * | 2021-12-07 | 2022-01-04 | 北京蔚领时代科技有限公司 | Line scheduling method and device suitable for cloud game scene |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009061973A1 (en) * | 2007-11-09 | 2009-05-14 | Blade Network Technologies, Inc. | Session-less load balancing of client traffic across servers in a server group |
CN103220354A (en) * | 2013-04-18 | 2013-07-24 | 广东宜通世纪科技股份有限公司 | Method for achieving load balancing of server cluster |
CN103491053A (en) * | 2012-06-08 | 2014-01-01 | 北京百度网讯科技有限公司 | UDP load balancing method, UDP load balancing system and UDP load balancing device |
CN106302225A (en) * | 2016-10-18 | 2017-01-04 | 上海优刻得信息科技有限公司 | A kind of method and apparatus of server load balancing |
CN106686085A (en) * | 2016-12-29 | 2017-05-17 | 华为技术有限公司 | Load balancing method, apparatus and system |
CN107995123A (en) * | 2016-10-27 | 2018-05-04 | 贵州白山云科技有限公司 | A kind of SiteServer LBS and method based on interchanger |
CN108833282A (en) * | 2018-06-22 | 2018-11-16 | 北京云枢网络科技有限公司 | Data forwarding method, system, device and SDN switch |
-
2019
- 2019-04-30 CN CN201910361429.6A patent/CN110099115B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009061973A1 (en) * | 2007-11-09 | 2009-05-14 | Blade Network Technologies, Inc. | Session-less load balancing of client traffic across servers in a server group |
CN103491053A (en) * | 2012-06-08 | 2014-01-01 | 北京百度网讯科技有限公司 | UDP load balancing method, UDP load balancing system and UDP load balancing device |
CN103220354A (en) * | 2013-04-18 | 2013-07-24 | 广东宜通世纪科技股份有限公司 | Method for achieving load balancing of server cluster |
CN106302225A (en) * | 2016-10-18 | 2017-01-04 | 上海优刻得信息科技有限公司 | A kind of method and apparatus of server load balancing |
CN107995123A (en) * | 2016-10-27 | 2018-05-04 | 贵州白山云科技有限公司 | A kind of SiteServer LBS and method based on interchanger |
CN106686085A (en) * | 2016-12-29 | 2017-05-17 | 华为技术有限公司 | Load balancing method, apparatus and system |
CN108833282A (en) * | 2018-06-22 | 2018-11-16 | 北京云枢网络科技有限公司 | Data forwarding method, system, device and SDN switch |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110311982A (en) * | 2019-07-05 | 2019-10-08 | 浪潮云信息技术有限公司 | A kind of implementation method of High Availabitity server cluster system |
CN110933190A (en) * | 2019-10-18 | 2020-03-27 | 平安科技(深圳)有限公司 | Client address obtaining method and device, storage medium and computer equipment |
CN110932992A (en) * | 2019-11-29 | 2020-03-27 | 深圳供电局有限公司 | Load balancing communication method based on tunnel mode |
CN112073503A (en) * | 2020-09-03 | 2020-12-11 | 浪潮云信息技术股份公司 | High-performance load balancing method based on flow control mechanism |
CN113877199A (en) * | 2021-12-07 | 2022-01-04 | 北京蔚领时代科技有限公司 | Line scheduling method and device suitable for cloud game scene |
CN113877199B (en) * | 2021-12-07 | 2022-03-11 | 北京蔚领时代科技有限公司 | Line scheduling method and device suitable for cloud game scene |
Also Published As
Publication number | Publication date |
---|---|
CN110099115B (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110099115A (en) | A kind of load-balancing method and system of transparent scheduling forwarding | |
CN103023942B (en) | A kind of server load balancing method, Apparatus and system | |
CN102685177B (en) | The transparent proxy cache method of resource, the network equipment and system | |
CN102685179B (en) | Modular transparent proxy cache | |
CA2968964C (en) | Source ip address transparency systems and methods | |
US6507589B1 (en) | Method and apparatus for routing between network gateways and service centers | |
CN109547580B (en) | Method and device for processing data message | |
CN101217493B (en) | TCP data package transmission method | |
CN106302225B (en) | A kind of method and apparatus of server load balancing | |
US8898313B2 (en) | Relay devices cooperating to distribute a message from same terminal to same server while session continues | |
US20220150161A1 (en) | Routing application calls | |
US10693785B2 (en) | Method and system for forwarding data, virtual load balancer, and readable storage medium | |
CN105991793B (en) | The method and apparatus of message forwarding | |
CN110225150A (en) | Communication means, system and storage medium between different network protocol | |
CN107846365A (en) | A kind of load balancing based on SDN realizes system and method | |
CN1223159C (en) | Method of supporting address transfer application network | |
CN110768911B (en) | Method, device, equipment, system and storage medium for efficient flow drainage | |
CN110149411A (en) | A kind of session keeping method, device, storage medium and processor | |
CN101035082B (en) | Unpacked message recombining method and interface board | |
CN101360153A (en) | Interface apparatus, exchange apparatus with the apparatus, and control method for use in the apparatus | |
CN101247328B (en) | Multi-connection processing method and device for network application | |
CN116089053A (en) | Data processing method, device and storage medium | |
CN108696598A (en) | The message for receiving stateless service under a kind of micro services framework passes through the long method and apparatus for connecting transparent transmission | |
CN112073503A (en) | High-performance load balancing method based on flow control mechanism | |
US20230087723A1 (en) | Communication apparatus, communication system, communication method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 4 / F, Qilin science and Technology Park, No.20, Qiyun Road, high tech Zone, Changsha City, Hunan Province, 410000 Applicant after: Hunan Qilin Xin'an Technology Co., Ltd Address before: 4 / F, Qilin science and Technology Park, No.20, Qiyun Road, high tech Zone, Changsha City, Hunan Province, 410000 Applicant before: HUNAN KYLIN XINAN TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |