CN111222068A - Private network IP conversion method and device - Google Patents

Private network IP conversion method and device Download PDF

Info

Publication number
CN111222068A
CN111222068A CN201911205536.6A CN201911205536A CN111222068A CN 111222068 A CN111222068 A CN 111222068A CN 201911205536 A CN201911205536 A CN 201911205536A CN 111222068 A CN111222068 A CN 111222068A
Authority
CN
China
Prior art keywords
address
domain name
service system
gateway
receiving
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911205536.6A
Other languages
Chinese (zh)
Inventor
陈本峰
杨鑫冰
白东鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Clouddeep Internet Beijing Technology Co ltd
Original Assignee
Clouddeep Internet Beijing Technology Co ltd
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 Clouddeep Internet Beijing Technology Co ltd filed Critical Clouddeep Internet Beijing Technology Co ltd
Priority to CN201911205536.6A priority Critical patent/CN111222068A/en
Publication of CN111222068A publication Critical patent/CN111222068A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2557Translation policies or rules

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of networks, in particular to a private network IP conversion method and a private network IP conversion device. An IP address translation method is applied to a browser, and the method comprises the following steps: displaying a page of a current business system; determining the address or domain name of a service system to be accessed in the page; receiving an action of clicking the address or the domain name of the service system; converting the address or the domain name of the service system into an address or a domain name in a preset format; and resolving the address or the domain name in the preset format to a gateway so that the gateway accesses the service system according to the address or the domain name. The problem that the browser of the client cannot access the internal link is solved.

Description

Private network IP conversion method and device
Technical Field
The embodiment of the invention relates to the technical field of networks, in particular to a private network IP conversion method and a private network IP conversion device.
Background
Business systems in enterprises are many, including OA business systems, ERP business systems and CRM business systems; there are various other professional business systems, etc.; the phenomenon of internal link is inevitably stored, for example, a user in mobile office uses an OA business system inside a company through an external network of the company; a link address is arranged in a page of the OA business system; the link address is a link address of the ERP business system, and if the user clicks the link address, the access is failed.
Disclosure of Invention
Therefore, the embodiment of the invention provides a private network IP conversion method and a private network IP conversion device, which are used for solving the problem that a client cannot access a service system by directly clicking an internal link address on a page.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
according to a first aspect of an embodiment of the present invention, a private network IP conversion method is applied to a browser, and the method includes:
determining the address or domain name of a service system to be accessed in the current page;
when receiving an action of clicking the address or the domain name of the service system, converting the address or the domain name of the service system into an address or a domain name in a preset format;
and sending the address or the domain name of the preset format to a gateway.
Further, still include: receiving an internal link table issued by a control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
Further, after sending the address or the domain name in the predetermined format to the gateway, the method includes: and receiving data obtained from the service system and sent by the gateway.
According to a second aspect of the embodiments of the present invention, an IP address translation apparatus applied to a browser, the apparatus includes:
the determining module is used for determining the address or the domain name of the service system to be accessed in the current page;
the conversion module is used for converting the address or the domain name of the service system into the address or the domain name in a preset format when receiving the action of clicking the address or the domain name of the service system;
and the sending module is used for sending the address or the domain name in the preset format to the gateway.
The system further comprises a receiving module for receiving the internal link table issued by the control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
Further, the receiving module is further configured to receive data obtained from the service system and sent by the gateway.
According to a third aspect of an embodiment of the present invention, an IP address translation apparatus includes: at least one processor and at least one memory;
the memory is to store one or more program instructions;
the processor, configured to execute one or more program instructions, is configured to perform the following steps:
determining the address or domain name of a service system to be accessed in the current page;
when receiving an action of clicking the address or the domain name of the service system, converting the address or the domain name of the service system into an address or a domain name in a preset format;
and sending the address or the domain name of the preset format to a gateway.
The processor is also used for receiving an internal link table issued by the control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
The processor is further configured to, after sending the address or the domain name in the predetermined format to the gateway, include: and receiving data obtained from the service system and sent by the gateway.
According to a fourth aspect of embodiments herein, a computer readable storage medium having one or more program instructions embodied therein for being executed by a method according to any one of the preceding claims.
The embodiment of the invention has the following advantages: converting an address or a domain name of a service system to be accessed into an address or a domain name of a predetermined format in a page; thereby accessing the business system using the format-converted domain name or address. The method and the device solve the problem that the client cannot access the service system by directly clicking the internal link address on the page, facilitate the operation of the user and improve the convenience of the user for accessing the service system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so that those skilled in the art can understand and read the present invention, and do not limit the conditions for implementing the present invention, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the functions and purposes of the present invention, should still fall within the scope of the present invention.
Fig. 1 is a flowchart of a private network IP conversion method according to an embodiment of the present invention;
fig. 2 is a schematic view of a scenario of absolute link of an IP address according to an embodiment of the present invention;
fig. 3 is a schematic diagram of absolute link of a domain name port according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating that both a domain name port absolute link and an IP address absolute link exist according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a private network IP conversion apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a private network IP conversion device according to an embodiment of the present invention.
In the figure: 51-a determination module; 52-a conversion module; 53-a sending module; 61-a processor; 62-memory.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application provides a private network IP conversion method, which refers to a flow chart of the private network IP conversion method shown in figure 1; applied to a browser, the method comprising:
step S101, determining the address or domain name of a service system to be accessed in a current page;
wherein, the address or domain name of the service system is the internal absolute link of the company enterprise;
the internal absolute link comprises two types, one type is an IP absolute link which is a private network address; one is domain name absolute linking. When the internal absolute link exists in the page displayed by the browser of the client, in the prior art, the user fails to access the page after directly clicking the link. Causing great inconvenience to the user.
Step S102, when receiving the action of clicking the address or the domain name of the service system, converting the address or the domain name of the service system into the address or the domain name with a preset format;
the user clicks on the address or domain name of the business system, which triggers the action of the conversion.
Step S103, sending the address or the domain name with the preset format to the gateway.
And step S104, the gateway carries out reverse analysis according to a preset format to obtain the address of the service system, and accesses the service system according to the address of the service system.
After format conversion is completed, automatically sending the address or the domain name of the predetermined format converted by the gateway; after receiving the address or the domain name in the preset format, the gateway performs reverse analysis to obtain the address of the service system, and accesses the service system according to the address of the service system; the method changes the client access service system into the gateway access service system, and after the gateway accesses, the data is sent to the client again, thereby completing the access of the client to the service system. From the experience perspective of the user, the user only clicks the link address without excessive operation, and the convenience of the user is improved. The experience degree of the user is improved.
Referring to fig. 2, a schematic diagram of a scenario of absolute linking of IP addresses is shown; in the current OA system web page, there is an IP address absolute link address: http://192.168.1.1: 8080/oa.jpg; in the prior art, if a user clicks the address, the access is unsuccessful; in the application, after the user clicks the address, the address is automatically converted into a format:
http://redcore_gw_http_192_168_1_1:8080.redcore.cn/oa.jpg;
after the conversion is finished, an address resolution request is automatically sent to the gateway; the gateway accesses the business system, and after the gateway accesses the OA business system, the accessed page is sent to a browser of the client, so that the client completes the access to the business system.
A schematic diagram of a domain name port absolute link described with reference to fig. 3; in the page of the current OA service system of the client, the domain name port absolute link address exists:
http:// erp.redcore.cn 8080/oa.jpg; when the client clicks the address, format conversion is automatically carried out, and the converted link address is as follows:
http://redcore_gw_http_erp_redcore_cn_8080.redcore.cn/oa.jpg;
after the conversion is completed, the browser analyzes the link address to the gateway, and the gateway accesses the ERP service system and sends the data to the client to complete the access.
Referring to fig. 4, a schematic diagram of the existence of both domain name port absolute link and IP address absolute link is shown; two absolute links exist in the display page of the current business system OA:
http://erp.redcore.cn:8080/oa.jpg;
http://192.168.1.1:8080/source.jpg;
after the two addresses are respectively clicked, format conversion is automatically carried out:
http://redcore_gw_http_erp_redcore_cn_8080.redcore.cn/oa.jgp;
http://redcore_gw_http_192_168_1_1_8080.redcore.cn/soure.jpg;
then, the gateway is analyzed to access the service system and is sent to the client side to finish the access.
In one possible embodiment, the method further comprises: receiving an internal link table issued by a control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
Because there may be multiple gateways, there may be multiple clients, and the gateways that may be served may be different for each client; or different service systems in each client are different, the corresponding gateways may also be different, for example, the access of the OA service system is taken charge of by the gateway 1; the access of the ERP service system is taken charge of by the gateway 2; so the address to the gateway is needed; the client determines which gateway to send the DNS resolution to based on the address of the gateway. And the gateway accesses the service system according to the address of the service system. The client judges whether the domain name displayed in the webpage is the domain name of the service system in the private network or not according to the stored domain name of the service system, and if the domain name displayed in the webpage is www.baidu.com; matching domain names without hundredths in the domain names stored in the internal link table; determining that the hundred-degree domain name is directly accessed without form conversion; if there is a domain name www.oa.com in the page; through comparison, the domain name is found to be the domain name of the OA business system; it is determined to perform format conversion.
Corresponding to the above method, the present application also provides a private network IP conversion device, see the schematic structural diagram of a private network IP conversion device shown in fig. 5; applied to a browser, the device comprises:
a determining module 51, configured to determine, in a current page, an address or a domain name of a service system to be accessed;
a conversion module 52, configured to, when receiving an action of clicking an address or a domain name of the business system, convert the address or the domain name of the business system into an address or a domain name in a predetermined format;
and a sending module 53, configured to send the address or the domain name in the predetermined format to the gateway.
In an embodiment, the system further comprises a receiving module, configured to receive an internal link table issued by the management and control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
In one embodiment, the receiving module is further configured to receive data obtained from the service system and sent by a gateway.
According to a third aspect of the embodiments of the present invention, the present application further provides a private network IP conversion device, refer to a schematic structural diagram of a private network IP conversion device shown in fig. 6; the apparatus comprises: at least one processor 61 and at least one memory 62;
the memory 62 is used to store one or more program instructions;
the processor 61 is configured to execute one or more program instructions to perform the following steps:
determining the address or domain name of a service system to be accessed in the current page;
when receiving an action of clicking the address or the domain name of the service system, converting the address or the domain name of the service system into an address or a domain name in a preset format;
and sending the address or the domain name of the preset format to a gateway.
The processor 61 is further configured to receive an internal link table issued by the management and control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
The processor 61 is further configured to, after sending the address or the domain name in the predetermined format to the gateway, include: and receiving data obtained from the service system and sent by the gateway.
According to a fourth aspect of embodiments herein, a computer readable storage medium having one or more program instructions embodied therein for being executed by a method according to any one of the preceding claims.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capability. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (8)

1. A private network IP conversion method is applied to a browser, and comprises the following steps:
determining the address or domain name of a service system to be accessed in the current page;
when receiving an action of clicking the address or the domain name of the service system, converting the address or the domain name of the service system into an address or a domain name in a preset format;
and sending the address or the domain name of the preset format to a gateway.
2. The method of claim 1, wherein the method further comprises:
receiving an internal link table issued by a control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
3. The method of claim 1, wherein sending the address or domain name in the predetermined format to a gateway comprises: and receiving data obtained from the service system and sent by the gateway.
4. A private network IP address apparatus, applied to a browser, the apparatus comprising:
the determining module is used for determining the address or the domain name of the service system to be accessed in the current page;
the conversion module is used for converting the address or the domain name of the service system into the address or the domain name in a preset format when receiving the action of clicking the address or the domain name of the service system;
and the sending module is used for sending the address or the domain name in the preset format to the gateway.
5. The apparatus of claim 4, further comprising a receiving module, configured to receive an internal link table issued by the management and control platform;
wherein the internal link table comprises: domain name of service system, address of service system, gateway address.
6. The apparatus of claim 4, further comprising a receiving module for receiving data obtained from the service system sent by a gateway.
7. An IP address translation device, comprising: at least one processor and at least one memory;
the memory is to store one or more program instructions;
the processor, configured to execute one or more program instructions to perform the method of any of claims 1-3.
8. A computer-readable storage medium having one or more program instructions embodied therein for being executed to perform the method of any one of claims 1-3.
CN201911205536.6A 2019-11-29 2019-11-29 Private network IP conversion method and device Pending CN111222068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911205536.6A CN111222068A (en) 2019-11-29 2019-11-29 Private network IP conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911205536.6A CN111222068A (en) 2019-11-29 2019-11-29 Private network IP conversion method and device

Publications (1)

Publication Number Publication Date
CN111222068A true CN111222068A (en) 2020-06-02

Family

ID=70827667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911205536.6A Pending CN111222068A (en) 2019-11-29 2019-11-29 Private network IP conversion method and device

Country Status (1)

Country Link
CN (1) CN111222068A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901163A (en) * 2020-07-16 2020-11-06 江苏神彩科技股份有限公司 Method for accessing system in different network segments
CN113377678A (en) * 2021-07-13 2021-09-10 挂号网(杭州)科技有限公司 Test environment switching method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5295134A (en) * 1991-03-19 1994-03-15 Fujitsu Limited In-service activator for a broadband exchanger
CN109451097A (en) * 2019-01-02 2019-03-08 北京宏图佳都通信设备有限公司 IPv4/IPv6 address conversion system
CN110276028A (en) * 2019-06-25 2019-09-24 云深互联(北京)科技有限公司 For the treating method and apparatus of the inner link functional requirement of operation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5295134A (en) * 1991-03-19 1994-03-15 Fujitsu Limited In-service activator for a broadband exchanger
CN109451097A (en) * 2019-01-02 2019-03-08 北京宏图佳都通信设备有限公司 IPv4/IPv6 address conversion system
CN110276028A (en) * 2019-06-25 2019-09-24 云深互联(北京)科技有限公司 For the treating method and apparatus of the inner link functional requirement of operation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈本峰 等: "业务应用可信可控访问解决方案", 《网络空间安全》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901163A (en) * 2020-07-16 2020-11-06 江苏神彩科技股份有限公司 Method for accessing system in different network segments
CN113377678A (en) * 2021-07-13 2021-09-10 挂号网(杭州)科技有限公司 Test environment switching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2020140433A1 (en) Ipv4/ipv6 address translation system
CN110830458B (en) Domain name access method, system, device and computer readable storage medium
US9444759B2 (en) Service provider registration by a content broker
US20180205697A1 (en) Managing content delivery network service providers by a content broker
US8060616B1 (en) Managing CDN registration by a storage provider
WO2021120969A1 (en) Domain name resolution method, domain name resolution server, and terminal device
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
US9276901B2 (en) Method, system, and apparatus for transitioning from IPv4 to IPv6
CN101355565B (en) Method and server for providing page service for various browsers
US11218437B2 (en) Method for network traffic forwarding, request sending, and communication acceleration, forwarding server and node server
US20060039348A1 (en) System, device and method for data transfer
CN107613037B (en) Domain name redirection method and system
CN113067909B (en) Edge node addressing method, device, equipment and storage medium
CN110868361A (en) Gateway load balancing method, device and equipment
CN108055168B (en) Http protocol debugging system, device and method
CN111200633A (en) Indirect access method and system for business system
CN111222068A (en) Private network IP conversion method and device
CN108769189B (en) Cross-network-domain resource access method and device
CN109327559B (en) Domain name resolution method and device based on hybrid cloud platform
CN107872548A (en) Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN104079682B (en) A kind of address conversion method and device based on domain name system DNS
CN103581361A (en) Domain name resolution proxy method, device and system
CN103973819A (en) Method, related device and system for responding to request for community domain name
CN110276028B (en) Processing method and device for internal link function requirements of business system
CN110677512B (en) Address resolution method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602