CN115567393A - Method and system for identifying type of superior gateway - Google Patents

Method and system for identifying type of superior gateway Download PDF

Info

Publication number
CN115567393A
CN115567393A CN202211253365.6A CN202211253365A CN115567393A CN 115567393 A CN115567393 A CN 115567393A CN 202211253365 A CN202211253365 A CN 202211253365A CN 115567393 A CN115567393 A CN 115567393A
Authority
CN
China
Prior art keywords
gateway
message
new
address
superior
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
CN202211253365.6A
Other languages
Chinese (zh)
Inventor
林业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information 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 Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202211253365.6A priority Critical patent/CN115567393A/en
Publication of CN115567393A publication Critical patent/CN115567393A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime

Abstract

The invention discloses a method and a system for identifying the type of a superior gateway, wherein the system comprises a new gateway and the superior gateway, wherein: when a new gateway establishes connection with a superior gateway, the new gateway automatically acquires a local IP address from the superior gateway; a new gateway requests a connection server from a superior gateway through a specified domain name; if the new gateway is successfully connected with the server, the new gateway sends a mac address to the upper gateway through the specified domain name; the upper gateway receives the mac address and performs an operation of searching for the IP based on the mac address to obtain an IP message; the superior gateway returns the IP message to the new gateway through the specified domain name; the new gateway identifies the type of the upper gateway according to the IP message and the local IP address. The technical scheme provided by the invention realizes the function of accurately identifying the type of the superior gateway and ensures the reliability of the new gateway when switching the service.

Description

Method and system for identifying type of superior gateway
Technical Field
The invention relates to the field of communication internet of things, in particular to a method and a system for identifying a superior gateway type.
Background
With the continuous development of the intelligent home IOT gateway/intelligent router, the number of networking devices in a home increases, the house type becomes larger, and in order to expand the signal coverage, multiple gateways are generally selected and expanded.
When a plurality of gateways are connected, a next-level gateway can make certain service change according to the type of a previous-level gateway, for example, when the previous-level gateway is a gateway of a specified type, the next-level gateway switches the network mode of the next-level gateway into a bridge mode or switches a zigbee coordinator into a router mode, and the like, so that roaming of wifi and zigbee in a whole house or other service judgment operation is realized.
As shown in fig. 1, in a general connection process, a WAN port of a new access gateway is accessed to a LAN port of a gateway of a specified type, then a client of a next-stage new access gateway uses a specified domain name to connect to a server of the gateway of the specified type, and after the server is successfully connected, operations such as data interaction and switching of service modes are performed. As shown in fig. 2, when the upper gateway of the new access gateway is a third party manufacturer router, the client of the new access gateway may also be correctly connected to the server of the specified type gateway through the third party manufacturer router using a mode of specifying the domain name, but because the third party manufacturer router has some filtering or hijacking mechanisms, part of the service functions of the specified type gateway may be filtered or hijacked by the third party manufacturer router, and at this time, if the new access gateway is in a trade switching mode, some service errors may occur, for example, network roaming fails after the new access gateway switching mode, a bridge mode is not formed with the third party manufacturer router, which not only cannot expand the signal coverage, but also disconnects the network. Therefore, before the new access gateway automatically switches the mode, the type of the upper gateway needs to be accurately identified, so that the situation of service errors is avoided.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and a system for identifying a type of a superior gateway, so as to implement a function of accurately identifying a type of a superior gateway.
According to a first aspect, the present invention provides a method for identifying an upper gateway type, applied to a new gateway, the method including: when establishing connection with a superior gateway, automatically acquiring a local IP address; requesting a connection server from a superior gateway through a specified domain name; if the server is successfully connected, sending the mac address of the current gateway to the superior gateway through the specified domain name; and receiving an IP message returned by the superior gateway through the appointed domain name, and identifying the type of the superior gateway according to the IP message and the local IP address, wherein the IP message is a result obtained by the superior gateway through an operation of searching for the IP based on the mac address.
Optionally, the identifying the type of the upper level gateway according to the IP message and the IP address includes: and if the IP message representation searching result is empty, determining that the superior gateway is a third-party manufacturer router.
Optionally, the method further comprises: if the IP message contains the searched IP result, comparing the IP result with the local IP address; and if the IP result is inconsistent with the local IP address, determining that the superior gateway is a third-party manufacturer router.
Optionally, the method further comprises: if the IP result is consistent with the local IP address, judging whether the superior gateway model transmitted in the IP message is a specified type model; and if the model of the superior gateway belongs to the specified type model, determining that the superior gateway is the specified type gateway.
According to a second aspect, an embodiment of the present invention provides a method for identifying a type of a superordinate gateway, where the method is applied to the superordinate gateway, and the method includes: when connection with a new gateway is established, a local IP address is allocated to the new gateway; receiving a connection server request sent by the new gateway through a specified domain name, and performing operation of establishing connection based on the connection server request; when the new gateway is successfully connected with the server, receiving a mac address sent by the new gateway through a specified domain name; and performing an operation of searching for the IP based on the mac address, and sending an IP message generated based on a search result to a new gateway, so that the new gateway identifies the type of the upper gateway according to the IP message and the local IP address.
Optionally, if the higher-level gateway is a third-party router, the operation of establishing connection based on the connection server request includes: forwarding the connection server request to a specified type gateway, so that the specified type gateway responds to the connection server request and enables the server to establish connection with the new gateway.
Optionally, if the upper gateway is a third-party router, the operation of searching for an IP based on the mac address and sending an IP message generated based on a search result to a new gateway includes: forwarding the mac address to the gateway of the specified type, so that the gateway of the specified type searches a corresponding IP address according to the mac address, and generating an IP message based on a search result; receiving the IP message sent by the gateway of the specified type, and forwarding the IP message to the new gateway; wherein the IP message representation search result is null or the searched IP result contained in the IP message is inconsistent with the local IP address.
Optionally, if the upper gateway is a gateway of a specified type, the operation of establishing a connection based on the connection server request includes: in response to the connect server request, causing the server to establish a connection with the new gateway.
Optionally, if the upper gateway is a specified type gateway, the operation of searching for an IP based on the mac address and sending an IP message generated based on a search result to a new gateway includes: searching a corresponding IP address according to the mac address, and generating an IP message based on a searching result; sending the IP message to the new gateway; wherein the searched IP result contained in the IP message is consistent with the local IP address.
According to a third aspect, an embodiment of the present invention provides a system for identifying a type of an upper level gateway, including a new gateway and an upper level gateway, where: when the new gateway establishes connection with the superior gateway, the new gateway automatically acquires a local IP address from the superior gateway; the new gateway requests a connection server from the superior gateway through a specified domain name; if the new gateway is successfully connected with the server, the new gateway sends a mac address to the upper gateway through an appointed domain name; the superior gateway receives the mac address and performs an operation of searching for an IP based on the mac address to obtain an IP message; the superior gateway returns the IP message to the new gateway through the specified domain name; and the new gateway identifies the type of the superior gateway according to the IP message and the local IP address.
The technical scheme provided by the application has the following advantages:
according to the technical scheme, when a new gateway is connected with an upper gateway, the upper gateway automatically allocates an IP address to the new gateway through a DHCP protocol, and the new gateway automatically acquires a local IP address from the upper gateway through the DHCP protocol. Then, the new gateway requests a connection server from the upper gateway in a mode of specifying a domain name; if the new gateway is successfully connected with the server, the new gateway sends the mac address of the new gateway to the superior gateway again in a mode of specifying the domain name; after the upper level gateway receives the mac address, the upper level gateway searches for the IP based on the mac address to obtain an IP message, where the IP message may indicate that the IP address is not found or one IP address is found, and the upper level gateway returns the IP message to the new gateway by means of the specified domain name. Because the mode of specifying the domain name is an independent communication channel between the new gateway and the gateway of the specified type, when the upper gateway of the new gateway is the router of the third party manufacturer, the IP of the new gateway is distributed by the router of the third party manufacturer, but the IP message is not inquired by the router of the third party manufacturer, but is inquired and forwarded by the router of the third party manufacturer through the gateway of the specified type, so that the IP address result inquired by the IP message is different from the local IP address distributed by the new gateway, and the new gateway compares and judges according to the IP message and the local IP address, thereby realizing the function of accurately identifying the type of the upper gateway. And then whether to switch the service is determined according to the type of the superior gateway, thereby avoiding the occurrence of service errors and improving the reliability and stability of the new gateway access network.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are schematic and are not to be understood as limiting the invention in any way, and in which:
FIG. 1 is a schematic diagram of a gateway connection structure in the prior art;
FIG. 2 is a schematic diagram of another prior art gateway connection architecture;
fig. 3 is a schematic structural diagram of a system for identifying a superior gateway type according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating steps of a method for identifying a type of a superordinate gateway according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for identifying a type of a superordinate gateway according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a gateway connection structure according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating another gateway connection structure according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 3, in an embodiment, a system for identifying a type of an upper level gateway provided by an embodiment of the present invention includes a new gateway 1 and an upper level gateway 2, where:
when the new gateway 1 establishes connection with the upper gateway 2, the new gateway 1 automatically acquires a local IP address from the upper gateway 2;
the new gateway 1 requests the upper gateway 2 to connect the server through the appointed domain name;
if the new gateway 1 is successfully connected with the server, the new gateway 1 sends a mac address to the upper gateway 2 through an appointed domain name;
the higher gateway 2 receives the mac address and performs an operation of searching for the IP based on the mac address to obtain an IP message;
the upper gateway 2 returns the IP message to the new gateway 1 through the specified domain name;
the new gateway 1 recognizes the type of the upper gateway 2 from the IP message and the local IP address.
Specifically, when the new gateway 1 accesses the upper gateway 2, the IP obtaining mode of the new gateway 1 is set to automatically obtain an IP, the client of the new gateway 1 will automatically obtain a local IP address from the upper gateway 2, and the upper gateway 2 automatically allocates the local IP address to the new gateway 1. When the IP address is obtained, the client of the new gateway 1 requests the upper gateway 2 to connect to the server in a manner of specifying a domain name, when the server is successfully connected, the new gateway 1 sends the gateway information (including but not limited to the gateway name and the model) and the mac address thereof to the upper gateway 2 in a manner of specifying a domain name, the upper gateway 2 performs an IP address query operation based on the received mac address, if the upper gateway 2 is a specified type gateway, the query is directly performed in the stored IP address list, and if the upper gateway 2 is a third party manufacturer router, the third party manufacturer router cannot resolve the communication content of the specified domain name communication manner, so the third party manufacturer router forwards the mac address of the new gateway 1 to the specified type gateway, and also performs an IP address query operation through the specified type gateway, that is, whether the upper gateway 2 is the specified type gateway or the third party manufacturer router, and the main device finally performing the IP query is the specified type gateway. And then the upper gateway 2 returns the IP message containing the query result to the new gateway 1, and the new gateway 1 performs analysis by using the IP message and compares the analysis with the local IP address. If the upper gateway 2 is a router of a third party manufacturer, the local IP address is a local area network segment of the router of the third party manufacturer, the query result in the IP message is the query result of the gateway of the specified type, and if the query result contains the IP address, the result is also the local area network segment of the gateway of the specified type, and the local area network lights of different gateways have difference, so that the new gateway 1 can realize the function of identifying the type of the upper gateway 2 according to the difference between the query result of the IP message and the local IP address, and then the new gateway 1 determines whether to switch services or not, thereby ensuring the reliability and stability of the operation of the new gateway 1.
Specifically, as shown in fig. 4 and fig. 5, in an embodiment, an embodiment of the present invention further provides a method for identifying a type of an upper level gateway, where steps S101 to S104 are applied to the new gateway, and steps S201 to S204 are applied to the upper level gateway, and the specific steps are as follows:
step S101: when the connection with the superior gateway is established, the local IP address is automatically acquired.
Step S201: when a connection is established with a new gateway, the new gateway is assigned a local IP address.
Step S102: and requesting a connection server from the upper gateway by specifying the domain name.
Step S202: and receiving a connection server request sent by the new gateway through the specified domain name, and performing operation of establishing connection based on the connection server request.
Step S103: and if the server is successfully connected, sending the mac address of the current gateway to the superior gateway through the specified domain name.
Step S203: and when the new gateway is successfully connected with the server, receiving the mac address sent by the new gateway through the specified domain name.
Step S204: and performing an operation of searching for the IP based on the mac address, and sending an IP message generated based on the searching result to the new gateway.
Step S104: and receiving an IP message returned by the superior gateway through the specified domain name, and identifying the type of the superior gateway according to the IP message and the local IP address.
Specifically, for the specific principle of the method for identifying the type of the upper level gateway in the embodiment of the present invention, reference may be made to the related description of the above system embodiment, and details are not described herein again.
Specifically, in an embodiment, as shown in fig. 6, if the upper gateway is a third-party router, the step S202 specifically includes the following steps:
the method comprises the following steps: the connection server request is forwarded to the specified type of gateway so that the specified type of gateway establishes a connection with the new gateway in response to the connection server request.
In this embodiment, the step S204 specifically includes the following steps:
step two: and forwarding the mac address to the specified type gateway so that the specified type gateway searches the corresponding IP address according to the mac address and generates an IP message based on the search result.
Step three: and receiving the IP message sent by the gateway of the specified type and forwarding the IP message to the new gateway. The IP message representation searching result is null or the searched IP result contained in the IP message is inconsistent with the local IP address.
In this embodiment, the step S104 specifically includes the following steps:
step four: and if the IP message representation searching result is empty, determining that the superior gateway is the third party manufacturer router.
Step five: and if the IP message contains the searched IP result, comparing the IP result with the local IP address.
Step six: and if the IP result is inconsistent with the local IP address, determining that the superior gateway is the third-party manufacturer router.
Specifically, before explaining the above steps, the principle of DHCP automatically assigning IP addresses is described here, and a gateway (router) has its own intranet, such as a NAT router, so that network segments between gateways are different, for example, the intranet of the gateway is designated as 192.168.18. And if the upper gateway of the new gateway is the third-party manufacturer router, the connection sequence is the specified type gateway- > the third-party manufacturer router- > the new gateway. Thus, the IP of the third party manufacturer router is distributed by the gateway of the designated type, and the IP of the new gateway is distributed by the third party manufacturer router.
Based on the above principle, when a new gateway is connected, after an upper level gateway automatically allocates a local IP address to the new gateway through a DHCP protocol, the new gateway requests a connection server in a manner of specifying a domain name, for example, the domain name is www.aabbccdd.com, which is only by way of example and not limited thereto. When the upper-level gateway is a third-party router, the third-party router is not a direct external interface of the server, so that the third-party router does not support a communication mode of a specified domain name protocol and cannot resolve a connection service request of a new gateway, therefore, if the third-party manufacturer router needs to execute the operation of establishing connection between the new gateway and the server, the third-party manufacturer router can only serve as a transfer agent to forward the request to a specified type gateway of an upper level, and the specified type gateway resolves the request and responds to the request to enable the new gateway to establish connection with the server.
Then, the new gateway sends the information and the mac address of the new gateway to the upper gateway again through the specified domain name, because the communication protocol is still the specified domain name, the upper gateway searches the IP based on the mac address, and sends the mac address of the new gateway to the specified type gateway through the third-party router, so that the specified type gateway responds, when the specified type gateway receives the mac address, the specified type gateway inquires in the IP address list stored locally, because the specified type gateway is a device for distributing the IP address for the third-party router, but not a device for distributing the IP address for the new gateway, the specified type gateway does not store the information and the IP address of the new gateway, the mac address based on the new gateway often cannot be inquired, so that the content of the IP message is empty, and if the content of the IP message is empty, the new gateway can judge that the upper gateway is the third-party manufacturer router.
Suppose that the specified type gateway does query an IP address by using the mac address of the new gateway, but because of different network segments, the IP address queried by the specified type gateway based on the mac address of the new gateway is also different from the IP address obtained by the new gateway, for example, the IP allocated to the third-party router by the WAN port of the new gateway is 192.168.1.2; the WAN port of the third-party router acquires that the IP allocated by the gateway of the specified type is 192.168.18.2; therefore, the specified gateway can only find the equipment (192.168.18) belonging to the network segment of the specified gateway and cannot find the equipment (192.168.1) distributed by the third-party gateway, so that the IP result contained in the IP message returned to the new gateway in the mode of specifying the domain name is also inconsistent with the local IP address of the new gateway, and the new gateway can judge that the upper gateway is the router of the third-party manufacturer.
Specifically, in an embodiment, as shown in fig. 7, if the upper gateway is a gateway of a specified type, the step S202 includes the following steps:
step seven: in response to the connection server request, a connection is established with the new gateway.
In this embodiment, the step S204 specifically includes the following steps:
step eight: and searching the corresponding IP address according to the mac address, and generating an IP message based on the searching result.
Step nine: the IP message is sent to the new gateway. Wherein, the searched IP result contained in the IP message is consistent with the local IP address.
In this implementation, the new gateway performs the steps further including:
step ten: and if the IP result is consistent with the local IP address, judging whether the superior gateway model issued in the IP message is a specified model.
Step eleven: and if the model of the upper gateway belongs to the specified type model, determining that the upper gateway is the specified type gateway.
Specifically, in this embodiment, when the new gateway is connected to the upper gateway, the new gateway automatically obtains a local IP address through a DHCP protocol, the upper gateway automatically allocates the local IP address to the new gateway through the DHCP protocol, and if the upper gateway is the specified type gateway, the mac address, information, and IP address of the new gateway are directly stored in the specified type gateway. And then the client of the new gateway sends a request for connecting the server to the upper gateway in a mode of specifying the domain name, and the upper gateway is an instruction type gateway so that the request can be directly responded, and the new gateway and the server are connected. Then the new gateway continues to send the mac address of the new gateway in a mode of designating the domain name, the superior gateway directly starts to inquire the stored address list after receiving the mac address, finds the corresponding IP address, generates an IP message and returns the IP message to the new gateway in a mode of designating the domain name, and the new gateway can basically judge that the superior gateway is the gateway of the designated type by comparing the consistency of the IP addresses.
In addition, the type of gateway generally refers to the type of gateway, and each manufacturer's router sets the corresponding type, such as TL-XDR5410, TL-XDR6000, ZHA0106, ZHA0107, etc. In order to further improve the identification accuracy and ensure the reliability of the new gateway when switching services, when the new gateway compares that the local IP address is consistent with the address in the IP message, the new gateway also judges whether the model of the upper gateway sent down in the IP message is a specified type model, for example, if the current model of the upper gateway is from ZHA, it is a specified type gateway, and if not, it is not.
Specifically, in an embodiment, before the step S103, if the new gateway fails to connect to the server, it is considered that the connection of the server fails due to some shielding mechanism of the third-party manufacturer router, so that it can be directly determined that the upper gateway is the third-party manufacturer router.
Through the steps, according to the technical scheme provided by the application, when the new gateway is connected with the upper gateway, the upper gateway automatically allocates the IP address to the new gateway through the DHCP protocol, and the new gateway automatically acquires the local IP address from the upper gateway through the DHCP protocol. Then, the new gateway requests a connection server from the upper gateway in a mode of specifying a domain name; if the new gateway is successfully connected with the server, the new gateway sends the mac address of the new gateway to the superior gateway again in a mode of specifying the domain name; after the upper level gateway receives the mac address, the upper level gateway searches for an IP based on the mac address to obtain an IP message, which may indicate that no IP address is found or that an IP address is found, and the upper level gateway returns the IP message to the new gateway by means of the specified domain name. Because the mode of the appointed domain name is an independent communication channel between the new gateway and the gateway of the appointed type, when the upper gateway of the new gateway is a router of a third party manufacturer, the local IP address of the new gateway is distributed by the router of the third party manufacturer, but the received IP message is not inquired by the router of the third party manufacturer, but is inquired and forwarded by the router of the third party manufacturer through the gateway of the appointed type, so that the IP address result inquired by the IP message is different from the local IP address distributed by the new gateway, and the new gateway compares and judges according to the IP message and the local IP address, thereby realizing the function of accurately identifying the type of the upper gateway. And then whether to switch the service is determined according to the type of the superior gateway, thereby avoiding the occurrence of service errors and improving the reliability and stability of the new gateway access network.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for identifying an upper gateway type, applied to a new gateway, the method comprising:
when establishing connection with a superior gateway, automatically acquiring a local IP address;
requesting a connection server from a superior gateway through a specified domain name;
if the server is successfully connected, sending the mac address of the current gateway to the superior gateway through the specified domain name;
and receiving an IP message returned by the superior gateway through the appointed domain name, and identifying the type of the superior gateway according to the IP message and the local IP address, wherein the IP message is a result obtained by the superior gateway through an operation of searching for the IP based on the mac address.
2. The method of claim 1, wherein the identifying the type of the upper level gateway according to the IP message and the IP address comprises:
and if the IP message representation searching result is empty, determining that the superior gateway is the third-party manufacturer router.
3. The method of claim 2, further comprising:
if the IP message contains the searched IP result, comparing the IP result with the local IP address;
and if the IP result is inconsistent with the local IP address, determining that the superior gateway is a third-party manufacturer router.
4. The method of claim 3, further comprising:
if the IP result is consistent with the local IP address, judging whether the superior gateway model issued in the IP message is a specified type model;
and if the model of the superior gateway belongs to the specified type model, determining that the superior gateway is the specified type gateway.
5. A method for identifying a type of a superior gateway, applied to the superior gateway, the method comprising:
when connection with a new gateway is established, a local IP address is allocated to the new gateway;
receiving a connection server request sent by the new gateway through a specified domain name, and performing operation of establishing connection based on the connection server request;
when the new gateway is successfully connected with the server, receiving a mac address sent by the new gateway through a specified domain name;
and performing an operation of searching for the IP based on the mac address, and sending an IP message generated based on a search result to a new gateway, so that the new gateway identifies the type of the upper gateway according to the IP message and the local IP address.
6. The method according to claim 5, wherein if the upper gateway is a third-party router, the operation of establishing connection based on the connection server request comprises:
forwarding the connection server request to a specified type gateway, so that the specified type gateway responds to the connection server request and enables the server to establish connection with the new gateway.
7. The method as claimed in claim 6, wherein the performing an operation of searching for an IP based on the mac address and sending an IP message generated based on the search result to the new gateway includes:
forwarding the mac address to the gateway of the specified type, so that the gateway of the specified type searches a corresponding IP address according to the mac address, and generating an IP message based on a search result;
receiving the IP message sent by the gateway of the specified type, and forwarding the IP message to the new gateway;
wherein the IP message representation search result is null or the searched IP result contained in the IP message is inconsistent with the local IP address.
8. The method according to claim 5, wherein if the upper gateway is a gateway of a specified type, the operation of establishing connection based on the connection server request comprises:
in response to the connection server request, causing the server to establish a connection with the new gateway.
9. The method as claimed in claim 8, wherein the performing an operation of searching for an IP based on the mac address and sending an IP message generated based on the search result to the new gateway includes:
searching a corresponding IP address according to the mac address, and generating an IP message based on a searching result;
sending the IP message to the new gateway;
wherein the searched IP result contained in the IP message is consistent with the local IP address.
10. A system for identifying an upper gateway type, comprising a new gateway and an upper gateway, wherein:
when the new gateway establishes connection with the upper gateway, the new gateway automatically acquires a local IP address from the upper gateway;
the new gateway requests a connection server from the upper gateway through a specified domain name;
if the new gateway is successfully connected with the server, the new gateway sends a mac address to the superior gateway through a specified domain name;
the superior gateway receives the mac address and performs an operation of searching for an IP based on the mac address to obtain an IP message;
the superior gateway returns the IP message to the new gateway through the specified domain name;
and the new gateway identifies the type of the upper gateway according to the IP message and the local IP address.
CN202211253365.6A 2022-10-13 2022-10-13 Method and system for identifying type of superior gateway Pending CN115567393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211253365.6A CN115567393A (en) 2022-10-13 2022-10-13 Method and system for identifying type of superior gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211253365.6A CN115567393A (en) 2022-10-13 2022-10-13 Method and system for identifying type of superior gateway

Publications (1)

Publication Number Publication Date
CN115567393A true CN115567393A (en) 2023-01-03

Family

ID=84744530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211253365.6A Pending CN115567393A (en) 2022-10-13 2022-10-13 Method and system for identifying type of superior gateway

Country Status (1)

Country Link
CN (1) CN115567393A (en)

Similar Documents

Publication Publication Date Title
CN106790732B (en) Address translation method, device and system, and network identification control method and device
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
JP3327225B2 (en) Network address translator and recording medium thereof
US7339895B2 (en) Gateway device and control method for communication with IP and IPV6 protocols
US6507873B1 (en) Network address assigning system
US7826462B2 (en) Address assignment apparatus, address assignment method, and computer product
US6151331A (en) System and method for providing a proxy FARP for legacy storage devices
JP2003008585A (en) Communication controller and communication control method, and communication apparatus and communication method
KR20210054472A (en) Apparatus and mehtod ofr providing information of application server in a mobile communication system
US11595348B2 (en) Method for configuring, method for providing topology information, name service server, device, computer program and computer-readable medium
JPH1013910A (en) Location identifier allocating method and moving host corresponding network
KR100818916B1 (en) Mobile node and data server for providing information on an IP address allocation, and method for providing information on an IP address allocation
JP4699530B2 (en) Methods, systems, and applications for service addressing
US20030126617A1 (en) Method and system for video network discovery
CN110691150A (en) SDN-based IPv4 and IPv6 interconnection method and system
US20060146742A1 (en) Mobile router, position management server, mobile network management system, and mobile network management method
MXPA06011142A (en) Method and apparatus for obtaining server information in a wireless network.
CN114257594B (en) Method for distributing network resource to user network side in distributed system
JP2000112851A (en) Dynamic domain name system and method for managing dynamic domain name
CN104519551B (en) WiFi network DHCP negotiation method and client
JP2003078541A (en) Network connecting device, system, and method
JP3082686B2 (en) MAC bridge control method and device
US20090063671A1 (en) Method, device, software for determining a need
CN115567393A (en) Method and system for identifying type of superior gateway
JPH09282259A (en) Network system

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