WO2017054549A1 - 设备批量升级方法及系统 - Google Patents

设备批量升级方法及系统 Download PDF

Info

Publication number
WO2017054549A1
WO2017054549A1 PCT/CN2016/089905 CN2016089905W WO2017054549A1 WO 2017054549 A1 WO2017054549 A1 WO 2017054549A1 CN 2016089905 W CN2016089905 W CN 2016089905W WO 2017054549 A1 WO2017054549 A1 WO 2017054549A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
host
virtual network
vlan
address
Prior art date
Application number
PCT/CN2016/089905
Other languages
English (en)
French (fr)
Inventor
朱靖飞
高霞
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017054549A1 publication Critical patent/WO2017054549A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • the present application relates to, but is not limited to, the field of network technologies, and in particular, to a method and system for batch upgrade of devices.
  • embedded devices With the rise of mobile Internet and smart home, the development of embedded field has been promoted to a large extent.
  • embedded devices usually need to be upgraded before leaving the factory.
  • the upgrade includes firmware upgrades and configuration upgrades for embedded devices.
  • embedded devices when embedded devices are returned to the factory for repair, they also need to perform version upgrades and other related operations.
  • the sequential operation cost is very high, which seriously affects the work efficiency. Therefore, for such a large number of embedded devices, the implementation of batch operations is very important.
  • a typical feature of an embedded device is that the IP (Internet Protocol) address of the device is fixed and cannot be directly accessed in the LAN.
  • the traditional batch upgrade method is based on the modification of the IP address. The method needs to upgrade the client to send multicast packets to search for embedded devices. When the embedded device receives the multicast packet, it depends on a certain algorithm. The IP address of the embedded device is changed, and then fed back to the upgrade client, and the upgrade client initiates a connection operation for a specific IP address. Because the traditional method needs to modify the IP address of the embedded device, the interaction process between the upgrade client and the embedded device is increased, the operation is complicated, and the work efficiency is low.
  • This document provides a method and system for batch upgrade of devices, so as to eliminate the need to modify the IP address of the embedded device during batch upgrade of the embedded device, thereby reducing the interaction process between the upgrade client and the embedded device, and improving the embedded process.
  • the efficiency of the device for batch upgrade is a method and system for batch upgrade of devices, so as to eliminate the need to modify the IP address of the embedded device during batch upgrade of the embedded device, thereby reducing the interaction process between the upgrade client and the embedded device, and improving the embedded process. The efficiency of the device for batch upgrade.
  • the embodiment of the invention provides a batch upgrade method for a device, including:
  • the switch divides different VLANs to connect to the embedded device
  • the host creates multiple virtual network ports and creates a bridge, set the different VLAN IDs of the different virtual network ports to match the IDs of the different VLANs on the switch, and add the multiple virtual network ports and Ethernet ports connected to the upgrade client.
  • the bridge In the bridge;
  • the upgrade client sends the packet carrying the destination address to the virtual network port corresponding to the target address on the host.
  • the host modifies the target address to the IP address of the embedded device, and adds the VLAN identifier corresponding to the virtual network port to the packet;
  • the host forwards the packet to the embedded device connected to the VLAN through the VLAN corresponding to the VLAN identifier on the switch according to the VLAN identifier.
  • the feedback message is sent to the upgrade client, and the upgrade file is downloaded from the upgrade client to be upgraded.
  • the device batch upgrade method further includes:
  • the embedded device returns the upgrade result to the upgrade client.
  • the device batch upgrade method further includes:
  • the host adds a mark to the packets to be received, so that the virtual network port of the host receives only the packets with the mark.
  • the embedded device verifies that the target address is correct, and then feeds back the message to the upgrade client, and downloads the upgrade file from the upgrade client to perform the upgrade, including:
  • the embedded device sends the message carrying the source IP address to the virtual network port corresponding to the host that matches the identifier of the VLAN through the VLAN corresponding to the switch connected to the VLAN, so that the host modifies the source IP address to be virtual.
  • the IP address of the network port is forwarded to the upgrade client, and the upgrade client sends an upgrade command carrying the upgrade file version to the embedded device according to the IP address of the virtual network port.
  • the embedded device After receiving the upgrade instruction, the embedded device upgrades the client by downloading the server.
  • the upgrade file of the corresponding version carried in the upgrade instruction is upgraded.
  • the host is a Linux host.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the embodiment of the present invention further provides a device batch upgrade system, where the device batch upgrade system includes a switch, a host, an upgrade client, and an embedded device, where
  • the switch is set to: divide different VLANs to connect to the embedded device;
  • the host is configured to: after creating multiple virtual network ports and creating a bridge, set different VLAN IDs of different virtual network ports to match the identifiers of different VLANs on the switch, and connect the multiple virtual network ports to the upgrade client.
  • the Ethernet port is added to the bridge;
  • the upgrade client is configured to: send the packet carrying the target address to the virtual network port corresponding to the target address on the host;
  • the host is further configured to: modify the target address to an IP address of the embedded device, and add a VLAN identifier corresponding to the virtual network port to the packet;
  • the host is further configured to: forward the packet to the embedded device connected to the VLAN by using a VLAN corresponding to the VLAN identifier on the switch according to the VLAN identifier;
  • the embedded device is set to: after verifying that the target address is correct, feedback the message to the upgrade client, and download the upgrade file from the upgrade client to upgrade.
  • the embedded device is further configured to: return the upgrade result to the upgrade client.
  • the host is further configured to: add a mark to the packet that needs to be received, so that the virtual network port of the host only receives the packet with the mark mark.
  • the embedded device is configured to: send the message carrying the source IP address to the virtual network port corresponding to the host that matches the identifier of the VLAN by using a VLAN corresponding to the switch connected to the VLAN;
  • the host is further configured to: modify the source IP address to an IP address of the virtual network port, and then forward the source IP address to the upgrade client.
  • the upgrade client is further configured to: send an upgrade file version according to the IP address of the virtual network port. This upgrade instruction to the embedded device;
  • the embedded device is further configured to: after receiving the upgrade command, download the upgrade file of the corresponding version carried in the upgrade instruction by using the download server of the upgrade client to perform the upgrade.
  • the host is a Linux host.
  • different VLANs are connected to the embedded device on the switch. After multiple virtual network ports are created on the host and the bridge is created, the different VLAN IDs of different virtual network ports are matched with the identifiers of different VLANs on the switch. Add multiple virtual network ports and Ethernet ports connected to the upgrade client to the bridge to form a connection path between the switch, the host, and the embedded device. After the upgrade client sends the packet carrying the destination address to the corresponding virtual network port on the host, the host modifies the destination address to the IP address of the embedded device and passes the packet to the VLAN and the VLAN based on the VLAN ID of the virtual network port. The corresponding VLAN of the identifier is forwarded to the embedded device connected to the VLAN.
  • the feedback message is sent to the upgrade client, and the upgrade file is downloaded from the upgrade client for upgrade.
  • the operation of dividing the virtual network port of the host and dividing the VLAN into the switch enables the embedded device to be upgraded in batches without modifying the IP address of the embedded device, thereby reducing the interaction process between the upgrade client and the embedded device. Improve the efficiency of batch upgrades for embedded devices.
  • FIG. 1 is a schematic diagram of an environment deployment structure of a device batch upgrade according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a relationship between internal modules of a batch upgrade of a device according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for batch upgrade of a device according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of functional modules of a device batch upgrade system according to an embodiment of the invention.
  • Embodiments of the present invention provide a device batch upgrade method, which can be used for an embedded device.
  • a batch upgrade can be implemented by upgrading the system by upgrading the client, the host, the switch, and the embedded device to be upgraded.
  • Figure 1 shows the environment deployment structure of the device in batch upgrade.
  • the upgrade client can be a tool running on a PC (Personal Computer), and is configured to: control an embedded device upgrade, including selecting, starting, and stopping the upgrade file.
  • the host can be a dual NIC host with Linux installed.
  • the Ethernet port on one side can be connected to the PC, and the Ethernet port on the other side can be connected to the switch. At the same time, it can be created on the host for each embedded device to be upgraded.
  • a virtual network port can be created on the host for each embedded device to be upgraded.
  • the switch can be configured to isolate packets through a virtual local area network (VLAN).
  • VLAN virtual local area network
  • Each embedded device to be upgraded can be attached to different VLANs.
  • Each VLAN has its own unique VLAN identifier.
  • the embedded device can be set to receive upgrade client commands, download firmware versions of upgrade files, firmware upgrades, and more.
  • a schematic diagram of an internal module relationship structure for batch upgrade of devices generally shows the relationship between related modules.
  • the host is equipped with a dual-NIC interface.
  • One-side Ethernet port eth1 is connected to the NIC (Network Interface Card) of the PC that upgrades the client, and the other Ethernet port eth0 is connected to the trunk interface of the switch.
  • Eth0.x is a VLAN virtual network port created by the vconfig command based on the Ethernet interface eth0. x indicates the VLAN ID.
  • Each virtual network port corresponds to an embedded device to be upgraded.
  • the switch is configured with multiple VLANs.
  • the VLAN ID corresponds to the number x in eth0.x.
  • Each VLAN is connected to a CPE device to be upgraded (that is, an embedded device).
  • an embodiment of the present invention further provides a device batch upgrade method.
  • the device batch upgrade method can be used for batch upgrade of embedded devices.
  • the batch upgrade method of the device includes:
  • Step S10 The switch divides different VLANs to connect to the embedded device.
  • Step S20 After the host creates multiple virtual network ports and creates a bridge, set different VLAN identifiers of different virtual network ports to match the identifiers of different VLANs on the switch, and connect the multiple virtual network ports to the Ethernet connected to the upgrade client.
  • the network port is added to the bridge;
  • the upgraded system needs to be configured before the batch upgrade of the embedded device to be upgraded.
  • Different VLANs can be divided on the switch. Each VLAN has its own unique identifier, and each embedded device to be upgraded. It belongs to a VLAN, that is, the VLAN can be connected to the embedded device in one-to-one correspondence. Multiple virtual network ports can be created on the host and the virtual network port can be connected. Bind to the Ethernet port on the switch side. Each virtual network port can also have its own unique VLAN identifier.
  • the host can be a Linux host. In the configuration process, the VLAN IDs of different virtual network ports can be matched with the identifiers of different VLANs on the switch.
  • the number x in the virtual network port eth0.x can correspond to the x in the VLAN ID vlan x on the switch.
  • All network ports on the host can be configured with different IP addresses, and can include all virtual network ports and two actual physical Ethernet ports. Due to the need to build a bridge, the IP address of the host can be kept on the same network segment as the embedded device. Then, a bridge can be created in the host, and the virtual network port and the Ethernet port connected to the client PC of the upgrade client are added to the bridge to form a path through the bridge to forward the packet.
  • the creation of the bridge and virtual network port in the host can be as follows:
  • the brt1 command creates a bridge and creates a virtual network port of eth0.2 based on eth0.
  • the packets with the VLAN ID of 2 can be forwarded to the virtual network port eth0.2 by eth0.
  • eth0.2 and eth1 can be hung under the br1 bridge to enable network communication between the virtual network port and the PC where the upgrade client resides.
  • a NAT (Network Address Translation) mapping rule of the packet can be created on the host, and the NAT mapping rule can be set to: in the process of sending the packet from the upgrade client to the embedded device, The destination address (that is, the IP address of the virtual network port) carried in the packet is changed to the IP address of the embedded device. Otherwise, the packet is carried in the process of returning the packet from the embedded device to the upgrade client. The IP address of the embedded device is modified to the target address.
  • the destination address that is, the IP address of the virtual network port
  • the packet may include an IP packet or an ARP (Address Resolution Protocol) packet.
  • ARP Address Resolution Protocol
  • the network address translation mapping rule for IP packets can be as follows:
  • the virtual network port address whose destination address is 192.168.1.2 is changed to the embedded device address 192.168.1.1.
  • the source address of the entry eth0.2 is modified to the target address 192.168.1.2.
  • the network address translation mapping rule for ARP packets can be as follows:
  • the virtual network port address whose destination address is 192.168.1.2 is changed to the embedded device address 192.168.1.1.
  • the IP source address whose entry is eth0.2 is changed to the target address 192.168.1.2.
  • Step S30 The upgrade client sends the packet carrying the target address to the virtual network port corresponding to the target address on the host.
  • the upgrade client may be an upgrade tool software running on the PC, and the user may specify a target address by operating the PC.
  • the target address at this time is the IP address of the virtual network port on the host, and may be upgraded by the client.
  • the packet carrying the destination address is sent to the virtual network port corresponding to the target address on the host.
  • the packet may further include a port number, a version number of the upgrade file, a user name and a password of the server for downloading the upgrade file on the client, and the server may be an FTP (File Transfer Protocol) server.
  • the network port of the upgrade client is connected to the Ethernet interface eth1 of the host through the network cable.
  • the host connects the Ethernet interface eth1 to the created virtual network port. Therefore, after the destination address is set, the upgrade client can The packet is sent to the corresponding virtual network port on the host.
  • the device batch upgrade method may include:
  • the host adds a mark mark to the packet to be received, so that the virtual network port of the host only receives the packet with the mark mark.
  • the control of mark mark messages can be as follows:
  • the virtual network port eth0.2 only processes packets with the mark marked 2.
  • Step S40 The host modifies the target address to the IP address of the embedded device, and adds the VLAN identifier corresponding to the virtual network port to the packet.
  • the target address can be modified to the IP address of the embedded device on the host's NAT, so that the embedded device can check the destination address carried in the packet after receiving the packet.
  • the host can add the VLAN ID of the virtual network port to the packet, so that the host forwards the packet to the corresponding VLAN on the switch according to the VLAN ID.
  • Step S50 The host forwards the packet to the embedded device connected to the VLAN through the VLAN corresponding to the VLAN identifier on the switch according to the VLAN identifier.
  • the virtual network port established on the host can be connected to the Ethernet port eth0, and the Ethernet port eth0 can be connected to the trunk interface of the switch through the network cable.
  • the switch can be divided into different VLANs, and each VLAN can pass through the network.
  • the VLAN ID of the virtual network port on the host can match the VLAN ID of the switch. Therefore, after the packet arrives at the host, the host can send the packet to the VLAN corresponding to the VLAN ID on the switch according to the VLAN ID of the virtual network port, and then the switch sends the packet to the VLAN through the VLAN.
  • Embedded device is Embedded device.
  • Step S60 After the embedded device verifies that the target address is correct, the feedback message is sent to the upgrade client, and the upgrade file is downloaded from the upgrade client to be upgraded.
  • the embedded device can verify the target address after receiving the message. Since the target address has been modified to the IP address of the embedded device, the embedded device can determine whether the target address is consistent with its own IP address. If it is consistent, the verification is passed, and the message can be fed back to the upgrade client, and then downloaded. Upgrade files to upgrade.
  • the step S60 may include: the embedded device sends the message carrying the source IP address to the virtual network port corresponding to the host that matches the identifier of the VLAN by using a VLAN corresponding to the switch connected to the VLAN, so that After the host IP address is modified to the IP address of the virtual network port, the host forwards the upgrade command to the upgrade client, and the upgrade client sends an upgrade command carrying the upgrade file version to the embedded device according to the IP address of the virtual network port.
  • the embedded device After receiving the upgrade command, the embedded device upgrades the upgrade file of the corresponding version carried in the upgrade instruction by downloading the download server of the client.
  • the embedded device can send a message carrying the source IP address to the VLAN on the switch connected thereto.
  • the source IP address can be the IP address of the embedded device.
  • the message is sent to the corresponding virtual network port on the host through the identifier of the VLAN on the switch.
  • the source IP address in the message can be modified to the IP address of the virtual network port on the host, and then the message is sent to the upgrade client.
  • the upgrade client can determine which embedded device feeds back the message according to the IP address of the virtual network port in the message.
  • the upgrade client may send an upgrade instruction to the corresponding embedded device according to the feedback message, and the upgrade instruction may include an upgrade file version and a name.
  • the embedded device may extract the version number of the upgrade file, the username and password of the FTP server from the message sent by the upgrade client, and then download the corresponding information by upgrading the FTP server of the client.
  • the upgrade file of the version can be verified by the downloaded upgrade file. If it is the upgrade file of the required version, it can be flashed (FLASH) for upgrade. If the target address verification fails, the embedded device can discard the message.
  • the embedded device After the embedded device is upgraded, the embedded device returns the upgrade result to the upgrade client.
  • the embedded device can send back the upgrade success message to the upgrade client; if the upgrade fails, the embedded device can send back the upgrade failure message to the upgrade client.
  • the upgrade client may display the message "Upgrade Successful" or "Upgrade Failed" in the form of a dialog box, or may broadcast the message by voice broadcast, or notify the user by sending a text message or email. It can also be notified to the user by other forms. Therefore, when the embedded device is shipped from the factory, the device can be upgraded in batches by the production line by the batch upgrade method, thereby improving work efficiency and reducing labor cost. Or when the embedded device is repaired, the device can be upgraded in batches by the repair center through the batch upgrade method of the device, thereby improving work efficiency.
  • different VLANs are connected to the embedded device on the switch, and after multiple virtual network ports are created on the host and the bridge is created, different VLAN identifiers of different virtual network ports and different VLAN identifiers on the switch are set. Match and add multiple virtual network ports and Ethernet ports connected to the upgrade client to the bridge to form a connection path between the switch, the host, and the embedded device.
  • the host modifies the destination address to the IP address of the embedded device and passes the packet to the VLAN and the VLAN based on the VLAN ID of the virtual network port.
  • the corresponding VLAN of the identifier is forwarded to the embedded device connected to the VLAN.
  • the feedback message is sent to the upgrade client, and the upgrade file is downloaded from the upgrade client for upgrade.
  • the upgrade environment is configured once and used multiple times. The device accesses the device through NAT mapping and VLAN isolation.
  • an embodiment of the present invention further provides a device batch upgrade system.
  • the device batch upgrade system can be used for batch upgrade of embedded devices.
  • the device batch upgrade system includes a switch 10, a host 20, an upgrade client 30, and an embedded device 40, where
  • the switch 10 is configured to: divide different VLANs to connect to the embedded device 40;
  • the host 20 is configured to: after creating multiple virtual network ports and creating a bridge, set different VLAN identifiers of different virtual network ports to match the identifiers of different VLANs on the switch 10, and upgrade the multiple virtual network ports and connections.
  • the Ethernet port of the client 30 is added to the bridge;
  • the configuration of the level system can be divided into different VLANs on the switch 10.
  • Each VLAN has its own unique identifier.
  • Each embedded device 40 to be upgraded belongs to one VLAN, that is, the VLAN has a one-to-one correspondence with the embedded device 40. connection.
  • a plurality of virtual network ports are created on the host 20, and the virtual network port is bound to an Ethernet port connected to the switch 10, and each virtual network port also has its own unique VLAN identifier.
  • the host 20 can be Linux. Host. During the configuration process, the VLAN IDs of different virtual network ports must match the IDs of different VLANs on the switch 10.
  • the number x in the virtual network port eth0.x and the x-phase in the VLAN ID vlan x on the switch 10 correspond.
  • All the network ports on the host 20 are configured with different IP addresses, including all virtual network ports and two actual physical Ethernet ports. Due to the need to build a bridge, the IP address of the host must be on the same network segment as the embedded device. Then, the bridge is created in the host, and the virtual network port and the Ethernet port connected to the client PC are added to the bridge to forward packets through the bridge.
  • the brt1 command creates a bridge and creates a virtual network port of eth0.2 based on eth0.
  • the packets with the VLAN ID of 2 are forwarded to eth0.2 by eth0.
  • eth0.2 and eth1 are connected to the br1 bridge, which enables the network between the virtual network port and the PC where the upgrade client is located to communicate with each other.
  • a network address translation mapping (ie, NAT mapping) rule of the packet is created on the host 20, and the NAT mapping rule can be set to send the packet from the upgrade client 30 to the embedded device 40, and the packet needs to be sent.
  • the target address carried in the packet that is, the IP address of the virtual network port
  • the packet is returned from the embedded device 40 to the upgrade client 30.
  • the IP address of device 40 is modified to the target address.
  • the packet may include an IP (Internet Protocol) packet or an ARP (Address Resolution Protocol) packet.
  • IP Internet Protocol
  • ARP Address Resolution Protocol
  • the virtual network port address whose destination address is 192.168.1.2 is modified to the address 192.168.1.1 of the embedded device 40.
  • the virtual network port address whose destination address is 192.168.1.2 is changed to the 40 address 192.168.1.1 of the embedded device.
  • the ARP packet is returned from the embedded device 40 to the upgrade client 30, and the IP source address of the entry eth0.2 is changed to the target address 192.168.1.2.
  • the upgrade client 30 is configured to: send the packet carrying the target address to the virtual network port corresponding to the target address on the host 20;
  • the upgrade client 30 is an upgrade tool software running on the PC.
  • the user can specify a target address by operating the PC.
  • the target address is the IP address of the virtual network port on the host 20, and the client is upgraded.
  • the packet carrying the destination address is sent to the virtual network port corresponding to the target address on the host.
  • the packet further includes a port number, a version number of the upgrade file, and a username and password for the server for downloading the upgrade file on the client.
  • the server may be an FTP (File Transfer Protocol) server.
  • the network port of the upgrade client 30 is connected to the eth1 Ethernet port of the host 20 through the network cable, and the host 20 connects the eth1 Ethernet port to the created virtual network port by creating a bridge. Therefore, the upgrade client completes the setting of the target address.
  • the packet can be sent to the corresponding virtual network port on the host.
  • the host 20 is further configured to: add a mark to the packet to be received, so that the virtual network port of the host 20 only receives the packet with the mark mark. .
  • the markup flag is added to the packets to be received from the upgrade client 30, so that the virtual network port on the host 20 can only receive the packets marked with the mark. .
  • the packet is added to the virtual network port to facilitate the filtering and discarding of packets that are not related to the virtual network port. This reduces the reception of spam packets and greatly improves the efficiency.
  • the markup is added to the message as follows:
  • the mark mark message control is as follows:
  • the virtual network port eth0.2 only processes packets with the mark marked 2.
  • the host 20 is further configured to: modify the target address to the IP address of the embedded device 40, and add the VLAN identifier corresponding to the virtual network port to the packet;
  • the target address is modified to the IP address of the embedded device 40 on the network address translation (NAT) of the host 20, so that the embedded device 40 can perform the target address carried in the packet after receiving the packet. check.
  • the host 20 adds the VLAN identifier of the virtual network port to the packet, so that the host 20 forwards the packet to the corresponding VLAN on the switch 10 according to the VLAN identifier.
  • the host 20 is further configured to forward the packet to the embedded device 40 connected to the VLAN through the VLAN corresponding to the VLAN identifier on the switch 10 according to the VLAN identifier;
  • the virtual network port established on the host 20 is connected to the eth0 Ethernet port, and the eth0 Ethernet port is connected to the trunk interface of the switch 10 through the network cable.
  • the switch 10 is divided into different VLANs, and each VLAN passes through the network.
  • the embedded device 40 to be upgraded is connected, and the VLAN identifiers of different virtual network ports on the host 20 are matched with the different VLAN identifiers on the switch 10.
  • the embedded device 40 is configured to: after verifying that the target address is correct, feedback the message to the upgrade client 30, and download the upgrade file from the upgrade client 30 for upgrading.
  • the embedded device 40 After receiving the message, the embedded device 40 verifies the target address. Since the target address has been modified to the IP address of the embedded device, the embedded device 40 can determine whether the target address is consistent with its own IP address. If it is consistent, the verification is passed, and the message is fed back to the upgrade client 30, and then downloaded. Upgrade files to upgrade.
  • the embedded device 40 is further configured to: send the message carrying the source IP address to the virtual network port corresponding to the host 20 matching the identifier of the VLAN by using a VLAN corresponding to the switch 10 connected thereto;
  • the host 20 is further configured to: modify the source IP address to the IP address of the virtual network port and forward it to the upgrade client 30;
  • the upgrade client 30 is further configured to: send an upgrade command carrying the upgrade file version to the embedded device 40 according to the IP address of the virtual network port;
  • the embedded device 40 is further configured to: after receiving the upgrade command, download the upgrade file of the corresponding version carried in the upgrade instruction by the download server of the upgrade client 30 to perform the upgrade.
  • the embedded device 40 can send a message carrying the source IP address to the VLAN on the switch 10 connected thereto, and at this time, the source IP address can be the IP address of the embedded device. Then, the message is sent to the corresponding virtual network port on the host 20 through the identifier of the VLAN on the switch 10 according to the mapping between the VLANs of the switch 10 and the multiple virtual network ports on the host 20. The source IP address in the message can be modified on the host 20 to the IP address of the virtual network port, and then the message is sent to the upgrade client 30. After receiving the message fed back by the embedded device 40, the upgrade client 30 can determine which embedded device 40 feeds back the message according to the IP address of the virtual network port in the message.
  • the upgrade client 30 can send an upgrade command to the corresponding embedded device 40 according to the feedback message, and the upgrade command can include an upgrade file version and a name.
  • the embedded device 40 can receive the upgrade command after receiving the upgrade command.
  • the message sent by the upgrade client extracts the version number of the upgrade file, the username and password of the FTP server, and then downloads the upgrade file of the corresponding version by upgrading the FTP server of the client 30, and then downloads the file.
  • the upgrade file is verified. If it is the upgrade file of the required version, you can write FLASH to upgrade. If the target address verification fails, the embedded device 40 can discard the message.
  • the embedded device 40 is further configured to return the upgrade result to the upgrade client 30.
  • the embedded device 40 may send back a successful upgrade message to the upgrade client 30; if the upgrade fails, the embedded device 40 may send back an upgrade failure message to the upgrade client 30.
  • the upgrade client 30 may display a message of "upgrade success" or "upgrade failure” in the form of a dialog box, or may broadcast the message by voice broadcast, or send a text message or email notification. The user can also notify the user by other forms. Therefore, when the embedded device 40 is shipped from the factory, the device can be batch upgraded by the production line through the batch upgrade method of the device, thereby improving work efficiency and reducing labor cost. Or when the embedded device 40 is repaired, the device can be upgraded in batches by the repair center through the batch upgrade method of the device, thereby improving work efficiency.
  • different VLANs are connected to the embedded device 40 on the switch 10. After multiple virtual network ports are created on the host 20 and bridges are created, different VLAN identifiers of different virtual network ports are set and divided on the switch 10. The identifiers of the different VLANs are matched, and the plurality of virtual network ports and the Ethernet port connected to the upgrade client 30 are added to the bridge, so that a connection path is formed between the switch 10, the host 20, and the embedded device 40. After the upgrade client 30 sends the packet carrying the target address to the corresponding virtual network port on the host 20, the host 20 modifies the target address to the IP address of the embedded device 40, and passes the packet according to the VLAN identifier of the virtual network port.
  • the VLAN corresponding to the VLAN identifier on the switch 10 is forwarded to the embedded device 40 connected to the VLAN.
  • the feedback message is sent to the upgrade client 30, and the upgrade file is downloaded from the upgrade client 30 for upgrade.
  • the operation of dividing the virtual network port of the host 20 and dividing the VLAN of the switch 10 enables the upgrade environment to be configured once and used multiple times, and accesses the device through technologies such as NAT mapping and VLAN isolation.
  • the batch device 40 is upgraded in batches, it is not necessary to modify the IP address of the embedded device 40, and the interaction process between the upgrade client 30 and the embedded device 40 is reduced. The operation is simple and clear, and the efficiency of batch upgrade of the embedded device 40 is improved.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in a contribution to the related art, and the computer software product may be stored in a storage medium (such as a read only memory (ROM). , Read-Only Memory)/Random Access Memory (RAM), including several instructions to make a terminal device (can be a mobile phone, computer, server, air conditioner, or network) The device or the like) performs the method described in the embodiments of the present invention.
  • ROM read only memory
  • RAM Random Access Memory
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • different VLANs are connected to the embedded device on the switch. After multiple virtual network ports are created on the host and the bridge is created, the different VLAN IDs of different virtual network ports are matched with the identifiers of different VLANs on the switch. Add multiple virtual network ports and Ethernet ports connected to the upgrade client to the bridge to form a connection path between the switch, the host, and the embedded device. After the upgrade client sends the packet carrying the destination address to the corresponding virtual network port on the host, the host modifies the destination address to the IP address of the embedded device and passes the packet to the VLAN and the VLAN based on the VLAN ID of the virtual network port. The corresponding VLAN of the identifier is forwarded to the embedded device connected to the VLAN.
  • the feedback message is sent to the upgrade client, and the upgrade file is downloaded from the upgrade client for upgrade.
  • the operation of dividing the virtual network port of the host and dividing the VLAN into the switch enables the embedded device to be upgraded in batches without modifying the IP address of the embedded device, thereby reducing the interaction process between the upgrade client and the embedded device. Improve the efficiency of batch upgrades for embedded devices.

Landscapes

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

Abstract

一种设备批量升级方法包括:主机创建多个虚拟网口及创建桥后,设置不同虚拟网口VLAN标识与交换机上不同VLAN的标识匹配,并将多个虚拟网口与连接升级客户端的以太网口加入到桥中;升级客户端将携带目标地址的报文发送至主机上对应的虚拟网口;主机将目标地址修改为嵌入式设备的IP地址后,根据VLAN标识将报文通过交换机上匹配的VLAN转发至与其连接的嵌入式设备;嵌入式设备校验目标地址正确后反馈消息至升级客户端,并下载升级文件进行升级。

Description

设备批量升级方法及系统 技术领域
本申请涉及但不限于网络技术领域,尤其涉及一种设备批量升级方法及系统。
背景技术
随着移动互联网及智能家居等的兴起,在很大程度上推动了嵌入式领域的发展。一方面嵌入式设备在出厂前通常需要进行升级,该升级包含对嵌入式设备的固件升级、配置升级等;另一方面,嵌入式设备在返厂维修时,也需要进行版本升级等相关操作。对于单台嵌入式设备的升级来说,顺序操作成本很高,严重影响工作效率,因此,针对如此众多的嵌入式设备,批量操作的实现显得很重要。
嵌入式设备的一个典型特征就是设备的IP(Internet Protocol,网络互联协议)地址是固定的,无法在局域网内直接访问。传统的批量升级方法都是基于对IP地址的修改实现的,该方法需要升级客户端发送组播报文以搜寻嵌入式设备,当嵌入式设备接收到组播报文时,依据一定的算法对嵌入式设备的IP地址进行更改,然后反馈给升级客户端,由升级客户端针对特定的IP地址发起连接操作等。由于传统的方法需要修改嵌入式设备的IP地址,增加了升级客户端和嵌入式设备之间的交互流程,操作复杂,工作效率较低。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种设备批量升级方法及系统,以实现在对嵌入式设备进行批量升级时无需修改嵌入式设备的IP地址,从而减少升级客户端和嵌入式设备之间的交互流程,提高对嵌入式设备进行批量升级的效率。
本发明实施例提供了一种设备批量升级方法,包括:
交换机划分不同的VLAN连接嵌入式设备;
主机创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将所述多个虚拟网口与连接升级客户端的以太网口加入到桥中;
升级客户端将携带目标地址的报文发送至主机上与所述目标地址对应的虚拟网口;
主机将所述目标地址修改为嵌入式设备的IP地址,并将所述虚拟网口对应的VLAN标识添加至所述报文;
主机根据所述VLAN标识将所述报文通过交换机上与所述VLAN标识对应的VLAN,转发至与所述VLAN连接的嵌入式设备;
嵌入式设备校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。
可选地,所述嵌入式设备校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级之后,所述设备批量升级方法还包括:
嵌入式设备将升级结果返回升级客户端。
可选地,所述升级客户端将携带目标地址的报文发送至主机上与所述目标地址对应的虚拟网口之前,所述设备批量升级方法还包括:
主机给需要接收的报文添加mark标记,以使所述主机的虚拟网口仅接收存在mark标记的报文。
可选地,所述嵌入式设备校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级包括:
嵌入式设备将携带源IP地址的消息通过与其连接的交换机对应的VLAN,发送至在与所述VLAN的标识匹配的主机上对应的虚拟网口,以使主机将所述源IP地址修改为虚拟网口的IP地址后转发至升级客户端,供升级客户端根据所述虚拟网口的IP地址发送携带升级文件版本的升级指令至嵌入式设备;
嵌入式设备在接收到所述升级指令后,通过升级客户端的下载服务器下 载在所述升级指令中携带的对应版本的升级文件进行升级。
可选地,所述主机为Linux主机。
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述设备批量升级方法。
本发明实施例还提供了一种设备批量升级系统,所述设备批量升级系统包括交换机、主机、升级客户端及嵌入式设备,其中,
交换机,设置为:划分不同的VLAN来连接嵌入式设备;
主机,设置为:创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将所述多个虚拟网口与连接升级客户端的以太网口加入到桥中;
升级客户端,设置为:将携带目标地址的报文发送至主机上与所述目标地址对应的虚拟网口;
主机还设置为:将所述目标地址修改为嵌入式设备的IP地址,并将所述虚拟网口对应的VLAN标识添加至所述报文;
主机还设置为:根据所述VLAN标识将所述报文通过交换机上与所述VLAN标识对应的VLAN,转发至与所述VLAN连接的嵌入式设备;
嵌入式设备,设置为:校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。
可选地,所述嵌入式设备还设置为:将升级结果返回升级客户端。
可选地,所述主机还设置为:给需要接收的报文添加mark标记,以使所述主机的虚拟网口仅接收存在mark标记的报文。
可选地,所述嵌入式设备是设置为:将携带源IP地址的消息通过与其连接的交换机对应的VLAN,发送至在与所述VLAN的标识匹配的主机上对应的虚拟网口;
主机还设置为:将所述源IP地址修改为虚拟网口的IP地址后转发至升级客户端;
升级客户端还设置为:根据所述虚拟网口的IP地址发送携带升级文件版 本的升级指令至嵌入式设备;
嵌入式设备还设置为:在接收到所述升级指令后,通过升级客户端的下载服务器下载在所述升级指令中携带的对应版本的升级文件进行升级。
可选地,所述主机为Linux主机。
本发明实施例在交换机上划分不同的VLAN连接嵌入式设备,在主机上创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将多个虚拟网口与连接升级客户端的以太网口加入到桥中,以使交换机、主机及嵌入式设备之间形成连接通路。升级客户端将携带目标地址的报文发送至主机上对应的虚拟网口后,主机将目标地址修改为嵌入式设备的IP地址,并根据虚拟网口的VLAN标识将报文通过交换机上与VLAN标识对应的VLAN转发至与该VLAN连接的嵌入式设备。嵌入式设备校验目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。实现了通过对主机划分虚拟网口及对交换机划分VLAN等操作,在对嵌入式设备进行批量升级时无需修改嵌入式设备的IP地址,减少了升级客户端和嵌入式设备之间的交互流程,提高了对嵌入式设备批量升级的效率。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为根据本发明实施例的设备批量升级的环境部署结构示意图;
图2为根据本发明实施例的设备批量升级内部模块关系结构示意图;
图3为根据本发明实施例的设备批量升级方法的流程示意图;
图4为根据本发明实施例的设备批量升级系统的功能模块示意图。
本发明的较佳实施方式
下面结合附图对本发明的实施方式进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。
本发明实施例提供了一种设备批量升级方法,可用于进行嵌入式设备的 批量升级,可通过包括升级客户端、主机、交换机及待升级的嵌入式设备的设备批量升级系统来实现,如图1所示为设备批量升级的环境部署结构示意图。其中,升级客户端可为运行于PC机(Personal Computer,个人计算机)上的工具软件,设置为:控制嵌入式设备升级,包含对升级文件的版本选择、启动、停止等操作。主机可为安装有Linux的双网卡主机,一侧的以太网口可连接PC机,另一侧的以太网口可连接交换机,同时,可在主机上针对每一台待升级的嵌入式设备创建一个虚拟网口。交换机可设置为:通过VLAN(Virtual Local Area Network,虚拟局域网)隔离报文,交换机下挂的每个待升级的嵌入式设备可以都附属于不同VLAN,每个VLAN都有各自唯一的VLAN标识。嵌入式设备可设置为:接收升级客户端命令、下载升级文件的固件版本、固件升级等。
可选地,如图2所示,为设备批量升级的内部模块关系结构示意图,大致地展示了相关模块之间的关系。其中,主机安装有双网卡,一侧以太网口eth1连接安装有升级客户端的PC机的NIC(Network Interface Card,网络适配器),另一侧以太网口eth0连接交换机的中继(trunk)接口。eth0.x是vconfig命令基于以太网口eth0创建出的多个VLAN虚拟网口,x表示VLAN标识,每个虚拟网口对应到一个待升级的嵌入式设备。交换机配置多个VLAN,VLAN标识和eth0.x中的数字x相对应,每个VLAN连接一个待升级的CPE设备(即嵌入式设备)。
如图3所示,本发明实施例还提供了一种设备批量升级方法。该设备批量升级方法可用于进行嵌入式设备的批量升级。该设备批量升级方法包括:
步骤S10、交换机划分不同的VLAN连接嵌入式设备;
步骤S20、主机创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将所述多个虚拟网口与连接升级客户端的以太网口加入到桥中;
本实施例中,在对待升级的嵌入式设备进行批量升级之前需要完成升级系统的配置,可在交换机上划分不同的VLAN,每个VLAN都有自身唯一的标识,每个待升级的嵌入式设备从属于一个VLAN,即VLAN可与嵌入式设备进行一一对应连接。可在主机上创建多个虚拟网口,并且将虚拟网口与连 接到交换机一侧的以太网口绑定,每个虚拟网口也都可以有自身唯一的VLAN标识,该主机可为Linux主机。在配置的过程中,不同虚拟网口的VLAN标识可与交换机上划分不同VLAN的标识匹配,例如,虚拟网口eth0.x中的数字x可与交换机上的VLAN标识vlan x中的x相对应。主机上的所有网口可配置不同的IP地址,以及可包含所有的虚拟网口和两个实际的物理以太网口。由于建桥的需要,主机的IP地址可与嵌入式设备保持在同一网段。然后可在主机中创建桥,将虚拟网口和连接升级客户端PC的一侧以太网口加入到桥中,以通过桥形成通路来进行报文的转发。
在主机中桥和虚拟网口的创建可以如下所示:
brctl addbr br1
brctl addif br1 eth1
vconfig add eth0 2
brctl addif br1 eth0.2
其中,可通过brctl命令创建桥,并基于eth0建立一个eth0.2的虚拟网口,这样VLAN标识为2的报文可被eth0转交给虚拟网口eth0.2。同时,eth0.2和eth1可下挂在br1桥的下面,可使虚拟网口和升级客户端所在的PC机之间网络互通。
另外,可在主机上创建报文的NAT(Network Address Translation,网络地址转换)映射规则,该NAT映射规则可设置为:在将报文从升级客户端发送到嵌入式设备的过程中,需要将报文中携带的目标地址(即虚拟网口的IP地址)修改为嵌入式设备的IP地址,反之,在将报文从嵌入式设备返回到升级客户端的过程中,需要将报文中携带的嵌入式设备的IP地址修改为目标地址。
该报文可包括IP报文或ARP(Address Resolution Protocol,地址解析协议)报文,以下将以发送IP报文或ARP报文为例进行详细说明:
IP报文的网络地址转换映射规则可以如下:
ebtables-t broute-A BROUTING-p IPv4--ip-destination 192.168.1.2-j ipnat--to-ip-dst 192.168.1.1--ipnat-target CONTINUE
在将IP报文从升级客户端发送到嵌入式设备的过程中,将目标地址是192.168.1.2的虚拟网口地址修改为嵌入式设备地址192.168.1.1。
ebtables-t broute-A BROUTING-i eth0.2-p IPv4-j ipnat--to-ip-src 192.168.1.2--ipnat-target CONTINUE
在将IP报文从嵌入式设备返回至升级客户端的过程中,将入口是eth0.2的源地址修改为目标地址192.168.1.2。
ARP报文的网络地址转换映射规则可以如下:
arptables-A FORWARD-t filter-d 192.168.1.2-j mangle--mangle-ip-d 192.168.1.1
在将ARP报文从升级客户端发送到嵌入式设备的过程中,将目标地址是192.168.1.2的虚拟网口地址修改为嵌入式设备地址192.168.1.1。
arptables-A FORWARD-t filter-i eth0.2-s 192.168.1.1-j mangle--mangle-ip-s 192.168.1.2
在将ARP报文从嵌入式设备返回至升级客户端的过程中,将入口是eth0.2的IP源地址修改为目标地址192.168.1.2。
步骤S30、升级客户端将携带目标地址的报文发送至主机上与所述目标地址对应的虚拟网口;
本实施例中,升级客户端可为运行于PC机上的升级工具软件,用户可通过操作PC机指定目标地址,此时的目标地址为主机上虚拟网口的IP地址,并可由升级客户端将携带目标地址的报文发送至在主机上与目标地址对应的虚拟网口。该报文还可包括端口号、升级文件的版本号、升级客户端上用于下载升级文件的服务器的用户名及密码等,该服务器可为FTP(File Transfer Protocol,文件传输协议)服务器。由于升级客户端的网口通过网线与主机的以太网口eth1连接,而主机通过创建桥将以太网口eth1与所创建的虚拟网口连通,因此升级客户端在完成目标地址的设置后,可将报文发送至在主机上对应的虚拟网口。
可选地,为了进一步提高报文的传送效率,上述步骤S30之前,该设备批量升级方法可包括:
主机给需要接收的报文添加记号mark标记,以使所述主机的虚拟网口仅接收存在mark标记的报文。
可在主机上对从升级客户端发送过来的大量报文中,给需要接收的报文添加上mark标记,以保证在主机上的虚拟网口只能收到制定有mark标记的报文。使得对流经虚拟网口的报文添加标记,方便后面进行过滤以丢弃与虚拟网口无关的报文,减少了对垃圾报文的接收,大大提高了效率。
对报文添加mark标记可以如下所示:
ebtables-t broute-A BROUTING-p IPv4--ip-destination 192.168.1.2-j mark--set-mark 2--mark-target CONTINUE
ebtables-t broute-A BROUTING-p ARP--arp-ip-dst 192.168.1.2-j mark--set-mark 2--mark-target CONTINUE
对mark标记报文的控制可以如下所示:
ebtables-A FORWARD-o eth0.2--mark!2-j DROP
虚拟网口eth0.2仅处理mark标记为2的报文。
步骤S40、主机将所述目标地址修改为嵌入式设备的IP地址,并将所述虚拟网口对应的VLAN标识添加至所述报文;
可在主机的NAT上将目标地址修改为嵌入式设备的IP地址,以便嵌入式设备在接收到报文后,可对报文中携带的目标地址进行校验。主机可在报文中添加虚拟网口的VLAN标识,以便主机根据VLAN标识将报文转发至交换机上对应的VLAN。
步骤S50、主机根据所述VLAN标识将所述报文通过交换机上与所述VLAN标识对应的VLAN,转发至与所述VLAN连接的嵌入式设备;
由于主机上所建立的虚拟网口可与以太网口eth0连接,而该以太网口eth0又可通过网线与交换机的trunk接口连接,同时在交换机可划分有不同的VLAN,每个VLAN可通过网络与待升级的嵌入式设备连接,主机上不同虚拟网口的VLAN标识可与交换机上划分不同的VLAN标识匹配。因此,当报文到达主机后,主机可根据虚拟网口的VLAN标识将报文发送至在交换机上与VLAN标识对应的VLAN,再由交换机通过VLAN将报文发送至与其连接 的嵌入式设备。
步骤S60、嵌入式设备校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。
嵌入式设备可在接收到报文后,对目标地址进行校验。由于在上述已将目标地址修改为嵌入式设备的IP地址,因此嵌入式设备可判断目标地址是否与自身的IP地址一致,若一致则验证通过,并可反馈消息至升级客户端,然后可下载升级文件进行升级。
可选地,上述步骤S60可包括:嵌入式设备将携带源IP地址的消息通过与其连接的交换机对应的VLAN,发送至在与所述VLAN的标识匹配的主机上对应的虚拟网口,以使主机将所述源IP地址修改为虚拟网口的IP地址后转发至升级客户端,供升级客户端根据所述虚拟网口的IP地址发送携带升级文件版本的升级指令至嵌入式设备;
嵌入式设备在接收到所述升级指令后,通过升级客户端的下载服务器下载在所述升级指令中携带的对应版本的升级文件进行升级。
嵌入式设备可将携带源IP地址的消息发送至与其连接的交换机上的VLAN,此时,该源IP地址可为嵌入式设备的IP地址。然后可根据交换机所划分的VLAN与主机上创建多个虚拟网口的对应关系,通过交换机上VLAN的标识将消息发送至在主机上对应的虚拟网口。可在主机上将消息中的源IP地址修改为虚拟网口的IP地址,然后将消息发送至升级客户端。升级客户端可在接收到嵌入式设备反馈的消息后,根据消息中的虚拟网口的IP地址确定是哪个嵌入式设备反馈的消息。升级客户端可根据反馈的消息发送升级指令至对应的嵌入式设备,该升级指令可包括升级文件版本及名称。嵌入式设备在接收到升级指令后,可从上述升级客户端发送过来的报文中提取升级文件的版本号、FTP服务器的用户名及密码等消息,然后,可通过升级客户端的FTP服务器下载相应版本的升级文件,然后可对下载的升级文件进行校验,若是所需版本的升级文件,则可烧写快闪(FLASH)进行升级。若目标地址验证不通过,则嵌入式设备可丢弃该报文。
可选地,在嵌入式设备完成升级后,嵌入式设备将升级结果返回升级客户端。
如果升级成功,则嵌入式设备可回送升级成功的消息至升级客户端;如果升级失败,则嵌入式设备可回送升级失败的消息至升级客户端。升级客户端在接收到升级结果后,可以是通过对话框的形式显示“升级成功”或者“升级失败”的消息,也可以是通过语音播报的消息进行播报,或者是通过发短信或者邮件通知用户,也可以是通过其他的形式通知用户。从而使得嵌入式设备出厂时,可通过本设备批量升级方法由生产线对设备进行批量升级等操作,从而提升工作效率,减低人力成本。或者在嵌入式设备返修时,可通过本设备批量升级方法由返修中心对设备进行批量升级等操作,从而提升工作效率。
通过本发明实施例,在交换机上划分不同的VLAN连接嵌入式设备,在主机上创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将多个虚拟网口与连接升级客户端的以太网口加入到桥中,以使交换机、主机及嵌入式设备之间形成连接通路。升级客户端将携带目标地址的报文发送至主机上对应的虚拟网口后,主机将目标地址修改为嵌入式设备的IP地址,并根据虚拟网口的VLAN标识将报文通过交换机上与VLAN标识对应的VLAN转发至与该VLAN连接的嵌入式设备。嵌入式设备校验目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。实现了通过对主机划分虚拟网口及对交换机划分VLAN等操作,使得升级环境一次配置,多次使用,通过NAT映射、VLAN隔离等技术实现对设备的访问。在对嵌入式设备进行批量升级时无需修改嵌入式设备的IP地址,减少升级客户端和嵌入式设备之间的交互流程,操作简单明了,提高了对嵌入式设备批量升级的效率。
对应地,如图4所示,本发明实施例还提供了一种设备批量升级系统。该该设备批量升级系统可用于进行嵌入式设备的批量升级。该设备批量升级系统包括交换机10、主机20、升级客户端30及嵌入式设备40,其中,
交换机10,设置为:划分不同的VLAN来连接嵌入式设备40;
主机20,设置为:创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机10上所划分不同VLAN的标识匹配,并将所述多个虚拟网口与连接升级客户端30的以太网口加入到桥中;
本实施例中,在对待升级的嵌入式设备40进行批量升级之前需要完成升 级系统的配置,可在交换机10上划分不同的VLAN,每个VLAN都有自身唯一的标识,每个待升级的嵌入式设备40从属于一个VLAN,即VLAN与嵌入式设备40进行一一对应连接。在主机20上创建多个虚拟网口,并且将虚拟网口与连接到交换机10一侧的以太网口绑定,每个虚拟网口也都有自身唯一的VLAN标识,该主机20可为Linux主机。在配置的过程中,不同虚拟网口的VLAN标识要和交换机10上划分不同VLAN的标识匹配,例如,虚拟网口eth0.x中的数字x与交换机10上的VLAN标识vlan x中的x相对应。主机20上的所有网口配置不同的IP地址,包含所有的虚拟网口和两个实际的物理以太网口。由于建桥的需要,主机的IP地址要和嵌入式设备保持在同一网段。然后在主机中创建桥,将虚拟网口和连接升级客户端PC的一侧以太网口加入到桥中,以通过桥形成通路进行报文的转发。
在主机中桥和虚拟网口的创建如下所示:
brctl addbr br1
brctl addif br1 eth1
vconfig add eth0 2
brctl addif br1 eth0.2
其中,通过brctl命令创建桥,并基于eth0建立一个eth0.2的虚拟网口,这样VLAN标识为2的报文会被eth0转交给eth0.2口。同时,eth0.2和eth1下挂br1桥下面,可使虚拟网口和升级客户端所在的PC机之间网络互通。
另外,在主机20上创建报文的网络地址转换映射(即NAT映射)规则,该NAT映射规则可设置为将报文从升级客户端30发送到嵌入式设备40的过程中,需要将报文中携带的目标地址(即虚拟网口的IP地址)替换为嵌入式设备40的IP地址,反之,将报文从嵌入式设备40返回到升级客户端30,需要将报文中携带的嵌入式设备40的IP地址修改为目标地址。
该报文可包括IP(Internet Protocol,网络互联协议)报文或ARP(Address Resolution Protocol,地址解析协议)报文,以下将以发送IP报文或ARP报文为例进行详细说明:
IP报文的网络地址转换映射规则:
ebtables-t broute-A BROUTING-p IPv4--ip-destination 192.168.1.2-j ipnat--to-ip-dst 192.168.1.1--ipnat-target CONTINUE
将IP报文从升级客户端30发送到嵌入式设备40的过程中,目标地址是192.168.1.2的虚拟网口地址修改为嵌入式设备40的地址192.168.1.1。
ebtables-t broute-A BROUTING-i eth0.2-p IPv4-j ipnat--to-ip-src 192.168.1.2--ipnat-target CONTINUE
将IP报文从嵌入式设备40返回至升级客户端,将入口是eth0.2的源地址改为目标地址192.168.1.2。
ARP报文的网络地址转换映射规则:
arptables-A FORWARD-t filter-d 192.168.1.2-j mangle--mangle-ip-d 192.168.1.1
将ARP报文从升级客户端30发送到嵌入式设备40的过程中,目标地址是192.168.1.2的虚拟网口地址修改为嵌入式设备的40地址192.168.1.1。
arptables-A FORWARD-t filter-i eth0.2-s 192.168.1.1-j mangle--mangle-ip-s 192.168.1.2
将ARP报文从嵌入式设备40返回至升级客户端30,将入口是eth0.2的IP源地址改为目标地址192.168.1.2。
升级客户端30,设置为:将携带目标地址的报文发送至主机20上与所述目标地址对应的虚拟网口;
本实施例中,升级客户端30为运行于PC机上的升级工具软件,用户可通过操作PC机指定目标地址,此时的目标地址为主机20上虚拟网口的IP地址,并由升级客户端30将携带目标地址的报文发送至主机上与目标地址对应的虚拟网口。该报文还包括端口号、升级文件的版本号、升级客户端上用于下载升级文件的服务器用的户名及密码等,该服务器可为FTP(File Transfer Protocol,文件传输协议)服务器。由于升级客户端30的网口通过网线与主机20的eth1以太网口连接,而主机20通过创建桥将eth1以太网口与所创建的虚拟网口连通,因此升级客户端在完成目标地址的设置后,可将报文发送至主机上对应的虚拟网口。
可选地,为了进一步提高报文的传送效率,主机20还设置为:给需要接收的报文添加记号(mark)标记,以使所述主机20的虚拟网口仅接收存在mark标记的报文。
可在主机20上对从升级客户端30发送过来的大量报文中,给需要接收的报文添加上mark标记,以保证主机20上的虚拟网口只能收到制定有mark标记的报文。使得对流经虚拟网口的报文添加标记,方便后面进行过滤、丢弃和虚拟网口无关的报文,减少了对垃圾报文的接收,大大提高了效率。报文添加mark标记如下所示:
ebtables-t broute-A BROUTING-p IPv4--ip-destination 192.168.1.2-j mark--set-mark 2--mark-target CONTINUE
ebtables-t broute-A BROUTING-p ARP--arp-ip-dst 192.168.1.2-j mark--set-mark 2--mark-target CONTINUE
mark标记报文控制如下所示:
ebtables-A FORWARD-o eth0.2--mark!2-j DROP
虚拟网口eth0.2仅处理mark标记为2的报文。
主机20还设置为:将所述目标地址修改为嵌入式设备40的IP地址,并将所述虚拟网口对应的VLAN标识添加至所述报文;
在主机20的NAT(Network Address Translation,网络地址转换)上将目标地址修改为嵌入式设备40的IP地址,以便嵌入式设备40在接收到报文后,可对报文中携带的目标地址进行校验。主机20在报文中添加虚拟网口的VLAN标识,以便主机20根据VLAN标识将报文转发至交换机10上对应的VLAN。
主机20还设置为:根据所述VLAN标识将所述报文通过交换机10上与所述VLAN标识对应的VLAN,转发至与所述VLAN连接的嵌入式设备40;
由于主机20上所建立的虚拟网口与eth0以太网口连接,而该eth0以太网口又通过网线与交换机10的trunk接口连接,同时在交换机10划分有不同的VLAN,每个VLAN通过网络与待升级的嵌入式设备40连接,主机20上不同虚拟网口的VLAN标识与交换机10上划分不同的VLAN标识匹配。因 此,当报文到达主机20后,主机20可根据虚拟网口的VLAN标识将报文发送至交换机10上与VLAN标识对应的VLAN,再由交换机10通过VLAN将报文发送至与其连接的嵌入式设备40。
嵌入式设备40,设置为:校验所述目标地址正确后反馈消息至升级客户端30,并从升级客户端30下载升级文件进行升级。
嵌入式设备40在接收到报文后,对目标地址进行校验。由于在上述已将目标地址修改为嵌入式设备的IP地址,因此嵌入式设备40可判断目标地址是否与自身的IP地址一致,若一致则验证通过,并反馈消息至升级客户端30,然后下载升级文件进行升级。
可选地,嵌入式设备40还设置为:将携带源IP地址的消息通过与其连接的交换机10对应的VLAN,发送至在与所述VLAN的标识匹配的主机20上对应的虚拟网口;
主机20还设置为:将所述源IP地址修改为虚拟网口的IP地址后转发至升级客户端30;
升级客户端30还设置为:根据所述虚拟网口的IP地址发送携带升级文件版本的升级指令至嵌入式设备40;
嵌入式设备40还设置为:在接收到所述升级指令后,通过升级客户端30的下载服务器下载在所述升级指令中携带的对应版本的升级文件进行升级。
嵌入式设备40可将携带源IP地址的消息发送至与其连接的交换机10上的VLAN,此时,该源IP地址可为嵌入式设备的IP地址。然后可根据交换机10所划分的VLAN与在主机20上创建多个虚拟网口的对应关系,通过交换机10上VLAN的标识将消息发送至主机20上对应的虚拟网口。可在主机20上将消息中的源IP地址修改为虚拟网口的IP地址,然后将消息发送至升级客户端30。升级客户端30在接收到嵌入式设备40反馈的消息后,可根据消息中的虚拟网口的IP地址确定是哪个嵌入式设备40反馈的消息。升级客户端30可根据反馈的消息发送升级指令至对应的嵌入式设备40,该升级指令可包括升级文件版本及名称。嵌入式设备40在接收到升级指令后,可从上 述升级客户端发送过来的报文中提取升级文件的版本号、FTP服务器的用户名及密码等消息,然后,可通过升级客户端30的FTP服务器下载相应版本的升级文件,然后可对下载的升级文件进行校验,若是所需版本的升级文件,则可烧写FLASH进行升级。若目标地址验证不通过,则嵌入式设备40可丢弃该报文。
可选地,在嵌入式设备40完成升级后,嵌入式设备40还设置为:将升级结果返回升级客户端30。
如果升级成功,则嵌入式设备40可回送升级成功的消息至升级客户端30;如果升级失败,则嵌入式设备40可回送升级失败的消息至升级客户端30。升级客户端30在接收到升级结果后,可以是通过对话框的形式显示“升级成功”或者“升级失败”的消息,也可以是通过语音播报的消息进行播报,或者是通过发短信或者邮件通知用户,也可以是通过其他的形式通知用户。从而使得在嵌入式设备40出厂时,可通过本设备批量升级方法由生产线对设备进行批量升级等操作,从而提升工作效率,减低人力成本。或者在嵌入式设备40返修时,可通过本设备批量升级方法由返修中心对设备进行批量升级等操作,从而提升工作效率。
通过本发明实施例,在交换机10上划分不同的VLAN连接嵌入式设备40,在主机20上创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机10上所划分不同VLAN的标识匹配,并将多个虚拟网口与连接升级客户端30的以太网口加入到桥中,以使交换机10、主机20及嵌入式设备40之间形成连接通路。升级客户端30将携带目标地址的报文发送至主机20上对应的虚拟网口后,主机20将目标地址修改为嵌入式设备40的IP地址,并根据虚拟网口的VLAN标识将报文通过交换机10上与VLAN标识对应的VLAN转发至与该VLAN连接的嵌入式设备40。嵌入式设备40校验目标地址正确后反馈消息至升级客户端30,并从升级客户端30下载升级文件进行升级。实现了通过对主机20划分虚拟网口及对交换机10划分VLAN等操作,使得升级环境一次配置,多次使用,通过NAT映射、VLAN隔离等技术实现对设备的访问。在对嵌入式设备40进行批量升级时无需修改嵌入式设备40的IP地址,减少升级客户端30和嵌入式设备40之间的交互流程, 操作简单明了,提高了对嵌入式设备40批量升级的效率。
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述设备批量升级方法。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可存储在一个存储介质(如只读存储器(ROM,Read-Only Memory)/随机存取存储器(RAM,Random Access Memory)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明实施例所述的方法。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件、处理器等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
本领域的普通技术人员可以理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围。本申请的保护范围以权利要求所定义的范围为准。
工业实用性
本发明实施例在交换机上划分不同的VLAN连接嵌入式设备,在主机上创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将多个虚拟网口与连接升级客户端的以太网口加入到桥中,以使交换机、主机及嵌入式设备之间形成连接通路。升级客户端将携带目标地址的报文发送至主机上对应的虚拟网口后,主机将目标地址修改为嵌入式设备的IP地址,并根据虚拟网口的VLAN标识将报文通过交换机上与VLAN标识对应的VLAN转发至与该VLAN连接的嵌入式设备。嵌入式设备校验目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。实现了通过对主机划分虚拟网口及对交换机划分VLAN等操作,在对嵌入式设备进行批量升级时无需修改嵌入式设备的IP地址,减少了升级客户端和嵌入式设备之间的交互流程,提高了对嵌入式设备批量升级的效率。

Claims (10)

  1. 一种设备批量升级方法,所述设备批量升级方法包括:
    交换机划分不同的虚拟局域网VLAN连接嵌入式设备;
    主机创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将所述多个虚拟网口与连接升级客户端的以太网口加入到桥中;
    升级客户端将携带目标地址的报文发送至主机上与所述目标地址对应的虚拟网口;
    主机将所述目标地址修改为嵌入式设备的网络互联协议IP地址,并将所述虚拟网口对应的VLAN标识添加至所述报文;
    主机根据所述VLAN标识将所述报文通过交换机上与所述VLAN标识对应的VLAN,转发至与所述VLAN连接的嵌入式设备;
    嵌入式设备校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。
  2. 如权利要求1所述的设备批量升级方法,所述嵌入式设备校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级之后,还包括:
    嵌入式设备将升级结果返回升级客户端。
  3. 如权利要求2所述的设备批量升级方法,所述升级客户端将携带目标地址的报文发送至主机上与所述目标地址对应的虚拟网口之前,还包括:
    主机给需要接收的报文添加记号mark标记,以使所述主机的虚拟网口仅接收存在mark标记的报文。
  4. 如权利要求1所述的设备批量升级方法,其中,所述嵌入式设备校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级包括:
    嵌入式设备将携带源IP地址的消息通过与其连接的交换机对应的VLAN,发送至在与所述VLAN的标识匹配的主机上对应的虚拟网口,以使主机将所述源IP地址修改为虚拟网口的IP地址后转发至升级客户端,供升级客户端根据所述虚拟网口的IP地址发送携带升级文件版本的升级指令至嵌 入式设备;
    嵌入式设备在接收到所述升级指令后,通过升级客户端的下载服务器下载在所述升级指令中携带的对应版本的升级文件进行升级。
  5. 如权利要求1至4中任一项所述的设备批量升级方法,其中,所述主机为Linux主机。
  6. 一种设备批量升级系统,所述设备批量升级系统包括交换机、主机、升级客户端及嵌入式设备,其中,
    交换机,设置为:划分不同的虚拟局域网VLAN来连接嵌入式设备;
    主机,设置为:创建多个虚拟网口及创建桥后,设置不同虚拟网口的不同VLAN标识与交换机上所划分不同VLAN的标识匹配,并将所述多个虚拟网口与连接升级客户端的以太网口加入到桥中;
    升级客户端,设置为:将携带目标地址的报文发送至主机上与所述目标地址对应的虚拟网口;
    主机还设置为:将所述目标地址修改为嵌入式设备的网络互联协议IP地址,并将所述虚拟网口对应的VLAN标识添加至所述报文;
    主机还设置为:根据所述VLAN标识将所述报文通过交换机上与所述VLAN标识对应的VLAN,转发至与所述VLAN连接的嵌入式设备;
    嵌入式设备,设置为:校验所述目标地址正确后反馈消息至升级客户端,并从升级客户端下载升级文件进行升级。
  7. 如权利要求6所述的设备批量升级系统,所述嵌入式设备还设置为:将升级结果返回升级客户端。
  8. 如权利要求7所述的设备批量升级系统,所述主机还设置为:给需要接收的报文添加记号mark标记,以使所述主机的虚拟网口仅接收存在mark标记的报文。
  9. 如权利要求6所述的设备批量升级系统,其中,
    所述嵌入式设备是设置为:将携带源IP地址的消息通过与其连接的交换机对应的VLAN,发送至在与所述VLAN的标识匹配的主机上对应的虚拟网口;
    主机还设置为:将所述源IP地址修改为虚拟网口的IP地址后转发至升 级客户端;
    升级客户端还设置为:根据所述虚拟网口的IP地址发送携带升级文件版本的升级指令至嵌入式设备;
    嵌入式设备还设置为:在接收到所述升级指令后,通过升级客户端的下载服务器下载在所述升级指令中携带的对应版本的升级文件进行升级。
  10. 如权利要求6至9中任一项所述的设备批量升级系统,其中,所述主机为Linux主机。
PCT/CN2016/089905 2015-09-29 2016-07-13 设备批量升级方法及系统 WO2017054549A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510634281.0 2015-09-29
CN201510634281.0A CN106559301A (zh) 2015-09-29 2015-09-29 嵌入式设备批量升级方法及系统

Publications (1)

Publication Number Publication Date
WO2017054549A1 true WO2017054549A1 (zh) 2017-04-06

Family

ID=58415965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089905 WO2017054549A1 (zh) 2015-09-29 2016-07-13 设备批量升级方法及系统

Country Status (2)

Country Link
CN (1) CN106559301A (zh)
WO (1) WO2017054549A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900317A (zh) * 2018-05-11 2018-11-27 深圳赤马通信技术有限公司 一种通过以太网广播方式给多种网络设备批量升级的方法
CN112099828A (zh) * 2020-09-21 2020-12-18 Oppo广东移动通信有限公司 电子设备升级的方法、装置、存储介质、电子设备及系统
CN114448798A (zh) * 2022-01-27 2022-05-06 瀚云科技有限公司 一种批量设备远程固件升级方法、装置、电子设备及介质
CN115086171A (zh) * 2022-06-10 2022-09-20 德明通讯(上海)股份有限公司 一种路由产品工厂自动多路升级方法及系统
CN116661821A (zh) * 2023-05-10 2023-08-29 浙江简捷物联科技有限公司 一种应用升级方法、装置、电子设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881502B (zh) * 2017-05-12 2022-06-10 中兴通讯股份有限公司 一种多终端ip地址转换方法、装置及系统
CN108521337A (zh) * 2018-03-07 2018-09-11 广州芯德通信科技股份有限公司 一种多台同类型onu同时进行出厂设置的实现方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102273179A (zh) * 2011-06-23 2011-12-07 华为终端有限公司 一种终端批量升级方法及装置
CN102368710A (zh) * 2011-10-17 2012-03-07 深圳市共进电子股份有限公司 一种基于局域网的网络设备软件批量升级的方法
CN102546818A (zh) * 2012-02-13 2012-07-04 成都欣点科技有限公司 一种对嵌入式设备批量升级的方法及系统
CN104077152A (zh) * 2013-03-27 2014-10-01 广东威创视讯科技股份有限公司 一种嵌入式系统批量升级的方法及装置
CN104506368A (zh) * 2014-12-30 2015-04-08 浪潮(北京)电子信息产业有限公司 一种统一管理交换机设备的方法和设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222497A1 (en) * 2008-02-29 2009-09-03 Schlumberger Technology Corp. Method, system and apparatus for remote software upgrade of an embedded device
CN101552697B (zh) * 2009-05-06 2011-04-13 深圳市普联技术有限公司 一种网络接入设备升级系统和网络接入设备升级方法
CN101674303B (zh) * 2009-07-31 2012-08-22 厦门敏讯信息技术股份有限公司 嵌入式网络产品烧写设备及方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102273179A (zh) * 2011-06-23 2011-12-07 华为终端有限公司 一种终端批量升级方法及装置
CN102368710A (zh) * 2011-10-17 2012-03-07 深圳市共进电子股份有限公司 一种基于局域网的网络设备软件批量升级的方法
CN102546818A (zh) * 2012-02-13 2012-07-04 成都欣点科技有限公司 一种对嵌入式设备批量升级的方法及系统
CN104077152A (zh) * 2013-03-27 2014-10-01 广东威创视讯科技股份有限公司 一种嵌入式系统批量升级的方法及装置
CN104506368A (zh) * 2014-12-30 2015-04-08 浪潮(北京)电子信息产业有限公司 一种统一管理交换机设备的方法和设备

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900317A (zh) * 2018-05-11 2018-11-27 深圳赤马通信技术有限公司 一种通过以太网广播方式给多种网络设备批量升级的方法
CN112099828A (zh) * 2020-09-21 2020-12-18 Oppo广东移动通信有限公司 电子设备升级的方法、装置、存储介质、电子设备及系统
CN114448798A (zh) * 2022-01-27 2022-05-06 瀚云科技有限公司 一种批量设备远程固件升级方法、装置、电子设备及介质
CN114448798B (zh) * 2022-01-27 2023-12-19 瀚云科技有限公司 一种批量设备远程固件升级方法、装置、电子设备及介质
CN115086171A (zh) * 2022-06-10 2022-09-20 德明通讯(上海)股份有限公司 一种路由产品工厂自动多路升级方法及系统
CN116661821A (zh) * 2023-05-10 2023-08-29 浙江简捷物联科技有限公司 一种应用升级方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN106559301A (zh) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2017054549A1 (zh) 设备批量升级方法及系统
US9485147B2 (en) Method and device thereof for automatically finding and configuring virtual network
CN108881308B (zh) 一种用户终端及其认证方法、系统、介质
US11431671B2 (en) Method and apparatus for dynamic discovery of a blockchain component in a cloud computing system
CN108965092B (zh) 一种数据报文传输方法和装置
US9432260B2 (en) Automated configuration for network devices
US10574570B2 (en) Communication processing method and apparatus
CN103812704A (zh) 一种面向虚拟机的公网ip动态管理方法
CN110855488B (zh) 一种虚拟机接入方法及装置
US8887237B2 (en) Multimode authentication
US10033631B1 (en) Route distribution for service appliances
US9935834B1 (en) Automated configuration of virtual port channels
CN104144096A (zh) 虚拟网络层构建方法、装置及系统
CN109547350B (zh) 一种路由学习方法及网关设备
US20240039923A1 (en) Method and apparatus for deploying network device, device, system, and storage medium
CN109495431B (zh) 接入控制方法、装置和系统、以及交换机
CN110401716B (zh) 边缘节点之间的通信方法及系统
CN103281295B (zh) 实现同一ip局域网中多个终端并行升级的系统及方法
CN115225292B (zh) 一种内网访问方法、装置、设备及计算机可读存储介质
WO2018039901A1 (zh) 用于ip地址分配的方法、装置、系统和计算机程序产品
CN107113333A (zh) 服务器设备的配置
CN109818869B (zh) 组播流量转发端口的生成方法及相关设备
CN105472054B (zh) 一种报文发送方法及接入设备
CN107294989B (zh) 一种防arp网关欺骗的方法及装置
US9998376B2 (en) Control device, communication system, control method, and non-transitory recording medium

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: 16850173

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: 16850173

Country of ref document: EP

Kind code of ref document: A1