CN107249038A - Business datum retransmission method and system - Google Patents

Business datum retransmission method and system Download PDF

Info

Publication number
CN107249038A
CN107249038A CN201710544524.0A CN201710544524A CN107249038A CN 107249038 A CN107249038 A CN 107249038A CN 201710544524 A CN201710544524 A CN 201710544524A CN 107249038 A CN107249038 A CN 107249038A
Authority
CN
China
Prior art keywords
server
forwarding
business datum
candidate
cluster
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.)
Pending
Application number
CN201710544524.0A
Other languages
Chinese (zh)
Inventor
谢敏
张丹
王浩宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710544524.0A priority Critical patent/CN107249038A/en
Publication of CN107249038A publication Critical patent/CN107249038A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This disclosure relates to a kind of business datum retransmission method and system.Coordination service device, forwarding server and service server are deployed in the server cluster of the business datum retransmission method, methods described includes:The coordination service device receives the business datum that client is sent;The coordination service device obtains candidate's forwarding server mark in the forwarding cluster set configured, and the forwarding cluster set stores the corresponding forwarding server mark of available forwarding server in the server cluster;The business datum is forwarded to candidate's forwarding server that candidate's forwarding server identifies instruction by the coordination service device;The business datum is forwarded to service server by candidate's forwarding server;The service server handles the business datum and met with a response data, and returns to the response data to the client.The availability of business datum forwarding can be effectively improved using the disclosure, and then improves the treatment effeciency of business datum.

Description

Business datum retransmission method and system
Technical field
This disclosure relates to Internet technical field, more particularly to a kind of business datum retransmission method and system.
Background technology
Client access service server where user, and during the service server accessed with it is interacted Produced data are business datum.
With the fast development of Internet technology, number of users is increased rapidly, correspondingly, and service server needs to be processed Business datum is also increased sharply therewith, and this necessarily causes the pressure of service server to exceed its scope that can bear.
Thus, solution of the prior art is to constitute server cluster by multiple service servers, and in the service Coordination service device is disposed in device cluster, forwards different user corresponding by multiple service servers that are scheduling to of coordination service device Business datum, alleviates the pressure of service server with this.
However, being limited by the disposal ability of coordination service device, easily there is business datum forwarding and interrupt and cause network to lose Bag, causes business datum to send repeatedly, and then have impact on the treatment effeciency of business datum.
The content of the invention
In order to solve the above-mentioned technical problem, a purpose of the disclosure is to provide a kind of business datum retransmission method and is System.
Wherein, the technical scheme that the disclosure is used for:
Coordination service device, forwarding server and business clothes are deployed in a kind of business datum retransmission method, server cluster Business device, methods described includes:The coordination service device receives the business datum that client is sent;The coordination service device is by configuring Forwarding cluster set in obtain candidate forwarding server mark, the forwarding cluster set is stored in the server cluster The corresponding forwarding server mark of available forwarding server;The business datum is forwarded to the time by the coordination service device The candidate's forwarding server for selecting forwarding server mark to indicate;The business datum is forwarded to industry by candidate's forwarding server Business server;The service server handles the business datum and met with a response data, and returns to the response data to described Client.
A kind of business datum repeater system, including be deployed in server cluster coordination service device, forwarding server and Service server, wherein, the coordination service device is used for the business datum for receiving client transmission;The coordination service device is used for Candidate's forwarding server mark is obtained in the forwarding cluster set configured, the forwarding cluster set stores the server The corresponding forwarding server mark of available forwarding server in cluster;The coordination service device is used to turn the business datum It is sent to candidate's forwarding server that candidate's forwarding server mark is indicated;Candidate's forwarding server is used for the industry Data forwarding of being engaged in is to service server;The service server, which is used to handling the business datum, to meet with a response data, and returns The response data is to the client.
Compared with prior art, the disclosure has the advantages that:
Coordination service device, forwarding server and service server are disposed in server cluster, is received by forwarding server The business datum of coordination service device forwarding, then the business datum is forwarded to service server, turning for business datum is realized with this Hair.
Specifically, coordination service device receives the business datum that client is sent, and in the forwarding cluster set configured Candidate's forwarding server mark is obtained, and the candidate that business datum is forwarded into candidate's forwarding server mark instruction forwards and taken Business device, is forwarded to service server, and then make it that service server processing should by business datum again by candidate's forwarding server Business datum meets with a response data, and returns to response data to client, thus, in business datum repeating process, have passed through two The one-level forwarding of level forwarding, i.e. coordination service device device and two grades of forwardings of forwarding server, while passing through candidate's forwarding server The acquisition of mark has ensured the availability for the forwarding server for performing two grades of forwardings, and then ensure that two grades of forwardings of forwarding server Smoothness, it is to avoid occur forwarding interrupt and cause Network Packet Loss, with this be effectively improved business datum forwarding availability, So as to improve the treatment effeciency of business datum.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used in specification to explain the principle of the disclosure together.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure;
Fig. 2 is a kind of block diagram of server according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of business datum retransmission method according to an exemplary embodiment;
Fig. 4 is that Fig. 3 corresponds to flow chart of the step 330 in one embodiment in embodiment;
Fig. 5 is that Fig. 3 corresponds to flow chart of the step 350 in one embodiment in embodiment;
Fig. 6 is the flow chart of another business datum retransmission method according to an exemplary embodiment;
Fig. 7 is that Fig. 3 corresponds to flow chart of the step 370 in one embodiment in embodiment;
Fig. 8 is that another business datum retransmission method implements schematic diagram in an application scenarios;
Fig. 9 is a kind of block diagram of data forwarding system according to an exemplary embodiment;
Figure 10 is that Fig. 9 corresponds to block diagram of the coordination service device 700 in one embodiment in embodiment;
Figure 11 is that Fig. 9 corresponds to block diagram of the coordination service device 700 in another embodiment in embodiment;
Figure 12 is that Fig. 9 corresponds to block diagram of the forwarding server 800 in one embodiment in embodiment;
Figure 13 is that Fig. 9 corresponds to block diagram of the forwarding server 800 in another embodiment in embodiment.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail, these accompanying drawings It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent system and method for some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic diagram of the implementation environment involved by business datum retransmission method.The implementation environment includes user Client 173, the server where equipment and server cluster, client 171 where the user equipment includes user and user Coordination service device 110, forwarding server 130, service server 150 and domain name resolution server 190 are deployed in cluster 100.
The IP that wherein, client 171 passes through the corresponding destination server of the acquisition of domain name resolution server 190 business datum Location, and sent the business datum to corresponding coordination service device 110 based on the IP address.
Coordination service device 110 can receive the business datum of the transmission of client 171 as the front end access point of client 171, And the business datum is forwarded to forwarding server 130 as one-level forwarding server.
Forwarding server 130 receives the business datum of the forwarding of coordination service device 110, and should as two grades of forwarding servers Business datum is forwarded to service server 150.
On the one hand, service server 150 receives the business datum that forwarding server 130 is forwarded, and handles the business datum The data that meet with a response return to client 171;On the other hand, service server 150, can as the front end access point of client 173 Receive client 173 send business datum, and handle the business datum meet with a response data return client 173.
Optionally, between coordination service device 110 and forwarding server 130 can (solid line as shown in Figure 1) by interior Net realizes the forwarding of business datum, and is deployed in same Virtual Server Cluster.Forwarding server 130 and service server The forwarding of business datum can be then realized between 150 by public network network (dotted line as shown in Figure 1).
Optionally, client 171 and client 173 can use same business, and service server 150 is to support The server of the business.
Optionally, client 171 is located at first area, and client 173, service server 150 are located at second area.This When, the business datum that client 171 is sent to service server 150 belongs to the business datum of trans-regional transmission.
Fig. 2 is a kind of block diagram of server 200 according to an exemplary embodiment.It should be noted that the service Device 200 is an example for adapting to the disclosure, it is impossible to be considered any limitation there is provided use scope of this disclosure. The server 200 can not be construed to need to rely on or must have in the exemplary server 200 shown in Fig. 2 One or more component.
The hardware configuration of the server 200 can produce larger difference because of the difference of configuration or performance, such as Fig. 2 institutes Show, server 200 includes:Power supply 210, interface 230, at least a storage medium 250 and an at least central processing unit (CPU, Central Processing Units)270。
Wherein, power supply 210 is used to provide operating voltage for each hardware device on server 200.
Interface 230 includes at least one wired or wireless network interface 231, at least a string and translation interface 233, at least one defeated Enter output interface 235 and at least USB interface 237 etc., be used for and external device communication.
The carrier that storage medium 250 is stored as resource, can be random storage medium, disk or CD etc., thereon The resource stored includes operating system 251, application program 253 and data 255 etc., storage mode can be of short duration storage or Permanently store.Wherein, operating system 251 is used to managing and controlling each hardware device and the application program on server 200 253, to realize calculating and processing of the central processing unit 270 to mass data 255, it can be Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Application program 253 is to be based on completing at least one on operating system 251 The computer program of item particular job, it can include an at least module (not shown in Fig. 2), and each module can be wrapped respectively Contain the sequence of operations instruction to server 200.Data 255 can be stored in photo in disk, picture etc..
Central processing unit 270 can include the processor more than one or more, and be set to storage be situated between by bus Matter 250 communicates, for computing and the mass data 255 in processing storage medium 250.
As described in detail above, storage Jie will be read by central processing unit 270 by being applicable the server 200 of the disclosure The form of the sequence of operations instruction stored in matter 250 carries out data forwarding.
In addition, also can equally realize the disclosure by hardware circuit or hardware circuit combination software instruction, therefore, realize The disclosure is not limited to any specific hardware circuit, software and both combinations.
Referring to Fig. 3, in one exemplary embodiment, a kind of business datum retransmission method is applied to implement ring shown in Fig. 1 The server cluster 100 in border, this kind of business datum retransmission method can be by the He of coordination service device 110 in server cluster 100 Forwarding server 130, which coordinates, to be performed, and may comprise steps of:
Step 310, coordination service device receives the business datum that client is sent.
As it was previously stated, business datum is client access service server, and interacted with the service server that it is accessed During produce.
Business datum is corresponding with client, including video data, image data, speech data etc..For example, video data It can correspond to video class client.Image data can correspond to map class client.
The business that service server would generally be provided for it sets corresponding access entrance, and phase is provided as client Pass business.For example, access entrance can be a network address.
For client, the access entrance access service server that will be provided according to service server, and then by industry Business server provides related business to the client.For example, when access entrance is a network address, then client will be to domain name mapping Server submits the network address, and then obtains the IP address of service server returned by domain name resolution server.
In the present embodiment, coordination service device provides access entrance as the front end access point of client to client, and then So that client accesses coordination service device, i.e. client by the access entrance sends business datum to coordination service device.
Further, coordination service device obtains business datum actually corresponding business clothes by the list of gateways being pre-configured with Business device, and then realize that business datum is forwarded to service server.Wherein, associated storage coordination service device and industry in list of gateways The relevant information of business server, for example, relevant information can be IP address.
Step 330, coordination service device obtains candidate's forwarding server mark in the forwarding cluster set configured.
Wherein, forwarding cluster set stores the corresponding forwarding server mark of available forwarding server in server cluster Know.For example, forwarding cluster set is the form of list.
Thus, candidate's forwarding server is identified for indicating the available forwarding server of some in server cluster.Should Available forwarding server refers to the server in normal operating condition.For example, the server of deadlock or failure is to be in Abnormal operating condition.
Further, the set of forwarding cluster can be with real-time update, for example, the forwarding server of abnormal operating condition is corresponding Forwarding server mark by services sets cluster conjunction in reject, or, will recover normal operating condition forwarding server correspondence Forwarding server mark again added to forwarding cluster set in.
Further, coordination service device can carry out the choosing of candidate's forwarding server mark according to default candidate rule Take.The default candidate rule can be that forwarding server load capacity is most light, forwarding server packet loss is minimum, forwarding server CPU usage is minimum, the highest priority of forwarding server etc..Correspondingly, the forwarding clothes of the default candidate rule are met The corresponding forwarding server mark of business device is considered as candidate's forwarding server mark.
By being arranged such, the fairness of business datum forwarding is realized, that is, forwards each forwarding server in cluster Have an opportunity to turn into candidate's forwarding server, and then be effectively improved the utilization of the network bandwidth in forwarding data forwarding process Rate.
In addition, coordination service device can also carry out load balancing to forwarding server, with this ensure forwarding server can With property, and then effectively ensure that the forwarding of forwarding server is smooth.
Step 350, business datum is forwarded to candidate's forwarding clothes that candidate's forwarding server mark is indicated by coordination service device Business device.
The business datum forwarding that coordination service device is carried out can be carried out by Intranet special line, can also be real by public network network Apply.
More preferably, if business datum forwarding belongs to trans-regional, i.e., client is located at different zones with service server, this When, the business datum carried out by Intranet special line, which is forwarded, can be achieved network acceleration, and network packet loss rate is advantageously reduced with this, and then Improve the network experience of user.
Step 370, business datum is forwarded to service server by candidate's forwarding server.
Wherein, the business datum forwarding that candidate's forwarding server is carried out passes through public network network implementation.
Further, one services sets cluster of configuration is closed in candidate's forwarding server, wherein storing in server cluster The corresponding service server mark of available service server, the available service server refers in normal operating condition Server.For example, the server of deadlock or failure is in abnormal operating condition.
Further, the conjunction of services sets cluster can be with real-time update, for example, the service server of abnormal operating condition is corresponding Service server mark by services sets cluster conjunction in reject, or, will recover normal operating condition service server correspondence Service server mark again added to services sets cluster close in.
Further, multiple available service servers are included in server cluster, correspondingly, during services sets cluster is closed Store the corresponding service server mark of multiple available service servers, then can be according to default candidate rule by business Service server mark is selected in cluster set as candidate Traffic server identification, is referred to by the candidate Traffic server identification The candidate Traffic server shown carries out business data processing.
The default candidate rule can be that service server load capacity is most light, service server packet loss is minimum, business Server CPU usage is minimum, the highest priority of service server etc..
Step 390, service server processing business data meet with a response data, and return to response data to client.
By process as described above, in business datum repeating process, the one of two level forwarding, i.e. coordination service device device have passed through Level forwarding and two grades of forwardings of forwarding server, while the acquisition identified by candidate's forwarding server has ensured that two grades of execution turns The availability of the forwarding server of hair, and then ensure that the smoothness of two grades of forwardings of forwarding server, it is to avoid there is forwarding and interrupt And Network Packet Loss is caused, the availability of business datum forwarding is effectively improved with this, so as to improve the processing of business datum Efficiency.
Referring to Fig. 4, in one exemplary embodiment, step 330 can be performed by coordination service device, it can include following Step:
Step 331, by the operation conditions of forwarding server in monitoring server cluster, forwarding cluster set transfer is obtained Send out the corresponding load information of server identification.
In the present embodiment, the principle based on load balancing, the acquisition identified using load information as candidate's forwarding server Foundation.
Wherein, load information reflects the connection number for the forwarding server that forwarding server mark is indicated.That is, negative The connection number of forwarding server is contained in information carrying breath, is the connection number that would know that forwarding server according to load information, that is, The load for knowing forwarding server is light or again, and then judges whether to can continue to the forwarding server forwarding service number According to.
Because the operation conditions of forwarding server can be by connecting the shapes such as number, CPU usage, network rate, packet loss Formula is represented.Based on this, the acquisition of load information can be monitored realization by the operation conditions to forwarding server.
Specifically, the connection number of the forwarding server indicated forwarding server identification in forwarding cluster set is supervised Control, you can obtain the connection number of forwarding server, and corresponding load information is identified as forwarding server.
Step 333, load information is screened, obtains connecting the minimum load information of number.
Step 335, it is used as candidate's forwarding server to connect the corresponding forwarding server mark of the minimum load information of number Mark.
In other words, the connection number for candidate's forwarding server that candidate's forwarding server mark is indicated is minimum, coordination service Device will be selected to candidate's forwarding server forwarding service data.
It should be appreciated that the selection result of load information may be different every time, correspondingly, coordination service device will be more The forwarding of business datum is carried out between individual forwarding server in turn, and then realizes the load balancing between multiple forwarding servers, So as to be conducive to alleviating network congestion, the delay of data forwarding is reduced, and then effectively improves the treatment effeciency of business datum.
By process as described above, realize coordination service device and balance the load of forwarding server, and then be conducive to protecting The forwarding for demonstrate,proving forwarding server is smooth, reduces network delay, further improves the treatment effeciency of business datum.
Further, in one exemplary embodiment, method as described above can also comprise the following steps:
Coordination service device is by the operation conditions of forwarding server in monitoring server cluster, and triggering, which forward, collects cluster The renewal of server identification is forwarded in conjunction.
It should be appreciated that during business datum forwarding is carried out, exception may occur at any time for forwarding server, such as extremely Machine, failure etc., if excluding abnormal forwarding server not in time, may cause the forwarding of business datum to be interrupted, and then Influence the treatment effeciency of business datum.
Accordingly, it would be desirable to be updated forwarding server identification in forwarding cluster set, ensure to forward cluster set with this The forwarding server that middle forwarding server identification is indicated is available.
As it was previously stated, the operation conditions of forwarding server can be by connecting number, CPU usage, network rate, packet loss Represented etc. form.Thus, just can be in real time by being monitored to connection number, CPU usage, network rate, packet loss etc. Know whether forwarding server there occurs exception.
If for example, the packet loss for monitoring forwarding server remains high, showing that the forwarding server there may be It is abnormal.
Based on this, in the present embodiment, according to the operation conditions of the forwarding server monitored, forwarding is taken in cluster set Forwarding server mark be updated.
Specifically, when the operation conditions for monitoring forwarding server is abnormal, then by the forwarding server of abnormal operating condition Corresponding forwarding server mark is deleted in forwarding cluster set.
When the operation conditions for monitoring forwarding server is switched to normally by abnormal, then the forwarding of normal operational condition is taken The corresponding forwarding server mark of device of being engaged in is added in forwarding cluster set.
In the presence of above-described embodiment, the real-time update that server identification is forwarded in forwarding cluster set is realized, it is complete The full forwarding for avoiding business datum is interrupted, and is conducive to further improving service availability.
In one exemplary embodiment, method as described above can be performed by coordination service device, can also be included following Step:
Coordination service device configures an IPIP tunnels at its own between forwarding server.
Wherein, IPIP tunnels are used for the IP that encapsulation is transmitted between the coordination service device and forwarding server of different IP addresses Packet, the IP packets of the encapsulation are that the business datum progress packet encapsulation that coordination service device is sent to client is obtained 's.
IPIP tunnels be preconfigured in during server cluster deployment coordination service device and forwarding server it Between.Specifically, the configuration in IPIP tunnels is the IP address that coordination service device is bound on forwarding server, so forwarding clothes Business device can judge whether the destination of business datum in the IP packets encapsulated closes after receiving the IP packets of encapsulation Method, and then it is advantageously implemented the IP address by IPIP tunnels transparent transmission client.
More preferably, the transmission of Intranet special line is implemented in IPIP tunnels, so that when advantageously reducing transregional domain business data forwarding Network packet loss rate.
Correspondingly, referring to Fig. 5, step 350 is performed by coordination service device, it may comprise steps of:
Step 351, packet encapsulation is carried out to business datum.
In order that the business datum that client is sent can be forwarded by IPIP tunnels, and before forwarding, the business Data need to carry out packet encapsulation.
Specifically, business datum is encapsulated into a new IP packet, the source address of the new IP packets is association The IP address of server is adjusted, destination address is then the IP address of candidate's forwarding server.
Complete after encapsulation, the new IP packets just can be forwarded to candidate by IPIP tunnels according to destination address and turn Send out server.
It should be noted that the business datum that client is sent is also to exist in the form of IP packets in itself, area herein Not be defined as old IP packets in foregoing new IP packets, the source address of the old IP packets is client IP address, destination address is then the IP address of coordination service device.
Step 353, the business datum after encapsulation is forwarded to by candidate's forwarding server by IPIP tunnels.
Further, referring to Fig. 6, in one exemplary embodiment, before step 370, method as described above may be used also To comprise the following steps:
Step 410, candidate's forwarding server receives business datum by IPIP tunnels.
Step 430, business datum is carried out extracting client in resolve packet, and business datum after parsing IP address.
Step 450, the business datum by the IP address of client added to after parsing.
As it was previously stated, business datum can carry out packet encapsulation in order to be forwarded in IPIP tunnels.
Correspondingly, what candidate's forwarding server was received is the business datum by packet encapsulation, thus, candidate's forwarding Server carries out resolve packet, i.e., carried business datum in new IP packets first after business datum is received Take out.
Now, the business datum extracted is that client is sent to coordination service device, the source of the business datum Location is the IP address of client, and destination address is the IP address of coordination service device.
During due to IPIP tunnel configurations, the IP address of coordination service device has been bound in forwarding server, therefore, forwarding service Device confirms that the destination address of the business datum extracted is legal, and then before just being forwarded to the business datum Pretreatment.That is, the IP address of the client is added in business datum, so that service server is obtained.
For example, the kernel module for viewing client-side IP address that addition manner can be supported based on service server, The IP address of client is added i.e. in other fields of the corresponding IP packets of business datum.
In said process, because the source address in the business datum that extracts is the IP address of client, with this reality The transparent transmission of client ip address in one-level repeating process is showed.
Further, in one exemplary embodiment, step 370 is performed by candidate server, can include following step Suddenly:
The business datum of IP address comprising client is forwarded to service server.
Correspondingly, method as described above can also comprise the following steps:
Service server obtains the IP address of the client in the business datum received.
For service server, after the business datum of the IP address comprising client is received, just it can adjust The kernel module supported with it carries out checking for client ip address, i.e., by other words of the corresponding IP packets of business datum The IP address of client is obtained in section.
By the cooperation of above-described embodiment, the transparent transmission of client ip address in two grades of repeating process is realized, and then favorably Client ip address is counted and verified in service server, so as to ensure the security in business datum repeating process.
Referring to Fig. 7, in one exemplary embodiment, step 370 is performed by candidate's forwarding server, it can include following Step:
Step 371, candidate Traffic server identification is obtained in the services sets cluster conjunction configured.
Step 373, business datum is forwarded to the service server of candidate Traffic server identification instruction.
Wherein, services sets cluster, which is closed, stores the corresponding service server mark of available service server in server cluster Know.It is to be pre-configured in during server cluster deployment on candidate's forwarding server that services sets cluster, which is closed,.For example, business Cluster set is the form of list.
Thus, candidate Traffic server identification is used to indicate the available service server of some in server cluster.
Further, candidate's forwarding server can carry out candidate Traffic server identification according to default candidate rule Choose.The default candidate rule can be that service server load capacity is most light, service server packet loss is minimum, business service Device CPU usage is minimum, the highest priority of service server etc..Correspondingly, the business of the default candidate rule is met The corresponding service server mark of server is considered as candidate Traffic server identification.
By being arranged such, the fairness of business datum forwarding, i.e. each service server in business cluster are realized Have an opportunity to turn into candidate Traffic server, and then be effectively improved the utilization of the network bandwidth in business datum repeating process Rate.
In one exemplary embodiment, method as described above can also comprise the following steps:
Candidate's forwarding server is by the operation conditions of monitoring business server, business in triggering progress services sets cluster conjunction The renewal of server identification.
It should be appreciated that during business data processing, exception may occur for service server, such as deadlock, failure etc., If excluding abnormal service server not in time, the treatment effeciency of business datum may be influenceed.
Accordingly, it would be desirable to be updated to service server mark in business group set, in ensureing that services sets cluster is closed with this The service server that service server mark is indicated is available.
As it was previously stated, the operation conditions of service server can also be by connecting number, CPU usage, network rate, packet loss The forms such as rate represent, and then by being monitored to connection number, CPU usage, network rate, packet loss etc., just can be real-time Ground knows whether service server there occurs exception.
Based on this, in the present embodiment, according to the operation conditions of the service server monitored, in being closed to services sets cluster Service server mark is updated.
Specifically, when the operation conditions for monitoring service server is abnormal, then by the service server of abnormal operating condition Corresponding service server mark is deleted in the conjunction of services sets cluster.
When the operation conditions for monitoring service server is switched to normally by abnormal, then the business of normal operational condition is taken During the corresponding service server mark of device of being engaged in is closed added to services sets cluster.
In the presence of above-described embodiment, the real-time update that service server is identified during services sets cluster is closed is realized, is kept away The processing for having exempted from business datum is interrupted, and is conducive to further improving service availability.
In addition, candidate's forwarding server can also be that service server realizes load balancing by default dispatching algorithm, Alleviate the pressure of service server, and then effectively ensure the processing reliability of business datum.For example, default dispatching algorithm is WRR (Weighted Round Robin, weighted round-robin scheduling) algorithm.
Fig. 8 is that a kind of business datum retransmission method implements schematic diagram in an application scenarios.
In the application scenarios, client where user is located at regional, and service server is located at overseas region.
When client is intended to the business that access service server is provided where user, obtained first by domain name resolution server One IP address, and sent business datum to corresponding coordination service device according to the IP address.
The forwarding of one-level Intranet special line and two grades of public network forwardeds of forwarding server by coordination service device, business Server handles the data that meet with a response to the business datum progress received, and response data is back into client.
Forwarded by business datum as described above, network packet loss rate is substantially reduced, as shown in table 1.
Table 1
Following is disclosure system embodiment, can be used for performing the business datum retransmission method involved by the disclosure.It is right The details not disclosed in disclosure system embodiment, refer to the business datum retransmission method embodiment involved by the disclosure.
Referring to Fig. 9, in one exemplary embodiment, a kind of data forwarding system includes being deployed in server cluster Coordination service device 700, forwarding server 800 and service server 900.
Wherein, coordination service device 700 is used for the business datum for receiving client transmission.
Coordination service device 700 is used to obtain candidate's forwarding server mark in the forwarding cluster set configured.Forwarding collection Cluster, which is closed, stores the corresponding forwarding server mark of available forwarding server in server cluster.
Coordination service device 700 is used to business datum being forwarded to candidate's forwarding service that candidate's forwarding server mark is indicated Device.
Candidate's forwarding server 800 is used to business datum being forwarded to service server.
Service server 900 meets with a response data for processing business data, and returns to response data to client.
Referring to Fig. 10, in one exemplary embodiment, coordination service device 700 includes but is not limited to:Load information is obtained Module 710, load information screening module 730 and forwarding identifier acquisition module 750.
Wherein, load information acquisition module 710 is used for the operation conditions for passing through forwarding server in monitoring server cluster, Obtain the corresponding load information of forwarding server identification in forwarding cluster set.Load information reflects forwarding server mark and referred to The connection number of the forwarding server shown.
Load information screening module 730 is used to screen load information, obtains connecting the minimum load information of number.
Forwarding identifier acquisition module 750 be used for using connect the corresponding forwarding server mark of the minimum load information of number as Candidate's forwarding server is identified.
Further, in one exemplary embodiment, coordination service device 700 includes but is not limited to:Forwarding mark updates mould Block.
Wherein, forwarding mark update module is used for the operation conditions for passing through forwarding server in monitoring server cluster, touches Hair forwarded in forwarding cluster set the renewal of server identification.
In one exemplary embodiment, coordination service device 700 includes but is not limited to:Tunnel configuration module.
Wherein, tunnel configuration module is used to configure an IPIP tunnels between forwarding server at its own.
Correspondingly, Figure 11 is referred to, coordination service device 700 also includes but is not limited to:Packet encapsulation module 770 and data Bag transport module 790.
Wherein, packet encapsulation module 770 is used to carry out packet encapsulation to business datum.
Packet transport module 790 is used to the business datum after encapsulation is forwarded into candidate's forwarding service by IPIP tunnels Device.
Figure 12 is referred to, in one exemplary embodiment, candidate's forwarding server 800 includes but is not limited to:Packet connects Receive module 810, resolve packet module 830 and address add module 850.
Wherein, packet-receiving module 810 is used to receive business datum by IPIP tunnels.
Resolve packet module 830 is used to carry out business datum resolve packet, and in the business datum after parsing Extract the IP address of client.
Address add module 850 is used for the business datum added to after parsing by the IP address of client.
In one exemplary embodiment, candidate's forwarding server 800 also includes but is not limited to:Data forwarding module.
Wherein, data forwarding module is used to the business datum of the IP address comprising client being forwarded to service server.
Correspondingly, service server 900 includes but is not limited to:
Address acquisition module, the IP address for obtaining client in the business datum by receiving.
Figure 13 is referred to, in one exemplary embodiment, candidate's forwarding server 800 also includes but is not limited to:Business mark Know acquisition module 870 and forwarding indicating module 890.
Wherein, service identification acquisition module 870 is used to obtain candidate Traffic server in the services sets cluster conjunction configured Mark.Services sets cluster, which is closed, stores the corresponding service server mark of available service server in server cluster.
Forwarding indicating module 890 is used for the business service that business datum is forwarded to the instruction of candidate Traffic server identification Device.In one exemplary embodiment, candidate's forwarding server 800 also includes but is not limited to:Service identification update module.
Wherein, service identification update module is used for the operation conditions for passing through service server in monitoring server cluster, touches Hair carries out the renewal that service server is identified in services sets cluster conjunction.
It should be noted that the data forwarding system that above-described embodiment is provided is when carrying out data forwarding, only with above-mentioned The division progress of each functional module is for example, in practical application, as needed can distribute above-mentioned functions by different Functional module is completed, i.e., the internal structure of data forwarding system will be divided into different functional modules, described above to complete All or part of function.
In addition, data forwarding system and the embodiment of business datum retransmission method that above-described embodiment is provided belong to same The concrete mode that design, wherein modules perform operation is described in detail in embodiment of the method, herein no longer Repeat.
The preferable examples embodiment of the above, the only disclosure, the embodiment for being not intended to limit the disclosure, this Field those of ordinary skill can very easily carry out corresponding flexible or repair according to the central scope and spirit of the disclosure Change, therefore the protection domain of the disclosure should be defined by the protection domain required by claims.

Claims (15)

1. a kind of business datum retransmission method, it is characterised in that coordination service device, forwarding server are deployed in server cluster And service server, methods described includes:
The coordination service device receives the business datum that client is sent;
The coordination service device obtains candidate's forwarding server mark, the forwarding collection cluster in the forwarding cluster set configured Conjunction stores the corresponding forwarding server mark of available forwarding server in the server cluster;
The business datum is forwarded to candidate's forwarding clothes that candidate's forwarding server identifies instruction by the coordination service device Business device;
The business datum is forwarded to service server by candidate's forwarding server;
The service server handles the business datum and met with a response data, and returns to the response data to the client End.
2. the method as described in claim 1, it is characterised in that the coordination service device is obtained in the forwarding cluster set configured Candidate's forwarding server is taken to identify, including:
By monitoring the operation conditions of forwarding server in the server cluster, obtain in the forwarding cluster set and forward clothes The corresponding load information of device mark of being engaged in, the load information reflects the connection for the forwarding server that forwarding server mark is indicated Number;
The load information is screened, obtains connecting the minimum load information of number;
Candidate's forwarding server mark is used as to connect the corresponding forwarding server mark of the minimum load information of number.
3. the method as described in claim 1, it is characterised in that methods described also includes:
The coordination service device carries out described turn by monitoring the operation conditions of forwarding server in the server cluster, triggering Send out the renewal that server identification is forwarded in cluster set.
4. the method as described in claim 1, it is characterised in that methods described also includes:
The coordination service device configures an IPIP tunnels at its own between forwarding server;
Correspondingly, the business datum is forwarded to the candidate that candidate's forwarding server identifies instruction by the coordination service device Forwarding server, including:
Packet encapsulation is carried out to the business datum;
Business datum after encapsulation is forwarded to by candidate's forwarding server by the IPIP tunnels.
5. method as claimed in claim 4, it is characterised in that the business datum is forwarded to by candidate's forwarding server Before service server, methods described also includes:
Candidate's forwarding server receives the business datum by the IPIP tunnels;
With to the business datum extract the IP of the client in resolve packet, and business datum after parsing Location;
By business datum of the IP address of the client added to after parsing.
6. method as claimed in claim 5, it is characterised in that the business datum is forwarded to by candidate's forwarding server Service server, including:
The business datum of IP address comprising the client is forwarded to the service server;
Correspondingly, methods described also includes:
The service server obtains the IP address of the client in the business datum received.
7. the method as described in claim 1 or 6, it is characterised in that candidate's forwarding server turns the business datum Service server is sent to, including:
Candidate Traffic server identification is obtained in the services sets cluster conjunction configured, the services sets cluster is closed and stores the clothes It is engaged in the corresponding service server mark of available service server in device cluster;
The business datum is forwarded to the service server that the candidate Traffic server identification is indicated.
8. method as claimed in claim 7, it is characterised in that methods described also includes:
Candidate's forwarding server carries out institute by monitoring the operation conditions of service server in the server cluster, triggering State the renewal that service server is identified during services sets cluster is closed.
9. a kind of business datum repeater system, it is characterised in that including be deployed in server cluster coordination service device, forwarding Server and service server, wherein,
The coordination service device is used for the business datum for receiving client transmission;
The coordination service device is used to obtain candidate's forwarding server mark in the forwarding cluster set configured, the forwarding collection Cluster, which is closed, stores the corresponding forwarding server mark of available forwarding server in the server cluster;
The coordination service device is used to the business datum being forwarded to the candidate turn that candidate's forwarding server identifies instruction Send out server;
Candidate's forwarding server is used to the business datum being forwarded to service server;
The service server, which is used to handling the business datum, to meet with a response data, and returns to the response data to the visitor Family end.
10. system as claimed in claim 9, it is characterised in that the coordination service device includes:
Load information acquisition module, for the operation conditions by monitoring forwarding server in the server cluster, obtains institute The corresponding load information of forwarding server identification in forwarding cluster set is stated, the load information reflects forwarding server mark The connection number of the forwarding server of instruction;
Load information screening module, for screening the load information, obtains connecting the minimum load information of number;
Identifier acquisition module is forwarded, for being waited to connect the corresponding forwarding server mark of the minimum load information of number as described Forwarding server is selected to identify.
11. system as claimed in claim 9, it is characterised in that the coordination service device includes:
Forwarding mark update module, for the operation conditions by monitoring forwarding server in the server cluster, trigger into The renewal of server identification is forwarded in the row forwarding cluster set.
12. system as claimed in claim 9, it is characterised in that the coordination service device includes:
Tunnel configuration module, for configuring an IPIP tunnels between forwarding server at its own;
Correspondingly, the coordination service device also includes:
Packet encapsulation module, for carrying out packet encapsulation to the business datum;
Packet transport module, takes for the business datum after encapsulation to be forwarded into candidate's forwarding by the IPIP tunnels Business device.
13. system as claimed in claim 12, it is characterised in that candidate's forwarding server includes:
Packet-receiving module, for receiving the business datum by the IPIP tunnels;
Resolve packet module, for being carried in the business datum to business datum progress resolve packet, and after parsing Take out the IP address of the client;
Address add module, for the business datum by the IP address of the client added to after parsing.
14. system as claimed in claim 13, it is characterised in that candidate's forwarding server also includes:
Data forwarding module, for the business datum of the IP address comprising the client to be forwarded into the service server;
Correspondingly, the service server includes:
Address acquisition module, the IP address for obtaining the client in the business datum by receiving.
15. the system as described in claim 9 or 14, it is characterised in that candidate's forwarding server also includes:
Service identification acquisition module, candidate Traffic server identification, the industry are obtained in being closed for the services sets cluster by configuring Business cluster set stores the corresponding service server mark of available service server in the server cluster;
Indicating module is forwarded, for the business datum to be forwarded into the business service that the candidate Traffic server identification is indicated Device.
CN201710544524.0A 2017-07-06 2017-07-06 Business datum retransmission method and system Pending CN107249038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710544524.0A CN107249038A (en) 2017-07-06 2017-07-06 Business datum retransmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710544524.0A CN107249038A (en) 2017-07-06 2017-07-06 Business datum retransmission method and system

Publications (1)

Publication Number Publication Date
CN107249038A true CN107249038A (en) 2017-10-13

Family

ID=60013955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710544524.0A Pending CN107249038A (en) 2017-07-06 2017-07-06 Business datum retransmission method and system

Country Status (1)

Country Link
CN (1) CN107249038A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683699A (en) * 2018-03-29 2018-10-19 广州华多网络科技有限公司 The method and apparatus of forwarding service request
CN112153036A (en) * 2020-09-18 2020-12-29 湖南联盛网络科技股份有限公司 Security defense method and system based on proxy server
CN112532714A (en) * 2020-11-25 2021-03-19 北京金山云网络技术有限公司 Data processing method, processing device, server and storage medium
CN117041106A (en) * 2023-08-28 2023-11-10 河北润博星原科技发展有限公司 Monitoring equipment operation and maintenance management system and method based on Internet of things

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404267A (en) * 2002-10-01 2003-03-19 华中科技大学 Safe network transmission method and system
US20060095969A1 (en) * 2004-10-28 2006-05-04 Cisco Technology, Inc. System for SSL re-encryption after load balance
CN101001365A (en) * 2007-01-19 2007-07-18 北京华纬讯电信技术有限公司 Method for implementing media flow balance dispatching in vedio service
CN102123087A (en) * 2011-02-18 2011-07-13 天津博宇铭基信息科技有限公司 Method for quickly calibrating multi-level forwarding load balance and multi-level forwarding network system
CN103929368A (en) * 2014-05-05 2014-07-16 华为技术有限公司 Load balance method and device for multiple service units
CN105530185A (en) * 2014-09-29 2016-04-27 优视科技有限公司 Overlay routing network, routing method based on overlay routing network, and router
CN105872038A (en) * 2016-03-28 2016-08-17 汉柏科技有限公司 High concurrency processing method and device of cloud desktop system
CN106254095A (en) * 2016-07-19 2016-12-21 华为技术有限公司 The backup processing method of tunnel traffic and equipment
CN106464564A (en) * 2014-05-27 2017-02-22 谷歌公司 Network packet encapsulation and routing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404267A (en) * 2002-10-01 2003-03-19 华中科技大学 Safe network transmission method and system
US20060095969A1 (en) * 2004-10-28 2006-05-04 Cisco Technology, Inc. System for SSL re-encryption after load balance
CN101001365A (en) * 2007-01-19 2007-07-18 北京华纬讯电信技术有限公司 Method for implementing media flow balance dispatching in vedio service
CN102123087A (en) * 2011-02-18 2011-07-13 天津博宇铭基信息科技有限公司 Method for quickly calibrating multi-level forwarding load balance and multi-level forwarding network system
CN103929368A (en) * 2014-05-05 2014-07-16 华为技术有限公司 Load balance method and device for multiple service units
CN106464564A (en) * 2014-05-27 2017-02-22 谷歌公司 Network packet encapsulation and routing
CN105530185A (en) * 2014-09-29 2016-04-27 优视科技有限公司 Overlay routing network, routing method based on overlay routing network, and router
CN105872038A (en) * 2016-03-28 2016-08-17 汉柏科技有限公司 High concurrency processing method and device of cloud desktop system
CN106254095A (en) * 2016-07-19 2016-12-21 华为技术有限公司 The backup processing method of tunnel traffic and equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683699A (en) * 2018-03-29 2018-10-19 广州华多网络科技有限公司 The method and apparatus of forwarding service request
CN108683699B (en) * 2018-03-29 2021-06-18 广州华多网络科技有限公司 Method and device for forwarding service request
CN112153036A (en) * 2020-09-18 2020-12-29 湖南联盛网络科技股份有限公司 Security defense method and system based on proxy server
CN112532714A (en) * 2020-11-25 2021-03-19 北京金山云网络技术有限公司 Data processing method, processing device, server and storage medium
CN117041106A (en) * 2023-08-28 2023-11-10 河北润博星原科技发展有限公司 Monitoring equipment operation and maintenance management system and method based on Internet of things
CN117041106B (en) * 2023-08-28 2024-02-27 河北润博星原科技发展有限公司 Monitoring equipment operation and maintenance management system and method based on Internet of things

Similar Documents

Publication Publication Date Title
US11941427B2 (en) Frameworks and interfaces for offload device-based packet processing
US11765057B2 (en) Systems and methods for performing end-to-end link-layer and IP-layer health checks between a host machine and a network virtualization device
US9602636B1 (en) Stateless packet segmentation and processing
JP6487979B2 (en) Framework and interface for offload device-based packet processing
US10171362B1 (en) System and method for minimizing disruption from failed service nodes
US9042403B1 (en) Offload device for stateless packet processing
US8155146B1 (en) Stateless packet segmentation and processing
US9910687B2 (en) Data flow affinity for heterogenous virtual machines
CN107249038A (en) Business datum retransmission method and system
US20220029917A1 (en) Executing workloads across multiple cloud service providers
JP2024503337A (en) Class-based queuing for scalable multi-tenant RDMA traffic
JP2024503599A (en) Synchronization of communication channel state information for highly available flows
WO2023205004A1 (en) Customized processing for different classes of rdma traffic

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171013