CN117061410A - IP address access method, internet of things platform, equipment, system and electronic equipment - Google Patents

IP address access method, internet of things platform, equipment, system and electronic equipment Download PDF

Info

Publication number
CN117061410A
CN117061410A CN202310993080.4A CN202310993080A CN117061410A CN 117061410 A CN117061410 A CN 117061410A CN 202310993080 A CN202310993080 A CN 202310993080A CN 117061410 A CN117061410 A CN 117061410A
Authority
CN
China
Prior art keywords
domain name
address
internet
new
target
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
CN202310993080.4A
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.)
Shenzhen Core Ruishi Technology Co ltd
Original Assignee
Shenzhen Core Ruishi 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 Shenzhen Core Ruishi Technology Co ltd filed Critical Shenzhen Core Ruishi Technology Co ltd
Priority to CN202310993080.4A priority Critical patent/CN117061410A/en
Publication of CN117061410A publication Critical patent/CN117061410A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • 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/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

The application provides an IP address access method, an Internet of things platform, equipment, a system and electronic equipment, wherein a specific implementation mode of the method comprises the following steps: if a target IP address with access failure is received, generating a new sub domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; and if a subdomain name acquisition request sent by any one of the Internet of things equipment is received, sending the new subdomain name to the Internet of things equipment so that the Internet of things equipment can access the target IP address through the new subdomain name. The method can enable the Internet of things equipment to normally access the newly added server.

Description

IP address access method, internet of things platform, equipment, system and electronic equipment
Technical Field
The application relates to the field of communication, in particular to an IP address access method, an Internet of things platform, equipment, a system and electronic equipment.
Background
The internet of things enterprise can purchase the internet of things card from the operator, and the internet of things enterprise needs to provide a server list which can be accessed by the internet of things equipment using the internet of things card in the purchase process, wherein the server list comprises domain name and IP address (Internet protocol address, internet Protocol Address, abbreviated as IP address) information of the server. Operators may restrict these internet of things devices to access only the domain names and IP addresses in the server list.
With the development of the internet of things enterprise, a server can be newly added to provide more and more services for the internet of things equipment, so that the internet of things equipment may need to access more and more domain names and IP addresses, and if the domain names and the IP addresses are not in the recorded server list, the newly added server cannot be normally accessed by the internet of things equipment.
Disclosure of Invention
The embodiment of the application aims to provide an IP address access method, an Internet of things platform, equipment, a system and electronic equipment, which are used for enabling the Internet of things equipment to normally access a newly-added server.
In a first aspect, an embodiment of the present application provides an IP address access method, which is applied to an internet of things platform, where a main domain name is stored in the internet of things platform, and the method includes: if a target IP address with access failure is received, generating a new sub domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; and if a subdomain name acquisition request sent by any one of the Internet of things equipment is received, sending the new subdomain name to the Internet of things equipment so that the Internet of things equipment can access the target IP address through the new subdomain name.
In this way, in case that the target IP address is determined to be a new IP address, a new sub domain name can be added to the main domain name that has been already registered. Therefore, the new subdomain name can be dynamically added without being limited by the domain name or whether the IP address is recorded, and the aim that the Internet of things equipment can normally access the newly added server is achieved.
Optionally, before the generating a new subdomain name according to the main domain name if the target IP address of access failure is received and the target IP address is determined to be a new IP address, the method further includes: if a service domain name list acquisition request is received, a service domain name list is sent; the service domain name list comprises subdomain names which are required to be accessed for realizing the service; sending a return instruction to the Internet of things equipment; the return instruction is used for indicating: resolving an IP address corresponding to each service domain name in the service domain name list; and returning the IP address as the target IP address in the case of failure in accessing the IP address.
In this way, when the service domain name list acquisition request sent by the internet of things device is received again, the new sub domain name can be sent, so that the physical network device can normally access the IP address which is failed to access before, and corresponding service is realized.
Optionally, after sending a return instruction to the internet of things device, the method further comprises: sending a service domain name keep-alive instruction to the Internet of things equipment; the service domain name keep-alive instruction is used for indicating: the parsed IP address is accessed multiple times to place the IP address in an accessible state. In this way, the new subdomain name and the IP address can be kept alive for the IP address corresponding to the new subdomain name.
Optionally, the method further comprises: transmitting a retransmission instruction to the Internet of things equipment; the retransmission instruction is used for indicating: and if the current service domain name is the last service domain name in the service domain name list, retransmitting a service domain name list acquisition request after the dormancy preset time length. In this way, the internet of things device can adjust the internal resources within the preset time length, so that more resources can be adjusted to reacquire the service domain name list and execute subsequent access operation, and the service realization rate is improved to a certain extent.
Optionally, if the sub domain name obtaining request sent by any one of the internet of things devices is received, sending the new sub domain name to the internet of things device includes: if a subdomain name list acquisition request sent by any Internet of things equipment is received, sending a subdomain name list; the method further comprises: sending a sub domain name keep-alive instruction to the Internet of things equipment; the subdomain name keep-alive instruction is used for indicating: aiming at each sub domain name in the sub domain name list, resolving an IP address corresponding to the sub domain name; and accessing the IP address a plurality of times to place the IP address in an accessible state.
Therefore, all the sub domain names and the IP addresses are in an accessible state, and the reasons of access failure caused by no record can be removed under the condition that a certain IP address fails to access, so that other reasons of access failure can be more focused, and the speed of searching the reasons of access failure is improved.
Optionally, in the case that the target IP address is determined to be a new IP address, generating a new sub-domain name according to the main domain name includes: if the target IP address is not found in the association relation stored currently, determining that the target IP address is a new IP address; and generating the new sub-domain name based on the plurality of history sub-domain names associated with the main domain name. In this way, the accuracy and convenience of determining the new IP address and generating the new sub domain name can be improved by utilizing the association relationship among the main domain name, the sub domain name and the IP address.
In a second aspect, an embodiment of the present application provides an IP address access method, which is applied to an internet of things device, where the method includes: sending a service domain name list acquisition request to an Internet of things platform to acquire a service domain name list; resolving an IP address corresponding to each service domain name in the service domain name list; under the condition that the access to the IP address fails, a new request is sent to an Internet of things platform, wherein the new request comprises the IP address; the new request is for a request: generating a new sub domain name according to the main domain name under the condition that the target IP address with failed access is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; if the service domain name acquisition request is received again, an updated service domain name list is sent; wherein the updated service domain name list includes the new sub-domain name.
In this way, the internet of things device can collect the IP address with failed access, and then can request the physical network platform to add a new sub domain name under the main domain name already recorded under the condition that the target IP address is determined to be the new IP address. Therefore, the purpose of normally accessing the newly added server is achieved without being limited by the domain name or whether the IP address is recorded.
In a third aspect, an embodiment of the present application provides an internet of things platform, where a main domain name is stored, including: the generation module is used for generating a new sub-domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address if the target IP address with access failure is received; the association module 302 is configured to store an association relationship between the main domain name, the new sub domain name, and the target IP address; and the sending module is used for sending the new sub domain name to the Internet of things equipment if receiving a sub domain name acquisition request sent by any Internet of things equipment, so that the Internet of things equipment can access the target IP address through the new sub domain name. Therefore, the purpose of normally accessing the newly added server is achieved without being limited by the domain name or whether the IP address is recorded.
In a fourth aspect, an embodiment of the present application provides an internet of things device, including: the acquisition module is used for sending a service domain name list acquisition request to the Internet of things platform so as to acquire a service domain name list; the resolving module is used for resolving the IP address corresponding to each service domain name in the service domain name list; the request module is used for sending a new request to the Internet of things platform under the condition that the access to the IP address fails, wherein the new request comprises the IP address; the new request is for a request: generating a new sub domain name according to the main domain name under the condition that the target IP address with failed access is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; if the service domain name acquisition request is received again, an updated service domain name list is sent; wherein the updated service domain name list includes the new sub-domain name. Therefore, the purpose of normally accessing the newly added server is achieved without being limited by the domain name or whether the IP address is recorded.
In a fifth aspect, an embodiment of the present application provides an IP address accessing system, including: the system comprises a plurality of internet of things devices, a service domain name acquisition module and a service domain name acquisition module, wherein any internet of things device is used for sending a service domain name acquisition request to an internet of things platform so as to acquire a service domain name list; resolving an IP address corresponding to each service domain name in the service domain name list; under the condition that the access to the IP address fails, the IP address is used as a target IP address to be sent to the Internet of things platform; the internet of things platform is used for generating a new sub-domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address if the target IP address with access failure is received; storing the association relationship among the main domain name, the new sub domain name and the target IP address; and if a domain name acquisition request sent by any one of the Internet of things equipment is received, sending the new sub domain name to the Internet of things equipment, so that the Internet of things equipment can access the target IP address through the new sub domain name. Therefore, the purpose of normally accessing the newly added server is achieved without being limited by the domain name or whether the IP address is recorded.
In a sixth aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing computer readable instructions which, when executed by the processor, perform the steps of the method as provided in the first or second aspects above.
In a seventh aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method as provided in the first or second aspects above.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an IP address access method applied to an internet of things platform according to an embodiment of the present application;
fig. 2 is a flowchart of an IP address access method applied to an internet of things device according to an embodiment of the present application;
fig. 3 is a structural block diagram of an internet of things platform according to an embodiment of the present application;
fig. 4 is a structural block diagram of an internet of things device according to an embodiment of the present application;
fig. 5 is a schematic diagram of an IP address access system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device for executing an IP address access method according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
It should be noted that embodiments of the present application or technical features of embodiments may be combined without conflict.
In the related art, an operator provides server list rules including: (1) Under the condition that the main domain name is recorded, the Internet of things equipment can access all sub domain names under the main domain name; (2) any domain name not yet filed cannot be accessed.
For example, after the main domain name domain.com is filed, a.domain.com, b.domain.com may be accessed; but cannot access a.domain1.Com. Thus, if the sub domain name a.domain.com is bound to the server a, and the sub domain name a.domain1.com is bound to the server B, the internet of things device can normally access the server a, and cannot normally access the server B.
Therefore, the problem that if the domain name and the IP address corresponding to the newly added server are not in the recorded server list, the domain name and the IP address cannot be normally accessed by the Internet of things equipment is solved; the application provides an IP address access method, an Internet of things platform, equipment, a system and electronic equipment; further, by collecting the IP address with failed access, a sub domain name corresponding to the failed IP address may be added according to the main domain name, so that the IP address may be accessed, thereby improving the situation that the service provided by the internet of things platform cannot be implemented.
The above related art solutions have drawbacks, which are results obtained by the inventor after practice and careful study, and therefore, the discovery process of the above problems and the solutions proposed by the embodiments of the present application hereinafter for the above problems should be all contributions of the inventor to the present application in the process of the present application.
Referring to fig. 1, a flowchart of an IP address access method according to an embodiment of the present application is shown. The IP address access method can be applied to an Internet of things platform, and the Internet of things platform stores a main domain name.
It should be noted that the primary domain name is already at the carrier. If a certain physical network device accesses the master domain name, it can access normally.
The physical network platform may be, for example, a single server that can substantially communicate with the internet of things device, a server cluster formed by a plurality of servers, a cloud computing center, or the like. The internet of things device, that is, the device for communicating by using the internet of things card, may include, for example, a smart television, an automatic vending machine, and the like.
As shown in fig. 1, the IP address access method includes the following steps 101 to 103.
Step 101, if a target IP address with access failure is received, generating a new sub domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address;
in some application scenarios, the physical network device may send the IP address with the failed access to the internet of things platform. In these application scenarios, the IP address may not be recorded, or the access failure of the IP address may be caused by a network failure, a server failure corresponding to the IP address, or the like.
When the physical network platform receives the target IP address with failed access, it can first determine whether it is a new IP address to determine whether the target IP address can access the already-registered primary domain name.
In some application scenarios, the physical network platform may, for example, build an IP address library in which all IP addresses currently accessible may be stored. In this way, if the target IP address is not found in the IP address library, the target IP address is considered to be not recorded; if the target IP address is queried in the IP address library, it may be considered that the reason that the physical network device cannot access is not that the target IP address is not recorded, and the internet of things device may be instructed to find other reasons.
Further, if it is determined that the target IP address is a new IP address, a new sub-domain name may be generated according to the main domain name. In some application scenarios, the physical network platform may set a unique corresponding number for each sub-domain name, for example, and then when generating a new sub-domain name, the physical network platform may generate according to the number. For example, the main domain name is domain.com and the former sub domain name is a5.domain.com, then a new sub domain name of a6.domain.com can be currently generated. In other application scenarios, the physical network platform may also randomly generate a new sub-domain name, for example, which the present application is not limited to.
Step 102, storing the association relationship among the main domain name, the new sub domain name and the target IP address;
in some application scenarios, after the sub domain name is generated, the physical network platform may associate the main domain name, the new sub domain name and the target IP address to form a mapping relationship between the three. In this way, one primary domain name may be associated with multiple sub-domain names, each of which may be associated with one IP address, such that a single primary domain name supports access to multiple IP addresses.
Step 103, if a sub domain name acquisition request sent by any one of the internet of things devices is received, the new sub domain name is sent to the internet of things device, so that the internet of things device can access the target IP address through the new sub domain name.
In some application scenarios, after receiving a subdomain name acquisition request sent by any one of the internet of things devices, the physical network platform may send only the new subdomain name or send all subdomains including the new subdomain name. In this way, the internet of things device can access the failed target IP address according to the acquired new subdomain name.
In the related art, as the service increases or the current server resources are not enough, a new server needs to be added to the internet of things platform, so that the domain name and the IP address corresponding to the new server cannot be normally accessed by the physical network device because the domain name and the IP address corresponding to the new server are not recorded.
In this embodiment, in the case that the target IP address is determined to be a new IP address, a new sub domain name may be added to the main domain name that has already been recorded. Therefore, the new subdomain name can be dynamically added without being limited by the domain name or whether the IP address is recorded, and the aim that the Internet of things equipment can normally access the newly added server is achieved.
In some optional implementations, in the case that the target IP address is determined to be the new IP address in step 101, generating a new sub-domain name according to the main domain name includes: if the target IP address is not found in the association relation stored currently, determining that the target IP address is a new IP address; and generating the new sub-domain name based on the plurality of history sub-domain names associated with the main domain name.
In some application scenarios, the internet of things platform can store the association relationship among the main domain name, the sub-domain name and the IP address, so that when the target IP address is received, the sub-domain name corresponding to the target IP address can be searched according to the association relationship, and the current target IP address is determined to be a new IP address under the condition that the sub-domain name is not searched.
The physical network platform may then also generate a new sub-domain name based on the associated plurality of historical sub-domain names without repeating the sub-domain name.
In the implementation manner, the accuracy and convenience for determining the new IP address and generating the new sub domain name can be improved by utilizing the association relationship among the main domain name, the sub domain name and the IP address.
In some optional implementations, if the target IP address of the access failure is received in the step 101, before generating a new subdomain name according to the main domain name if the target IP address is determined to be a new IP address, the method further includes the following steps:
step 001, if a service domain name list acquisition request is received, sending a service domain name list; the service domain name list comprises subdomain names which are required to be accessed for realizing the service;
the internet of things platform may provide a variety of services, which may include, for example, push services, forward services, and the like. For each service, the internet of things platform may set one or more subdomains that must be accessed to implement the service, which may be considered as the service domain names described above.
In some application scenarios, the physical network platform may make a service domain name list, where the service domain name list may include a plurality of service information and corresponding service domain names. Thus, after receiving the service domain name list acquisition request, the service domain name list may be transmitted to the physical network device.
Step 002, sending a return instruction to the internet of things device; the return instruction is used for indicating: resolving an IP address corresponding to each service domain name in the service domain name list; and returning the IP address as the target IP address in the case of failure in accessing the IP address.
After the physical network device obtains the service domain name list, each service domain name in the service domain name list can be accessed. In some application scenarios, for example, the access may be sequential or random, without limitation.
In the process of accessing the service domain name, the internet of things device needs to firstly analyze the IP address corresponding to the service domain name. In some application scenarios, the physical network device may send an resolution request to a domain name resolution server, for example, and if the resolution server returns response information indicating that resolution fails, the resolution server may consider that the current service domain name is not available, and may continue to resolve the next service domain name. If the domain name resolution server returns the resolved IP address, access can be performed. In the process of accessing the resolved IP address, if the access fails, the IP address can be collected and returned to the Internet of things platform. In these application scenarios, for example, failure to receive response information, access timeout, or the like may be regarded as access failure.
In this implementation manner, the internet of things platform may instruct the physical network device to collect the IP address with failed access, so as to be able to newly add a new sub domain name corresponding to the IP address. In this way, when the service domain name list acquisition request sent by the internet of things device is received again, the new sub domain name can be sent, so that the physical network device can normally access the IP address which is failed to access before, and corresponding service is realized.
In some optional implementations, after sending a return instruction to the internet of things device, the method further includes: sending a service domain name keep-alive instruction to the Internet of things equipment; the service domain name keep-alive instruction is used for indicating: the parsed IP address is accessed multiple times to place the IP address in an accessible state.
The accessible state can be regarded as a state that the internet of things equipment is in continuous communication with the server corresponding to the IP address, so that the physical network equipment can be normally accessed when the physical network equipment needs to be accessed.
In some application scenarios, the internet of things device may access the parsed IP address using multiple accesses, such as a ping command in ICMP protocol (internet control message protocol, internet Control Message Protocol, ICMP protocol for short), TCP protocol (transmission control protocol, transmission Control Protocol, TCP protocol for short), or UDP protocol (user datagram protocol, user Datagram Protocol, UDP protocol for short).
Further, the physical network device may access the parsed IP address at regular or irregular time, without limitation.
In this implementation, the internet of things device may access the parsed IP address from time to time. In this way, the new subdomain name and the IP address can be kept alive for the IP address corresponding to the new subdomain name.
In some alternative implementations, the method further includes: transmitting a retransmission instruction to the Internet of things equipment; the retransmission instruction is used for indicating: and if the current service domain name is the last service domain name in the service domain name list, retransmitting a service domain name list acquisition request after the dormancy preset time length.
In some application scenarios, in the process of accessing the service domain name list, if the last service domain name is currently being accessed, the internet of things device may sleep for a preset period of time after the access. The preset time period may be, for example, 50 seconds, 60 seconds, or the like.
In this way, the internet of things device can adjust the internal resources within the preset time length, so that more resources can be adjusted to reacquire the service domain name list and execute subsequent access operation, and the service realization rate is improved to a certain extent.
In some optional implementations, if the sub-domain name acquisition request sent by any one of the internet of things devices is received in step 103, sending the new sub-domain name to the internet of things device includes: if a subdomain name list acquisition request sent by any Internet of things equipment is received, sending a subdomain name list;
in some application scenarios, the internet of things device may request to acquire all sub-domain names, or may request to acquire a single sub-domain name, which is not limited herein. In these application scenarios, if all the sub-domains are acquired, all the sub-domains may be included in the sub-domain list, and if only a single sub-domain is acquired, only one sub-domain may be included in the sub-domain list.
In some application scenarios, for convenience of management, the physical network platform may, for example, set three interfaces, one of which is used for receiving a sub domain name list acquisition request and returning a sub domain name list, where all sub domain name information is included; the second step is to receive the service domain name list obtaining request and return the service domain name list, wherein the service domain name list comprises subdomain name information which is necessary to be accessed by the realization service; and thirdly, the method is used for receiving the target IP address and triggering the operation of the newly added sub domain name.
Thus, the method further comprises: sending a sub domain name keep-alive instruction to the Internet of things equipment; the subdomain name keep-alive instruction is used for indicating: aiming at each sub domain name in the sub domain name list, resolving an IP address corresponding to the sub domain name; and accessing the IP address a plurality of times to place the IP address in an accessible state.
Here, the process of keeping all the sub-domain names and the IP addresses alive by the internet of things device and the obtained technical effects may be the same as or similar to the process of keeping the service domain names and the IP addresses alive, which are not described herein.
In the implementation manner, all the sub domain names and the IP addresses are in an accessible state, and the reasons of access failure caused by no record can be removed under the condition that access of a certain IP address fails, so that other reasons of access failure can be paid more attention to, and the speed of searching for the reasons of access failure is improved.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiment, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Referring to fig. 2, a flowchart of an IP address access method according to an embodiment of the present application is shown. The IP address access method can be applied to the Internet of things equipment. As shown in fig. 2, the IP address access method includes the following steps 201 to 203.
Step 201, sending a service domain name list acquisition request to an internet of things platform to acquire a service domain name list;
step 202, resolving an IP address corresponding to each service domain name in the service domain name list;
step 203, sending a new request to the platform of the internet of things under the condition that the access to the IP address fails, wherein the new request comprises the IP address; the new request is for a request: generating a new sub domain name according to the main domain name under the condition that the target IP address with failed access is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; if the service domain name acquisition request is received again, an updated service domain name list is sent; wherein the updated service domain name list includes the new sub-domain name.
It should be noted that the implementation process of the above steps 201 to 203 may be the same as or similar to the implementation process of the above steps 001 to 103, which is not repeated herein.
In this embodiment, the internet of things device may collect the IP address with failed access, and then may request the physical network platform to add a new sub-domain name under the main domain name already recorded for the physical network platform when determining that the target IP address is the new IP address. Therefore, the purpose of normally accessing the newly added server is achieved without being limited by the domain name or whether the IP address is recorded.
Referring to fig. 3, a block diagram of an internet of things platform according to an embodiment of the present application is shown. It should be understood that, the platform of the internet of things corresponds to the embodiment of the method of fig. 1 described above, and is capable of executing the steps involved in the embodiment of the method of fig. 1.
Optionally, the internet of things platform includes a generating module 301, an associating module 302, and a sending module 303. The generating module 301 is configured to generate a new sub domain name according to the main domain name if the target IP address with access failure is received, where the target IP address is determined to be a new IP address; the association module is used for storing association relations among the main domain name, the new sub domain name and the target IP address; and the sending module 303 is configured to send the new sub domain name to any internet of things device if receiving a sub domain name acquisition request sent by the internet of things device, so that the internet of things device can access the target IP address through the new sub domain name.
Optionally, the internet of things platform further includes a collection module, where the collection module is configured to: if a request for acquiring a service domain name list is received before generating a new subdomain name according to the main domain name under the condition that the target IP address is determined to be a new IP address if the target IP address with access failure is received, sending the service domain name list; the service domain name list comprises subdomain names which are required to be accessed for realizing the service; sending a return instruction to the Internet of things equipment; the return instruction is used for indicating: resolving an IP address corresponding to each service domain name in the service domain name list; and returning the IP address as the target IP address in the case of failure in accessing the IP address.
Optionally, the internet of things platform further includes a service domain name keep-alive module, where the service domain name protection module is configured to: after sending a return instruction to the Internet of things equipment, sending a service domain name keep-alive instruction to the Internet of things equipment; the service domain name keep-alive instruction is used for indicating: the parsed IP address is accessed multiple times to place the IP address in an accessible state.
Optionally, the internet of things platform further includes a retransmission module, where the retransmission module is configured to: transmitting a retransmission instruction to the Internet of things equipment; the retransmission instruction is used for indicating: and if the current service domain name is the last service domain name in the service domain name list, retransmitting a service domain name list acquisition request after the dormancy preset time length.
Optionally, the sending module 303 is further configured to: if a subdomain name list acquisition request sent by any Internet of things equipment is received, sending a subdomain name list; the method further comprises: sending a sub domain name keep-alive instruction to the Internet of things equipment; the subdomain name keep-alive instruction is used for indicating: aiming at each sub domain name in the sub domain name list, resolving an IP address corresponding to the sub domain name; and accessing the IP address a plurality of times to place the IP address in an accessible state.
Optionally, the generating module 301 is further configured to: if the target IP address is not found in the association relation stored currently, determining that the target IP address is a new IP address; and generating the new sub-domain name based on the plurality of history sub-domain names associated with the main domain name.
It should be noted that, for convenience and brevity of description, a person skilled in the art may clearly understand that, for a specific working process of the above-described platform of the internet of things, reference may be made to a corresponding process in the foregoing method embodiment, and a description thereof will not be repeated here.
Referring to fig. 4, a block diagram of an internet of things device according to an embodiment of the present application is shown. It should be understood that the internet of things device corresponds to the above-described method embodiment of fig. 2, and is capable of executing the steps involved in the method embodiment of fig. 2.
Optionally, the internet of things device includes an obtaining module 401, an analyzing module 402, and a requesting module 403. The acquiring module 401 is configured to send a service domain name list acquiring request to the internet of things platform to acquire a service domain name list; a resolving module 402, configured to resolve, for each service domain name in the service domain name list, an IP address corresponding to the service domain name; a request module 403, configured to send a new request to an internet of things platform if accessing the IP address fails, where the new request includes the IP address; the new request is for a request: generating a new sub domain name according to the main domain name under the condition that the target IP address with failed access is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; if the service domain name acquisition request is received again, an updated service domain name list is sent; wherein the updated service domain name list includes the new sub-domain name.
It should be noted that, for convenience and brevity of description, specific working processes of the above-described internet of things device may refer to corresponding processes in the foregoing method embodiments, and will not be repeated here.
Fig. 5 is a schematic diagram of an IP address access system according to an embodiment of the present application. The IP address access system may include an internet of things platform 501 and a plurality of internet of things devices 502. It should be understood that, the internet of things platform 501 corresponds to the above-described method embodiment of fig. 1, and is capable of executing the steps involved in the method embodiment of fig. 1. Any of the internet of things devices 502 corresponds to the above-described method embodiment of fig. 2, and is capable of performing the steps involved in the method embodiment of fig. 2.
Optionally, any of the internet of things devices 502 is configured to send a service domain name obtaining request to the internet of things platform 501 to obtain a service domain name list; resolving an IP address corresponding to each service domain name in the service domain name list; in the case of failure in accessing the IP address, sending the IP address as a target IP address to the internet of things platform 501;
the internet of things platform 501 is configured to, if a target IP address with access failure is received, generate a new sub domain name according to the main domain name if the target IP address is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; if a domain name acquisition request sent by any one of the internet of things devices 502 is received, the new sub domain name is sent to the internet of things device 502, so that the internet of things device 502 accesses the target IP address.
It should be noted that, for convenience and brevity, a person skilled in the art will clearly understand that, for the specific working procedure of the system described above, reference may be made to the corresponding procedure in the foregoing method embodiment, and the description will not be repeated here.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device for executing an IP address access method according to an embodiment of the present application, where the electronic device may include: at least one processor 601, e.g. a CPU, at least one communication interface 602, at least one memory 603 and at least one communication bus 604. Wherein the communication bus 604 is used to enable direct connection communication of these components. The communication interface 602 of the device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The memory 603 may be a high-speed RAM memory or a nonvolatile memory (non-volatile memory), such as at least one magnetic disk memory. The memory 603 may also optionally be at least one storage device located remotely from the processor. The memory 603 has stored therein computer readable instructions which, when executed by the processor 601, may cause the electronic device to perform the method processes described above with reference to fig. 1 or 2.
It will be appreciated that the configuration shown in fig. 6 is merely illustrative, and that the electronic device may also include more or fewer components than shown in fig. 6, or have a different configuration than shown in fig. 6. The components shown in fig. 6 may be implemented in hardware, software, or a combination thereof.
Embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, is capable of performing a method procedure performed by an electronic device in an embodiment of the method as shown in fig. 1 or fig. 2.
Embodiments of the present application provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the execution of the methods provided by the method embodiments described above, e.g. the method may comprise: if a target IP address with access failure is received, generating a new sub domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; and if a subdomain name acquisition request sent by any one of the Internet of things equipment is received, sending the new subdomain name to the Internet of things equipment so that the Internet of things equipment can access the target IP address through the new subdomain name.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent 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 protection scope of the present application.

Claims (12)

1. The IP address access method is characterized by being applied to an Internet of things platform, wherein a main domain name is stored in the Internet of things platform, and the method comprises the following steps:
if a target IP address with access failure is received, generating a new sub domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address;
storing the association relationship among the main domain name, the new sub domain name and the target IP address;
and if a subdomain name acquisition request sent by any one of the Internet of things equipment is received, sending the new subdomain name to the Internet of things equipment so that the Internet of things equipment can access the target IP address through the new subdomain name.
2. The method according to claim 1, wherein, in case the target IP address is received, if the access failure is received, the method further comprises, before generating a new sub-domain name from the main domain name if the target IP address is determined to be a new IP address:
if a service domain name list acquisition request is received, a service domain name list is sent; the service domain name list comprises subdomain names which are required to be accessed for realizing the service;
sending a return instruction to the Internet of things equipment; the return instruction is used for indicating: resolving an IP address corresponding to each service domain name in the service domain name list; and returning the IP address as the target IP address in the case of failure in accessing the IP address.
3. The method of claim 2, wherein after sending a return instruction to the internet of things device, the method further comprises:
sending a service domain name keep-alive instruction to the Internet of things equipment; the service domain name keep-alive instruction is used for indicating: the parsed IP address is accessed multiple times to place the IP address in an accessible state.
4. The method according to claim 2, wherein the method further comprises:
Transmitting a retransmission instruction to the Internet of things equipment; the retransmission instruction is used for indicating: and if the current service domain name is the last service domain name in the service domain name list, retransmitting a service domain name list acquisition request after the dormancy preset time length.
5. The method according to any one of claims 1-4, wherein if the sub-domain name acquisition request sent by any one of the internet of things devices is received, sending the new sub-domain name to the internet of things device includes:
if a subdomain name list acquisition request sent by any Internet of things equipment is received, sending a subdomain name list; the method further comprises:
sending a sub domain name keep-alive instruction to the Internet of things equipment; the subdomain name keep-alive instruction is used for indicating: aiming at each sub domain name in the sub domain name list, resolving an IP address corresponding to the sub domain name; and accessing the IP address a plurality of times to place the IP address in an accessible state.
6. The method of claim 1, wherein the generating a new sub-domain name from the main domain name if the target IP address is determined to be a new IP address comprises:
if the target IP address is not found in the association relation stored currently, determining that the target IP address is a new IP address;
And generating the new sub-domain name based on the plurality of history sub-domain names associated with the main domain name.
7. The IP address access method is characterized by being applied to the Internet of things equipment, and comprises the following steps:
sending a service domain name list acquisition request to an Internet of things platform to acquire a service domain name list;
resolving an IP address corresponding to each service domain name in the service domain name list;
under the condition that the access to the IP address fails, a new request is sent to an Internet of things platform, wherein the new request comprises the IP address; the new request is for a request: generating a new sub domain name according to the main domain name under the condition that the target IP address with failed access is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; if the service domain name acquisition request is received again, an updated service domain name list is sent; wherein the updated service domain name list includes the new sub-domain name.
8. The utility model provides an internet of things platform which characterized in that, it stores the main domain name, includes:
the generation module is used for generating a new sub-domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address if the target IP address with access failure is received;
The association module is used for storing association relations among the main domain name, the new sub domain name and the target IP address;
and the sending module is used for sending the new sub domain name to the Internet of things equipment if receiving a sub domain name acquisition request sent by any Internet of things equipment, so that the Internet of things equipment can access the target IP address through the new sub domain name.
9. An internet of things device, comprising:
the acquisition module is used for sending a service domain name list acquisition request to the Internet of things platform so as to acquire a service domain name list;
the resolving module is used for resolving the IP address corresponding to each service domain name in the service domain name list;
the request module is used for sending a new request to the Internet of things platform under the condition that the access to the IP address fails, wherein the new request comprises the IP address; the new request is for a request: generating a new sub domain name according to the main domain name under the condition that the target IP address with failed access is determined to be a new IP address; storing the association relationship among the main domain name, the new sub domain name and the target IP address; if the service domain name acquisition request is received again, an updated service domain name list is sent; wherein the updated service domain name list includes the new sub-domain name.
10. An IP address access system, comprising:
the system comprises a plurality of internet of things devices, a service domain name acquisition module and a service domain name acquisition module, wherein any internet of things device is used for sending a service domain name acquisition request to an internet of things platform so as to acquire a service domain name list; resolving an IP address corresponding to each service domain name in the service domain name list; under the condition that the access to the IP address fails, the IP address is used as a target IP address to be sent to the Internet of things platform;
the internet of things platform is used for generating a new sub-domain name according to the main domain name under the condition that the target IP address is determined to be a new IP address if the target IP address with access failure is received; storing the association relationship among the main domain name, the new sub domain name and the target IP address; and if a domain name acquisition request sent by any one of the Internet of things equipment is received, sending the new sub domain name to the Internet of things equipment, so that the Internet of things equipment can access the target IP address through the new sub domain name.
11. An electronic device comprising a processor and a memory storing computer readable instructions that, when executed by the processor, perform the method of any of claims 1-6 or 7.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the method according to any of claims 1-6 or 7.
CN202310993080.4A 2023-08-08 2023-08-08 IP address access method, internet of things platform, equipment, system and electronic equipment Pending CN117061410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310993080.4A CN117061410A (en) 2023-08-08 2023-08-08 IP address access method, internet of things platform, equipment, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310993080.4A CN117061410A (en) 2023-08-08 2023-08-08 IP address access method, internet of things platform, equipment, system and electronic equipment

Publications (1)

Publication Number Publication Date
CN117061410A true CN117061410A (en) 2023-11-14

Family

ID=88665631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310993080.4A Pending CN117061410A (en) 2023-08-08 2023-08-08 IP address access method, internet of things platform, equipment, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN117061410A (en)

Similar Documents

Publication Publication Date Title
CN103856569B (en) A kind of method and apparatus of synchronous domain name system asset information
CN109347998B (en) Method and system for detecting IP address of DNS (Domain name Server) outlet server
CN101841520B (en) Domain name system and information processing method and device for domain name system
CN109067930A (en) Domain name cut-in method, domain name analytic method, server, terminal and storage medium
CN111314450B (en) Data transmission method and device, electronic equipment and computer storage medium
US20080288470A1 (en) Method and System for Distributed Dns Resolution
CN111885216B (en) DNS query method, device, equipment and storage medium
CN104378452A (en) Method, device and system for domain name resolution
CN103685213A (en) Device, system and method for reducing attacks on DNS
CN111726428A (en) Method, device, equipment and storage medium for selecting authoritative server
CN109561165A (en) Domain name system configuration method and relevant apparatus
CN109413224B (en) Message forwarding method and device
CN101599857A (en) Detect method, device and the network measuring system that inserts number of host of sharing
CN111787129A (en) Method and system for configuring local DNS server for client
RU2008121872A (en) NEAREST NODE FOR CONNECTIONS OF DISTRIBUTED SERVICES
CN113760562A (en) Link tracking method, device, system, server and storage medium
CN115242882B (en) Method and device for accessing k8s container environment based on transport layer route
CN117061410A (en) IP address access method, internet of things platform, equipment, system and electronic equipment
JP6233846B2 (en) Variable-length nonce generation
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN110865845B (en) Method for improving interface access efficiency and storage medium
CN109379453B (en) Method and system for detecting IP address of DNS (Domain name Server) outlet server
CN109451047B (en) Data transmission method, device, equipment and storage medium of monitoring alarm system
CN104869182A (en) Domain name resolution method and device
WO2017007982A1 (en) Passive delegations and records

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