WO2014040279A1 - 信息处理方法和负载均衡设备 - Google Patents

信息处理方法和负载均衡设备 Download PDF

Info

Publication number
WO2014040279A1
WO2014040279A1 PCT/CN2012/081418 CN2012081418W WO2014040279A1 WO 2014040279 A1 WO2014040279 A1 WO 2014040279A1 CN 2012081418 W CN2012081418 W CN 2012081418W WO 2014040279 A1 WO2014040279 A1 WO 2014040279A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
identification information
message
user equipment
load balancing
Prior art date
Application number
PCT/CN2012/081418
Other languages
English (en)
French (fr)
Inventor
蒋胜
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280001554.2A priority Critical patent/CN103004172B/zh
Priority to PCT/CN2012/081418 priority patent/WO2014040279A1/zh
Publication of WO2014040279A1 publication Critical patent/WO2014040279A1/zh

Links

Classifications

    • 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/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Definitions

  • the present invention relates to the field of communications, and more particularly to an information processing method and load balancing apparatus. Background technique
  • the server cluster (or data center) front end is distributed by a unified load balancer, that is, a new session establishment request. That is, a new request is determined by the load balancer to which server (which can be either physical or virtual) and the subsequent streams/packets of the session are forwarded to the same server.
  • the current session identification is based on a combination of (Internet Protocol Version 6, "IPv6") address + source port number), and different IPv6 addresses are identified as different users.
  • the access point (Access Point, called "AP") will be replaced, and the IPv6 address will be switched, that is, the switch from one IPv6 address to another, and the source port number will also change.
  • AP Access Point
  • the server does not have the user's previous usage information, the session that the user is using is forced to be interrupted, and the user equipment must log in again.
  • the port number is in the transport layer header of the IPv6 data packet.
  • the IPv6 data packet uses the extended packet header, that is, the IPv6 data packet includes an IPv6 fixed packet header, an IPv6 extended packet header, and a transport layer header, where the parsing order is The IPv6 fixed header, the IPv6 extended header, and the transport layer header. Therefore, after parsing the IPv6 extended header, the transport layer header can be parsed, and the port number is obtained, thereby obtaining a parsing overhead of the port number.
  • Embodiments of the present invention provide an information processing method and a load balancing device to improve continuity of a user equipment session.
  • an information processing method including:
  • the first identifier information further includes a flow label.
  • the method before the receiving the first message sent by the user equipment, the method further includes:
  • the establishing, by the first identifier information, the relationship between the first identifier information and the first server includes: After receiving the second message that is sent by the user equipment and carrying the first identifier information, and in the relationship between the identifier information and the server, if the server corresponding to the first identifier information does not exist, the slave server Selecting the first server in a cluster or a data center;
  • the method further includes:
  • a load balancing device including:
  • a receiving unit configured to receive a first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment;
  • a determining unit configured to determine, according to the relationship information of the identifier information and the server, the first server corresponding to the first identifier information
  • a sending unit configured to forward the first message to the first server, so that the first server processes the first message.
  • the first identifier information further includes a flow label.
  • the load balancing device further includes: And establishing a unit, in the relationship table between the identifier information and the server, establishing a relationship entry between the first identifier information and the first server.
  • the receiving unit is further configured to receive a second message that is sent by the user equipment, where the second The message carries the first identification information;
  • the establishing unit is specifically configured to:
  • the server selects the first server from a server cluster or a data center;
  • the load balancing device further includes: a deleting unit, And deleting a relationship item between the first identifier information and the first server.
  • a load balancing device including:
  • a receiver configured to receive a first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment;
  • a processor configured to determine, according to the relationship information of the identifier information and the server, a first server corresponding to the first identifier information
  • a transmitter configured to forward the first message to the first server, so that the first server processes the first message.
  • the first identifier information further includes a flow label.
  • the processor is further configured to:
  • the receiver is further configured to receive a second message that is sent by the user equipment, where the second The message carries the first identification information;
  • the processor is specifically configured to:
  • the server selects the first server from a server cluster or a data center;
  • the processor is further configured to: delete the The relationship between the first identification information and the first server.
  • the information processing method and the load balancing device of the embodiment of the present invention receive the first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment. Determining, according to the relationship information of the identifier information and the server, the first server corresponding to the first identifier information, forwarding the first message to the first server, so that the first server processes the first message, because In the case of the user equipment, the interface identifier is generally unchanged, so that the continuity of the user equipment session can be maintained. Moreover, since the interface identifier is in the IPv6 fixed header of the IPv6 data packet, the parsing overhead of obtaining the interface identifier is small.
  • FIG. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of an information processing method according to another embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an application scenario of an information processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of a load balancing device in accordance with an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a load balancing device according to another embodiment of the present invention.
  • FIG. 6 is a schematic block diagram of a load balancing device according to another embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention will be clearly described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • LTE frequency Division of Duplex Frequency Division Duplex
  • TDD Time Division Duplex
  • UMTS Universal Mobile Telecommunication System
  • WIFI Wireless Guarantee
  • IP Internet Protocol
  • UE User Equipment
  • Mobile terminal Mobile
  • a mobile user equipment may communicate with one or more core networks via a radio access network (eg, a Radio Access Network, "RAN"), and the user equipment may be a mobile terminal.
  • a radio access network eg, a Radio Access Network, "RAN”
  • the user equipment may be a mobile terminal.
  • RAN Radio Access Network
  • a mobile phone or “cellular” phone
  • a computer with a mobile terminal for example, can be a portable, pocket, handheld, computer built-in or in-vehicle mobile device that exchanges voice and wireless access networks with / or data.
  • a server cluster or data center is configured by a front-end load balancing device (for example, a load balancing server or a network device with routing function) after receiving a message from the user device, and can select a server from the server cluster or data center for processing the user device.
  • a front-end load balancing device for example, a load balancing server or a network device with routing function
  • the message specifically how to select the server for processing the message of the user equipment, will be described in detail below.
  • the first server described below is the selected server for processing the message of the user equipment. It should be understood that the "first" in the "first server” is only for distinguishing from other servers in the description, Any limitation should be made to the embodiments of the present invention.
  • FIG. 1 is a schematic flowchart of an information processing method 100 according to an embodiment of the present invention.
  • the method 100 can be performed by a load balancing device, where the load balancing device can be a load balancing server or a network device with a routing function.
  • the method 100 includes:
  • the first message sent by the user equipment is received, where the first message carries the first identifier information.
  • the first identification information includes an interface identifier of the user equipment;
  • S120 Determine, according to the relationship information of the identifier information and the server, the first server corresponding to the first identifier information;
  • the load balancing device in the data center or the server cluster may obtain the first identifier information from the first message, where the first identifier information carries the interface identifier of the user equipment. That is, the last 64 bits of the IPv6 address of the user equipment, and then the load balancing device may determine the first server corresponding to the first identifier information according to the relationship between the identifier information and the server, and then the load balancing device may A message is forwarded to the first server so that the first server can process the first message.
  • the first server is a server in a data center or a server cluster
  • the load balancing device has a relationship item between the first identifier information and the first server.
  • the identifier information is information that can identify the user equipment or the session, such as an interface identifier, a flow label, an IPv6 address, or a source port number.
  • the interface identifier of the user equipment is generally generated by the user equipment according to the media access control (Media Access Control, "MAC") address.
  • MAC Media Access Control
  • the interface identifier generally does not change, and thus, the load balancing device receives
  • the server for processing the user equipment message can maintain the continuity of the same session, thereby improving the user experience.
  • the interface identifier is in the source IPv6 address in the IPv6 fixed packet header of the IPv6 packet, the resolution of obtaining the interface identifier is small, and the corresponding server can be quickly found.
  • the interface identifier may also be generated by other methods, but the frequency of the interface identifier change is ⁇ low, and generally does not change during a session.
  • the identifier information may include only the interface identifier, and determining that the first server corresponding to the first identifier information may be: finding a corresponding first server according to all bits or partial bits of the interface identifier, ie, In the relationship table between the identifier information and the server, there is a correspondence between all bits or partial bits of the interface identifier of the user equipment and the first server. It should be understood that the partial bits of the interface identifier may be consecutive bits or non-contiguous bits, which is not limited by the embodiment of the present invention.
  • the identifier information may include a flow label in addition to the interface identifier
  • the first server corresponding to the first identifier information may be: a partial bit, and a first server corresponding to all or part of the bit in the flow tag, that is, in the relationship table between the identification information and the server, there is (all or part of the interface identifier in the first identification information + The correspondence between all or part of the bits in the stream tag and the first server.
  • (all or part of the bits in the first identifier information + all or part of the bits in the stream label) does not mean that the bits in the interface identifier are sorted with the bits in the stream label, just to indicate The interface identifier and the flow label jointly establish an entry relationship with the server.
  • the interface identifier may be 64 bits before, the flow label may be 20 digits, or the flow label may be 20 digits.
  • the 64-bit identifier of the interface identifier may be followed by the 64-bit insertion of the flow label and the 64-bit interleaving of the interface identifier.
  • the part of the interface identifier and the part of the flow label may also be taken.
  • the first 40 of the interface identifier may be In the first place, the last 18 bits of the stream identifier are followed by 20 bits of the stream tag, the last 50 bits of the interface tag are followed, or the first 15 bits of the stream tag are in front, and the 64 bits of the interface tag are in the Rear.
  • the partial bits of the interface identifier may be consecutive bits or non-contiguous bits.
  • the partial bits of the flow label may be consecutive bits or discontinuous bits, which is not in this embodiment of the present invention. Limited.
  • the first identifier information may also include other information than the interface identifier, for example, an IPv6 address or a source port number, and the like.
  • An identification information includes an interface identifier, or includes an interface identifier and a flow label. For example, when identifying the information interface identifier and the port number, determining that the first server corresponding to the first identifier information may be: finding a corresponding first server according to all bits or partial digits of the interface identifier and the port number, ie, In the relationship table between the identification information and the server, there is a correspondence relationship between the first server and the first server (all bits or part bits of the interface identifier + port number). It should be understood that the partial bits of the interface identifier may be consecutive bits or discontinuous bits, which is not limited in the embodiment of the present invention.
  • the application wants to maintain the continuity of the session. In the same session, the set value of the flow label is not actively modified. Therefore, in one session, the flow label does not change, but different. Sessions, stream tags are generally different. Moreover, since the interface identifier is basically in units of per-user devices, that is, one user device may always be assigned to one server. And the combination of (interface identifier + stream label) is based on the session, and the load balancing is more flexible. Live.
  • the interface identifier and the flow label by using the interface identifier and the flow label, the accuracy of the server selection can be further ensured, and the stream labels are different due to different sessions, thereby increasing the flexibility of selecting the server.
  • the flow label is also in the IPv6 fixed header, and the parsing overhead of obtaining the flow label is also small.
  • the method 100 before receiving the first message sent by the user equipment in S110, the method 100 may further include:
  • S140 Establish a relationship between the first identifier information and the first server in the relationship between the identifier information and the server.
  • the relationship between the identification information and the server may be configured uniformly. That is, the load balancing device can establish the correspondence between the interface identifier and the server according to the capability of the server cluster or the data center to process the service. The interface identifier is generally unchanged. Therefore, after receiving the message of the user equipment, the load balancing device can be established according to the The entry, finds the first server that processes the message for the user device.
  • the relationship between the first identifier information and the server may be established, where the first identifier information includes only the interface identifier, and the relationship between all the bits of the interface identifier and the first server may be established, or Establish a relationship table between the interface identifier part and the first server. If the first identification information further includes a flow label, a relationship entry (all or part of the bits in the interface identifier + all or part of the flow label) and the first server may be established. The embodiment of the present invention does not limit this, as long as the first server and the first identification information can be associated with each other. It should be understood that the partial bits of the interface identifier may be consecutive bits or non-contiguous bits. Similarly, the partial bits of the flow label may be consecutive bits or discontinuous bits, which is not in this embodiment of the present invention. Limited.
  • establishing the relationship between the first identifier information and the first server may include:
  • the load balancing device receives the first identification information that is sent by the user equipment.
  • the second message for example, after the session establishment request message, it may be determined in the relationship information of the identifier information and the server whether there is a server corresponding to the first identifier information, and if not, the server cluster or data may be obtained.
  • Selecting the first server in the center for example, a server with a smaller processing load, or a server that is closer to the user equipment, or a server that is randomly selected when there are multiple servers with a small processing load at the same time,
  • the first server forwards the second message, and establishes a relationship entry between the identifier information carried in the second message and the first server.
  • the method 100 may further include:
  • the load balancing device may delete the relationship between the first identifier information and the first server, thereby saving storage space.
  • FIG. 2 shows both S140 and S150
  • the information processing method of the embodiment of the present invention may include only S140, or only S150, or both S140 and S150.
  • the information processing method of the embodiment of the present invention receives the first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment, and the relationship between the identifier information and the server
  • the first server that is corresponding to the first identifier information is forwarded to the first server, so that the first server processes the first message, because the interface identifier is used for the same user equipment.
  • the identification information further includes a flow label.
  • the interface identifier and the flow label are in the fixed header of the IPv6 data packet, whether the interface identifier or the interface identifier and the flow label are used at the same time, the resolution overhead can be reduced, and the corresponding server can be quickly found.
  • the user equipment 1 sends a new session establishment request message through the API, and the new session establishment request message is sent to the load balancing device through the API. Since the message is a new session establishment request message, the load balancing device needs to be this time.
  • the session distribution server, the load balancing device can find a relatively idle server according to the processing load of each server in the server cluster, or a server (eg, server 1) that is closer to the user equipment to process the user equipment 1 meeting.
  • the user equipment 1 needs to be connected to the AP 2 because the interface identifier is generally unchanged for the same user equipment.
  • the flow label does not change during the same session. Therefore, even if the user equipment changes the AP, the load balancing is performed.
  • FIG. 3 is only one specific implementation manner of the present invention, and other embodiments may be implemented in the embodiments of the present invention.
  • the information processing method of the embodiment of the present invention receives the first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment, and the relationship between the identifier information and the server
  • the first server that is corresponding to the first identifier information is forwarded to the first server, so that the first server processes the first message, because the interface identifier is used for the same user equipment.
  • the identification information further includes a flow label.
  • the interface identifier and the flow label are in the fixed header of the IPv6 data packet, whether the interface identifier or the interface identifier and the flow label are used at the same time, the resolution overhead can be reduced, and the corresponding server can be quickly found.
  • FIG. 4 is a schematic block diagram of a load balancing device 200 in accordance with an embodiment of the present invention. As shown in FIG. 4, the load balancing device 200 includes:
  • the receiving unit 210 is configured to receive a first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment;
  • the determining unit 220 is configured to determine, according to the relationship information of the identifier information and the server, the first server corresponding to the first identifier information;
  • the sending unit 230 is configured to forward the first message to the first server, so that the first server processes the first message.
  • the load balancing device of the embodiment of the present invention receives the first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment, and the relationship between the identifier information and the server.
  • the first server that is corresponding to the first identifier information is forwarded to the first server, so that the first server processes the first message, because the interface identifier is used for the same user equipment.
  • the continuity of the user equipment session can be maintained.
  • the resolution of obtaining the interface identifier is small because the interface identifier is in the source IPv6 address in the fixed header of the IPv6 packet.
  • the first identification information further includes a flow label.
  • the load balancing service device 200 further includes:
  • the establishing unit 240 establishes, in the relationship table of the identifier information and the server, a relationship entry between the first identifier information and the first server.
  • the receiving unit 210 is further configured to receive a second message sent by the user equipment, where the second message carries the first identifier information;
  • the establishing unit 240 is specifically configured to:
  • the receiving unit After the receiving unit receives the second message that is sent by the user equipment and carries the first identifier information, and in the relationship table between the identifier information and the server, if the server corresponding to the first identifier information does not exist, the slave server Select the first server in the cluster or data center;
  • the load balancing device 200 further includes:
  • the deleting unit 450 is configured to delete the relationship between the first identifier information and the first server. Therefore, the load balancing device of the embodiment of the present invention receives the first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface label of the user equipment. Determining, according to the relationship information of the identifier information and the server, determining the first server corresponding to the first identifier information, forwarding the first message to the first server, so that the first server processes the first message, because For the same user equipment, the interface identifier is generally unchanged, so that the continuity of the user equipment session can be maintained. Further, the identification information further includes a flow label.
  • the interface identifier and the flow label By adopting the interface identifier and the flow label, the accuracy of the server selection can be further ensured, and the flow labels are generally different due to different sessions, and the flexibility of server selection can be increased. And because the interface identifier and the flow label are in the fixed header of the IPv6 data packet, whether the interface identifier or the flow label and the interface identifier are used at the same time, the resolution overhead can be reduced, and the corresponding server can be quickly found.
  • FIG. 6 is a schematic block diagram of a load balancing device 300 in accordance with an embodiment of the present invention. As shown in FIG. 6, the load balancing device 300 includes:
  • the receiver 310 is configured to receive a first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment;
  • the processor 320 is configured to determine, according to the relationship information of the identifier information and the server, the first server corresponding to the first identifier information;
  • the sender 330 is configured to forward the first message to the first server, so that the first server processes the first message.
  • the load balancing device of the embodiment of the present invention receives the first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment, and the relationship between the identifier information and the server.
  • the first server that is corresponding to the first identifier information is forwarded to the first server, so that the first server processes the first message, because the interface identifier is used for the same user equipment.
  • the continuity of the user equipment session can be maintained.
  • the resolution of obtaining the interface identifier is small because the interface identifier is in the source IPv6 address in the fixed header of the IPv6 packet.
  • the first identification information further includes a flow label.
  • processor 320 is further configured to:
  • the receiver 310 is further configured to receive a second message sent by the user equipment, where the second message carries the first identifier information;
  • the processor 320 is specifically configured to:
  • the receiving unit Receiving, by the receiving unit, the second cancellation carried by the user equipment carrying the first identification information After the information, and in the relationship table between the identifier information and the server, if the server corresponding to the first identifier information does not exist, the first server is selected from the server cluster or the data center;
  • processor 320 is further configured to:
  • the relationship between the first identifier information and the first server is deleted.
  • the load balancing device of the embodiment of the present invention receives the first message sent by the user equipment, where the first message carries the first identifier information, where the first identifier information includes an interface identifier of the user equipment, and the relationship between the identifier information and the server.
  • the first server that is corresponding to the first identifier information is forwarded to the first server, so that the first server processes the first message, because the interface identifier is used for the same user equipment.
  • the identification information further includes a flow label.
  • the interface identifier and the flow label are in the fixed header of the IPv6 data packet, whether the interface identifier or the interface identifier and the flow label are used at the same time, the resolution overhead can be reduced, and the corresponding server can be quickly found.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

本发明实施例提供了一种信息处理方法和负载均衡设备。该方法包括:接收用户设备发送的第一消息,所述第一消息携带第一标识信息,所述第一标识信息包括用户设备的接口标识;根据标识信息与服务器的关系表项,确定与所述第一标识信息对应的第一服务器;将所述第一消息转发至所述第一服务器,以便于所述第一服务器处理所述第一消息。本发明实施例的信息处理方法和负载均衡设备,可以保持用户设备会话的连续性。并且,由于接口标识在IPv6地址中的固定包头中,则获取接口标识的解析开销较小。

Description

信息处理方法和负载均衡设备 技术领域
本发明涉及通信领域, 并且更具体地, 涉及一种信息处理方法和负载均 衡设备。 背景技术
服务器集群(或数据中心)前端由统一的负载均衡器来分发接入请求, 也即新会话(session )建立请求。 即一个新的请求由负载均衡器来确定分发 给哪个服务器(可以是实体或虚拟), 并保证该会话的后续流 /包都转发给同 一服务器。 目前的会话识别都是基于 (互联网协议版本 6 ( Internet Protocol Version 6, 筒称 "IPv6" )地址 +源端口号)的组合, 不同 IPv6地址被认定为 不同用户。
然而, 同一用户在更换位置之后, 会更换接入点 (Access Point, 筒称 "AP" ), 也就会切换 IPv6地址, 即从一个 IPv6地址切换到另一个 IPv6地 址, 源端口号也会改变。 由于 IPv6地址和源端口号的改变, 用户设备会被 认为新用户, 被分配到不同的服务器, 该服务器没有用户之前的使用信息, 用户正在使用的会话会被迫中断, 用户设备必须重新登录。 并且端口号在 IPv6数据包的传输层包头中, 在有些情况下, 如果 IPv6数据包使用了扩展 包头, 即 IPv6数据包包括 IPv6固定包头、 IPv6扩展包头和传输层包头, 其 中, 解析顺序依次为 IPv6固定包头、 IPv6扩展包头和传输层包头, 因此需 要先解析 IPv6扩展包头之后, 才能解析传输层包头, 而获得端口号, 由此 获得端口号的解析开销较大。 发明内容
本发明实施例提供一种信息处理方法和负载均衡设备, 以改善用户设备 会话的连续性。
第一方面, 提供了一种信息处理方法, 包括:
接收用户设备发送的第一消息, 所述第一消息携带第一标识信息, 所述 第一标识信息包括用户设备的接口标识;
根据标识信息与服务器的关系表项,确定与所述第一标识信息对应的第 一服务器;
将所述第一消息转发至所述第一服务器, 以便于所述第一服务器处理所 述第一消息。
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述第一标识 信息还包括流标签。
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二 种可能的实现方式中, 在所述接收用户设备发送的第一消息之前, 所述方法 还包括:
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实 现方式中,所述建立所述第一标识信息与所述第一服务器的关系表项,包括: 在接收到所述用户设备发送的携带所述第一标识信息的第二消息之后, 且在所述标识信息与服务器的关系表项中, 不存在所述第一标识信息对应的 服务器时, 从服务器集群或数据中心中选择所述第一服务器;
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
结合第一方面的第二种可能的实现方式或第一方面的第三种可能的实 现方式, 在第一方面的第四种可能的实现方式中, 所述方法还包括:
删除所述第一标识信息与所述第一服务器的关系表项。
第二方面, 提供了一种负载均衡设备, 包括:
接收单元, 用于接收用户设备发送的第一消息, 所述第一消息携带第一 标识信息, 所述第一标识信息包括用户设备的接口标识;
确定单元, 用于根据标识信息与服务器的关系表项, 确定与所述第一标 识信息对应的第一服务器;
发送单元, 用于将所述第一消息转发至所述第一服务器, 以便于所述第 一服务器处理所述第一消息。
结合第二方面, 在第二方面的第一种可能的实现方式中, 所述第一标识 信息还包括流标签。
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二 种可能的实现方式中, 所述负载均衡设备还包括: 建立单元, 在所述标识信息与所述服务器的关系表项中, 建立所述第一 标识信息与所述第一服务器的关系表项。
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实 现方式中, 所述接收单元, 还用于接收所述用户设备发送的第二消息, 所述 第二消息携带所述第一标识信息;
所述建立单元, 具体用于:
在所述接收单元接收到所述用户设备发送的携带所述第一标识信息的 第二消息之后, 且在所述标识信息与服务器的关系表项中, 不存在所述第一 标识信息对应的服务器时, 从服务器集群或数据中心中选择所述第一服务 器;
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
结合第二方面的第二种可能的实现方式或第二方面的第三种可能的实 现方式,在第二方面的第四种可能的实现方式中,所述负载均衡设备还包括: 删除单元, 用于删除所述第一标识信息与所述第一服务器的关系表项。 第三方面, 提供了一种负载均衡设备, 包括:
接收器, 用于接收用户设备发送的第一消息, 所述第一消息携带第一标 识信息, 所述第一标识信息包括用户设备的接口标识;
处理器, 用于根据标识信息与服务器的关系表项, 确定与所述第一标识 信息对应的第一服务器;
发送器, 用于将所述第一消息转发至所述第一服务器, 以便于所述第一 服务器处理所述第一消息。
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述第一标识 信息还包括流标签。
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二 种可能的实现方式中, 所述处理器还用于:
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实 现方式中, 所述接收器, 还用于接收所述用户设备发送的第二消息, 所述第 二消息携带所述第一标识信息; 所述处理器具体用于:
在所述接收单元接收到所述用户设备发送的携带所述第一标识信息的 第二消息之后, 且在所述标识信息与服务器的关系表项中, 不存在所述第一 标识信息对应的服务器时, 从服务器集群或数据中心中选择所述第一服务 器;
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
结合第三方面的第二种可能的实现方式或第三方面的第三种可能的实 现方式, 在第三方面的第四种可能的实现方式中, 所述处理器还用于: 删除所述第一标识信息与所述第一服务器的关系表项。
基于以上技术方案, 本发明实施例的信息处理方法和负载均衡设备, 通 过接收用户设备发送的第一消息, 该第一消息携带第一标识信息, 该第一标 识信息包括用户设备的接口标识, 根据标识信息与服务器的关系表项, 确定 与该第一标识信息对应的第一服务器, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该第一消息, 由于对于同一用户设备而言, 接口标 识一般不变, 从而, 可以保持用户设备会话的连续性。 并且, 由于接口标识 在 IPv6数据包中的 IPv6固定包头中, 则获取接口标识的解析开销较小。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图 仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是根据本发明实施例的信息处理方法的示意性流程图。
图 2是根据本发明另一实施例的信息处理方法的示意性流程图。
图 3是根据本发明实施例的信息处理方法应用场景的示意图。
图 4是根据本发明实施例的负载均衡设备的示意性框图。
图 5是根据本发明另一实施例的负载均衡设备的示意性框图。
图 6是根据本发明另一实施例的负载均衡设备的示意性框图。 具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的 实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳 动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
应理解, 本发明实施例的技术方案可以应用于各种通信系统, 例如: 全 球移动通讯 ( Global System of Mobile communication, 筒称 GSM ) 系统、 码 分多址 ( Code Division Multiple Access , 筒称 CDMA ) 系统、 宽带码分多址 ( Wideband Code Division Multiple Access, 筒称 WCDMA )系统、 通用分组 无线业务( General Packet Radio Service, 筒称 GPRS )、长期演进( Long Term Evolution, 筒称 LTE ) 系统、 LTE频分双工( Frequency Division Duplex, 筒 称 FDD ) 系统、 LTE时分双工( Time Division Duplex, 筒称 TDD )、 通用移 动通信系统 ( Universal Mobile Telecommunication System, 筒称 UMTS )、 无 线保证(Wireless Fidelity筒称 "WIFI" )和移动数据接入系统, 固网互连网 协议(Internet Protocol, 筒称 " IP" ) 接入系统等。
用户设备 ( User Equipment , 筒称 "UE" ) ,也可称之为移动终端( Mobile
Terminal ),移动用户设备等,可以经无线接入网(例如,接入点网络, ( Radio Access Network, 筒称 "RAN" ) )与一个或多个核心网进行通信, 用户设备 可以是移动终端, 如移动电话(或称为"蜂窝"电话)和具有移动终端的计算 机, 例如, 可以是便携式、 袖珍式、 手持式、 计算机内置的或者车载的移动 装置, 它们与无线接入网交换语音和 /或数据。
服务器集群或数据中心由前端的负载均衡设备(例如, 负载均衡服务器 或具有路由功能的网络设备)在接收到用户设备的消息之后, 可以从服务器 集群或数据中心选择一个服务器用于处理该用户设备的消息, 具体如何选择 用于处理用户设备的消息的服务器, 以下将进行详细的说明。 其中, 下文所 述的第一服务器即为选择的用于处理用户设备的消息的服务器, 应理解, "第一服务器" 中的 "第一" 只是为了在描述上, 与其他服务器进行区分, 不应对本发明实施例构成任何限定。
图 1是根据本发明实施例的信息处理方法 100的示意性流程图。该方法 100可以由负载均衡设备执行, 其中, 该负载均衡设备可以为负载均衡服务 器, 也可以为具有路由功能的网络设备。 如图 1所示, 该方法 100包括:
S110, 接收用户设备发送的第一消息, 该第一消息携带第一标识信息, 该第一标识信息包括用户设备的接口标识;
S120, 根据标识信息与服务器的关系表项, 确定与该第一标识信息对应 的第一服务器;
S130, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该 第一消息。
数据中心或服务器集群前端的负载均衡设备在接收到用户设备发送的 第一消息之后, 可以从该第一消息中获取第一标识信息, 其中, 该第一标识 信息中携带用户设备的接口标识, 即, 用户设备的 IPv6 地址的后 64位, 然 后, 负载均衡设备可以根据标识信息与服务器的关系表项, 确定与该第一标 识信息对应的第一服务器, 然后, 负载均衡设备可以将该第一消息转发至第 一服务器, 从而第一服务器可以处理该第一消息。
在本发明实施例中, 第一服务器为数据中心或服务器集群中的服务器, 并且, 在负载均衡设备中, 具有第一标识信息与第一服务器的关系表项。
在本发明实施例中,标识信息为能对用户设备或会话起到标识作用的信 息, 例如, 接口标识, 流标签, IPv6地址或源端口号等。
其中, 用户设备的接口标识一般由用户设备根据媒体接入控制 (Media Access Control, 筒称 "MAC" )地址生成, 对于同一用户设备来说, 接口标 识一般不会改变, 从而, 负载均衡设备接收到用户设备的消息之后, 根据包 括接口标识的标识信息与服务器的对应关系,选择用于处理用户设备消息的 服务器, 可以保持同一会话的连续性, 从而可以提升用户的体验。 并且, 由 于接口标识在 IPv6数据包的 IPv6固定包头中的源 IPv6地址中,则获取接口 标识的解析开销较小, 并能迅速查找到对应的服务器。
应理解, 在本发明实施例中, 接口标识也可以由其他方式生成, 但是不 论以何种方式生成, 接口标识更改的频率都是 ^艮低的, 一般在一次会话期间 不会改变。
在本发明实施例中, 标识信息可以只包括接口标识, 则确定与该第一标 识信息对应的第一服务器可以为: 根据该接口标识的全部位或部分位找到对 应的第一服务器, 即, 在标识信息与服务器的关系表项中, 存在该用户设备 的接口标识的全部位或部分位与第一服务器的对应关系。 应理解, 接口标识 的部分位可以为连续的位, 也可以为不连续的位, 本发明实施例并不对此进 行限定。 在本发明实施例中, 标识信息除了包括接口标识之外, 可以进一步包括 流标签, 则确定与该第一标识信息对应的第一服务器可以为: 根据第一标识 信息中的接口标识的全部或部分位, 与流标签中的全部或部分位找到对应的 第一服务器, 即, 在标识信息与服务器的关系表项中, 存在(该第一标识信 息中的接口标识中的全部或部分位 +流标签中的全部或部分位 ) 与第一服务 器的对应关系。其中, (该第一标识信息中的接口标识中的全部或部分位 +流 标签中的全部或部分位 )并不意味着接口标识中的位与流标签中的位排序的 先后, 只是为了表明接口标识与流标签共同与服务器之间建立表项关系, 例 如, 关系表项中, 可以是接口标识的 64位在前、 流标签的 20位在后, 也可 以是流标签的 20位在前, 接口标识的 64位在后, 也可以是流标签的 20位 与接口标识的 64位穿插排序; 当然, 也可以取接口标识的部分与流标签的 部分, 例如, 可以是接口标识的前 40位在前, 流标识的后 18位在后, 可以 是流标签的 20位在前,接口标识的后 50位在后,或者可以是流标签的前 15 位在前, 接口标识的 64位在后。 应根据具体情况而定, 本发明实施例并不 对此进行限定。 应理解, 接口标识的部分位可以为连续的位, 也可以为不连 续的位, 同样, 流标签的部分位可以为连续的位, 也可以为不连续的位, 本 发明实施例并不对此进行限定。
当然, 在本发明实施例中, 该第一标识信息也可以包括除了接口标识之 外的其他信息, 例如, IPv6地址或源端口号等信息, 本发明实施例并不对此 进行限定, 只要该第一标识信息包括接口标识, 或包括接口标识和流标签即 可。 例如, 在标识信息接口标识和端口号时, 则确定与该第一标识信息对应 的第一服务器可以为: 根据该接口标识的全部位或部分位与端口号找到对应 的第一服务器, 即, 在标识信息与服务器的关系表项中, 存在(接口标识的 全部位或部分位 +端口号) 与第一服务器的对应关系。 应理解, 接口标识的 部分位可以为连续的位, 也可以为不连续的位, 本发明实施例并不对此进行 限定。
由于流标签由应用程序设定, 应用程序希望保持会话的连续性, 在同一 会话中, 不会主动修改流标签的设定值, 因此, 在一次会话中, 流标签不会 改变, 但是不同的会话, 流标签一般不同。 而且, 由于接口标识基本上来说 是以每用户设备为单位的, 即一个用户设备可能总会被分配到一个服务器。 而 (接口标识 +流标签) 的组合, 是以会话为单位, 负载均衡的分配更加灵 活。
因此, 在本发明实施例中, 通过采用接口标识和流标签, 可以进一步保 证服务器选择的准确性, 而且由于不同的会话, 流标签不同, 从而, 可以增 加选择服务器的灵活性。 同样, 流标签也在 IPv6 固定包头中, 则获取流标 签的解析开销也较小。
在本发明实施例中, 如图 2所示, 在 S110中接收用户设备发送的第一 消息之前, 该方法 100还可以包括:
S140, 在该标识信息与该服务器的关系表项中, 建立该第一标识信息与 该第一服务器的关系表项。
在本发明实施例中,标识信息与服务器的关系表项可以为统一进行配置 的。 即, 负载均衡设备根据服务器集群或数据中心处理业务的能力, 可以建 立接口标识与服务器的对应关系, 由于接口标识一般不变, 从而, 在接收到 用户设备的消息之后, 负载均衡设备可以根据建立的表项, 找到用于处理该 用户设备的消息的第一服务器。
在本发明实施例中,建立第一标识信息与服务器的关系表项可以为在第 一标识信息只包括接口标识的情况下, 可以建立接口标识全部位与第一服务 器的关系表项, 也可以建立接口标识部分位与第一服务器的关系表项。 如果 第一标识信息进一步包括流标签, 则可以建立 (接口标识中全部或部分位 + 流标签的全部或部分位)与第一服务器的关系表项。可以根据具体情况而定, 只要能将第一服务器和第一标识信息进行关联即可, 本发明实施例并不对此 进行限定。 应理解, 接口标识的部分位可以为连续的位, 也可以为不连续的 位, 同样, 流标签的部分位可以为连续的位, 也可以为不连续的位, 本发明 实施例并不对此进行限定。
在本发明实施例中, 建立该第一标识信息与该第一服务器的关系表项, 可以包括:
在接收到该用户设备发送的携带该第一标识信息的第二消息之后,且在 该标识信息与服务器的关系表项中, 不存在该第一标识信息对应的服务器 时, 从服务器集群或数据中心中选择该第一服务器;
在该标识信息与该服务器的关系表项中, 建立该第一标识信息与该第一 服务器的关系表项。
具体地说, 负载均衡设备在接收到用户设备发送的携带有第一标识信息 的第二消息之后, 例如, 会话建立请求消息之后, 可以在该标识信息与服务 器的关系表项中, 确定是否存在与该第一标识信息对应的服务器, 如果不存 在, 可以从服务器集群或数据中心中选择第一服务器, 例如, 处理负担较小 的服务器, 或者, 与用户设备距离较近的服务器, 或者, 在同时存在多个处 理负担较小的服务器时, 随机选择的一个服务器, 向该第一服务器转发第二 消息, 并建立第二消息中携带的标识信息与第一服务器的关系表项。
在本发明实施例中, 如图 2所示, 该方法 100还可以包括:
S150, 删除该第一标识信息与该第一服务器的关系表项。
例如, 负载均衡设备在预定的时间内未接收到携带所述第一标识信息的 消息之后, 则可以删除该第一标识信息与该第一服务器的关系表项, 可以节 省存储空间。
应理解, 在本发明实施例中, 虽然图 2同时示出了 S140和 S150, 应理 解, 本发明实施例的信息处理方法可以包括只包括 S140, 或只包括 S150, 或同时包括 S140和 S150。
因此, 本发明实施例的信息处理方法, 通过接收用户设备发送的第一消 息, 该第一消息携带第一标识信息, 该第一标识信息包括用户设备的接口标 识, 根据标识信息与服务器的关系表项, 确定与该第一标识信息对应的第一 服务器, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该第 一消息, 由于对于同一用户设备而言, 接口标识一般不变, 从而, 可以保持 用户设备会话的连续性。 进一步地, 标识信息还包括流标签, 通过采用接口 标识和流标签, 可以进一步保证服务器选择的准确性, 并且由于会话不同, 流标签一般不同, 还可以增加服务器选择的灵活性。 并且由于接口标识和流 标签都在 IPv6数据包的固定包头中, 不论只采用接口标识, 还是同时采用 接口标识和流标签, 均可以减小解析开销, 并能迅速查找到对应的服务器。
为了更加清楚地理解本发明, 以下将结合图 3描述根据本发明实施例的 信息处理方法。
如图 3所示,用户设备 1通过 API发送新会话建立请求消息,该新会话 建立请求消息通过 API 发送到负载均衡设备, 由于此次消息是新会话建立 请求消息, 负载均衡设备需要为此次会话分配服务器, 负载均衡设备可以根 据服务器集群中各个服务器处理负担, 找到一个相对空闲的服务器, 或者与 用户设备距离较近的服务器(例如, 服务器 1 )来处理用户设备 1的此次会 话, 然后, 负载均衡设备可以将该会话建立请求消息转发至服务器 1 , 并可 以建立接口标识和流标签与服务器的关系表项,即, Interface ID 1 +Flow Label 1= >服务器 1标识, 其中, Interface ID 1是该用户设备 1的接口标识, Flow Label 1是用户设备 1此次会话的流标签。 此后, 在该会话过程中, 负载均衡 设备在接收到用户设备 1通过 API 发送的消息后,可以根据已建立的表项: Interface ID 1+Flow Label 1=〉服务器 1标识, 找到服务器 1。
由于用户设备 1更换了位置,需要接入到 AP 2, 由于对于同一用户设备 而言, 接口标识一般不变, 同一会话过程中, 流标签不变, 因此, 即使用户 设备更换了 AP, 负载均衡设备仍然可以通过表项 Interface ID 1+Flow Label 1=〉服务器 1标识, 找到服务器 1来处理通过 AP 2发送的此次会话的消息, 从而, 可以保持会话的连续性。
应理解, 图 3所述的只是本发明的一个具体实现方式, 本发明实施例还 可以具有其他实现方式。 例如, 负载均衡设备在接收到用户设备 1的会话建 立消息之后, 可以建立接口标识与服务器的关系表项, 即, Interface ID 1=〉 服务器 1标识, 并且此后, 在该会话过程中, 负载均衡设备在接收到用户设 备 1通过 API 发送的消息后, 可以根据已建立的表项: Interface ID 1=〉服 务器 1标识, 找到服务器 1。
因此, 本发明实施例的信息处理方法, 通过接收用户设备发送的第一消 息, 该第一消息携带第一标识信息, 该第一标识信息包括用户设备的接口标 识, 根据标识信息与服务器的关系表项, 确定与该第一标识信息对应的第一 服务器, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该第 一消息, 由于对于同一用户设备而言, 接口标识一般不变, 从而, 可以保持 用户设备会话的连续性。 进一步地, 标识信息还包括流标签, 通过采用接口 标识和流标签, 可以进一步保证服务器选择的准确性, 并且由于会话不同, 流标签一般不同, 还可以增加服务器选择的灵活性。 并且由于接口标识和流 标签都在 IPv6数据包的固定包头中, 不论只采用接口标识, 还是同时采用 接口标识和流标签, 均可以减小解析开销, 并能迅速查找到对应的服务器。
以上已结合图 1至图 3描述根据本发明实施例的信息处理方法, 以下将 结合图 4至图 6描述根据本发明实施例的负载均衡设备。 应理解, 图 4至图 6所示的负载均衡设备可以为负载均衡服务器, 也可以具有路由功能的网络 设备。 图 4是根据本发明实施例的负载均衡设备 200的示意性框图。如图 4所 示, 该负载均衡设备 200包括:
接收单元 210, 用于接收用户设备发送的第一消息, 该第一消息携带第 一标识信息, 该第一标识信息包括用户设备的接口标识;
确定单元 220, 用于根据标识信息与服务器的关系表项, 确定与该第一 标识信息对应的第一服务器;
发送单元 230, 用于将该第一消息转发至该第一服务器, 以便于该第一 服务器处理该第一消息。
因此, 本发明实施例的负载均衡设备, 通过接收用户设备发送的第一消 息, 该第一消息携带第一标识信息, 该第一标识信息包括用户设备的接口标 识, 根据标识信息与服务器的关系表项, 确定与该第一标识信息对应的第一 服务器, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该第 一消息, 由于对于同一用户设备而言, 接口标识一般不变, 从而, 可以保持 用户设备会话的连续性。 并且, 由于接口标识在 IPv6数据包的固定包头中 的源 IPv6地址中, 则获取接口标识的解析开销较小。
可选地, 该第一标识信息还包括流标签。
可选地, 如图 5所示, 该负载均衡服设备 200还包括:
建立单元 240, 在该标识信息与该服务器的关系表项中, 建立该第一标 识信息与该第一服务器的关系表项。
可选地, 该接收单元 210, 还用于接收该用户设备发送的第二消息, 该 第二消息携带该第一标识信息;
该建立单元 240, 具体用于:
在该接收单元接收到该用户设备发送的携带该第一标识信息的第二消 息之后, 且在该标识信息与服务器的关系表项中, 不存在该第一标识信息对 应的服务器时, 从服务器集群或数据中心中选择该第一服务器;
在该标识信息与该服务器的关系表项中, 建立该第一标识信息与该第一 服务器的关系表项。
可选地, 如图 5所示, 该负载均衡设备 200还包括:
删除单元 450, 用于删除该第一标识信息与该第一服务器的关系表项。 因此, 本发明实施例的负载均衡设备, 通过接收用户设备发送的第一消 息, 该第一消息携带第一标识信息, 该第一标识信息包括用户设备的接口标 识, 根据标识信息与服务器的关系表项, 确定与该第一标识信息对应的第一 服务器, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该第 一消息, 由于对于同一用户设备而言, 接口标识一般不变, 从而, 可以保持 用户设备会话的连续性。 进一步地, 标识信息还包括流标签, 通过采用接口 标识和流标签, 可以进一步保证服务器选择的准确性, 并且由于会话不同, 流标签一般不同, 还可以增加服务器选择的灵活性。 并且由于接口标识和流 标签都在 IPv6数据包的固定包头中, 不论只采用接口标识, 还是同时采用 流标签和接口标识, 均可以减小解析开销, 并能迅速查找到对应的服务器。
图 6是根据本发明实施例的负载均衡设备 300的示意性框图。如图 6所 示, 该负载均衡设备 300包括:
接收器 310, 用于接收用户设备发送的第一消息, 该第一消息携带第一 标识信息, 该第一标识信息包括用户设备的接口标识;
处理器 320, 用于根据标识信息与服务器的关系表项, 确定与该第一标 识信息对应的第一服务器;
发送器 330, 用于将该第一消息转发至该第一服务器, 以便于该第一服 务器处理该第一消息。
因此, 本发明实施例的负载均衡设备, 通过接收用户设备发送的第一消 息, 该第一消息携带第一标识信息, 该第一标识信息包括用户设备的接口标 识, 根据标识信息与服务器的关系表项, 确定与该第一标识信息对应的第一 服务器, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该第 一消息, 由于对于同一用户设备而言, 接口标识一般不变, 从而, 可以保持 用户设备会话的连续性。 并且, 由于接口标识在 IPv6数据包的固定包头中 的源 IPv6地址中, 则获取接口标识的解析开销较小。
可选地, 该第一标识信息还包括流标签。
可选地, 该处理器 320还用于:
在该标识信息与该服务器的关系表项中, 建立该第一标识信息与该第一 服务器的关系表项。
可选地, 该接收器 310, 还用于接收该用户设备发送的第二消息, 该第 二消息携带该第一标识信息;
该处理器 320具体用于:
在该接收单元接收到该用户设备发送的携带该第一标识信息的第二消 息之后, 且在该标识信息与服务器的关系表项中, 不存在该第一标识信息对 应的服务器时, 从服务器集群或数据中心中选择该第一服务器;
在该标识信息与该服务器的关系表项中,建立该第一标识信息与该第一 服务器的关系表项。
可选地, 该处理器 320还用于:
删除该第一标识信息与该第一服务器的关系表项。
因此, 本发明实施例的负载均衡设备, 通过接收用户设备发送的第一消 息, 该第一消息携带第一标识信息, 该第一标识信息包括用户设备的接口标 识, 根据标识信息与服务器的关系表项, 确定与该第一标识信息对应的第一 服务器, 将该第一消息转发至该第一服务器, 以便于该第一服务器处理该第 一消息, 由于对于同一用户设备而言, 接口标识一般不变, 从而, 可以保持 用户设备会话的连续性。 进一步地, 标识信息还包括流标签, 通过采用接口 标识和流标签, 可以进一步保证服务器选择的准确性, 并且由于会话不同, 流标签一般不同, 还可以增加服务器选择的灵活性。 并且由于接口标识和流 标签都在 IPv6数据包的固定包头中, 不论只采用接口标识, 还是同时采用 接口标识和流标签, 均可以减小解析开销, 并能迅速查找到对应的服务器。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 上述描 述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一 个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使 用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明 的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部 分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前 述的存储介质包括: U盘、移动硬盘、只读存储器( ROM, Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可 以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。

Claims

权利要求
1、 一种信息处理方法, 其特征在于, 包括:
接收用户设备发送的第一消息, 所述第一消息携带第一标识信息, 所述 第一标识信息包括用户设备的接口标识;
根据标识信息与服务器的关系表项,确定与所述第一标识信息对应的第 一服务器;
将所述第一消息转发至所述第一服务器, 以便于所述第一服务器处理所 述第一消息。
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一标识信息还包 括流标签。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 在所述接收用户设 备发送的第一消息之前, 所述方法还包括:
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
4、 根据权利要求 3所述的方法, 其特征在于, 所述建立所述第一标识 信息与所述第一服务器的关系表项, 包括:
在接收到所述用户设备发送的携带所述第一标识信息的第二消息之后, 且在所述标识信息与服务器的关系表项中, 不存在所述第一标识信息对应的 服务器时, 从服务器集群或数据中心中选择所述第一服务器;
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
5、 根据权利要 3或 4述的方法, 其特征在于, 所述方法还包括: 删除所述第一标识信息与所述第一服务器的关系表项。
6、 一种负载均衡设备, 其特征在于, 包括:
接收单元, 用于接收用户设备发送的第一消息, 所述第一消息携带第一 标识信息, 所述第一标识信息包括用户设备的接口标识;
确定单元, 用于根据标识信息与服务器的关系表项, 确定与所述第一标 识信息对应的第一服务器;
发送单元, 用于将所述第一消息转发至所述第一服务器, 以便于所述第 一服务器处理所述第一消息。
7、 根据权利要求 6所述的负载均衡设备, 其特征在于, 所述第一标识 信息还包括流标签。
8、 根据权利要求 6或 7所述的负载均衡设备, 其特征在于, 所述负载 均衡设备还包括:
建立单元, 在所述标识信息与所述服务器的关系表项中, 建立所述第一 标识信息与所述第一服务器的关系表项。
9、 根据权利要求 6所述的负载均衡设备, 其特征在于, 所述接收单元, 还用于接收所述用户设备发送的第二消息, 所述第二消息携带所述第一标识 信息;
所述建立单元, 具体用于:
在所述接收单元接收到所述用户设备发送的携带所述第一标识信息的 第二消息之后, 且在所述标识信息与服务器的关系表项中, 不存在所述第一 标识信息对应的服务器时, 从服务器集群或数据中心中选择所述第一服务 器;
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
10、 根据权利要 8或 9所述的负载均衡设备, 其特征在于, 所述负载均 衡设备还包括:
删除单元, 用于删除所述第一标识信息与所述第一服务器的关系表项。
11、 一种负载均衡设备, 其特征在于, 包括:
接收器, 用于接收用户设备发送的第一消息, 所述第一消息携带第一标 识信息, 所述第一标识信息包括用户设备的接口标识;
处理器, 用于根据标识信息与服务器的关系表项, 确定与所述第一标识 信息对应的第一服务器;
发送器, 用于将所述第一消息转发至所述第一服务器, 以便于所述第一 服务器处理所述第一消息。
12、 根据权利要求 11所述的负载均衡设备, 其特征在于, 所述第一标 识信息还包括流标签。
13、 根据权利要求 11或 12所述的负载均衡设备, 其特征在于, 所述处 理器还用于: 在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
14、 根据权利要求 11所述的负载均衡设备, 其特征在于, 所述接收器, 还用于接收所述用户设备发送的第二消息, 所述第二消息携带所述第一标识 信息;
所述处理器具体用于:
在所述接收单元接收到所述用户设备发送的携带所述第一标识信息的 第二消息之后, 且在所述标识信息与服务器的关系表项中, 不存在所述第一 标识信息对应的服务器时, 从服务器集群或数据中心中选择所述第一服务 器;
在所述标识信息与所述服务器的关系表项中,建立所述第一标识信息与 所述第一服务器的关系表项。
15、 根据权利要 13或 14所述的负载均衡设备, 其特征在于, 所述处理 器还用于:
删除所述第一标识信息与所述第一服务器的关系表项。
PCT/CN2012/081418 2012-09-14 2012-09-14 信息处理方法和负载均衡设备 WO2014040279A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280001554.2A CN103004172B (zh) 2012-09-14 2012-09-14 信息处理方法和负载均衡设备
PCT/CN2012/081418 WO2014040279A1 (zh) 2012-09-14 2012-09-14 信息处理方法和负载均衡设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/081418 WO2014040279A1 (zh) 2012-09-14 2012-09-14 信息处理方法和负载均衡设备

Publications (1)

Publication Number Publication Date
WO2014040279A1 true WO2014040279A1 (zh) 2014-03-20

Family

ID=47930703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/081418 WO2014040279A1 (zh) 2012-09-14 2012-09-14 信息处理方法和负载均衡设备

Country Status (2)

Country Link
CN (1) CN103004172B (zh)
WO (1) WO2014040279A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577328B (zh) * 2014-10-09 2019-06-11 电信科学技术研究院 一种信道状态信息反馈方法及终端
US9716653B2 (en) * 2014-11-18 2017-07-25 Hauwei Technologies Co., Ltd. System and method for flow-based addressing in a mobile environment
BR112018016654A2 (pt) * 2016-02-16 2018-12-26 Huawei Tech Co Ltd sistema e método para comunicações com base em protocolo de transmissão de controle de corrente sctp, e aparelho
ES2790388T4 (es) * 2016-06-28 2022-04-19 Huawei Tech Co Ltd Método, aparato y sistema de migración de carga
CN109101337A (zh) * 2018-07-23 2018-12-28 赛尔网络有限公司 一种基于HAProxy的服务器节点升级方法及电子设备
CN110602182B (zh) * 2019-08-27 2022-02-01 达闼机器人有限公司 服务调度方法、装置、系统、全局负载均衡器及客户端
CN113453025B (zh) * 2020-03-26 2023-02-28 杭州海康威视系统技术有限公司 数据获取方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094237A (zh) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 一种ip多媒体子系统中网元间的负荷分担方法
CN101207561A (zh) * 2006-12-22 2008-06-25 华为技术有限公司 集群管理器、集群系统、以及集群管理方法
US20090287761A1 (en) * 2008-05-13 2009-11-19 International Business Machines Corporation Cached message distribution via http redirects
CN101783771A (zh) * 2010-03-24 2010-07-21 杭州华三通信技术有限公司 一种实现负载均衡持续性的方法和设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITTO20060149A1 (it) * 2006-03-01 2007-09-02 Cisco Tech Inc Tecnica per l'instradamento ottimizzato di flussi di dati su una dorsale ip in una rete di computer.
CN100396016C (zh) * 2006-03-01 2008-06-18 华为技术有限公司 在内容分发网络中保障服务水平的系统和方法
CN101237394B (zh) * 2007-01-31 2012-11-21 华为技术有限公司 锚点设备、处理多接口移动台报文的方法及系统
CN101098305B (zh) * 2007-03-28 2010-06-16 秦勇 一种宽带网络接入及流量管理调度系统
CN101110745A (zh) * 2007-08-14 2008-01-23 华为技术有限公司 衔接二层网络和三层网络的方法、装置和系统
US20090259736A1 (en) * 2008-04-15 2009-10-15 Juniper Networks, Inc. Label-based target host configuration for a server load balancer
CN101729365B (zh) * 2008-10-27 2012-06-27 华为技术有限公司 路径建立方法、承载网路由器和网络系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207561A (zh) * 2006-12-22 2008-06-25 华为技术有限公司 集群管理器、集群系统、以及集群管理方法
CN101094237A (zh) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 一种ip多媒体子系统中网元间的负荷分担方法
US20090287761A1 (en) * 2008-05-13 2009-11-19 International Business Machines Corporation Cached message distribution via http redirects
CN101783771A (zh) * 2010-03-24 2010-07-21 杭州华三通信技术有限公司 一种实现负载均衡持续性的方法和设备

Also Published As

Publication number Publication date
CN103004172A (zh) 2013-03-27
CN103004172B (zh) 2015-07-08

Similar Documents

Publication Publication Date Title
CN109842906B (zh) 一种通信的方法、装置及系统
WO2014040279A1 (zh) 信息处理方法和负载均衡设备
US8509244B2 (en) Method and apparatus for providing host node awareness for multiple NAT64 environments
US9288708B2 (en) System and method for delivering push message
KR102056416B1 (ko) 무선 네트워크에서 디바이스들 간의 터널 다이렉트 링크 설정(tdls) 세션을 확립하는 방법들 및 장치들
US9883000B2 (en) Server-push service in heterogeneous network environment
US11451510B2 (en) Method and apparatus for processing service request
US20210075868A1 (en) Method, device and system for identifying application identifier
US9906491B2 (en) Improving transmission efficiency of data frames by using shorter addresses in the frame header
WO2014019450A1 (zh) 支持内容网络中订阅内容的方法、设备及系统
US9603082B2 (en) Feedback method for active scanning of user terminal, and access point
WO2017143859A1 (zh) 数据传输方法、网络设备以及终端
WO2021008591A1 (zh) 数据传输方法、装置及系统
WO2015110080A1 (zh) 一种数据处理的方法、装置及系统
WO2016197689A1 (zh) 处理报文的方法、装置和系统
WO2013120402A1 (zh) 处理地址冲突的方法和装置
WO2015103788A1 (zh) 传输参考信号的方法和用户设备
CN113692753A (zh) 网络装置和在网络装置中实现的搜索边缘服务的方法
JP5941887B2 (ja) エッジルータ切替方法及びシステム及びエッジルータ及び冗長管理装置
CN114051013A (zh) 一种通信数据传输方法及装置
WO2015070377A1 (zh) 一种多方通话方法及装置
CN107634896B (zh) 数据传输方法及装置
JP2013126219A (ja) 転送サーバおよび転送プログラム
WO2015013883A1 (zh) 一种数据传输方法及设备
WO2015100662A1 (zh) 一种数据处理的方法、装置及系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280001554.2

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12884456

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12884456

Country of ref document: EP

Kind code of ref document: A1