Embodiment
For making the object of the invention, technical scheme and advantage clearer, the specific embodiment of the invention is done further to describe in detail below in conjunction with accompanying drawing.
Be that example specifies the disclosed terminal traffic distribution method of the embodiment of the invention below with Fig. 2, Fig. 2 is the disclosed terminal traffic distribution method of an embodiment of the invention flow chart.
As shown in Figure 2, in the disclosed terminal traffic distribution method of this paper inventive embodiments, terminal traffic issues and can in a session, accomplish.
(Cus tomer Premises Equipment CPE) obtains Automatic Configuration Server (Auto-Configuration Server, IP address information ACS) to user side equipment; Send the request message that connects with ACS according to the IP address information; After CPE and ACS connected through the IP address, CPE initiatively sent announcement information to ACS, behind the ACS response announcement information; To the CPE transmission parameter value (Set Parameter Values) solicited message is set; At this moment, in CPE, expanded a configuration item (X_ATP_ExecuteScript), said configuration item is used for preserving the LUA language scripts that is issued by ACS.ACS is handed down to CPE through service requesting information with the LUA language scripts, and CPE carries out the corresponding business operation through resolving the LUA language scripts, and the information of obtaining is sent to ACS; At last; Send to finish connection message by CPE to ACS, intercommunication no longer mutually between CPE and the ACS realizes that the terminal traffic distribution method needs following steps; As shown in Figure 2, specifically comprise:
The solicited message that step 210, transmission and Automatic Configuration Server ACS connect;
Particularly; User side equipment (CPE) obtains the IP address information of Automatic Configuration Server (ACS) through the Dynamic Host Configuration Protocol server of Access Network; The Dynamic Host Configuration Protocol server of Access Network can be the URL of ACS (Universal Resource Locator; URL) (Dynamic Host Configuration Protocol, DHCP) option disposes to CPE as DynamicHost agreement to be set.(Domain Name System DNS), finds the IP address of ACS to CPE with the host name part among the URL through domain name system.CPE sends the request message that connects according to the IP address information of the ACS that obtains to ACS;
CPE sends data according to the IP address to ACS after getting access to the IP address information of ACS, at this, just need guarantee that CPE sends the confidentiality of data and the completion property of data to ACS;
In embodiments of the present invention; The data of transmitting between CPE and the ACS all adopt SSL (Secure Socket Layer; SSL) agreement is encrypted; To ensure the TRANSEC transmission security of data, utilize data encryption (Encryption) technology, can guarantee can be by intercepting in the transmission course of data on network;
CPE completion obtain ACS the IP address information and through SSL to transmission data encipher after; Send announcement information through HTTP transferring command (HTTP Post) to ACS; CPE request ACS manages it, and ACS receives by behind the announcement information of CPE through HTTP Post transmission, sends the response notification message through http response order (HTTP Response) to CPE; After CPE receives the response notification message; At configuration item of user side expansion, this configuration item is used for being kept at CPE and the LUA language scripts information of ACS subsequent communications by the ACS transmission, behind the CPE expanded configuration item; Send a null response message through HTTP transferring command (HTTP Post) to ACS, this null response message is used to explain that CPE has been ready to receive the data message of ACS transmission.
The service requesting information that step 220, reception ACS send comprises user device type information and parameter information is set in the service requesting information;
Particularly; ACS receives by behind the null response message of CPE through HTTP transferring command (HTTP Post) transmission; After the clear and definite CPE of ACS has been ready to receiving data information; ACS sends service requesting information through HTTP Response to CPE, in service requesting information, comprises user device type information and parameter information is set, and being implemented in the session ACS with this, to provide multinomial terminal equipment professional; CPE is kept at the service requesting information that receives in the configuration item of good in expansion, in the service requesting information that ACS sends, can also comprise user device type information prefabricated among the ACS.
Step 230, judge that the user device type obtain is whether identical with the prefabricated user device type of ACS;
Particularly; ACS uses LUA language compiling service requesting information; And service requesting information is sent to CPE; CPE resolves the service requesting information of being sent by ACS after receiving the service requesting information by ACS use LUA language compiling and transmission, in service requesting information, comprises user device type information, parameter information and the prefabricated user device type information of ACS are set;
CPE is through the parsing to the LUA language scripts; According to the user device type information in the service requesting information; Obtain the type of the subscriber equipment of CPE itself; And the user device type of the CPE that obtains itself compared with the prefabricated user device type of ACS, if the prefabricated user device type of the user device type of the said CPE that obtains itself and ACS is consistent, to execution in step 240; Otherwise, execution in step 250.
Step 240; According to parameter information is set parameter value is set;
Particularly; Judgement according to step 230; If subscriber equipment type prefabricated among the user device type of the CPE that obtains itself and the ACS is consistent; Then be kept in the configuration code, and, in parameter information is set, comprise the network connection information of subscriber equipment according to parameter information setting and user device type corresponding parameter value are set with successfully obtaining the user device type result of information; Routing iinformation etc.; In embodiments of the present invention, subscriber equipment (CPE) type can comprise plurality of devices types such as router device, gateway device or firewall box, if prefabricated user device type is consistent among the user device type of the CPE that obtains itself and the ACS; Then the result who successfully obtains user device type is kept in the configuration code, and according to the parameter value that parameter information is provided with router device, gateway device or firewall box is set.
Step 250; Parameter value is not set;
Particularly, if obtain user device type failure, misregistration information then, will write down fails obtains result of information and is kept in the configuration code, simultaneously, parameter value is not set.
Step 260, said user device type of obtaining and result that parameter value is set are sent to said ACS, and send to ACS and to finish connection message.
According to above-mentioned steps, CPE is sent to ACS with user device type result who obtains and the result that parameter value is set, and sends the message that finishes connection to ACS.
Through description to said method; ACS uses the LUA language that multinomial business information is compiled in the information; Make ACS and CPE in carrying out a session, can accomplish the transmission of multinomial business information, thereby reduce mutual message between ACS and the CPE, reduce the call duration time of ACS and CPE.
Be that example specifies the disclosed terminal traffic distribution method of the embodiment of the invention below with Fig. 3, Fig. 3 is the disclosed terminal traffic distribution method of an embodiment of the invention practical implementation flow chart;
As shown in Figure 3, in the disclosed terminal traffic distribution method of this paper inventive embodiments, terminal traffic issues and can in a session, accomplish.
(Customer Premises Equipment CPE) searches Automatic Configuration Server (Auto-Configuration Server, IP address information ACS) to user side equipment; Send the request message that connects with ACS according to the IP address information; After CPE and ACS connected through the IP address, CPE initiatively sent announcement information to ACS, behind the ACS response announcement information; Send service requesting information to CPE; At this moment, expanded a configuration item (X_ATP_ExecuteScript) at the CPE place, configuration item is used for preserving the LUA language scripts that is issued by the ACS side.The ACS side is handed down to CPE through service requesting information with the LUA language scripts; CPE carries out the corresponding business operation through resolving the LUA language scripts, and the business operation result of carrying out is kept at (Provisioning Code) in the configuration code, arranges between CPE and the ACS; If the configuration code first place is 1 o'clock; The expression business information is sent successfully, if the configuration code first place is 0 o'clock, the expression business information is sent failure; If perhaps the configuration code first place is 0 o'clock, the expression business information is sent successfully, if the configuration code first place is 1 o'clock, the expression business information is sent failure; Configuration code removes other the first positions and then can be expressed as business information and send concrete fail step, and which of representing promptly that business information sends makes a mistake in step, and CPE sends ACS with configuration code; At last; Send to finish connection message by CPE to ACS, intercommunication no longer mutually between CPE and the ACS realizes that service information sending method needs following steps; As shown in Figure 3, specifically comprise:
Step 301, send TCP/IP connection requests information to ACS;
CPE obtains the IP address information of ACS through the Dynamic Host Configuration Protocol server of Access Network, and the Dynamic Host Configuration Protocol server of Access Network can dispose ACS URL to CPE as DHCO option.CPE finds the IP address of ACS with the host name part among the URL through DNS.CPE sends the request message that connects according to the IP address information of the ACS that obtains to ACS.
Step 302, CPE and ACS encrypt mutual data through ssl protocol;
CPE sends data according to the I P address to ACS after getting access to the IP address information of ACS, at this, just need guarantee that CPE sends the confidentiality of data and the completion property of data to ACS;
In embodiments of the present invention; The data of transmitting between CPE and the ACS all adopt SSL (Secure Socket Layer, SSL) agreement is encrypted, to ensure the TRANSEC transmission security of data; Utilize data encryption (Encryption) technology, guaranteeing can be by intercepting in the transmission course of data on network.
Step 303, CPE send the notice request information that is connected with ACS;
CPE completion obtain ACS the IP address information and through ssl protocol to transmission data encipher after, send notice request information through HTTP transferring command (HTTP Post) to ACS, CPE request ACS manages it.
Step 304, CPE receive the push-notification-answer information of ACS response;
ACS receives by after the notice request information of CPE through HTTP Post transmission; Send push-notification-answer message through http response order (HTTP Response) to CPE; After CPE receives push-notification-answer message; At configuration item of CPE expansion, configuration item is used for being kept at CPE and the LUA language scripts information of ACS subsequent communications by the ACS transmission.
Step 305, CPE send the null response message;
Behind the CPE expanded configuration item, send a null response message to ACS, explain that CPE has been ready to receive the data message of ACS transmission through HTTP transferring command (HTTP Post).
Step 306, ACS send service requesting information to CPE;
Particularly; ACS receives by behind the null response message of CPE through HTTP transferring command (HTTP Post) transmission; After the clear and definite CPE of ACS had been ready to receiving data information, ACS sent service requesting information through HTTP Response to CPE, in service requesting information, comprised polytype information; Be implemented in this that ACS provides multinomial business information in session, CPE is kept at the service requesting information that receives in the configuration item of good in expansion.
Step 307, CPE resolve service requesting information;
Particularly; ACS uses LUA language compiling service requesting information; And service requesting information is sent to CPE, CPE receive by ACS use the compiling of LUA language and the service requesting information of sending after, resolve the service requesting information of sending by ACS; In service requesting information, comprise user device type information, user device type information prefabricated among parameter information and the ACS is set; Optional, also can in business information, increase and add object information and deletion object information, the LUA language scripts of concrete service requesting information is:
In carrying out above-mentioned LUA language scripts, when running succeeded, previous action just can carry out next step, be finished up to all steps, simultaneously the execution in step successful result is kept at and indicates this all business information in the configuration code and all provided success.If there is the single stepping execution unsuccessful, then do not continue to carry out the operation of back, simultaneously the execution in step failure result is kept at configuration code and indicates this business information transmission failure, perhaps concrete the failure in which step.
CPE is after resolving above-mentioned LUA language message; The configuration code of record is sent to ACS; If the configuration code first place is 1 o'clock, shows that then business information sends successfully, and send successful information according to business information and send the null response message to CPE; If the configuration code first place is, then show business information transmission failure at 0 o'clock; If perhaps the configuration code first place is 0 o'clock, show that then business information sends successfully, and send successful information according to business information and send the null response message to CPE, if the configuration code first place is, show that then business information sends failure at 1 o'clock; Wherein, configuration code removes other the first bit representations in sending the business information process, concrete fail step information.
Step 308, ACS send the null response message to CPE;
Particularly, ACS receives the configuration code that is sent by CPE, and configuration code is resolved.If the configuration code first place is 1 o'clock, show that then business information sends successfully, and send successful information according to business information and send the null response message to CPE, if the configuration code first place is, show that then business information sends failure at 0 o'clock; If perhaps the configuration code first place is 0 o'clock, show that then business information sends successfully, and send successful information according to business information and send the null response message to CPE, if the configuration code first place is, show that then business information sends failure at 1 o'clock; Wherein, configuration code removes other the first bit representations in sending the business information process, concrete fail step information.
Step 309, CPE send the null response message;
Particularly, after CPE receives the null response message that is sent by ACS, send the null response message to ACS;
Step 310, ACS response null response message;
Particularly, the repeatedly transmission null response message of above-mentioned steps is the Handshake Protocol between CPE and the ACE, keeps between CPE and the ACE being connected to show always.
Step 311, CPE send to ACS and finish connection message.
Particularly, ACS sends the null response message once more to CPE, after CPE receives the null response message that is sent once more by ACS, send to finish connection message to ACS, and stop and ACS between data communication.
Through above-mentioned specific descriptions to communication process between CPE and the ACS; ACS uses the LUA language that multinomial business information is compiled in the information; Make ACS and CPE in carrying out a session, can accomplish the transmission of multinomial business information; Thereby reduce mutual message between ACS and the CPE, reduce the call duration time of ACS and CPE.
According to the above-mentioned LUA language scripts of enumerating out, be example with user device type information with parameter information script grammer is set, specify the detailed process that CPE resolves the LUA language scripts.
In the service requesting information that ACS sends, comprise user device type information, parameter information and prefabricated user device type are set; The resolving of concrete CPE is as shown in Figure 4,
Step 401, according to the user device type information of carrying in the service requesting information, obtain user device type;
Concrete, CPE is when resolving the service requesting information of ACS transmission, according to user device type information; Obtain the user device type of CPE itself, if CPE is according to user device type information, when the device type of obtaining CPE itself is not obtained successfully; Misregistration information then; No longer continue to carry out subsequent step, result of information is obtained in failure be kept in the configuration code, send ACS;
If CPE is according to user device type information, when the device type of obtaining CPE itself was obtained successfully, then the user device type obtained of record continued the execution subsequent step;
In embodiments of the present invention, subscriber equipment (CPE) type can comprise plurality of devices types such as router device, gateway device or firewall box.
Step 402, judge whether user device type prefabricated among the user device type obtain and the ACS is identical;
Particularly,, then write down successful information if prefabricated user device type is consistent among the user device type of the CPE that obtains itself and the ACS, and continuation execution in step 403, execution being provided with the parameter value step; Otherwise, execution in step 404.
Step 403, according to parameter information is set, the parameter value of CPE is set;
Particularly, according to the judgement of step 402,, then, the parameter value of CPE is set according to parameter information is set if prefabricated user device type is consistent among the user device type of the CPE that obtains itself and the ACS.
Step 404, parameter value is not set;
Particularly; According to the judgement of step 402,, parameter value is not set then if prefabricated user device type is inconsistent among the user device type of the CPE that obtains itself and the ACS; And will write down failure information; Do not continuing to carry out subsequent step, the result who failure is provided with parameter information is kept in the configuration code, sends ACS.
Step 405, the result of service requesting information is kept in the configuration code;
Particularly, said configuration code is the multidigit code, if the configuration code first place is, then representes business information transmission successful information at 1 o'clock; If the configuration code first place is, then represent business information transmission failure information at 0 o'clock; If perhaps the configuration code first place is 0 o'clock, the expression business information is sent successfully, if the configuration code first place is 1 o'clock, the expression business information is sent failure; Configuration code removes other the first bit representations in the process of sending business information, concrete fail step information.
Step 406, configuration code is sent ACS;
In carrying out above-mentioned LUA language scripts, when running succeeded, previous action just can carry out next step, be finished up to all steps, simultaneously the execution in step successful result is kept at and indicates this all business information in the configuration code and all provided success.If there is the single stepping execution unsuccessful, then do not continue to carry out the operation of back, simultaneously the execution in step failure result is kept at configuration code and indicates this business information transmission failure, perhaps concrete the failure in which step.
Correspondingly, Fig. 5 is the disclosed terminal traffic dispensing device of embodiment of the invention figure; As shown in Figure 5, said terminal traffic dispensing device comprises: first transmitting element 510, first receiving element 520, performance element 530, second transmitting element 540, acquiring unit 550, ciphering unit 560 and preserve unit 570.
As shown in Figure 5, first transmitting element 510 in the said device is used to send the solicited message that connects with Automatic Configuration Server ACS;
Said device also comprises acquiring unit 550, obtains the IP address information of ACS by acquiring unit 550, and the Dynamic Host Configuration Protocol server of Access Network can dispose the URL of ACS to acquiring unit as the DHCO option.Acquiring unit finds the IP address of ACS with the host name part among the URL through DNS.According to the IP address information in the acquiring unit, first transmitting element sends the solicited message that connects to ACS.
Ciphering unit 560 in the said device is used for sending enciphered message to said ACS, to set up the secure interactive of business information; Encrypt for the data of sending through said ciphering unit, guaranteed to send the confidentiality of data and the completion property of data to ACS.
First receiving element 520 in the said device is used to receive the service requesting information that said ACS sends, and comprises user device type information in the said service requesting information and parameter information is set;
As shown in Figure 5, first transmitting element 510 in the said device sends the solicited message that connects and with request ACS it is managed to ACS; After the clear and definite CPE of ACS has been ready to receiving data information; ACS uses LUA language compiling service requesting information; And service requesting information is sent in the said device in first receiving element 520; In service requesting information, comprise polytype information, be implemented in this that ACS provides multinomial business information in session;
Preservation unit 570 in the said device is used for said service requesting information is kept at configuration item;
After first receiving element 520 in the said device received the service requesting information that ACS use the compiling of LUA language, the preservation unit 570 in the said device was kept at the service requesting information that receives in the configuration item of good in expansion.
Performance element 530 in the said device is used for when confirming that the said user device type of obtaining is consistent with prefabricated user device type; Then parameter value is set, and said user device type of obtaining and the result that parameter value is set are sent to said ACS through second transmitting element 540 through parameter information is set;
In the present embodiment, performance element 530 specifically is used for the user device type information of carrying according to said service requesting information, obtains user device type, and the success of the user device type obtained of record or the result of failure;
Performance element 530 further specifically is used for said user device type of obtaining and prefabricated user device type are mated, and when coupling is consistent, through parameter information is set parameter value is set, and writes down successful result.
Performance element 530 further specifically is used for when definite said user device type of obtaining and said prefabricated user device type are inconsistent, then through parameter information is set parameter value not being set, and the result of record failure.
Said second transmitting element 540 specifically is used for, and earlier said user device type of obtaining and the result that parameter value is set is kept in the configuration code, more said configuration code is sent to said ACS, and said configuration code is the multidigit code;
If said configuration code first place is, then represent business information granting success at 1 o'clock;
If said configuration code first place is 0 o'clock, then represent business information granting failure, said configuration code removes the concrete fail step that other the first bit representation business information are sent;
If perhaps said configuration code first place is, then represent business information granting success at 0 o'clock;
If said configuration code first place is 1 o'clock, then represent business information granting failure, said configuration code removes the concrete fail step that other the first bit representation business information are sent.
Through the parse operation to the LUA language scripts, realization issues completion with all business in a session, simultaneously the result of execution in step success or failure is kept at the executing state that indicates all business information that this session issues in the configuration code.If there is the single stepping execution unsuccessful, then do not continue to carry out the operation of back, simultaneously the execution in step failure result is kept at configuration code and indicates this business information transmission failure, perhaps concrete the failure in which step.
As shown in Figure 5, second transmitting element 540 in the said device sends to ACS and to finish connection message after ACS sends configuration code, stop and ACS between data communication.
Through using the disclosed device of the embodiment of the invention; ACS can be blended in a plurality of operations in the LUA script when sending business information, realizes that all business information accomplish in a session; And recording operation is carried out information; Make the message interaction between ACS and the CPE significantly reduce, elapsed time is short, and it is more flexible to communicate by letter between CPE and the ACS.
The professional should further recognize; The unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein; Can realize with electronic hardware, computer software or the combination of the two; For the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to carry out, perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.