CN103873603A - Method of obtaining matching network equipment parameter based on DHCP (Dynamic host configuration protocol) - Google Patents

Method of obtaining matching network equipment parameter based on DHCP (Dynamic host configuration protocol) Download PDF

Info

Publication number
CN103873603A
CN103873603A CN201410062260.1A CN201410062260A CN103873603A CN 103873603 A CN103873603 A CN 103873603A CN 201410062260 A CN201410062260 A CN 201410062260A CN 103873603 A CN103873603 A CN 103873603A
Authority
CN
China
Prior art keywords
resource
server
equipment
dhcp
system parameters
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.)
Pending
Application number
CN201410062260.1A
Other languages
Chinese (zh)
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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201410062260.1A priority Critical patent/CN103873603A/en
Publication of CN103873603A publication Critical patent/CN103873603A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method of obtaining a matching network equipment parameter based on DHCP (Dynamic host configuration protocol). According to the method, the equipment system parameter is automatically uploaded to a server by a network terminal and is stored in the server; when equipment requests a resource through a network, whether the existing equipment system parameter exists is searched in the server by using equipment ID (identity), if so, resources in the server are searched according to the uploaded system parameter, after the resource which accords with the condition is found, the resource is transmitted to the equipment, if the resource is not found or the current equipment does not exist in the server, a default resource or an approximate resource is selected to be transmitted to the equipment. By using the method, the resource which is suitable for the equipment is rapidly and accurately obtained, the flow is effectively utilized, the flow loss of a user is reduced, time and approximate are reduced, and the product experience of the user is increased.

Description

A kind of method of obtaining matching network device parameter based on DHCP
Technical field
This method relates to DHCP collocation method, says exactly a kind of and obtains matching network device parameter method based on DHCP, can be for routing product, and android product, handheld device, the networking products such as PC and OTT box.
Background technology
DHCP is DHCP, and it is the one in ICP/IP protocol bunch, is mainly for the IP address to net computer monthly dynamics.The IP address that these are assigned with is all that Dynamic Host Configuration Protocol server is retained in an address pool being made up of multiple addresses in advance, and they are generally one section of continuous addresses.DHCP agreement provides a variable-length option territory, and this DHCP option territory can configure specific information for the equipment of different vendor under different application environment.While using DHCP, must on network, have a Dynamic Host Configuration Protocol server, and other machines is as dhcp client.In the time that dhcp client program is sent dynamic IP Address requests, Dynamic Host Configuration Protocol server can be according to pond, current address, provides an operational IP address and subnet mask to client.At present, along with the development of diversity and the technology of people's demand, networking products and related application are also more and more on the market, also just have software version and the application of various these networking products of support.So just there is a problem: some equipment is due to CPU disposal ability or memory size difference, and uncertain which resource can be applied in this equipment.And then occur that expensive flow and energy downloads not treatable situation after image or application A PP, and so waste flow and time expend energy on again, also reduce user to Product Experience sense.
Summary of the invention
Be to provide a kind of method of obtaining matching network device parameter based on DHCP order of the present invention, the method can quick and precisely be obtained applicable device resource, effectively utilizes flow, reduces user's flow loss, and can save time and financial resources, increase consumer products experience sense.
For reaching above-mentioned order ground, the present invention realizes in the following manner.
Obtain a method for matching network device parameter based on DHCP, it is characterized in that the method passes through the automatic uploading device system parameters of the network terminal to server, be stored in server.In the time that equipment passes through network request resource, utilize device id to search in server and whether have current device system parameters, as existed,, according to the system parameters of uploading, such as CPU model, internal memory SIZE and screen size etc., search resource in server, find after eligible resource, send this resource to equipment, as do not search or server in there is not current device, select acquiescence or approach resource and send equipment to.
Concrete methods of realizing is:
First, after device power has started, at equipment during to Dynamic Host Configuration Protocol server request dynamic IP address, by the system parameters of equipment, as CPU disposal ability, internal memory, the critical component such as screen size and video card Information encapsulation, to DHCP discover option, and is reported to Dynamic Host Configuration Protocol server automatically.
Described DHCP Option data structure is that n 8 codings (n need to be determined by actual coding) form, and DHCP Option data are resolved by Dynamic Host Configuration Protocol server end.Wherein, Option code is 70.Other field comprises facility information parameter, as CPU ability, and ROM/RAM size, the device parameters such as screen-sized, video card model.
Described system parameters, comprises device id.
Secondly, device-to-server request download network related application or resource, download the resources such as image or APP as request.
Finally, searching system parameter and mating.Normally utilize device id in server, to search the system parameters that whether exists current device to upload, as existed,, according to the CPU model of uploading, internal memory and screen size etc., search resource in server.
As find eligible resource, and transmit this resource to equipment, meet as do not found in resource or server and do not have current device, select default resource, or mate contrast, will approach resource most and send equipment to.
The invention has the beneficial effects as follows: 1, can automatically complete the configuration of network settings, save Internet resources, effectively utilize flow, reduce user's flow loss.2, can quick and precisely obtain applicable device resource, save time and financial resources.
Brief description of the drawings
Fig. 1 is the process chart of this patent.
Fig. 2 is DHCP Option data structure diagram.
Fig. 3 is DHCP packet data structure chart.
Embodiment
Below in conjunction with drawings and Examples, this patent is further illustrated.In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In Fig. 1, handling process is described below:
First, after device power has started, at equipment during to DHCP Server request dynamic IP address, by CPU disposal ability, internal memory, the critical component Information encapsulations such as screen size and video card are automatically reported to server to DHCP discover package option.
Secondly, device-to-server request download network related application or resource, download the resources such as image or APP as request.
Finally, utilize device id in server, to search the system parameters that whether exists current device to upload, as existed,, according to the CPU model of uploading, internal memory and screen size etc., search resource in server.As find eligible resource, and transmit this resource to equipment, meet as do not found in resource or server and do not have current device, select acquiescence or approach resource to send equipment to.
Concrete Option encapsulation format is shown in that Fig. 2 and Fig. 3 are DHCP message package.Wherein, as shown in Figure 2, this DHCP Option data structure is n 8 codings (n need to be determined by actual coding) to DHCP Option data structure, is resolved by Dynamic Host Configuration Protocol server end.Option code is 70.Field comprises facility information parameter, as CPU ability, and ROM/RAM size, the device parameters such as screen-sized.
Fig. 3 is the data structure of DHCP message package, has shown DHCP packet composition in figure, and wherein DHCP Option is a part in composition.Except comprising above-mentioned DHCP Option data, also comprise IP address, IP address, server ip address, the gateway ip address of oneself, the content such as IP address, file of user's hardware.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (4)

1. obtain a method for matching network device parameter based on DHCP, it is characterized in that system parameters that the method passes through the automatic uploading device of the network terminal is to server, and by said system Parameter storage in server; In the time that equipment passes through network request resource, in server, search and whether have current device system parameters, search resource in server according to the system parameters of uploading, find after eligible resource, send this resource to equipment, as do not search or server in there is not current device, select acquiescence or approach resource and send equipment to.
2. the method for obtaining matching network device parameter based on DHCP as claimed in claim 1, is characterized in that the performing step that the method is concrete is:
First,, after device power has started,, the system parameters of equipment is packaged in DHCP discover option, and is automatically reported to Dynamic Host Configuration Protocol server during to Dynamic Host Configuration Protocol server request dynamic IP address at equipment;
Secondly, device-to-server request download network related application or resource;
Finally, searching system parameter and mating.
3. the method for obtaining matching network device parameter based on DHCP as claimed in claim 2, is characterized in that described DHCP Option data structure is that n 8 codings form, and DHCP Option data are resolved by Dynamic Host Configuration Protocol server end; Wherein, Option code is 70.Other field comprises facility information parameter.
4. the method for obtaining matching network device parameter based on DHCP as claimed in claim 2, is characterized in that described system parameters, comprises device id; In searching system parameter and mate in step, utilize device id in server, to search the system parameters that whether exists current device to upload, as existed, search resource in server according to the system parameters of uploading; As find eligible resource, and transmit this resource to equipment, meet as do not found in resource or server and do not have current device, select default resource, or mate contrast, will approach resource most and send equipment to.
CN201410062260.1A 2014-02-24 2014-02-24 Method of obtaining matching network equipment parameter based on DHCP (Dynamic host configuration protocol) Pending CN103873603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410062260.1A CN103873603A (en) 2014-02-24 2014-02-24 Method of obtaining matching network equipment parameter based on DHCP (Dynamic host configuration protocol)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410062260.1A CN103873603A (en) 2014-02-24 2014-02-24 Method of obtaining matching network equipment parameter based on DHCP (Dynamic host configuration protocol)

Publications (1)

Publication Number Publication Date
CN103873603A true CN103873603A (en) 2014-06-18

Family

ID=50911716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410062260.1A Pending CN103873603A (en) 2014-02-24 2014-02-24 Method of obtaining matching network equipment parameter based on DHCP (Dynamic host configuration protocol)

Country Status (1)

Country Link
CN (1) CN103873603A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855820A (en) * 2005-04-29 2006-11-01 华为技术有限公司 Method for providing business according to its type
CN101610177A (en) * 2009-07-17 2009-12-23 中兴通讯股份有限公司南京分公司 System and method based on the business configuration of DHCP Server mechanism

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855820A (en) * 2005-04-29 2006-11-01 华为技术有限公司 Method for providing business according to its type
CN101610177A (en) * 2009-07-17 2009-12-23 中兴通讯股份有限公司南京分公司 System and method based on the business configuration of DHCP Server mechanism

Similar Documents

Publication Publication Date Title
US10009303B2 (en) Message push method and apparatus
US10360694B2 (en) Methods and devices for image loading and methods and devices for video playback
CN106713004B (en) Router adaptation method and system
CN109729386B (en) Video file playing starting method and system, electronic equipment and storage medium
EP2806613A1 (en) Wireless routing device, mobile terminal, and management system and method
CN103531218B (en) A kind of online multimedia file editing method and system
CN109495433A (en) Data download method and device, storage medium and electronic device
CN109982152B (en) P2P CDN service processing method, intelligent gateway and CDN platform
CN102891890A (en) Interaction method and related equipment and system among terminals
CN102739717A (en) Downloading method, downloading proxy server and network system
CN105022832A (en) Method for safely downloading APP (application), mobile terminal and download server
EP3185563A1 (en) Video transmission method, gateway device and video transmission system
CN112532711A (en) Edge computing application deployment method, terminal, edge computing node and storage medium
CN102118451B (en) Method and device for handling uploaded user resources
CN102752411A (en) Redirection method and device
CN105792247B (en) data pushing method and device
US10652626B2 (en) Gateway, and method, computer program and storage means corresponding thereto
CN105183734A (en) Method and device for image file sharing
CN104243202A (en) Data processing method and device of parameter configuration and parameter configuration method and device
CN104768076B (en) Video broadcasting method and device
CN102904935B (en) Downloading method, downloading device and downloading system based on home gateway
CN105227514A (en) Based on document transmission processing method and the browser of browser
CN103873603A (en) Method of obtaining matching network equipment parameter based on DHCP (Dynamic host configuration protocol)
CN111064694A (en) Method and device for realizing protocol gateway
CN103731736A (en) Control method and device for upgrading of smart television

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140618