WO2020233159A1 - 网络异常处理方法、装置以及家电设备 - Google Patents

网络异常处理方法、装置以及家电设备 Download PDF

Info

Publication number
WO2020233159A1
WO2020233159A1 PCT/CN2020/072722 CN2020072722W WO2020233159A1 WO 2020233159 A1 WO2020233159 A1 WO 2020233159A1 CN 2020072722 W CN2020072722 W CN 2020072722W WO 2020233159 A1 WO2020233159 A1 WO 2020233159A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
network
abnormality
local area
area network
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.)
Ceased
Application number
PCT/CN2020/072722
Other languages
English (en)
French (fr)
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.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Air Conditioning Equipment 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 Midea Group Co Ltd, GD Midea Air Conditioning Equipment Co Ltd filed Critical Midea Group Co Ltd
Publication of WO2020233159A1 publication Critical patent/WO2020233159A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06—Management of faults, events, alarms or notifications
    • H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08—Configuration management of networks or network elements
    • H04L41/0803—Configuration setting
    • H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00—Network arrangements, protocols or services for addressing or naming
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00—Network arrangements, protocols or services for addressing or naming
    • H04L61/50—Address allocation
    • H04L61/5007—Internet protocol [IP] addresses
    • H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00—Network arrangements, protocols or services for addressing or naming
    • H04L61/50—Address allocation
    • H04L61/5046—Resolving address allocation conflicts; Testing of addresses

Definitions

  • This application relates to the field of communication technology, and in particular to a method and device for processing network abnormalities, and household appliances.
  • IP address Internet Protocol Address
  • DHCP Dynamic Host Configuration Protocol
  • the router when obtaining an IP address from the router through the DHCP protocol, the router’s DHCP server cannot find the IP address assigned to the home appliance.
  • the IP address may have been assigned to other devices through the DHCP protocol, causing the home appliance to use the obtained IP address for processing.
  • the network connection fails.
  • This application aims to solve one of the technical problems in the related technology at least to a certain extent.
  • This application proposes a network abnormality processing method, device, and household electrical appliances, so that when the network connection of the equipment fails and the abnormality is determined, it can automatically detect that the cause of the abnormality is an IP address conflict, thereby solving the problem of the network connection of the equipment in the prior art
  • the server cannot be connected to the server due to an IP address conflict, it is a technical problem that wastes a lot of time when manually troubleshooting the cause of the abnormality.
  • the embodiment of the first aspect of the present application proposes a network exception processing method, including:
  • the network connection of the device fails and it is determined that there is an abnormality
  • the device queries the free first IP address in the local area network
  • the device modifies the IP address from the pre-configured second IP address to the first IP address
  • the device queries to obtain the physical address corresponding to the second IP address, and determines that the abnormality is an IP address conflict.
  • the embodiment of the second aspect of the present application proposes a network abnormality processing device, including:
  • Confirm module used for network connection failure, confirm that there is an abnormality
  • the query module is used to query the free first IP address in the local area network
  • a first modification module configured to modify an IP address from a pre-configured second IP address to the first IP address
  • the detection module is configured to query and obtain the physical address corresponding to the second IP address, and determine that the abnormality is an IP address conflict.
  • the embodiment of the third aspect of the present application proposes a household electrical appliance, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the program, the implementation is as in the above-mentioned embodiment The network exception handling method described in.
  • the embodiment of the fourth aspect of the present application proposes a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method for handling network exceptions as described in the above-mentioned embodiment is implemented.
  • the device queries the free first IP address in the local area network, the device changes the IP address from the pre-configured second IP address to the first IP address, and the device queries the second IP
  • the physical address corresponding to the address is determined to be an IP address conflict.
  • the device sequentially inquires the physical address corresponding to each IP address in the network segment of the LAN, determines whether each IP address in the network segment has a corresponding physical address, and determines whether there is a corresponding physical address according to whether each IP address exists
  • the idle first IP address when it is determined that there is no idle first IP address, request the router of the LAN to perform IP address assignment again; when it is determined that there is an IP address that has not been queried, the physical address of the IP address will not be queried Address, as the first free IP address.
  • the physical address corresponding to each IP address in the network segment of the local area network is inquired to determine the free first IP address or request the router of the local area network to redistribute the IP address, ensuring that the device is in the process of network connection and avoiding IP address conflicts The technical problem that caused the connection to the server to fail.
  • the device after determining that the device fails to connect to the network due to an IP address conflict, modify the physical address of the device, and modify the IP address of the device to the third IP address corresponding to the modified physical address, thereby avoiding the problem in the prior art
  • the device cannot connect to the server due to the technical problem of the IP address conflict, which automatically detects the IP address conflict and modifies the IP address so that the device can successfully connect to the server.
  • FIG. 1 is a schematic flowchart of a method for processing network exceptions provided in Embodiment 1 of this application;
  • FIG. 2 is a schematic flowchart of a method for processing network exceptions according to Embodiment 2 of this application;
  • FIG. 3 is a schematic flowchart of a method for processing network exceptions provided in Embodiment 3 of this application;
  • FIG. 4 is a schematic structural diagram of a network abnormality processing apparatus provided in Embodiment 4 of this application.
  • the DHCP server of the router cannot find the IP address configured for the device, and may have been assigned to other devices through the DHCP protocol, resulting in The technical problem of network connection failure occurs when the device uses the IP address to connect to the network.
  • this application proposes a network abnormality processing method.
  • the network connection of the device is failed to determine that there is an abnormality.
  • the device queries the idle first IP address in the local area network, and the device preconfigures the IP address
  • the second IP address of is modified to the first IP address, the device queries the physical address corresponding to the second IP address, and determines that the abnormality is an IP address conflict.
  • FIG. 1 is a schematic flowchart of a method for handling network exceptions provided in Embodiment 1 of this application.
  • the method for handling network abnormalities is executed by the home appliance side, and specifically includes the following steps:
  • Step 101 The device network connection fails, and it is determined that there is an abnormality.
  • the device requests the router of the local area network to obtain a static IP address through the DHCP protocol, so as to connect to the server according to the obtained static IP address.
  • the router of the local area network obtains a static IP address through the DHCP protocol, so as to connect to the server according to the obtained static IP address.
  • the static IP address is a fixed IP address allocated to the device for a long time using the TCP/IP protocol.
  • the IP address is composed of 4 8-octets separated by dots. For example, 192.168.0.1 is an IP address. This format is called dotted decimal format.
  • the DHCP protocol is a network protocol for a local area network. It works with the UDP protocol. It has the following two purposes: first, to automatically assign IP addresses to internal networks or network service providers; second, to users or internal networks The administrator serves as a means for central management of all computers.
  • the device connects to the server by requesting the static IP address obtained by the router of the LAN through the DHCP protocol, the connection is successful, and the device enters the normal working stage.
  • the device uses the DHCP protocol to request a static IP address from the router on the LAN to connect to the server, the network connection fails. In this case, it is determined that the network connection is abnormal.
  • the static IP address assigned by the router to the device may have been assigned to other devices through the DHCP protocol, but the DHCP protocol of the router cannot find that the static IP address has been occupied. In this case, when the device uses a static IP address for network connection, the network connection will fail.
  • Step 102 The device queries the free first IP address in the local area network.
  • the device connection fails and the network connection is abnormal. This may be because the static IP address requested by the DHCP protocol from the router is occupied by other devices, resulting in IP address conflicts and device network connection failure.
  • the device queries the network segment of the router's local area network through the DHCP protocol and obtains the free first IP address through the Address Resolution Protocol (ARP).
  • ARP Address Resolution Protocol
  • the free first IP address refers to an IP address that is not configured on other devices. Since the free IP address does not have a corresponding physical address, the IP address for which no physical address is found can be used as the free first IP address.
  • Step 103 The device modifies the IP address from the pre-configured second IP address to the first IP address.
  • the second IP address is the above-mentioned request to the router to obtain a static IP address through the DHCP protocol.
  • the IP address is defined as the second IP address.
  • the device Because the device requests the router to obtain a static IP address through the DHCP protocol, it may be occupied by other devices, causing the device's network connection to fail. In this case, in order to determine that the device's failure to connect to the network is caused by an IP address conflict, the device will change the IP address from the pre-configured second IP address to the first IP address after finding a free first IP address in the LAN .
  • the second IP address pre-configured for the device is 192.168.1.1 after the DHCP protocol requests the router, after the device fails to connect to the network through the second IP address request, the free first IP address is found in the LAN It is 192.168.1.2. At this time, the device changes the IP address to 192.168.1.2.
  • Step 104 The device queries the physical address corresponding to the second IP address, and determines that the abnormality is an IP address conflict.
  • the physical address also referred to as a media access control (Media Access Control, hereinafter referred to as MAC) address
  • MAC Media Access Control
  • the device queries the physical address corresponding to the second IP address through the ARP protocol. If the physical address corresponding to the second IP address can be successfully inquired, it can be determined that the network connection failure of the device is caused by an IP address conflict.
  • the device fails to connect to the network using the pre-configured second IP address, and it can be determined that the abnormality is an IP address conflict.
  • the network connection of the device fails to determine that there is an abnormality
  • the device queries the free first IP address in the local area network
  • the device modifies the IP address from the pre-configured second IP address to the first IP address
  • the device queries the physical address corresponding to the second IP address, and determines that the abnormality is an IP address conflict.
  • the problem of IP address conflicts can be automatically detected when the device network connection is abnormal, which solves the problem that the device in the prior art cannot connect to the server during the network connection process.
  • the user needs to manually find the reason for the network connection failure. A technical problem that causes a lot of wasted time.
  • step 102 of the foregoing embodiment when the device queries the free first IP address in the local area network, as a possible implementation, the device can query the physical address corresponding to each IP address in the network segment of the local area network, and further, judge the local area network Whether each IP address in the network segment has a corresponding physical address, the IP address that has not been queried for the physical address is used as the free first IP address. See the second embodiment for the specific implementation process.
  • FIG. 2 is a schematic flowchart of a method for handling network exceptions provided in Embodiment 2 of the application.
  • Step 201 The device sequentially queries the physical address corresponding to each IP address in the network segment of the local area network.
  • the device when the device requests a static IP address obtained from the router to connect to the server through the DHCP protocol, after the network connection fails, the physical address corresponding to each IP address can be sequentially queried in the network segment of the local area network.
  • Step 202 Determine whether each IP address in the network segment has a corresponding physical address.
  • step 203 is performed sequentially.
  • step 204 is executed.
  • Step 203 The device determines that there is no idle first IP address, and requests the router of the local area network to re-allocate the IP address.
  • the device determines that each IP address in the network segment has a corresponding physical address, it indicates that there is no idle first IP address in the network segment of the local area network. In this case, the device needs to request the router of the LAN through DHCP to re-allocate the IP address, so as to connect to the network according to the re-obtained IP address.
  • Step 204 Use the IP address for which no physical address is found as the first free IP address.
  • the device may use the IP address for which no physical address is found as the free first IP address.
  • the device when the device sequentially queries the physical address corresponding to each IP address in the network segment of the local area network, the first IP address that has not been queried may be used as the free first IP address. In this case, there is no need to sequentially query the physical addresses of the remaining IP addresses in the network segment, which saves query time to a certain extent.
  • an IP address in the process of sequentially querying the physical address corresponding to each IP address in the network segment of the local area network, an IP address can be randomly selected from all the IP addresses that have not been queried as the idle The first IP address.
  • the device sequentially inquires the physical address corresponding to each IP address in the network segment of the local area network to determine whether each IP address in the network segment has a corresponding physical address, so as to determine whether each IP address has a corresponding physical address Whether there is a free first IP address, when it is determined that there is no free first IP address, request the router of the LAN to redistribute the IP address; when it is determined that there is an IP address that has not been queried, the physical address will not be queried IP address as the first free IP address.
  • the physical address corresponding to each IP address in the network segment of the local area network is inquired to determine the free first IP address or request the router of the local area network to redistribute the IP address, ensuring that the device is in the process of network connection and avoiding IP address conflicts The technical problem that caused the connection to the server to fail.
  • the physical address modified by the device can be used to request the LAN router to assign an IP address to the modified physical address to avoid the problem of IP address conflict. See the third embodiment for the specific implementation process.
  • FIG. 3 is a schematic flowchart of a method for processing network exceptions provided in Embodiment 3 of this application;
  • the specific implementation process of the method includes the following steps:
  • Step 301 The device requests the router of the local area network to allocate a second IP address.
  • the device when the device is turned on to connect to the network, it must first request the router of the local area network to allocate a second IP address through the DHCP protocol.
  • Step 302 The device configures the IP address as the second IP address.
  • the device after the device obtains the second IP address assigned by the router of the local area network, it configures the IP address of the device as the second IP address to use the second IP address to connect to the server.
  • the second IP address assigned to the device by the router may have been assigned to other devices through the DHCP protocol, but the DHCP protocol of the router cannot find that the second IP address has been occupied. In this case, when the device uses the second IP address to connect to the network, the network connection will fail.
  • Step 303 The device network connection fails, and it is determined that there is an abnormality.
  • Step 304 The device queries the free first IP address in the local area network.
  • Step 305 The device modifies the IP address from the pre-configured second IP address to the first IP address.
  • Step 306 The device queries the physical address corresponding to the second IP address, and determines that the abnormality is an IP address conflict.
  • step 303 to step 306 please refer to the implementation process of step 101 to step 104 in the foregoing embodiment, which will not be repeated here.
  • Step 307 The device modifies the physical address.
  • the physical address of the device when it is determined that the network connection failure of the device is caused by the IP address conflict of the device, further, the physical address of the device can be modified by manual operation.
  • Step 308 The device requests the router of the local area network to assign a third IP address to the modified physical address.
  • the router of the local area network under the DHCP protocol can request to allocate an IP address to the modified physical address.
  • the IP address allocated to the modified physical address may be defined as the third IP address.
  • Step 309 The device modifies the IP address from the first IP address to the third IP address.
  • the device modifies its own IP address from the first IP address to the third IP address, thereby avoiding the problem of IP address conflicts.
  • the IP address of the device needs to be modified to the third IP address to ensure that the modified physical address corresponds to When the third IP address is connected to the router, there will be no IP address conflict.
  • the device requests the router of the local area network to allocate a second IP address, configures the IP address as the second IP address, and uses the second IP address to fail the network connection. Determine that there is an abnormality. First IP address, change the IP address from the pre-configured second IP address to the first IP address, query the physical address corresponding to the second IP address, determine that the abnormality is an IP address conflict, the device modifies the physical address, and requests the router of the LAN Assign a third IP address to the modified physical address, and modify the IP address from the first IP address to the third IP address.
  • the physical address of the device is modified, and the IP address of the device is modified to the third IP address corresponding to the modified physical address, thereby avoiding the device in the prior art.
  • the IP address conflict is automatically detected, and the IP address is modified so that the device can successfully connect to the server.
  • the embodiment of the present application also provides a device corresponding to the method in the first embodiment, see the fourth embodiment.
  • FIG. 4 is a schematic structural diagram of a network abnormality processing apparatus provided by an embodiment of the application.
  • the network abnormality processing device 100 includes: a determination module 110, a query module 120, a first modification module 130, and a detection module 140.
  • the determining module 110 is used to determine that there is an abnormality when the network connection fails.
  • the query module 120 is used to query the free first IP address in the local area network.
  • the first modification module 130 is configured to modify the IP address from the pre-configured second IP address to the first IP address.
  • the detection module 140 is configured to query and obtain the physical address corresponding to the second IP address, and determine that the abnormality is an IP address conflict.
  • the network abnormality processing apparatus 100 may further include:
  • the second modification module is used for the device to modify the physical address
  • the first request module is used for the device to request the router of the local area network to assign a third IP address to the modified physical address
  • the third modification module is used for the device to modify the IP address from the first IP address to the third IP address.
  • the network abnormality processing apparatus 100 may further include:
  • the second request module is used for the device to request the router of the local area network to allocate a second IP address
  • the configuration module is used for the device to configure the IP address as the second IP address.
  • the query module 120 may also be specifically used for:
  • the device sequentially inquires the physical address corresponding to each IP address in the network segment of the local area network; the IP address for which no physical address is found is used as the free first IP address.
  • the query module 120 may also be specifically used for:
  • Each IP address in the network segment has a corresponding physical address, and the device determines that there is no idle first IP address; the device requests the router of the local area network to redistribute the IP address.
  • the network abnormality processing apparatus of the embodiment of the present application determines that there is an abnormality through the device network connection failure, the device queries the free first IP address in the local area network, and the device modifies the IP address from the pre-configured second IP address to the first IP address , The device queries the physical address corresponding to the second IP address, and determines that the abnormality is an IP address conflict.
  • the problem of IP address conflicts can be automatically detected when the device network connection is abnormal, which solves the problem that the device in the prior art cannot connect to the server during the network connection process.
  • the user needs to manually find the reason for the network connection failure. A technical problem that causes a lot of wasted time.
  • the embodiment of the present application provides a household electrical appliance corresponding to method one in the embodiment, see the fifth embodiment.
  • An embodiment of the present application provides a household electrical appliance, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the program, the implementation is as described in the foregoing embodiment.
  • Network exception handling method When the processor executes the program, the implementation is as described in the foregoing embodiment.
  • the device network connection fails, it is determined that there is an abnormality, the device queries the free first IP address in the local area network, the device modifies the IP address from the pre-configured second IP address to the first IP address, and the device query obtains The physical address corresponding to the second IP address is determined to be an IP address conflict.
  • IP address conflicts can be automatically detected when the device network connection is abnormal, which solves the problem that the device in the prior art cannot connect to the server during the network connection process.
  • the user needs to manually find the reason for the network connection failure. A technical problem that causes a lot of wasted time.
  • Embodiment 6 provides a computer-readable storage medium corresponding to the method in the foregoing embodiment, see Embodiment 6.
  • the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method for processing network abnormalities as described in the above-mentioned embodiment is implemented.
  • the device network connection fails, it is determined that there is an abnormality, the device queries the free first IP address in the local area network, the device modifies the IP address from the pre-configured second IP address to the first IP address, and the device query obtains The physical address corresponding to the second IP address is determined to be an IP address conflict.
  • IP address conflicts can be automatically detected when the device network connection is abnormal, which solves the problem that the device in the prior art cannot connect to the server during the network connection process.
  • the user needs to manually find the reason for the network connection failure. A technical problem that causes a lot of wasted time.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present application, "a plurality of” means at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any device that can contain, store, communicate, propagate, or transmit a program for use by an instruction execution system, device, or device or in combination with these instruction execution systems, devices, or devices.
  • computer readable media include the following: electrical connections (electronic devices) with one or more wiring, portable computer disk cases (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable and editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable media on which the program can be printed, because it can be used, for example, by optically scanning the paper or other media, and then editing, interpreting, or other suitable media if necessary. The program is processed in a manner to obtain the program electronically and then stored in the computer memory.
  • each part of this application can be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • Discrete logic gate circuits for implementing logic functions on data signals Logic circuit, application specific integrated circuit with suitable combinational logic gate, programmable gate array (PGA), field programmable gate array (FPGA), etc.
  • the functional units in the various embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

本申请提出一种网络异常处理方法、装置以及家电设备,其中,方法包括:设备网络连接失败,确定存在异常后,在局域网内查询空闲的第一IP地址,设备将IP地址从预先配置的第二IP地址修改为第一IP地址,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。由此,实现了设备网络连接存在异常时,可以自动检测出IP地址冲突问题,解决了现有技术中设备在网络连接过程中,无法连接至服务器时,需要用户手动查找连网失败的原因从而导致大量时间浪费的技术问题。

Description

网络异常处理方法、装置以及家电设备
相关申请的交叉引用
本申请要求广东美的制冷设备有限公司和美的集团股份有限公司于2019年5月21日提交的、发明名称为“网络异常处理方法、装置以及家电设备”的、中国专利申请号“201910423716.5”的优先权。
技术领域
本申请涉及通信技术领域,尤其涉及一种网络异常处理方法、装置以及家电设备。
背景技术
随着物联网以及智能家电技术的快速发展,越来越多的用户通过移动终端设备来实现对智能家电设备的控制,从而智能家电设备首先要接入网络。现有技术中,家电设备在连接网络时,大多通过动态主机设置协议(Dynamic Host Configuration Protocol,以下简称DHCP)向路由器请求获取互联网协议地址(Internet Protocol Address,以下简称IP地址)。进而家电设备使用获取到的IP地址进行通信,直至该IP地址租约到期,再重新申请一个IP地址。
但是,通过DHCP协议向路由器获取IP地址时,路由器的DHCP服务器无法发现配置给家电设备的IP地址可能通过DHCP协议已经将该IP地址分配给其他设备,从而导致家电设备使用获取到的IP地址进行网络连接时,出现网络连接失败的现象。
发明内容
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。
本申请提出一种网络异常处理方法、装置以及家电设备,以实现在设备网络连接失败,确定存在异常后,能够自动检测出异常原因为IP地址冲突,从而解决了现有技术中设备在网络连接过程中,由于IP地址冲突无法连接至服务器时,需要人工手动排查异常原因时浪费大量时间的技术问题。
本申请第一方面实施例提出了一种网络异常处理方法,包括:
设备网络连接失败,确定存在异常;
所述设备在局域网内查询空闲的第一IP地址;
所述设备将IP地址从预先配置的第二IP地址修改为所述第一IP地址;
所述设备查询得到所述第二IP地址对应的物理地址,确定所述异常为IP地址冲突。
本申请第二方面实施例提出了一种网络异常处理装置,包括:
确定模块,用于网络连接失败,确定存在异常;
查询模块,用于在局域网内查询空闲的第一IP地址;
第一修改模块,用于将IP地址从预先配置的第二IP地址修改为所述第一IP地址;
检测模块,用于查询得到所述第二IP地址对应的物理地址,确定所述异常为IP地址冲突。
本申请第三方面实施例提出了一种家电设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如上述实施例中所述的网络异常处理方法。
本申请第四方面实施例提出了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述实施例中所述的网络异常处理方法。
本申请实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:
一方面,通过设备网络连接失败,确定存在异常,设备在局域网内查询空闲的第一IP地址,设备将IP地址从预先配置的第二IP地址修改为第一IP地址,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。由此,实现了设备网络连接存在异常时,可以自动检测出IP地址冲突问题,解决了现有技术中设备在网络连接过程中,无法连接至服务器时,需要用户手动查找连网失败的原因从而导致大量时间浪费的技术问题。
另一方面,通过设备顺序查询局域网的网段内各IP地址对应的物理地址,判断网段内各IP地址是否均存在对应的物理地址,以根据各IP地址是否存在对应的物理地址确定是否存在空闲的第一IP地址,当确定不存在空闲的第一IP地址时,请求局域网的路由器重新进行IP地址分配;当确定存在未查询到物理地址的IP地址时,将未查询到物理地址的IP地址,作为空闲的第一IP地址。该方法通过查询局域网的网段内各IP地址对应的物理地址,以确定空闲的第一IP地址或者请求局域网的路由器重新进行IP地址分配,确保设备在网络连接过程中,避免了由于IP地址冲突导致连接服务器失败的技术问题。
又一方面,在确定设备连网失败是因为IP地址冲突后,修改设备的物理地址,并将设备的IP地址修改为修改后的物理地址对应的第三IP地址,从而避免了现有技术中设备在网络连接过程中,由于IP地址冲突无法连接至服务器的技术问题,实现了自动检测出IP地址冲突,并修改IP地址使得设备能够成功连接至服务器。
附图说明
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显 和容易理解,其中:
图1为本申请实施例一提供的一种网络异常处理方法的流程示意图;
图2为本申请实施例二提供的一种网络异常处理方法的流程示意图;
图3为本申请实施例三提供的一种网络异常处理方法的流程示意图;
图4为本申请实施例四提供的一种网络异常处理装置的结构示意图。
具体实施方式
现有技术中,设备在连网的过程中,通过DHCP协议向路由器请求获取静态IP地址时,路由器的DHCP服务器无法发现配置给设备的IP地址,可能通过DHCP协议已经分配给其他设备,从而导致设备使用IP地址进行网络连接时出现网络连接失败的技术问题。
针对上述现有技术中的技术问题,本申请提出了一种网络异常处理方法,通过设备网络连接失败,确定存在异常,设备在局域网内查询空闲的第一IP地址,设备将IP地址从预先配置的第二IP地址修改为第一IP地址,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。
为了更好的理解上述技术方案,下面将参照附图更详细地描述本申请的示例性实施例。虽然附图中显示了本申请的示例性实施例,然而应当理解,可以以各种形式实现本申请而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本申请的范围完整的传达给本领域的技术人员。
为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。
实施例一
图1为本申请实施例一所提供的一种网络异常处理方法的流程示意图。
如图1所示,该网络异常处理方法由家电设备侧执行,具体包括以下步骤:
步骤101,设备网络连接失败,确定存在异常。
本申请实施例中,设备在连接路由器的过程中,通过DHCP协议向局域网的路由器请求获取静态IP地址,以根据获取到的静态IP地址连接服务器。通过判断设备根据静态IP地址连接服务器时,网络连接是否成功,确定网络连接是否存在异常。
其中,静态IP地址,是使用TCP/IP协议长期分配给设备使用的固定的IP地址。IP地址由用点分隔开的4个8八位组构成,如192.168.0.1就是一个IP地址,这种写法叫点分十进制格式。
需要说明的是,DHCP协议是一个局域网的网络协议,使用UDP协议工作,主要有以下两个用途:第一,给内部网络或网络服务供应商自动分配IP地址;第二,给用户或者内 部网络管理员作为对所有计算机作中央管理的手段。
作为一种可能的情况,设备通过DHCP协议向局域网的路由器请求获取的静态IP地址连接服务器时,能够连接成功,则设备进入正常工作阶段。
作为另一种可能的情况,设备通过DHCP协议向局域网的路由器请求获取的静态IP地址连接服务器时,网络连接失败,这种情况下,确定网络连接存在异常。
本实施例中,路由器分配给设备的静态IP地址可能已经通过DHCP协议分配给其他设备使用,但是路由器的DHCP协议无法发现该静态IP地址已经被占用。这种情况下,设备使用静态IP地址进行网络连接时,将会出现网络连接失败的现象。
步骤102,设备在局域网内查询空闲的第一IP地址。
本申请实施例中,设备连接失败,网络连接存在异常的情况,可能是由于DHCP协议向路由器请求获取的静态IP地址被其他设备占用,从而导致IP地址存在冲突,设备连网失败。
在这种情况下,设备通过DHCP协议向路由器的局域网的网段范围内,通过地址解析协议(Address Resolution Protocol,以下简称ARP)查询得到空闲的第一IP地址。
需要说明的是,在局域网中,IP地址与物理地址是一一对应的关系,空闲的第一IP地址,是指未配置于其他设备的IP地址。由于空闲的IP地址没有对应的物理地址,因此,可以将未查询到物理地址的IP地址,作为空闲的第一IP地址。
步骤103,设备将IP地址从预先配置的第二IP地址修改为第一IP地址。
其中,第二IP地址为上述通过DHCP协议向路由器请求获取静态IP地址,为了便于区分,将该IP地址定义为第二IP地址。
由于设备通过DHCP协议向路由器请求获取静态IP地址可能被其他设备占用,导致设备网络连接失败。这种情况下,为了确定设备连网失败是由于IP地址冲突所致,设备在局域网内查询到空闲的第一IP地址后,将IP地址从预先配置的第二IP地址修改为第一IP地址。
举例来说,假如DHCP协议向路由器请求后给设备预先配置的第二IP地址为192.168.1.1,在设备通过第二IP地址请求服务器连网失败后,在局域网内查询到空闲的第一IP地址为192.168.1.2,此时,设备将IP地址修改为192.168.1.2。
步骤104,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。
其中,物理地址,也称为介质访问控制(Media Access Control,以下简称MAC)地址,是识别局域网节点的标识。
本申请实施例中,设备通过ARP协议查询第二IP地址对应的物理地址,若能够成功查询得到第二IP地址对应的物理地址,则可以确定设备网络连接失败是由于IP地址冲突 导致的。
需要解释的是,设备的IP地址与物理地址是一一对应的,若能通过ARP协议成功查询到第二IP地址对应的物理地址,则说明第二IP地址已经被分配给其他的设备使用了。因此,本实施例中设备使用预先配置的第二IP地址进行网络连接失败,可以确定异常为IP地址冲突。
上述本申请实施例中的技术方案,至少具有如下的技术效果或优点:
本申请实施例的网络异常处理方法,通过设备网络连接失败,确定存在异常,设备在局域网内查询空闲的第一IP地址,设备将IP地址从预先配置的第二IP地址修改为第一IP地址,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。由此,实现了设备网络连接存在异常时,可以自动检测出IP地址冲突问题,解决了现有技术中设备在网络连接过程中,无法连接至服务器时,需要用户手动查找连网失败的原因从而导致大量时间浪费的技术问题。
上述实施例的步骤102中设备在局域网内查询空闲的第一IP地址时,作为一种可能的实现方式,可以通过设备查询局域网的网段内各IP地址对应的物理地址,进一步的,判断局域网的网段内各IP地址是否均存在对应的物理地址,以将未查询到物理地址的IP地址,作为空闲的第一IP地址。具体的实现过程见实施例二。
实施例二
图2为本申请实施例二提供的一种网络异常处理方法的流程示意图。
如图2所示,具体包括以下步骤:
步骤201,设备顺序查询局域网的网段内各IP地址对应的物理地址。
本申请实施例中,在设备通过DHCP协议向路由器请求获取的静态IP地址连接服务器时,网络连接失败后,可以在局域网的网段内顺序查询各IP地址对应的物理地址。
步骤202,判断网段内各IP地址是否均存在对应的物理地址。
由于设备根据局域网的网段IP地址连网成功后,存在与IP地址对应的物理地址。因此,可以通过判断局域网的网段内各IP地址是否均存在对应的物理地址,以确定局域网的网段内是否存在空闲的IP地址。
作为一种可能的情况,设备顺序查询局域网的网段内各IP地址对应的物理地址后,确定网段内各IP地址均存在对应的物理地址时,则顺序执行步骤203。
作为另一种可能的情况,设备顺序查询局域网的网段内各IP地址对应的物理地址后,确定网段内各IP地址并未均存在对应的物理地址。也就是说,网段内存在未查询到物理地址的IP地址,则执行步骤204。
步骤203,设备确定不存在空闲的第一IP地址,请求局域网的路由器重新进行IP地址 分配。
本申请实施例中,设备确定网段内各IP地址均存在对应的物理地址,则说明局域网的网段内不存在空闲的第一IP地址。这种情况下,设备需要通过DHCP向局域网的路由器请求重新进行IP地址的分配,以根据重新获取到的IP地址进行网络连接。
步骤204,将未查询到物理地址的IP地址,作为空闲的第一IP地址。
本申请实施例中,设备确定网段内各IP地址中存在未查询到物理地址的IP地址后,可以将未查询到物理地址的IP地址,作为空闲的第一IP地址。
作为一种可能的实现方式,在设备顺序查询局域网的网段内各IP地址对应的物理地址的过程中,可以将第一个未查询到物理地址的IP地址作为空闲的第一IP地址。这种情况下,不用顺序查询网段内其余的IP地址的物理地址了,在一定程度上节省了查询时间。
作为另一种可能的实现方式,在设备顺序查询局域网的网段内各IP地址对应的物理地址的过程中,可以在所有的未查询到物理地址的IP地址中随机选取一个IP地址,作为空闲的第一IP地址。
需要说明的是,上述将未查询到物理地址的IP地址作为空闲的第一IP地址的实现过程不限于上述两种实现方式,本实施例中仅作为示例性表示,具体地实现过程,本实施例中不做限定。
上述本申请实施例中的技术方案,至少具有如下的技术效果或优点:
本申请实施例中,通过设备顺序查询局域网的网段内各IP地址对应的物理地址,判断网段内各IP地址是否均存在对应的物理地址,以根据各IP地址是否存在对应的物理地址确定是否存在空闲的第一IP地址,当确定不存在空闲的第一IP地址时,请求局域网的路由器重新进行IP地址分配;当确定存在未查询到物理地址的IP地址时,将未查询到物理地址的IP地址,作为空闲的第一IP地址。该方法通过查询局域网的网段内各IP地址对应的物理地址,以确定空闲的第一IP地址或者请求局域网的路由器重新进行IP地址分配,确保设备在网络连接过程中,避免了由于IP地址冲突导致连接服务器失败的技术问题。
作为一种可能的情况,在设备网络连接失败,确定异常为IP地址冲突后,可以通过设备修改的物理地址,请求局域网路由器对修改后的物理地址分配IP地址,以避免IP地址冲突的问题。具体的实现过程见实施例三。
实施例三
图3为本申请实施例三提供的一种网络异常处理方法的流程示意图;
如图3所示,该方法的具体实现过程包括以下步骤:
步骤301,设备请求局域网的路由器分配第二IP地址。
本申请实施例中,设备开机后进行网络连接时,首先要通过DHCP协议向局域网的路 由器请求分配第二IP地址。
步骤302,设备将IP地址配置为第二IP地址。
本申请实施例中,设备获取到局域网的路由器分配的第二IP地址后,将设备的IP地址配置为第二IP地址,以使用第二IP地址连接服务器。
需要说明的是,路由器分配给设备的第二IP地址可能已经通过DHCP协议分配给其他设备使用,但是路由器的DHCP协议无法发现该第二IP地址已经被占用。这种情况下,设备使用第二IP地址进行网络连接时,将会出现网络连接失败的现象。
步骤303,设备网络连接失败,确定存在异常。
步骤304,设备在局域网内查询空闲的第一IP地址。
步骤305,设备将IP地址从预先配置的第二IP地址修改为第一IP地址。
步骤306,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。
本申请实施例中,步骤303至步骤306的实现过程,可以参见上述实施例中步骤101至步骤104的实现过程,在此不再赘述。
步骤307,设备修改物理地址。
本申请实施例中,在确定设备网络连接失败是由于设备的IP地址冲突导致的,进一步,可以通过人工操作的方式修改设备的物理地址。
步骤308,设备请求局域网的路由器对修改后的物理地址分配第三IP地址。
本申请实施例中,设备修改物理地址后,可以通过DHCP协议下个局域网的路由器请求对修改后的物理地址分配IP地址。此处,便于区分,可以将对修改后的物理地址分配的IP地址定义为第三IP地址。
步骤309,设备将IP地址从第一IP地址修改为第三IP地址。
本申请实施例中,设备获取到修改后的物理地址对应的第三IP地址后,设备将自身的IP地址从第一IP地址修改为第三IP地址,从而避免了IP地址冲突的问题。
需要解释的是,由于第一IP地址为从局域网的网段中查询到的临时的IP地址,因此,需要将设备的IP地址修改为第三IP地址,以确保使用修改后的物理地址对应的第三IP地址连接路由器时,不会出现IP地址冲突的现象。
上述本申请实施例中的技术方案,至少具有如下的技术效果或优点:
本实施例的网络异常处理方法,通过设备请求局域网的路由器分配第二IP地址,将IP地址配置为第二IP地址,使用第二IP地址网络连接失败,确定存在异常,在局域网内查询空闲的第一IP地址,将IP地址从预先配置的第二IP地址修改为第一IP地址,查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突,设备修改物理地址,请求局域网的路由器对修改后的物理地址分配第三IP地址,将IP地址从第一IP地址修改为第三IP地 址。由此,在确定设备连网失败是因为IP地址冲突后,修改设备的物理地址,并将设备的IP地址修改为修改后的物理地址对应的第三IP地址,从而避免了现有技术中设备在网络连接过程中,由于IP地址冲突无法连接至服务器的技术问题,实现了自动检测出IP地址冲突,并修改IP地址使得设备能够成功连接至服务器器。
基于同一发明构思,本申请实施例还提供了与实施例一方法对应的装置,见实施例四。
实施例四
图4为本申请实施例提供的一种网络异常处理装置的结构示意图。
如图4所示,该网络异常处理装置100包括:确定模块110、查询模块120、第一修改模块130以及检测模块140。
确定模块110,用于网络连接失败,确定存在异常。
查询模块120,用于在局域网内查询空闲的第一IP地址。
第一修改模块130,用于将IP地址从预先配置的第二IP地址修改为第一IP地址。
检测模块140,用于查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。
作为一种可能的实现方式,网络异常处理装置100,还可以包括:
第二修改模块,用于设备修改物理地址;
第一请求模块,用于设备请求局域网的路由器对修改后的物理地址分配第三IP地址;
第三修改模块,用于设备将IP地址从第一IP地址修改为第三IP地址。
作为另一种可能的实现方式,网络异常处理装置100,还可以包括:
第二请求模块,用于设备请求局域网的路由器分配第二IP地址;
配置模块,用于设备将IP地址配置为所述第二IP地址。
作为另一种可能的实现方式,查询模块120,还可以具体用于:
设备顺序查询局域网的网段内各IP地址对应的物理地址;将未查询到物理地址的IP地址,作为空闲的第一IP地址。
作为另一种可能的实现方式,查询模块120,还可以具体用于:
网段内各IP地址均存在对应的物理地址,设备确定不存在空闲的第一IP地址;设备请求局域网的路由器重新进行IP地址分配。
需要说明的是,前述对网络异常处理方法实施例的解释说明也适用于该实施例的网络异常处理装置,此处不再赘述。
上述本申请实施例中的技术方案,至少具有如下的技术效果或优点:
本申请实施例的网络异常处理装置,通过设备网络连接失败,确定存在异常,设备在局域网内查询空闲的第一IP地址,设备将IP地址从预先配置的第二IP地址修改为第一IP地址,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。由此,实现 了设备网络连接存在异常时,可以自动检测出IP地址冲突问题,解决了现有技术中设备在网络连接过程中,无法连接至服务器时,需要用户手动查找连网失败的原因从而导致大量时间浪费的技术问题。
基于同一发明构思,本申请实施例提供了执行实施例中方法一对应的家电设备,见实施例五。
实施例五
本申请实施例提供了一种家电设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如上述实施例中所述的网络异常处理方法。
上述本申请实施例中的技术方案,至少具有如下的技术效果或优点:
本申请实施例中,通过设备网络连接失败,确定存在异常,设备在局域网内查询空闲的第一IP地址,设备将IP地址从预先配置的第二IP地址修改为第一IP地址,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。由此,实现了设备网络连接存在异常时,可以自动检测出IP地址冲突问题,解决了现有技术中设备在网络连接过程中,无法连接至服务器时,需要用户手动查找连网失败的原因从而导致大量时间浪费的技术问题。
基于同一发明构思,本申请实施例提供了执行上述实施例中方法对应的计算机可读存储介质,见实施例六。
实施例六
本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述实施例中所述的网络异常处理方法。
上述本申请实施例中的技术方案,至少具有如下的技术效果或优点:
本申请实施例中,通过设备网络连接失败,确定存在异常,设备在局域网内查询空闲的第一IP地址,设备将IP地址从预先配置的第二IP地址修改为第一IP地址,设备查询得到第二IP地址对应的物理地址,确定异常为IP地址冲突。由此,实现了设备网络连接存在异常时,可以自动检测出IP地址冲突问题,解决了现有技术中设备在网络连接过程中,无法连接至服务器时,需要用户手动查找连网失败的原因从而导致大量时间浪费的技术问题。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一 个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可 以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (11)

  1. 一种网络异常处理方法,其特征在于,所述方法包括以下步骤:
    设备网络连接失败,确定存在异常;
    所述设备在局域网内查询空闲的第一IP地址;
    所述设备将IP地址从预先配置的第二IP地址修改为所述第一IP地址;
    所述设备查询得到所述第二IP地址对应的物理地址,确定所述异常为IP地址冲突。
  2. 根据权利要求1所述的网络异常处理方法,其特征在于,所述确定所述异常为IP地址冲突之后,还包括:
    所述设备修改物理地址;
    所述设备请求所述局域网的路由器对修改后的物理地址分配第三IP地址;
    所述设备将IP地址从所述第一IP地址修改为所述第三IP地址。
  3. 根据权利要求1所述的网络异常处理方法,其特征在于,所述设备网络连接失败,确定存在异常之前,还包括:
    所述设备请求所述局域网的路由器分配所述第二IP地址;
    所述设备将IP地址配置为所述第二IP地址。
  4. 根据权利要求1-3任一项所述的网络异常处理方法,其特征在于,所述设备在局域网内查询空闲的第一IP地址,包括:
    所述设备顺序查询所述局域网的网段内各IP地址对应的物理地址;
    将未查询到物理地址的IP地址,作为空闲的第一IP地址。
  5. 根据权利要求4所述的网络异常处理方法,其特征在于,所述设备顺序查询所述局域网的网段内各IP地址对应的物理地址之后,还包括:
    所述网段内各IP地址均存在对应的物理地址,所述设备确定不存在空闲的第一IP地址;
    所述设备请求所述局域网的路由器重新进行IP地址分配。
  6. 一种网络异常处理装置,其特征在于,所述装置包括:
    确定模块,用于网络连接失败,确定存在异常;
    查询模块,用于在局域网内查询空闲的第一IP地址;
    第一修改模块,用于将IP地址从预先配置的第二IP地址修改为所述第一IP地址;
    检测模块,用于查询得到所述第二IP地址对应的物理地址,确定所述异常为IP地址冲突。
  7. 根据权利要求6所述的网络异常处理装置,其特征在于,所述装置,还包括:
    第二修改模块,用于所述设备修改物理地址;
    第一请求模块,用于所述设备请求所述局域网的路由器对修改后的物理地址分配第三IP地址;
    第三修改模块,用于所述设备将IP地址从所述第一IP地址修改为所述第三IP地址。
  8. 根据权利要求6所述的网络异常处理装置,其特征在于,所述装置,还包括:
    第二请求模块,用于所述设备请求所述局域网的路由器分配所述第二IP地址;
    配置模块,用于所述设备将IP地址配置为所述第二IP地址。
  9. 根据权利要求6-8任一项所述的网络异常处理装置,其特征在于,所述查询模块,具体用于:
    所述设备顺序查询所述局域网的网段内各IP地址对应的物理地址;
    将未查询到物理地址的IP地址,作为空闲的第一IP地址。
  10. 一种家电设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如权利要求1-5中任一所述的网络异常处理方法。
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-5中任一所述的网络异常处理方法。
PCT/CN2020/072722 2019-05-21 2020-01-17 网络异常处理方法、装置以及家电设备 Ceased WO2020233159A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910423716.5A CN111988153B (zh) 2019-05-21 2019-05-21 网络异常处理方法、装置以及家电设备
CN201910423716.5 2019-05-21

Publications (1)

Publication Number Publication Date
WO2020233159A1 true WO2020233159A1 (zh) 2020-11-26

Family

ID=73436155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/072722 Ceased WO2020233159A1 (zh) 2019-05-21 2020-01-17 网络异常处理方法、装置以及家电设备

Country Status (2)

Country Link
CN (1) CN111988153B (zh)
WO (1) WO2020233159A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026066908A1 (zh) * 2024-09-25 2026-04-02 深圳Tcl数字技术有限公司 网络连接方法、装置、存储介质、电子设备及路由器

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115834336B (zh) * 2021-09-17 2024-08-09 华为技术有限公司 网关地址管理方法、网络接入设备、电子设备及介质
CN115766308B (zh) * 2022-09-21 2024-09-27 慧之安信息技术股份有限公司 一种基于opc-ua的智能家居控制系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480710B1 (en) * 2004-07-13 2009-01-20 Cisco Technology, Inc. Resolving duplication of IP addresses in IP networks
CN102231764A (zh) * 2011-06-22 2011-11-02 华为技术有限公司 网络地址分配的方法和装置
CN105430114A (zh) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 一种ip地址冲突检测方法、系统及接入层设备
CN106331192A (zh) * 2015-06-23 2017-01-11 中兴通讯股份有限公司 网络协议ip地址分配方法及装置
CN106899456A (zh) * 2017-03-14 2017-06-27 深圳市友华通信技术有限公司 一种链路检测与修复的实现方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188354B (zh) * 2013-03-29 2016-05-25 北京东土科技股份有限公司 一种节点地址冲突的检测方法及装置
CN107770294B (zh) * 2016-08-18 2021-12-07 中兴通讯股份有限公司 Evpn中ip地址冲突的处理方法及装置
CN107370647B (zh) * 2017-07-25 2020-03-10 郑州云海信息技术有限公司 一种局域内部控制器系统间互联的方法及一种局域网系统
CN107659934A (zh) * 2017-10-19 2018-02-02 上海斐讯数据通信技术有限公司 一种无线网络连接的控制方法及无线网络接入设备
CN109088959A (zh) * 2018-11-07 2018-12-25 迈普通信技术股份有限公司 一种地址分配方法、装置及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480710B1 (en) * 2004-07-13 2009-01-20 Cisco Technology, Inc. Resolving duplication of IP addresses in IP networks
CN102231764A (zh) * 2011-06-22 2011-11-02 华为技术有限公司 网络地址分配的方法和装置
CN106331192A (zh) * 2015-06-23 2017-01-11 中兴通讯股份有限公司 网络协议ip地址分配方法及装置
CN105430114A (zh) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 一种ip地址冲突检测方法、系统及接入层设备
CN106899456A (zh) * 2017-03-14 2017-06-27 深圳市友华通信技术有限公司 一种链路检测与修复的实现方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026066908A1 (zh) * 2024-09-25 2026-04-02 深圳Tcl数字技术有限公司 网络连接方法、装置、存储介质、电子设备及路由器

Also Published As

Publication number Publication date
CN111988153B (zh) 2022-02-25
CN111988153A (zh) 2020-11-24

Similar Documents

Publication Publication Date Title
CN110505319A (zh) 一种rs485从设备地址自动分配方法及系统
US6738818B1 (en) Centralized technique for assigning I/O controllers to hosts in a cluster
US7953830B2 (en) Automatic network reconfiguration upon changes in DHCP IP addresses
KR101054698B1 (ko) 네트워크에 부착된 물리포트의 가상 인스턴스를 관리하는방법 및 시스템
US20120124242A1 (en) Server and method for testing pxe function of network interface card
TWI448127B (zh) 取得遠端網路位址的方法及其網路協定系統
CN106506717B (zh) 一种自动发现方法及设备
US20050188069A1 (en) Zero-configuring IP addresses for peer-to-peer networks
US20090024724A1 (en) Computing System And System Management Architecture For Assigning IP Addresses To Multiple Management Modules In Different IP Configuration
US8255498B2 (en) Router and method for avoiding IP address conflicts
US20140244860A1 (en) Method To Publish Remote Management Services Over Link Local Network For Zero-Touch Discovery, Provisioning And Management
CN103516547A (zh) 一种网络参数分配方法及装置
TWI638553B (zh) 偵測網際網路協定位址及實體位址的方法
CN112040029A (zh) Nat转换方法、装置、计算机设备及存储介质
JP4684283B2 (ja) ネットワーク上においてdhcpサーバーサービスを提供するdhcpクライアント/サーバーデバイスおよび方法
CN111988153B (zh) 网络异常处理方法、装置以及家电设备
WO2021258861A1 (zh) 一种作业处理方法以及相关设备
US12082294B2 (en) Enterprise fabric extension to extended and external networks without route imports and exports
US20190140897A1 (en) Method for automatically initializing network device, remote server and network system using the same
CN115454896B (zh) 基于smbus的ssd mctp控制消息验证方法、装置、计算机设备及存储介质
CN114448932B (zh) 地址分配方法、装置及电子设备
CN107070725B (zh) 一种服务器两级管理模块间通信握手的方法
US12603841B2 (en) Grouping endpoints of a network for NAT to organize IP address space for policy applications
CN107911494B (zh) 接入IPv6网络的方法、装置、计算机设备以及存储介质
US10353585B2 (en) Methods for managing array LUNs in a storage network with a multi-path configuration and devices thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20810734

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20810734

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20810734

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/08/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20810734

Country of ref document: EP

Kind code of ref document: A1