CN105357289A - Configuration method of router and generation method and system of software mirror image document - Google Patents

Configuration method of router and generation method and system of software mirror image document Download PDF

Info

Publication number
CN105357289A
CN105357289A CN201510697987.1A CN201510697987A CN105357289A CN 105357289 A CN105357289 A CN 105357289A CN 201510697987 A CN201510697987 A CN 201510697987A CN 105357289 A CN105357289 A CN 105357289A
Authority
CN
China
Prior art keywords
router
image file
parameter information
software image
information
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
CN201510697987.1A
Other languages
Chinese (zh)
Other versions
CN105357289B (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510697987.1A priority Critical patent/CN105357289B/en
Publication of CN105357289A publication Critical patent/CN105357289A/en
Application granted granted Critical
Publication of CN105357289B publication Critical patent/CN105357289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a configuration method of a router and a generation method and system of a software mirror image document. The configuration method of the router comprises the steps of obtaining parameter information of the router from a server, wherein the parameter information comprises product type information or hardware version information; writing the obtained parameter information into a parameter storage unit of the router; obtaining a software mirror image document of the router; and configuring the router based on the obtained software mirror image document and the obtained parameter information. In the configuration method of the router, same or different routers are set by aiming at different hardware, only one software mirror image document has to be generated, and different parameter information is written into the parameter storage unit of the router, so that testing time is saved and efficiency is increased.

Description

The collocation method of router, the generation method and system of software image file
Technical field
The present invention relates to configuration of routers technical field, particularly relate to the generation method and system of a kind of collocation method of router, software image file.
Background technology
In modern society, increasing occasion can use router.And in router product definition, often can meet a few money router hardware PCB just the same, software requirement is also the same, some differences on final for no other reason than that outward appearance or shell and cause name of product different.
Software Mirroring for this situation is issued and is produced, and current way in makefile, defines different product types generate different Software Mirrorings to compile.The Software Mirroring of respective product type is used to produce when producing.
This way is increasing along with model on the one hand, needs the product software mirror image simultaneously compiling generation also can increase gradually, causes each compiling to send out the overlong time of version.And be not same mirror image due to what compile out after all, will carry out some basic regression tests for each mirror image, so compare waste test resource, efficiency is low at every turn, is unfavorable for the issue of product.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide the generation method and system of a kind of collocation method of router, software image file, the problems such as the configuration that is low and router of the formation efficiency for solving image file in prior art software is complicated.
For achieving the above object and other relevant objects, the invention provides a kind of collocation method of router, comprising: the parameter information obtaining described router from server, described parameter information comprises: product type information or hardware revision information; The described parameter information got is write in the parameter storage unit of described router; Obtain the software image file of described router; According to the described software image file got and described parameter information, described router is configured.
In one embodiment of the invention, the router that multiple hardware configuration is identical obtains same software image file.
In one embodiment of the invention, the described step obtaining the parameter information of described router from server comprises: in described router uboot logic, increase by an interface, described interface comprises the mac address information of described router; Described router obtains the parameter information of described router from described server by described interface.In one embodiment of the invention, the IP address of described server is: 192.168.1.3.
The present invention also provides a kind of generation method of software image file, and the generation method of described software image file comprises the following steps: provide a server; Described server configures multiple parameter information with the router that same hardware is arranged; Described parameter information comprises: product type information and hardware revision information; There is provided corresponding to described multiple software image file with the router that same hardware is arranged; According to the MAC Address of router, obtain the parameter information of this router and corresponding software image file from described server.
In one embodiment of the invention, the IP address of described server is: 192.168.1.3.
In one embodiment of the invention, in the uboot logic of described router, increase by an interface, described interface comprises the mac address information of described router; Described router obtains the parameter information of described router from described server by described interface.
The present invention also provides a kind of system generating software image file, the system of described generation software image file comprises: server, for providing the parameter information of software image file and router, described parameter information comprises product type information or hardware revision information; Router, for obtaining corresponding software image file and parameter information from described server.
In one embodiment of the invention, the IP address of described server is: 192.168.1.3.
In one embodiment of the invention, described router comprises: an interface, for the information that gets parms from described server; One parameter information memory cell, for storing the described parameter information got.
As mentioned above, the collocation method of router of the present invention, the generation method and system of software image file, have following beneficial effect: for the router that hardware configuration is identical, the software image file that only issue one is identical; And in the parameter storage unit of router, store corresponding parameter information, if product type information is with information such as hardware revision information.Like this, when configuration of routers, just reach the object distinguishing different product; And after only issuing same software image file, save the test process to multiple software image file, thus substantially increase the formation efficiency of software image file.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of the collocation method of router of the present invention.
Fig. 2 is shown as the schematic flow sheet of the generation method of software image file of the present invention.
Fig. 3 is shown as the structural representation that the present invention generates the system of software image file.
Element numbers explanation
100 servers
200 routers
201 interfaces
202 parameter storage unit
S11 ~ S14 step
S21 ~ S24 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, the invention provides a kind of collocation method of router, the collocation method of described router comprises the following steps:
Step S11, obtains the parameter information of described router from server, and described parameter information comprises: product type information or hardware revision information;
Step S12, writes in the parameter storage unit of described router by the described parameter information got;
In a particular embodiment, one piece of subregion can be divided in the router, if the subregion of 1K is with the configuration of store discrepancy (as product type, hardware version numbers).These differentiation be configured in production time be configured in router by certain mechanism, thus reach and distinguish the object of different product.When needing to use product type in page display and other code logic, the place of hardware version numbers, calling interface reads corresponding information from subregion.
Step S13, obtains the software image file of described router;
Step S14, is configured described router according to the described software image file got and described parameter information.
In the present embodiment, the router that multiple hardware configuration is identical obtains same software image file.That is, when the hardware PCB of multiple router is just the same, obtain same software image file from server, like this for multiple products that hardware setting is identical, only need issue software image file.And different parameter informations can correspondingly from server respectively get, and be stored in the parameter storage unit of each router.
In a particular embodiment, the described step obtaining the parameter information of described router from server comprises:
In described router uboot logic, increase by an interface, described interface comprises the mac address information of described router;
Described router obtains the parameter information of described router from described server by described interface.
In the present embodiment, the IP address of described server is: 192.168.1.3.
Particularly, dispose the server of a 192.168.1.3, and configure initial MAC section to the product type information and the hardware revision information that terminate MAC section, and the request of router can be responded: corresponding product type and hardware version numbers can be got according to router mac address.
And by increasing the mode of an interface in router uboot logic, the same Software Mirroring that the different product model router of same hardware plan is used can be guaranteed.The setting of environment, can write the information of these differentiation (product type and hardware version numbers) in router particular zones when producing very easily by the adjustment of router uboot logic and when producing.
In the collocation method of the router of the present embodiment, due to a software image file only need be issued, thus also greatly save the testing time of software image file, thus improve the formation efficiency of software image file, also improve the allocative efficiency of router simultaneously.
Correspondingly, the present invention also provides a kind of generation method of software image file, and with reference to figure 2, the generation method of described software image file comprises the following steps:
Step S21, provides a server; The IP address of described server is: 192.168.1.3.
Step S22, described server configures multiple parameter information with the router that same hardware is arranged; Described parameter information comprises: product type information and hardware revision information;
Step S23, provides corresponding to described multiple software image file with the router that same hardware is arranged;
Step S24, according to the MAC Address of router, obtains the parameter information of this router and corresponding software image file from described server.
In the present embodiment, in the uboot logic of described router, increase by an interface, described interface comprises the mac address information of described router; Described router obtains the parameter information of described router from described server by described interface.
Correspondingly, the present invention also provides a kind of system generating software image file, and with reference to figure 3, the system of described generation software image file comprises:
Server 100 is for providing the parameter information of software image file and router, and described parameter information comprises product type information or hardware revision information; In the present embodiment, the IP address of described server is: 192.168.1.3.
Router two 00 for obtaining corresponding software image file and parameter information from described server.
In the present embodiment, described router comprises:
One interface 201 is for the information that gets parms from described server;
One parameter information memory cell 202, for storing the described parameter information got.
Like this, router obtains the parameter information of corresponding router from server 100 by interface 201, and the parameter information got is write to parameter information memory cell 202.In addition, after router two 00 gets corresponding software image file from server, then the configuration that the parameter information got can complete routers is combined.
In the present embodiment, have router that same hardware arranges from server get for same software image file.That is, identical for hardware setting, but when the information such as product type are different, only need generation software image file, thus substantially increase the efficiency generating software image file.
In sum, in the collocation method of router of the present invention, only need issue Software Mirroring for multiple product, test job amount also only needs once; There is provided simultaneously and can easily relevant difference alienation information be written in router specified partition when producing by the mode of configuration server.So just greatly save the testing time, thus improve allocative efficiency.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. a collocation method for router, is characterized in that, the collocation method of described router comprises the following steps:
From server, obtain the parameter information of described router, described parameter information comprises: product type information or hardware revision information;
The described parameter information got is write in the parameter storage unit of described router;
Obtain the software image file of described router;
According to the described software image file got and described parameter information, described router is configured.
2. the collocation method of router according to claim 1, is characterized in that: the router that multiple hardware configuration is identical obtains same software image file.
3. the collocation method of router according to claim 1, is characterized in that: the described step obtaining the parameter information of described router from server comprises:
In described router uboot logic, increase by an interface, described interface comprises the mac address information of described router;
Described router obtains the parameter information of described router from described server by described interface.
4. the collocation method of router according to claim 1, is characterized in that: the IP address of described server is: 192.168.1.3.
5. a generation method for software image file, is characterized in that: the generation method of software image file comprises the following steps:
One server is provided;
Described server configures multiple parameter information with the router that same hardware is arranged; Described parameter information comprises: product type information and hardware revision information;
There is provided corresponding to described multiple software image file with the router that same hardware is arranged;
According to the MAC Address of router, obtain the parameter information of this router and corresponding software image file from described server.
6. the generation method of software image file according to claim 5, is characterized in that: the IP address of described server is: 192.168.1.3.
7. the generation method of software image file according to claim 5, is characterized in that: in the uboot logic of described router, increase by an interface, described interface comprises the mac address information of described router; Described router obtains the parameter information of described router from described server by described interface.
8. generate a system for software image file, it is characterized in that, the system of described generation software image file comprises:
Server, for providing the parameter information of software image file and router, described parameter information comprises product type information or hardware revision information;
Router, for obtaining corresponding software image file and parameter information from described server.
9. the system of generation software image file according to claim 8, is characterized in that: the IP address of described server is: 192.168.1.3.
10. the system of generation software image file according to claim 8, is characterized in that, described router comprises:
One interface, for the information that gets parms from described server;
One parameter information memory cell, for storing the described parameter information got.
CN201510697987.1A 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system Active CN105357289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510697987.1A CN105357289B (en) 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510697987.1A CN105357289B (en) 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system

Publications (2)

Publication Number Publication Date
CN105357289A true CN105357289A (en) 2016-02-24
CN105357289B CN105357289B (en) 2019-10-22

Family

ID=55333148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510697987.1A Active CN105357289B (en) 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system

Country Status (1)

Country Link
CN (1) CN105357289B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161146A (en) * 2016-08-24 2016-11-23 上海斐讯数据通信技术有限公司 A kind of route system antitheft startup method and device, router
CN106713004A (en) * 2016-07-12 2017-05-24 腾讯科技(深圳)有限公司 Router adaptation method and system
CN107241412A (en) * 2017-06-09 2017-10-10 上海斐讯数据通信技术有限公司 A kind of radio reception device MAC Address store method and system
CN108664276A (en) * 2018-05-15 2018-10-16 福建升腾资讯有限公司 A method of hardware information is configured by text

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788998A (en) * 2009-12-03 2010-07-28 福建星网锐捷网络有限公司 Processing method for mapping file, device and network equipment
CN102238140A (en) * 2010-04-27 2011-11-09 鸿富锦精密工业(深圳)有限公司 System and method for sharing server by clients
CN102571446A (en) * 2012-02-08 2012-07-11 华为技术有限公司 Method, device and system for upgrading network device
EP2814208A1 (en) * 2013-06-14 2014-12-17 Fujitsu Limited Program, apparatus, and method for creating configuration requirements

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788998A (en) * 2009-12-03 2010-07-28 福建星网锐捷网络有限公司 Processing method for mapping file, device and network equipment
CN102238140A (en) * 2010-04-27 2011-11-09 鸿富锦精密工业(深圳)有限公司 System and method for sharing server by clients
CN102571446A (en) * 2012-02-08 2012-07-11 华为技术有限公司 Method, device and system for upgrading network device
EP2814208A1 (en) * 2013-06-14 2014-12-17 Fujitsu Limited Program, apparatus, and method for creating configuration requirements

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713004A (en) * 2016-07-12 2017-05-24 腾讯科技(深圳)有限公司 Router adaptation method and system
CN106161146A (en) * 2016-08-24 2016-11-23 上海斐讯数据通信技术有限公司 A kind of route system antitheft startup method and device, router
CN107241412A (en) * 2017-06-09 2017-10-10 上海斐讯数据通信技术有限公司 A kind of radio reception device MAC Address store method and system
CN108664276A (en) * 2018-05-15 2018-10-16 福建升腾资讯有限公司 A method of hardware information is configured by text

Also Published As

Publication number Publication date
CN105357289B (en) 2019-10-22

Similar Documents

Publication Publication Date Title
CN112214330A (en) Method and device for deploying master nodes in cluster and computer-readable storage medium
CN105357289A (en) Configuration method of router and generation method and system of software mirror image document
CN109714188B (en) Configuration data management method, device and storage medium based on Zookeeper
US20120072480A1 (en) Elastic management framework
CN105487864A (en) Method and device for automatically generating code
CN102087594B (en) Management method and device for extension point and plugins
CN103020064A (en) Method and configuration for generating query condition in annotation way
KR102283736B1 (en) Method and apparatus for generating automatically setup code of application software baesed autosar
TW201723895A (en) Method and device for extending a layout template of an application component
CN107943466B (en) Database access statement generation method, device and equipment
WO2016086559A1 (en) Centralized configuration method and device, and storage medium
WO2020211360A1 (en) Mock test method and system, electronic device, and computer non-volatile readable storage medium
CN106060617B (en) Key function configuration method and system
CN101937360B (en) Method and device for creating virtual machines
CN105573774A (en) Application parameter managing and configuring method
JP5757098B2 (en) Program creation support apparatus and program creation support method
KR20150113353A (en) Server System for Virtual Desktop Image Distributed Store and Block Level Read/Write
CN104216721A (en) Method for issuing configuration before starting of operating system
US20210326179A1 (en) Progress visualization of computational job
CN104123394A (en) Method for processing report file of database
CN106326411A (en) Configuration change method and device
AU2015371556A1 (en) Method for accessing a number of slave devices with registers by a master device over a network
CN108762637A (en) Control method, apparatus and system
JP6175844B2 (en) Screen definition device for operation panel
CN105808318B (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201123

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201218

Address after: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee after: Bengbu Lichao Information Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210309

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee before: Bengbu Lichao Information Technology Co.,Ltd.