CN114928588B - Server connection method, internet of things equipment, domain name server and regional server - Google Patents

Server connection method, internet of things equipment, domain name server and regional server Download PDF

Info

Publication number
CN114928588B
CN114928588B CN202210533022.9A CN202210533022A CN114928588B CN 114928588 B CN114928588 B CN 114928588B CN 202210533022 A CN202210533022 A CN 202210533022A CN 114928588 B CN114928588 B CN 114928588B
Authority
CN
China
Prior art keywords
server
area
internet
connection
domain name
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
CN202210533022.9A
Other languages
Chinese (zh)
Other versions
CN114928588A (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.)
Quectel Wireless Solutions Co Ltd
Original Assignee
Quectel Wireless Solutions 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 Quectel Wireless Solutions Co Ltd filed Critical Quectel Wireless Solutions Co Ltd
Priority to CN202210533022.9A priority Critical patent/CN114928588B/en
Publication of CN114928588A publication Critical patent/CN114928588A/en
Application granted granted Critical
Publication of CN114928588B publication Critical patent/CN114928588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/3025Domain name generation or assignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to the technical field of the Internet of things and discloses a server connection method, internet of things equipment, a domain name server and a regional server. The server connection method comprises the following steps: sending a request message to a domain name server; the request message is used for requesting the connection address of the regional server corresponding to the domain name; receiving a connection address of a first area server corresponding to the domain name, and initiating connection to the first area server according to the connection address so that the first area server can judge whether the area server of the area where the Internet of things equipment belongs is the first area server or not; and if the connection address of the second area server sent by the first area server is received, initiating connection to the second area server according to the connection address of the second area server. The method and the system have the advantages that different server addresses do not need to be preset for the Internet of things equipment in different areas, and management cost of the Internet of things equipment in links of production, logistics, sales and the like is reduced.

Description

Server connection method, internet of things equipment, domain name server and regional server
Technical Field
The embodiment of the invention relates to the technical field of the Internet of things, in particular to a server connection method, internet of things equipment, a domain name server and a regional server.
Background
The internet of things device usually needs to preset a fixed server address when leaving the factory, so that the device can automatically connect to a designated server without human participation.
In a scenario that multiple sets of servers are deployed in multiple areas, for example, the servers are deployed in areas such as north america, europe, asia and the like, each area has a server address, and the internet of things devices in different areas are connected with the servers in the areas where the internet of things devices in different areas are located, so that different server addresses need to be preset for the internet of things devices in different areas when leaving a factory, but management cost of the devices in links such as production, logistics, sales and the like can be increased.
Disclosure of Invention
The embodiment of the invention aims to provide a server connection method, internet of things equipment, a domain name server and an area server, so that different server addresses do not need to be preset for the Internet of things equipment in different areas, and the management cost of the Internet of things equipment in links of production, logistics, sales and the like is reduced.
In order to solve the technical problems, the embodiment of the invention provides a method for connecting a server, which is applied to internet of things equipment and comprises the following steps: sending a request message to a domain name server; the request message is used for requesting a connection address of an area server corresponding to the domain name, and the domain name server stores the corresponding relation between the domain name and the area server; receiving a connection address of a first area server corresponding to the domain name, and initiating connection to the first area server according to the connection address so that the first area server can judge whether the area server of the area where the Internet of things equipment belongs is the first area server or not; if the connection address of the second area server sent by the first area server is received, initiating connection to the second area server according to the connection address of the second area server; each area server stores the connection address of the area server of the area where each piece of internet of things equipment belongs, and the second area server is the area server of the area where the piece of internet of things equipment belongs.
In order to solve the above technical problem, the embodiment of the present invention further provides a method for connecting a server, which is applied to a domain name server, including: receiving a request message sent by the Internet of things equipment and used for requesting a connection address of a region server corresponding to the domain name; wherein the request message carries a domain name; acquiring a connection address of a first area server corresponding to the carried domain name according to the corresponding relation between the pre-stored domain name and the area server; the corresponding relation between the domain name and the area server is one-to-many, and the first area server is any area server corresponding to the carried domain name; and returning the connection address of the first area server to the Internet of things equipment so that the Internet of things equipment initiates connection to the first area server.
In order to solve the above technical problem, an embodiment of the present invention further provides a method for connecting a server, which is applied to an area server, including: if a connection request initiated by the Internet of things equipment is received, judging whether an area server of an area where the Internet of things equipment belongs is the area server or not; if the area server of the area to which the Internet of things equipment belongs is not the area server, connection of the Internet of things equipment is refused, and according to the pre-stored connection addresses of the area servers of the areas to which the Internet of things equipment belongs, the connection addresses of the area servers of the areas to which the Internet of things equipment belongs are sent to the Internet of things equipment, so that the Internet of things equipment can initiate connection to the area server of the area to which the Internet of things equipment belongs.
In order to solve the above technical problem, an embodiment of the present invention further provides an internet of things device, including: the sending module is used for sending a request message to the domain name server; the request message is used for requesting a connection address of an area server corresponding to the domain name, and the domain name server stores the corresponding relation between the domain name and the area server; the receiving module is used for receiving the connection address of the first area server corresponding to the domain name, and initiating connection to the first area server according to the connection address so that the first area server can judge whether the area server of the area where the Internet of things equipment belongs is the first area server or not; the connection module is used for initiating connection to the second area server according to the connection address of the second area server under the condition that the connection address of the second area server sent by the first area server is received; each area server stores the connection address of the area server of the area where each piece of internet of things equipment belongs, and the second area server is the area server of the area where the piece of internet of things equipment belongs.
In order to solve the above technical problem, an embodiment of the present invention further provides a domain name server, including: the receiving module is used for receiving a request message sent by the Internet of things equipment and used for requesting the connection address of the area server corresponding to the domain name; wherein the request message carries a domain name; the acquisition module is used for acquiring a connection address of the first area server corresponding to the carried domain name according to the corresponding relation between the pre-stored domain name and the area server; the corresponding relation between the domain name and the area server is one-to-many, and the first area server is any area server corresponding to the carried domain name; the address returning module is used for returning the connection address of the first area server to the internet of things equipment so that the internet of things equipment can initiate connection to the first area server.
In order to solve the above technical problem, an embodiment of the present invention further provides an area server, including: the judging module is used for judging whether the area server of the area where the Internet of things equipment belongs is an area server or not under the condition that the connection request initiated by the Internet of things equipment is received; the execution module is used for rejecting the connection of the internet of things equipment under the condition that the area server of the area where the internet of things equipment belongs is not the area server, and sending the connection address of the area server of the area where the internet of things equipment belongs to the internet of things equipment according to the prestored connection address of the area server of the area where the internet of things equipment belongs to, so that the internet of things equipment can initiate connection to the area server of the area where the internet of things equipment belongs to.
In order to solve the above technical problem, an embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, so that the at least one processor can execute the server connection method applied to the internet of things device, the server connection method applied to the domain name server, or the server connection method applied to the regional server.
To solve the above technical problem, an embodiment of the present invention further provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the above server connection method applied to an internet of things device, or implements the above server connection method applied to a domain name server, or implements the above server connection method applied to a regional server.
Compared with the prior art, the embodiment of the invention sends the request message for requesting the connection address of the area server corresponding to the domain name server, and because the request message carries the domain name and the corresponding relation of the area server is stored in the domain name server, after receiving the connection address of the first area server corresponding to the domain name returned by the domain name server, the connection can be initiated to the first area server according to the connection address, so that the first area server judges whether the area server of the area where the internet of things device belongs to is the first area server, in addition, as the connection addresses of the area servers of the areas where the internet of things device belongs to are stored in the area servers, if the first area server judges that the area server of the area where the internet of things device belongs to is not the first area server, the internet of things device can receive the connection address of the second area server sent by the first area server, and then the internet of things device can successfully connect the second area server to the second area server according to the connection address of the second area server, and the internet of things device can successfully connect the second area server. Therefore, when the Internet of things equipment leaves the factory, different server addresses are not required to be set for the Internet of things equipment in different areas, only one unified domain name address is required, and the domain name address corresponds to the connection address of each area server, so that the Internet of things equipment is connected to the area server of the area to which the Internet of things equipment belongs, the Internet of things equipment in different areas can be managed conveniently, and management cost of the Internet of things equipment in links of production, logistics, sales and the like is reduced.
In addition, after initiating connection to the second area server according to the connection address of the second area server, the method further includes: if the connection address of the third area server sent by the second area server is received, disconnecting the connection with the second area server and initiating connection to the third area server; the third area server is an area server of the area of the internet of things equipment after the area of the internet of things equipment is changed. So that when the area to which the Internet of things equipment belongs changes at a certain moment, the Internet of things equipment is connected with the changed area server.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a flowchart of a method for connecting a server according to one embodiment of the present invention;
FIG. 2 is a flow chart diagram II of a method for connecting servers according to an embodiment of the present invention;
FIG. 3 is a flowchart III of a method for server connection according to one embodiment of the present invention;
FIG. 4 is a flowchart fourth of a method for server connection according to one embodiment of the present invention;
fig. 5 is a schematic structural diagram of an internet of things device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a domain name server according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a regional server according to one embodiment of the present invention;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of the embodiments of the present invention will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present invention, and the embodiments can be mutually combined and referred to without contradiction.
One embodiment of the invention relates to a server connection method which is applied to Internet of things equipment. According to the server connection method, different server addresses are not required to be preset for the Internet of things equipment in different areas when the Internet of things equipment leaves a factory, and a unified domain name address is preset for all the Internet of things equipment, and is corresponding to the connection address of each area server, so that the Internet of things equipment is connected to the area server of the area to which the Internet of things equipment belongs, the Internet of things equipment in different areas can be managed conveniently, management cost of the Internet of things equipment in links of production, logistics, sales and the like is reduced, unified production and global delivery of the Internet of things equipment are achieved.
The implementation details of the server connection method of the present embodiment are specifically described below, and the following description is provided only for convenience of understanding, and is not necessary to implement the present embodiment. The specific flow of the server connection method in this embodiment is shown in fig. 1, and includes:
step 101, sending a request message to a domain name server; the request message is used for requesting the connection address of the area server corresponding to the domain name.
Specifically, because the correspondence between the domain name and the area server is stored in the domain name server, when the internet of things device needs to be connected, a request message carrying the domain name is sent to the domain name server first, so as to request the connection address of the area server corresponding to the carried domain name to the domain name server.
In one example, the correspondence between the domain name and the area server is one-to-many, specifically, a unified domain name is applied for all areas in advance, that is, when the internet of things equipment leaves the factory, a unified domain name address is preset for the internet of things equipment in all areas, so that the internet of things equipment can send a request message for requesting the connection address of the area server corresponding to the domain name server (Domain Name Server, DNS) through the domain name address. By presetting unified domain names for all the area internet of things equipment and enabling the domain names to correspond to the connection addresses of all the area servers, different connection addresses do not need to be preset for the area internet of things equipment in different areas when the area internet of things equipment leaves the factory.
Step 102, receiving a connection address of a first area server corresponding to the domain name returned by the domain name server, and initiating connection to the first area server according to the connection address, so that the first area server can judge whether the area server of the area where the internet of things equipment belongs is the first area server.
Specifically, after a request message for requesting a connection address of a region server corresponding to a domain name from a domain name server is received by the internet of things device, the connection address of a first region server corresponding to a carried domain name returned by the domain name server is received, and then connection is initiated to the first region server according to the received connection address of the first region server.
In a specific implementation, if the internet of things device initiates connection to the first area server, the first area server allows the internet of things device to be accessed, namely, the connection with the first area server is successful, the first area server is the area server of the area where the internet of things device belongs, and the internet of things device is kept online and can operate normally; if the first area server refuses the access of the internet of things device, that is, the connection between the internet of things device and the first area server fails, the step 103 is entered to indicate that the first area server is not the area server of the area where the internet of things device belongs.
Step 103, if the connection address of the second area server sent by the first area server is received, connection is initiated to the second area server according to the connection address of the second area server.
Specifically, the first area server refuses the access of the internet of things device, namely, under the condition that the connection between the internet of things device and the first area server fails, as each area server stores the connection address of the area server of the area where each internet of things device belongs, the internet of things device receives the connection address of the second area server of the area where the internet of things device belongs, which is sent by the first area server, and initiates connection to the second area server according to the connection address of the second area server. Because the second area server is the area server of the area where the Internet of things equipment belongs, the second area server allows the Internet of things equipment to be accessed, namely the Internet of things equipment is successfully connected with the second area server, so that the Internet of things equipment is kept online, and subsequent work is performed.
It can be understood that the connection address in this embodiment is an IP address; the correspondence between the domain name and the area server includes: the corresponding relation between the domain name and the IP addresses of the regional servers initiates connection to the corresponding regional server through the IP address of the regional server.
In this embodiment, a request message for requesting a connection address of an area server corresponding to a domain name is sent to the domain name server, and because the request message carries the domain name and the corresponding relation of the area server is stored in the domain name server, after receiving the connection address of a first area server corresponding to the domain name returned by the domain name server, connection can be initiated to the first area server according to the connection address, so that the first area server determines whether the area server of the area to which the internet of things device belongs is the first area server, in addition, since the connection addresses of the area servers of the areas to which the internet of things device belongs are stored in the area servers, if the area server of the area to which the internet of things device belongs is not the first area server, the first area server can send the connection address of a second area server of the area to which the internet of things device belongs to the internet of things device, and then the internet of things device can successfully connect the second area server according to the connection address of the second area server, and then the internet of things device and the internet of things device can successfully connect with the second area server. Therefore, when the Internet of things equipment leaves the factory, different server addresses are not required to be set for the Internet of things equipment in different areas, only one unified domain name address is required, and the domain name address corresponds to the connection address of each area server, so that the Internet of things equipment is connected to the area server of the area to which the Internet of things equipment belongs, the Internet of things equipment in different areas can be managed conveniently, and management cost of the Internet of things equipment in links of production, logistics, sales and the like is reduced.
Another embodiment of the present invention relates to a server connection method, which is applied to an internet of things device, and a specific flow of the server connection method of the present embodiment is shown in fig. 2, and includes:
step 201, sending a request message to a domain name server; the request message is used for requesting the connection address of the area server corresponding to the domain name.
Step 202, receiving a connection address of a first area server corresponding to the domain name returned by the domain name server, and initiating connection to the first area server according to the connection address, so that the first area server can judge whether the area server of the area where the internet of things equipment belongs is the first area server.
In step 203, if the connection address of the second area server sent by the first area server is received, connection is initiated to the second area server according to the connection address of the second area server.
Steps 201 to 203 are substantially the same as step 101 and step 103, and will not be described here again.
And step 204, disconnecting the connection with the second area server and initiating connection to the third area server if the connection address of the third area server sent by the second area server is received.
Specifically, after the connection between the internet of things device and the second area server is initiated and succeeded, at a certain moment later, as the area to which the internet of things device belongs changes, or the triggering of some events, for example, when the operation and maintenance operation is implemented, the internet of things device needs to be connected to another area server to operate, the second area server can acquire the information of the area to which the internet of things device belongs again, and according to the area to which the internet of things device belongs, the connection address of the third area server is sent to the internet of things device, namely, the third area server is the area server of the area to which the internet of things device belongs after the area to which the internet of things device belongs is changed, then the internet of things device is disconnected with the second area server, and connection is initiated to the third area server.
It can be understood that the connection address of the third area server includes an IP address of the third area server, so that when the area to which the internet of things device belongs changes at a certain moment, the internet of things device is connected with the changed area server.
In this embodiment, after the connection between the internet of things device and the area server of the area to which the internet of things device belongs is successful, if the area to which the internet of things device belongs changes at a certain moment, the area server may also send the connection address of the area server of the area to which the internet of things device belongs after the area to which the internet of things device belongs changes to the internet of things device, so that the internet of things device is connected with the area server after the change.
Another embodiment of the present invention relates to a server connection method, applied to a domain name server, where a specific flow of the server connection method in this embodiment is shown in fig. 3, and includes:
step 301, receiving a request message sent by an internet of things device and used for requesting a connection address of a region server corresponding to a domain name; wherein the request message carries a domain name.
Step 302, obtaining a connection address of a first area server corresponding to a carried domain name according to a pre-stored correspondence between the domain name and the area server;
the corresponding relation between the domain name and the area server is one-to-many, and the first area server is any area server corresponding to the carried domain name.
Step 303, returning the connection address of the first area server to the internet of things device, so that the internet of things device initiates connection to the first area server.
It can be understood that, in this embodiment, the connection address is an IP address, and the correspondence between the domain name and the area server includes: correspondence between a domain name and each of the IP addresses of the plurality of regional servers.
In this embodiment, a request message sent by an internet of things device and used for requesting an IP address of any area server is received, according to a pre-stored correspondence between a domain name and an area server, a connection address of a first area server corresponding to the carried domain name is obtained, and then the connection address of the first area server is returned to the internet of things device, so that the internet of things device initiates connection to the first area server, the area to which the internet of things device belongs is prevented from being distinguished, and the connection address of any area server can be returned to the internet of things device.
Another embodiment of the present invention relates to a server connection method, applied to an area server, where a specific flow of the server connection method in this embodiment is shown in fig. 4, and includes:
step 401, if a connection request initiated by the internet of things device is received, determining whether an area server of an area to which the internet of things device belongs is an area server.
Specifically, since the information of the area to which each piece of the internet of things equipment belongs, for example, the information of the area server of the area to which the piece of the internet of things equipment belongs, the connection address of the area server, and the like, are stored in each area server in advance, if the area server receives the connection request initiated by the piece of the internet of things equipment, it is first determined whether the area server of the area to which the piece of the internet of things equipment belongs is the area server to which the piece of the internet of things equipment requests connection.
Step 402, if the area server of the area where the internet of things device belongs is not the area server, rejecting connection of the internet of things device, and sending the connection address of the area server of the area where the internet of things device belongs to the internet of things device according to the pre-stored connection address of the area server of the area where each internet of things device belongs to, so that the internet of things device initiates connection to the area server of the area where the internet of things device belongs to.
In one example, if the internet of things device is an internet of things device in a jurisdiction, connection of the internet of things device is allowed, so that the internet of things device is successfully connected with a regional server of the affiliated region.
Further, under the condition that the connection between the internet of things device and the regional server of the region is successful, because the regional server stores the information of the region of the internet of things device in advance, if the regional server detects that the region of the internet of things device is changed, the regional server can acquire a target regional server of the changed region of the internet of things device, and send the connection address of the target regional server to the internet of things device, so that the internet of things device initiates connection to the target regional server according to the connection address of the target regional server.
According to the method and the device, under the condition that a connection request initiated by the Internet of things device is received, whether the area server of the area to which the Internet of things device belongs is the area server is judged according to the prestored connection address of the area server of the area to which the Internet of things device belongs, and under the condition that the Internet of things device is not the Internet of things device in the jurisdiction area, connection of the Internet of things device is refused, and the connection address of the area server of the area to which the Internet of things device belongs is sent to the Internet of things device, so that the Internet of things device initiates connection to the area server of the area to which the Internet of things device belongs, and the Internet of things device can be connected with the area server to which the Internet of things device belongs, and subsequent operations are completed.
The above examples in this embodiment are examples for easy understanding and are not limited to the technical solution of the present invention.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
Another embodiment of the present invention relates to an internet of things device, in which details of the internet of things device of the present embodiment are specifically described below, and the following is only implementation details provided for facilitating understanding, but is not necessary for implementing the present embodiment, and fig. 5 is a schematic diagram of the internet of things device of the present embodiment, including: a transmitting module 501, a receiving module 502 and a connecting module 503.
Specifically, a sending module 501 is configured to send a request message to a domain name server; the request message is used for requesting a connection address of an area server corresponding to the domain name, and the domain name server stores the corresponding relation between the domain name and the area server.
The receiving module 502 is configured to receive a connection address of a first area server corresponding to the domain name, and initiate connection to the first area server according to the connection address, so that the first area server determines whether the area server of the area where the internet of things device belongs is the first area server.
A connection module 503, configured to initiate connection to the second area server according to the connection address of the second area server when receiving the connection address of the second area server sent by the first area server; each area server stores the connection address of the area server of the area where each piece of internet of things equipment belongs, and the second area server is the area server of the area where the piece of internet of things equipment belongs.
In one example, after initiating a connection to the second area server according to the connection address of the second area server, the connection module 503 is further configured to disconnect from the second area server and initiate a connection to the third area server when receiving the connection address of the third area server sent by the second area server; the third area server is an area server of the area of the internet of things equipment after the area of the internet of things equipment is changed; the connection address of the third zone server includes an IP address of the third zone server.
It is not difficult to find that this embodiment is an example of the internet of things device corresponding to the first embodiment, and this embodiment may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, a detailed description is omitted here. Accordingly, the related art details mentioned in the present embodiment can also be applied to the first embodiment.
Another embodiment of the present invention relates to a domain name server, and fig. 6 is a schematic diagram of the domain name server according to this embodiment, including: a receiving module 601, an acquiring module 602 and an address returning module 603.
Specifically, the receiving module 601 is configured to receive a request message sent by an internet of things device, where the request message is used to request a connection address of a region server corresponding to a domain name; wherein the request message carries a domain name.
The obtaining module 602 is configured to obtain, according to a correspondence between a pre-stored domain name and a domain server, a connection address of a first domain server corresponding to the carried domain name; the corresponding relation between the domain name and the area server is one-to-many, and the first area server is any area server corresponding to the carried domain name.
The address returning module 603 is configured to return, to the internet of things device, a connection address of the first area server, so that the internet of things device initiates connection to the first area server.
It is to be noted that this embodiment is an example of a domain name server corresponding to the third embodiment, and can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still valid in this embodiment, and in order to reduce repetition, a detailed description is omitted here. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the third embodiment.
Another embodiment of the present invention relates to an area server, and fig. 7 is a schematic diagram of the area server according to this embodiment, including: a judgment module 701 and an execution module 702.
Specifically, the determining module 701 is configured to determine, when a connection request initiated by the internet of things device is received, whether an area server of an area to which the internet of things device belongs is an area server.
The execution module 702 is configured to reject connection of the internet of things device if the area server of the area where the internet of things device belongs is not the area server, and send, to the internet of things device, the connection address of the area server of the area where the internet of things device belongs according to the pre-stored connection address of the area server of the area where each internet of things device belongs, so that the internet of things device initiates connection to the area server of the area where the internet of things device belongs.
In one example, the execution module 702 is further configured to allow connection of the internet of things device if the area server of the area where the internet of things device belongs is the area server.
In an example, the execution module 702 is further configured to, after detecting that the area to which the internet of things device belongs is changed, obtain a target area server of the changed area to which the internet of things device belongs; and sending the connection address of the target area server to the internet of things equipment, and enabling the internet of things equipment to initiate connection to the target area server according to the connection address of the target area server.
It is to be noted that this embodiment is an example of a domain name server corresponding to the fourth embodiment, and can be implemented in cooperation with the fourth embodiment. The related technical details mentioned in the fourth embodiment are still valid in this embodiment, and in order to reduce repetition, a detailed description thereof is omitted. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the fourth embodiment.
It should be noted that each of the modules in the fifth, sixth and seventh embodiments is a logic module, and in practical application, one logic unit may be one physical unit, or may be a part of one physical unit, or may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, units that are not so close to solving the technical problem presented by the present invention are not introduced in the present embodiment, but this does not indicate that other units are not present in the present embodiment.
Another embodiment of the present invention relates to an electronic device, as shown in fig. 8, including: at least one processor 801; and a memory 802 communicatively coupled to the at least one processor 801; wherein the memory 802 stores instructions executable by the at least one processor 801, the instructions being executable by the at least one processor 801 to enable the at least one processor 801 to perform the server connection method of the embodiments described above.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the invention and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. The server connection method is characterized by being applied to the Internet of things equipment and comprising the following steps of:
sending a request message to a domain name server; the request message is used for requesting a connection address of a region server corresponding to a domain name, and the domain name server stores a corresponding relation between the domain name and the region server, wherein the domain name is a unified domain name which is applied for all regions in advance, and the corresponding relation between the domain name and the region server is one-to-many;
receiving a connection address of a first area server corresponding to the domain name, and initiating connection to the first area server according to the connection address so that the first area server can judge whether the area server of the area to which the Internet of things equipment belongs is the first area server;
if the connection address of the second area server sent by the first area server is received, initiating connection to the second area server according to the connection address of the second area server; each regional server stores a connection address of a regional server of a region where each piece of internet-of-things equipment belongs, and the second regional server is the regional server of the region where the piece of internet-of-things equipment belongs.
2. The server connection method according to claim 1, further comprising, after the connection is initiated to the second area server according to the connection address of the second area server:
if the connection address of a third area server sent by the second area server is received, disconnecting the connection with the second area server and initiating connection to the third area server;
the third area server is an area server of the area to which the internet of things device belongs after the area to which the internet of things device belongs is changed.
3. A server connection method, applied to a domain name server, comprising:
receiving a request message sent by the Internet of things equipment and used for requesting a connection address of a region server corresponding to the domain name; wherein the request message carries a domain name;
acquiring a connection address of a first area server corresponding to the carried domain name according to a pre-stored corresponding relation between the domain name and the area server; the domain name is a unified domain name which is applied for all areas in advance, the corresponding relation between the domain name and the area server is one-to-many, and the first area server is any area server corresponding to the carried domain name;
and returning the connection address of the first area server to the Internet of things equipment so that the Internet of things equipment initiates connection to the first area server.
4. The server connection method is characterized by being applied to area servers, wherein information of areas where all the Internet of things devices belong is prestored in each area server, and the method comprises the following steps:
if a connection request initiated by the Internet of things equipment is received, judging whether an area server of an area to which the Internet of things equipment belongs is the area server or not;
if the area server of the area to which the Internet of things equipment belongs is not the area server, connection of the Internet of things equipment is refused, and the connection address of the area server of the area to which the Internet of things equipment belongs is sent to the Internet of things equipment according to the prestored connection address of the area server of the area to which the Internet of things equipment belongs, so that the Internet of things equipment initiates connection to the area server of the area to which the Internet of things equipment belongs.
5. The server connection method according to claim 4, further comprising:
if the area server of the area to which the Internet of things equipment belongs is the area server, allowing connection of the Internet of things equipment;
after detecting that the area of the Internet of things equipment is changed, acquiring a target area server of the changed area of the Internet of things equipment;
and sending the connection address of the target area server to the Internet of things equipment so that the Internet of things equipment initiates connection to the target area server according to the connection address of the target area server.
6. An internet of things device, comprising:
the sending module is used for sending a request message to the domain name server; the request message is used for requesting a connection address of a region server corresponding to a domain name, and the domain name server stores a corresponding relation between the domain name and the region server, wherein the domain name is a unified domain name which is applied for all regions in advance, and the corresponding relation between the domain name and the region server is one-to-many;
the receiving module is used for receiving a connection address of a first area server corresponding to the domain name returned by the domain name server, and initiating connection to the first area server according to the connection address so that the first area server can judge whether the area server of the area to which the Internet of things equipment belongs is the first area server or not;
the connection module is used for initiating connection to a second area server according to the connection address of the second area server under the condition that the connection address of the second area server of the area where the Internet of things equipment belongs is received, wherein the connection address is sent by the first area server; each of the area servers stores a connection address of an area server of an area where each of the internet of things devices belongs, and the second area server is the area server of the area where the internet of things device belongs.
7. A domain name server, comprising:
the receiving module is used for receiving a request message sent by the Internet of things equipment and used for requesting the connection address of the area server corresponding to the domain name; wherein the request message carries a domain name;
the acquisition module is used for acquiring a connection address of the first area server corresponding to the carried domain name according to the corresponding relation between the pre-stored domain name and the area server; the domain name is a unified domain name which is applied for all areas in advance, the corresponding relation between the domain name and the area server is one-to-many, and the first area server is any area server corresponding to the carried domain name;
and the address return module is used for returning the connection address of the first area server to the Internet of things equipment so that the Internet of things equipment initiates connection to the first area server.
8. The regional server is characterized in that information of the region where each piece of Internet of things equipment belongs is prestored in each regional server, and the regional server comprises:
the judging module is used for judging whether the area server of the area to which the Internet of things equipment belongs is the area server or not under the condition that the connection request initiated by the Internet of things equipment is received;
the execution module is used for rejecting the connection of the internet of things equipment under the condition that the area server of the area where the internet of things equipment belongs is not the area server, and sending the connection address of the area server of the area where the internet of things equipment belongs to the internet of things equipment according to the prestored connection address of the area server of the area where each internet of things equipment belongs to, so that the internet of things equipment initiates connection to the area server of the area where the internet of things equipment belongs to.
9. An electronic device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the server connection method for an internet of things device according to any one of claims 1 to 2, or the server connection method for a domain name server according to claim 3, or the server connection method for a regional server according to claim 4 or 5.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the server connection method according to any one of claims 1 to 2 applied to an internet of things device, or the server connection method according to claim 3 applied to a domain name server, or the server connection method according to claim 4 or 5 applied to a regional server.
CN202210533022.9A 2022-05-11 2022-05-11 Server connection method, internet of things equipment, domain name server and regional server Active CN114928588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210533022.9A CN114928588B (en) 2022-05-11 2022-05-11 Server connection method, internet of things equipment, domain name server and regional server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210533022.9A CN114928588B (en) 2022-05-11 2022-05-11 Server connection method, internet of things equipment, domain name server and regional server

Publications (2)

Publication Number Publication Date
CN114928588A CN114928588A (en) 2022-08-19
CN114928588B true CN114928588B (en) 2024-02-13

Family

ID=82808508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210533022.9A Active CN114928588B (en) 2022-05-11 2022-05-11 Server connection method, internet of things equipment, domain name server and regional server

Country Status (1)

Country Link
CN (1) CN114928588B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489414A (en) * 2002-08-28 2004-04-14 三星电子株式会社 Wirefree network system and method capable of tracing position of moveable station
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client
CN105897851A (en) * 2015-12-21 2016-08-24 乐视致新电子科技(天津)有限公司 Service area switching method, device and system for terminal device
CN106850813A (en) * 2017-02-14 2017-06-13 合网络技术(北京)有限公司 Network service address changing method and device
CN107888717A (en) * 2017-12-26 2018-04-06 北京搜狐新媒体信息技术有限公司 A kind of domain name determines method, apparatus and electronic equipment
CN108156270A (en) * 2017-11-27 2018-06-12 北京金山安全管理系统技术有限公司 Domain name request treating method and apparatus
CN108270748A (en) * 2016-12-30 2018-07-10 北京酷我科技有限公司 A kind of data transmission method and system
CN109218353A (en) * 2017-06-30 2019-01-15 苏宁云商集团股份有限公司 A kind of method and device of link establishment
CN109714447A (en) * 2018-12-20 2019-05-03 全链通有限公司 Domain name generation method and system based on block chain domain name system
CN110677506A (en) * 2019-08-21 2020-01-10 中国平安财产保险股份有限公司 Network access method, device, computer equipment and storage medium
CN111405079A (en) * 2020-03-06 2020-07-10 深圳市宝能投资集团有限公司 Domain name resolution method and device, storage medium and electronic equipment
CN112260853A (en) * 2020-09-17 2021-01-22 北京大米科技有限公司 Disaster recovery switching method and device, storage medium and electronic equipment
CN112468604A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Method for determining domain name system server, method, device and system for processing request
KR102281389B1 (en) * 2021-04-28 2021-07-22 김소영 Internet access location control system
CN113301173A (en) * 2020-06-09 2021-08-24 阿里巴巴集团控股有限公司 Domain name updating system and method, message forwarding method and server

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489414A (en) * 2002-08-28 2004-04-14 三星电子株式会社 Wirefree network system and method capable of tracing position of moveable station
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client
CN105897851A (en) * 2015-12-21 2016-08-24 乐视致新电子科技(天津)有限公司 Service area switching method, device and system for terminal device
CN108270748A (en) * 2016-12-30 2018-07-10 北京酷我科技有限公司 A kind of data transmission method and system
CN106850813A (en) * 2017-02-14 2017-06-13 合网络技术(北京)有限公司 Network service address changing method and device
CN109218353A (en) * 2017-06-30 2019-01-15 苏宁云商集团股份有限公司 A kind of method and device of link establishment
CN108156270A (en) * 2017-11-27 2018-06-12 北京金山安全管理系统技术有限公司 Domain name request treating method and apparatus
CN107888717A (en) * 2017-12-26 2018-04-06 北京搜狐新媒体信息技术有限公司 A kind of domain name determines method, apparatus and electronic equipment
CN109714447A (en) * 2018-12-20 2019-05-03 全链通有限公司 Domain name generation method and system based on block chain domain name system
CN110677506A (en) * 2019-08-21 2020-01-10 中国平安财产保险股份有限公司 Network access method, device, computer equipment and storage medium
CN112468604A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Method for determining domain name system server, method, device and system for processing request
CN111405079A (en) * 2020-03-06 2020-07-10 深圳市宝能投资集团有限公司 Domain name resolution method and device, storage medium and electronic equipment
CN113301173A (en) * 2020-06-09 2021-08-24 阿里巴巴集团控股有限公司 Domain name updating system and method, message forwarding method and server
CN112260853A (en) * 2020-09-17 2021-01-22 北京大米科技有限公司 Disaster recovery switching method and device, storage medium and electronic equipment
KR102281389B1 (en) * 2021-04-28 2021-07-22 김소영 Internet access location control system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Anonymous authentication based on cloud storage for cross-regional vehicles in VANET;Chunling Chen;2016 IEEE International Conference on Ubiquitous Wireless Broadband (ICUWB);全文 *
TD-LTE网络基于AoA+TA功能的接入控制应用;秦嗣仲;;电信工程技术与标准化(02);全文 *

Also Published As

Publication number Publication date
CN114928588A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
EP3664415B1 (en) Connected gateway server system for real-time vehicle control service
US11096051B2 (en) Connection establishment method, device, and system
US10645001B2 (en) Information transmission method and apparatus, device and storage medium
CN101442344B (en) Method and apparatus for reporting Bluetooth equipment name
CN102136976B (en) Machine transaction control method, device and system
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN110365508B (en) Method for instantiating virtual network function and network function virtualization orchestrator
CN111338670A (en) Robot firmware updating method and device, storage medium and robot
CN104902033B (en) Log in address recording method and device
CN110417876B (en) Session method, node server in distributed system and master control equipment
CN114928588B (en) Server connection method, internet of things equipment, domain name server and regional server
US8645452B2 (en) In-vehicle communication system
EP3972199B1 (en) Open interface management method, electronic device, and storage medium
CN111917810A (en) Cloud communication method and device, user equipment and network equipment
CN109922120B (en) Method and terminal for improving DNS availability
CN110495157B (en) Communication system for serial communication between communication devices
KR101703756B1 (en) Scheduling apparatus of local interconnect network and method thereof
CN114598605A (en) Multi-device management method, first device, center device and storage medium
CN107087312A (en) Full-mesh network creating method and device
CN113347284B (en) Resource access method, resource access device, electronic equipment and storage medium
CN114666302B (en) Domain name resolution method, system, electronic device and storage medium
CN113923109B (en) Network distribution method, electronic equipment and storage medium
CN111294374A (en) Heterogeneous equipment starting system, method and device and electronic equipment
CN113157615B (en) Service bus communication method, electronic equipment and computer storage medium

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