CN105791146B - The method, apparatus and system that user side equipment is interacted with configuration server - Google Patents

The method, apparatus and system that user side equipment is interacted with configuration server Download PDF

Info

Publication number
CN105791146B
CN105791146B CN201410817798.9A CN201410817798A CN105791146B CN 105791146 B CN105791146 B CN 105791146B CN 201410817798 A CN201410817798 A CN 201410817798A CN 105791146 B CN105791146 B CN 105791146B
Authority
CN
China
Prior art keywords
cpe
acs
address
corresponding relationship
unique identification
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
CN201410817798.9A
Other languages
Chinese (zh)
Other versions
CN105791146A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410817798.9A priority Critical patent/CN105791146B/en
Publication of CN105791146A publication Critical patent/CN105791146A/en
Application granted granted Critical
Publication of CN105791146B publication Critical patent/CN105791146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the present invention provides a kind of method, apparatus and system that user side equipment is interacted with configuration server, is related to the communications field, can reduce the burden of load-balancing device LB, avoids LB that performance bottleneck occurs.This method comprises: LB receives the service message that user side equipment CPE is sent;The service message is parsed, the IP address of the CPE is obtained;When the LB is cached with the IP address and the corresponding relationship of configuration server ACS of the CPE, determines that the corresponding relationship was in preset caching validity period, the service message is sent to the ACS;Wherein, the corresponding relationship of the IP address of the CPE and the ACS are that the LB is established according to the unique identification of the CPE and the mapping relations of the ACS.The embodiment of the present invention is interacted for CPE and ACS.

Description

The method, apparatus and system that user side equipment is interacted with configuration server
Technical field
The present invention relates to method, equipment that the communications field more particularly to a kind of user side equipment are interacted with configuration server And system.
Background technique
With the development of internet, the business carried is enriched constantly, while also having derived many kinds of, substantial amounts Broadband Terminal Equipment, for example, set-top box, home gateway, IP phone terminal etc., different types of Broadband Terminal Equipment are referred to as CPE (Customer Premises Equipment, user side equipment).Wherein, configuration relevant to CPE, diagnosis, upgrading etc. Work is completed by ACS (Auto-Configuration Sever, configuration server).
It is scheduled in general, the interaction of CPE and ACS passes through LB (Load Balancer, load-balancing device), the LB When receiving the service message of CPE transmission, it is resolved to the 7th layer (application layer) of the service message, obtains unique mark of the CPE Know, and be that the CPE distributes unique ACS by preset rules according to the unique identification, realizes the binding of CPE and ACS, at this point, Since all CPE require to be scheduled by LB to the service message that ACS is sent, and the LB needs to carry out service message Deep layer parsing, easily causes the performance bottleneck of LB.
Summary of the invention
The present invention provides a kind of method, apparatus and system that user side equipment is interacted with configuration server, can reduce LB Burden, avoid LB occur performance bottleneck.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of method that user side equipment is interacted with configuration server, comprising:
Load-balancing device LB receives the service message that user side equipment CPE is sent;
The service message is parsed, the internet protocol address of the CPE is obtained;
When the LB is cached with the IP address and the corresponding relationship of configuration server ACS of the CPE, the correspondence is determined Relationship was in preset caching validity period, and the service message is sent to the ACS;Wherein, the IP address of the CPE with The corresponding relationship of the ACS is that the LB is established according to the unique identification of the CPE and the mapping relations of the ACS.
In the first possible implementation with reference to first aspect, in the Internet protocol for obtaining the CPE After IP address, the method also includes:
In the corresponding relationship of the uncached IP address for having the CPE of the LB and ACS, unique mark of the CPE is obtained Know;
It is determined and described CPE pairs according to the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE The ACS answered;
Cache the IP address of the CPE and the corresponding relationship of the ACS.
In second of possible implementation with reference to first aspect, in the Internet protocol for obtaining the CPE After IP address, the method also includes:
When the LB is cached with the IP address and the corresponding relationship of the first ACS of the CPE, with determining the IP of the CPE The corresponding relationship of location and the first ACS were not in the preset caching validity period, obtained the unique identification of the CPE;
It is determined and described CPE pairs according to the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE The 2nd ACS answered;First ACS and the 2nd ACS is any ACS in wide area network terminal management system;
The IP address and described the of the CPE is updated using the IP address of the CPE and the corresponding relationship of the 2nd ACS The corresponding relationship of one ACS.
First with reference to first aspect or second of possible implementation, in the third possible implementation, The method also includes: the LB caches the cache-time mark of the IP address of the CPE and the corresponding relationship of ACS;
The determination corresponding relationship is in preset caching validity period and specifically includes:
The cache-time mark for determining the corresponding relationship is less than or equal to described preset with the time difference at current time Cache validity period;
The IP address of the determination CPE and the corresponding relationship of the first ACS are not in the preset caching validity period Inside specifically include:
Determine that the cache-time of the IP address of the CPE and the corresponding relationship of the first ACS identifies, with current time Time difference is greater than the preset caching validity period.
Any possible implementation into the third possible implementation of first aspect with reference to first aspect, In the fourth possible implementation, the method also includes:
The CPE that the CPE does not support specifically uniform resource locator URL to modify.
Second aspect provides a kind of load-balancing device, comprising:
Receiving unit, for receiving the service message of user side equipment CPE transmission;
Resolution unit, the service message received for parsing the receiving unit, obtains the Internet protocol of the CPE IP address;
Determination unit, when the LB is cached with the IP address and the corresponding relationship of configuration server ACS of the CPE, really The fixed corresponding relationship was in preset caching validity period;Wherein, the corresponding relationship of the IP address of the CPE and the ACS It is established for the LB according to the unique identification of the CPE and the mapping relations of the ACS;
Transmission unit, for the service message to be sent to the ACS.
In the first the possible implementation for combining second aspect, the resolution unit is also used to, if the LB is not It is cached with the IP address of the CPE and the corresponding relationship of ACS, obtains the unique identification of the CPE;
The determination unit is also used to, according to the mapping of the unique identification and ACS of the unique identification of the CPE and CPE Relationship determines ACS corresponding with the CPE;
The LB further includes storage unit, for caching the IP address of the CPE and the corresponding relationship of the ACS.
In second of possible implementation for combining second aspect, the determination unit is also used to, slow in the LB When having the IP address and the corresponding relationship of the first ACS of the CPE, determines that the IP address of the CPE is corresponding with the first ACS and close System was not in the preset caching validity period;
The resolution unit is also used to, and obtains the unique identification of the CPE;
The determination unit is also used to, according to the mapping of the unique identification and ACS of the unique identification of the CPE and CPE Relationship determines twoth ACS corresponding with the CPE;First ACS and the 2nd ACS is wide area network terminal management system In any ACS;
The LB further includes storage unit, and the corresponding relationship for IP address and the 2nd ACS using the CPE is more The IP address of the new CPE and the corresponding relationship of the first ACS.
In conjunction with the first of second aspect or second of possible implementation, in the third possible implementation, The storage unit is also used to: the cache-time for being cached with the IP address of the CPE and the corresponding relationship of ACS identifies;
The determination unit determines that the corresponding relationship was in preset caching validity period and specifically includes: it is described right to determine The cache-time mark that should be related to is less than or equal to the preset caching validity period with the time difference at current time;
It is described preset slow that the determination unit determines that the IP address of the CPE and the corresponding relationship of the first ACS are not in It deposits in validity period and specifically includes:
Determine that the cache-time of the IP address of the CPE and the corresponding relationship of the first ACS identifies, with current time Time difference is greater than the preset caching validity period.
The third aspect provides a kind of wide area network terminal management system, including, configuration server ACS and user side equipment CPE, further includes: load-balancing device LB;
Wherein, the LB is connected with the CPE and the ACS respectively;
The LB is load-balancing device described in the third the possible implementation of second aspect to second aspect.
In the first the possible implementation for combining the third aspect:
The CPE is used for, and receives the uniform resource locator URL of the ACS of ACS transmission in the CPE, and utilize The URL of the ACS is replaced in the CPE after preset URL, by the preset URL backup storage;
Determine that the CPE meets preset condition to the service message that the ACS is sent according to the URL of the ACS;It is described pre- If condition is to send the number of the service message to reach preset threshold value, alternatively, the preset condition is the CPE first After the secondary transmission service message, the response message that the ACS is sent is not received by preset time threshold;
The service message is sent according to the preset URL of backup storage.
Using the above scheme, load-balancing device LB is according to the unique identification of user side equipment CPE and configuration server ACS Mapping relations establish and cache the IP address of the CPE and the corresponding relationship of ACS, should and within preset caching validity period LB only need to carry out 3 layers of parsing to service message and obtain IP address, compared to existing after the service message for receiving CPE transmission In technology, LB receives the service message of CPE transmission every time, all needs to carry out 7 layers of parsings acquisition unique identification, the present invention is implemented Example alleviates the burden of LB, avoids the LB and performance bottleneck occurs.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1 is the structural schematic diagram of existing wide area network terminal management system;
Fig. 2 is a kind of process signal of method that user side equipment is interacted with configuration server provided in an embodiment of the present invention Figure;
Fig. 3 is that the process for the method that another user side equipment provided in an embodiment of the present invention is interacted with configuration server is shown It is intended to;
Fig. 4 is a kind of structural schematic diagram of load-balancing device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another load-balancing device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of wide area network terminal management system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Following embodiment of the present invention is used for wide area network terminal management system as shown in Figure 1, the wide area network terminal management system System includes load-balancing device LB, ACS cluster and user side equipment CPE, which includes at least two ACS, which uses In the service message that scheduling CPE is sent to ACS, the load balancing of ACS cluster is realized, which is used for the business sent according to CPE Message issues the business such as configuration relevant to the CPE, diagnosis or upgrading.In order to avoid ACS is receiving asking for CPE every time When asking, the corresponding configuration data of the CPE is obtained from the DB (Data Base, database), causes database bottleneck, and ACS can be with Caching accesses the configuration data of the CPE of the ACS in advance, binds it is therefore desirable to which CPE and ACS is fixed.
In order to those skilled in the art can fast understanding technical solution of the present invention, below to the present invention relates to Relational language is illustrated:
OSI (Open System Interconnection, open system interconnection net reference model): being a kind of frame The design method of property, it is logically divided into network protocol 7 layers, from the bottom to it is top successively are as follows: physical layer, data-link Road floor, network layer, transport layer, session layer, expression layer, application layer.It wherein, can only be according to the bottom to highest to the parsing of message The sequence of layer successively parses.
Wherein, the service message that parsing CPE is sent can get the IP (Internet of the CPE to network layer Protocol, Internet protocol) address.IP address is the logical address that network is each CPE distribution, when CPE starts every time, Network is that the IP address of CPE distribution may be different;The service message of CPE transmission is parsed to application layer, can get the CPE's Unique identification.
The unique identification of CPE: it can be the MAC (Media Access Control, media access control layer) of CPE Location, or the equipment Serial Number (SerialNumber) of CPE, wherein the unique identification of CPE is included in what the CPE was sent The application layer of service message.
The embodiment of the present invention provides a kind of method that user side equipment is interacted with configuration server, as shown in Fig. 2, this method Include:
S201, LB receive the service message that CPE is sent.
Wherein, which can be a configuration server ACS, that is to say, that the ACS cluster of wide area network terminal management system In there are an individual ACS be used as load balancing.In addition, CPE is when leaving the factory, the ACS URL (Uniform of default configuration Resource Locator, uniform resource locator) be the LB URL, in this way, the CPE is after actuation, according to default Service message is sent to the LB by URL.
S202, the LB parse the service message, obtain the IP address of the CPE.
S203, the LB be cached with the CPE IP address and configuration server ACS corresponding relationship when, the LB determine should Corresponding relationship was in preset caching validity period, which is sent to the ACS, wherein the IP address of the CPE with should The corresponding relationship of ACS is that the LB is established according to the unique identification of the CPE and the mapping relations of the ACS.
It should be noted that the LB is stored with the unique identification of CPE and the mapping relations of ACS, wherein the mapping relations can It is preset by user according to the quantity of CPE and the quantity of ACS.In addition, by preceding description it is found that the unique identification of the CPE It can be the MAC Address of the CPE, or the equipment Serial Number of the CPE.
Specifically, which obtains unique mark of the CPE in the corresponding relationship of the uncached IP address for having the CPE and ACS Know, determine ACS corresponding with the CPE according to the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE, Cache the IP address of the CPE and the corresponding relationship of the ACS.
In a kind of possible implementation of the embodiment of the present invention, the LB is in the IP address and the ACS for caching the CPE While corresponding relationship, the cache-time mark of the corresponding relationship is cached, cache-time mark can be somebody's turn to do for the LB in caching System time when corresponding relationship.
It is specifically as follows in this way, the LB determines that the corresponding relationship was in preset caching validity period, determines that the correspondence is closed The cache-time of system identifies, and is less than or equal to the preset caching validity period with the time difference at current time.Wherein, this is cached with The effect phase can be set by user previously according to demand, and such as 30 seconds.
Further, which determines the IP of the CPE in the corresponding relationship of the IP address and the first ACS that are cached with the CPE The corresponding relationship of address and the first ACS were not in preset caching validity period, obtained the unique identification of the CPE;According to the CPE Unique identification and the unique identification of CPE and the mapping relations of ACS determine twoth ACS corresponding with the CPE;First ACS With any ACS that the 2nd ACS is in wide area network terminal management system;Utilize the IP address of the CPE and pair of the 2nd ACS It should be related to the corresponding relationship of the IP address and the first ACS that update the CPE.
It is worth noting that the IP address of the CPE be in each starting up it is variable, therefore, if LB is according only to IP The mapping relations of address and ACS are that CPE assigns ACS, it cannot be guaranteed that the fixed binding of CPE and ACS, that is to say, that the CPE is twice After booting, the ACS of access may be different.But in embodiments of the present invention, the IP address of CPE and the corresponding relationship of ACS are roots It is established according to the unique identification of CPE and the mapping relations of ACS, the unique identification of CPE is constant, in this way, LB is preset slow After depositing validity period, can again according to the unique identification of CPE and the mapping relations of ACS establish CPE IP address and ACS it is corresponding Relationship can be linked into identical ACS after ensure that each starting up of the CPE.
Also, within preset caching validity period, which obtains the CPE after the service message for receiving CPE transmission IP address, by it is above-mentioned to OSI explanation it is found that LB obtain CPE IP address only need to service message carry out 3 layers parsing, phase Than in the prior art, LB receives the service message of CPE transmission every time, all needs to carry out unique mark that 7 layers of parsing obtain the CPE Know, the embodiment of the present invention alleviates the burden of LB, avoids the LB and performance bottleneck occur.
In order to enable those skilled in the art to be more clearly understood that a kind of user side equipment provided in an embodiment of the present invention The technical solution of the method interacted with configuration server, below by specific embodiment to technical solution provided by the invention into Row is described in detail, as shown in Figure 3, comprising:
S301, LB receive the service message that CPE is sent.
S302, the LB are resolved to the network layer of the service message, obtain the IP address of the CPE.
By the aforementioned introduction to OSI, network layer belongs to the 3rd layer of service message.
S303, the LB determine whether the IP address for being cached with the CPE and the corresponding relationship of the first ACS.
Wherein, as shown in Figure 1, the first ACS is any ACS in the wide area network terminal management system.
Further, if the corresponding relationship of the LB uncached IP address for having the CPE and the first ACS, step S304 is executed To step SS307;If the LB is cached with the IP address of the CPE and the corresponding relationship of the first ACS, step S308 is executed.
S304, the LB are resolved to the application layer of the service message, obtain the unique identification of the CPE.
By the aforementioned introduction to OSI, application layer belongs to the 7th layer of service message.
S305, the LB are determined according to the unique identification of the CPE and the unique identification of CPE and the mapping relations of ACS should Corresponding first ACS of CPE.
Optionally, which is corresponding with ACS using the cryptographic Hash of hash algorithm acquisition to the unique identification of CPE Relationship, then the LB calculates the cryptographic Hash of the MAC Address, inquires the mapping relations, determines the corresponding ACS of the cryptographic Hash.
Illustratively, before system starting, user presets the radix of the hash algorithm in LB according to the quantity of CPE, For example, the quantity of the CPE is 1,000,000, then the radix of the hash algorithm can be set as 10,000, that is to say, that all CPE's The value range of the cryptographic Hash of unique identification is one to 10,000;And cryptographic Hash is segmented according to the quantity of ACS, for example, the ACS Quantity is 4, then cryptographic Hash can be divided into four sections: 1-2500,2501-5000,5001-7500,7501-10000, wherein every The corresponding ACS of one Hash section.Therefore, which inquires the cryptographic Hash institute after obtaining the cryptographic Hash of unique identification of the CPE The Hash section at place, the corresponding ACS of the Hash section are that the LB is the ACS that the CPE is assigned.
S306, the LB cache the IP address and the corresponding relationship of the first ACS and the caching of the corresponding relationship of the CPE Time identifier.
Wherein, cache-time mark can be system time of the LB when caching the corresponding relationship.
The service message is sent to the first ACS by S307, the LB.
S308, the LB determine that the cache-time of the IP address of the CPE and the corresponding relationship of the first ACS identifies, and current Whether the time difference at moment is less than or equal to preset caching validity period.
Wherein, which can be set by user previously according to demand, and such as 30 seconds, the present invention did not limited this It is fixed.
Further, if the LB determines that the cache-time of the IP address of the CPE and the corresponding relationship of the first ACS identifies, It is less than or equal to preset caching validity period with the time difference at current time, thens follow the steps S309;If the LB determines the CPE's The cache-time of the corresponding relationship of IP address and the first ACS identifies, and is greater than the preset caching with the time difference at current time Validity period thens follow the steps S310 to step S313.
The service message is sent to the first ACS by S309, the LB.
S310, the LB are resolved to the application layer of the service message, obtain the unique identification of the CPE.
S311, the LB are determined according to the unique identification of the CPE and the unique identification of CPE and the mapping relations of ACS should Corresponding 2nd ACS of CPE.
It should be noted that the 2nd ACS is any ACS in wide area network terminal management system.If also, the CPE sheet IP address after secondary starting up is identical as the IP address after last time starting up, then the 2nd ACS and the first ACS are as same One ACS.
S312, the LB update the IP address of the CPE using the IP address of the CPE and the corresponding relationship of the 2nd ACS and are somebody's turn to do The corresponding relationship of first ACS, being updated using the cache-time mark of the corresponding relationship of the IP address and the 2nd ACS of the CPE should The cache-time of the corresponding relationship of the IP address of CPE and the first ACS identifies.
The service message is sent to the 2nd ACS by S313, the LB.
It is worth noting that if the LB is cached with the IP address of the CPE and the corresponding relationship of the first ACS, and the correspondence is closed The cache-time of system identifies, be greater than preset caching validity period with the time difference at current time, then the first ACS is the IP Location is before the preset caching validity period, the corresponding ACS of affiliated CPE.If the IP address is in the preset caching validity period CPE belonging to before is identical as this transmission CPE of service message, then the first ACS and the 2nd ACS is same ACS.
It, can be again according to the unique identification of CPE and ACS by above-mentioned steps it is found that LB is after preset caching validity period Mapping relations establish the IP address of CPE and the corresponding relationship of ACS, can be linked into after ensure that each starting up of the CPE Identical ACS.It is worth noting that, this it is preset caching validity period should be less than CPE be switched on twice between time interval, it is no Then, the booting twice of the CPE may access different ACS.Therefore, user can be according to the practical feelings at the available machine time interval CPE Condition sets reasonable caching validity period.
In this way, the LB obtains the CPE after the service message for receiving CPE transmission within preset caching validity period IP address, by it is above-mentioned to OSI explanation it is found that LB obtain CPE IP address only need to service message carry out 3 layers parsing, phase Than in the prior art, LB receives the service message of CPE transmission every time, all needs to carry out unique mark that 7 layers of parsing obtain the CPE Know, the embodiment of the present invention alleviates the burden of LB, avoids the LB and performance bottleneck occur.
In addition, ACS can identify the CPE after the service message for receiving CPE transmission according to existing TR069 agreement Whether the ACS is belonged to, and for not being the CPE for belonging to the ACS, which sends the URL of itself to the CPE, which is connecing After the URL for receiving ACS transmission, the URL of the CPE LB stored is replaced using the URL of the ACS, and according to the URL of the ACS Directly service message is sent to the ACS.But it is many kinds of due to CPE, some CPE support the modification of URL, and some CPE are not Support the modification of URL, therefore, in a kind of possible implementation of the embodiment of the present invention, for not supporting the CPE of URL modification, Such CPE still sends service message to LB, is scheduled by LB;For supporting that the CPE of URL modification, such CPE can be according to existing There is process after the URL using the URL of ACS replacement LB, directly transmits service message to ACS.In this way, the LB is only received and is not supported The service message that the CPE of URL modification is sent, further mitigates the burden of the LB.
It should be noted that for simple description, therefore, it is stated as a series of dynamic for above method embodiment It combines, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, secondly, this Field technical staff also should be aware of, and the embodiments described in the specification are all preferred embodiments, it is related movement and Module is not necessarily essential to the invention.
The embodiment of the present invention provides a kind of load-balancing device LB 40, and the method which is used to implement above-mentioned Fig. 2 is real Example is applied, each functional unit is used equally for above method step.As shown in Figure 4, comprising:
Receiving unit 41, for receiving the service message of CPE transmission;
Resolution unit 42, the service message received for parsing the receiving unit 41, obtains the Internet protocol of the CPE IP address;
Determination unit 43 is determined when the LB is cached with the IP address and the corresponding relationship of configuration server ACS of the CPE The corresponding relationship was in preset caching validity period;Wherein, the corresponding relationship of the IP address of the CPE and the ACS are institute State what LB was established according to the unique identification of the CPE and the mapping relations of the ACS;
Transmission unit 44, for the service message to be sent to the ACS.
Optionally, which is also used to, if the corresponding relationship of the LB uncached IP address for having the CPE and ACS, Obtain the unique identification of the CPE;The determination unit 43 is also used to, according to the unique identification of the CPE and the unique identification of CPE And the mapping relations of ACS determine ACS corresponding with the CPE;The LB 40 further includes storage unit 45, for caching the IP of the CPE The corresponding relationship of address and the ACS.
Optionally, which is also used to, in the IP address pass corresponding with the first ACS that the LB is cached with the CPE When being, the corresponding relationship of the IP address and the first ACS that determine the CPE was not in the preset caching validity period;The parsing list Member is also used to, and obtains the unique identification of the CPE;The determination unit 43 is also used to, according to the unique identification of the CPE and CPE Unique identification and the mapping relations of ACS determine twoth ACS corresponding with the CPE;First ACS and the 2nd ACS is wide area Any ACS in network termination management system;The storage unit 45 is also used to, and utilizes the IP address of the CPE and pair of the 2nd ACS It should be related to the corresponding relationship of the IP address and the first ACS that update the CPE.
Specifically, which is also used to, and caches the cache-time of the IP address of the CPE and the corresponding relationship of ACS Mark;The determination unit 43 determines that the corresponding relationship was in preset caching validity period and specifically includes: determining the corresponding relationship Cache-time mark, be less than or equal to the preset caching validity period with time difference at current time;The determination unit 43 is true The IP address of the fixed CPE and the corresponding relationship of the first ACS are not in the preset caching validity period and specifically include: determining should The cache-time of the corresponding relationship of the IP address of CPE and the first ACS identifies, and it is preset to be greater than this with the time difference at current time Cache validity period.
By the above-mentioned explanation to OSI, the 3rd layer (network layer) of service message carries the IP address of the CPE, the 7th layer of (application Layer) unique identification that carries the CPE, the unique identification of CPE is stored with using above-mentioned load-balancing device LB, the LB and configuration takes The mapping relations of business device ACS, and established according to the mapping relations and cache the IP address of the CPE and the corresponding relationship of ACS.This Sample, within preset caching validity period, which only need to carry out 3 to service message after the service message for receiving CPE transmission Layer parsing obtains IP address, and compared to the prior art, LB receives the service message of CPE transmission every time, all needs to carry out 7 layers of solution Analysis obtains unique identification, and the embodiment of the present invention alleviates the burden of LB, avoids the LB and performance bottleneck occur;In preset caching After validity period, the LB can be established again according to the unique identification of CPE and the mapping relations and cache the IP address of the CPE with The corresponding relationship of ACS ensure that the fixed binding of CPE and ACS.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.The device of foregoing description and the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, herein It repeats no more.
The embodiment of the present invention provides another load-balancing device LB 50, as shown in figure 5, the LB 50 includes:
Processor (processor) 51,52, memory communication interface (Communications Interface) (memory) 53 and communication bus 54;Wherein, the processor 51, the communication interface 52 and the memory 53 pass through described Communication bus 54 completes mutual communication.
Processor 51 may be multi-core central processing unit CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the one of the embodiment of the present invention A or multiple integrated circuits.
For memory 53 for storing program code, said program code includes computer operation instruction and network flow diagrams.It deposits Reservoir 53 may include high speed RAM memory, it is also possible to and it further include nonvolatile memory (non-volatile memory), A for example, at least magnetic disk storage.
The communication interface 52, for realizing the connection communication between these devices.
The processor 51 is used to execute the program code in the memory 53, to realize following operation:
Receive the service message that CPE is sent;
The service message is parsed, the internet protocol address of the CPE is obtained;
When the LB is cached with the IP address and the corresponding relationship of configuration server ACS of the CPE, the correspondence is determined Relationship was in preset caching validity period, and the service message is sent to the ACS;Wherein, the IP address of the CPE with The corresponding relationship of the ACS is that the LB is established according to the unique identification of the CPE and the mapping relations of the ACS.
Optionally, after the internet protocol address for obtaining the CPE, the operation further include:
In the corresponding relationship of the uncached IP address for having the CPE of the LB and ACS, unique mark of the CPE is obtained Know;
It is determined and described CPE pairs according to the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE The ACS answered;
Cache the IP address of the CPE and the corresponding relationship of the ACS.
Optionally, after the internet protocol address for obtaining the CPE, the operation further include:
When the LB is cached with the IP address and the corresponding relationship of the first ACS of the CPE, with determining the IP of the CPE The corresponding relationship of location and the first ACS were not in the preset caching validity period, obtained the unique identification of the CPE;
It is determined and described CPE pairs according to the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE The 2nd ACS answered;First ACS and the 2nd ACS is any ACS in wide area network terminal management system;
The IP address and described the of the CPE is updated using the IP address of the CPE and the corresponding relationship of the 2nd ACS The corresponding relationship of one ACS.
Optionally, the operation further include: the LB caches the caching of the IP address of the CPE and the corresponding relationship of ACS Time identifier;
The determination corresponding relationship is in preset caching validity period and specifically includes:
The cache-time mark for determining the corresponding relationship is less than or equal to described preset with the time difference at current time Cache validity period;
The IP address of the determination CPE and the corresponding relationship of the first ACS are not in the preset caching validity period Inside specifically include:
Determine that the cache-time of the IP address of the CPE and the corresponding relationship of the first ACS identifies, with current time Time difference is greater than the preset caching validity period.
The embodiment of the present invention provides a kind of wide area network terminal management system 60, as shown in fig. 6, the wide area network terminal management system System 60 includes: configuration server ACS 61 and user side equipment CPE 62, further includes load-balancing device LB 63.
Wherein, which is connected with the CPE 62 and the ACS 61 respectively, which is Fig. 4 or load shown in fig. 5 Equalizing equipment specifically can refer to the description of corresponding diagram 4 or Fig. 5 in above-described embodiment, and details are not described herein again.
It should be noted that may include multiple ACS and multiple CPE in wide area network terminal management system.
Using above-mentioned wide area network terminal management system, the LB in the wide area network terminal management system is stored with the unique of CPE Mark and the mapping relations of configuration server ACS, and the IP address and ACS of the CPE are established and cached according to the mapping relations Corresponding relationship, also, within preset caching validity period, which, only need to be to industry after the service message for receiving CPE transmission Business message carries out 3 layers of parsing and obtains IP address, and compared to the prior art, LB receives the service message of CPE transmission every time, all It need to carry out 7 layers of parsing and obtain unique identification, the embodiment of the present invention alleviates the burden of LB, avoids the LB and performance bottleneck occur; After preset caching validity period, which can establish according to the unique identification of CPE and the mapping relations again and cache this The IP address of CPE and the corresponding relationship of ACS ensure that the fixed binding of CPE and ACS.
Optionally, which is used for, and receives the URL of the ACS of ACS transmission in the CPE, and utilize the URL of the ACS It replaces in the CPE after preset URL, by the preset URL backup storage;Determine that the CPE is sent out according to the URL of the ACS to the ACS The service message sent meets preset condition;The service message is sent according to the preset URL of backup storage.Wherein, this is default Condition be send the service message number reach preset threshold value, alternatively, the preset condition be the CPE first time send should After service message, the response message of ACS transmission is not received by preset time threshold.
Specifically, which is specifically the CPE for supporting URL modification, and the URL of default configuration is load when which dispatches from the factory The URL of equalizing equipment LB.The CPE sends service message to the LB, which is sent to ACS for the service message.According to existing TR069 agreement, ACS is after the service message for receiving CPE transmission, for not being the CPE for belonging to the ACS, the ACS by itself URL be sent to the CPE, which replaces the URL of the LB using the URL of the ACS, and the URL of the LB is backed up and is stored.In this way, Support the CPE of URL modification directly can send service message to the ACS according to modified URL.
Further, which is retried when accessing ACS failure according to the URL of ACS transmission service message.Show Example ground, the times N that the user preset CPE is retried, then the CPE counts the number for sending the service message, works as hair After sending number to reach n times, if the CPE does not access the ACS yet, it is determined that meet the preset condition, for example, the ACS breaks down It is replaced, the URL of replaced ACS changes, then the CPE can not still access the ACS after repeatedly retrying.
In addition, the CPE can also carry out timing when starting to retry, when timing time reaches preset time threshold, If the CPE does not access the ACS yet, it is determined that meet the preset condition.
Further, which sends the service message according to the URL of the LB of backup storage, in this way, referring to shown in Fig. 3 Method and step, the LB receive the ACS transmission service message after, be again according to above-mentioned steps S301 to step S313 The CPE assigns ACS, to enhance the fault-tolerant ability of wide area network terminal management system.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (11)

1. a kind of method that user side equipment is interacted with configuration server characterized by comprising
Load-balancing device LB receives the service message that user side equipment CPE is sent;
The service message is parsed, the internet protocol address of the CPE is obtained;
When the LB is cached with the IP address and the corresponding relationship of configuration server ACS of the CPE, the corresponding relationship is determined Within preset caching validity period, the service message is sent to the ACS;Wherein, the IP address of the CPE with it is described The corresponding relationship of ACS is that the LB is established according to the unique identification of the CPE and the mapping relations of the ACS.
2. the method according to claim 1, wherein in the internet protocol address for obtaining the CPE Afterwards, the method also includes:
In the corresponding relationship of the uncached IP address for having the CPE of the LB and ACS, the unique identification of the CPE is obtained;
It is corresponding with the CPE according to the determination of the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE ACS;
Cache the IP address of the CPE and the corresponding relationship of the ACS.
3. the method according to claim 1, wherein in the internet protocol address for obtaining the CPE Afterwards, the method also includes:
The LB be cached with the CPE IP address and the first ACS corresponding relationship when, determine the IP address of the CPE with The corresponding relationship of first ACS was not in the preset caching validity period, obtained the unique identification of the CPE;
It is corresponding with the CPE according to the determination of the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE 2nd ACS;First ACS and the 2nd ACS is any ACS in wide area network terminal management system;
The IP address and described first of the CPE is updated using the IP address of the CPE and the corresponding relationship of the 2nd ACS The corresponding relationship of ACS.
4. according to the method in claim 2 or 3, which is characterized in that the method also includes: the LB caches the CPE IP address and ACS corresponding relationship cache-time identify;
The determination corresponding relationship is in preset caching validity period and specifically includes:
The cache-time mark for determining the corresponding relationship is less than or equal to the preset caching with the time difference at current time Validity period;
The IP address of the determination CPE and the corresponding relationship of the first ACS are not in tool in the preset caching validity period Body includes:
Determine that the cache-time of the IP address of the CPE and the corresponding relationship of the first ACS identifies, the time with current time Difference is greater than the preset caching validity period.
5. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
The CPE that the CPE does not support specifically uniform resource locator URL to modify.
6. a kind of load-balancing device characterized by comprising
Receiving unit, for receiving the service message of user side equipment CPE transmission;
Resolution unit, the service message received for parsing the receiving unit, with obtaining the Internet protocol IP of the CPE Location;
Determination unit is cached with the IP address of the CPE and the corresponding relationship of configuration server ACS in load-balancing device LB When, determine that the corresponding relationship was in preset caching validity period;Wherein, the IP address of the CPE is corresponding with the ACS Relationship is that the LB is established according to the unique identification of the CPE and the mapping relations of the ACS;
Transmission unit, for the service message to be sent to the ACS.
7. load-balancing device according to claim 6, which is characterized in that the resolution unit is also used to, if the LB The corresponding relationship of the uncached IP address for having the CPE and ACS, obtains the unique identification of the CPE;
The determination unit is also used to, according to the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE Determine ACS corresponding with the CPE;
The LB further includes storage unit, for caching the IP address of the CPE and the corresponding relationship of the ACS.
8. load-balancing device according to claim 6, which is characterized in that the determination unit is also used to, in the LB When being cached with the IP address and the corresponding relationship of the first ACS of the CPE, determine that the IP address of the CPE is corresponding with the first ACS Relationship was not in the preset caching validity period;
The resolution unit is also used to, and obtains the unique identification of the CPE;
The determination unit is also used to, according to the mapping relations of the unique identification and ACS of the unique identification of the CPE and CPE Determine twoth ACS corresponding with the CPE;First ACS and the 2nd ACS is in wide area network terminal management system Any ACS;
The LB further includes storage unit, and the corresponding relationship for IP address and the 2nd ACS using the CPE updates institute State the IP address of CPE and the corresponding relationship of the first ACS.
9. load-balancing device according to claim 7 or 8, which is characterized in that the storage unit is also used to: caching institute The cache-time for stating the IP address of CPE and the corresponding relationship of ACS identifies;
The determination unit determines that the corresponding relationship was in preset caching validity period and specifically includes: determining the corresponding pass The cache-time of system identifies, and is less than or equal to the preset caching validity period with the time difference at current time;
The determination unit determines that the IP address of the CPE and the corresponding relationship of the first ACS are not in described preset be cached with Effect specifically includes in the phase:
Determine that the cache-time of the IP address of the CPE and the corresponding relationship of the first ACS identifies, the time with current time Difference is greater than the preset caching validity period.
10. a kind of wide area network terminal management system, including, configuration server ACS and user side equipment CPE, which is characterized in that also It include: load-balancing device LB;
Wherein, the LB is connected with the CPE and the ACS respectively;
The LB is the described in any item load-balancing devices of claim 6 to 9.
11. wide area network terminal management system according to claim 10, it is characterised in that:
The CPE is used for, and receives the uniform resource locator URL of the ACS of ACS transmission in the CPE, and described in utilization The URL of ACS is replaced in the CPE after preset URL, by the preset URL backup storage;
Determine that the CPE meets preset condition to the service message that the ACS is sent according to the URL of the ACS;The default item Part is to send the number of the service message to reach preset threshold value, alternatively, the preset condition is that the CPE is sent out in first time After sending the service message, the response message that the ACS is sent is not received by preset time threshold;
The service message is sent according to the preset URL of backup storage.
CN201410817798.9A 2014-12-24 2014-12-24 The method, apparatus and system that user side equipment is interacted with configuration server Active CN105791146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410817798.9A CN105791146B (en) 2014-12-24 2014-12-24 The method, apparatus and system that user side equipment is interacted with configuration server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410817798.9A CN105791146B (en) 2014-12-24 2014-12-24 The method, apparatus and system that user side equipment is interacted with configuration server

Publications (2)

Publication Number Publication Date
CN105791146A CN105791146A (en) 2016-07-20
CN105791146B true CN105791146B (en) 2019-03-19

Family

ID=56378428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410817798.9A Active CN105791146B (en) 2014-12-24 2014-12-24 The method, apparatus and system that user side equipment is interacted with configuration server

Country Status (1)

Country Link
CN (1) CN105791146B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282363B (en) * 2017-12-30 2021-03-12 京信通信系统(中国)有限公司 Remote configuration method, device and system for CPE and ACS
CN109151025B (en) * 2018-08-22 2022-03-29 京信网络系统股份有限公司 Load balancing method and device based on URL, computer storage medium and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668049A (en) * 2008-09-04 2010-03-10 深圳华为通信技术有限公司 Method and device for reporting address, method and device for establishing connection and communication system
CN101729326A (en) * 2008-10-21 2010-06-09 中兴通讯股份有限公司 Automatic configuration server selection method and system, domain name system and home gateway
CN101729328A (en) * 2008-10-27 2010-06-09 中兴通讯股份有限公司 Automatic configuration server redirection method and automatic configuration servers
CN101778126A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and system for automatic configuration of server for remote management of user front-end equipment
CN101783774A (en) * 2009-01-19 2010-07-21 华为终端有限公司 Network device connection method, system and device
CN103001783A (en) * 2011-09-13 2013-03-27 中兴通讯股份有限公司 Network management system and message processing method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668049A (en) * 2008-09-04 2010-03-10 深圳华为通信技术有限公司 Method and device for reporting address, method and device for establishing connection and communication system
CN101729326A (en) * 2008-10-21 2010-06-09 中兴通讯股份有限公司 Automatic configuration server selection method and system, domain name system and home gateway
CN101729328A (en) * 2008-10-27 2010-06-09 中兴通讯股份有限公司 Automatic configuration server redirection method and automatic configuration servers
CN101783774A (en) * 2009-01-19 2010-07-21 华为终端有限公司 Network device connection method, system and device
CN101778126A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and system for automatic configuration of server for remote management of user front-end equipment
CN103001783A (en) * 2011-09-13 2013-03-27 中兴通讯股份有限公司 Network management system and message processing method thereof

Also Published As

Publication number Publication date
CN105791146A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN103856569B (en) A kind of method and apparatus of synchronous domain name system asset information
CN103685583B (en) A kind of method and system of domain name mapping
US20130007253A1 (en) Method, system and corresponding device for load balancing
CN108989430B (en) Load balancing method, device and storage medium
CN103209223A (en) Distributed application conversation information sharing method and system and application server
CN108011995A (en) Strange land implementation method more living, strange land service platform more living and storage medium
CN102047243A (en) Request routing based on class
CN103905572A (en) Domain name resolution request processing method and device
CN110430274A (en) A kind of document down loading method and system based on cloud storage
CN103905574B (en) A kind of DNS Operational Visits method, DNS data synchronous method and equipment
CN103051551A (en) Distributed system and automatic maintaining method for same
US10715635B2 (en) Node route selection method and system
CN109347997A (en) Domain name analytic method, device, server and storage medium
CN104349391B (en) A kind of scheduling processing method and device of WiFi working terminal
CN106302230B (en) A kind of data transmission method and device
CN104320488A (en) Proxy server system and proxy service method
CN107317889A (en) A kind of intelligent DNS scheduling system and dispatching method
CN107210924A (en) Method and apparatus for configuring communication system
CN104468853A (en) Domain name resolution method, server and system
CN105208058A (en) Information exchange system based on web session sharing
CN104301439B (en) Load-balancing method, apparatus and system
CN103401954B (en) The implementation method of virtual DHCP
US9729652B2 (en) Dynamically affinitizing users to a version of a website
CN109962961A (en) A kind of reorientation method and system of content distribution network CDN service node
CN105791146B (en) The method, apparatus and system that user side equipment is interacted with configuration server

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