WO2018014695A1 - 一种修复包发送、接收方法及装置和故障修复系统 - Google Patents
一种修复包发送、接收方法及装置和故障修复系统 Download PDFInfo
- Publication number
- WO2018014695A1 WO2018014695A1 PCT/CN2017/089366 CN2017089366W WO2018014695A1 WO 2018014695 A1 WO2018014695 A1 WO 2018014695A1 CN 2017089366 W CN2017089366 W CN 2017089366W WO 2018014695 A1 WO2018014695 A1 WO 2018014695A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- embedded device
- faulty embedded
- new
- faulty
- Prior art date
Links
Images
Classifications
-
- 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
Definitions
- the present application relates to the field of device fault processing technologies, and in particular, to a repair packet sending and receiving method and apparatus, and a fault repairing system.
- the faulty embedded device applies for downloading the repair package to the server through U-Boot (Universal Boot Loader) to complete the repair, wherein the U-Boot is the boot program of the embedded device, and the server can be TFTP (Trivial) File Transfer Protocol, Simple File Transfer Protocol) server.
- U-Boot Universal Boot Loader
- TFTP Trivial
- the failed embedded device must be able to connect directly to the server, that is, the failed embedded device is in the same network segment as the server.
- the administrator manually changes the IP address of each faulty embedded device to the IP address of the same network segment as the server through the serial port of each faulty embedded device, so that the faulty embedded device is directly connected to the server. Then complete the fault repair of the faulty embedded device.
- the IP address of the faulty embedded device is manually modified one by one. Therefore, when a large number of embedded devices fail, it may take a long time to modify the IP address of all the failed embedded devices, resulting in failure to realize the direct connection between the faulty embedded device and the server in time, thereby causing fault embedded. The failure of the equipment cannot be repaired in time.
- the embodiment of the present application discloses a repair packet sending and receiving method and device, and a fault repairing system, so as to realize a fast direct connection between a faulty embedded device and a server, and further realize a quick repair of a fault of the faulty embedded device.
- the specific plan is as follows:
- the embodiment of the present application provides a repair packet sending method, where the method includes:
- the repair package corresponding to the repair request is sent to all faulty embedded devices, so that all faulty embedded devices complete the fault repair.
- the device information includes an original IP address of the faulty embedded device.
- the method further includes:
- the obtaining a new IP address assigned to each failed embedded device includes:
- the method before the sending the modification instruction to each faulty embedded device, the method further includes:
- the sending the modified instruction to each faulty embedded device is: a modification instruction of the faulty embedded device corresponding to the multicast;
- the sending the modified instruction to each faulty embedded device is: a modification instruction of the embedded faulty embedded device.
- the device information further includes a MAC address of the faulty embedded device
- the sending the modification instruction to each faulty embedded device includes:
- the new IP address for itself is: a new IP address for its own MAC address.
- the device information further includes a MAC address of the faulty embedded device
- the method further includes:
- the embodiment of the present application provides a repair packet receiving method, where the method includes:
- the modification instruction further carries a MAC address of the faulty embedded device
- the modifying the original IP address of the faulty embedded device as the corresponding new IP address includes:
- the original IP address of the faulty embedded device is modified to be a new IP address corresponding to its own MAC address.
- the modification instruction further carries a MAC address of the faulty embedded device
- the method further includes:
- ARP information carrying a correspondence between a MAC address of the faulty embedded device and the new IP address, so that after the server receives the ARP information, the MAC address of the faulty embedded device is stored. Correspondence of the new IP address.
- the embodiment of the present application provides a repair packet sending apparatus, where the apparatus includes: a first receiving module, an obtaining module, a first sending module, a second receiving module, and a second sending module;
- the first receiving module is configured to receive device information sent by at least one faulty embedded device
- the obtaining module is configured to obtain a new IP address allocated for each faulty embedded device
- the first sending module is configured to send a modification instruction to each faulty embedded device, so that each faulty embedded device obtains a new IP address for itself from the modified instruction, and uses a new IP address and a server directly Connected, wherein the modification instruction carries the assigned new IP address;
- the second receiving module is configured to receive a repair request sent by all the faulty embedded devices
- the second sending module is configured to send a repair package corresponding to the repair request to all faulty embedded devices, so that all faulty embedded devices complete fault repair.
- the device information includes an original IP address of the faulty embedded device.
- the device further includes a determining module
- the determining module is configured to determine, after the receiving the device information sent by the at least one faulty embedded device, all the first faulty embedded devices from the at least one faulty embedded device according to the device information, where The first faulty embedded device is a faulty embedded device whose original IP address is not in the same network segment as the server;
- the obtaining module is specifically configured to obtain a new IP address allocated for each first faulty embedded device.
- the device further includes a determining module
- the determining module is configured to determine, according to the device information, whether the corresponding faulty embedded device supports multicasting before sending the modification command to each faulty embedded device;
- the first sending module is specifically configured to: when the corresponding faulty embedded device supports multicasting, multicasting the modified instruction of the faulty embedded device; when the corresponding faulty embedded device does not support multicasting, the corresponding fault embedded in the broadcast Modification instructions for the device.
- the device information further includes a MAC address of the faulty embedded device
- the first sending module is specifically configured to separately send a modification command that carries a MAC address of each faulty embedded device and a corresponding assigned new IP address to each faulty embedded device;
- the new IP address for itself is: a new IP address for its own MAC address.
- the device information further includes a MAC address of the faulty embedded device
- the device also includes a third receiving module and a storage module;
- the third receiving module is configured to receive address resolution protocol ARP information broadcast by the at least one faulty embedded device;
- the storage module is configured to store a correspondence between a MAC address of the corresponding faulty embedded device and the new IP address carried in the ARP information.
- the embodiment of the present application provides a repair packet receiving apparatus, where the apparatus includes: a third sending module, a fourth receiving module, a modifying module, a fourth sending module, and a fifth receiving module;
- the third sending module is configured to send device information to the server, where the device information includes an original IP address of the faulty embedded device;
- the fourth receiving module is configured to receive a modification instruction sent by the server, where the modification instruction carries an allocated new IP address, where the new IP address is an address allocated by the server;
- the modifying module is configured to modify a new IP address of the faulty embedded device to be a new IP address, and directly connect to the server by using the new IP address;
- the fourth sending module is configured to send a repair request to the server
- the fifth receiving module is configured to receive a repair package sent by the server and corresponding to the repair request, and complete fault repair.
- the modification instruction further carries a MAC address of the faulty embedded device
- the modification module is specifically configured to modify a new IP address corresponding to the original IP address of the faulty embedded device as its own MAC address.
- the modification instruction further carries a MAC address of the faulty embedded device
- the device also includes a broadcast module
- the broadcast module is configured to: before the sending the repair request to the server, broadcast an address resolution protocol that carries a correspondence between a MAC address of the faulty embedded device and the new IP address After the ARP information is received, the server stores the corresponding relationship between the MAC address of the faulty embedded device and the new IP address.
- an embodiment of the present application provides a fault repair system, where the system includes:
- a faulty embedded device configured to send device information to a server, where the device information includes an original IP address of the faulty embedded device
- a server configured to receive device information sent by the faulty embedded device, and obtain a new IP address assigned to each faulty embedded device; send a modification instruction to each faulty embedded device, wherein the modified instruction carries the allocated New IP address;
- the faulty embedded device is further configured to receive a modification instruction sent by the server, and modify a original IP address of the faulty embedded device to be a corresponding new IP address, to use the new IP address and the server directly Connect; and send a repair request to the server;
- the server is further configured to receive a repair request sent by all the faulty embedded devices; and send the repair package corresponding to the repair request to all faulty embedded devices;
- the faulty embedded device is further configured to receive a repair package sent by the server and corresponding to the repair request, and complete fault repair.
- an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory is used to store a computer program;
- the processor when used to execute a computer program stored in the memory, implements the method for transmitting the repair package provided by the embodiment of the present application, or implements the repair packet receiving method provided by the embodiment of the present application.
- the embodiment of the present application provides a computer program, which is used to execute the repair packet sending method provided by the embodiment of the present application, or execute the provided by the embodiment of the present application.
- the repair packet receiving method is used to execute the repair packet sending method provided by the embodiment of the present application, or execute the provided by the embodiment of the present application.
- the embodiment of the present application provides a storage medium, where the storage medium is used to execute a computer program, and the computer program is executed to execute the repair package sending method provided by the embodiment of the present application, or The repair packet receiving method provided by the embodiment of the present application.
- the server receives at least one faulty embedded device, including Device information of the original IP address of the barrier embedded device; obtain a new IP address assigned to each failed embedded device; send a modification instruction to each failed embedded device, so that each failed embedded device obtains from the modified instruction After the new IP address for itself, directly connect to the server with the new IP address; receive the repair request sent by all the faulty embedded devices; send the repair package corresponding to the repair request to all the faulty embedded devices, so that all the faulty embedded devices Complete the fault repair.
- the server can assign a new IP address to the faulty embedded device in the same network segment and different network segments, so that each faulty embedded device obtains a new IP address for itself from the modification instruction, and uses the new IP address with
- the server is directly connected, and it is not necessary to manually modify the IP address of the faulty embedded device one by one, thereby realizing the rapid direct connection between the faulty embedded device and the server, and further realizing the rapid repair of the fault of the faulty embedded device.
- any of the products or methods of the present application necessarily does not necessarily require all of the advantages described above to be achieved at the same time.
- FIG. 1 is a schematic flowchart of a method for sending a repair packet according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of a method for receiving a repair packet according to an embodiment of the present application
- FIG. 3 is a schematic diagram of an interaction process for applying a repair packet sending and receiving method to perform fault repair according to an embodiment of the present application
- FIG. 4 is a schematic structural diagram of a repair packet sending apparatus according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of a repair packet receiving apparatus according to an embodiment of the present application.
- FIG. 6 is a schematic structural diagram of a fault repair system according to an embodiment of the present application.
- the embodiment of the present application provides a repair packet sending and receiving method and device, and a fault repairing system, so as to implement a fast direct connection between a faulty embedded device and a server, and further realize a quick repair of a faulty embedded device fault.
- a repair packet sending method provided by the embodiment of the present application is first introduced.
- the repair packet sending method may be based on a fault repair system.
- the repair package corresponding to the repair request is sent to all faulty embedded devices, so that all faulty embedded devices complete the fault repair.
- the embedded device can detect whether it is faulty through U-boot (Universal Boot Loader).
- U-boot Universal Boot Loader
- the U-boot detects its own fault, it can detect the embedded fault.
- a device is called a faulty embedded device.
- the above fault may be the main program damage of the embedded device itself. Further, the faulty embedded device can broadcast its own device information through the U-boot periodically or irregularly.
- the server may receive device information broadcast by at least one faulty embedded device; subsequently, the server may automatically obtain a new IP address assigned to each faulty embedded device according to the device information broadcast by the at least one faulty embedded device received above. And executing the subsequent process; or, the server may display the received device information in the display interface for the staff to view and process, and the staff may use the device information displayed in the display interface for each faulty embedded device.
- a new IP address is assigned, and a new IP address assigned to each failed embedded device is input into the above server; the server obtains a new IP address assigned by the worker for each failed embedded device, and then performs a subsequent process.
- the server receives three faulty embedded device sending device information, which are device information 1, device information 2, and device information 3; in one case, the server automatically uses the device information 1, the device information 2, and the device information. 3.
- Obtain a new IP address assigned to each failed embedded device namely a new IP address 1, a new IP address 2, and a new IP address 3; the new IP address 1, the new IP address 2, and the new IP address 3 can be added.
- Each of the faulty embedded devices corresponds to a new IP address, that is, each device information corresponds to a new IP address.
- the server displays the received device information 1, device information 2, and device information 3 in a display interface for the worker to view the processing, and the user according to the device information 1, the device information 2, and the device information 3 a new IP address assigned to each failed embedded device, and corresponding to each device information (including device information 1, device information 2, and device information 3), the new IP address is entered into the server, and the server is embedded for each fault.
- the new IP address assigned by the device the user can directly assign a new IP address to each faulty embedded device through the server, and implement the modification of the IP address of each faulty embedded device through the subsequent process, without going to the site, embedded through each fault.
- the serial port of the device changes the IP address of each faulty embedded device one by one.
- the server may send a modification instruction carrying the new IP address to each faulty embedded device; each faulty embedded device receives the above modified instruction, and from the above modified instruction Get a new IP address for yourself.
- the above modified instruction may be an instruction for instructing the faulty embedded device to modify the IP address.
- the server may send a modification instruction carrying the new IP address to each faulty embedded device according to the original IP address of each faulty embedded device.
- each faulty embedded device can receive the modified finger through the U-boot, and obtain a new IP address for itself through the U-boot from the modification command. Further, the U-boot can modify its original IP address to obtain a new IP address for itself, and then directly connect to the server through the new IP address.
- the above modification instruction may be one or multiple.
- a modification instruction carries a new IP address allocated for all the faulty embedded devices, and the modification instruction may be one. Can also be embedded as a fault for a modified instruction
- the new IP address assigned by the device, in this case, the modification command may be multiple, wherein a modification instruction corresponds to a new IP address. It is also possible to carry a new IP address assigned to a predetermined number of faulty embedded devices for a modification command. In this case, the number of modification instructions may be multiple, etc., which is all possible.
- the repair request may be sent to the server, and the repair request may be a request for repairing the fault of the faulty embedded device, for example, the repaired faulty embedded device may be damaged.
- the request of the main program may be sent to the server, and the repair request may be a request for repairing the fault of the faulty embedded device, for example, the repaired faulty embedded device may be damaged.
- the server may receive the repair request sent by the connected faulty embedded device, and send the repair package corresponding to the repair request to all the faulty embedded devices according to the received repair request.
- Each faulty embedded device obtains a fix pack for itself and completes the fault repair with its own fix pack.
- each faulty embedded device can obtain a repair package for itself through U-boot, and use U-boot to complete the fault repair by using the repair kit for itself.
- the method may include the steps of:
- S101 Receive device information sent by at least one faulty embedded device, where the device information includes an original IP address of the faulty embedded device.
- U-boot Universal Boot Loader
- the server can receive device information broadcast by at least one faulty embedded device. Further, the server may display the received device information in a display interface.
- U-boot is a single-threaded loop program, which can be used as a bootloader for embedded devices.
- the server can be a TFTP server and can provide fix packs for faulty embedded devices.
- the server obtains a new IP address assigned to each faulty embedded device, wherein the new IP address may be reassigned by the user for each faulty embedded device. It can also be that the server is reassigned for each failed embedded device.
- the above-mentioned user may be used by the administrator of the server to manage the IP address corresponding to the server, and allocate a new IP address to the faulty embedded device corresponding to the device information received by the server.
- S103 Send a modification instruction to each faulty embedded device, so that each faulty embedded device obtains a new IP address for itself from the modification instruction, and directly connects to the server with a new IP address, where the modification instruction carries The assigned new IP address;
- the server may send a modification instruction to each faulty embedded device through a related technology, so that each faulty embedded device obtains a new IP address for itself from one or more modification instructions through U-boot, and can be modified by U-boot.
- the original IP address of the user is the new IP address obtained for itself, and then directly connected to the server through the new IP address.
- S104 Receive a repair request sent by all faulty embedded devices.
- S105 Send the repair package corresponding to the repair request to all faulty embedded devices, so that all faulty embedded devices complete the fault repair.
- the repair request may carry information such as the device model of the corresponding faulty embedded device, so that the server may send the corresponding repair package to the faulty embedded device for the device model of the faulty embedded device.
- the server receives the device information of the original IP address that is sent by the faulty embedded device, and obtains the new IP address allocated for each faulty embedded device; sends a modification command to each fault.
- the embedded device so that each faulty embedded device obtains a new IP address for itself from the modification instruction, directly connects to the server with the new IP address; receives the repair request sent by all the faulty embedded devices; and sends and repairs the request corresponding to the repair request Repair kits to all failed embedded devices to enable all failed embedded devices to complete the repair.
- the server can assign a new IP address to the faulty embedded device in the same network segment and different network segments, so that each faulty embedded device obtains a new IP address for itself from the modification instruction, and uses the new IP address with
- the server is directly connected, and it is not necessary to manually modify the IP address of the faulty embedded device one by one, thereby realizing the rapid direct connection between the faulty embedded device and the server, and further realizing the rapid repair of the fault of the faulty embedded device.
- the embodiment of the present application may be directed to a faulty embedded device that exists in the same network segment, and may also be directed to a faulty embedded device that exists in different network segments.
- the embodiment of the present application can be used to provide only one server in different network segments, so as to provide a repair package for the faulty embedded device, and no server needs to be deployed in each network segment.
- the repairing packet sending method may further include:
- the device information Determining, according to the device information, all the first faulty embedded devices from the at least one faulty embedded device, wherein the first faulty embedded device is a faulty embedded device whose original IP address is not in the same network segment as the server;
- the obtaining a new IP address assigned to each failed embedded device includes:
- the server may determine, according to the original IP address of the faulty embedded device carried in the device information, and the IP address of the device, from the at least one faulty embedded device, all the original IP addresses are not in the same network segment as the user.
- the user can view the device information sent by at least one faulty embedded device on the display interface of the server. It can be understood that the step of determining all the first faulty embedded devices that are not in the same network segment as the server may also be input to the server after being filtered by the user on the interface.
- the server can directly connect directly to the faulty embedded device. Subsequently, the server can send the corresponding repair package to the faulty embedded device through the TFTP protocol, so that the faulty embedded device completes the fault repair through the U-boot.
- the device information may include information such as the device model of the faulty embedded device, so that the server can send the repair package matching the device model to the faulty embedded device.
- the server may not know the path information sent to each faulty embedded device, and the server may send the modification instruction in the form of a broadcast. Since there are other hosts in the network (including but not limited to embedded devices that are not faulty), in order to reduce the processing load of such hosts, the server can send modification instructions in the form of multicast. To effectively reduce the burden on other hosts outside the "multicast" group on the network. Because the data sent to the "multicast" group is not passed to their drivers for processing, it avoids unnecessary waste of resources.
- the device information may further include information about whether the corresponding faulty embedded device supports multicasting. Before the sending the modify command to each faulty embedded device, the method for sending the repair packet provided by the embodiment of the present application may further include :
- the sending the modified instruction to each faulty embedded device is: a modification instruction of the faulty embedded device corresponding to the multicast;
- the sending the modified instruction to each faulty embedded device is: a modification instruction of the embedded faulty embedded device.
- the repair request can be sent to the corresponding faulty embedded device in the form of a broadcast.
- other hosts including but not limited to embedded devices that are not faulty
- the server sends an unknown message.
- the repair request can also be sent to the corresponding faulty embedded device in the form of multicast.
- the repair request when the repair request is sent to the corresponding faulty embedded device in the form of broadcast, the repair request is sent to the corresponding faulty embedded device in the form of multicast, which can effectively alleviate the “multicast” on the network. "The burden on other hosts outside the group, because the information sent to the "multicast” group will not be sent to the drivers of other hosts outside the “multicast” group on the network, and the network can be avoided. The unnecessary waste of resources on other hosts outside the "multicast” group.
- the server before the repair request is sent to the corresponding faulty embedded device in the form of multicast, it is necessary to determine whether the faulty embedded device supports multicast, and when the faulty embedded device supports multicast, the server can be multicasted. The form sends a repair request to the corresponding failed embedded device.
- the faulty embedded device includes five devices A, B, C, D, and E, according to the device information, it can be known that A, B, and C support multicast, and D and E do not support multicast. Then, the modification instruction for A, the modification instruction for B, and the modification instruction for C are respectively multicast; the modification instruction for D and the modification instruction for E are respectively broadcast.
- A, B, and C it can receive the modification instruction for A, the modification instruction for B, the modification instruction for C, the modification instruction for D, and the modification instruction for E, respectively, from which the carrier is selected for itself.
- the new IP address can be modified.
- D and E it only receives the modification instruction for D and the modification instruction for E, and selects the modification instruction carrying the new IP address for itself.
- the device information may further include a MAC address of the faulty embedded device
- the sending the modification instruction to each faulty embedded device includes:
- the new IP address for itself is: a new IP address for its own MAC address.
- the device information may also include The MAC address of the failed embedded device.
- the modified instruction sent carries the MAC address of each faulty embedded device and the corresponding assigned new IP address, so that each faulty embedded device can filter out a new IP address for its own MAC address through U-boot.
- the device information may also carry other information that can uniquely identify the faulty embedded device.
- the device information may further include a MAC address of the faulty embedded device
- the method for sending the repair package provided by the embodiment of the present application may further include:
- the correspondence between the new IP address and the MAC address of the faulty embedded device is not stored in other hosts (including but not limited to the server and each switch device) in the network.
- the ARP Address Resolution Protocol
- the faulty embedded device can actively broadcast ARP information through the U-boot after modifying its own IP address, so that other hosts can increase the storage failure of the embedded device.
- the correspondence between the new IP address and the MAC address is not limited to the server and each switch device.
- the embodiment of the present application provides a repair packet receiving method, wherein the repair packet receiving method is based on a fault repairing system, as shown in FIG. 2, and may include the following steps:
- S201 Send device information to the server, where the device information includes an original IP address of the faulty embedded device.
- U-boot After the embedded device is powered on, after U-boot detects its own fault, if the main program is damaged, it broadcasts its own device information through U-boot timing or irregular.
- S202 Receive a modification instruction sent by the server, where the modification instruction carries an allocated new IP address, where the new IP address is an address allocated by the server;
- the modification command is sent by the server for each failed embedded device.
- the faulty embedded device receives the modification instruction through the U-boot, and then filters out the modification instruction for itself through the U-boot, and the modified instruction for the self carries the server to allocate The new IP address for the failed embedded device itself.
- S203 Modify the original IP address of the faulty embedded device to be a corresponding new IP address, so as to directly connect to the server by using the new IP address;
- the faulty embedded device modifies the original IP address to the corresponding new IP address through U-boot, and directly connects to the server through the new IP address.
- S205 Receive a repair package sent by the server and corresponding to the repair request, and complete fault repair.
- the faulty embedded device sends a repair request to the server through the U-boot, and receives the repair package corresponding to the repair request sent by the server through the U-boot to complete the fault repair.
- the IP address is modified, and after the new IP address is directly connected to the server, the repair request is sent to the server, and the repair package corresponding to the repair request sent by the server is received. , complete the fault repair. Realize the fast direct connection between the faulty embedded device and the server, and further realize the rapid repair of the fault of the faulty embedded device.
- each faulty embedded device is determined to determine a new IP address for itself, and avoid occupying IP of other embedded devices. address.
- the modification instruction further carries a MAC address of the faulty embedded device
- the modifying the original IP address of the faulty embedded device to be the corresponding new IP address includes:
- the modifying instruction further carries a MAC address of the faulty embedded device
- the method for receiving the repair package provided by the embodiment of the present application may further include:
- the server Broadcasting the address resolution protocol ARP information carrying the correspondence between the MAC address of the faulty embedded device and the new IP address, so that after receiving the ARP information, the server stores the MAC address of the faulty embedded device and the new IP address. Correspondence relationship.
- the faulty embedded device determines the new IP address for its own MAC address from the modification command through U-boot, the original IP address is modified by the U-boot to the new IP address, and the ARP information is actively broadcasted.
- the other host including the server stores the correspondence between the MAC address of the faulty embedded device and the new IP address, so that the faulty embedded device can perform subsequent information interaction with other hosts.
- the server may send the repair package corresponding to the faulty embedded device to the faulty embedded device according to the corresponding relationship, so that the faulty embedded device completes the fault repair.
- the device information broadcasted by the faulty embedded device may also carry information such as the device model, so that the server can send the corresponding repair package to the faulty embedded device according to the device model.
- FIG. 3 a schematic diagram of interaction between the server and the faulty embedded device:
- the faulty embedded device fails, such as the main program is damaged, and broadcasts its own device information;
- the TFTP server receives the device information broadcast by the faulty embedded device
- the TFTP server can display each device information received and obtain a new IP address assigned to each failed embedded device;
- the TFTP server broadcasts or multicasts a modification instruction carrying the obtained new IP address
- Each faulty embedded device receives the modification instruction, and filters out the new IP address for itself through the modified instruction through U-boot, and modifies the IP address;
- Each faulty embedded device broadcasts ARP information, and the ARP information carries the correspondence between its own MAC address and the new IP address.
- the TFTP server receives the ARP information broadcasted by each faulty embedded device, stores the correspondence between the MAC address of each faulty embedded device carried in the ARP information and the new IP address, and directly connects to each faulty embedded device. ;
- the TFTP server receives the repair request sent by all the faulty embedded devices; the repair request may carry information such as the device model of the corresponding faulty embedded device;
- the TFTP server sends a corresponding repair package for each faulty embedded device, so that each faulty embedded device completes the fault repair.
- the fault information can be fed back to the TFTP server.
- the embodiment of the present application provides a repair packet sending apparatus.
- the apparatus may include: a first receiving module 401, an obtaining module 402, a first sending module 403, and a second. a receiving module 404 and a second sending module 405;
- the first receiving module 401 is configured to receive device information sent by at least one faulty embedded device.
- the obtaining module 402 is configured to obtain a new IP address assigned to each faulty embedded device
- the first sending module 403 is configured to send a modification instruction to each faulty embedded device, so that each faulty embedded device obtains a new IP address for itself from the modified instruction, and uses the new IP address and the server. Directly connected, wherein the modification instruction carries the assigned new IP address;
- the second receiving module 404 is configured to receive a repair request sent by all the faulty embedded devices
- the second sending module 405 is configured to send the repair package corresponding to the repair request to all faulty embedded devices, so that all faulty embedded devices complete fault repair.
- the server receives the device information of the original IP address that is sent by the faulty embedded device, and obtains the new IP address allocated for each faulty embedded device; sends a modification command to each fault.
- the embedded device so that each faulty embedded device obtains a new IP address for itself from the modification instruction, directly connects to the server with the new IP address; receives the repair request sent by all the faulty embedded devices; and sends and repairs the request corresponding to the repair request Repair kits to all failed embedded devices to enable all failed embedded devices to complete the repair.
- the server can assign a new IP address to the faulty embedded device in the same network segment and different network segments, so that each faulty embedded device obtains a new IP address for itself from the modification instruction, and uses the new IP address with
- the server is directly connected, and it is not necessary to manually modify the IP address of the faulty embedded device one by one, thereby realizing the rapid direct connection between the faulty embedded device and the server, and further realizing the rapid repair of the fault of the faulty embedded device.
- the device information includes an original IP address of the faulty embedded device.
- the apparatus further includes a determining module
- the determining module is configured to determine, after the receiving the device information sent by the at least one faulty embedded device, all the first faulty embedded devices from the at least one faulty embedded device according to the device information, where The first faulty embedded device is a faulty embedded device whose original IP address is not in the same network segment as the server;
- the obtaining module 402 is specifically configured to obtain a new IP address allocated for each first faulty embedded device.
- the apparatus further includes a determining module
- the determining module is configured to determine, according to the device information, whether the corresponding faulty embedded device supports multicasting before sending the modification command to each faulty embedded device;
- the first sending module 403 is specifically configured to: when the corresponding faulty embedded device supports multicasting, multicasting the modified instruction of the faulty embedded device; when the corresponding faulty embedded device does not support multicasting, the corresponding fault of the broadcast Modification instructions for embedded devices.
- the device information further includes a MAC address of the faulty embedded device. site;
- the first sending module 403 is specifically configured to separately send a modification command that carries a MAC address of each faulty embedded device and a corresponding assigned new IP address to each faulty embedded device;
- the new IP address for itself is: a new IP address for its own MAC address.
- the device information further includes a MAC address of the faulty embedded device
- the device also includes a third receiving module and a storage module;
- the third receiving module is configured to receive ARP information broadcast by the at least one faulty embedded device
- the storage module is configured to store a correspondence between a MAC address of the corresponding faulty embedded device and the new IP address carried in the ARP information.
- the embodiment of the present application provides a repair packet receiving apparatus.
- the apparatus may include: a third sending module 501, a fourth receiving module 502, and a modifying module 503. a fourth sending module 504 and a fifth receiving module 505;
- the third sending module 501 is configured to send device information to the server, where the device information includes an original IP address of the faulty embedded device.
- the fourth receiving module 502 is configured to receive a modification instruction sent by the server, where the modification instruction carries an allocated new IP address, where the new IP address is an address allocated by the server;
- the modifying module 503 is configured to modify the original IP address of the faulty embedded device to be a new IP address, so as to be directly connected to the server by using the new IP address;
- the fourth sending module 504 is configured to send a repair request to the server
- the fifth receiving module 505 is configured to receive a repair package that is sent by the server and that is corresponding to the repair request, and complete fault repair.
- the IP address is modified, and after the new IP address is directly connected to the server, the repair request is sent to the server, and the repair package corresponding to the repair request sent by the server is received. , complete the fault repair.
- Faster faulty embedded devices and servers Fast and straightforward, further realizing the rapid repair of faulty embedded device faults.
- the modifying instruction further carries a MAC address of the faulty embedded device
- the modification module 503 is specifically configured to modify a new IP address corresponding to the original IP address of the faulty embedded device as its own MAC address.
- the modifying instruction further carries a MAC address of the faulty embedded device
- the device also includes a broadcast module
- the broadcast module is configured to: before the sending the repair request to the server, broadcast an address resolution protocol ARP information that carries a correspondence between a MAC address of the faulty embedded device and the new IP address, so that the After receiving the ARP information, the server stores a correspondence between a MAC address of the faulty embedded device and the new IP address.
- the embodiment of the present application provides a fault repair system. As shown in FIG. 6, the system includes:
- the faulty embedded device 601 is configured to send device information to the server, where the device information includes an original IP address of the faulty embedded device;
- the server 602 is configured to receive device information sent by the faulty embedded device, obtain a new IP address assigned to each faulty embedded device, and send a modification instruction to each faulty embedded device, where the modified command carries the allocated New IP address;
- the faulty embedded device 601 is further configured to receive a modification instruction sent by the server, and modify a original IP address of the faulty embedded device to be a corresponding new IP address, so that the new IP address is directly connected to the server. Connect; and send a repair request to the server;
- the server 602 is further configured to receive a repair request sent by all the faulty embedded devices; and send the repair package corresponding to the repair request to all faulty embedded devices;
- the faulty embedded device 601 is further configured to receive a repair package sent by the server and corresponding to the repair request, and complete fault repair.
- An embodiment of the present application further provides an electronic device, including a processor and a storage. And a memory for storing the computer program;
- the processor when used to execute a computer program stored in the memory, implements the repair packet sending method provided by the embodiment of the present application, or implements the repair packet receiving method provided by the embodiment of the present application, where the repair packet sending method Can include steps:
- the repair packet receiving method may include the steps of:
- the processor of the electronic device runs the computer program stored in the memory to perform the repair packet sending method provided by the embodiment of the present application, or to perform the repair packet receiving method provided by the embodiment of the present application. Therefore, it can realize: a fast direct connection between the faulty embedded device and the server, and further realizing the rapid repair of the fault of the faulty embedded device.
- the electronic device may be the foregoing service when the processor of the electronic device runs a computer program stored in the memory to perform the repair packet sending method provided by the embodiment of the present application.
- the electronic device may be the aforementioned faulty embedded device.
- the embodiment of the present application further provides a computer program, where the computer program is used to perform the repair packet sending method provided by the embodiment of the present application, or the repair packet receiving method provided by the embodiment of the present application, where
- the repair package sending method may include the following steps:
- the repair packet receiving method may include the steps of:
- the computer program can execute the repair packet sending method provided by the embodiment of the present application at the time of running, or execute the repair packet receiving method provided by the embodiment of the present application, thereby implementing the faulty embedded device and the server.
- the embodiment of the present application provides a storage medium for storing a computer program, and the computer program is executed to execute the repair package sending method provided by the embodiment of the present application or the repair package provided by the embodiment of the present application.
- the receiving method, wherein the repairing packet sending method may include the steps of:
- the repair packet receiving method may include the steps of:
- the storage medium stores a computer program that executes the repair packet sending method provided by the embodiment of the present application at runtime, or stores a computer that executes the repair packet receiving method provided by the embodiment of the present application at runtime.
- the program can therefore realize: a fast direct connection between the faulty embedded device and the server, and further realizing the rapid repair of the fault of the faulty embedded device.
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
Description
Claims (22)
- 一种修复包发送方法,其特征在于,所述方法包括:接收至少一个故障嵌入式设备发送的设备信息;获得为每个故障嵌入式设备分配的新IP地址;发送修改指令至每个故障嵌入式设备,以使每个故障嵌入式设备从所述修改指令中获得针对自身的新IP地址后,用新IP地址与服务器直连,其中,所述修改指令携带所分配的新IP地址;接收所有故障嵌入式设备发送的修复请求;发送与所述修复请求对应的修复包至所有故障嵌入式设备,以使所有故障嵌入式设备完成故障修复。
- 根据权利要求1所述的方法,其特征在于,所述设备信息中包括故障嵌入式设备的原IP地址。
- 根据权利要求2所述的方法,其特征在于,在所述接收至少一个故障嵌入式设备发送的设备信息之后,所述方法还包括:依据所述设备信息,从所述至少一个故障嵌入式设备中,确定所有第一故障嵌入式设备,其中,所述第一故障嵌入式设备为原IP地址与所述服务器不在同一网段的故障嵌入式设备;所述获得为每个故障嵌入式设备分配的新IP地址,包括:获得为每个第一故障嵌入式设备分配的新IP地址。
- 根据权利要求2所述的方法,其特征在于,在所述发送修改指令至每个故障嵌入式设备之前,所述方法还包括:根据所述设备信息,判断所对应故障嵌入式设备是否支持多播;当所对应故障嵌入式设备支持多播时,所述发送修改指令至每个故障嵌入式设备为:多播所对应故障嵌入式设备的修改指令;当所对应故障嵌入式设备不支持多播时,所述发送修改指令至每个故障嵌入式设备为:广播所对应故障嵌入式设备的修改指令。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述设备信息还包括故障嵌入式设备的MAC地址;所述发送修改指令至每个故障嵌入式设备,包括:分别发送携带每个故障嵌入式设备的MAC地址及对应分配的新IP地址的修改指令,至每个故障嵌入式设备;所述针对自身的新IP地址为:针对自身的MAC地址的新IP地址。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述设备信息还包括故障嵌入式设备的MAC地址;在所述接收所有故障嵌入式设备发送的修复请求之前,所述方法还包括:接收所述至少一个故障嵌入式设备广播的ARP信息;存储所述ARP信息中所携带的所对应故障嵌入式设备的MAC地址与所述新IP地址的对应关系。
- 一种修复包接收方法,其特征在于,所述方法包括:发送设备信息至服务器,所述设备信息中包括故障嵌入式设备的原IP地址;接收所述服务器发送的修改指令,其中,所述修改指令中携带所分配的新IP地址,所述新IP地址为所述服务器分配的地址;修改所述故障嵌入式设备的原IP地址为所对应的新IP地址,以用所述新IP地址与所述服务器直连;发送修复请求至所述服务器;接收所述服务器发送的与所述修复请求对应的修复包,完成故障修复。
- 根据权利要求7所述的方法,其特征在于,所述修改指令中还携带所述故障嵌入式设备的MAC地址;所述修改所述故障嵌入式设备的原IP地址为所对应的新IP地址,包括:修改所述故障嵌入式设备的原IP地址为自身的MAC地址所对应的新IP地址。
- 根据权利要求7或8所述的方法,其特征在于,所述修改指令中还携带所述故障嵌入式设备的MAC地址;在所述发送修复请求至所述服务器之前,所述方法还包括:广播携带所述故障嵌入式设备的MAC地址与所述新IP地址的对应关系的地址解析协议ARP信息,以使所述服务器接收所述ARP信息后,存储所述故障嵌入式设备的MAC地址与所述新IP地址的对应关系。
- 一种修复包发送装置,其特征在于,所述装置包括:第一接收模块、获得模块、第一发送模块、第二接收模块和第二发送模块;所述第一接收模块,用于接收至少一个故障嵌入式设备发送的设备信息;所述获得模块,用于获得为每个故障嵌入式设备分配的新IP地址;所述第一发送模块,用于发送修改指令至每个故障嵌入式设备,以使每个故障嵌入式设备从所述修改指令中获得针对自身的新IP地址后,用新IP地址与服务器直连,其中,所述修改指令携带所分配的新IP地址;所述第二接收模块,用于接收所有故障嵌入式设备发送的修复请求;所述第二发送模块,用于发送与所述修复请求对应的修复包至所有故障嵌入式设备,以使所有故障嵌入式设备完成故障修复。
- 根据权利要求10所述的装置,其特征在于,,所述设备信息中包括故障嵌入式设备的原IP地址。
- 根据权利要求11所述的装置,其特征在于,所述装置还包括确定模块;所述确定模块,用于在所述接收至少一个故障嵌入式设备发送的设备信息之后,依据所述设备信息,从所述至少一个故障嵌入式设备中,确定所有第一故障嵌入式设备,其中,所述第一故障嵌入式设备为原IP地址与所述服务器不在同一网段的故障嵌入式设备;所述获得模块,具体用于获得为每个第一故障嵌入式设备分配的新IP地址。
- 根据权利要求11所述的装置,其特征在于,所述装置还包括判断模 块;所述判断模块,用于在所述发送修改指令至每个故障嵌入式设备之前,根据所述设备信息,判断所对应故障嵌入式设备是否支持多播;所述第一发送模块,具体用于当所对应故障嵌入式设备支持多播时,多播所对应故障嵌入式设备的修改指令;当所对应故障嵌入式设备不支持多播时,广播所对应故障嵌入式设备的修改指令。
- 根据权利要求10-13任一项所述的装置,其特征在于,所述设备信息还包括故障嵌入式设备的MAC地址;所述第一发送模块,具体用于分别发送携带每个故障嵌入式设备的MAC地址及对应分配的新IP地址的修改指令,至每个故障嵌入式设备;所述针对自身的新IP地址为:针对自身的MAC地址的新IP地址。
- 根据权利要求10-13任一项所述的装置,其特征在于,所述设备信息还包括故障嵌入式设备的MAC地址;所述装置还包括第三接收模块和存储模块;所述第三接收模块,用于接收所述至少一个故障嵌入式设备广播的ARP信息;所述存储模块,用于存储所述ARP信息中所携带的所对应故障嵌入式设备的MAC地址与所述新IP地址的对应关系。
- 一种修复包接收装置,其特征在于,所述装置包括:第三发送模块、第四接收模块、修改模块、第四发送模块和第五接收模块;所述第三发送模块,用于发送设备信息至服务器,所述设备信息中包括故障嵌入式设备的原IP地址;所述第四接收模块,用于接收所述服务器发送的修改指令,其中,所述修改指令中携带所分配的新IP地址,所述新IP地址为所述服务器分配的地址;所述修改模块,用于修改所述故障嵌入式设备的原IP地址为所对应的新IP地址,以用所述新IP地址与所述服务器直连;所述第四发送模块,用于发送修复请求至所述服务器;所述第五接收模块,用于接收所述服务器发送的与所述修复请求对应的修复包,完成故障修复。
- 根据权利要求16所述的装置,其特征在于,所述修改指令中还携带所述故障嵌入式设备的MAC地址;所述修改模块,具体用于修改所述故障嵌入式设备的原IP地址为自身的MAC地址所对应的新IP地址。
- 根据权利要求16或17所述的装置,其特征在于,所述修改指令中还携带所述故障嵌入式设备的MAC地址;所述装置还包括广播模块;所述广播模块,用于在所述发送修复请求至所述服务器之前,广播携带所述故障嵌入式设备的MAC地址与所述新IP地址的对应关系的地址解析协议ARP信息,以使所述服务器接收所述ARP信息后,存储所述故障嵌入式设备的MAC地址与所述新IP地址的对应关系。
- 一种故障修复系统,其特征在于,所述系统包括:故障嵌入式设备,用于发送设备信息至服务器,所述设备信息中包括故障嵌入式设备的原IP地址;服务器,用于接收故障嵌入式设备发送的设备信息,并获得为每个故障嵌入式设备分配的新IP地址;发送修改指令至每个故障嵌入式设备,其中,所述修改指令携带所分配的新IP地址;所述故障嵌入式设备还用于接收所述服务器发送的修改指令;修改所述故障嵌入式设备的原IP地址为所对应的新IP地址,以用所述新IP地址与所述服务器直连;并发送修复请求至所述服务器;所述服务器还用于接收所有故障嵌入式设备发送的修复请求;并发送与所述修复请求对应的修复包至所有故障嵌入式设备;所述故障嵌入式设备还用于接收所述服务器发送的与所述修复请求对应 的修复包,完成故障修复。
- 一种电子设备,其特征在于,包括处理器和存储器,其中,存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的计算机程序时,实现权利要求1-6任一项所述的修复包发送方法,或,实现权利要求7-9任一项所述的修复包接收方法。
- 一种计算机程序,其特征在于,所述计算机程序用于被运行以执行权利要求1-6任一项所述的修复包发送方法,或,执行权利要求7-9任一项所述的修复包接收方法。
- 一种存储介质,其特征在于,所述存储介质用于存储计算机程序,所述计算机程序被运行以执行权利要求1-6任一项所述的修复包发送方法,或,执行权利要求7-9任一项所述的修复包接收方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610588640.8A CN107645404B (zh) | 2016-07-21 | 2016-07-21 | 一种修复包发送、接收方法及装置和故障修复系统 |
CN201610588640.8 | 2016-07-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018014695A1 true WO2018014695A1 (zh) | 2018-01-25 |
Family
ID=60991906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/089366 WO2018014695A1 (zh) | 2016-07-21 | 2017-06-21 | 一种修复包发送、接收方法及装置和故障修复系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107645404B (zh) |
WO (1) | WO2018014695A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111833799B (zh) * | 2019-04-15 | 2022-04-05 | 杭州海康威视数字技术股份有限公司 | 一种led接收组件及接收卡切换方法 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070022184A1 (en) * | 2005-07-21 | 2007-01-25 | Rakesh Sharma | Method and apparatus for a secure network install |
CN101820387A (zh) * | 2010-02-08 | 2010-09-01 | 北京航空航天大学 | 一种易扩展的快速机群部署方法 |
CN103200271A (zh) * | 2013-04-17 | 2013-07-10 | 北京百度网讯科技有限公司 | Arm服务器及其自动化安装系统的方法 |
CN103442041A (zh) * | 2013-08-14 | 2013-12-11 | 深圳市同洲电子股份有限公司 | 嵌入式设备固件升级的方法、装置及其系统 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873726A (zh) * | 2010-07-01 | 2010-10-27 | 华为终端有限公司 | 无线中继器的升级方法及无线接入设备 |
-
2016
- 2016-07-21 CN CN201610588640.8A patent/CN107645404B/zh active Active
-
2017
- 2017-06-21 WO PCT/CN2017/089366 patent/WO2018014695A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070022184A1 (en) * | 2005-07-21 | 2007-01-25 | Rakesh Sharma | Method and apparatus for a secure network install |
CN101820387A (zh) * | 2010-02-08 | 2010-09-01 | 北京航空航天大学 | 一种易扩展的快速机群部署方法 |
CN103200271A (zh) * | 2013-04-17 | 2013-07-10 | 北京百度网讯科技有限公司 | Arm服务器及其自动化安装系统的方法 |
CN103442041A (zh) * | 2013-08-14 | 2013-12-11 | 深圳市同洲电子股份有限公司 | 嵌入式设备固件升级的方法、装置及其系统 |
Also Published As
Publication number | Publication date |
---|---|
CN107645404A (zh) | 2018-01-30 |
CN107645404B (zh) | 2020-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9525648B2 (en) | Method for acquiring physical address of virtual machine | |
US9584392B2 (en) | Method and apparatus for managing segments connected via network | |
US8862865B2 (en) | Rebooting infiniband clusters | |
US20100174810A1 (en) | Distributed preboot execution environment (pxe) server booting | |
CN103546315B (zh) | 一种dhcp服务器的备份系统、方法及设备 | |
TW200929928A (en) | Method and system for assigning a plurality of MACs to a plurality of processors | |
US20120124242A1 (en) | Server and method for testing pxe function of network interface card | |
CN105204955B (zh) | 一种虚拟机故障修复方法和装置 | |
US8938516B1 (en) | Switch provided failover | |
TW201421232A (zh) | 在一冗餘群組中實施故障備援的方法、裝置與電腦程式產品 | |
US20140052843A1 (en) | Auto Management of a Virtual Device Context Enabled Network Infrastructure | |
WO2015149625A1 (zh) | 一种多实例并行的网元接入方法和系统 | |
WO2020238891A1 (zh) | 物理主机的租赁方法、装置、云平台及可读存储介质 | |
CN104735176A (zh) | Pxe启动的方法、装置和服务器单板 | |
CN102123105A (zh) | Vrrp标准协议与vrrp负载均衡协议之间的切换方法和设备 | |
US20220006868A1 (en) | N+1 Redundancy for Virtualized Services with Low Latency Fail-Over | |
JP5775473B2 (ja) | エッジ装置冗長化システム、切替制御装置およびエッジ装置冗長化方法 | |
WO2018014695A1 (zh) | 一种修复包发送、接收方法及装置和故障修复系统 | |
CN105939344B (zh) | 一种tcp连接的建立方法及装置 | |
WO2014101145A1 (zh) | 传输网络信息的方法及装置 | |
US20050185589A1 (en) | System and method for maintaining network connectivity during remote configuration of an information handling system | |
US20140140343A1 (en) | Apparatus and method for efficiently multicasting data to a plurality of destination devices | |
US10514991B2 (en) | Failover device ports | |
US8909816B2 (en) | Implementing a logical unit reset command in a distributed storage system | |
CN106452890A (zh) | 一种基于Ubuntu系统下自动配置PXE服务器方法 |
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: 17830329 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: 17830329 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 1205 DATED 18/07/2019) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17830329 Country of ref document: EP Kind code of ref document: A1 |