Method for assigning resource IDs and ID segments

A technology for allocating resources and identifying segments, which is applied in the field of Internet communication and can solve the problem that the global uniqueness of resource IDs cannot be guaranteed.

Active Publication Date: 2016-04-06
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When multiple users request new resources from the distributed system at the same time, the distributed system may assign the same resource ID to each resource requested by each user according to the current time, so the allocated resource ID cannot be guaranteed to be globally unique

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
  • Method for assigning resource IDs and ID segments
  • Method for assigning resource IDs and ID segments
  • Method for assigning resource IDs and ID segments

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] Such as figure 1 As shown, the embodiment of the present invention provides a method for allocating resource identifiers, including:

[0049] Step 101: Receive a new resource request message, the new resource request message carries the resource type of the resource requested by the user;

[0050] Step 102: Establish a resource corresponding to the resource type, assign an unallocated resource ID to the resource according to the stored correspondence between the resource type and the ID segment and the resource type, and the ID segment includes continuous unallocated resource IDs;

[0051] Step 103: Send a new resource response message, where the new resource response message carries the resource ID allocated for the resource.

[0052] In the embodiment of the present invention, a new resource request message carrying a resource type is received, a resource corresponding to the resource type is established, and an unallocated resource ID is assigned to the resource acc...

Embodiment 2

[0054] An embodiment of the present invention provides a method for allocating resource identifiers. This embodiment applies to figure 2 In the network architecture shown, the user sends a new resource request message to the distributed system to request the distributed system to create resources, and the new resource request message is routed to an application server in the distributed system, and the application server builds the resource requested by the user. resources, and use the method provided by this implementation to assign resource IDs to the established resources, see image 3 , the method includes:

[0055] Step 201: the application server receives a new resource request message sent by the user, and the new resource request message carries the resource type of the resource requested by the user;

[0056] Among them, see figure 2 , the distributed system includes one or more application servers and an identification segment allocation server; each application...

Embodiment 3

[0099] Such as Figure 4 As shown, the embodiment of the present invention provides a method for allocating an identification segment corresponding to a resource type, including:

[0100] Step 301: receiving an ID allocation request message sent by an application server, the ID allocation request message carrying a resource type;

[0101] Step 302: According to the corresponding relationship between the stored resource type and the allocated maximum resource ID, assign an ID segment to the resource type, and the ID segment includes a number of consecutive preset resource IDs;

[0102] Step 303: Send an ID allocation response message to the application server, where the ID allocation response message carries the allocated ID segment.

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 method for allocating resource identification and an identification section, and belongs to the field of internet communication. The method for allocating the resource identification comprises the steps of receiving new resource request information, wherein the new resource request information contains a resource type of a resource built by a user request, building a resource corresponding to the resource type, allocating unallocated resource identification (ID) for the resource according to a corresponding relation between the stored resource type and an ID section and the resource type, wherein the ID section comprises continuous unallocated resource ID, and sending new resource response information, wherein the new resource response information contains the resource ID of resource allocation. The method for allocating resource identification and the identification section are capable of enabling the allocated resource to be global and unique.

Description

technical field [0001] The invention relates to the field of Internet communication, in particular to a method for allocating resource identifiers and identifier segments. Background technique [0002] With the continuous expansion of network scale, distributed systems are widely used. A distributed system presents a unified whole to the user. When the user requests a new resource from the distributed system, the distributed system creates the resource requested by the user and assigns a resource ID (Identity) to the resource in order to identify the resource. manage. [0003] At present, there is a resource ID allocation method in the existing technology. The distributed system can use this method to allocate resource IDs for newly created resources. Specifically: when a user requests a new resource from the distributed system, create the resource requested by the user and obtain The current time, according to the obtained current time, obtains an ID through a hash operat...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
Inventor 周涛董锡军孟金锋毛吉振黄立柯石航杰刘毅王磊古振兴周斌王圣元
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products