WO2011150883A2 - Method and device for terminal batch upgrading - Google Patents

Method and device for terminal batch upgrading Download PDF

Info

Publication number
WO2011150883A2
WO2011150883A2 PCT/CN2011/076199 CN2011076199W WO2011150883A2 WO 2011150883 A2 WO2011150883 A2 WO 2011150883A2 CN 2011076199 W CN2011076199 W CN 2011076199W WO 2011150883 A2 WO2011150883 A2 WO 2011150883A2
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
virtual network
address
addresses
different
Prior art date
Application number
PCT/CN2011/076199
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011150883A3 (en
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 华为终端有限公司
Priority to CN201180000870.3A priority Critical patent/CN102273179B/en
Priority to PCT/CN2011/076199 priority patent/WO2011150883A2/en
Publication of WO2011150883A2 publication Critical patent/WO2011150883A2/en
Publication of WO2011150883A3 publication Critical patent/WO2011150883A3/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • H04L41/0897Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities by horizontal or vertical scaling of resources, or by migrating entities, e.g. virtual resources or entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities

Definitions

  • the embodiments of the present invention relate to the field of network communication technologies, and in particular, to a terminal batch upgrade method and apparatus.
  • USB Universal Serial Bus
  • Ethernet interfaces often require a separate Ethernet controller and peripheral interface, which increases system cost and increases device size, based on the Remote Network Driver Interface Specification (RNDIS) or communication device class (CDC (Communication Device Class) -
  • RNDIS Remote Network Driver Interface Specification
  • CDC Communication Device Class
  • ECM Ethernet Communication Module
  • the RNDIS/CDC-ECM-based terminal integrates USB and RNDIS/CDC drivers, and the PC (Personal Computer) side that communicates with the terminal is also equipped with a corresponding driver.
  • the PC-side Windows series operating system usually comes with RNDIS.
  • Drivers, RNDIS is Microsoft's proprietary protocol, mostly used on USB devices to provide a virtual Ethernet connection to the Windows operating system.
  • the CDC-ECM driver is usually integrated on other operating systems such as Linux to enable USB devices to provide a virtual Ethernet network interface to the operating system.
  • RNDIS/CDC-ECM-based terminals usually support web page access methods when
  • a virtual network card appears on the PC side.
  • the IP address of the virtual network card is allocated by the inserted terminal.
  • the user can access the terminal side through a PC-side browser (such as IE, FireFox, etc.).
  • the webpage is maintained, and the upgrade packet is delivered to the terminal side through the Hyper Text Transfer Protocol (HTTP), thereby completing the upgrade function.
  • HTTP Hyper Text Transfer Protocol
  • the inventors of the present invention have found that the prior art has at least the following drawbacks: When multiple RNDIS/CDC-ECM-based terminals are inserted into the PC, the same number of virtual network cards appear on the PC side, and the network interconnection protocol (IP) of these virtual network cards , Internet Protocol ) The address is assigned by the corresponding terminal. Since the terminals are independent of each other, and the assigned IP addresses are usually allocated according to the same rule, the IP address conflict of multiple virtual network cards is caused by the problem. Manually upgrading only one terminal at a time, resulting in inefficient upgrades, which cannot meet the upgrade efficiency required for large-scale upgrades of production lines or warehouses.
  • IP network interconnection protocol
  • the embodiment of the invention provides a batch upgrade method and device for a terminal, which is used to implement batch upgrade of the terminal and improve upgrade efficiency.
  • the method for upgrading a terminal in batches includes: assigning different IP addresses to different virtual network cards that communicate with each terminal; binding the upgrade data packets to be sent to each virtual network card, or to each virtual network card
  • the terminal of the communication sends a maintenance IP address modification command, so that each terminal modifies the respective maintenance IP address to a preset IP address, wherein the modified preset IP addresses of the terminals are different;
  • Different IP addresses simultaneously send upgrade packets to each terminal, so that each terminal can complete the upgrade after receiving the upgrade data packet.
  • the device for upgrading the terminal in batches includes: an IP address allocation unit, configured to allocate different IP addresses for different virtual network cards that communicate with each terminal; and a binding unit, configured to separately use the upgrade data packets to be sent
  • Each of the virtual network card bindings, or the modification command sending unit is configured to send a maintenance IP address modification command to the terminal that communicates with each virtual network card, so that each terminal respectively modifies the maintenance IP address to a preset IP address, where The modified preset IP address of each terminal is different;
  • the data packet sending unit is configured to simultaneously send the upgrade data packet to each terminal through different IP addresses of the virtual network cards, so that each terminal can receive the upgrade.
  • the upgrade is completed after the packet.
  • the embodiments of the present invention have the following advantages:
  • the problem of IP address conflict between the virtual network cards can be avoided.
  • the upgrade data packets to be sent are needed. Bind to each virtual network card, or send a maintenance IP address
  • the address modification command modifies each terminal to a different preset IP address.
  • FIG. 1 is a schematic diagram of a terminal batch upgrade method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic diagram of a terminal batch upgrade method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of a terminal batch upgrade method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic diagram of a terminal batch upgrading apparatus according to Embodiment 4 of the present invention.
  • the embodiment of the invention provides a batch upgrade method and device for a terminal, which is used to implement batch upgrade of the terminal and improve upgrade efficiency.
  • the method for upgrading a terminal in batches includes: assigning different IP addresses to different virtual network cards that communicate with each terminal; binding the upgrade data packets to be sent to each virtual network card, or to each virtual network card
  • the terminal of the communication sends a maintenance IP address modification command, so that each terminal modifies the respective maintenance IP address to a preset IP address, wherein the modified preset IP addresses of the terminals are different;
  • Different IP addresses simultaneously send upgrade packets to each terminal, so that each terminal can complete the upgrade after receiving the upgrade data packet.
  • the specific steps may include:
  • the IP address is different from the preset IP address of each terminal.
  • the IP address modification command is used.
  • the maintenance IP address modification command selects the same IP address from the address pool as the number of terminals. Pre-configured IP addresses, so that each terminal modifies its own IP address to a preset IP address.
  • the terminal upgrade device can simultaneously send the upgrade data packet through different IP addresses of the virtual network cards by binding the upgrade data packet to each virtual network card or sending a maintenance IP address modification command. After receiving the upgrade data package, each terminal can complete the upgrade and implement batch upgrade of the terminal to improve the upgrade efficiency.
  • the problem of IP address conflict between the virtual network cards can be avoided.
  • the respective terminals are modified to be different.
  • the preset IP address is used to establish a one-to-one communication between the virtual network card and the terminal through the two methods.
  • the upgrade data is sent to each terminal through different IP addresses of the virtual network cards to implement batch upgrade of the terminal. The purpose is to improve the efficiency of the upgrade.
  • Embodiment 2 The method for upgrading the terminal in the embodiment of the present invention is described in the following. Embodiment 2
  • the DHCP implementation of the operating system allocates an IP address to each virtual network card until the IP addresses of the virtual network cards are different from each other.
  • a plurality of terminals are upgraded on one PC.
  • the terminal batch upgrade device allocates an IP address to each virtual network card by using a dynamic host configuration protocol (DHCP) configured by the operating system.
  • DHCP dynamic host configuration protocol
  • a DHCP request message is initiated by a virtual network card to communicate with the virtual network card.
  • the terminal randomly selects an IP address from the IP address pool after receiving the DHCP request message. For example, randomly select an IP address 192.168.0.6 from the address pool 192.168.0.2 - 192.168.0.254, and then pass the IP address.
  • the DHCP offer message is sent to the terminal for batch upgrade, and then determines whether the received IP address is the same as the IP address assigned to the other virtual network card. If not, the received IP address is assigned to the virtual network card; if yes, a DHCP Decline message is sent. Inform the terminal that the IP address has been assigned, there is a rush suddenly, the DHCP request message is re-initiated until the IP address assigned to the virtual network card does not conflict with the IP address assigned to the other virtual network card. All the virtual network cards are assigned IP addresses according to the above policy of assigning IP addresses. When all the virtual network cards have been assigned IP addresses, the allocation process ends.
  • the number of terminals simultaneously upgraded by one PC is less than 16, and the number of available IP addresses is 253, so the probability of assigning an address conflict is usually within 6%, and if the conflict is re-initiated after the conflict The IP obtains the request, so the IP address conflict problem can be solved.
  • the maintenance IP address of the terminal is the default (for example, both 192.168.0.1), according to the prior art, since the destination address is 192.168.0.1, the first suitable route is selected from the routing table for forwarding.
  • the upgrade data packet sent by the IP layer is sent from only one of the virtual network cards. Only the terminal that communicates with the virtual network card can receive the upgrade data packet, and the other terminal does not receive the upgrade data packet.
  • the terminal The batch upgrade device is implemented by the binding network card technology in the network communication. For example, after step 201 solves the IP address conflict problem of each virtual network card, it is assumed that the IP addresses of the virtual network card 1, the virtual network card 2, and the virtual network card 3 are respectively 192.168. 1.15, 192.168.1.56, 192.168.1.126; First, create 3 IPEndPoint objects in the terminal batch upgrade device. For example, create an object for virtual network card 1 as follows:
  • IPEndPoint pol new IPEndPoint(IPAddress. Parse("192.168.1.15"), 8084); ⁇ where the port is arbitrarily specified, as long as it does not conflict with other IPEndPoints;
  • Socket mySocketl new Socket ( AddressFamily.InterNetwork,
  • SocketType. Stream, ProtocolType.Tcp SocketType.
  • the upgrade data packet of mySocketl and the IP address of the virtual network adapter 1 are bound together, and the terminal batch upgrade device can send the upgrade data packet to the corresponding terminal of the virtual network adapter 1 through mySocketl.
  • the other virtual network cards can be operated in the same manner. Therefore, the terminal batch upgrading device binds the upgrade data packets that need to be sent to each virtual network card separately, so as to establish a plurality of virtual network card and terminal one-to-one communication paths at the same time.
  • 202 may be replaced by the following steps: Sending a maintenance IP address modification command to each terminal that communicates with each virtual network card, so that each terminal respectively modifies its maintenance IP address to The IP address set, the preset IP address modified by each terminal is different;
  • the terminal batch upgrade device is configured with n virtual network cards as an example.
  • the terminal batch upgrade device sends a maintenance IP address modification to the terminal 1 through the virtual network card 1 (assume that the IP address is: 192.168.0.2).
  • the maintenance IP address such as: 192.168.0.1
  • another preset IP address for example, select an IP address from the address pool as
  • the command can be as follows:
  • the upgrade packet is to be sent to 192.168.0.100, it is sent from the virtual NIC 1 with the address 192.168.0.2.
  • the maintenance IP addresses of the remaining n-1 terminals are modified to different preset IP addresses in the same way, and routes are added to the routing table to indicate.
  • the terminal batch upgrading device since the one-to-one communication path between the virtual network card and the terminal is established through the network card binding, the terminal batch upgrading device simultaneously sends the upgrade to each terminal that maintains the IP address through different IP addresses of the virtual network cards.
  • each terminal can be guaranteed to receive an upgrade data packet, and each terminal can complete the upgrade after receiving the upgrade data packet.
  • a single packet can be sent via the pcap_sendpacket() function, or a set of packets can be sent via Send queues.
  • the IP address is assigned to each virtual network card by using the DHCP configured by the operating system, the problem of IP address conflict between the virtual network cards can be avoided. After all the virtual network cards are assigned IP addresses, they will be required.
  • the upgraded data packets are respectively bound to each virtual network card to establish a one-to-one communication path between multiple virtual network cards and terminals, and then to each maintenance.
  • the terminal of the IP address sends the upgrade data packet to achieve the purpose of batch upgrade of the terminal, which improves the upgrade efficiency.
  • Embodiment 3 The method for upgrading the terminal batch in the embodiment of the present invention is described in another detailed embodiment. Please refer to the third embodiment. Embodiment 3
  • the specific steps may include: 301. Statically assigning mutually different IP addresses to each virtual network card;
  • the terminal batch upgrading apparatus may also allocate an IP address to each different virtual network card by using a statically assigned IP address. For example, when multiple terminals are simultaneously inserted into the PC, a corresponding number of virtual network cards will appear on the PC side, and the terminal batch upgrade device can statically assign IP addresses to all virtual network cards, such as 192.168.0.2 - 192.168.0.254. ) Select a different fixed IP address to assign to each virtual NIC.
  • the terminal batch upgrade device is configured with n virtual network cards as an example.
  • the terminal batch upgrade device passes the virtual network card 1 (assuming the IP address is: 192.168.0.2).
  • Terminal 1 sends a maintenance IP address modification command to enable terminal 1 to modify the maintenance IP address (such as: 192.168.0.1) to another preset IP address (for example, select IP address from the address pool as 192.168.0.100 as the preset IP address. Address ;), add a route to the routing table of the PC at the same time, the command is as follows:
  • the upgrade packet is to be sent to 192.168.0.100, it is sent from the virtual NIC 1 with the address 192.168.0.2.
  • the maintenance IP addresses of the remaining n-1 terminals are modified to different preset IP addresses in the same way, and routes are added to the routing table to indicate.
  • the 302 may be replaced by the following steps:
  • the terminal batch upgrade device is implemented by the binding network card technology in the network communication, and after the 301 solves the IP address conflict problem of each virtual network card, Assume that the IP addresses of the virtual network card 1, the virtual network card 2, and the virtual network card 3 are respectively 192.168.1.15, 192.168.1.56, and 192.168.1.126;
  • three IPEndPoint objects are first created in the terminal batch upgrade device, for example, the following object is created for the virtual network card 1 :
  • IPEndPoint pol new IPEndPoint(IPAddress. Parse("192.168.1.15"), 8084); ⁇ where the port is arbitrarily specified, as long as it does not conflict with other IPEndPoints;
  • Socket mySocketl new Socket ( AddressFamily.InterNetwork, SocketType. Stream, ProtocolType.Tcp );
  • the upgrade data packet of mySocketl and the IP address of the virtual network adapter 1 are bound together, and the terminal batch upgrade device can send the upgrade data packet to the corresponding terminal of the virtual network adapter 1 through mySocketl.
  • the other virtual network cards can be operated in the same manner. Therefore, the terminal batch upgrading device binds the upgrade data packets that need to be sent to each virtual network card separately, so as to establish a plurality of virtual network card and terminal one-to-one communication paths at the same time.
  • each terminal sends the upgrade data packet to each terminal simultaneously by using different IP addresses of the virtual network cards.
  • the terminal batch upgrading device since the maintenance IP address of the terminal that communicates with each virtual network card has been modified to a different IP address, the terminal batch upgrading device simultaneously sends the upgrade data packet to each terminal through different IP addresses of the virtual network cards. When you are guaranteed, each terminal will receive the number of upgrades. According to the package, each terminal can complete the upgrade after receiving the upgrade data packet.
  • the terminal batch upgrade device allocates different fixed IP addresses to each virtual terminal by using a statically assigned IP address, thereby avoiding the problem of IP address conflict between the virtual network cards, which is a virtual network card.
  • the maintenance IP address modification command is used to modify the maintenance IP address of each terminal to a different preset IP address, and then the upgrade data packet is sent to the different maintenance IP addresses of each terminal.
  • the purpose of the upgrade is to improve the efficiency of the upgrade.
  • the terminal batch upgrading apparatus provided by the embodiment of the present invention may be specifically built in
  • the terminal batch upgrading apparatus includes: an IP address allocation unit, a binding unit or a modification command sending unit, and a data packet sending unit.
  • the terminal batch upgrade device 400 includes: an IP address allocation unit
  • An IP address allocation unit 401 is configured to allocate different IP addresses for different virtual network cards that communicate with each terminal.
  • the IP address allocation unit 401 can include: (not shown in FIG. 4)
  • the DHCP allocation module is configured to allocate an IP address to each virtual network card by using a DHCP configured by the operating system, and the allocation process is ended until the IP addresses of the virtual network cards are different from each other.
  • the IP address allocating unit 401 may include: (not shown in FIG. 4) a static allocation module, configured to statically allocate mutually different IP addresses to the respective virtual network cards.
  • a static allocation module configured to statically allocate mutually different IP addresses to the respective virtual network cards.
  • the static allocation module is specifically configured to allocate, from the address pool, the same non-repeating IP address as the number of virtual network cards to each virtual network card.
  • the binding unit 402 is configured to bind the upgrade data packet that needs to be sent to each virtual network card respectively.
  • the modify command sending unit 403 is configured to separately send a maintenance IP address modification command to the terminal that communicates with each virtual network card, so that each terminal respectively modifies the respective maintenance IP address into a preset IP address, and the modified terminal of each terminal is modified.
  • the set IP address is not the same;
  • the binding unit 402 may include: (not shown in FIG. 4)
  • An object creation module is configured to respectively create an object with a different port number for each virtual network card.
  • the binding module is configured to bind the data packet to be sent to the created object.
  • the data packet sending unit 404 is configured to simultaneously send the upgrade data packet to each terminal by using different IP addresses of the virtual network cards, so that each terminal can complete the upgrade after receiving the upgrade data packet.
  • the problem of IP address conflict between the virtual network cards can be avoided.
  • the upgrade data to be sent is needed.
  • the packets are respectively bound to the virtual network adapters, or the maintenance IP address modification command is sent to modify the respective terminals to different preset IP addresses.
  • the upgrade data is sent to each terminal through different IP addresses of the virtual network cards, thereby achieving the purpose of batch upgrade of the terminal and improving the upgrade efficiency.
  • the terminal batch upgrade device in the embodiment of the present invention is introduced in a practical application scenario.
  • the terminal batch upgrade device in the embodiment of the present invention is integrated in a PC by hardware and software, and the PC side includes multiple USB interfaces. For example, six, when six terminals are plugged into the PC via USB, the corresponding six virtual network cards will be displayed on the PC side.
  • the IP address allocation unit will allocate six different IP addresses for the six virtual network cards ( For example: 192.168.1.15, 192.168.1.56, 192.168.1.126, 192.168.1.19, 192.168.1.58), after solving the conflict problem of the virtual network card, the binding data packet to be sent by the binding unit and the six virtual network cards respectively Bind (or modify the command sending unit to send the maintenance IP address modification command to each of the six terminals that communicate with the six virtual network cards, so that the six terminals modify their respective maintenance IP addresses to different six IP addresses (for example, : 192.168.1.23, 192.168.1.25, 192.168.1.29, 192.168.1.30, 192.168.1.31 ).
  • the terminal batch upgrade device in the embodiment of the present invention can be applied not only to the upgraded application scenario, but also to other control applications including large traffic testing (while controlling a large number of terminals to perform certain actions, for example, Incoming network, call and other actions to imitate an application scenario to achieve the purpose of stress testing).
  • the medium can be a read only memory, a magnetic disk or a compact disk or the like.

Landscapes

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

Abstract

The embodiments of the present invention disclose a method and device for terminal batch upgrading. The method includes: assigning different Internet Protocol (IP) addresses to different virtual network cards communicating with various terminals; binding respectively upgrade data packets, needing to be transmitted, with the various virtual network cards, or transmitting respectively maintenance IP address modification commands to the terminals communicating with the various virtual network cards, so that each terminal can modify its own maintenance IP address to a preset IP address separately, wherein the modified preset IP addresses of the various terminals are different; transmitting the upgrade data packets simultaneously to the various terminals via the different IP addresses of the various virtual network cards, so that the various terminals can fulfill the upgrading after receiving the upgrade data packets.

Description

一种终端批量升级方法及装置 技术领域  Terminal batch upgrade method and device
本发明实施例涉及网络通信技术领域,尤其涉及一种终端批量升级方法及 装置。  The embodiments of the present invention relate to the field of network communication technologies, and in particular, to a terminal batch upgrade method and apparatus.
背景技术 Background technique
通用串行总线 (USB, Universal Serial BUS )是一种用于外部设备与计算 机连接的标准连接, 这种通用串行接口具有速度快、 即插即用、 易扩展、 可使 用总线供电、 使用灵活等诸多优点, 目前有着广泛的应用, 不但出现在几乎所 有的计算机中也越来越多地出现在嵌入式系统中, 如智能手机、 数码相机、 数 据卡、移动路由器等嵌入式设备中。在这些嵌入式系统中通常需要使用标准的 以太网接口来进行数据传输。但是普通以太网接口往往需要单独的以太网控制 器与外围接口, 由此增加了系统成本并增大了设备尺寸,基于远程网络驱动接 口规范 ( RNDIS, Remote Network Driver Interface Specification )或通信设备类 ( CDC , Communication Device Class ) -以太网控制模块 (ECM , Ethernet Communication Module )设备较好的解决了这个问题, 使设备在 USB之上虚 拟出了以太网 (Ethernet )接口, 目前在移动宽带通信终端领域的终端中有广 泛应用。  Universal Serial Bus (USB) is a standard connection for external devices connected to a computer. This universal serial interface is fast, plug and play, easy to expand, bus-powerable, and flexible. Many advantages, such as the current wide-ranging applications, not only appear in almost all computers and more and more in embedded systems, such as smart phones, digital cameras, data cards, mobile routers and other embedded devices. In these embedded systems it is often necessary to use a standard Ethernet interface for data transfer. However, common Ethernet interfaces often require a separate Ethernet controller and peripheral interface, which increases system cost and increases device size, based on the Remote Network Driver Interface Specification (RNDIS) or communication device class ( CDC (Communication Device Class) - The Ethernet Communication Module (ECM) device solves this problem better, enabling the device to virtualize the Ethernet interface on the USB. Currently in the field of mobile broadband communication terminals. There are a wide range of applications in the terminal.
基于 RNDIS/CDC-ECM的终端中集成了 USB和 RNDIS/CDC驱动, 与终 端通信的个人电脑 (PC, Personal Computer )侧也安装有对应的驱动, 其中 PC侧的 windows系列操作系统通常自带 RNDIS驱动 , RNDIS是 Microsoft的 专有协议, 大多用在 USB设备上, 可为 Windows操作系统提供虚拟的以太网 连接。 而在其他操作系统如 Linux上通常集成 CDC-ECM驱动使 USB设备可 以给操作系统提供虚拟以太网网络接口。  The RNDIS/CDC-ECM-based terminal integrates USB and RNDIS/CDC drivers, and the PC (Personal Computer) side that communicates with the terminal is also equipped with a corresponding driver. The PC-side Windows series operating system usually comes with RNDIS. Drivers, RNDIS is Microsoft's proprietary protocol, mostly used on USB devices to provide a virtual Ethernet connection to the Windows operating system. The CDC-ECM driver is usually integrated on other operating systems such as Linux to enable USB devices to provide a virtual Ethernet network interface to the operating system.
目前基于 RNDIS/CDC-ECM 的终端通常支持网页的访问方式, 当基于 Currently, RNDIS/CDC-ECM-based terminals usually support web page access methods when
RNDIS/CDC-ECM的终端插入 PC后, 会在 PC侧出现虚拟网卡, 该虚拟网卡 的 IP地址由插入的终端分配, 用户可以通过 PC侧的浏览器(如 IE、 FireFox 等)访问终端侧的维护网页 ,并通过超文本传输协议( HTTP , Hyper Text Transfer Protocol )将升级数据包传递到终端侧, 由此完成升级功能。 本发明的发明人发现现有技术至少存在以下缺陷: 当多个基于 RNDIS/CDC-ECM的终端插入 PC后, 会在 PC侧出现相同数目的虚拟网卡, 这些虚拟网卡的网络互连协议 ( IP, Internet Protocol )地址由对应的终端分配, 由于终端之间是相互独立的,而且分配的 IP地址通常是按照相同的规律分配, 由此造成多个虚拟网卡的 IP地址冲突问题, 故只能由手工每次只对一台终端 进行升级, 导致升级效率低下, 无法满足产线或者库房大批量升级时要求的升 级效率。 After the terminal of the RNDIS/CDC-ECM is inserted into the PC, a virtual network card appears on the PC side. The IP address of the virtual network card is allocated by the inserted terminal. The user can access the terminal side through a PC-side browser (such as IE, FireFox, etc.). The webpage is maintained, and the upgrade packet is delivered to the terminal side through the Hyper Text Transfer Protocol (HTTP), thereby completing the upgrade function. The inventors of the present invention have found that the prior art has at least the following drawbacks: When multiple RNDIS/CDC-ECM-based terminals are inserted into the PC, the same number of virtual network cards appear on the PC side, and the network interconnection protocol (IP) of these virtual network cards , Internet Protocol ) The address is assigned by the corresponding terminal. Since the terminals are independent of each other, and the assigned IP addresses are usually allocated according to the same rule, the IP address conflict of multiple virtual network cards is caused by the problem. Manually upgrading only one terminal at a time, resulting in inefficient upgrades, which cannot meet the upgrade efficiency required for large-scale upgrades of production lines or warehouses.
发明内容 Summary of the invention
本发明实施例提供了一种终端批量升级方法及装置,用于实现终端的批量 升级, 提高升级效率。  The embodiment of the invention provides a batch upgrade method and device for a terminal, which is used to implement batch upgrade of the terminal and improve upgrade efficiency.
本发明实施例提供的终端批量升级方法, 包括: 为与各个终端通信的不同 虚拟网卡分配不同的 IP地址; 将需要发送的升级数据包分别与各个虚拟网卡 绑定, 或, 向与各个虚拟网卡通信的终端分别发送维护 IP地址修改命令, 使 得各个终端将各自的维护 IP地址分别修改为预置的 IP地址, 其中, 各个终端 修改后的预置的 IP地址是不相同的; 通过各个虚拟网卡不同的 IP地址同时将 升级数据包发送给各个终端,以使各个终端能够在接收到升级数据包后完成升 级。  The method for upgrading a terminal in batches according to the embodiment of the present invention includes: assigning different IP addresses to different virtual network cards that communicate with each terminal; binding the upgrade data packets to be sent to each virtual network card, or to each virtual network card The terminal of the communication sends a maintenance IP address modification command, so that each terminal modifies the respective maintenance IP address to a preset IP address, wherein the modified preset IP addresses of the terminals are different; Different IP addresses simultaneously send upgrade packets to each terminal, so that each terminal can complete the upgrade after receiving the upgrade data packet.
本发明实施例提供的终端批量升级装置, 包括: IP 地址分配单元, 用于 为与各个终端通信的不同虚拟网卡分配不同的 IP地址; 绑定单元, 用于将需 要发送的升级数据包分别与各个虚拟网卡绑定, 或, 修改命令发送单元, 用于 向与各个虚拟网卡通信的终端分别发送维护 IP地址修改命令, 使得各个终端 将各自的维护 IP地址分别修改为预置的 IP地址, 其中, 各个终端修改后的预 置的 IP地址是不相同的; 数据包发送单元, 用于通过各个虚拟网卡不同的 IP 地址同时将升级数据包发送给各个终端,以使各个终端能够在接收到升级数据 包后完成升级。  The device for upgrading the terminal in batches according to the embodiment of the present invention includes: an IP address allocation unit, configured to allocate different IP addresses for different virtual network cards that communicate with each terminal; and a binding unit, configured to separately use the upgrade data packets to be sent Each of the virtual network card bindings, or the modification command sending unit, is configured to send a maintenance IP address modification command to the terminal that communicates with each virtual network card, so that each terminal respectively modifies the maintenance IP address to a preset IP address, where The modified preset IP address of each terminal is different; the data packet sending unit is configured to simultaneously send the upgrade data packet to each terminal through different IP addresses of the virtual network cards, so that each terminal can receive the upgrade. The upgrade is completed after the packet.
从以上技术方案可以看出, 本发明实施例具有以下优点:  As can be seen from the above technical solutions, the embodiments of the present invention have the following advantages:
本发明实施例中, 由于为各个虚拟网卡分配的是不同的 IP地址, 可以避 免各个虚拟网卡之间 IP地址冲突的问题, 当为各个虚拟网卡分配完 IP地址以 后, 将需要发送的升级数据包分别与各个虚拟网卡绑定, 或, 发送维护 IP地 址修改命令使各个终端修改为不同的预置 IP地址, 通过这两种方式同时建立 了多个虚拟网卡和终端的一对一通信的途径,然后通过各个虚拟网卡不同的 IP 地址同时将升级数据发送到各个终端, 实现对终端批量升级的目的,提高了升 级效率。 In the embodiment of the present invention, since different virtual IP addresses are allocated for each virtual network card, the problem of IP address conflict between the virtual network cards can be avoided. After the IP addresses are assigned to the virtual network cards, the upgrade data packets to be sent are needed. Bind to each virtual network card, or send a maintenance IP address The address modification command modifies each terminal to a different preset IP address. Through these two methods, a one-to-one communication path between multiple virtual network cards and terminals is established at the same time, and then the upgrade data is simultaneously transmitted through different IP addresses of the virtual network cards. It is sent to each terminal to achieve the purpose of batch upgrade of the terminal, which improves the upgrade efficiency.
附图说明 DRAWINGS
图 1为本发明实施例一提供的一种终端批量升级方法的示意图;  FIG. 1 is a schematic diagram of a terminal batch upgrade method according to Embodiment 1 of the present invention; FIG.
图 2为本发明实施例二提供的一种终端批量升级方法的示意图;  2 is a schematic diagram of a terminal batch upgrade method according to Embodiment 2 of the present invention;
图 3为本发明实施例三提供的一种终端批量升级方法的示意图;  FIG. 3 is a schematic diagram of a terminal batch upgrade method according to Embodiment 3 of the present invention; FIG.
图 4-a和图 4-b为本发明实施例四提供的一种终端批量升级装置的示意图。  FIG. 4 is a schematic diagram of a terminal batch upgrading apparatus according to Embodiment 4 of the present invention.
具体实施方式 detailed description
本发明实施例提供了一种终端批量升级方法及装置,用于实现终端的批量 升级, 提高升级效率。  The embodiment of the invention provides a batch upgrade method and device for a terminal, which is used to implement batch upgrade of the terminal and improve upgrade efficiency.
为使得本发明的发明目的、 特征、优点能够更加的明显和易懂, 下面将结 合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。 基于本发明中的实施例, 本领域的技术人员所获得的所有其他实施例,都属于 本发明保护的范围。 实施例一  In order to make the object, the features and the advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of the present invention. Embodiment 1
本发明实施例提供的终端批量升级方法, 包括: 为与各个终端通信的不同 虚拟网卡分配不同的 IP地址; 将需要发送的升级数据包分别与各个虚拟网卡 绑定, 或, 向与各个虚拟网卡通信的终端分别发送维护 IP地址修改命令, 使 得各个终端将各自的维护 IP地址分别修改为预置的 IP地址, 其中, 各个终端 修改后的预置的 IP地址是不相同的; 通过各个虚拟网卡不同的 IP地址同时将 升级数据包发送给各个终端,以使各个终端能够在接收到升级数据包后完成升 级。  The method for upgrading a terminal in batches according to the embodiment of the present invention includes: assigning different IP addresses to different virtual network cards that communicate with each terminal; binding the upgrade data packets to be sent to each virtual network card, or to each virtual network card The terminal of the communication sends a maintenance IP address modification command, so that each terminal modifies the respective maintenance IP address to a preset IP address, wherein the modified preset IP addresses of the terminals are different; Different IP addresses simultaneously send upgrade packets to each terminal, so that each terminal can complete the upgrade after receiving the upgrade data packet.
参见图 1 , 具体步骤可以包括:  Referring to Figure 1, the specific steps may include:
101、 为与各个终端通信的不同虚拟网卡分配不同的 IP地址;  101. Allocating different IP addresses for different virtual network cards that communicate with each terminal;
为了提高升级效率, 在实际应用中需要在一台 PC上升级多个终端, 当多 个终端同时插入 PC后, 会在 PC侧出现相应数目的虚拟网卡。按照现有技术, 由终端为虚拟网卡分配 IP地址可能会造成多个虚拟网卡的 IP地址冲突问题, 例如每个终端都为与之对应的虚拟网卡分配了同样的 IP地址。 在本发明实施 例中,终端批量升级装置为 PC上的多个虚拟网卡分配不同的 IP地址, 以避免 IP地址相冲突的问题, 本发明将在后续实施例中给出详细说明。 In order to improve the upgrade efficiency, in actual applications, multiple terminals need to be upgraded on one PC. When multiple terminals are simultaneously inserted into the PC, a corresponding number of virtual network cards appear on the PC side. According to the prior art, Assigning an IP address to the virtual NIC by the terminal may cause IP address conflicts of multiple virtual NICs. For example, each terminal allocates the same IP address to the corresponding virtual NIC. In the embodiment of the present invention, the terminal batch upgrading apparatus allocates different IP addresses to multiple virtual network cards on the PC to avoid the conflict of IP addresses. The present invention will be described in detail in the following embodiments.
102、 将需要发送的升级数据包分别与各个虚拟网卡绑定, 或, 向与各个 虚拟网卡通信的终端分别发送维护 IP地址修改命令, 使得各个终端将各自的 维护 IP地址分别修改为预置的 IP地址, 各个终端修改后的预置的 IP地址是 不相同的; 维护 IP地址修改命令, 其中, 维护 IP地址修改命令会从地址池中选择出与终 端数目相同的分别不重复的 IP地址为预置的 IP地址, 以使各个终端分别将各 自的 IP地址修改为预置的 IP地址, 通过这两种方式终端批量升级装置同时建 立了多个虚拟网卡和终端一对一通信的途径,以达到同时发送升级数据包的目 的, 实现终端的批量升级, 提高升级效率。  102. Bind the upgrade data packet to be sent to each virtual network card, or send a maintenance IP address modification command to the terminal that communicates with each virtual network card, so that each terminal modifies its maintenance IP address to a preset. The IP address is different from the preset IP address of each terminal. The IP address modification command is used. The maintenance IP address modification command selects the same IP address from the address pool as the number of terminals. Pre-configured IP addresses, so that each terminal modifies its own IP address to a preset IP address. Through these two methods, the terminal batch upgrade device simultaneously establishes a one-to-one communication path between multiple virtual network cards and terminals. Achieve the purpose of sending upgrade packets at the same time, implement batch upgrade of terminals, and improve upgrade efficiency.
103、 通过各个虚拟网卡不同的 IP地址同时将升级数据包发送给各个终 端。  103. Send the upgrade data packet to each terminal simultaneously through different IP addresses of the virtual network cards.
在解决虚拟网卡 IP地址冲突问题后, 通过将升级数据包与各个虚拟网卡 绑定或者发送维护 IP地址修改命令后, 终端批量升级装置可以通过各个虚拟 网卡的不同 IP地址同时发送升级数据包, 则各个终端在接收到升级数据包后 就可以完成升级, 实现终端批量升级, 提高升级效率。  After the IP address conflict of the virtual network card is resolved, the terminal upgrade device can simultaneously send the upgrade data packet through different IP addresses of the virtual network cards by binding the upgrade data packet to each virtual network card or sending a maintenance IP address modification command. After receiving the upgrade data package, each terminal can complete the upgrade and implement batch upgrade of the terminal to improve the upgrade efficiency.
在本发明实施例中, 由于为各个虚拟网卡分配的是不同的 IP地址, 可以 避免各个虚拟网卡之间 IP地址冲突的问题, 当为各个虚拟网卡分配完 IP地址 修改命令使各个终端修改为不同的预置 IP地址, 通过这两种方式同时建立了 多个虚拟网卡和终端一对一通信的途径, 然后通过各个虚拟网卡不同的 IP地 址同时将升级数据发送到各个终端, 实现对终端批量升级的目的,提高了升级 效率。  In the embodiment of the present invention, since different virtual IP addresses are assigned to different virtual network cards, the problem of IP address conflict between the virtual network cards can be avoided. When the virtual network card is assigned an IP address modification command, the respective terminals are modified to be different. The preset IP address is used to establish a one-to-one communication between the virtual network card and the terminal through the two methods. Then, the upgrade data is sent to each terminal through different IP addresses of the virtual network cards to implement batch upgrade of the terminal. The purpose is to improve the efficiency of the upgrade.
下面以一个详细的实施例介绍本发明实施例的终端批量升级方法,请参阅 实施例二。 实施例二 The method for upgrading the terminal in the embodiment of the present invention is described in the following. Embodiment 2
本发明实施例提供的终端批量升级方法,请参见图 2,具体步骤可以包括: For the batch upgrade method of the terminal provided by the embodiment of the present invention, refer to FIG. 2, and the specific steps may include:
201、通过操作系统配置的 DHCP实现为各个虚拟网卡分配 IP地址,直到 各个虚拟网卡的 IP地址互不相同时结束分配过程; 201. The DHCP implementation of the operating system allocates an IP address to each virtual network card until the IP addresses of the virtual network cards are different from each other.
在本发明实施例中,在一台 PC上升级多个终端, 当多个终端同时插入 PC 后, 会在 PC侧出现相应数目的虚拟网卡, 虚拟网卡和终端之间的通信链路被 建立, 终端批量升级装置通过操作系统配置的动态主机设置协议(DHCP, Dynamic Host Configuration Protocol ) 实现为各个虚拟网卡分配 IP地址, 首先 通过一个虚拟网卡发起 DHCP请求艮文, 以向与虚拟网卡通信的那个终端请 求分配 IP地址, 终端在接收到 DHCP请求报文后, 会从 IP地址池中随机选取 一个 IP地址, 例如从地址池 192.168.0.2 - 192.168.0.254随机选取一个 IP地址 192.168.0.6, 然后可以通过 DHCP offer消息发送给终端批量升级装置, 然后判 断接收到的 IP地址是否和分配给其它虚拟网卡的 IP地址相同, 若不是, 将接 收到的 IP地址分配给该虚拟网卡; 若是, 发出 DHCP Decline消息告知终端该 IP地址已经被分配, 存在冲突, 则重新发起 DHCP请求报文, 直到分配给该 虚拟网卡的 IP地址和分配给其它虚拟网卡的 IP地址不冲突为止。按照上述分 配 IP地址的策略向所有的虚拟网卡分配 IP地址, 当已经向所有的虚拟网卡分 配完 IP地址后, 结束分配过程。  In the embodiment of the present invention, a plurality of terminals are upgraded on one PC. When multiple terminals are simultaneously inserted into the PC, a corresponding number of virtual network cards appear on the PC side, and a communication link between the virtual network card and the terminal is established. The terminal batch upgrade device allocates an IP address to each virtual network card by using a dynamic host configuration protocol (DHCP) configured by the operating system. First, a DHCP request message is initiated by a virtual network card to communicate with the virtual network card. After requesting the IP address, the terminal randomly selects an IP address from the IP address pool after receiving the DHCP request message. For example, randomly select an IP address 192.168.0.6 from the address pool 192.168.0.2 - 192.168.0.254, and then pass the IP address. The DHCP offer message is sent to the terminal for batch upgrade, and then determines whether the received IP address is the same as the IP address assigned to the other virtual network card. If not, the received IP address is assigned to the virtual network card; if yes, a DHCP Decline message is sent. Inform the terminal that the IP address has been assigned, there is a rush Suddenly, the DHCP request message is re-initiated until the IP address assigned to the virtual network card does not conflict with the IP address assigned to the other virtual network card. All the virtual network cards are assigned IP addresses according to the above policy of assigning IP addresses. When all the virtual network cards have been assigned IP addresses, the allocation process ends.
在本发明实施例中, 假设一台 PC同时升级的终端数目少于 16台, 而可 用的 IP地址数量有 253个, 所以分配一个地址冲突概率通常在 6 %以内, 并 且若冲突后会重新发起 IP获取请求, 故可以解决 IP地址冲突问题。  In the embodiment of the present invention, it is assumed that the number of terminals simultaneously upgraded by one PC is less than 16, and the number of available IP addresses is 253, so the probability of assigning an address conflict is usually within 6%, and if the conflict is re-initiated after the conflict The IP obtains the request, so the IP address conflict problem can be solved.
202、 将需要发送的升级数据包分别与各个虚拟网卡绑定;  202. Bind the upgrade data packet that needs to be sent to each virtual network card.
由于通常终端的维护 IP地址是默认的(例如都是 192.168.0.1 ), 按照现有 技术的做法, 因为目的地址都是 192.168.0.1 ,会从路由表中选取第一个合适的 路由进行转发, 通过 IP层发送升级数据包会仅从其中一个虚拟网卡发出, 只 有与该虚拟网卡通信的终端能接收到升级数据包,导致其它终端不会接收到升 级数据包,在本发明实施例中, 终端批量升级装置通过网络通信中的绑定网卡 技术来实现, 例如, 步骤 201解决了各个虚拟网卡的 IP地址冲突问题后, 假 设虚拟网卡 1、 虚拟网卡 2、 虚拟网卡 3 的 IP 地址分别为 192.168.1.15、 192.168.1.56、 192.168.1.126; 终端批量升级装置内首先创建 3 个 IPEndPoint 对象, 例如针对虚拟网卡 1创建一个如下对象: Since the maintenance IP address of the terminal is the default (for example, both 192.168.0.1), according to the prior art, since the destination address is 192.168.0.1, the first suitable route is selected from the routing table for forwarding. The upgrade data packet sent by the IP layer is sent from only one of the virtual network cards. Only the terminal that communicates with the virtual network card can receive the upgrade data packet, and the other terminal does not receive the upgrade data packet. In the embodiment of the present invention, the terminal The batch upgrade device is implemented by the binding network card technology in the network communication. For example, after step 201 solves the IP address conflict problem of each virtual network card, it is assumed that the IP addresses of the virtual network card 1, the virtual network card 2, and the virtual network card 3 are respectively 192.168. 1.15, 192.168.1.56, 192.168.1.126; First, create 3 IPEndPoint objects in the terminal batch upgrade device. For example, create an object for virtual network card 1 as follows:
IPEndPoint pol = new IPEndPoint(IPAddress. Parse("192.168.1.15"), 8084); 〃其中, 端口随意指定, 只要和其它 IPEndPoint不冲突即可;  IPEndPoint pol = new IPEndPoint(IPAddress. Parse("192.168.1.15"), 8084); 〃 where the port is arbitrarily specified, as long as it does not conflict with other IPEndPoints;
Socket mySocketl = new Socket ( AddressFamily.InterNetwork, Socket mySocketl = new Socket ( AddressFamily.InterNetwork,
SocketType. Stream, ProtocolType.Tcp ); SocketType. Stream, ProtocolType.Tcp );
mySocketl. Bind(pol);  mySocketl. Bind(pol);
至此,通过 mySocketl的升级数据包和虚拟网卡 1的 IP地址绑定到一起, 终端批量升级装置可以通过 mySocketl发送升级数据包到虚拟网卡 1对应的终 端上了。其它虚拟网卡同样操作即可, 由此终端批量升级装置将需要发送的升 级数据包分别与各个虚拟网卡绑定,以同时建立多个虚拟网卡和终端一对一通 信的途径。  At this point, the upgrade data packet of mySocketl and the IP address of the virtual network adapter 1 are bound together, and the terminal batch upgrade device can send the upgrade data packet to the corresponding terminal of the virtual network adapter 1 through mySocketl. The other virtual network cards can be operated in the same manner. Therefore, the terminal batch upgrading device binds the upgrade data packets that need to be sent to each virtual network card separately, so as to establish a plurality of virtual network card and terminal one-to-one communication paths at the same time.
需要说明的是, 在本发明实施例中, 202还可以由以下步骤来代替: 向与各个虚拟网卡通信的终端分别发送维护 IP地址修改命令, 使得各个 终端将各自的维护 IP地址分别修改为预置的 IP地址, 各个终端修改后的预置 的 IP地址是不相同的;  It should be noted that, in the embodiment of the present invention, 202 may be replaced by the following steps: Sending a maintenance IP address modification command to each terminal that communicates with each virtual network card, so that each terminal respectively modifies its maintenance IP address to The IP address set, the preset IP address modified by each terminal is different;
在实际应用场景中,以终端批量升级装置设置有 n个虚拟网卡为例进行说 明, 首先终端批量升级装置通过虚拟网卡 1 (假设 IP地址为: 192.168.0.2 )向 终端 1 发送一个维护 IP地址修改命令, 使终端 1 修改维护 IP地址(如: 192.168.0.1 ) 为另一个预置的 IP 地址 (例如从地址池中选择 IP 地址为 In the actual application scenario, the terminal batch upgrade device is configured with n virtual network cards as an example. First, the terminal batch upgrade device sends a maintenance IP address modification to the terminal 1 through the virtual network card 1 (assume that the IP address is: 192.168.0.2). Command, so that terminal 1 modifies the maintenance IP address (such as: 192.168.0.1) to another preset IP address (for example, select an IP address from the address pool as
192.168.0.100作为预置的 IP地址;), 同时在 PC的路由表中增加一个路由, 命 令可以如下面的例子: 192.168.0.100 is used as the preset IP address;), and a route is added to the routing table of the PC. The command can be as follows:
Route add 192.168.0.100 mask 255.255.255.255 192.168.0.2  Route add 192.168.0.100 mask 255.255.255.255 192.168.0.2
即, 如果要发送升级数据包到 192.168.0.100就从地址为 192.168.0.2的虚 拟网卡 1发出去。  That is, if the upgrade packet is to be sent to 192.168.0.100, it is sent from the virtual NIC 1 with the address 192.168.0.2.
当将终端 1的维护 IP地址修改完成后, 按照相同的方法将剩下的 n-1个 终端的维护 IP地址分别修改为不同的预置的 IP地址, 并在路由表增加路由以 说明。  After the maintenance IP address of the terminal 1 is modified, the maintenance IP addresses of the remaining n-1 terminals are modified to different preset IP addresses in the same way, and routes are added to the routing table to indicate.
203、 通过各个虚拟网卡不同的 IP地址向各个维护 IP地址的终端同时发 送升级数据包。 203. Simultaneously send the IP addresses of the virtual network cards to the terminals that maintain the IP addresses simultaneously. Send an upgrade packet.
在本发明实施例中,由于通过网卡绑定建立了虚拟网卡和终端一对一的通 信途径, 故当终端批量升级装置分别通过各个虚拟网卡的不同 IP地址向各个 维护 IP地址的终端同时发送升级数据包时, 可以保证每个终端都会收到升级 数据包,则各个终端可以在接收到升级数据包后完成升级。例如,通过 WinPcap 在实际应用中, 可以通过 pcap— sendpacket()函数发送单个数据包, 也可以通过 Send queues发送一组数据包。  In the embodiment of the present invention, since the one-to-one communication path between the virtual network card and the terminal is established through the network card binding, the terminal batch upgrading device simultaneously sends the upgrade to each terminal that maintains the IP address through different IP addresses of the virtual network cards. In the case of a data packet, each terminal can be guaranteed to receive an upgrade data packet, and each terminal can complete the upgrade after receiving the upgrade data packet. For example, in WinPcap, in practice, a single packet can be sent via the pcap_sendpacket() function, or a set of packets can be sent via Send queues.
在本发明实施例中, 由于通过操作系统配置的 DHCP 实现为各个虚拟网 卡分配 IP地址, 故可以避免各个虚拟网卡之间 IP地址冲突的问题, 当为各个 虚拟网卡分配完 IP地址以后, 将需要发送的升级数据包分别与各个虚拟网卡 绑定, 以同时建立多个虚拟网卡和终端的一对一通信的途径, 然后向各个维护 In the embodiment of the present invention, since the IP address is assigned to each virtual network card by using the DHCP configured by the operating system, the problem of IP address conflict between the virtual network cards can be avoided. After all the virtual network cards are assigned IP addresses, they will be required. The upgraded data packets are respectively bound to each virtual network card to establish a one-to-one communication path between multiple virtual network cards and terminals, and then to each maintenance.
IP 地址的终端发送升级数据包, 实现对终端批量升级的目的, 提高了升级效 率。 The terminal of the IP address sends the upgrade data packet to achieve the purpose of batch upgrade of the terminal, which improves the upgrade efficiency.
下面以另一个详细的实施例介绍本发明实施例的终端批量升级方法,请参 阅实施例三。 实施例三  The method for upgrading the terminal batch in the embodiment of the present invention is described in another detailed embodiment. Please refer to the third embodiment. Embodiment 3
本发明实施例提供的终端批量升级方法,请参见图 3 ,具体步骤可以包括: 301、 静态分配互不相同的 IP地址给各个虚拟网卡;  For the batch upgrade method of the terminal provided by the embodiment of the present invention, refer to FIG. 3. The specific steps may include: 301. Statically assigning mutually different IP addresses to each virtual network card;
在本发明实施例中, 终端批量升级装置还可以釆用静态分配 IP地址的方 式为各个不同的虚拟网卡分配 IP地址。 例如, 当多个终端同时插入 PC后, 会 在 PC侧出现相应数目的虚拟网卡, 则终端批量升级装置可以为所有的虚拟网 卡静态分配 IP地址, 从地址池(如 192.168.0.2 - 192.168.0.254 ) 中选取不同 的固定 IP地址分配给各个虚拟网卡。  In the embodiment of the present invention, the terminal batch upgrading apparatus may also allocate an IP address to each different virtual network card by using a statically assigned IP address. For example, when multiple terminals are simultaneously inserted into the PC, a corresponding number of virtual network cards will appear on the PC side, and the terminal batch upgrade device can statically assign IP addresses to all virtual network cards, such as 192.168.0.2 - 192.168.0.254. ) Select a different fixed IP address to assign to each virtual NIC.
302、 向与各个虚拟网卡通信的终端分别发送维护 IP地址修改命令, 使得 各个终端将各自的维护 IP地址分别修改为预置的 IP地址, 各个终端修改后的 预置的 IP地址是不相同的;  302. Send a maintenance IP address modification command to the terminal that communicates with each virtual network card, so that each terminal modifies its maintenance IP address to a preset IP address, and the preset IP addresses modified by each terminal are different. ;
在实际应用场景中,以终端批量升级装置设置有 n个虚拟网卡为例进行说 明, 首先终端批量升级装置通过虚拟网卡 1 (假设 IP地址为: 192.168.0.2 )向 终端 1 发送一个维护 IP地址修改命令, 使终端 1 修改维护 IP地址(如: 192.168.0.1 ) 为另一个预置的 IP 地址 (例如从地址池中选择 IP 地址为 192.168.0.100作为预置的 IP地址;), 同时在 PC的路由表中增加一个路由, 命 令如下: In the actual application scenario, the terminal batch upgrade device is configured with n virtual network cards as an example. First, the terminal batch upgrade device passes the virtual network card 1 (assuming the IP address is: 192.168.0.2). Terminal 1 sends a maintenance IP address modification command to enable terminal 1 to modify the maintenance IP address (such as: 192.168.0.1) to another preset IP address (for example, select IP address from the address pool as 192.168.0.100 as the preset IP address. Address ;), add a route to the routing table of the PC at the same time, the command is as follows:
Route add 192.168.0.100 mask 255.255.255.255 192.168.0.2  Route add 192.168.0.100 mask 255.255.255.255 192.168.0.2
即, 如果要发送升级数据包到 192.168.0.100就从地址为 192.168.0.2的虚 拟网卡 1发出去。  That is, if the upgrade packet is to be sent to 192.168.0.100, it is sent from the virtual NIC 1 with the address 192.168.0.2.
当将终端 1的维护 IP地址修改完成后, 按照相同的方法将剩下的 n-1个 终端的维护 IP地址分别修改为不同的预置的 IP地址, 并在路由表增加路由以 说明。  After the maintenance IP address of the terminal 1 is modified, the maintenance IP addresses of the remaining n-1 terminals are modified to different preset IP addresses in the same way, and routes are added to the routing table to indicate.
需要说明的是, 在本发明实施例中, 302还可以由以下步骤来代替: 终端批量升级装置通过网络通信中的绑定网卡技术来实现, 301解决了各 个虚拟网卡的 IP地址冲突问题后, 假设虚拟网卡 1、 虚拟网卡 2、 虚拟网卡 3 的 IP地址分别为 192.168.1.15、 192.168.1.56、 192.168.1.126; 终端批量升级装 置内首先创建 3个 IPEndPoint对象, 例如针对虚拟网卡 1创建一个如下对象: IPEndPoint pol = new IPEndPoint(IPAddress. Parse("192.168.1.15"), 8084); 〃其中, 端口随意指定, 只要和其它 IPEndPoint不冲突即可;  It should be noted that, in the embodiment of the present invention, the 302 may be replaced by the following steps: The terminal batch upgrade device is implemented by the binding network card technology in the network communication, and after the 301 solves the IP address conflict problem of each virtual network card, Assume that the IP addresses of the virtual network card 1, the virtual network card 2, and the virtual network card 3 are respectively 192.168.1.15, 192.168.1.56, and 192.168.1.126; three IPEndPoint objects are first created in the terminal batch upgrade device, for example, the following object is created for the virtual network card 1 : IPEndPoint pol = new IPEndPoint(IPAddress. Parse("192.168.1.15"), 8084); 〃 where the port is arbitrarily specified, as long as it does not conflict with other IPEndPoints;
Socket mySocketl = new Socket ( AddressFamily.InterNetwork, SocketType. Stream, ProtocolType.Tcp ) ;  Socket mySocketl = new Socket ( AddressFamily.InterNetwork, SocketType. Stream, ProtocolType.Tcp );
mySocketl. Bind(pol);  mySocketl. Bind(pol);
至此,通过 mySocketl的升级数据包和虚拟网卡 1的 IP地址绑定到一起, 终端批量升级装置可以通过 mySocketl发送升级数据包到虚拟网卡 1对应的终 端上了。其它虚拟网卡同样操作即可, 由此终端批量升级装置将需要发送的升 级数据包分别与各个虚拟网卡绑定,以同时建立多个虚拟网卡和终端一对一通 信的途径。  At this point, the upgrade data packet of mySocketl and the IP address of the virtual network adapter 1 are bound together, and the terminal batch upgrade device can send the upgrade data packet to the corresponding terminal of the virtual network adapter 1 through mySocketl. The other virtual network cards can be operated in the same manner. Therefore, the terminal batch upgrading device binds the upgrade data packets that need to be sent to each virtual network card separately, so as to establish a plurality of virtual network card and terminal one-to-one communication paths at the same time.
303、 通过各个虚拟网卡不同的 IP地址向各个终端同时发送升级数据包。 在本发明实施例中, 由于与各个虚拟网卡通信的终端的维护 IP地址已经 修改为不同的 IP地址, 故当终端批量升级装置分别通过各个虚拟网卡的不同 IP 地址向各终端同时发送升级数据包时, 可以保证每个终端都会收到升级数 据包, 则各个终端可以在接收到升级数据包后完成升级。 303. Send the upgrade data packet to each terminal simultaneously by using different IP addresses of the virtual network cards. In the embodiment of the present invention, since the maintenance IP address of the terminal that communicates with each virtual network card has been modified to a different IP address, the terminal batch upgrading device simultaneously sends the upgrade data packet to each terminal through different IP addresses of the virtual network cards. When you are guaranteed, each terminal will receive the number of upgrades. According to the package, each terminal can complete the upgrade after receiving the upgrade data packet.
在本发明实施例中, 由于终端批量升级装置釆用静态分配 IP地址的方式 为各个虚拟终端分配不同的固定 IP地址, 故可以避免各个虚拟网卡之间 IP地 址冲突的问题, 当为一个虚拟网卡分配完 IP地址以后, 通过发送维护 IP地址 修改命令使各个终端的维护 IP地址修改为不同的预置的 IP地址, 然后向各个 终端的不同的维护 IP地址发送升级数据包, 实现了对终端批量升级的目的, 提高了升级效率。  In the embodiment of the present invention, the terminal batch upgrade device allocates different fixed IP addresses to each virtual terminal by using a statically assigned IP address, thereby avoiding the problem of IP address conflict between the virtual network cards, which is a virtual network card. After the IP address is assigned, the maintenance IP address modification command is used to modify the maintenance IP address of each terminal to a different preset IP address, and then the upgrade data packet is sent to the different maintenance IP addresses of each terminal. The purpose of the upgrade is to improve the efficiency of the upgrade.
在实际应用中, 本发明实施例提供的终端批量升级装置具体可以内置于 In a practical application, the terminal batch upgrading apparatus provided by the embodiment of the present invention may be specifically built in
PC 内, 通过软件和硬件集成的方式来实现对终端批量升级的处理。 在本发明 实施例中将介绍和上述方法实施例中介绍的方法相对应的装置,具体各单元的 执行方法可参见上述方法实施例,在此仅描述相关单元的内容,具体说明如下。 实施例四 In the PC, the processing of batch upgrade of the terminal is realized through software and hardware integration. In the embodiment of the present invention, a device corresponding to the method described in the foregoing method embodiment will be described. For the implementation method of each unit, refer to the foregoing method embodiment. Only the content of the related unit is described herein, and the details are as follows. Embodiment 4
本发明实施例提供的终端批量升级装置, 包括: IP 地址分配单元, 绑定 单元或修改命令发送单元, 数据包发送单元。  The terminal batch upgrading apparatus provided by the embodiment of the invention includes: an IP address allocation unit, a binding unit or a modification command sending unit, and a data packet sending unit.
请参阅图 4-a和图 4-b, 终端批量升级装置 400, 包括: IP地址分配单元 Referring to Figure 4-a and Figure 4-b, the terminal batch upgrade device 400 includes: an IP address allocation unit
401 , 绑定单元 402或修改命令发送单元 403 , 数据包发送单元 404, 其中,401, a binding unit 402 or a modification command sending unit 403, a data packet sending unit 404, where
IP地址分配单元 401 ,用于为与各个终端通信的不同虚拟网卡分配不同的 IP地址; An IP address allocation unit 401 is configured to allocate different IP addresses for different virtual network cards that communicate with each terminal.
在实际应用中, 一种具体的实现方式是, IP地址分配单元 401可以包括: (未在图 4中示出)  In a practical implementation, a specific implementation manner is that the IP address allocation unit 401 can include: (not shown in FIG. 4)
DHCP分配模块,用于通过操作系统配置的 DHCP实现为各个虚拟网卡分 配 IP地址, 直到各个虚拟网卡的 IP地址互不相同时结束分配过程。  The DHCP allocation module is configured to allocate an IP address to each virtual network card by using a DHCP configured by the operating system, and the allocation process is ended until the IP addresses of the virtual network cards are different from each other.
各模块之间的执行方法可参看实施例二, 此处不再赘述。  For the implementation method between the modules, refer to the second embodiment, and details are not described herein again.
在另一种应用场景下, IP地址分配单元 401可以包括:(未在图 4中示出) 静态分配模块, 用于静态分配互不相同的 IP地址给各个虚拟网卡。 其中, 一种可实现的方式是,静态分配模块具体用于从地址池中选择与虚拟网卡数目 相同的互不重复的 IP地址分配给各个虚拟网卡。 该模块的具体执行方法可参 看实施例三, 此处不再赘述,  In another application scenario, the IP address allocating unit 401 may include: (not shown in FIG. 4) a static allocation module, configured to statically allocate mutually different IP addresses to the respective virtual network cards. An achievable manner is that the static allocation module is specifically configured to allocate, from the address pool, the same non-repeating IP address as the number of virtual network cards to each virtual network card. For the specific implementation method of the module, refer to the third embodiment, and details are not described herein again.
绑定单元 402, 用于将需要发送的升级数据包分别与各个虚拟网卡绑定; 或, 修改命令发送单元 403 , 用于向与各个虚拟网卡通信的终端分别发送 维护 IP地址修改命令, 使得各个终端将各自的维护 IP地址分别修改为预置的 IP地址, 各个终端修改后的预置的 IP地址是不相同的; The binding unit 402 is configured to bind the upgrade data packet that needs to be sent to each virtual network card respectively. Or, the modify command sending unit 403 is configured to separately send a maintenance IP address modification command to the terminal that communicates with each virtual network card, so that each terminal respectively modifies the respective maintenance IP address into a preset IP address, and the modified terminal of each terminal is modified. The set IP address is not the same;
在实际应用中, 绑定单元 402可以包括: (未在图 4中示出)  In a practical application, the binding unit 402 may include: (not shown in FIG. 4)
对象创建模块, 用于分别为各个虚拟网卡创建端口号不相同的对象; 绑定模块, 用于将需要发送的数据包分别与创建的对象绑定。  An object creation module is configured to respectively create an object with a different port number for each virtual network card. The binding module is configured to bind the data packet to be sent to the created object.
对象创建模块和绑定模块的具体执行方法可参看实施例二, 此处不再赘 述。  For the specific implementation method of the object creation module and the binding module, refer to the second embodiment, which is not described here.
数据包发送单元 404, 用于通过各个虚拟网卡不同的 IP地址同时将升级 数据包发送给各个终端, 以使各个终端能够在接收到升级数据包后完成升级。  The data packet sending unit 404 is configured to simultaneously send the upgrade data packet to each terminal by using different IP addresses of the virtual network cards, so that each terminal can complete the upgrade after receiving the upgrade data packet.
在本发明实施例中, 由于为各个虚拟网卡分配的是不同的 IP地址, 可以 避免各个虚拟网卡之间 IP地址冲突的问题, 当为各个虚拟网卡分配完 IP地址 以后, 将需要发送的升级数据包分别与各个虚拟网卡绑定, 或, 发送维护 IP 地址修改命令使各个终端修改为不同的预置 IP地址, 通过这两种方式同时建 立了多个虚拟网卡和终端一对一通信的途径,然后通过各个虚拟网卡不同的 IP 地址同时将升级数据发送到各个终端, 实现对终端批量升级的目的,提高了升 级效率。  In the embodiment of the present invention, since different virtual IP addresses are assigned to different virtual network cards, the problem of IP address conflict between the virtual network cards can be avoided. After the IP addresses are assigned to the virtual network cards, the upgrade data to be sent is needed. The packets are respectively bound to the virtual network adapters, or the maintenance IP address modification command is sent to modify the respective terminals to different preset IP addresses. Through these two methods, multiple virtual network cards and terminal one-to-one communication paths are simultaneously established. Then, the upgrade data is sent to each terminal through different IP addresses of the virtual network cards, thereby achieving the purpose of batch upgrade of the terminal and improving the upgrade efficiency.
下面以一个实际的应用场景来介绍本发明实施例中的终端批量升级装置, 一台 PC 中通过硬件以及软件的方式集成有本发明实施例的终端批量升级装 置, PC侧包含有多个 USB接口, 例如 6个, 当有 6个终端通过 USB插入到 PC后, 会在 PC侧出相应的 6个虚拟网卡, 首先 IP地址分配单元会为 6个虚 拟网卡分配 6个互不相同的 IP地址 (例如为: 192.168.1.15、 192.168.1.56、 192.168.1.126, 192.168.1.19、 192.168.1.58 ), 解决虚拟网卡的冲突问题后, 通 过绑定单元会将需要发送的升级数据包分别与 6个虚拟网卡绑定(或者通过修 改命令发送单元向与 6个虚拟网卡通信的 6个终端分别发送维护 IP地址修改 命令, 使得 6个终端将各自的维护 IP地址分别修改为不同的 6个 IP地址(例 如为: 192.168.1.23、 192.168.1.25、 192.168.1.29, 192.168.1.30、 192.168.1.31 ), 通过这两种方式的任一种, PC侧同时建立了多个虚拟网卡和终端一对一通信 的途径, 最后, 数据包发送单元, 用于通过 6个虚拟网卡不同的 IP地址同时 将升级数据包发送给 6个终端,以使各个终端能够在接收到升级数据包后完成 升级。 The terminal batch upgrade device in the embodiment of the present invention is introduced in a practical application scenario. The terminal batch upgrade device in the embodiment of the present invention is integrated in a PC by hardware and software, and the PC side includes multiple USB interfaces. For example, six, when six terminals are plugged into the PC via USB, the corresponding six virtual network cards will be displayed on the PC side. First, the IP address allocation unit will allocate six different IP addresses for the six virtual network cards ( For example: 192.168.1.15, 192.168.1.56, 192.168.1.126, 192.168.1.19, 192.168.1.58), after solving the conflict problem of the virtual network card, the binding data packet to be sent by the binding unit and the six virtual network cards respectively Bind (or modify the command sending unit to send the maintenance IP address modification command to each of the six terminals that communicate with the six virtual network cards, so that the six terminals modify their respective maintenance IP addresses to different six IP addresses (for example, : 192.168.1.23, 192.168.1.25, 192.168.1.29, 192.168.1.30, 192.168.1.31 ). By either of these two methods, multiple virtual network cards are established on the PC side. Ways of one communication terminal, and finally, a data packet sending unit, for six virtual NIC by different IP addresses simultaneously The upgrade packet is sent to 6 terminals so that each terminal can complete the upgrade after receiving the upgrade packet.
需要说明的是,本发明实施例中的终端批量升级装置不仅可以应用在升级 的应用场景,还可以应用在其他控制应用包括大话务量测试(同时控制大批量 的终端进行某种动作, 例如入网、 呼叫等动作来模仿某种应用场景, 以达到进 行压力测试的目的)等。  It should be noted that the terminal batch upgrade device in the embodiment of the present invention can be applied not only to the upgraded application scenario, but also to other control applications including large traffic testing (while controlling a large number of terminals to perform certain actions, for example, Incoming network, call and other actions to imitate an application scenario to achieve the purpose of stress testing).
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可 读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。  A person skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, the above mentioned storage. The medium can be a read only memory, a magnetic disk or a compact disk or the like.
以上对本发明所提供的一种终端批量升级方法及装置进行了详细介绍 ,对 于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用 范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。  The method and device for upgrading a terminal in the present invention are described in detail above. For those skilled in the art, according to the idea of the embodiment of the present invention, there are changes in the specific implementation manner and application scope. In summary, the content of the specification should not be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种终端批量升级方法, 其特征在于, 包括: 将需要发送的升级数据包分别与各个虚拟网卡绑定, 或,  A terminal batch upgrade method, comprising: binding an upgrade data packet to be sent to each virtual network card, or
向与各个虚拟网卡通信的终端分别发送维护 IP地址修改命令, 使得各个 终端将各自的维护 ip地址分别修改为预置的 IP地址, 所述各个终端修改后的 预置的 IP地址是不相同的;  The maintenance IP address modification command is sent to the terminal that communicates with each virtual network card, so that each terminal modifies the respective maintenance IP address to a preset IP address, and the modified preset IP addresses of the respective terminals are different. ;
通过各个虚拟网卡不同的 IP地址同时将升级数据包发送给各个终端, 以 使各个终端能够在接收到升级数据包后完成升级。  The upgrade data packet is simultaneously sent to each terminal through different IP addresses of the virtual network cards, so that each terminal can complete the upgrade after receiving the upgrade data packet.
2、 根据权利要求 1所述的终端批量升级方法, 其特征在于, 所述为与各 个终端通信的不同虚拟网卡分配不同的 IP地址包括:  The terminal batch upgrade method according to claim 1, wherein the assigning different IP addresses to different virtual network cards that are communicated with each terminal includes:
通过操作系统配置的动态主机设置协议 DHCP 实现为各个虚拟网卡分配 IP地址, 直到各个虚拟网卡的 IP地址互不相同时结束分配过程。  The dynamic host setting protocol configured by the operating system allocates an IP address to each virtual NIC until the IP addresses of the virtual NICs are different from each other.
3、 根据权利要求 1所述的终端批量升级方法, 其特征在于, 所述为与各 个终端通信的不同虚拟网卡分配不同的 IP地址包括:  The terminal batch upgrade method according to claim 1, wherein the assigning different IP addresses to different virtual network cards that are communicated with each terminal includes:
静态分配互不相同的 IP地址给各个虚拟网卡。  Statically assign different IP addresses to each virtual NIC.
4、 根据权利要求 3所述的终端批量升级方法, 其特征在于, 所述静态分 配互不相同的 IP地址给各个虚拟网卡包括:  The terminal batch upgrade method according to claim 3, wherein the statically assigning different IP addresses to each virtual network card includes:
从地址池中选择与虚拟网卡数目相同的互不重复的 IP地址分配给各个虚 拟网卡。  Select the mutually independent IP addresses from the address pool that are the same as the number of virtual NICs to be assigned to each virtual NIC.
5、 根据权利要求 1所述的终端批量升级方法, 其特征在于, 所述将需要 分别为各个虚拟网卡创建端口号不相同的对象;  The terminal batch upgrade method according to claim 1, wherein the object that is different in port number for each virtual network card needs to be created separately;
将需要发送的数据包分别与创建的对象绑定。  Bind the packets that need to be sent to the created objects.
6、 一种终端批量升级装置, 其特征在于, 包括:  6. A terminal batch upgrade device, which is characterized by comprising:
IP 地址分配单元, 用于为与各个终端通信的不同虚拟网卡分配不同的网 络互连协议 IP地址;  An IP address allocation unit, configured to allocate different network interconnection protocol IP addresses for different virtual network cards that communicate with each terminal;
绑定单元, 用于将需要发送的升级数据包分别与各个虚拟网卡绑定, 或, 修改命令发送单元, 用于向与各个虚拟网卡通信的终端分别发送维护 IP 地址修改命令,使得各个终端将各自的维护 IP地址分别修改为预置的 IP地址, 所述各个终端修改后的预置的 IP地址是不相同的; The binding unit is configured to bind the upgrade data packet to be sent to each virtual network card, or modify the command sending unit, and send the maintenance IP to the terminal that communicates with each virtual network card. The address modification command is configured to modify the respective maintenance IP addresses of the respective terminals to be preset IP addresses, and the preset preset IP addresses of the respective terminals are different;
数据包发送单元, 用于通过各个虚拟网卡不同的 IP地址同时将升级数据 包发送给各个终端, 以使各个终端能够在接收到升级数据包后完成升级。  The data packet sending unit is configured to send the upgrade data packet to each terminal through different IP addresses of the virtual network cards, so that each terminal can complete the upgrade after receiving the upgrade data packet.
7、 根据权利要求 6所述的终端批量升级装置, 其特征在于, 所述 IP地址 分配单元包括:  The terminal batch upgrading apparatus according to claim 6, wherein the IP address allocating unit comprises:
DHCP分配模块,用于通过操作系统配置的动态主机设置协议 DHCP实现 为各个虚拟网卡分配 IP地址, 直到各个虚拟网卡的 IP地址互不相同时结束分 配过程。  The DHCP allocation module is configured to allocate an IP address to each virtual network card through the dynamic host setting protocol DHCP configured by the operating system, and the allocation process is terminated until the IP addresses of the virtual network cards are different from each other.
8、 根据权利要求 6所述的终端批量升级装置, 其特征在于, 所述 IP地址 分配单元包括:  The terminal batch upgrading apparatus according to claim 6, wherein the IP address allocating unit comprises:
静态分配模块, 用于静态分配互不相同的 IP地址给各个虚拟网卡。  A static allocation module is used to statically assign mutually different IP addresses to each virtual network adapter.
9、 根据权利要求 8所述的终端批量升级装置, 其特征在于, 所述静态分 配模块具体用于从地址池中选择与虚拟网卡数目相同的互不重复的 IP地址分 配给各个虚拟网卡。  The terminal batch upgrading apparatus according to claim 8, wherein the static allocation module is specifically configured to allocate, from the address pool, the same non-repeating IP address as the number of virtual network cards to each virtual network card.
10、 根据权利要求 6所述的终端批量升级装置, 其特征在于, 所述绑定单 元包括:  The terminal batch upgrading apparatus according to claim 6, wherein the binding unit comprises:
对象创建模块, 用于分别为各个虚拟网卡创建端口号不相同的对象; 绑定模块, 用于将需要发送的数据包分别与创建的对象绑定。  An object creation module is configured to respectively create an object with a different port number for each virtual network card. The binding module is configured to bind the data packet to be sent to the created object.
PCT/CN2011/076199 2011-06-23 2011-06-23 Method and device for terminal batch upgrading WO2011150883A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180000870.3A CN102273179B (en) 2011-06-23 2011-06-23 Method and device for terminal batch upgrading
PCT/CN2011/076199 WO2011150883A2 (en) 2011-06-23 2011-06-23 Method and device for terminal batch upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/076199 WO2011150883A2 (en) 2011-06-23 2011-06-23 Method and device for terminal batch upgrading

Publications (2)

Publication Number Publication Date
WO2011150883A2 true WO2011150883A2 (en) 2011-12-08
WO2011150883A3 WO2011150883A3 (en) 2012-05-24

Family

ID=45053615

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076199 WO2011150883A2 (en) 2011-06-23 2011-06-23 Method and device for terminal batch upgrading

Country Status (2)

Country Link
CN (1) CN102273179B (en)
WO (1) WO2011150883A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422481A (en) * 2021-12-13 2022-04-29 科华数据股份有限公司 Network equipment management method and related device

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685391B (en) * 2012-09-13 2018-03-09 北京大唐高鸿软件技术有限公司 A kind of automatically updating method of terminal device using static network address
CN103281295B (en) * 2013-04-22 2016-07-06 深圳市共进电子股份有限公司 Realize the system and method for multiple terminal parallel upgrades in same IP LAN
CN103457645B (en) * 2013-08-22 2015-09-30 成都卫士通信息产业股份有限公司 A kind of method of being carried out industrial equipment maintenance on post by blue tooth wireless technology
CN104301449A (en) * 2014-10-08 2015-01-21 杭州华三通信技术有限公司 Method and device for modifying IP address
CN105045614A (en) * 2015-06-29 2015-11-11 浪潮(北京)电子信息产业有限公司 Operating system installation method and system
CN106559301A (en) * 2015-09-29 2017-04-05 中兴通讯股份有限公司 Embedded device batch upgrading method and system
CN106790733B (en) * 2015-11-25 2020-04-10 上海奕瑞光电子科技股份有限公司 Rapid pairing and retrieval method for detector and X-ray photography system
CN105763378B (en) * 2016-04-11 2018-09-07 北京卓越信通电子股份有限公司 A kind of relayed surveillanced network address distribution method based on passenger information system
CN108683556B (en) * 2018-04-26 2021-11-09 Tcl王牌电器(惠州)有限公司 Method and device for detecting functional state of network card and computer storage medium
CN110808870A (en) * 2019-09-30 2020-02-18 深圳市九洲电器有限公司 Router testing method and related product
CN111741102B (en) * 2020-06-18 2022-10-18 中国银行股份有限公司 Upgrading method and device for distributed micro-service application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN101355594A (en) * 2008-09-09 2009-01-28 中兴通讯股份有限公司 Method for detecting address conflict when distributing IP address
CN101552697A (en) * 2009-05-06 2009-10-07 深圳市普联技术有限公司 Network access apparatus upgrade system and network access apparatus upgrade method
CN201332404Y (en) * 2009-01-22 2009-10-21 深圳华为通信技术有限公司 Network card upgrading system and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100663547B1 (en) * 2004-09-09 2007-01-02 삼성전자주식회사 Communication system and method for software upgrade of terminal and the terminal
CN101997707B (en) * 2009-08-11 2014-04-16 Tcl集团股份有限公司 System and method for upgrading intelligent terminals in batches
CN101951369A (en) * 2010-09-14 2011-01-19 太仓市同维电子有限公司 Batch terminal upgrading method and system based on automatic discovery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN101355594A (en) * 2008-09-09 2009-01-28 中兴通讯股份有限公司 Method for detecting address conflict when distributing IP address
CN201332404Y (en) * 2009-01-22 2009-10-21 深圳华为通信技术有限公司 Network card upgrading system and equipment
CN101552697A (en) * 2009-05-06 2009-10-07 深圳市普联技术有限公司 Network access apparatus upgrade system and network access apparatus upgrade method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422481A (en) * 2021-12-13 2022-04-29 科华数据股份有限公司 Network equipment management method and related device
CN114422481B (en) * 2021-12-13 2024-03-15 科华数据股份有限公司 Network equipment management method and related device

Also Published As

Publication number Publication date
WO2011150883A3 (en) 2012-05-24
CN102273179B (en) 2014-01-22
CN102273179A (en) 2011-12-07

Similar Documents

Publication Publication Date Title
WO2011150883A2 (en) Method and device for terminal batch upgrading
JP6513835B2 (en) Packet processing method, host, and system in cloud computing system
JP6605713B2 (en) Packet processing method, host and system in cloud computing system
US8407367B2 (en) Unified connector architecture
EP2597842B1 (en) Providing network capability over a converged interconnect fabric
TWI244295B (en) Method and system for simulating multiple independent client devices in a wired or wireless network
EP3176980B1 (en) Unified server communication method, baseboard management controller and server
US10754797B1 (en) Consolidating write transactions for a network device
WO2018120493A1 (en) Communication connection establishing method and system, mobile terminal, vehicle-mounted equipment, corresponding equipment and computer storage medium
US9515963B2 (en) Universal network interface controller
KR20140107173A (en) Layer 2 packet switching without look-up table for ethernet switches
CN112152940B (en) Message processing method, device and system
WO2012149767A1 (en) Method and system for accessing storage device
CN104144096A (en) Virtual network layer construction method, device and system
JP6665190B2 (en) Network sharing implementation method and apparatus
CN115298656A (en) System and method for scheduling sharable PCIE endpoint devices
CN104468389A (en) Message processing method, servers and server system
CN112929418B (en) Rapid IO high-speed communication method and system based on publish-subscribe
WO2012129830A1 (en) Method and system for accessing web-page-type control interface of data card
US9141564B1 (en) Interconnection of peripheral devices on different electronic devices
US20060112186A1 (en) Method of communicating a VMEbus signal over IP packet network
WO2023221708A1 (en) Pdn dialing method, system and apparatus, multi-pdn dialing configuration method, system and apparatus, and device and storage medium
WO2015123947A1 (en) Method and apparatus for delivering local area network information
WO2013167050A2 (en) Drive-free networking processing method and apparatus
CN112367362B (en) Data processing method, device, equipment and computer storage medium

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000870.3

Country of ref document: CN

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

Ref document number: 11789262

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11789262

Country of ref document: EP

Kind code of ref document: A2