Background technology
For satisfying domestic consumer's the Internet access demand, a kind of home router easy to use comes into vogue gradually.This home router generally disposes a plurality of lan interfaces, and the address of these lan interfaces is in the same network segment, is used for for example making up LAN environment between the PC at the computing equipment that these lan interfaces connect.For saving the IP address resource, the privately owned address of the general employing of these lan interfaces is such as but not limited to the address of 192.168.1.1 one class.Simultaneously, this home router also possesses correlation function module and Wide Area Network interface that is used to realize gateway function, is used to LAN subscriber to provide the Internet to insert.In concrete running, the gateway that is provided with in the home router mails to the Internet with the packet that LAN subscriber mails to outside this LAN segment by Wide Area Network interface.
Check the state of home router and home router is configured for ease of the user, it is (typical that this home router generally also disposes a management address, this management address is 192.168.1.1), login the configuration webpage of this home router by the Web mode so that this home router is configured to allow the user.In the specific implementation process, the address that this management address and lan interfaces the adopt same network segment that often exists together is so that the user can login home router by being connected to lan interfaces.For simplifying production process and being user-friendly to, the home router that same manufacturer produces often disposes identical management address.
The home router that possesses function mentioned above can be referring to for example TP-LINK
The TD-W8910G series home router that company produces.
As everyone knows, the network equipment in use often need be upgraded.For the distributors of home router, stock upgraded often runs into a lot of difficulties.For example, distributors often needs to login one by one the administration interface of every home router, operates step by step to use upgrade file that this home router is upgraded again.For example, the staff of distributors at first needs to login the administration interface of home router, fetches by the corresponding chain on the click administration interface and jumps to the upgrading interface, specifies the upgrade file position then, indicates home router to begin upgrading at last.
For improving updating speed, some home router manufacturers have developed a kind of AKU.Not only comprise the required various files of upgrading in this AKU, also comprise the instruction of some operations necessary, these operations are to be adopted the Web mode to login the administration interface of home router and home router upgraded to need the sequence of operations instruction of sending in this process.This AKU can adopt the form of executable file.In escalation process, operating personnel for example carry out this AKU on the PC at an operating terminal that is connected on the home router lan interfaces.In the implementation of this AKU, at first will send the operation of its administration interface of login to home router, send the step that jumps to the upgrading interface then, it again the step of carrying out the upgrade file position, begin at last to transmit the required various files of upgrading, utilize these files to finish the upgrading of self by home router to home router.
Yet aforesaid way can only be upgraded to home router by platform, and can't many home router be linked together to carry out batch upgrade by using network interconnection device such as switch or router etc.This is because the management address of these home router is identical, and using network interconnection device such as switch or router to connect many home router simultaneously must lead to a conflict.For example, when obtaining the MAC Address of home router management address correspondence, a plurality of different MAC Address will be returned simultaneously by the ARP agreement.
Therefore, need a kind of home router upgrading scheme, can realize batch upgrade, effectively to overcome the above-mentioned defective that exists in the prior art.
Summary of the invention
The technical problem to be solved in the present invention is, can't provide a kind of network access equipment upgrade-system and network access equipment upgrade method to many home router to carry out defective in batches at existing upgrading scheme.
The technical solution adopted for the present invention to solve the technical problems is:
Construct a kind of network access equipment upgrade-system, comprising:
Upgrade console is used to send AKU;
Forwarding unit comprises:
The upgrade console interface is used to connect upgrade console, to receive AKU;
Adhere to a plurality of network access equipment interfaces of different VLAN separately;
The master control module is used for:
Extract the destination address of AKU, and determine the purpose VLAN of this AKU, to determine to belong to the purpose network access equipment interface of this purpose VLAN according to this destination address;
Use the address of this purpose network access equipment interface and predefined destination address that the source address and the destination address of this AKU upgraded, transmit AKU after upgrading by this purpose network access equipment interface then.
In network access equipment upgrade-system provided by the invention, described purpose network access equipment interface is used for when entering connection status, gives notice to described master control module;
Described master control module is used for reporting the purpose network access equipment interface that enters connection status to described upgrade console by described upgrade console interface;
Described upgrade console is used for sending described AKU with purpose network access equipment interface corresponding virtual address as destination address after knowing that described purpose network access equipment interface enters described connection status.
In network access equipment upgrade-system provided by the invention,
Store the port address table of comparisons in the described upgrade console, wherein record each network access equipment interface corresponding virtual address of described forwarding unit;
Described upgrade console is used for after knowing that described purpose network access equipment interface enters described connection status, and based on the port address table of comparisons, the virtual address of determining this purpose network access equipment interface is with the destination address as described AKU.
In network access equipment upgrade-system provided by the invention, store virtual address table in the described master control module, wherein record the VLAN of each virtual address correspondence;
Described master control module is used for determining described purpose VLAN based on virtual address table according to the destination address of described AKU.
In network access equipment upgrade-system provided by the invention, store VLAN mapping table in the described master control module, wherein record the affiliated VLAN of each network access equipment interface;
Described master control module is used for determining described purpose network access equipment interface based on VLAN mapping table according to described purpose VLAN.
In network access equipment upgrade-system provided by the invention, store ATT in the described master control module, wherein record the address of each network access equipment interface;
Described master control module is used for determining based on ATT the address of described purpose network access equipment interface.
The present invention also provides a kind of network access equipment upgrade method, comprising:
S1, upgrade console are sent AKU;
S2, forwarding unit extract the destination address of AKU, and determine the purpose VLAN of this AKU according to this destination address, to determine to belong to the purpose network access equipment interface of this purpose VLAN;
S3, forwarding unit use the address of this purpose network access equipment interface and predefined destination address that the source address and the destination address of this AKU upgraded, and transmit AKU after upgrading by this purpose network access equipment interface then.
In network access equipment upgrade method provided by the invention, before described step S1, described method also comprises:
S11, described forwarding unit report the purpose network access equipment interface that enters connection status to described upgrade console when knowing that described purpose network access equipment interface enters connection status;
Described step S1 comprises that further described upgrade console is sent described AKU with purpose network access equipment interface corresponding virtual address as destination address after knowing that described purpose network access equipment interface enters described connection status.
In network access equipment upgrade method provided by the invention, store the port address table of comparisons in the described upgrade console, wherein record each network access equipment interface corresponding virtual address of described forwarding unit;
In described step S1, described upgrade console is after knowing that described purpose network access equipment interface enters described connection status, based on the port address table of comparisons, determine the virtual address of this purpose network access equipment interface, send described AKU with this virtual address as destination address again.
In network access equipment upgrade method provided by the invention, store virtual address table in the described master control module, wherein record the VLAN of each virtual address correspondence;
In described step S3, described master control module is determined described purpose VLAN based on virtual address table according to the destination address of described AKU.
Implement technical scheme of the present invention, has following beneficial effect: by dividing VLAN and simultaneously the source address and the destination address of upgrade file bag being changed, technical scheme provided by the invention can be carried out batch upgrade to the network access equipment with identical management address, therefore can improve the upgrading efficient of the network access equipment of home router one class greatly.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 is the structural representation according to the network access equipment upgrade-system 100 of many network access equipments to be upgraded of connection of a preferred embodiment of the present invention.As shown in Figure 1, network access equipment upgrade-system 100 comprises forwarding unit 102 and upgrade console 104.In addition, also show the network access equipment 106~112 a plurality of to be upgraded that communicates to connect with forwarding unit 102 among Fig. 1, this network access equipment 106~112 to be upgraded can be a home router mentioned above, perhaps comprises other routers of above-mentioned home router function.A plurality of network access equipments to be upgraded 106~112 are connected with the network access equipment interface communication of forwarding unit 102 by its lan interfaces separately, and forwarding unit 102 communicates to connect by its upgrade console interface and upgrade console 104.
Upgrade console 104 is used to send AKU, and forwarding unit 102 is used to receive this AKU and it is carried out source address and destination address conversion, and the AKU after will changing then is transmitted to network access equipment 106~112 to be upgraded.At first come forwarding unit 102 provided by the invention is described in detail below in conjunction with Fig. 2.
Fig. 2 is the logical construction schematic diagram according to the forwarding unit 200 of a preferred embodiment of the present invention.As shown in Figure 2, forwarding unit 200 comprises a plurality of network access equipment interfaces 202~208, upgrade console interface 218 and master control module 220.
Network access equipment interface 202~208 adheres to different VLAN each other separately, is used to connect the network access equipment to be upgraded lan interfaces of (home router for example mentioned above perhaps comprises other routers of above-mentioned home router function).For realizing communicating to connect, the address of the address of network access equipment interface 202~208 and network access equipment lan interfaces to be upgraded the exist together same network segment, for example the 192.168.1.0 network segment.As indicated above, the same network segment because the management address of the address of network access equipment lan interfaces to be upgraded and this network access equipment to be upgraded exists together, so the management address of the address of network access equipment interface 202~208 and the network access equipment to be upgraded same network segment that also exists together.In the specific implementation process, for simplifying the operation, network access equipment interface 202~208 also can adopt identical address.
Although the network access equipment to be upgraded that network access equipment interface 202~208 is connected has identical management address, but because network access equipment interface 202~208 adheres to different VLAN each other separately, therefore the network access equipment to be upgraded that is connected adheres to different VLAN each other separately, therefore can not clash between these network access equipments to be upgraded.
Although it should be noted that only to show network access equipment interface 202~208 these 4 interfaces among Fig. 2,, those skilled in the art should be understood that in the specific implementation process quantity of network access equipment interface can be set according to concrete needs.
Whether network access equipment interface 202~208 correspondences comprise detection module 210~216, be used to detect the network access equipment to be upgraded that belonging network access device interface connected and power on.When the network access equipment to be upgraded that connects detecting powers on, show that promptly corresponding network access equipment interface enters connection status, sends the notice that powers on thus.
Upgrade console interface 218 is used to connect upgrade console.Upgrade console interface 218 possesses a plurality of virtual addresses, and the VLAN under these virtual addresses and the network access equipment interface 202~208 is corresponding one by one.In the specific implementation process, these virtual addresses adhere to the different network segments separately with the address of network access equipment interface 202~208, and for example, these virtual addresses can be at the 192.168.10.0 network segment.
Store virtual address table, VLAN mapping table and ATT in the master control module 220.
Store the VLAN sign of each virtual address correspondence in the virtual address table, for example, virtual address table can adopt following structure:
Virtual address table |
The VLAN sign |
|
|
Table 1
Record the corresponding relation of network access equipment interface and affiliated VLAN in the VLAN mapping table, for example VLAN mapping table can adopt following structure:
The VLAN sign |
The network access equipment interface identifier |
|
|
Table 2
Record the address of each network access equipment interface in the ATT, for example ATT can adopt following structure:
The network access equipment interface identifier |
The address |
|
|
Table 3
In the specific implementation process, the also configurable management address of upgrade console interface.Based on this management address, the user can adopt the Web mode to login the administration interface of forwarding unit, so that import the management address (being predefined destination address) of network access equipment to be upgraded and the parameters such as address of upgrade console.
In the specific implementation process, forwarding unit can adopt such as but not limited to network forwarding equipments such as existing switch (possessing the network layer forwarding capability), routers and realize that upgrade console can adopt such as but not limited to common computer and realize.
The effect of related network access device interface, upgrade console interface and master control module will be described in detail in Fig. 3.
Fig. 3 is the flow chart according to the network access equipment upgrade method 300 of a preferred embodiment of the present invention.As shown in Figure 3, method 300 starts from step 302, and a network access equipment to be upgraded powers on.
Subsequently, at next step 304, the detection module on the forwarding unit in the network access equipment interface of this network access equipment to be upgraded of connection detects this network access equipment to be upgraded and powers on, and sends the notice that powers on to the master control module.The master control module reports the sign of this network access equipment interface to upgrade console by the upgrade console interface.
Subsequently, at next step 306, after receiving the notice that powers on, upgrade console is sent AKU.In the specific implementation process, store the port address table of comparisons in the upgrade console, wherein store each network access equipment interface corresponding virtual address on the forwarding unit, for example the port address table of comparisons can adopt following structure:
The network access equipment interface identifier |
Virtual address |
|
|
Table 4
After the network access equipment interface of learning the network access equipment that is used to Connect Power, upgrade console is searched the corresponding virtual address according to the sign of this network access equipment interface in the port address table of comparisons.Subsequently, upgrade console is sent AKU, and the destination address of this AKU is the virtual address that finds.
Subsequently, at next step 308, after the updating apparatus interface of forwarding unit was received AKU, the master control module was searched corresponding VLAN sign, the i.e. sign of purpose VLAN according to this AKU destination address (being virtual address) in virtual address table.
Subsequently, at next step 310, the master control module of forwarding unit is identified at according to the VLAN that finds and searches corresponding network access equipment interface, i.e. purpose network access equipment interface in the VLAN mapping table.
Subsequently, at next step 312, the master control module of forwarding unit is searched this network access equipment interface according to the network access equipment interface that finds in ATT address.
Subsequently, next 314, the master control module of forwarding unit is upgraded the destination address and the source address of AKU according to the management address (being predefined destination address) of this network access equipment to be upgraded and the address of network access equipment interface, AKU after will upgrading then is transmitted to corresponding network access equipment interface, thus, this network access equipment interface just can send AKU to continuous network access equipment to be upgraded.
At last, method 300 ends at step 316.
As indicated above, network access equipment to be upgraded, will be upgraded according to the upgrade file that the operational order that wherein comprises reads in the AKU after receiving above-mentioned AKU automatically such as but not limited to home router mentioned above.
In the specific implementation process, upgrade console can be before sending AKU, send the version querying request to network access equipment to be upgraded, inquiring about the version information of this network access equipment configuration, and whether treat the upgrade of network access device according to this version information decision and upgrade.Below just this process is described in detail in conjunction with Fig. 4.
Fig. 4 is the flow chart according to the version information querying method 400 of a preferred embodiment of the present invention.As shown in Figure 4, method 400 starts from step 402.
Subsequently, at next step 404, upgrade console is sent the version querying request package to the upgrade console interface of forwarding unit, and this version querying bag is transmitted to the network access equipment to be upgraded that powers on through forwarding unit.The repeating process of the AKU of describing among the repeating process of this version querying bag and Fig. 3 is basic identical, therefore repeats no more herein.
Subsequently, at next step 406, the network access equipment interface of forwarding unit receives the version information bag that corresponding network access equipment to be upgraded returns.Because this version information bag is to the replying of version querying request, so the source address of this version information bag is the management address of network access equipment to be upgraded, and destination address is the address of above-mentioned network access equipment interface.
Subsequently, at next step 408, the master control module of forwarding unit is determined its corresponding virtual address according to the VLAN under this network access equipment interface by virtual address table, upgrade according to the address of this virtual address and upgrade console source address and the destination address to the version information bag then, the version information bag after will upgrading then is transmitted to the upgrade console interface.
Subsequently, at next step 410, the upgrade console interface of forwarding unit is transmitted to upgrade console with this version information bag.
Subsequently, at next step 412, upgrade console judges whether and need upgrade to the equipment to be upgraded that powers on according to this version information bag, if, then forward step 414 to, send AKU.The repeating process of relevant AKU has been done in Fig. 3 clearly and has been described, and therefore repeats no more herein.Should be understood that and also comprise the upgrade command that indication network access equipment to be upgraded carries out updating operation in this upgrade file.If not, then method 400 forwards step 416 to.
At last, method 400 ends at step 416.
It should be noted that in the specific implementation process, but version information inquiry be operating as a selection operation.
As indicated above, network access equipment to be upgraded after receiving above-mentioned AKU, will carry out updating operation such as but not limited to home router mentioned above according to the upgrade file that the operational order that wherein comprises reads in the AKU automatically.In the specific implementation process, network access equipment to be upgraded generally can will reset automatically after upgrading is finished, and after this, the update of versions of network access equipment to be upgraded is to up-to-date.Thus, in conjunction with the method for describing among Fig. 4 400, will show that this network access equipment to be upgraded has been updated to latest edition in the version information bag that network access equipment to be upgraded returns when replying the version querying bag that upgrade console sends.In this case, upgrade console can judge automatically that after judging this equipment to be upgraded need not upgrading, so escalation process finishes.
It should be noted that among method 300 and method 400 that Fig. 3 and Fig. 4 describe, not only need the destination address of AKU that upgrade console is sent to be converted to the address of network access equipment to be upgraded, also need the source address of this AKU is changed.This be because, some (not all) network access equipment to be upgraded is as home router commonly used, it not only possesses lan interfaces, also possesses Wide Area Network interface.The destination address of receiving for lan interfaces is the packet of the network segment under this lan interfaces not, replys and will be transmitted by Wide Area Network interface by the gateway that this network access equipment to be upgraded is handed to himself what this packet was made.Thus, upgrade console can't receive any response that network access equipment to be upgraded is made.Therefore, need in this case the source address of AKU is changed.For other network access equipments that do not possess this characteristic (as switch, the branch that does not have Wide Area Network interface and lan interfaces), in this case, though there is no need source address is changed, this conversion plan also is suitable for this class network access equipment.
Can be seen from the foregoing, described network access equipment to be upgraded is not limited only to home router mentioned above.Those skilled in the art is understood that, every possess one the management (IP) address, and can treat network access equipments such as switch that the upgrade of network access device upgrades, router, modulator-demodulator by this management address, all can use technical scheme of the present invention.In addition, in the specific implementation process,, not only can adopt the WEB mode that this equipment to be upgraded is upgraded, disposed based on this management address, also can adopt other modes such as TFTP, TELNET that it is upgraded, disposes, as long as network access equipment self is supported these operations.
As mentioned, network access equipment upgrade-system provided by the invention and network access equipment upgrade method can be upgraded to many network access equipments to be upgraded simultaneously, and escalation process finishes automatically, need not operating personnel and participate in.This shows that technical scheme provided by the invention can improve the upgrading efficient of network access equipment to be upgraded greatly, reduce manual operation.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.