The invention discloses a grouping method of
Internet protocol (IP) addresses or
cell phone numbers and a query method of an attribution place. The grouping method comprises the steps of grouping of the IP addresses or the
cell phone numbers first according to the attribution place, and then converting the IP addresses or the
cell phone numbers in each group into integer numbers and storing the integer numbers into a digit group after the integer numbers are sequenced; and grouping of the IP addresses or the cell phone numbers to generate a digit group
list according to the grouping method of the IP addresses or the cell phone numbers. The query method comprises the steps of first converting the IP addresses or the cell phone numbers which are requested to be queried into the integer numbers in a corresponding mode, and afterwards, querying the positions of the integer numbers which are matched with the IP addresses or the cell phone numbers in the digit group
list through the dichotomy, and finally, returning corresponding attribution place information. By means of the grouping method of the IP addresses or the cell phone numbers and the query method of the attribution place,
system consumption can be lowered, a high concurrent
processing capacity is achieved, the query speed is higher than query speed of a
database query and an
internal memory query, and initialization time which is shorter than time of a query of a corresponding relation of
internal memory distributed storage is achieved.