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

Method and device for terminal batch upgrading Download PDF

Info

Publication number
CN102273179B
CN102273179B CN201180000870.3A CN201180000870A CN102273179B CN 102273179 B CN102273179 B CN 102273179B CN 201180000870 A CN201180000870 A CN 201180000870A CN 102273179 B CN102273179 B CN 102273179B
Authority
CN
China
Prior art keywords
terminal
address
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.)
Active
Application number
CN201180000870.3A
Other languages
Chinese (zh)
Other versions
CN102273179A (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)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (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 batch terminal upgrading method and device
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of batch terminal upgrading method and device.
Background technology
USB (USB, Universal Serial BUS) be that a kind of standard being connected with computer for external equipment connects, this USB (universal serial bus) has that speed is fast, plug and play, easily expansion, can use bus-powered, use the 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 embedded system, in the embedded devices such as smart mobile phone, digital camera, data card, mobile router.In these embedded systems, conventionally need to carry out transfer of data with the Ethernet interface of standard.But common Ethernet interface often needs independent ethernet controller and peripheral interface, increased thus system cost and increased equipment size, based on telecommunication network, drive interface specification (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.
In terminal based on RNDIS/CDC-ECM, integrated USB and RNDIS/CDC drive, PC (PC with terminal communication, Personal Computer) side is also provided with corresponding driving, wherein the windows of PC side series operating system carries RNDIS driving conventionally, RNDIS is the proprietary protocol of Microsoft, mostly be used in USB device, can be Windows operating system provides virtual Ethernet to connect.And other operating systems on as Linux common integrated CDC-ECM drive and make USB device provide virtual ethernet network interface to operating system.
The access mode of the current common supported web page of terminal based on RNDIS/CDC-ECM, when the terminal based on RNDIS/CDC-ECM is inserted after PC, can there is Microsoft Loopback Adapter in PC side, the IP address of this Microsoft Loopback Adapter is by the terminal distribution of inserting, user can be by 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, completes thus upgrade function.
The present inventor finds that prior art at least exists following defect: when a plurality of terminals based on RNDIS/CDC-ECM are inserted after PC, can there is in PC side the Microsoft Loopback Adapter of similar number, Internet protocol (the IP of these Microsoft Loopback Adapters, Internet Protocol) address is by corresponding terminal distribution, owing to being separate between terminal, and the IP address of distributing is normally distributed according to identical rule, cause thus the IP address conflict problem of a plurality of Microsoft Loopback Adapters, therefore can only upgrade to a station terminal by manual each, cause the inefficiency of upgrading, cannot meet the upgrading efficiency requiring when product line or storehouse are upgraded in enormous quantities.
Summary of the invention
The embodiment of the present invention provides a kind of batch terminal upgrading method and device, for realizing the batch upgrade of terminal, improves upgrading efficiency.
The batch terminal upgrading method that the embodiment of the present invention provides, comprising: for the different virtual network interface card from each terminal communication distributes different IP addresses; The upgrading data packet that needs are sent is bound with each Microsoft Loopback Adapter respectively, or, to the terminal of communicating by letter with each Microsoft Loopback Adapter, send respectively and safeguard the modification order of IP address, make each terminal that preset IP address is revised as respectively in the IP address of safeguarding separately, wherein, the preset IP address after each terminal modifications is not identical; The IP addresses different by each Microsoft Loopback Adapter send to upgrading data packet each terminal simultaneously, so that each terminal can complete upgrading after receiving upgrading data packet.
The terminal batch upgrading device that the embodiment of the present invention provides, comprising: IP address assignment unit, is used to from the different virtual network interface card of each terminal communication and distributes different IP addresses; Binding unit, for the upgrading data packet that needs are sent, bind with each Microsoft Loopback Adapter respectively, or, revise command sending unit, for sending respectively to the terminal of communicating by letter with each Microsoft Loopback Adapter, safeguard the modification order of IP address, make each terminal that preset IP address is revised as respectively in the IP address of safeguarding separately, wherein, the preset IP address after each terminal modifications is not identical; Packet Generation unit, for upgrading data packet is sent to each terminal by the different IP address of each Microsoft Loopback Adapter simultaneously, so that each terminal can complete upgrading after receiving upgrading data packet.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In the embodiment of the present invention, due to what distribute for each Microsoft Loopback Adapter, it is different IP addresses, can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs are sent is bound with each Microsoft Loopback Adapter respectively, or, transmission safeguards that it is different preset IP addresses that the modification order of IP address makes each terminal modifications, by these two kinds of modes, set up the approach of the One-to-one communication of a plurality of Microsoft Loopback Adapters and terminal simultaneously, then by the different IP address of each Microsoft Loopback Adapter, upgrade data is sent to each terminal simultaneously, the object of realization to terminal batch upgrading, improved upgrading efficiency.
Accompanying drawing explanation
The schematic diagram of a kind of batch terminal upgrading method that Fig. 1 provides for the embodiment of the present invention one;
The schematic diagram of a kind of batch terminal upgrading method that Fig. 2 provides for the embodiment of the present invention two;
The schematic diagram of a kind of batch terminal upgrading method that Fig. 3 provides for the embodiment of the present invention three;
The schematic diagram of a kind of terminal batch upgrading device that Fig. 4-a and Fig. 4-b provide for the embodiment of the present invention four.
Embodiment
The embodiment of the present invention provides a kind of batch terminal upgrading method and device, for realizing the batch upgrade of terminal, improves upgrading efficiency.
For making 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 present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiment, but not whole embodiment.Embodiment based in the present invention, the every other embodiment that those skilled in the art obtains, belongs to the scope of protection of the invention.
Embodiment mono-
The batch terminal upgrading method that the embodiment of the present invention provides, comprising: for the different virtual network interface card from each terminal communication distributes different IP addresses; The upgrading data packet that needs are sent is bound with each Microsoft Loopback Adapter respectively, or, to the terminal of communicating by letter with each Microsoft Loopback Adapter, send respectively and safeguard the modification order of IP address, make each terminal that preset IP address is revised as respectively in the IP address of safeguarding separately, wherein, the preset IP address after each terminal modifications is not identical; The IP addresses different by each Microsoft Loopback Adapter send to upgrading data packet each terminal simultaneously, so that each terminal can complete upgrading after receiving upgrading data packet.
Referring to Fig. 1, concrete steps can comprise:
101, for to distribute different IP addresses from the different virtual network interface card of each terminal communication;
In order to improve upgrading efficiency,, when a plurality of terminals are inserted after PC simultaneously, can there is in PC side the Microsoft Loopback Adapter of respective number in a plurality of terminals of need to upgrading on a PC in actual applications.According to prior art, by terminal, be the IP address conflict problem that a plurality of Microsoft Loopback Adapters may be caused in Microsoft Loopback Adapter distributing IP address, for example each terminal is that corresponding with it Microsoft Loopback Adapter has distributed same IP address.In embodiments of the present invention, terminal batch upgrading device is that a plurality of Microsoft Loopback Adapters on 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, upgrading data packet needs being sent is bound with each Microsoft Loopback Adapter respectively, or, to the terminal of communicating by letter with each Microsoft Loopback Adapter, send respectively and safeguard the modification order of IP address, make each terminal that preset IP address is revised as respectively in the IP address of safeguarding separately, the preset IP address after each terminal modifications is not identical;
In embodiments of the present invention, by upgrading data packet is safeguarded to the modification order of IP address with each Microsoft Loopback Adapter binding or transmission respectively, wherein, safeguard that it is preset IP address 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 preset IP address by IP address separately respectively, by these two kinds of mode terminal batch upgrading devices, set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously, to reach the object that sends upgrading data packet simultaneously, realize the batch upgrade of terminal, improve upgrading efficiency.
103, by the different IP address of each Microsoft Loopback Adapter, upgrading data packet is sent to each terminal simultaneously.
After solving Microsoft Loopback Adapter IP address conflict problem, by by the binding of upgrading data packet and each Microsoft Loopback Adapter or send and safeguard that IP address revises after order, terminal batch upgrading device can send upgrading data packet by the different IP addresses of each Microsoft Loopback Adapter simultaneously, each terminal just can complete upgrading after receiving upgrading data packet, realize terminal batch upgrading, improve upgrading efficiency.
In embodiments of the present invention, due to what distribute for each Microsoft Loopback Adapter, it is different IP addresses, can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs are sent is bound or is sent from each Microsoft Loopback Adapter respectively and safeguards that it is different preset IP addresses that the modification order of IP address makes each terminal modifications, by these two kinds of modes, set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously, then by the different IP address of each Microsoft Loopback Adapter, upgrade data is sent to each terminal simultaneously, the object of realization to terminal batch upgrading, improved upgrading efficiency.
With a detailed embodiment, introduce the batch terminal upgrading method of the embodiment of the present invention below, refer to embodiment bis-.
Embodiment bis-
The batch terminal upgrading method that the embodiment of the present invention provides, refer to Fig. 2, concrete steps can comprise: the DHCP 201, configuring by operating system is embodied as each Microsoft Loopback Adapter distributing IP address, until the IP address of each Microsoft Loopback Adapter is finished assigning process when different;
In embodiments of the present invention, a plurality of terminals of upgrading on a PC, when a plurality of terminals are inserted after PC simultaneously, can there is in PC side the Microsoft Loopback Adapter of respective number, communication link between Microsoft Loopback Adapter and terminal is established, the DynamicHost that terminal batch upgrading device configures by operating system arranges agreement (DHCP, Dynamic Host Configuration Protocol) be embodied as each Microsoft Loopback Adapter distributing IP address, first by a Microsoft Loopback Adapter, initiate DHCP request message, with that terminal request distributing IP address to communicating by letter with Microsoft Loopback Adapter, terminal is after receiving DHCP request message, can in secondary IP address pond, choose at random an IP address, for example from address pool 192.168.0.2~192.168.0.254, choose at random an IP address 192.168.0.6, then can send to terminal batch upgrading device by DHCP offer message, whether the IP address that then judgement receives is identical with the IP address of distributing to other Microsoft Loopback Adapter, if not, by the IP address assignment receiving, give this Microsoft Loopback Adapter, if so, send DHCP Decline message and inform that this IP address of terminal is assigned with, have conflict, again initiate DHCP request message, until distribute to the IP address of this Microsoft Loopback Adapter, do not conflict with the IP address of distributing to other Microsoft Loopback Adapter.According to the strategy of above-mentioned distributing IP address, to all Microsoft Loopback Adapter distributing IP addresses, when distributing behind IP address to all Microsoft Loopback Adapters, finish assigning process.
In embodiments of the present invention, suppose that the terminal number that a PC upgrades is simultaneously less than 16, and available IP number of addresses there are 253, so distribute an address conflict probability conventionally in 6%, if and after conflict, can again initiate IP and obtain request, therefore can settling IP address conflict problem.
202, upgrading data packet needs being sent is bound with each Microsoft Loopback Adapter respectively;
For example, because the common IP address of safeguarding of terminal is (being all 192.168.0.1) of acquiescence, according to the way of prior art, because destination address is all 192.168.0.1, can from routing table, choose first suitable route forwards, by IP layer, sending upgrading data packet can only send from one of them Microsoft Loopback Adapter, only have the terminal of communicating by letter with this Microsoft Loopback Adapter can receive upgrading data packet, cause other terminal can not receive upgrading data packet, in embodiments of the present invention, terminal batch upgrading device is realized by the bonding network card technique in network service, for example, step 201 has solved after the IP address conflict problem of each Microsoft Loopback Adapter, suppose Microsoft Loopback Adapter 1, 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, in terminal batch upgrading device, first create 3 IPEndPoint objects, for example, for Microsoft Loopback Adapter 1, create a following object:
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 of Microsoft Loopback Adapter 1 address binding to together with, terminal batch upgrading device can send upgrading data packet in the terminal of Microsoft Loopback Adapter 1 correspondence by mySocket1.The same operation of other Microsoft Loopback Adapter, the upgrading data packet that terminal batch upgrading device sends needs is thus bound with each Microsoft Loopback Adapter respectively, to set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously.
It should be noted that, in embodiments of the present invention, 202 can also be replaced by following steps:
To the terminal of communicating by letter with each Microsoft Loopback Adapter, send respectively and safeguard the modification order of IP address, make each terminal that preset IP address is revised as respectively in the IP address of safeguarding separately, the preset IP address after each terminal modifications is not identical;
In practical application scene, the terminal batch upgrading device of take is provided with n Microsoft Loopback Adapter and describes as example, first terminal batch upgrading device (supposes that IP address is: 192.168.0.2) to terminal 1, send one and safeguard the modification order of IP address by Microsoft Loopback Adapter 1, terminal 1 is revised and safeguarded that IP address (as: 192.168.0.1) is another preset IP address (for example selecting IP address from address pool is that 192.168.0.100 is as preset IP address), in the routing table of PC, increase a route, order can be as example below simultaneously:
Route?add?192.168.0.100?mask?255.255.255.255192.168.0.2
That is, if send the Microsoft Loopback Adapter 1 that upgrading data packet is just 192.168.0.2 from address to 192.168.0.100 and send out.
When by terminal 1 safeguard that IP address has been revised after, according to identical method, different preset IP addresses is revised as respectively in the IP address of safeguarding of a remaining n-1 terminal, and increases route with explanation in routing table.
203, the terminal of safeguarding IP address by the different IP address of each Microsoft Loopback Adapter to each sends upgrading data packet simultaneously.
In embodiments of the present invention, owing to having set up the man-to-man avenues of communication of Microsoft Loopback Adapter and terminal by network card binding, therefore when terminal batch upgrading device safeguards that to each terminal of IP address sends upgrading data packet simultaneously by the different IP addresses of each Microsoft Loopback Adapter respectively, can guarantee that each terminal can receive upgrading data packet, each terminal can complete upgrading after receiving upgrading data packet.For example, the interface providing by WinPcap, by searching each Microsoft Loopback Adapter and sending upgrading data packet by each Microsoft Loopback Adapter, in actual applications, can send 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 configuring by operating system is embodied as each Microsoft Loopback Adapter distributing IP address, therefore can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs are sent is bound with each Microsoft Loopback Adapter respectively, to set up the approach of the One-to-one communication of a plurality of Microsoft Loopback Adapters and terminal simultaneously, then the terminal of safeguarding IP address to each sends upgrading data packet, the object of realization to terminal batch upgrading, has improved upgrading efficiency.
With another detailed embodiment, introduce the batch terminal upgrading method of the embodiment of the present invention below, refer to embodiment tri-.
Embodiment tri-
The batch terminal upgrading method that the embodiment of the present invention provides, refers to 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 mode that terminal batch upgrading device can also adopt static allocation IP address is each different Microsoft Loopback Adapter distributing IP address.For example, when a plurality of terminals are inserted after PC simultaneously, can there is in PC side the Microsoft Loopback Adapter of respective number, terminal batch upgrading device can, for all Microsoft Loopback Adapter static allocation IP addresses, be chosen different fixed ip address and distribute to each Microsoft Loopback Adapter from address pool (as 192.168.0.2~192.168.0.254).
302, to the terminal of communicating by letter with each Microsoft Loopback Adapter, send respectively and safeguard the modification order of IP address, make each terminal that preset IP address is revised as respectively in the IP address of safeguarding separately, the preset IP address after each terminal modifications is not identical;
In practical application scene, the terminal batch upgrading device of take is provided with n Microsoft Loopback Adapter and describes as example, first terminal batch upgrading device (supposes that IP address is: 192.168.0.2) to terminal 1, send one and safeguard the modification order of IP address by Microsoft Loopback Adapter 1, terminal 1 is revised and safeguarded that IP address (as: 192.168.0.1) is another preset IP address (for example selecting IP address from address pool is that 192.168.0.100 is as preset IP address), in the routing table of PC, increase a route, order as follows simultaneously:
Route?add?192.168.0.100?mask?255.255.255.255192.168.0.2
That is, if send the Microsoft Loopback Adapter 1 that upgrading data packet is just 192.168.0.2 from address to 192.168.0.100 and send out.
When by terminal 1 safeguard that IP address has been revised after, according to identical method, different preset IP addresses is revised as respectively in the IP address of safeguarding of a remaining n-1 terminal, and increases route with explanation in routing table.
It should be noted that, in embodiments of the present invention, 302 can also be replaced by following steps:
Terminal batch upgrading device is realized by the bonding network card technique in network service, 301 have solved after the IP address conflict problem of each Microsoft Loopback Adapter, 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; In terminal batch upgrading device, first create 3 IPEndPoint objects, for example, for Microsoft Loopback Adapter 1, create a following object:
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 of Microsoft Loopback Adapter 1 address binding to together with, terminal batch upgrading device can send upgrading data packet in the terminal of Microsoft Loopback Adapter 1 correspondence by mySocket1.The same operation of other Microsoft Loopback Adapter, the upgrading data packet that terminal batch upgrading device sends needs is thus bound with each Microsoft Loopback Adapter respectively, to set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously.
303, by the different IP address of each Microsoft Loopback Adapter, to each terminal, send upgrading data packet simultaneously.
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 from each Microsoft Loopback Adapter, therefore when terminal batch upgrading device is when the different IP addresses by each Microsoft Loopback Adapter sends upgrading data packet to each terminal respectively simultaneously, can guarantee that each terminal can receive upgrading data packet, each terminal can complete upgrading after receiving upgrading data packet.
In embodiments of the present invention, the mode that adopts static allocation IP address due to terminal batch upgrading device is distributed different fixed ip address for each virtual terminal, therefore can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, when being after a Microsoft Loopback Adapter distributes IP address, by transmission, safeguard that the modification order of IP address makes the IP address of safeguarding of each terminal be revised as different preset IP addresses, then the different IP address of safeguarding to each terminal sends upgrading data packet, realize the object to terminal batch upgrading, improved upgrading efficiency.
In actual applications, the terminal batch upgrading device that the embodiment of the present invention provides specifically can be built in PC, by the integrated mode of software and hardware, realizes the processing to terminal batch upgrading.To introduce and the corresponding device of method of introducing in said method embodiment in embodiments of the present invention, specifically the manner of execution of each unit can be referring to said method embodiment, and the content of only describing correlation unit at this, is described as follows.
Embodiment tetra-
The terminal batch upgrading device that the embodiment of the present invention provides, comprising: IP address assignment unit, binding unit or modification command sending unit, Packet Generation unit.
Refer to Fig. 4-a and Fig. 4-b, terminal batch upgrading device 400, comprising: IP address assignment unit 401, and binding unit 402 or modification command sending unit 403, Packet Generation unit 404, wherein,
IP address assignment unit 401, is used to from 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)
DHCP distribution module, is embodied as each Microsoft Loopback Adapter distributing IP address for the DHCP configuring by operating system, until the IP address of each Microsoft Loopback Adapter is finished assigning process when different.
Manner of execution between each module can, referring to embodiment bis-, repeat no more herein.
Under another kind of application scenarios, IP address assignment unit 401 can comprise: (not shown in Figure 4)
Static allocation module, gives each Microsoft Loopback Adapter for the mutually different IP of static allocation address.Wherein, a kind of attainable mode is that static allocation module specifically for selecting with the same number of mutual unduplicated IP address assignment of Microsoft Loopback Adapter to each Microsoft Loopback Adapter from address pool.The concrete manner of execution of this module can repeat no more referring to embodiment tri-herein,
Binding unit 402, binds with each Microsoft Loopback Adapter respectively for the upgrading data packet that needs are sent;
Or, revise command sending unit 403, for sending respectively to the terminal of communicating by letter with each Microsoft Loopback Adapter, safeguard the modification order of IP address, make each terminal that preset IP address is revised as respectively in the IP address of safeguarding separately, the preset IP address after each terminal modifications is not identical;
In actual applications, binding unit 402 can comprise: (not shown in Figure 4)
Object Creation module, creates the not identical object of port numbers for being respectively each Microsoft Loopback Adapter;
Binding module, for packet that needs are sent respectively with the object binding creating.
The concrete manner of execution of Object Creation module and binding module can, referring to embodiment bis-, repeat no more herein.
Packet Generation unit 404, for upgrading data packet is sent to each terminal by the different IP address of each Microsoft Loopback Adapter simultaneously, so that each terminal can complete upgrading after receiving upgrading data packet.
In embodiments of the present invention, due to what distribute for each Microsoft Loopback Adapter, it is different IP addresses, can avoid the problem of IP address conflict between each Microsoft Loopback Adapter, after distributing IP address for each Microsoft Loopback Adapter, the upgrading data packet that needs are sent is bound with each Microsoft Loopback Adapter respectively, or, transmission safeguards that it is different preset IP addresses that the modification order of IP address makes each terminal modifications, by these two kinds of modes, set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously, then by the different IP address of each Microsoft Loopback Adapter, upgrade data is sent to each terminal simultaneously, the object of realization to terminal batch upgrading, improved upgrading efficiency.
With an actual application scenarios, introduce the terminal batch upgrading device in the embodiment of the present invention below, in a PC, by the mode of hardware and software, be integrated with the terminal batch upgrading device of the embodiment of the present invention, PC side includes a plurality of USB interface, for example 6, when there being 6 terminals to be inserted into after PC by USB, can go out corresponding 6 Microsoft Loopback Adapters in PC side, first IP address assignment unit can for 6 Microsoft Loopback Adapters distribute 6 mutually different IP addresses (be for example: 192.168.1.15, 192.168.1.56, 192.168.1.126, 192.168.1.19, 192.168.1.58), solve after the collision problem of Microsoft Loopback Adapter, the upgrading data packet that needs can be sent by binding unit (or sends respectively and safeguards the modification order of IP address to 6 terminals of communicating by letter with 6 Microsoft Loopback Adapters by revising command sending unit with 6 Microsoft Loopback Adapter bindings respectively, make 6 terminals that the IP address of safeguarding is separately revised as respectively to 6 different IP addresses and (is for example: 192.168.1.23, 192.168.1.25, 192.168.1.29, 192.168.1.30, 192.168.1.31), by any of this two kinds of modes, PC side has been set up the approach of a plurality of Microsoft Loopback Adapters and terminal One-to-one communication simultaneously, finally, Packet Generation unit, for upgrading data packet is sent to 6 terminals by 6 different IP addresses of Microsoft Loopback Adapter simultaneously, so that each terminal can complete upgrading after receiving upgrading data packet.
It should be noted that, terminal batch upgrading device in the embodiment of the present invention not only can be applied in the application scenarios of upgrading, can also be applied in other controls application and comprises that Bulk Call test (controls large batch of terminal simultaneously and carry out certain action, certain application scenarios is imitated in actions such as networking, calling, to reach the object of carrying out pressure test) etc.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Above a kind of batch terminal 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 present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. a batch terminal upgrading method, is characterized in that, comprising:
For the different virtual network interface card from each terminal communication distributes different Internet protocol IP addresses;
The upgrading data packet that needs are sent is bound with each Microsoft Loopback Adapter respectively;
The IP addresses different by each Microsoft Loopback Adapter send to upgrading data packet each terminal simultaneously, so that each terminal can complete upgrading after receiving upgrading data packet;
Wherein, the described upgrading data packet that needs are sent comprises with each Microsoft Loopback Adapter binding respectively:
Be respectively each Microsoft Loopback Adapter and create the not identical object of port numbers;
The packet that needs are sent respectively with the object binding creating.
2. batch terminal upgrading method according to claim 1, is characterized in that, described for to distribute different IP addresses to comprise from the different virtual network interface card of each terminal communication:
The DynamicHost configuring by operating system arranges protocol DHCP and is embodied as each Microsoft Loopback Adapter distributing IP address, until the IP address of each Microsoft Loopback Adapter is finished assigning process when different.
3. batch terminal upgrading method according to claim 1, is characterized in that, described for to distribute different IP addresses to comprise from 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. batch terminal upgrading method according to claim 3, is characterized in that, the mutually different IP of described static allocation address comprises to each Microsoft Loopback Adapter:
From address pool, select with the same number of mutual unduplicated IP address assignment of Microsoft Loopback Adapter to each Microsoft Loopback Adapter.
5. a terminal batch upgrading device, is characterized in that, comprising:
IP address assignment unit, is used to from the different virtual network interface card of each terminal communication and distributes different Internet protocol IP addresses;
Binding unit, binds with each Microsoft Loopback Adapter respectively for the upgrading data packet that needs are sent;
Packet Generation unit, for upgrading data packet is sent to each terminal by the different IP address of each Microsoft Loopback Adapter simultaneously, so that each terminal can complete upgrading after receiving upgrading data packet;
Wherein, described binding unit comprises:
Object Creation module, creates the not identical object of port numbers for being respectively each Microsoft Loopback Adapter;
Binding module, for packet that needs are sent respectively with the object binding creating.
6. terminal batch upgrading device according to claim 5, is characterized in that, described IP address assignment unit comprises:
DHCP distribution module, arranges protocol DHCP for the DynamicHost configuring by operating system and is embodied as each Microsoft Loopback Adapter distributing IP address, until the IP address of each Microsoft Loopback Adapter is finished assigning process when different.
7. terminal batch upgrading device according to claim 5, is characterized in that, described IP address assignment unit comprises:
Static allocation module, gives each Microsoft Loopback Adapter for the mutually different IP of static allocation address.
8. terminal batch upgrading device according to claim 7, is characterized in that, described static allocation module specifically for selecting with the same number of mutual unduplicated IP address assignment of Microsoft Loopback Adapter to each Microsoft Loopback Adapter from address pool.
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 CN102273179A (en) 2011-12-07
CN102273179B true 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)

Families Citing this family (12)

* 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
CN114422481B (en) * 2021-12-13 2024-03-15 科华数据股份有限公司 Network equipment management method and related device

Family Cites Families (7)

* 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
KR100663547B1 (en) * 2004-09-09 2007-01-02 삼성전자주식회사 Communication system and method for software upgrade of terminal and the terminal
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
CN101552697B (en) * 2009-05-06 2011-04-13 深圳市普联技术有限公司 Network access apparatus upgrade system and network access apparatus upgrade method
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

Also Published As

Publication number Publication date
WO2011150883A3 (en) 2012-05-24
CN102273179A (en) 2011-12-07
WO2011150883A2 (en) 2011-12-08

Similar Documents

Publication Publication Date Title
CN102273179B (en) Method and device for terminal batch upgrading
US8407367B2 (en) Unified connector architecture
CN103051737A (en) Providing network capability over a converged interconnect fabric
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
US8417848B2 (en) Method and apparatus for implementing multiple service processing functions
CN104426680A (en) Data transmission method, device and system
CN102143229A (en) Method and system for upgrading terminals in batches
CN104144096A (en) Virtual network layer construction method, device and system
CN111147391B (en) Data transmission method and system between DPDK user mode and linux kernel network protocol stack
CN102316043A (en) Port virtualization method, switch and communication system
CN201332404Y (en) Network card upgrading system and equipment
CN104363486B (en) A kind of the USB sharing methods and combination tv of combination tv
CN105515962A (en) Information processing method and smart home equipment
CN110213147A (en) A kind of cloud network interoperability methods, device, storage medium and terminal device
CN103326887A (en) Interface management method and system
CN105827496B (en) Manage the method and device of PE equipment
CN105246129A (en) Intelligent terminal networking method and device
CN102546840B (en) Method, device and system for binding virtual serial port and physical serial port
CN102821055A (en) Method for inter-board communication
CN109587749A (en) Data transmission method for uplink and system
CN203027289U (en) System for realizing serial communication among computer, host computer and slave computer
CN107168909A (en) Interconnecting device, telecommunication system, data transmission method and device
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN111245794B (en) Data transmission method and device
CN107666726A (en) A kind of electronic building blocks control method

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
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.

TR01 Transfer of patent right
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.