CN1937534A - 一种实现负载均衡的方法和一种负载均衡设备 - Google Patents

一种实现负载均衡的方法和一种负载均衡设备 Download PDF

Info

Publication number
CN1937534A
CN1937534A CNA2006101278306A CN200610127830A CN1937534A CN 1937534 A CN1937534 A CN 1937534A CN A2006101278306 A CNA2006101278306 A CN A2006101278306A CN 200610127830 A CN200610127830 A CN 200610127830A CN 1937534 A CN1937534 A CN 1937534A
Authority
CN
China
Prior art keywords
server
time
load balancing
response time
message
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
Application number
CNA2006101278306A
Other languages
English (en)
Other versions
CN100466551C (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou Huawei 3Com Technology 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 Hangzhou Huawei 3Com Technology Co Ltd filed Critical Hangzhou Huawei 3Com Technology Co Ltd
Priority to CNB2006101278306A priority Critical patent/CN100466551C/zh
Publication of CN1937534A publication Critical patent/CN1937534A/zh
Application granted granted Critical
Publication of CN100466551C publication Critical patent/CN100466551C/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J13/00Code division multiplex systems
    • H04J13/10Code generation
    • H04J13/12Generation of orthogonal codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/12Payment architectures specially adapted for electronic shopping systems
    • G06Q20/123Shopping for digital content
    • G06Q20/1235Shopping for digital content with control of digital rights management [DRM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/385Payment protocols; Details thereof using an alias or single-use codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment
    • G06Q20/425Confirmation, e.g. check or permission by the legal debtor of payment using two different networks, one for transaction and one for security confirmation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0609Buyer or seller confidence or verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services
    • G06Q50/188Electronic negotiation
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/16Coin-freed apparatus for hiring articles; Coin-freed facilities or services for devices exhibiting advertisements, announcements, pictures or the like
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • H04B7/0604Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching with predefined switching scheme
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0837Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using pre-detection combining
    • H04B7/084Equal gain combining, only phase adjustments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/155Ground-based stations
    • H04B7/15528Control of operation parameters of a relay station to exploit the physical medium
    • H04B7/15535Control of relay amplifier gain
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0064Concatenated codes
    • H04L1/0066Parallel concatenated codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0067Rate matching
    • H04L1/0068Rate matching by puncturing
    • H04L1/0069Puncturing patterns
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0071Use of interleaving
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/02Arrangements for detecting or preventing errors in the information received by diversity reception
    • H04L1/06Arrangements for detecting or preventing errors in the information received by diversity reception using space diversity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1812Hybrid protocols; Hybrid automatic repeat request [HARQ]
    • H04L1/1819Hybrid protocols; Hybrid automatic repeat request [HARQ] with retransmission of additional or different redundancy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1835Buffer management
    • H04L1/1841Resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1848Time-out mechanisms
    • 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/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • 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/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • H04L12/2874Processing of data for distribution to the subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/0001Arrangements for dividing the transmission path
    • H04L5/0014Three-dimensional division
    • H04L5/0023Time-frequency-space
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0042Arrangements for allocating sub-channels of the transmission path intra-user or intra-terminal allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0044Arrangements for allocating sub-channels of the transmission path allocation of payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0078Timing of allocation
    • H04L5/0082Timing of allocation at predetermined intervals
    • H04L5/0083Timing of allocation at predetermined intervals symbol-by-symbol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/065Network architectures or network communication protocols for network security for supporting key management in a packet data network for group communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/102Entity profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/168Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP] specially adapted for link layer protocols, e.g. asynchronous transfer mode [ATM], synchronous optical network [SONET] or point-to-point protocol [PPP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/253Telephone sets using digital voice transmission
    • H04M1/2535Telephone sets using digital voice transmission adapted for voice communication over an Internet Protocol [IP] network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/0024Services and arrangements where telephone services are combined with data services
    • H04M7/0057Services where the data services network provides a telephone service in addition or as an alternative, e.g. for backup purposes, to the telephone service provided by the telephone services network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • H04M7/0066Details of access arrangements to the networks
    • H04M7/0069Details of access arrangements to the networks comprising a residential gateway, e.g. those which provide an adapter for POTS or ISDN terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/06TPC algorithms
    • H04W52/14Separate analysis of uplink or downlink
    • H04W52/143Downlink power control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/245TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/38TPC being performed in particular situations
    • H04W52/46TPC being performed in particular situations in multi hop networks, e.g. wireless relay networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/38TPC being performed in particular situations
    • H04W52/48TPC being performed in particular situations during retransmission after error or non-acknowledgment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2101Auditing as a secondary aspect
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2149Restricted operating environment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0891Space-time diversity
    • H04B7/0894Space-time diversity using different delays between antennas
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/155Ground-based stations
    • H04B7/15507Relay station based processing for cell extension or control of coverage area
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1835Buffer management
    • H04L1/1845Combining techniques, e.g. code combining
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L2001/0092Error control systems characterised by the topology of the transmission link
    • H04L2001/0096Channel splitting in point-to-point links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/12Details relating to cryptographic hardware or logic circuitry
    • H04L2209/127Trusted platform modules [TPM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/22TPC being performed according to specific parameters taking into account previous information or commands
    • H04W52/225Calculation of statistics, e.g. average, variance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/241TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account channel quality metrics, e.g. SIR, SNR, CIR, Eb/lo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/242TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account path loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Marketing (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Technology Law (AREA)
  • Primary Health Care (AREA)
  • Human Resources & Organizations (AREA)
  • Medical Informatics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种实现负载均衡的方法和一种负载均衡设备。该负载均衡设备主要包括控制单元和收发单元。该方法包括:负载均衡设备确定各个服务器当前的响应时间;负载均衡设备接收到客户端发来的访问请求报文后,从各个服务器中选择当前响应时间最短的服务器,并将访问请求报文发送至当前所选的服务器。本发明能够保证客户端在最短的时间内便可接收到服务器响应的报文,从而大大提高了业务服务质量。

Description

一种实现负载均衡的方法和一种负载均衡设备
技术领域
本发明涉及网络通信技术,特别是涉及一种实现负载均衡的方法和一种负载均衡设备。
背景技术
伴随着互联网(Internet)技术的不断发展,网络服务器面对的访问数量大大增加并且更加不可预知。在网络中,如果仅使用一个服务器对客户端提供服务,那么,服务器的处理能力和输入输出能力必然会成为提供服务的瓶颈。
为了解决单台服务器处理能力有限,无法保证为客户端提供服务的缺点,目前出现了负载均衡技术。
图1是采用负载均衡技术时的设备连接情况示意图。参见图1,负载均衡技术就是在网络侧设置可以为客户端提供服务的多个服务器,并在服务器侧设置一个负载均衡设备。客户端需要进行访问时,只需访问该负载均衡设备,负载均衡设备接收到客户端的访问请求后,根据一定的规则从多个服务器中选择一个,由所选的服务器回应客户端,为客户端提供服务。
可见,负载均衡技术可以利用多台服务器同时为大量用户提供并发访问服务,因此,能够大大提高访问速度和网络的吞吐容量。并且,当某一个服务器出现故障时,负载均衡设备也能够自动进行检测并停止将服务请求分发至该故障的服务器,而由其他工作正常的服务器继续提供服务,因此,负载均衡技术也保证了服务的可靠性。鉴于负载均衡技术的诸多优点,负载均衡技术得到了广泛的应用。
在负载均衡技术中,负载均衡设备在接收到客户端的访问请求时,必须选择为客户端提供服务的服务器。而在目前,随着用户对业务服务质量要求的不断提升,用户在通过客户端发出访问请求后,希望在很短的时间内便可接收到服务器响应的报文。这样,则要求负载均衡设备在选择服务器时,必须考虑服务器当前的负载情况,必须考虑所选服务器是否能够在最短时间内响应客户端。
可见,在负载均衡技术中,保证所选服务器能够在最快时间内响应客户端已经成为了一个值得关注的问题。
发明内容
有鉴于此,本发明的主要目的在于提供一种实现负载均衡的方法,本发明的另一目的在于提供一种负载均衡设备,以保证负载均衡设备所选的服务器能够在最快时间内响应客户端。
为了达到上述目的,本发明的技术方案是这样实现的:
一种实现负载均衡的方法,该方法包括:
负载均衡设备确定各个服务器当前的响应时间;负载均衡设备接收到客户端发来的访问请求报文后,从各个服务器中选择当前响应时间最短的服务器,并将访问请求报文发送至当前所选的服务器。
所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备根据各个服务器对客户端报文的响应时间,确定各个服务器当前的响应时间。
所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备接收任意一个客户端发来的访问请求报文,将访问请求报文分别发送至各个服务器;负载均衡设备分别针对每一个服务器记录,将访问请求报文发送至该服务器与该服务器针对访问请求报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备接收到不同客户端发来的各个访问请求报文,将各个访问请求报文分别发送至各个服务器;负载均衡设备分别针对每一个服务器记录,将访问请求报文发送至该服务器与该服务器针对接收到的访问请求报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
所述确定各个服务器当前的响应时间的步骤包括:
在不同客户端与各个服务器建立连接后,针对每一个服务器,负载均衡设备接收客户端发来的针对该服务器的业务数据报文,将业务数据报文发送至该服务器,并针对该服务器记录,将业务数据报文发送至该服务器与该服务器针对业务数据报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
在负载均衡设备将报文发送至所述任意一个服务器之后,并在针对该服务器执行记录之前,进一步包括:
负载均衡设备判断从上一次确定该服务器响应时间到当前的时间长度内,发送给该服务器的报文个数是否达到预先设定的采样个数,如果是,则继续执行所述的针对该服务器记录时间差的步骤,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
在负载均衡设备将报文发送至所述任意一个服务器之后,并在针对该服务器执行记录之前,进一步包括:
负载均衡设备判断从上一次确定该服务器响应时间到当前的时间长度是否等于预先设定的采样时间间隔,如果是,则继续执行所述的针对该服务器记录时间差的步骤,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备根据各个服务器对负载均衡设备所发送探测报文的响应时间,确定各个服务器当前的响应时间。
所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备构造探测报文,将各个服务器分别作为探测报文的接收方,然后将探测报文分别发送至各个服务器;负载均衡设备针对每一个服务器记录,将探测报文发送至该服务器与该服务器针对探测报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
在针对所述任意一个服务器记录时间差之后,并在将时间差确定为该服务器当前的响应时间之前,进一步包括:
负载均衡设备判断从上一次确定该服务器响应时间到当前的时间长度内,针对该服务器记录时间差的次数是否达到预先设定的采样次数,如果是,则根据针对该服务器所记录的各次时间差,计算对应于该服务器的平均响应时间,将对应于该服务器的平均响应时间,确定为该服务器当前的响应时间,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
一种负载均衡设备,该负载均衡设备包括:控制单元和收发单元,其中,
控制单元,用于确定各个服务器当前的响应时间,在收发单元接收到客户端发来的访问请求报文后,控制收发单元将访问请求报文发送至当前响应时间最短的服务器;
收发单元,用于接收客户端发来的访问请求报文,并将访问请求报文发送至当前响应时间最短的服务器。
所述负载均衡设备进一步包括:计时器,
所述控制单元,通过收发单元将报文发送至各个服务器,并在将报文发送至各个服务器时,启动计时器,在收发单元接收到任意一个服务器返回的响应报文时,获取对应于该服务器的计时器的当前值,分别将针对各个服务器所获取的计时器的当前值确定为各个服务器的当前响应时间。
由此可见,在本发明中,当负载均衡设备接收到一个客户端的访问请求报文时,能够选择当前响应时间最短的服务器为客户端服务,而由于服务器对报文的响应时间能够最为准确地反映服务器当前的业务负荷情况,因此,本发明能够保证负载均衡设备所选的服务器能够在最快时间内响应客户端,即保证客户端在最短的时间内便可接收到服务器响应的报文,从而大大提高了业务服务质量。
另外,在本发明中,可以通过现有的不同服务器为不同客户端服务的过程来确定各个服务器当前的响应时间,负载均衡设备和服务器无需额外的报文交互及业务处理流程来确定响应时间,因此,减少了负载均衡设备和服务器的业务负荷量,大大增加了本发明的实用性。
附图说明
图1是采用负载均衡技术时的设备连接情况示意图。
图2是在本发明中负载均衡设备内部的基本结构示意图。
图3是在本发明中负载均衡设备内部的优化结构示意图。
图4是在本发明实施例中实现负载均衡的流程图。
具体实施方式
在实际的业务实现中,一个服务器对接收到报文的响应时间,可以最为准确地衡量出服务器当前的业务负荷情况,也就是说,响应时间短,则表明服务器当前不繁忙,能够以最快速度响应客户端,响应时间长,则表明服务器当前繁忙,无法尽快响应客户端。
针对上述特点,为了提高业务服务质量,保证服务器在最快时间内响应客户端,本发明提出了一种实现负载均衡的方法,其核心思想是:负载均衡设备确定各个服务器当前的响应时间;负载均衡设备接收到客户端发来的访问请求报文,从各个服务器中选择当前响应时间最短的服务器,并将访问请求报文发送至当前所选的服务器。
相应的,本发明还提出了一种负载均衡设备。图2是在本发明中负载均衡设备内部的基本结构示意图。参见图2,在本发明中,负载均衡设备的内部结构主要包括:控制单元和收发单元,其中,
控制单元,用于确定各个服务器当前的响应时间,在收发单元接收到客户端发来的访问请求报文后,控制收发单元将访问请求报文发送至当前响应时间最短的服务器;
收发单元,用于接收客户端发来的访问请求报文,并将访问请求报文发送至当前响应时间最短的服务器。
图3是在本发明中负载均衡设备内部的优化结构示意图。参见图2和图3,较佳地,在本发明中,负载均衡设备的内部还可以进一步包括:计时器,
所述控制单元,通过收发单元将报文发送至各个服务器,并在将报文发送至各个服务器时,启动计时器,在收发单元接收到任意一个服务器返回的响应报文时,获取对应于该服务器的计时器的当前值,分别将针对各个服务器所获取的计时器的当前值确定为各个服务器的当前响应时间。
为使本发明的目的、技术方案和优点更加清楚,下面结合附图及具体实施例对本发明作进一步地详细描述。
图4是在本发明实施例中实现负载均衡的流程图。参见图2、图3和图4,在本发明中,实现负载均衡的过程包括以下步骤:
步骤401:在业务运行过程中,负载均衡设备中的控制单元确定各个服务器当前的响应时间。
这里,负载均衡设备中的控制单元可以采用包括但不限于以下两种方式来确定各个服务器当前的响应时间:
方式一、根据各个服务器对客户端报文的响应时间,确定各个服务器当前的响应时间。
在实际的业务实现中,由于各个服务器均需要接收客户端报文,并对客户端报文进行响应,因此,在该方式一中,可以利用服务器必须处理客户端报文的特点来确定各个服务器当前的响应时间,从而可以避免为负载均衡设备和服务器带来额外的业务负荷。
在该方式一中,确定各个服务器当前的响应时间的实现过程也可以具体通过以下方式A或方式B来实现:
方式A、通过同时将一个访问请求报文分别发送给各个服务器来确定各个服务器当前的响应时间。
该方式A的具体实现过程可以为:负载均衡设备中的收发单元接收任意一个客户端发来的访问请求报文,控制单元控制收发单元将该访问请求报文分别发送至各个服务器;负载均衡设备中的控制单元分别针对每一个服务器记录,收发单元将访问请求报文发送至该服务器与收发单元接收到该服务器针对访问请求报文返回响应报文的时间差;负载均衡设备中的控制单元将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
方式B、在现有的通过不同服务器为不同客户端服务的过程中确定各个服务器当前的响应时间。
在现有的通过不同服务器为不同客户端服务的过程中,可以通过不同客户端与不同服务器建立连接的过程,即将不同访问请求报文分别发送给各个服务器的过程,来确定各个服务器当前的响应时间,其具体实现过程可以为:负载均衡设备中的收发单元接收到不同客户端发来的各个访问请求报文,控制单元控制收发单元将各个访问请求报文分别发送至各个服务器;负载均衡设备中的控制单元分别针对每一个服务器记录,收发单元将访问请求报文发送至该服务器与收发单元接收到该服务器针对访问请求报文返回响应报文的时间差;负载均衡设备中的控制单元将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
或者,在现有的通过不同服务器为不同客户端服务的过程中,还可以通过建立连接后的数据交互过程,即将针对不同服务器的业务数据报文分别发送给各个服务器的过程,来确定各个服务器当前的响应时间,其具体实现过程可以为:在不同客户端与各个服务器建立连接后,针对每一个服务器,负载均衡设备中的收发单元接收客户端发来的针对该服务器的业务数据报文,控制单元控制收发单元将业务数据报文发送至该服务器,并且,控制单元针对该服务器记录,收发单元将业务数据报文发送至该服务器与收发单元接收到该服务器针对业务数据报文返回响应报文的时间差;负载均衡设备中的控制单元将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
在上述方式一中,包括方式A和方式B,由于是利用业务实现过程中的客户端报文确定各个服务器当前的响应时间,因此,为了不给负载均衡设备带来较多的业务负荷量,不影响负载均衡设备对客户端报文的处理性能,在本发明中,可以按照采样比例或者按照采样时间间隔确定各个服务器当前的响应时间。其中,
当按照采样比例确定各个服务器当前的响应时间时,对于每一个服务器,可以每当该服务器接收到所设定的采样个数的报文后,比如100个报文,确定一次该服务器当前的响应时间,其具体实现过程可以是:在上述方式A和方式B中,负载均衡设备中的收发单元在将上述报文发送至任意一个服务器之后,并在由控制单元针对该服务器执行记录时间差之前,首先由负载均衡设备中的控制单元判断从上一次确定该服务器响应时间到当前的时间长度内,发送给该服务器的报文个数是否达到预先设定的采样个数,如果是,则继续执行所述的针对该服务器记录时间差的过程及其后续过程,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
当按照采样时间间隔确定各个服务器当前的响应时间时,对于每一个服务器,可以每隔一个时间周期,比如100毫秒,确定一次该服务器当前的响应时间,其具体实现过程可以是:在上述方式A和方式B中,负载均衡设备中的收发单元在将上述报文发送至任意一个服务器之后,并由控制单元针对该服务器执行记录时间差之前,首先由负载均衡设备中的控制单元判断从上一次确定该服务器响应时间到当前的时间长度是否等于预先设定的采样时间间隔,如果是,则继续执行所述的针对该服务器记录时间差的过程及其后续过程,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
至此,则完成了通过方式一来实现本步骤401的过程。
方式二、根据各个服务器对负载均衡设备所发送探测报文的响应时间,确定各个服务器当前的响应时间。
该方式二的具体实现过程包括:负载均衡设备中的控制单元构造探测报文,将各个服务器分别作为探测报文的接收方,然后控制单元控制收发单元将探测报文分别发送至各个服务器;负载均衡设备中的控制单元针对每一个服务器记录,收发单元将探测报文发送至该服务器与收发单元接收到该服务器针对探测报文返回响应报文的时间差;负载均衡设备中的控制单元将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
在上述方式一和方式二中,控制单元可以利用计时器来实现记录针对每一个服务器的时间差的过程。具体为:在控制单元需要记录任意一个服务器的时间差时,该控制单元可以在收发单元将所述报文发送至该服务器时,启动计时器,并在收发单元接收到该服务器返回的响应报文时,获取计时器的当前值,将所获取的计时器的当前值记录为针对该服务器的时间差。
需要说明的是,在实际的业务实现中,各个服务器的业务负荷量是动态变化的,如果仅根据一次报文交互便确定服务器当前的响应时间,则有可能会出现未综合衡量服务器响应速度的缺点,因此,为了更加准确地确定各个服务器当前的响应时间,较佳地,在本步骤401中,可以根据各个服务器在最近一个时间段内的平均响应时间来确定各个服务器当前的响应时间,其具体实现过程包括:
在上述方式一和方式二中,在针对任意一个服务器记录时间差之后,并在将时间差确定为该服务器当前的响应时间之前,首先由负载均衡设备中的控制单元判断,从上一次确定该服务器响应时间到当前的时间长度内,针对该服务器记录时间差的次数是否达到预先设定的采样次数,如果是,则根据针对该服务器所记录的各次时间差,计算对应于该服务器的平均响应时间,也就是用针对该服务器所记录的各次时间差的和除以记录的次数,得到对应于该服务器的平均响应时间,然后将对应于该服务器的平均响应时间,确定为该服务器当前的响应时间,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
步骤402:负载均衡设备中的收发单元接收到客户端发来的访问请求报文。
步骤403:负载均衡设备中的控制单元根据所确定的各个服务器当前的响应时间,从各个服务器中选择当前响应时间最短的服务器。
步骤404:负载均衡设备中的控制单元控制收发单元将访问请求报文发送至当前所选的服务器。
步骤405:当前所选的服务器根据接收到的访问请求报文与对应的客户端进行报文交互。
总之,以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (12)

1、一种实现负载均衡的方法,其特征在于,该方法包括:
负载均衡设备确定各个服务器当前的响应时间;负载均衡设备接收到客户端发来的访问请求报文后,从各个服务器中选择当前响应时间最短的服务器,并将访问请求报文发送至当前所选的服务器。
2、根据权利要求1所述的方法,其特征在于,所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备根据各个服务器对客户端报文的响应时间,确定各个服务器当前的响应时间。
3、根据权利要求2所述的方法,其特征在于,所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备接收任意一个客户端发来的访问请求报文,将访问请求报文分别发送至各个服务器;负载均衡设备分别针对每一个服务器记录,将访问请求报文发送至该服务器与该服务器针对访问请求报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
4、根据权利要求2所述的方法,其特征在于,所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备接收到不同客户端发来的各个访问请求报文,将各个访问请求报文分别发送至各个服务器;负载均衡设备分别针对每一个服务器记录,将访问请求报文发送至该服务器与该服务器针对接收到的访问请求报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
5、根据权利要求2所述的方法,其特征在于,所述确定各个服务器当前的响应时间的步骤包括:
在不同客户端与各个服务器建立连接后,针对每一个服务器,负载均衡设备接收客户端发来的针对该服务器的业务数据报文,将业务数据报文发送至该服务器,并针对该服务器记录,将业务数据报文发送至该服务器与该服务器针对业务数据报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
6、根据权利要求3、4或5所述的方法,其特征在于,在负载均衡设备将报文发送至所述任意一个服务器之后,并在针对该服务器执行记录之前,进一步包括:
负载均衡设备判断从上一次确定该服务器响应时间到当前的时间长度内,发送给该服务器的报文个数是否达到预先设定的采样个数,如果是,则继续执行所述的针对该服务器记录时间差的步骤,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
7、根据权利要求3、4或5所述的方法,其特征在于,在负载均衡设备将报文发送至所述任意一个服务器之后,并在针对该服务器执行记录之前,进一步包括:
负载均衡设备判断从上一次确定该服务器响应时间到当前的时间长度是否等于预先设定的采样时间间隔,如果是,则继续执行所述的针对该服务器记录时间差的步骤,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
8、根据权利要求1所述的方法,其特征在于,所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备根据各个服务器对负载均衡设备所发送探测报文的响应时间,确定各个服务器当前的响应时间。
9、根据权利要求8所述的方法,其特征在于,所述确定各个服务器当前的响应时间的步骤包括:
负载均衡设备构造探测报文,将各个服务器分别作为探测报文的接收方,然后将探测报文分别发送至各个服务器;负载均衡设备针对每一个服务器记录,将探测报文发送至该服务器与该服务器针对探测报文返回响应报文的时间差;负载均衡设备将针对各服务器记录的时间差,确定为各个服务器当前的响应时间。
10、根据权利要求3、4、5或9所述的方法,其特征在于,在针对所述任意一个服务器记录时间差之后,并在将时间差确定为该服务器当前的响应时间之前,进一步包括:
负载均衡设备判断从上一次确定该服务器响应时间到当前的时间长度内,针对该服务器记录时间差的次数是否达到预先设定的采样次数,如果是,则根据针对该服务器所记录的各次时间差,计算对应于该服务器的平均响应时间,将对应于该服务器的平均响应时间,确定为该服务器当前的响应时间,否则,直接将上一次确定的该服务器的响应时间确定为该服务器当前的响应时间。
11、一种负载均衡设备,其特征在于,该负载均衡设备包括:控制单元和收发单元,其中,
控制单元,用于确定各个服务器当前的响应时间,在收发单元接收到客户端发来的访问请求报文后,控制收发单元将访问请求报文发送至当前响应时间最短的服务器;
收发单元,用于接收客户端发来的访问请求报文,并将访问请求报文发送至当前响应时间最短的服务器。
12、根据权利要求11所述的负载均衡设备,其特征在于,所述负载均衡设备进一步包括:计时器,
所述控制单元,通过收发单元将报文发送至各个服务器,并在将报文发送至各个服务器时,启动计时器,在收发单元接收到任意一个服务器返回的响应报文时,获取对应于该服务器的计时器的当前值,分别将针对各个服务器所获取的计时器的当前值确定为各个服务器的当前响应时间。
CNB2006101278306A 2006-09-20 2006-09-20 一种实现负载均衡的方法和一种负载均衡设备 Active CN100466551C (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101278306A CN100466551C (zh) 2006-09-20 2006-09-20 一种实现负载均衡的方法和一种负载均衡设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101278306A CN100466551C (zh) 2006-09-20 2006-09-20 一种实现负载均衡的方法和一种负载均衡设备

Publications (2)

Publication Number Publication Date
CN1937534A true CN1937534A (zh) 2007-03-28
CN100466551C CN100466551C (zh) 2009-03-04

Family

ID=37954817

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101278306A Active CN100466551C (zh) 2006-09-20 2006-09-20 一种实现负载均衡的方法和一种负载均衡设备

Country Status (1)

Country Link
CN (1) CN100466551C (zh)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815033A (zh) * 2010-03-12 2010-08-25 成都市华为赛门铁克科技有限公司 负载均衡的方法、设备及系统
CN102158512A (zh) * 2010-02-11 2011-08-17 联想(北京)有限公司 一种负载均衡调度方法、装置及系统
CN104158758A (zh) * 2014-08-26 2014-11-19 上海斐讯数据通信技术有限公司 Sdn网络基于用户报文时间反馈的负载均衡处理方法及系统
CN104821847A (zh) * 2015-04-29 2015-08-05 杭州华三通信技术有限公司 辅助以太网光纤通道端点设备登录转发器的方法及装置
CN105337786A (zh) * 2014-07-23 2016-02-17 华为技术有限公司 一种服务器性能检测方法、装置及设备
CN105450716A (zh) * 2014-09-25 2016-03-30 阿里巴巴集团控股有限公司 动态业务分发方法及系统
CN106453669A (zh) * 2016-12-27 2017-02-22 Tcl集团股份有限公司 一种负载均衡方法及一种服务器
CN107547620A (zh) * 2017-06-22 2018-01-05 新华三信息安全技术有限公司 一种响应时间获取方法及装置
CN108063819A (zh) * 2017-12-18 2018-05-22 迈普通信技术股份有限公司 数据通信方法及装置
CN110708365A (zh) * 2019-09-23 2020-01-17 杭州迪普科技股份有限公司 一种数据接收器的选择方法和装置
CN110839086A (zh) * 2019-12-23 2020-02-25 吉林省民航机场集团公司 一种高并发负载均衡处理方法
CN111258765A (zh) * 2020-01-17 2020-06-09 深圳乐信软件技术有限公司 一种负载均衡方法、装置、计算设备和存储介质
CN112636950A (zh) * 2020-12-02 2021-04-09 广东中兴新支点技术有限公司 聚合服务器的热备用方法、系统、装置及存储介质
CN112749009A (zh) * 2020-12-30 2021-05-04 杭州迪普科技股份有限公司 一种服务器调度方法及装置
CN113076192A (zh) * 2021-03-05 2021-07-06 深圳前海微众银行股份有限公司 一种负载均衡方法及装置、设备、存储介质
CN107979539B (zh) * 2017-10-30 2021-12-03 新华三技术有限公司 报文处理方法及装置
CN115002041A (zh) * 2022-05-31 2022-09-02 济南浪潮数据技术有限公司 一种节点均衡调度方法、装置、设备、存储介质
CN117997905A (zh) * 2024-01-08 2024-05-07 广州市玄武无线科技股份有限公司 服务端节点的调度方法、调度装置和服务端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438652B1 (en) * 1998-10-09 2002-08-20 International Business Machines Corporation Load balancing cooperating cache servers by shifting forwarded request
US8375127B1 (en) * 1999-03-31 2013-02-12 International Business Machines Corporation Method and system for using virtual URLs for load balancing
CN1115839C (zh) * 2000-01-28 2003-07-23 国际商业机器公司 均衡镜象服务器负载的方法及装置
EP1307018B1 (en) * 2001-10-24 2006-10-11 Sun Microsystems, Inc. Load balancing unit and method of its operation

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158512B (zh) * 2010-02-11 2016-03-30 联想(北京)有限公司 一种负载均衡调度方法、装置及系统
CN102158512A (zh) * 2010-02-11 2011-08-17 联想(北京)有限公司 一种负载均衡调度方法、装置及系统
CN101815033B (zh) * 2010-03-12 2013-04-24 成都市华为赛门铁克科技有限公司 负载均衡的方法、设备及系统
CN101815033A (zh) * 2010-03-12 2010-08-25 成都市华为赛门铁克科技有限公司 负载均衡的方法、设备及系统
CN105337786B (zh) * 2014-07-23 2019-07-19 华为技术有限公司 一种服务器性能检测方法、装置及设备
CN105337786A (zh) * 2014-07-23 2016-02-17 华为技术有限公司 一种服务器性能检测方法、装置及设备
CN104158758A (zh) * 2014-08-26 2014-11-19 上海斐讯数据通信技术有限公司 Sdn网络基于用户报文时间反馈的负载均衡处理方法及系统
CN105450716A (zh) * 2014-09-25 2016-03-30 阿里巴巴集团控股有限公司 动态业务分发方法及系统
CN104821847A (zh) * 2015-04-29 2015-08-05 杭州华三通信技术有限公司 辅助以太网光纤通道端点设备登录转发器的方法及装置
CN104821847B (zh) * 2015-04-29 2018-02-09 新华三技术有限公司 辅助以太网光纤通道端点设备登录转发器的方法及装置
CN106453669A (zh) * 2016-12-27 2017-02-22 Tcl集团股份有限公司 一种负载均衡方法及一种服务器
CN106453669B (zh) * 2016-12-27 2020-07-31 Tcl科技集团股份有限公司 一种负载均衡方法及一种服务器
CN107547620A (zh) * 2017-06-22 2018-01-05 新华三信息安全技术有限公司 一种响应时间获取方法及装置
CN107547620B (zh) * 2017-06-22 2021-06-22 新华三信息安全技术有限公司 一种响应时间获取方法及装置
CN107979539B (zh) * 2017-10-30 2021-12-03 新华三技术有限公司 报文处理方法及装置
CN108063819A (zh) * 2017-12-18 2018-05-22 迈普通信技术股份有限公司 数据通信方法及装置
CN110708365A (zh) * 2019-09-23 2020-01-17 杭州迪普科技股份有限公司 一种数据接收器的选择方法和装置
CN110839086A (zh) * 2019-12-23 2020-02-25 吉林省民航机场集团公司 一种高并发负载均衡处理方法
CN111258765A (zh) * 2020-01-17 2020-06-09 深圳乐信软件技术有限公司 一种负载均衡方法、装置、计算设备和存储介质
CN111258765B (zh) * 2020-01-17 2023-08-22 深圳乐信软件技术有限公司 一种负载均衡方法、装置、计算设备和存储介质
CN112636950A (zh) * 2020-12-02 2021-04-09 广东中兴新支点技术有限公司 聚合服务器的热备用方法、系统、装置及存储介质
CN112749009A (zh) * 2020-12-30 2021-05-04 杭州迪普科技股份有限公司 一种服务器调度方法及装置
CN113076192A (zh) * 2021-03-05 2021-07-06 深圳前海微众银行股份有限公司 一种负载均衡方法及装置、设备、存储介质
CN113076192B (zh) * 2021-03-05 2023-09-01 深圳前海微众银行股份有限公司 一种负载均衡方法及装置、设备、存储介质
CN115002041A (zh) * 2022-05-31 2022-09-02 济南浪潮数据技术有限公司 一种节点均衡调度方法、装置、设备、存储介质
CN117997905A (zh) * 2024-01-08 2024-05-07 广州市玄武无线科技股份有限公司 服务端节点的调度方法、调度装置和服务端

Also Published As

Publication number Publication date
CN100466551C (zh) 2009-03-04

Similar Documents

Publication Publication Date Title
CN100466551C (zh) 一种实现负载均衡的方法和一种负载均衡设备
US8010100B2 (en) System and method for monitoring and measuring end-to-end performance using wireless devices
CN102281190B (zh) 负载均衡装置组网方法以及服务器、客户端接入方法
US20050060425A1 (en) Application-based autonomic connectivity
CN100421431C (zh) 一种实现即时消息通信的方法
US20060020697A1 (en) System and method for presenting chat QoS indication to user
RU2464722C2 (ru) Способ, устройство и система для распределения сообщений
CN102136920B (zh) 网络会议的方法和装置
CN110166271B (zh) 一种检测网络节点异常的方法和装置
CN103647701B (zh) 即时通信系统消息转发的控制方法及装置
CN111200830A (zh) 数据传输方法及装置、电子设备
KR101491639B1 (ko) 통신망의 종류를 구분하는 방법 및 이를 이용한 콘텐츠 제공 방법
CN109510878A (zh) 一种长连接会话保持方法和装置
CN113207146B (zh) 无线通信网络质量监控系统及方法
CN113867946A (zh) 访问资源的方法、装置、存储介质及电子设备
CN114071544A (zh) 网络测试方法、装置和电子设备
CN101472290B (zh) 移动数据业务平台性能测试流量控制方法及装置
WO2009142059A1 (ja) 電子データ送受信システム
JP5961471B2 (ja) 複数の情報システムおける出力比較方法
WO2017005118A1 (zh) 维持通信连接的方法、装置、终端及服务器
CN110213155B (zh) 通信处理方法、装置及相关设备、存储介质
CN111092952A (zh) 一种数据交互方法及相关产品
CN109587249A (zh) 信息发送、接收方法、装置、服务器、客户端及存储介质
KR101091980B1 (ko) 캐시서버 및 브라우저캐시를 이용한 컨텐츠 전송시스템 및 방법
CN111327511B (zh) 即时通讯方法、系统、终端设备与存储介质

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230629

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right