Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Encoding and decoding method and system for IP national mapping information

A technology for mapping information and national information, applied in the field of encoding and decoding methods and systems for IP country mapping information, can solve the problems of occupying more memory, large quantity, and high cost of offline IP geolocation services, achieving a high degree of automation and high efficiency , the effect of improving the download speed

Active Publication Date: 2022-05-13
深圳市小溪流科技有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] This application provides a method and system for encoding and decoding IP country mapping information, which is used to solve the offline IP geolocation database in the prior art. Due to the large number, downloading to the local generally takes up a lot of memory, resulting in offline IP Technical issues with high cost of geolocation services

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
  • Encoding and decoding method and system for IP national mapping information
  • Encoding and decoding method and system for IP national mapping information
  • Encoding and decoding method and system for IP national mapping information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Such as figure 1 As shown, the present application provides a method for encoding and decoding IP country mapping information, wherein the method includes:

[0030] S100: Obtain the first country information mapping table and the first IP country mapping information;

[0031] Specifically, the first country information mapping table refers to a mapping table containing a plurality of country information, which is recorded as: Country Table, and the mapping between country information is realized through the mapping table without mathematical calculation, which improves the data Processing speed, wherein, the country information is exemplarily such as: country name, country geographic location and other information. Further, such as Figure 5 As shown, multiple country information in the first country information mapping table are separated by line breaks, and each country information includes the ISO-3166-1 standard country code code, the country ISO-639 standard en E...

Embodiment 2

[0086] Based on the same inventive concept as the method for encoding and decoding IP country mapping information in the foregoing embodiments, such as Image 6 As shown, the present application provides a codec system for IP country mapping information, wherein the system includes:

[0087] A first obtaining unit 11, the first obtaining unit 11 is configured to obtain a first country information mapping table and a first IP country mapping information;

[0088] The second obtaining unit 12, the second obtaining unit 12 is configured to obtain a first IP segment node set and a first country name information set according to the first IP country mapping information, wherein the first IP segment node set Points correspond one-to-one to the first country name information;

[0089] A third obtaining unit 13, the third obtaining unit 13 is configured to sort the first IP segment nodes and obtain a first sorting result;

[0090] A first input unit 14, configured to sequentially in...

Embodiment 3

[0116] Based on the same inventive concept as the method for encoding and decoding IP country mapping information in the foregoing embodiments, the present application also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is processed When the device is executed, the method as in Embodiment 1 is realized.

[0117] Exemplary electronic device

[0118] Refer below Figure 7 To describe the electronic device of this application.

[0119]Based on the same inventive concept as the encoding and decoding method of IP country mapping information in the foregoing embodiments, the present application also provides an electronic device, including: a processor, the processor is coupled with a memory, and the memory is used to store A program, when the program is executed by the processor, causes the system to execute the steps of the method in the first embodiment.

[0120] The electronic device 300 includes: a processor 302 ,...

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 provides an IP country mapping information encoding and decoding method and system, and relates to the technical field of data compression, and the method comprises the steps: obtaining a first country information mapping table and first IP country mapping information; obtaining a first IP segment node set and a first country name information set according to the first IP country mapping information; sorting the first IP segment nodes to obtain a first sorting result, and sequentially inputting the first country name information set into a first country information mapping table to obtain a first index value set; traversing the first sorting result, and encoding the first IP segment node set according to a first preset encoding rule to obtain a first encoding result; according to the first index value set and the first coding result, a first storage file is generated, the first storage file comprises a national mapping information coding file, and the technical problem that the offline IP geographic positioning service cost is high is solved.

Description

technical field [0001] The present invention relates to the technical field related to data compression, in particular to an encoding and decoding method and system for IP country mapping information. Background technique [0002] With the rapid development of the Internet, geographic information positioning methods such as GPS positioning and IP positioning, in which, the general IP address contains the geographic location of the source of network information, so it can be determined by analyzing the IP address of the visitor who visits the webpage. Which country, province, city, community, etc., has the advantages of accurate positioning and is widely used. [0003] The IP data positioning service mainly provides IP geographic information query through the IP geographic positioning database. Because the offline database can guarantee the security of the IP positioning information and respond quickly, it is widely selected. [0004] However, in the process of realizing the...

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 Applications(China)
IPC IPC(8): G06F40/126G06F16/174G06F16/22G06F16/29
CPCG06F40/126G06F16/1744G06F16/2228G06F16/29
Inventor 李智汤平谢有胜
Owner 深圳市小溪流科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products