CN108124021B - Method, device and system for obtaining Internet Protocol (IP) address and accessing website - Google Patents

Method, device and system for obtaining Internet Protocol (IP) address and accessing website Download PDF

Info

Publication number
CN108124021B
CN108124021B CN201611063225.7A CN201611063225A CN108124021B CN 108124021 B CN108124021 B CN 108124021B CN 201611063225 A CN201611063225 A CN 201611063225A CN 108124021 B CN108124021 B CN 108124021B
Authority
CN
China
Prior art keywords
dialing
server
address
dial
virtual
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.)
Active
Application number
CN201611063225.7A
Other languages
Chinese (zh)
Other versions
CN108124021A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201611063225.7A priority Critical patent/CN108124021B/en
Publication of CN108124021A publication Critical patent/CN108124021A/en
Application granted granted Critical
Publication of CN108124021B publication Critical patent/CN108124021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method, a device and a system for obtaining an Internet Protocol (IP) address and accessing a website, which comprise the following steps: for a dialing server providing a plurality of virtual dialing ports, when a dialing request is received, determining at least one virtual dialing port for processing the dialing request; and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address. Because a plurality of virtual dialing ports are arranged in the dialing server, a plurality of virtual dialing lines can be provided, so that a plurality of IP addresses can be obtained after the dialing server initiates dialing operation, and the efficiency of obtaining the IP addresses is effectively improved; meanwhile, the number of available IP addresses acquired by the dialing server is large, so that a subsequent central server can acquire different IP addresses, the problem that access requests are not processed due to fixed IP addresses in the prior art is effectively solved, and the utilization rate of system resources is effectively improved.

Description

Method, device and system for obtaining Internet Protocol (IP) address and accessing website
Technical Field
The present application relates to the field of computer processing technologies, and in particular, to a method, an apparatus, and a system for acquiring an internet protocol IP address and accessing a website.
Background
IP (internet protocol) is a protocol for interconnecting networks, which may be referred to as internet protocol, and IP addresses are a uniform address format based on IP protocol. When the user equipment needs to access the network equipment, the IP address needs to be acquired firstly, and then the data connection is established between the acquired IP address and the network equipment, so that the purpose of accessing the Internet is achieved.
Then a method of acquiring an IP address by proxy is proposed in practical applications. Specifically, the proxy service system includes: an ADSL (Asymmetric Digital Subscriber Line) server cluster, a dynamic domain name resolution server and a central server.
Specifically, the ADSL server cluster includes a plurality of ADSL servers, each ADSL server is assigned a fixed address, and when the ADSL server obtains an IP address through ADSL dialing, a mapping relationship between the fixed address and the obtained IP address is established, and the mapping relationship is sent to the dynamic domain name resolution server.
When receiving a network access request sent by a user, a central server selects an ADSL server from an ADSL server cluster and sends an IP address acquisition request to a dynamic domain name resolution server, wherein the IP address acquisition request comprises a fixed address of the selected ADSL server; when receiving an IP address acquisition request, the dynamic domain name resolution server resolves to obtain an IP address corresponding to a fixed address according to the fixed address of the ADSL server contained in the IP address acquisition request, and sends one of the resolved IP addresses to the central server, so that the central server can access the Internet by using the IP address.
However, the ADSL server in the dial-up server cluster has a problem of low IP address acquisition efficiency when executing dial-up operation, and thus the utilization rate of proxy system resources is low.
Disclosure of Invention
The embodiment of the application provides a method, a device and a system for obtaining an Internet Protocol (IP) address and accessing a website, which are used for solving the problem that the efficiency of obtaining the IP address is lower when an ADSL server executes dialing operation in the prior art.
The embodiment of the application also provides an internet protocol IP address obtaining method, which is applied to a dialing server for providing a plurality of virtual dialing ports, and the method comprises the following steps:
when a dialing request is received, determining at least one virtual dialing port for processing the dialing request;
and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
The embodiment of the present application further provides a method for acquiring an IP address, including:
selecting at least one dial-up server from a set of available dial-up servers;
determining a fixed port number of the selected dial-up server;
and sending a dialing request to the dialing server according to the fixed port number of the dialing server, wherein the dialing request is used for indicating the dialing server to control at least one virtual dialing port to execute dialing operation according to the dialing request and acquire an IP address.
The embodiment of the present application further provides a website access method, including:
receiving a website access request, wherein the website access request comprises a target website to be accessed;
determining a dial server for proxy processing the website access request from an available dial server set, and selecting an available IP address from an IP address table corresponding to the dial server;
obtaining a fixed port number of the determined dialing server according to a mapping relation between the provided identification of the dialing server and the fixed port number;
sending the website access request to the dial-up server according to the fixed port number;
and instructing the dial-up server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address.
The embodiment of the present application further provides an internet protocol IP address obtaining device, which is applied to a dial server providing multiple virtual dial-up ports, where the obtaining device includes:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining at least one virtual dialing port for processing a dialing request when the dialing request is received;
and the acquisition unit is used for indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
An embodiment of the present application further provides an IP address obtaining device, including:
a selection unit that selects at least one dial server from a set of available dial servers;
a determination unit that determines the fixed port number of the selected dial-up server;
and the obtaining unit is used for sending a dialing request to the dialing server according to the fixed port number of the dialing server, wherein the dialing request is used for indicating the dialing server to control at least one virtual dialing port to execute dialing operation according to the dialing request and obtain an IP address.
An embodiment of the present application further provides a website access device, including:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a website access request which comprises a target website to be accessed;
the selection unit is used for determining a dialing server for proxy processing of the website access request from an available dialing server set and selecting an available IP address from an IP address table corresponding to the dialing server;
the determining unit is used for obtaining the fixed port number of the determined dial-up server according to the mapping relation between the provided identification of the dial-up server and the fixed port number;
a sending unit, configured to send the website access request to the dial-up server according to the fixed port number;
and the routing unit is used for indicating the dialing server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address.
An embodiment of the present application further provides an internet protocol IP address obtaining system, including: the method comprises the following steps: a dial-up server and a central server providing a plurality of virtual dial-up ports, wherein:
the central server selects at least one dial-up server from a set of available dial-up servers; determining a fixed port number of the selected dial-up server; sending a dialing request to the dialing server according to the fixed port number of the dialing server;
the dialing server receives a dialing request and determines at least one virtual dialing port for processing the dialing request; and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
in the embodiment of the application, for a dialing server providing a plurality of virtual dialing ports, when a dialing request is received, at least one virtual dialing port for processing the dialing request is determined; and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address. Because a plurality of virtual dialing ports are arranged in the dialing server, a plurality of virtual dialing lines can be provided, so that a plurality of IP addresses can be obtained after the dialing server initiates dialing operation, and the efficiency of obtaining the IP addresses is effectively improved; meanwhile, the number of available IP addresses acquired by the dialing server is large, so that a subsequent central server can acquire different IP addresses, the problem that access requests are not processed due to fixed IP addresses in the prior art is effectively solved, and the utilization rate of system resources is effectively improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a method for acquiring an IP address according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a dial server involved in an IP address obtaining method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for acquiring an IP address according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an IP address obtaining system according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of a website access method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an IP address obtaining apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an IP address obtaining apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a website access device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an internet protocol IP address obtaining system according to an embodiment of the present application.
Detailed Description
In order to achieve the purpose of the present application, embodiments of the present application provide a method, an apparatus, and a system for acquiring an internet protocol IP address and accessing a website. For a dialing server providing a plurality of virtual dialing ports, when a dialing request is received, determining at least one virtual dialing port for processing the dialing request; and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address. Because a plurality of virtual dialing ports are arranged in the dialing server, a plurality of virtual dialing lines can be provided, so that a plurality of IP addresses can be obtained after the dialing server initiates dialing operation, and the efficiency of obtaining the IP addresses is effectively improved; meanwhile, the number of available IP addresses acquired by the dialing server is large, so that a subsequent central server can acquire different IP addresses, the problem that access requests are not processed due to fixed IP addresses in the prior art is effectively solved, and the utilization rate of system resources is effectively improved.
It should be noted that the dial-up server described in the embodiment of the present application includes a plurality of virtual dial-up ports, and different virtual dial-up ports can establish different dial-up lines to respond to a dial-up request and obtain an IP address, thereby effectively improving the efficiency of obtaining the IP address by the existing dial-up server.
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. 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 application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example 1
Fig. 1 is a schematic flowchart of an IP address obtaining method according to an embodiment of the present application. The IP address acquisition method may be as follows. The execution subject of the embodiment of the present application may be a dial-up server (e.g., an ADSL server), or may be a network device for implementing a dial-up function, which is not limited herein.
Step 101: upon receiving a dialing request, at least one virtual dialing port for processing the dialing request is determined.
The dial server described in the embodiment of the present application is different from the dial server in the related art: in the embodiment of the present application, a plurality of virtual dial ports are arranged inside the dial server, and when the dial server receives a dial request, at least one virtual dial port may be triggered, or a plurality of virtual dial ports may be triggered to execute a dial operation.
Then when a dial request is received, it is further determined which virtual dial ports (at least one virtual dial port) to perform the dial operation.
Specifically, the working state of the controlled virtual dialing port is determined, wherein the working state comprises at least one of an idle state and a busy state;
and selecting the virtual dialing port with the working state being the idle state as the determined virtual dialing port for processing the dialing request.
Because each dial server is provided with a plurality of virtual dial ports, the number of the virtual ports responding to one dial request can be one or a plurality of, namely, one virtual dial port can respond to one dial request or a plurality of different virtual dial ports can respond to one dial request.
When the plurality of virtual dialing ports respond, the virtual dialing ports can be sequentially triggered to execute dialing operation according to the set dialing rule.
For example: assuming that the dialing rule is set to trigger one virtual dialing port every 30s, the dialing server triggers one virtual dialing port every 30s to execute dialing operation when receiving a dialing request. If the time of the received dialing request is T, triggering a virtual dialing port to execute a dialing operation at the time of T; and triggering one virtual dialing port to execute one dialing operation again at the moment of (T +30 s). It should be noted that the virtual dial ports at the interval of 30s may be the same virtual dial port, or may be different virtual dial ports, and this is not limited in detail here.
In addition, when a dialing request is received, the dialing server needs to further determine the current working state of each virtual dialing port, because the dialing request may have been received before the dialing request is received, then there will be some virtual dialing ports that are already performing dialing operations according to the dialing request that has been received before, that is, when the dialing request is received in step 101, some virtual dialing ports are in working states, and some virtual dialing ports are in idle states, so the dialing server may select the virtual dialing port that is in idle state as the determined virtual dialing port for processing the current receiving of the dialing request.
Optionally, when receiving the dialing request, the dialing server may select one virtual dialing port from the multiple virtual dialing ports according to a preset scheduling algorithm, as the determined virtual dialing port for processing the dialing request.
The scheduling algorithm described herein may be a Hash algorithm, or may be other algorithms, and is not limited in this respect.
Step 102: and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
In this embodiment of the present application, if the virtual dialing port for processing the dialing request is determined in step 101, a dialing instruction is sent to the determined virtual dialing port, so that the virtual dialing port executes a dialing operation according to the dialing request to obtain an IP address.
If the determined virtual dialing port is executing dialing operation, the dialing instruction sent to the virtual dialing port contains dialing time, namely when the dialing time is up, the virtual dialing port executes dialing operation according to the dialing request to acquire an IP address.
For example: the dialing server may calculate a dialing time (for example, 30s after the dialing operation is completed) for the virtual dialing port, and then the virtual dialing port first completes the executing dialing operation when receiving the dialing instruction, and executes the dialing operation according to the dialing request to obtain the IP address when the dialing time included in the dialing instruction arrives.
In another embodiment of the present application, after acquiring the IP address, the method further includes:
and storing the acquired IP address into an IP address set.
The IP address set comprises a mapping relation between the IP address and the obtained virtual dialing port number of the IP address, and/or the IP address set comprises the IP address, the obtained virtual dialing port number of the IP address and a mapping relation between the fixed port number of the dialing server.
Since the IP address acquired by the dial server when executing the dial operation may be the same as the IP address acquired before, when storing the acquired IP address in the IP address set, it is necessary to determine whether the IP address is the same as the IP address stored in the IP address set.
And if the IP address is different from the IP address stored in the IP address set, storing the obtained IP address into the IP address set.
And if the IP address is the same as the IP address stored in the IP address set, indicating the virtual dialing port to execute dialing operation again according to the dialing request and reacquiring the IP address.
It should be noted that the dialing request included in the "instructing the virtual dialing port to execute the dialing operation again according to the dialing request to reacquire the IP address" refers to the dialing request received in step 101, that is, once it is determined that the IP address acquired by the virtual dialing port is a duplicate IP address, the IP address acquired by the virtual dialing port may be notified to be duplicate, and at this time, the virtual dialing port may autonomously initiate the dialing operation to reacquire the IP address.
The form of the IP address set described in the embodiments of the present application may be an IP address list or an IP address library, and the form of the IP address set is not particularly limited herein.
According to the technical scheme provided by the embodiment of the application, a plurality of virtual dialing lines can be provided as a plurality of virtual dialing ports are arranged in the dialing server, so that a plurality of IP addresses can be obtained after the dialing server initiates dialing operation, and the efficiency of obtaining the IP addresses is effectively improved; meanwhile, the number of available IP addresses acquired by the dialing server is large, so that a subsequent central server can acquire different IP addresses, the problem that access requests are not processed due to fixed IP addresses in the prior art is effectively solved, and the utilization rate of system resources is effectively improved.
Fig. 2 is a schematic structural diagram of a dial server involved in an IP address obtaining method according to an embodiment of the present application.
Assuming that the dial server shown in fig. 2 includes N virtual dial ports, each virtual dial port corresponds to one virtual network card, that is, the dial server includes N virtual network cards, when the dial server receives a dial request, the dial service is started, and the working states of different virtual network cards are determined, and assuming that M virtual network cards are in an idle state, the M virtual network cards can be instructed to execute dial operation to obtain an IP address.
Example 2
Fig. 3 is a flowchart illustrating an internet protocol IP address obtaining method according to an embodiment of the present disclosure. The method may be as follows. The execution subject of the embodiment of the present application may be a central server.
The central server described in the embodiment of the present application is configured with an available dial server set, where the available dial server set includes a mapping relationship between an identifier of an available dial server and a fixed port number of the available dial server, so that the central server can explicitly obtain the fixed port number of the dial server without a domain name server, which is helpful for the central server to call the dial server when acquiring an IP address/initiating a website access, reduces response time of the dial server, and improves processing efficiency of the system.
Step 301: at least one dial-up server is selected from a set of available dial-up servers.
In the embodiment of the present application, the available dialing server set includes a plurality of dialing servers, and when an operation of acquiring an IP address needs to be triggered, the central server needs to select at least one dialing server from the available dialing server set, so that the dialing server executes a dialing operation.
The manner of selecting at least one dial-up server from the set of available dial-up servers in the embodiment of the present application includes, but is not limited to:
the first mode is as follows:
and aiming at the provided available dialing server set, selecting at least one dialing server from the available dialing server set according to a preset scheduling algorithm.
Specifically, the identifier of at least one dial server to be scheduled is calculated by using a set scheduling algorithm and the identifier of the dial server included in the available dial server set, that is, the dial server corresponding to the calculated identifier is used as the selected at least one dial server.
The second mode is as follows:
determining the working state of a dialing server in an available dialing server set, wherein the working state is used for representing the working state of a virtual dialing port in the dialing server;
and selecting at least one dial server from the available dial server set according to the working state.
Specifically, a dial server whose operating state belongs to an idle state may be selected as the selected dial server according to the operating state of the dial server.
The third mode is as follows:
determining the virtual dialing port stored in the IP address table according to the mapping relation between the IP address and the virtual dialing port which are stored in the IP address set;
selecting at least one dial-up server from a set of available dial-up servers that does not already contain the stored virtual dial-up port according to the stored virtual dial-up port.
Specifically, the virtual dialing port with the acquired IP address can be found by searching the IP address table, and at this time, the virtual dialing port with the IP address that has not been acquired can be selected, and the dialing server is determined according to the virtual dialing port with the IP address that has not been acquired.
In the embodiment of the application, when the number of the IP addresses contained in the IP address set is determined to be less than the set threshold value, the operation of selecting at least one dial server from the available dial server set can be triggered to be executed.
Specifically, since the IP address set includes a mapping relationship between the IP address and the obtained virtual dialing port number of the IP address, and/or the IP address list includes a mapping relationship between the IP address, the obtained virtual dialing port number of the IP address, and the fixed port number of the dialing server, when at least one dialing server operation is selected from the available dialing server set, the following manner may be adopted:
based on the virtual dialing port, the number of the IP addresses corresponding to the virtual dialing port can be determined, and if the number of the IP addresses corresponding to the virtual dialing port is smaller than a set threshold, the dialing server corresponding to the virtual dialing port can be used as the determined dialing server.
Or, the dialing servers corresponding to the virtual dialing ports may be sorted according to the number of IP addresses corresponding to different virtual dialing ports, and the dialing servers may be determined according to the sorting result.
Or determining the number of virtual dialing ports with the IP address number smaller than a set threshold value in different dialing servers, and selecting the dialing server with the number of the virtual ports larger than a set numerical value as the determined dialing server.
Step 302: determining a fixed port number of the selected dial-up server.
In this embodiment of the present application, since the available dialing server set includes a mapping relationship between the identifier of the available dialing server and the fixed port number of the available dialing server, after the dialing server is determined, the fixed port number of the dialing server may be determined according to the mapping relationship.
Step 303: and sending a dialing request to the dialing server according to the fixed port number of the dialing server, wherein the dialing request is used for indicating the dialing server to control at least one virtual dialing port to execute dialing operation according to the dialing request and acquire an IP address.
In the embodiment of the application, the dialing requests are sequentially sent to the dialing server according to the set time interval.
By the method described in the embodiment of the application, at least one dialing server is selected from the available dialing server set; determining a fixed port number of the selected dial-up server; and sending a dialing request to the dialing server according to the fixed port number of the dialing server, wherein the dialing request is used for indicating the dialing server to control at least one virtual dialing port to execute dialing operation according to the dialing request and acquire an IP address. The central server maintains an available dialing server list, the fixed port number of the dialing server can be definitely obtained without a domain name server, the number of the available dialing servers is controlled by an algorithm in a centralized scheduling dialing mode, the central server is facilitated to call the dialing servers, the stability of the dialing services is improved, meanwhile, the response time of the dialing servers is reduced, the utilization rate of the dialing servers is effectively improved, and the dialing efficiency is further improved.
Fig. 4 is a schematic structural diagram of an IP address obtaining system according to an embodiment of the present disclosure.
Assuming that the dial-up server cluster shown in fig. 4 includes P dial-up servers, the central server can implement centralized scheduling of the P dial-up servers to determine that a suitable dial-up server executes a dial-up operation, thereby acquiring a required IP address.
Example 3
Fig. 5 is a flowchart illustrating a website access method according to an embodiment of the present application. The method may be as follows. The execution subject of the embodiment of the present application may be a central server.
Step 501: receiving a website access request, wherein the website access request comprises a target website to be accessed.
Step 502: and determining a dialing server for proxy processing of the website access request from an available dialing server set, and selecting an available IP address from an IP address table corresponding to the dialing server.
Here, the implementation manner of "determining a dial server for proxy processing the website access request from the set of available dial servers" may be similar to the manner of selecting a dial server in embodiment 2, and details are not repeated here.
After the dial-up server obtains the IP address, one IP address set may be maintained, or one IP address set may be maintained for each dial-up server, so that after the dial-up server is determined, an available IP address may be selected based on the IP address obtained by the dial-up server.
Optionally, if the number of the received website access requests is greater than 1 and it is determined that the website access requests are processed by the same dial-up server, selecting an available IP address satisfying the number from an IP address table corresponding to the dial-up server according to the number of the received website access requests.
If the number of the received website access requests is larger than 1 and different dial-up servers are determined to process the website access requests, dial-up servers for proxy processing are respectively determined for the different network access requests, and available IP addresses are selected based on the different dial-up servers.
Step 503: and obtaining the fixed port number of the dialing server according to the mapping relation between the provided identification of the dialing server and the fixed port number.
In this embodiment of the present application, since the available dialing server set includes a mapping relationship between the identifier of the available dialing server and the fixed port number of the available dialing server, after the dialing server is determined, the fixed port number of the dialing server may be determined according to the mapping relationship.
Step 504: and sending the website access request to the dial-up server according to the fixed port number.
Step 505: and instructing the dial-up server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address.
Specifically, if the number of received website access requests is greater than 1 and it is determined that the website access requests are processed by the same dial-up server, selecting available IP addresses satisfying the number from an IP address table corresponding to the dial-up server according to the number of the received website access requests; and indicating the dialing server to respectively route the received website access requests to website servers corresponding to different target websites to be accessed by using the virtual ports corresponding to the obtained different available IP addresses.
The website access request is sent to the selected dial-up server, received by a Squid agent in the dial-up server, and the received access request is distributed to the corresponding virtual network card by the Squid agent, at the moment, the virtual network card is routed to the corresponding dial-up line by iptables, and the access request is sent to the website server corresponding to the target website through the dial-up line.
By the website access method provided by the embodiment of the application, a website access request is received, wherein the website access request comprises a target website to be accessed; determining a dial server for proxy processing the website access request from an available dial server set, and selecting an available IP address from an IP address table corresponding to the dial server; obtaining a fixed port number of the determined dialing server according to a mapping relation between the provided identification of the dialing server and the fixed port number; sending the website access request to the dial-up server according to the fixed port number; and instructing the dial-up server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address. The problem that access requests are not processed due to the fact that IP addresses are fixed in the prior art is effectively solved, and the utilization rate of system resources is effectively improved.
Example 4
Fig. 6 is a schematic structural diagram of an IP address obtaining device according to an embodiment of the present disclosure. The obtaining device is applied to a dialing server providing a plurality of virtual dialing ports, and comprises: a receiving unit 61, a determining unit 62 and an obtaining unit 63, wherein:
a receiving unit 61 that receives a dialing request;
a determination unit 62 that determines, upon receiving a dialing request, at least one of the virtual dialing ports for processing the dialing request;
and an obtaining unit 63, configured to instruct the determined virtual dialing port to execute a dialing operation according to the dialing request, and obtain an IP address.
In another embodiment of the present application, the determining unit 62 determines at least one of the virtual dial ports for processing the dial request, including:
determining working states of a plurality of virtual dialing ports, wherein the working states comprise at least one of idle states and busy states;
and selecting the virtual dialing port with the working state being the idle state as the determined virtual dialing port for processing the dialing request.
In another embodiment of the present application, the acquiring apparatus further includes: a storage unit 64, wherein:
the storage unit 64 stores the acquired IP addresses into an IP address set after acquiring the IP addresses;
the IP address set comprises a mapping relation between the IP address and the obtained virtual dialing port number of the IP address, and/or the IP address set comprises the IP address, the obtained virtual dialing port number of the IP address and a mapping relation between the fixed port number of the dialing server.
In another embodiment of the present application, the storing unit 64 stores the acquired IP address into an IP address set, including:
judging whether the IP address is the same as the IP address stored in the IP address set or not;
and if the IP address is different from the IP address stored in the IP address set, storing the obtained IP address into the IP address set.
In another embodiment of the present application, if the IP address is the same as the IP address stored in the IP address set, the obtaining unit 63 indicates the virtual dialing port that obtains the IP address to execute the dialing operation again according to the dialing request, and obtains the IP address again.
It should be noted that the IP address obtaining device provided in the embodiment of the present application may be implemented by software, or may be implemented by hardware, and is not limited specifically herein. The IP address acquisition equipment can provide a plurality of virtual dialing lines, so that a plurality of IP addresses can be acquired after the dialing server initiates dialing operation, and the efficiency of acquiring the IP addresses is effectively improved; meanwhile, the number of available IP addresses acquired by the dialing server is large, so that a subsequent central server can acquire different IP addresses, the problem that access requests are not processed due to fixed IP addresses in the prior art is effectively solved, and the utilization rate of system resources is effectively improved.
Example 5
Fig. 7 is a schematic structural diagram of an IP address obtaining device according to an embodiment of the present application. The IP address acquisition device is applicable to a central server, and includes: a selection unit 71, a determination unit 72, and an acquisition unit 73, wherein:
a selection unit 71 that selects at least one dial server from the set of available dial servers;
a determination unit 72 that determines the fixed port number of the selected dial-up server;
the obtaining unit 73 sends a dialing request to the dial server according to the fixed port number of the dial server, where the dialing request is used to instruct the dial server to control at least one virtual dial port to execute a dialing operation according to the dialing request and obtain an IP address.
In another embodiment of the present application, the selecting unit 71 selects at least one dial server from a set of available dial servers, including:
and aiming at the provided available dialing server set, selecting at least one dialing server from the available dialing server set according to a preset scheduling algorithm.
In another embodiment of the present application, the selecting unit 71 selects at least one dial server from a set of available dial servers, including:
determining the working state of a dialing server in an available dialing server set, wherein the working state is used for representing the working state of a virtual dialing port in the dialing server;
and selecting at least one dial server from the available dial server set according to the working state.
In another embodiment of the present application, the selecting unit 71 selects at least one dial server from a set of available dial servers, including:
when the number of IP addresses contained in the IP address set is determined to be smaller than a set threshold value, at least one dialing server is selected from the available dialing server set.
In another embodiment of the present application, the selecting unit 71 selects at least one dial server from a set of available dial servers, including:
determining the virtual dialing port stored in the IP address table according to the mapping relation between the IP address and the virtual dialing port which are stored in the IP address set;
selecting at least one dial-up server from a set of available dial-up servers that does not already contain the stored virtual dial-up port according to the stored virtual dial-up port.
In another embodiment of the present application, the obtaining unit 73 sends a dialing request to the dialing server, including:
and sequentially sending dialing requests to the dialing server according to a set time interval.
It should be noted that the IP address obtaining device provided in the embodiment of the present application may be implemented by software, or may be implemented by hardware, and is not limited specifically herein. The IP address acquisition equipment described in the embodiment of the application maintains the list of the available dialing servers, the fixed port number of the dialing server can be definitely acquired without a domain name server, the dialing mode is intensively scheduled, the number of the available dialing servers is controlled by an algorithm, a central server is facilitated to call the dialing servers, the stability of the dialing service is improved, meanwhile, the response time of the dialing servers is reduced, the utilization rate of the dialing servers is effectively improved, and the dialing efficiency is further improved.
Example 6
Fig. 8 is a schematic structural diagram of a website access device according to an embodiment of the present application. The website access apparatus includes: a receiving unit 81, a selecting unit 82, a determining unit 83, a sending unit 84 and a routing unit 85, wherein:
a receiving unit 81, configured to receive a website access request, where the website access request includes a target website to be accessed;
a selecting unit 82, which determines a dial-up server for proxy processing the website access request from a set of available dial-up servers, and selects an available IP address from an IP address table corresponding to the dial-up server;
the determining unit 83 obtains the fixed port number of the determined dial-up server according to the mapping relationship between the provided identification of the dial-up server and the fixed port number;
a sending unit 84, configured to send the website access request to the dial-up server according to the fixed port number;
and a routing unit 85, configured to instruct the dial-up server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address.
In another embodiment of the present application, the selecting unit 82 selects an available IP address from an IP address table corresponding to the dial server, including:
if the number of the received website access requests is larger than 1 and the same dial-up server is determined to process the website access requests, selecting available IP addresses meeting the number from an IP address table corresponding to the dial-up server according to the number of the received website access requests;
the routing unit 85 instructs the dial-up server to route the website access request to the website server corresponding to the target website by using the virtual port corresponding to the available IP address, including:
and indicating the dialing server to respectively route the received website access requests to website servers corresponding to different target websites to be accessed by using the virtual ports corresponding to the obtained different available IP addresses.
It should be noted that the website access device provided in the embodiment of the present application may be implemented in a software manner, or may be implemented in a hardware manner, which is not limited specifically herein. The method comprises the steps that website access equipment receives a website access request, wherein the website access request comprises a target website to be accessed; determining a dial server for proxy processing the website access request from an available dial server set, and selecting an available IP address from an IP address table corresponding to the dial server; obtaining a fixed port number of the determined dialing server according to a mapping relation between the provided identification of the dialing server and the fixed port number; sending the website access request to the dial-up server according to the fixed port number; and instructing the dial-up server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address. The problem that access requests are not processed due to the fact that IP addresses are fixed in the prior art is effectively solved, and the utilization rate of system resources is effectively improved.
Example 7
Fig. 9 is a schematic structural diagram of an internet protocol IP address obtaining system according to an embodiment of the present application. The system comprises: the central server 91 and the dial-up servers 921 to 92N that provide a plurality of virtual dial-up ports, wherein:
said central server 91, selecting at least one dial-up server from a set of available dial-up servers; determining a fixed port number of the selected dial-up server; sending a dialing request to the dialing server according to the fixed port number of the dialing server;
the dialing server receives a dialing request and determines at least one virtual dialing port for processing the dialing request; and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
The dial-up server in the embodiment of the present application can implement the functions of embodiment 1 and embodiment 4 in the above embodiments; the central server in the embodiment of the present application can implement the functions of embodiment 2 and embodiment 5 in the above-described embodiments. And are not described in detail herein.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (14)

1. An Internet Protocol (IP) address obtaining method is applied to a dialing server for providing a plurality of virtual dialing ports, and the method comprises the following steps:
when a dialing request is received, determining at least one virtual dialing port for processing the dialing request;
and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
2. The IP address obtaining method according to claim 1, wherein determining at least one of the virtual dial ports for processing the dial request includes:
determining working states of a plurality of virtual dialing ports, wherein the working states comprise at least one of idle states and busy states;
and selecting the virtual dialing port with the working state being the idle state as the determined virtual dialing port for processing the dialing request.
3. The IP address obtaining method according to claim 1, wherein after obtaining the IP address, the method further comprises:
storing the obtained IP address into an IP address set;
the IP address set comprises a mapping relation between the IP address and the obtained virtual dialing port number of the IP address, and/or the IP address set comprises the IP address, the obtained virtual dialing port number of the IP address and a mapping relation between the fixed port number of the dialing server.
4. The method according to claim 3, wherein storing the acquired IP address in an IP address set includes:
judging whether the IP address is the same as the IP address stored in the IP address set or not;
if the IP address is different from the IP address stored in the IP address set, storing the obtained IP address into the IP address set;
and if the IP address is the same as the IP address stored in the IP address set, indicating the virtual dialing port which acquires the IP address to execute dialing operation again according to the dialing request, and acquiring the IP address again.
5. An internet protocol, IP, address acquisition method, comprising:
selecting at least one dial-up server from a set of available dial-up servers;
determining a fixed port number of the selected dial-up server;
and sending a dialing request to the dialing server according to the fixed port number of the dialing server, wherein the dialing request is used for indicating the dialing server to control at least one virtual dialing port to execute dialing operation according to the dialing request and acquire an IP address.
6. The IP address acquisition method of claim 5, wherein selecting at least one dial-up server from a set of available dial-up servers comprises:
aiming at a provided available dialing server set, selecting at least one dialing server from the available dialing server set according to a preset scheduling algorithm;
or determining the working state of a dialing server in an available dialing server set, wherein the working state is used for representing the working state of a virtual dialing port in the dialing server; and selecting at least one dial server from the available dial server set according to the working state.
7. The IP address acquisition method of claim 5, wherein selecting at least one dial-up server from a set of available dial-up servers comprises:
when the number of the IP addresses contained in the IP address set is smaller than a set threshold value, selecting at least one dialing server from the available dialing server set;
or, according to the mapping relation between the IP address and the virtual dialing port which are stored in the IP address set, determining the virtual dialing port which has been stored in the IP address table; selecting at least one dial-up server from a set of available dial-up servers that does not already contain the stored virtual dial-up port according to the stored virtual dial-up port.
8. The IP address acquisition method according to any one of claims 5 to 7, wherein sending a dial request to the dial server includes:
and sequentially sending dialing requests to the dialing server according to a set time interval.
9. A method for accessing a website, comprising:
receiving a website access request, wherein the website access request comprises a target website to be accessed;
determining a dial server for proxy processing the website access request from an available dial server set, and selecting an available IP address from an IP address table corresponding to the dial server;
obtaining a fixed port number of the determined dialing server according to a mapping relation between the provided identification of the dialing server and the fixed port number;
sending the website access request to the dial-up server according to the fixed port number;
and instructing the dial-up server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address.
10. The method of claim 9, wherein selecting an available IP address from the IP address table corresponding to the dial-up server comprises:
if the number of the received website access requests is larger than 1 and the same dial-up server is determined to process the website access requests, selecting available IP addresses meeting the number from an IP address table corresponding to the dial-up server according to the number of the received website access requests;
instructing the dial-up server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address, including:
and indicating the dialing server to respectively route the received website access requests to website servers corresponding to different target websites to be accessed by using the virtual ports corresponding to the obtained different available IP addresses.
11. An internet protocol IP address acquisition device applied to a dial-up server that provides a plurality of virtual dial-up ports, the acquisition device comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining at least one virtual dialing port for processing a dialing request when the dialing request is received;
and the acquisition unit is used for indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
12. An internet protocol, IP, address acquisition device, comprising:
a selection unit that selects at least one dial server from a set of available dial servers;
a determination unit that determines the fixed port number of the selected dial-up server;
and the obtaining unit is used for sending a dialing request to the dialing server according to the fixed port number of the dialing server, wherein the dialing request is used for indicating the dialing server to control at least one virtual dialing port to execute dialing operation according to the dialing request and obtain an IP address.
13. A website access device, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a website access request which comprises a target website to be accessed;
the selection unit is used for determining a dialing server for proxy processing of the website access request from an available dialing server set and selecting an available IP address from an IP address table corresponding to the dialing server;
the determining unit is used for obtaining the fixed port number of the determined dial-up server according to the mapping relation between the provided identification of the dial-up server and the fixed port number;
a sending unit, configured to send the website access request to the dial-up server according to the fixed port number;
and the routing unit is used for indicating the dialing server to route the website access request to a website server corresponding to the target website by using a virtual port corresponding to the available IP address.
14. An internet protocol, IP, address acquisition system, comprising: a dial-up server and a central server providing a plurality of virtual dial-up ports, wherein:
the central server selects at least one dial-up server from a set of available dial-up servers; determining a fixed port number of the selected dial-up server; sending a dialing request to the dialing server according to the fixed port number of the dialing server;
the dialing server receives a dialing request and determines at least one virtual dialing port for processing the dialing request; and indicating the determined virtual dialing port to execute dialing operation according to the dialing request to acquire an IP address.
CN201611063225.7A 2016-11-28 2016-11-28 Method, device and system for obtaining Internet Protocol (IP) address and accessing website Active CN108124021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611063225.7A CN108124021B (en) 2016-11-28 2016-11-28 Method, device and system for obtaining Internet Protocol (IP) address and accessing website

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611063225.7A CN108124021B (en) 2016-11-28 2016-11-28 Method, device and system for obtaining Internet Protocol (IP) address and accessing website

Publications (2)

Publication Number Publication Date
CN108124021A CN108124021A (en) 2018-06-05
CN108124021B true CN108124021B (en) 2021-04-16

Family

ID=62224558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611063225.7A Active CN108124021B (en) 2016-11-28 2016-11-28 Method, device and system for obtaining Internet Protocol (IP) address and accessing website

Country Status (1)

Country Link
CN (1) CN108124021B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257459B (en) * 2018-11-08 2021-07-23 上海及未科技有限公司 Judgment method for improving internet surfing stability of ADSL proxy service host
CN111464403B (en) * 2020-03-18 2021-10-22 庄奇东 Multi-dialing method in edge calculation scene, terminal and computer readable storage medium
CN113055469B (en) * 2021-03-11 2022-10-11 网宿科技股份有限公司 Cloud container storage control method and system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404265A (en) * 2001-09-04 2003-03-19 三星电子株式会社 Dynamic main machine allocation protocal electronic deception with modulator-demodulator unit
CN1471283A (en) * 2002-07-26 2004-01-28 深圳市中兴通讯股份有限公司 Virtual special dialing network business data packet retransmission method
CN103685310A (en) * 2013-12-27 2014-03-26 上海恒为信息科技有限公司 Device and method for dynamic data injection in VPDN(Virtual Private Dial-up Network)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4363108B2 (en) * 2003-07-09 2009-11-11 日本電気株式会社 Cell shaping apparatus, communication system including the apparatus, and shaping method
JP2006261827A (en) * 2005-03-15 2006-09-28 Nec Access Technica Ltd Network apparatus, management apparatus thereof, network connection method, and network connection management method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404265A (en) * 2001-09-04 2003-03-19 三星电子株式会社 Dynamic main machine allocation protocal electronic deception with modulator-demodulator unit
CN1471283A (en) * 2002-07-26 2004-01-28 深圳市中兴通讯股份有限公司 Virtual special dialing network business data packet retransmission method
CN103685310A (en) * 2013-12-27 2014-03-26 上海恒为信息科技有限公司 Device and method for dynamic data injection in VPDN(Virtual Private Dial-up Network)

Also Published As

Publication number Publication date
CN108124021A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
US10637916B2 (en) Method and device for storage resource allocation for video cloud storage
CN109327550B (en) Access request distribution method and device, storage medium and computer equipment
CN106982236B (en) Information processing method, device and system
CN109684092B (en) Resource allocation method and device
CN113037794B (en) Method, device and system for computing resource allocation scheduling
CN107888717B (en) Domain name determination method and device and electronic equipment
CN108124021B (en) Method, device and system for obtaining Internet Protocol (IP) address and accessing website
CN112615905B (en) Method, device and equipment for scheduling block chain fragments and storage medium
CN106657182B (en) Cloud file processing method and device
JP2019016042A (en) Data acquisition program, device, and method
CN113315848A (en) Access control method, device and equipment
EP3672203A1 (en) Distribution method for distributed data computing, device, server and storage medium
US11902352B2 (en) HttpDNS scheduling method, apparatus, medium and device
CN110581784A (en) node health check method, device and equipment
CN108023774B (en) Cross-gateway migration method and device
CN112532666A (en) Reverse proxy method, apparatus, storage medium, and device
CN110764930A (en) Request or response processing method and device based on message mode
CN112104566B (en) Processing method and device for load balancing
CN116016584A (en) Equipment data transfer method, equipment and medium based on Internet of things platform
US20230275974A1 (en) Network functionality (nf) aware service provision based on service communication proxy (scp)
CN113687940B (en) Load balancing method and device and physical machine
CN113596105A (en) Content acquisition method, edge node and computer-readable storage medium
CN103685367A (en) Offline download system and offline download method
CN113238836A (en) Distributed content scheduling method, scheduling system and central server
WO2021072574A1 (en) Load balancing

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
GR01 Patent grant
GR01 Patent grant