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

Method and device for terminal batch upgrading Download PDF

Info

Publication number
CN102273179A
CN102273179A CN2011800008703A CN201180000870A CN102273179A CN 102273179 A CN102273179 A CN 102273179A CN 2011800008703 A CN2011800008703 A CN 2011800008703A CN 201180000870 A CN201180000870 A CN 201180000870A CN 102273179 A CN102273179 A CN 102273179A
Authority
CN
China
Prior art keywords
address
terminal
microsoft loopback
loopback adapter
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011800008703A
Other languages
Chinese (zh)
Other versions
CN102273179B (en
Inventor
王竞
韩伟
董念
朱光泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Publication of CN102273179A publication Critical patent/CN102273179A/en
Application granted granted Critical
Publication of CN102273179B publication Critical patent/CN102273179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/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

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

A kind of terminal batch upgrading method and device
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of terminal batch upgrading method and device.
Background technology
USB (USB, Universal Serial BUS) is a kind of standard connection that external equipment is connected with computer that is used for, this USB (universal serial bus) has that speed is fast, plug and play, easily expansion, can use bus-powered, use plurality of advantages such as flexible, have a wide range of applications at present, not only appear in nearly all computer and also appear at more and more in the embedded system, in embedded devices such as smart mobile phone, digital camera, data card, mobile router.In these embedded systems, need the Ethernet interface of use standard to carry out transfer of data usually.But common Ethernet interface often needs independent ethernet controller and peripheral interface, increase system cost thus and increased equipment size, based on telecommunication network driving interface standard (RNDIS, Remote Network Driver Interface Specification) or communication device class (CDC, Communication Device Class)-ethernet control module (ECM, Ethernet Communication Module) equipment preferably resolves this problem, make equipment on USB, fictionalize Ethernet (Ethernet) interface, in the terminal in mobile broadband communication terminal field, be widely used at present.
Integrated USB and RNDIS/CDC drive in the terminal based on RNDIS/CDC-ECM, PC (PC with terminal communication, Personal Computer) side also is equipped with corresponding driving, wherein the windows of PC side series operating system carries the RNDIS driving usually, RNDIS is the proprietary protocol of Microsoft, be used in mostly on the USB device, can be Windows operating system provides virtual Ethernet to connect.And common integrated CDC-ECM driving makes USB device provide the virtual ethernet network interface to operating system on other operating systems such as Linux.
At present based on the access mode of the common supported web page of terminal of RNDIS/CDC-ECM, after inserting PC based on the terminal of RNDIS/CDC-ECM, can Microsoft Loopback Adapter appear in the PC side, the IP address of this Microsoft Loopback Adapter is by the terminal distribution of inserting, the user can be by the PC side browser (as IE, FireFox etc.) access terminal side safeguard webpage, and by HTML (Hypertext Markup Language) (HTTP, Hyper TextTransfer Protocol) upgrading data packet is delivered to end side, finishes upgrade function thus.
The present inventor finds that there is following defective at least in prior art: after a plurality of terminals based on RNDIS/CDC-ECM are inserted PC, the Microsoft Loopback Adapter that similar number can occur in the PC side, Internet protocol (the IP of these Microsoft Loopback Adapters, Internet Protocol) address is by the terminal distribution of correspondence, because between the terminal is separate, and IP address allocated is normally distributed according to identical rule, cause the IP address conflict problem of a plurality of Microsoft Loopback Adapters thus, so can only upgrade to a station terminal by manual each, cause the inefficiency of upgrading, can't satisfy the upgrading efficient that requires when product line or storehouse are upgraded in enormous quantities.
Summary of the invention
The embodiment of the invention provides a kind of terminal batch upgrading method and device, is used to realize the batch upgrade of terminal, improves upgrading efficient.
The terminal batch upgrading method that the embodiment of the invention provides comprises: for distributing different IP addresses with the different virtual network interface card of each terminal communication; The upgrading data packet that needs send is bound with each Microsoft Loopback Adapter respectively, or, send respectively to the terminal of communicating by letter and to safeguard that the IP address revises order with each Microsoft Loopback Adapter, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, wherein, the IP address of presetting after each terminal modifications is inequality; The IP addresses different by each Microsoft Loopback Adapter send to upgrading data packet each terminal simultaneously, so that each terminal can be finished upgrading after receiving upgrading data packet.
The terminal batch upgrading device that the embodiment of the invention provides comprises: the IP address assignment unit is used to the different virtual network interface card of each terminal communication and distributes different IP addresses; The binding unit, the upgrading data packet that is used for needs are sent is bound with each Microsoft Loopback Adapter respectively, or, revise command sending unit, be used for sending respectively and safeguard that the IP address revises order to the terminal of communicating by letter with each Microsoft Loopback Adapter, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, wherein, the IP address of presetting after each terminal modifications is inequality; The packet transmitting element is used for simultaneously upgrading data packet being sent to each terminal by the different IP address of each Microsoft Loopback Adapter, so that each terminal can be finished upgrading after receiving upgrading data packet.
As can be seen from the above technical solutions, the embodiment of the invention has the following advantages:
In the embodiment of the invention, because for each Microsoft Loopback Adapter distribution is different IP addresses, can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing the IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs send is bound with each Microsoft Loopback Adapter respectively, or, transmission is safeguarded and is revised order in the IP address to make each terminal modifications be the different IP addresses of presetting, set up the approach of the One-to-one communication of a plurality of Microsoft Loopback Adapters and terminal simultaneously by this dual mode, simultaneously upgrade data is sent to each terminal by the different IP address of each Microsoft Loopback Adapter then, realization has improved upgrading efficient to the purpose of terminal batch upgrading.
Description of drawings
The schematic diagram of a kind of terminal batch upgrading method that Fig. 1 provides for the embodiment of the invention one;
The schematic diagram of a kind of terminal batch upgrading method that Fig. 2 provides for the embodiment of the invention two;
The schematic diagram of a kind of terminal batch upgrading method that Fig. 3 provides for the embodiment of the invention three;
A kind of terminal batch upgrading schematic representation of apparatus that Fig. 4-a and Fig. 4-b provide for the embodiment of the invention four.
Embodiment
The embodiment of the invention provides a kind of terminal batch upgrading method and device, is used to realize the batch upgrade of terminal, improves upgrading efficient.
For make goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, the embodiments described below only are the present invention's part embodiment, but not whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those skilled in the art obtained belongs to the scope of protection of the invention.
Embodiment one
The terminal batch upgrading method that the embodiment of the invention provides comprises: for distributing different IP addresses with the different virtual network interface card of each terminal communication; The upgrading data packet that needs send is bound with each Microsoft Loopback Adapter respectively, or, send respectively to the terminal of communicating by letter and to safeguard that the IP address revises order with each Microsoft Loopback Adapter, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, wherein, the IP address of presetting after each terminal modifications is inequality; The IP addresses different by each Microsoft Loopback Adapter send to upgrading data packet each terminal simultaneously, so that each terminal can be finished upgrading after receiving upgrading data packet.
Referring to Fig. 1, concrete steps can comprise:
101, be to distribute different IP addresses with the different virtual network interface card of each terminal communication;
In order to improve upgrading efficient, a plurality of terminals of need upgrading on a PC in actual applications after a plurality of terminals are inserted PC simultaneously, can occur the Microsoft Loopback Adapter of respective number in the PC side.According to prior art, be the IP address conflict problem that a plurality of Microsoft Loopback Adapters may be caused in Microsoft Loopback Adapter distributing IP address by terminal, for example each terminal all is that the corresponding virtual network interface card has distributed same IP address with it.In embodiments of the present invention, the terminal batch upgrading device is that a plurality of Microsoft Loopback Adapters on the PC distribute different IP addresses, and to avoid the afoul problem in IP address, the present invention will provide detailed description in subsequent embodiment.
102, will need the upgrading data packet that sends respectively with each Microsoft Loopback Adapter binding, or, send respectively to the terminal of communicating by letter and to safeguard that the IP address revises order with each Microsoft Loopback Adapter, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, the IP address of presetting after each terminal modifications is inequality;
In embodiments of the present invention, by upgrading data packet is safeguarded the modification order of IP address with each Microsoft Loopback Adapter binding or transmission respectively, wherein, safeguard that it is the IP address of presetting that the respectively unduplicated IP address identical with terminal number selected in the modification order meeting of IP address from address pool, so that each terminal is revised as the IP address of presetting with IP address separately respectively, set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously by this dual mode terminal batch upgrading device, to reach the purpose that sends upgrading data packet simultaneously, realize the batch upgrade of terminal, improve upgrading efficient.
103, simultaneously upgrading data packet is sent to each terminal by the different IP address of each Microsoft Loopback Adapter.
After solving Microsoft Loopback Adapter IP address conflict problem, by with the binding of upgrading data packet and each Microsoft Loopback Adapter or send safeguard that order is revised in the IP address after, the terminal batch upgrading device can send upgrading data packet simultaneously by the different IP addresses of each Microsoft Loopback Adapter, then each terminal just can be finished upgrading after receiving upgrading data packet, realize terminal batch upgrading, improve upgrading efficient.
In embodiments of the present invention, because for each Microsoft Loopback Adapter distribution is different IP addresses, can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing the IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs are sent is respectively with each Microsoft Loopback Adapter binding or send and safeguard and revise order in the IP address to make each terminal modifications be the different IP addresses of presetting, set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously by this dual mode, simultaneously upgrade data is sent to each terminal by the different IP address of each Microsoft Loopback Adapter then, realization has improved upgrading efficient to the purpose of terminal batch upgrading.
Introduce the terminal batch upgrading method of the embodiment of the invention below with a detailed embodiment, see also embodiment two.
Embodiment two
The terminal batch upgrading method that the embodiment of the invention provides, see also Fig. 2, concrete steps can comprise: 201, the DHCP by the operating system configuration is embodied as each Microsoft Loopback Adapter distributing IP address, finishes assigning process when the IP of each Microsoft Loopback Adapter address interconnect is inequality;
In embodiments of the present invention, the a plurality of terminals of upgrading on a PC, after a plurality of terminals are inserted PC simultaneously, the Microsoft Loopback Adapter that respective number can occur in the PC side, Microsoft Loopback Adapter and communication between terminals link are established, the terminal batch upgrading device is provided with agreement (DHCP by the DynamicHost of operating system configuration, Dynamic Host Configuration Protocol) is embodied as each Microsoft Loopback Adapter distributing IP address, at first initiate the DHCP request message by a Microsoft Loopback Adapter, with to that terminal request distributing IP address of communicating by letter with Microsoft Loopback Adapter, terminal is after receiving the DHCP request message, IP address of picked at random in the meeting secondary IP address pond, for example from an address pool 192.168.0.2~IP address of 192.168.0.254 picked at random 192.168.0.6, can send to the terminal batch upgrading device by DHCP offer message then, judge then whether the IP address that receives is identical with the IP address of distributing to other Microsoft Loopback Adapter, if not, give this Microsoft Loopback Adapter with the IP address assignment that receives; If, send DHCP Decline message and inform that this IP address of terminal is assigned with, there is conflict, then initiate the DHCP request message again, till not conflicting in the IP address of distributing to this Microsoft Loopback Adapter and the IP address of distributing to other Microsoft Loopback Adapter.To all Microsoft Loopback Adapter distributing IP addresses,, finish assigning process according to the strategy of above-mentioned distributing IP address when after all Microsoft Loopback Adapters distribute the IP address.
In embodiments of the present invention, suppose that the terminal number that a PC upgrades simultaneously is less than 16, and available IP number of addresses there are 253, so distribute an address conflict probability usually in 6%, and obtain request if IP can be initiated again after the conflict, so can solve the IP address conflict problem.
202, will need the upgrading data packet that sends respectively with each Microsoft Loopback Adapter binding;
Because the IP address of safeguarding of terminal is (for example all being 192.168.0.1) of acquiescence usually, way according to prior art, because destination address all is 192.168.0.1, can choose first suitable route from routing table transmits, sending upgrading data packet by the IP layer can only send from one of them Microsoft Loopback Adapter, have only the terminal of communicating by letter to receive upgrading data packet with this Microsoft Loopback Adapter, cause other terminal can not receive upgrading data packet, in embodiments of the present invention, the terminal batch upgrading device is realized by the bonding network card technique in the network service, for example, step 201 is supposed Microsoft Loopback Adapter 1 after having solved the IP address conflict problem of each Microsoft Loopback Adapter, Microsoft Loopback Adapter 2, the IP address of Microsoft Loopback Adapter 3 is respectively 192.168.1.15,192.168.1.56,192.168.1.126; At first create 3 IPEndPoint objects in the terminal batch upgrading device, for example create a following object at Microsoft Loopback Adapter 1:
IPEndPoint?po1=new?IPEndPoint(IPAddress.Parse(″192.168.1.15″),8084);
// wherein, port is arbitrarily specified, as long as do not conflict with other IPEndPoint;
Socket?mySocket1=new?Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
mySocket1.Bind(po1);
So far, the upgrading data packet by mySocket1 and the IP address binding of Microsoft Loopback Adapter 1 be to together, and the terminal batch upgrading device can send upgrading data packet on the terminal of Microsoft Loopback Adapter 1 correspondence by mySocket1.The same operation of other Microsoft Loopback Adapter get final product, and the terminal batch upgrading device upgrading data packet that will need to send is bound with each Microsoft Loopback Adapter respectively thus, to set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously.
Need to prove that in embodiments of the present invention, 202 can also be replaced by following steps:
Send respectively to the terminal of communicating by letter with each Microsoft Loopback Adapter and to safeguard that the IP address revises order, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, the IP address of presetting after each terminal modifications is inequality;
In the practical application scene, being provided with n Microsoft Loopback Adapter with the terminal batch upgrading device is that example describes, at first the terminal batch upgrading device (supposes that the IP address is: 192.168.0.2) send one to terminal 1 and safeguard the modification order of IP address by Microsoft Loopback Adapter 1, terminal 1 is revised safeguarded that IP address (as: 192.168.0.1) is another IP address of presetting (for example selecting the IP address from address pool is that 192.168.0.100 is as the IP address of presetting), increase simultaneously a route in the routing table of PC, order can be as following Example:
Route?add?192.168.0.100?mask?255.255.255.255192.168.0.2
That is, if to send upgrading data packet just be that the Microsoft Loopback Adapter 1 of 192.168.0.2 sends out from the address to 192.168.0.100.
When with terminal 1 safeguard the IP address revise finish after, according to identical method the IP address of safeguarding of n-1 remaining terminal is revised as the different IP addresses of presetting respectively, and in routing table increase route with explanation.
203, send upgrading data packet by the different IP address of each Microsoft Loopback Adapter simultaneously to each terminal of safeguarding the IP address.
In embodiments of the present invention, owing to set up Microsoft Loopback Adapter and the man-to-man avenues of communication of terminal by network card binding, so when the terminal batch upgrading device respectively the different IP addresses by each Microsoft Loopback Adapter when each safeguards that the terminal of IP address sends upgrading data packet simultaneously, can guarantee that each terminal all can receive upgrading data packet, then each terminal can be finished upgrading after receiving upgrading data packet.For example, the interface that provides by WinPcap is by searching each Microsoft Loopback Adapter and sending upgrading data packet by each Microsoft Loopback Adapter, in actual applications, can send the individual data bag by pcap_sendpacket () function, also can send one group of packet by Send queues.
In embodiments of the present invention, because the DHCP by the operating system configuration is embodied as each Microsoft Loopback Adapter distributing IP address, so can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing the IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs send is bound with each Microsoft Loopback Adapter respectively, approach with the One-to-one communication of setting up a plurality of Microsoft Loopback Adapters and terminal simultaneously, send upgrading data packet to each terminal of safeguarding the IP address then, realization has improved upgrading efficient to the purpose of terminal batch upgrading.
Introduce the terminal batch upgrading method of the embodiment of the invention below with another detailed embodiment, see also embodiment three.
Embodiment three
The terminal batch upgrading method that the embodiment of the invention provides sees also Fig. 3, and concrete steps can comprise: 301, each Microsoft Loopback Adapter is given in the mutually different IP of static allocation address;
In embodiments of the present invention, the terminal batch upgrading device can also adopt the mode of static allocation IP address to be each different Microsoft Loopback Adapter distributing IP address.For example, after a plurality of terminals are inserted PC simultaneously, the Microsoft Loopback Adapter that respective number can occur in the PC side, then the terminal batch upgrading device can be all Microsoft Loopback Adapter static allocation IP addresses, (distributes to each Microsoft Loopback Adapter as choosing different fixed ip address the 192.168.0.2~192.168.0.254) from address pool.
302, send respectively to the terminal of communicating by letter with each Microsoft Loopback Adapter and safeguard that the IP address revises order, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, the IP address of presetting after each terminal modifications is inequality;
In the practical application scene, being provided with n Microsoft Loopback Adapter with the terminal batch upgrading device is that example describes, at first the terminal batch upgrading device (supposes that the IP address is: 192.168.0.2) send one to terminal 1 and safeguard the modification order of IP address by Microsoft Loopback Adapter 1, terminal 1 is revised safeguarded that IP address (as: 192.168.0.1) is another IP address of presetting (for example selecting the IP address from address pool is that 192.168.0.100 is as the IP address of presetting), in the routing table of PC, increase a route simultaneously, order as follows:
Route?add?192.168.0.100?mask?255.255.255.255192.168.0.2
That is, if to send upgrading data packet just be that the Microsoft Loopback Adapter 1 of 192.168.0.2 sends out from the address to 192.168.0.100.
When with terminal 1 safeguard the IP address revise finish after, according to identical method the IP address of safeguarding of n-1 remaining terminal is revised as the different IP addresses of presetting respectively, and in routing table increase route with explanation.
Need to prove that in embodiments of the present invention, 302 can also be replaced by following steps:
The terminal batch upgrading device is realized by the bonding network card technique in the network service, 301 solved the IP address conflict problem of each Microsoft Loopback Adapter after, suppose that the IP address of Microsoft Loopback Adapter 1, Microsoft Loopback Adapter 2, Microsoft Loopback Adapter 3 is respectively 192.168.1.15,192.168.1.56,192.168.1.126; At first create 3 IPEndPoint objects in the terminal batch upgrading device, for example create a following object at Microsoft Loopback Adapter 1:
IPEndPoint?po1=new?IPEndPoint(IPAddress.Parse(″192.168.1.15″),8084);
// wherein, port is arbitrarily specified, as long as do not conflict with other IPEndPoint;
Socket?mySocket1=new?Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
mySocket1.Bind(po1);
So far, the upgrading data packet by mySocket1 and the IP address binding of Microsoft Loopback Adapter 1 be to together, and the terminal batch upgrading device can send upgrading data packet on the terminal of Microsoft Loopback Adapter 1 correspondence by mySocket1.The same operation of other Microsoft Loopback Adapter get final product, and the terminal batch upgrading device upgrading data packet that will need to send is bound with each Microsoft Loopback Adapter respectively thus, to set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously.
303, send upgrading data packet by the different IP address of each Microsoft Loopback Adapter simultaneously to each terminal.
In embodiments of the present invention, because different IP addresses has been revised as in the IP address of safeguarding of the terminal of communicating by letter with each Microsoft Loopback Adapter, so when the terminal batch upgrading device respectively the different IP addresses by each Microsoft Loopback Adapter when each terminal sends upgrading data packet simultaneously, can guarantee that each terminal all can receive upgrading data packet, then each terminal can be finished upgrading after receiving upgrading data packet.
In embodiments of the present invention, because the terminal batch upgrading device adopts the mode of static allocation IP address to distribute different fixed ip address for each virtual terminal, so can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, when being after a Microsoft Loopback Adapter distributes the IP address, safeguard that by transmission the modification order of IP address makes the IP address of safeguarding of each terminal be revised as the different IP addresses of presetting, send upgrading data packet to the different IP address of safeguarding of each terminal then, realized purpose, improved upgrading efficient terminal batch upgrading.
In actual applications, the terminal batch upgrading device that the embodiment of the invention provides specifically can be built in the PC, realizes processing to terminal batch upgrading by the integrated mode of software and hardware.To introduce in embodiments of the present invention and said method embodiment in the corresponding device of method introduced, specifically the manner of execution of each unit can in this content of only describing correlation unit, specify as follows referring to said method embodiment.
Embodiment four
The terminal batch upgrading device that the embodiment of the invention provides comprises: IP address assignment unit, binding unit or modification command sending unit, packet transmitting element.
See also Fig. 4-a and Fig. 4-b, terminal batch upgrading device 400 comprises: IP address assignment unit 401, and binding unit 402 or modification command sending unit 403, packet transmitting element 404, wherein,
IP address assignment unit 401 is used to the different virtual network interface card of each terminal communication and distributes different IP addresses;
In actual applications, a kind of concrete implementation is that IP address assignment unit 401 can comprise: (not shown in Figure 4)
The DHCP distribution module is used for being embodied as each Microsoft Loopback Adapter distributing IP address by the DHCP of operating system configuration, finishes assigning process when the IP of each Microsoft Loopback Adapter address interconnect is inequality.
Manner of execution between each module can repeat no more referring to embodiment two herein.
Under another kind of application scenarios, IP address assignment unit 401 can comprise: (not shown in Figure 4)
The static allocation module is used for the mutually different IP of static allocation address and gives each Microsoft Loopback Adapter.Wherein, a kind of attainable mode is that the static allocation module specifically is used for selecting to give each Microsoft Loopback Adapter with the same number of mutual unduplicated IP address assignment of Microsoft Loopback Adapter from address pool.The concrete manner of execution of this module can repeat no more referring to embodiment three herein,
Binding unit 402, the upgrading data packet that is used for needs are sent is bound with each Microsoft Loopback Adapter respectively;
Or, revise command sending unit 403, be used for sending respectively to the terminal of communicating by letter with each Microsoft Loopback Adapter and safeguard that the IP address revises order, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, the IP address of presetting after each terminal modifications is inequality;
In actual applications, binding unit 402 can comprise: (not shown in Figure 4)
The Object Creation module is used to be respectively each Microsoft Loopback Adapter and creates port numbers object inequality;
Binding module, the packet that is used for needs are sent is bound with the object of creating respectively.
The concrete manner of execution of Object Creation module and binding module can repeat no more referring to embodiment two herein.
Packet transmitting element 404 is used for simultaneously upgrading data packet being sent to each terminal by the different IP address of each Microsoft Loopback Adapter, so that each terminal can be finished upgrading after receiving upgrading data packet.
In embodiments of the present invention, because for each Microsoft Loopback Adapter distribution is different IP addresses, can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing the IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs send is bound with each Microsoft Loopback Adapter respectively, or, transmission is safeguarded and is revised order in the IP address to make each terminal modifications be the different IP addresses of presetting, set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously by this dual mode, simultaneously upgrade data is sent to each terminal by the different IP address of each Microsoft Loopback Adapter then, realization has improved upgrading efficient to the purpose of terminal batch upgrading.
Introduce terminal batch upgrading device in the embodiment of the invention with the application scenarios of a reality below, be integrated with the terminal batch upgrading device of the embodiment of the invention among PC by the mode of hardware and software, the PC side includes a plurality of USB interface, for example 6, after 6 terminals are inserted into PC by USB, can go out corresponding 6 Microsoft Loopback Adapters in the PC side, at first the IP address assignment unit can (for example be: 192.168.1.15 for 6 Microsoft Loopback Adapters distribute 6 mutually different IP addresses, 192.168.1.56,192.168.1.126,192.168.1.19,192.168.1.58), after solving the collision problem of Microsoft Loopback Adapter, the upgrading data packet that needs can be sent by the binding unit (perhaps sends respectively to 6 terminals of communicating by letter with 6 Microsoft Loopback Adapters by the modification command sending unit and safeguards the modification order of IP address with 6 Microsoft Loopback Adapter bindings respectively, make 6 terminals that the IP address of safeguarding separately is revised as 6 different IP addresses respectively and (for example is: 192.168.1.23,192.168.1.25,192.168.1.29,192.168.1.30,192.168.1.31), by any of this dual mode, the PC side has been set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously, at last, the packet transmitting element, each terminal is used for simultaneously upgrading data packet being sent to 6 terminals, so that can be finished upgrading after receiving upgrading data packet by 6 different IP addresses of Microsoft Loopback Adapter.
Need to prove, terminal batch upgrading device in the embodiment of the invention not only can be applied in the application scenarios of upgrading, can also be applied in other controls uses and to comprise that the Bulk Call test (controls large batch of terminal simultaneously and carry out certain action, for example network, action such as calling imitates certain application scenarios, to reach the purpose of carrying out pressure test) etc.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than a kind of terminal batch upgrading method provided by the present invention and device are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a terminal batch upgrading method is characterized in that, comprising:
For distributing different Internet protocol IP addresses with the different virtual network interface card of each terminal communication;
The upgrading data packet that needs send is bound with each Microsoft Loopback Adapter respectively, or,
Send respectively to the terminal of communicating by letter with each Microsoft Loopback Adapter and to safeguard that the IP address revises order, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, the IP address of presetting after described each terminal modifications is inequality;
The IP addresses different by each Microsoft Loopback Adapter send to upgrading data packet each terminal simultaneously, so that each terminal can be finished upgrading after receiving upgrading data packet.
2. terminal batch upgrading method according to claim 1 is characterized in that, and is described for distributing different IP addresses to comprise with the different virtual network interface card of each terminal communication:
DynamicHost by operating system configuration is provided with protocol DHCP and is embodied as each Microsoft Loopback Adapter distributing IP address, finishes assigning process when the IP of each Microsoft Loopback Adapter address interconnect is inequality.
3. terminal batch upgrading method according to claim 1 is characterized in that, and is described for distributing different IP addresses to comprise with the different virtual network interface card of each terminal communication:
Each Microsoft Loopback Adapter is given in the mutually different IP of static allocation address.
4. terminal batch upgrading method according to claim 3 is characterized in that, the mutually different IP of described static allocation address comprises for each Microsoft Loopback Adapter:
From address pool, select to give each Microsoft Loopback Adapter with the same number of mutual unduplicated IP address assignment of Microsoft Loopback Adapter.
5. terminal batch upgrading method according to claim 1 is characterized in that, the described upgrading data packet that will need to send comprises with each Microsoft Loopback Adapter binding respectively:
Be respectively each Microsoft Loopback Adapter and create port numbers object inequality;
The packet that needs send is bound with the object of creating respectively.
6. a terminal batch upgrading device is characterized in that, comprising:
The IP address assignment unit is used to the different virtual network interface card of each terminal communication and distributes different Internet protocol IP addresses;
The binding unit, the upgrading data packet that is used for needs are sent is bound with each Microsoft Loopback Adapter respectively, or,
Revise command sending unit, be used for sending respectively and safeguard that the IP address revises order to the terminal of communicating by letter with each Microsoft Loopback Adapter, make each terminal that the IP address of safeguarding separately is revised as the IP address of presetting respectively, the IP address of presetting after described each terminal modifications is inequality;
The packet transmitting element is used for simultaneously upgrading data packet being sent to each terminal by the different IP address of each Microsoft Loopback Adapter, so that each terminal can be finished upgrading after receiving upgrading data packet.
7. terminal batch upgrading device according to claim 6 is characterized in that, described IP address assignment unit comprises:
The DHCP distribution module is used for by the DynamicHost that operating system disposes protocol DHCP being set and is embodied as each Microsoft Loopback Adapter distributing IP address, finishes assigning process when the IP of each Microsoft Loopback Adapter address interconnect is inequality.
8. terminal batch upgrading device according to claim 6 is characterized in that, described IP address assignment unit comprises:
The static allocation module is used for the mutually different IP of static allocation address and gives each Microsoft Loopback Adapter.
9. terminal batch upgrading device according to claim 8 is characterized in that, described static allocation module specifically is used for selecting to give each Microsoft Loopback Adapter with the same number of mutual unduplicated IP address assignment of Microsoft Loopback Adapter from address pool.
10. terminal batch upgrading device according to claim 6 is characterized in that, described binding unit comprises:
The Object Creation module is used to be respectively each Microsoft Loopback Adapter and creates port numbers object inequality;
Binding module, the packet that is used for needs are sent is bound with the object of creating respectively.
CN201180000870.3A 2011-06-23 2011-06-23 Method and device for terminal batch upgrading Active CN102273179B (en)

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
CN102273179A true CN102273179A (en) 2011-12-07
CN102273179B CN102273179B (en) 2014-01-22

Family

ID=45053615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180000870.3A Active CN102273179B (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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281295A (en) * 2013-04-22 2013-09-04 深圳市共进电子股份有限公司 System and method for realizing parallel upgrade of multiple terminals in same IP (Internet Protocol) local area network
CN103457645A (en) * 2013-08-22 2013-12-18 成都卫士通信息产业股份有限公司 Method for maintaining industrial device on posts through Bluetooth wireless technology
CN103685391A (en) * 2012-09-13 2014-03-26 北京大唐高鸿软件技术有限公司 Method for automatically updating terminal equipment using static network address
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
CN105763378A (en) * 2016-04-11 2016-07-13 北京卓越信通电子股份有限公司 Passenger information system-based remote network address distribution method
CN106559301A (en) * 2015-09-29 2017-04-05 中兴通讯股份有限公司 Embedded device batch upgrading method and system
CN106790733A (en) * 2015-11-25 2017-05-31 上海奕瑞光电子科技有限公司 The quick pairing of a kind of detector and X-ray shooting system and recover method
CN108683556A (en) * 2018-04-26 2018-10-19 Tcl王牌电器(惠州)有限公司 Detect the method, apparatus and computer storage media of network interface card functional status
CN110808870A (en) * 2019-09-30 2020-02-18 深圳市九洲电器有限公司 Router testing method and related product
CN111741102A (en) * 2020-06-18 2020-10-02 中国银行股份有限公司 Upgrading method and device for distributed micro-service application

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069836A1 (en) * 2004-09-09 2006-03-30 Samsung Electronics Co., Ltd. Communication system and method for upgrade of user terminal software and user terminal upgraded by the same
CN201332404Y (en) * 2009-01-22 2009-10-21 深圳华为通信技术有限公司 Network card upgrading system and equipment
CN101951369A (en) * 2010-09-14 2011-01-19 太仓市同维电子有限公司 Batch terminal upgrading method and system based on automatic discovery
CN101997707A (en) * 2009-08-11 2011-03-30 Tcl集团股份有限公司 System and method for upgrading intelligent terminals in batches

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324856C (en) * 2004-01-05 2007-07-04 联想(北京)有限公司 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
CN101552697B (en) * 2009-05-06 2011-04-13 深圳市普联技术有限公司 Network access apparatus upgrade system and network access apparatus upgrade method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069836A1 (en) * 2004-09-09 2006-03-30 Samsung Electronics Co., Ltd. Communication system and method for upgrade of user terminal software and user terminal upgraded by the same
CN201332404Y (en) * 2009-01-22 2009-10-21 深圳华为通信技术有限公司 Network card upgrading system and equipment
CN101997707A (en) * 2009-08-11 2011-03-30 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

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685391A (en) * 2012-09-13 2014-03-26 北京大唐高鸿软件技术有限公司 Method for automatically updating terminal equipment using static network address
CN103281295A (en) * 2013-04-22 2013-09-04 深圳市共进电子股份有限公司 System and method for realizing parallel upgrade of multiple terminals in same IP (Internet Protocol) local area network
CN103281295B (en) * 2013-04-22 2016-07-06 深圳市共进电子股份有限公司 Realize the system and method for multiple terminal parallel upgrades in same IP LAN
CN103457645A (en) * 2013-08-22 2013-12-18 成都卫士通信息产业股份有限公司 Method for maintaining industrial device on posts through Bluetooth wireless technology
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
WO2017054549A1 (en) * 2015-09-29 2017-04-06 中兴通讯股份有限公司 Device batch upgrading method and system
CN106790733A (en) * 2015-11-25 2017-05-31 上海奕瑞光电子科技有限公司 The quick pairing of a kind of detector and X-ray shooting system and recover method
CN105763378A (en) * 2016-04-11 2016-07-13 北京卓越信通电子股份有限公司 Passenger information system-based remote network address distribution method
CN105763378B (en) * 2016-04-11 2018-09-07 北京卓越信通电子股份有限公司 A kind of relayed surveillanced network address distribution method based on passenger information system
CN108683556A (en) * 2018-04-26 2018-10-19 Tcl王牌电器(惠州)有限公司 Detect the method, apparatus and computer storage media of network interface card functional status
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
CN111741102A (en) * 2020-06-18 2020-10-02 中国银行股份有限公司 Upgrading method and device for distributed micro-service application
CN111741102B (en) * 2020-06-18 2022-10-18 中国银行股份有限公司 Upgrading method and device for distributed micro-service application

Also Published As

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

Similar Documents

Publication Publication Date Title
CN102273179B (en) Method and device for terminal batch upgrading
US8407367B2 (en) Unified connector architecture
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN103051737A (en) Providing network capability over a converged interconnect fabric
CN100517284C (en) Method and device for external controlling DMA controller
CN104426680A (en) Data transmission method, device and system
CN104144096A (en) Virtual network layer construction method, device and system
CN102316043A (en) Port virtualization method, switch and communication system
CN103595949A (en) Video call transfer method, terminal and system
CN102404414A (en) Ethernet communication system and method based on multi-media card/security digital card (MMC/SD) interface
CN115357535A (en) Virtual serial port design method and device
CN101262371A (en) Configuration method and device of network devices
CN105630718A (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN103338391A (en) Method, device, and system for realizing connection of mobile terminal and television terminal
CN105682016A (en) Information service and intelligent media system and management method thereof
CN102710672A (en) Access method and access system of data card web-form control interface
CN102546840B (en) Method, device and system for binding virtual serial port and physical serial port
CN102821055A (en) Method for inter-board communication
CN203027289U (en) System for realizing serial communication among computer, host computer and slave computer
CN108307286B (en) Method and system for realizing communication between android devices based on NFC
CN103490913A (en) Pre-boot execution environment testing device, method and system
CN112367362B (en) Data processing method, device, equipment and computer storage medium
CN107168909A (en) Interconnecting device, telecommunication system, data transmission method and device
CN102891888B (en) A kind of data access method and relevant device, system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20181218

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210422

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right