Supercharge Your Innovation With Domain-Expert AI Agents!

Routing method and device

A routing and balancing algorithm technology, applied in the field of communication, can solve the problems of unbalanced load, poor service reliability, low processing efficiency, etc., to achieve the effect of realizing load, improving processing efficiency and service reliability

Active Publication Date: 2019-09-06
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a routing method and device, which can solve the problem of unbalanced load of related technologies, resulting in low overall processing efficiency and poor service reliability.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Routing method and device
  • Routing method and device
  • Routing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0028] figure 1 is a schematic diagram of the implementation environment of a routing method provided by an embodiment of the present invention, see figure 1 , the implementation environment may include: at least one terminal 101 , at least one computer device 102 and at least one server 103 .

[0029] Wherein, the terminal 101 can be a mobile phone, a tablet computer, a PC (Personal), etc., and the user can operate on the terminal to trigger the terminal 101 as a requester to send a service request to the computer device 102, and the computer device 102 will distribute the service request to corresponding server.

[0030] The computer device 102 may be an upper-layer server or other devices for evenly distributing service requests t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a routing method and device, and belongs to the technical field of communication. The method comprises the following steps: when a service request of a terminal is received, obtaining a first key Key value corresponding to a user identifier according to the user identifier carried in the service request and a preset equalization algorithm; obtaining an IP address corresponding to the first Key value from IP addresses of a plurality of servers of a server cluster according to the first Key value; and taking the IP address corresponding to the first Key value as a destination IP address and sending the destination IP address to the terminal. According to the invention, the user identifier carried in the service request is allocated by using the preset equalization algorithm; the obtained Key value is random, the probabilities of the obtained key values are the same, and each key value corresponds to the IP address of one server, so that the probability that the IPaddresses of the servers are mapped is average, the request quantity of the servers can be balanced, the load balance is realized, and the overall processing efficiency and the service reliability are improved.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a routing method and device. Background technique [0002] With the development of the Internet and the popularization of terminals, more and more users use terminals to access the Internet. The service request initiated by the user on the terminal will be assigned to the corresponding lower server for processing through the upper server. [0003] At present, when the upper-layer server receives a service request from a terminal, the upper-layer server can obtain the user identification (Identification, ID) carried in the service request, and then calculate the corresponding Key (key) for the user ID through a consistent hash algorithm. value, and then according to the Key value and the mapping relationship between the Key value and the IP address of the lower-level server, obtain the IP (Internet Protocol, network protocol) address of the lower-level server corre...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08H04L12/743
CPCH04L45/7453H04L67/1023
Inventor 许沛豪廖理刘远宏
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More