CN103731310A - Message transmitting method and device - Google Patents

Message transmitting method and device Download PDF

Info

Publication number
CN103731310A
CN103731310A CN201310754007.8A CN201310754007A CN103731310A CN 103731310 A CN103731310 A CN 103731310A CN 201310754007 A CN201310754007 A CN 201310754007A CN 103731310 A CN103731310 A CN 103731310A
Authority
CN
China
Prior art keywords
radius server
aaa
bras
primary radius
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310754007.8A
Other languages
Chinese (zh)
Other versions
CN103731310B (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 CN201310754007.8A priority Critical patent/CN103731310B/en
Priority claimed from CN201310754007.8A external-priority patent/CN103731310B/en
Publication of CN103731310A publication Critical patent/CN103731310A/en
Application granted granted Critical
Publication of CN103731310B publication Critical patent/CN103731310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a message transmitting method and device, and relates to the technical field of communication. According to the message transmitting method and device, the probability that AAA service of a user is directly switched to a primary RADIUS server when a BRAS reaches a preset switch time, and the primary RADIUS server can not normally process a large quantity of AAA messages. According to the specific scheme, the BRAS sends a first AAA message to the primary RADIUS server according to a first preset percentage; a first AAA response from the primary RADIUS server is received, and the authentication success rate of the primary RADIUS server is determined according to the first AAA response which is received within the first preset time; if the authentication success rate of the primary RADIUS server is larger than or equal to a preset success rate threshold, it is determined that the primary RADIUS server is in a normal state, and all the AAA messages of the BRAS are sent to the primary RADIUS server.

Description

A kind of message transmitting method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of message transmitting method and device.
Background technology
In mobile Packet Service, subscriber equipment need to carry out user's authentication,authorization,accounting (Authentication, Authorization and Accounting, AAA).Concrete, long-range BAS Broadband Access Server (Broadband Remote Access Server, BRAS) user's AAA information can be passed to remote customer dialing authentication service (Remote Authentication Dial In User Service, RADIUS) server, radius server carries out user's authentication,authorization,accounting according to the AAA information receiving, for user terminal configures its needed configuration information, and to user terminal, feed back this configuration information by BRAS.Wherein, the application layer communication protocol between BRAS and radius server is radius protocol.
In existing BRAS application scenarios, in order to guarantee can to dispose at least two radius servers in user's the network of normally reaching the standard grade, to form active/standby server.The performance of primary radius server is better than the performance of standby radius server.
Concrete, when primary radius server is normal, BRAS sends AAA message to primary radius server, adopts primary radius server to carry out user's authentication,authorization,accounting operation; When primary radius server fault, for example, if BRAS is sent to N message of primary radius server and does not receive accordingly and receive the response in certain hour section, BRAS thinks that primary radius server is at Preset Time internal fault, send AAA request message to standby radius server, adopt standby radius server to carry out user's authentication,authorization,accounting operation; And after surpassing Preset Time, BRAS thinks that primary radius server is normal, continue to send AAA message to primary radius server, adopt primary radius server to carry out user's authentication,authorization,accounting.
But, because BRAS after surpassing Preset Time is switching to primary radius server by user's authentication,authorization,accounting business immediately, may cause the primary radius server cannot a large amount of AAA message of normal process.
Summary of the invention
Embodiments of the invention provide a kind of message transmitting method and device, can reduce that BRAS directly switches to primary radius server by user's AAA business when arrive in default switching time and the possibility of cannot the normal process a large amount of AAA message of the primary radius server that causes.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The first aspect of the embodiment of the present invention, a kind of message transmitting method is provided, be applied to long-range BAS Broadband Access Server BRAS authentication,authorization,accounting AAA business is switched in the process of primary radius server by standby remote customer dialing authentication service radius server, described method comprises:
Described BRAS sends an AAA message to described primary radius server according to the first default percentage;
Described BRAS receives the AAA response from described primary radius server, and according to the authentication success rate of the definite described primary radius server of a described AAA response receiving in first scheduled time, a described AAA response is the response message of described primary radius server to a described AAA message;
If the authentication success rate of described primary radius server is more than or equal to, be preset to power threshold, described BRAS determines that described primary radius server is in normal condition, and all AAA messages that send described BRAS are to described primary radius server.
In conjunction with first aspect, in a kind of possible implementation, at described BRAS, according to the first default percentage, send an AAA message to before described primary radius server, described method also comprises:
Described BRAS judges whether to meet pre-conditioned;
Described BRAS sends an AAA message to described primary radius server according to the first default percentage, comprising:
If meet described pre-conditionedly, described BRAS sends a described AAA message to described primary radius server according to the described first default percentage.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described method also comprises:
If meet described pre-conditionedly, described BRAS sends the 2nd AAA message to described standby radius server according to the second default percentage;
Wherein, the described first default percentage and the described second default percentage sum are 1.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described method also comprises:
If do not meet described pre-conditionedly, all AAA messages that described BRAS sends described BRAS are to standby radius server.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, describedly meet described pre-conditionedly, be specially:
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, and timing time surpassed for second scheduled time;
Or,
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, receives the 2nd AAA response from described primary radius server within default the 3rd scheduled time;
Wherein, described the 2nd AAA response is the response message of described primary radius server to the 3rd AAA message, and described the 3rd AAA message is that described BRAS was sent to the AAA message of described primary radius server before described AAA business is switched to described standby radius server.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described method also comprises:
If be preset to power threshold described in the described authentication success rate of described primary radius server is less than, described BRAS determines that described primary radius server is in malfunction.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described method also comprises:
If described BRAS determines that described primary radius server is in described malfunction, described BRAS sends the 4th AAA message to described primary radius server according to the described first default percentage.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described method also comprises:
If described BRAS determines that described primary radius server is in described malfunction, described BRAS sends all AAA messages of described BRAS to standby radius server.
The second aspect of the embodiment of the present invention, also provides a kind of BRAS, comprising:
The first transmitting element, for sending an AAA message to described primary radius server according to the first default percentage;
Receiving element, for receiving the AAA response from described primary radius server, a described AAA responds as described primary radius server is after receiving a described AAA message of described the first transmitting element transmission, the response message to a described AAA message;
The first determining unit, responds for a described AAA who receives within first scheduled time according to described receiving element the authentication success rate of determining described primary radius server;
The second determining unit, is preset to power threshold if the authentication success rate of the described primary radius server of determining for described the first determining unit is more than or equal to, and determines that described primary radius server is in normal condition;
Described the first transmitting element, also for determining that in described the second determining unit described primary radius server is after described normal condition, sends all AAA messages of described BRAS to described primary radius server.
In conjunction with second aspect, in a kind of possible implementation, described BRAS also comprises:
Judging unit, for sending a described AAA message according to the described first default percentage at described the first transmitting element to before described primary radius server, judges whether to meet pre-conditioned;
Described the first transmitting element, if be met described pre-conditionedly specifically for the judgement of described judging unit, sends a described AAA message to described primary radius server according to the described first default percentage.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described BRAS, also comprises:
The second transmitting element, if be met described pre-conditionedly for the judgement of described judging unit, sends the 2nd AAA message to described standby radius server according to the second default percentage;
Wherein, the described first default percentage and the described second default percentage sum are 1.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described BRAS, also comprises:
The second transmitting element, if obtain not meeting described pre-conditioned for the judgement of described judging unit, sends all AAA messages of described BRAS to standby radius server.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, describedly meet described pre-conditionedly, be specially:
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, and timing time surpassed for second scheduled time;
Or,
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, receives the 2nd AAA response from described primary radius server within default the 3rd scheduled time;
Wherein, described the 2nd AAA response is the response message of described primary radius server to the 3rd AAA message, and described the 3rd AAA message is that described BRAS was sent to the AAA message of described primary radius server before described AAA business is switched to described standby radius server.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described BRAS, also comprises:
The 3rd determining unit, if the authentication success rate of the described primary radius server of determining for described the first determining unit is preset to power threshold described in being less than, determines that described primary radius server is in malfunction.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described the first transmitting element, if also determine that for described the 3rd determining unit described primary radius server is in described malfunction, according to the described first default percentage, send the 4th AAA message to described primary radius server.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described the second transmitting element, if also determine that for described the 3rd determining unit described primary radius server is in described malfunction, send all AAA messages of described BRAS to standby radius server.
The third aspect of the embodiment of the present invention, also provides a kind of BRAS, comprising:
Transmitter, for sending an AAA message to described primary radius server according to the first default percentage;
Receiver, for receiving the AAA response from described primary radius server, a described AAA responds as described primary radius server is after receiving a described AAA message of described transmitter transmission, the response message to a described AAA message;
Processor, responds for a described AAA who receives within first scheduled time according to described receiver the authentication success rate of determining described primary radius server;
Described processor, if be also more than or equal to and be preset to power threshold for the authentication success rate of described primary radius server, determines that described primary radius server is in normal condition;
Described transmitter, also for determining that at described processor described primary radius server is after described normal condition, sends all AAA messages of described BRAS to described primary radius server.
In conjunction with the third aspect, in a kind of possible implementation, described processor, also, for sending a described AAA message according to the described first default percentage at described transmitter to before described primary radius server, judges whether to meet pre-conditioned;
Described transmitter, if also determine and to meet described pre-conditionedly for described processor, sends a described AAA message to described primary radius server according to the described first default percentage.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, described transmitter, if also determine and to meet described pre-conditionedly for described processor, sends the 2nd AAA message to described standby radius server according to the second default percentage;
Wherein, the described first default percentage and the described second default percentage sum are 1.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, described transmitter, if also determine and not meet described pre-conditionedly for described processor, sends all AAA messages of described BRAS to standby radius server.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, describedly meet described pre-conditionedly, be specially:
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, and timing time surpassed for second scheduled time;
Or,
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, receives the 2nd AAA response from described primary radius server within default the 3rd scheduled time;
Wherein, described the 2nd AAA response is the response message of described primary radius server to the 3rd AAA message, and described the 3rd AAA message is that described BRAS was sent to the AAA message of described primary radius server before described AAA business is switched to described standby radius server.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, described processor, if be preset to power threshold described in being also less than for the described authentication success rate of described primary radius server, determines that described primary radius server is in malfunction.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, described transmitter, if also determine that for described processor described primary radius server is in described malfunction, according to the described first default percentage, send the 4th AAA message to described primary radius server.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, described transmitter, if also determine that for described processor described primary radius server is in described malfunction, sends all AAA messages of described BRAS to standby radius server.
The message transmitting method that the embodiment of the present invention provides and device, at BRAS, will recognize in the process that AAA business switches to primary radius server by standby radius server, BRAS sends an AAA message to primary radius server according to the first default percentage; Reception responds from an AAA of primary radius server, and according to the AAA response receiving in first scheduled time, determines the authentication success rate of primary radius server; If the authentication success rate of primary radius server is more than or equal to, be preset to power threshold, determine that primary radius server is in normal condition, and all AAA messages that send BRAS be to primary radius server.
Pass through this programme, can reduce because arrive in default fault time, and primary radius server is still in the situation of fault, BRAS blindly switches to primary radius server by user's AAA business, causes a large amount of AAA business can not process in time the possibility of normal process.In this programme, in the process that AAA business is switched to primary radius server by standby radius server, only according to the first default percentage, send an AAA message to primary radius server, and definite primary RIDIUS in Preset Time to the ratio of an AAA message response during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server, thereby the possibility of the AAA message that the primary radius server that can reduce BRAS in prior art directly user's AAA business to be switched to primary radius server when arrive in default switching time and cause is cannot normal process a large amount of.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of message transmitting method flow chart in the embodiment of the present invention 1;
Fig. 2 is a kind of message transmitting method flow chart in the embodiment of the present invention 2;
Fig. 3 is the another kind of message transmitting method flow chart in the embodiment of the present invention 2;
The composition schematic diagram of a kind of BRAS in this embodiment of the present invention of Fig. 43;
Fig. 5 is the composition schematic diagram of the another kind of BRAS in the embodiment of the present invention 3;
Fig. 6 is the composition schematic diagram of the another kind of BRAS in the embodiment of the present invention 3;
Fig. 7 is the composition schematic diagram of the another kind of BRAS in the embodiment of the present invention 3;
Fig. 8 is the composition schematic diagram of a kind of BRAS in the embodiment of the present invention 4;
Fig. 9 is a kind of network design schematic diagram in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the embodiment of the present invention can be applied in network as shown in Figure 9.Network based on as shown in Figure 9, long-range BAS Broadband Access Server (Broadband Remote Access Server, BRAS) can, by sending AAA message to primary radius server or standby radius server, make primary radius server or standby radius server process user's AAA business.
In prior art, if primary radius server fault, but surpass fault time after Preset Time, BRAS thinks that primary radius server is normal, immediately by user's authentication, mandate and call charge service switch to primary radius server, and primary radius server may be also in malfunction, may cause a large amount of AAA business normal process not compare, in embodiments of the present invention, in the process that BRAS can switch to primary radius server by AAA business by standby radius server at BRAS, according to the first default percentage, send AAA message to primary radius server, the authentication success rate of primary radius server is determined in the AAA response then receiving in first scheduled time according to BRAS, and in the authentication success rate of primary radius server when being preset to power threshold, just determine the in running order normal condition of primary radius server, and all AAA messages of BRAS are sent to described primary radius server, the AAA business that is about to user switches to primary radius server.
Pass through this programme, can reduce because arrive in default fault time, and primary radius server is still in the situation of fault, BRAS blindly switches to primary radius server by user's AAA business, causes the possibility that a large amount of AAA business can not normal process.In this programme, in the process that AAA business is switched to primary radius server by standby radius server, only according to the first default percentage, send an AAA message to primary radius server, and definite primary RIDIUS in Preset Time to the ratio of an AAA message response during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server, thereby the possibility of the AAA message that the primary radius server that can reduce BRAS in prior art directly user's AAA business to be switched to primary radius server when arrive in default switching time and cause is cannot normal process a large amount of.
Embodiment 1
The embodiment of the present invention provides a kind of message transmitting method, can be applied in process that BRAS switches to primary radius server by AAA business by standby radius server, and as shown in Figure 1, this message transmitting method, comprising:
S101, BRAS send an AAA message to described primary radius server according to the first default percentage.
It should be noted that, user's authentication,authorization,accounting AAA generally adopts radius protocol, and radius protocol is a kind of agreement of C/S structure, at RFC2865, in RFC2866, defines, and protocol contents is simply clear and definite, and expandability is better.
Wherein, because radius protocol is simply clear and definite, expandability is better, and therefore application is comparatively extensive.For example, the passable range of application of radius protocol can comprise in the business such as plain old telephone online, ADSL online, partial wideband online, IP phone, the Virtual Private Dialup Network based on dial user (Virtual Private Dialup Networks, VPDN), mobile phone pre-payment.IEEE has proposed 802.1x standard, and this is a kind of standard based on port, for the access authentication to wireless network, also adopts radius protocol when authenticating.
It should be noted that, while communicating between BRAS and radius server in embodiments of the present invention, the application layer communication protocol adopting is radius protocol.
Exemplary, radius server (primary radius server and standby radius server) can be by setting up a customer data base that stores user name and user cipher, and after receiving AAA message, by user name and the user cipher of storing in customer data base, the AAA business of the corresponding subscriber equipment of described AAA message is carried out to authentication,authorization,accounting, then the configuration information after return authentication is to BRAS, to indicate BRAS:RADIUS server to complete corresponding authentication,authorization,accounting flow process.
S102, BRAS receive the AAA response from primary radius server, and according to the AAA response receiving in first scheduled time, determine the authentication success rate of primary radius server.
Wherein, authentication success rate is for characterizing the disposal ability of primary radius server to a described AAA message, and an AAA response is the response message of primary radius server to an AAA message.
Exemplary, BRAS can start to send an AAA message according to the first default percentage from this BRAS, and extremely the moment of primary radius server starts timing, and statistics moment of starting timing from BRAS play the number of the AAA response that BRAS during this period of time that timing time surpassed for first scheduled time receives, then calculate BRAS and at BRAS, be sent to shared percentage in the sum of an AAA message of primary radius server in the number of a received AAA response of above-mentioned time period, and the authentication success rate using the percentage calculating as primary radius server.
If the authentication success rate of the primary radius server of S103 is more than or equal to, be preset to power threshold, BRAS determines that primary radius server is in normal condition, and all AAA messages that send BRAS are to primary radius server.
Further alternative, the method for the embodiment of the present invention can also comprise: if the described authentication success rate of described primary radius server is preset to power threshold described in being less than, BRAS can determine that described primary radius server is in malfunction.
Further, when the described authentication success rate due to radius server is preset to power threshold described in being less than, BRAS determines that primary radius server is when malfunction, BRAS can continue to carry out: according to the first default percentage, send AAA message to primary radius server, then according to the AAA response receiving in first scheduled time, determine the authentication success rate of primary radius server, and then in authentication success rate higher than being preset to after power threshold, determine that primary radius server is in normal condition, and all AAA messages that send BRAS are to primary radius server.
Or, when the described authentication success rate due to radius server is lower than the described power threshold that is preset to, BRAS determines that primary radius server is when malfunction, and BRAS can directly send all described AAA message of described BRAS to standby radius server.
It should be noted that, the first default percentage can be less than or equal to 1 in the present embodiment.
Wherein, when the first default percentage is less than 1, the method for the embodiment of the present invention can also comprise: BRAS sends the 2nd AAA message to standby radius server according to the second default percentage.Now, the first default percentage and the second default percentage sum are 1.
The message transmitting method that the embodiment of the present invention provides, will recognize in the process that AAA business switches to primary radius server by standby radius server at BRAS, and BRAS sends an AAA message to primary radius server according to the first default percentage; Reception responds from an AAA of primary radius server, and according to the AAA response receiving in first scheduled time, determines the authentication success rate of primary radius server; If the authentication success rate of primary radius server is more than or equal to, be preset to power threshold, determine that primary radius server is in normal condition, and all AAA messages that send BRAS be to primary radius server.
Pass through this programme, can reduce because arrive in default fault time, and primary radius server is still in the situation of fault, BRAS blindly switches to primary radius server by user's AAA business, causes the possibility that a large amount of AAA business can not normal process.
Concrete, in a kind of application scenarios of the present embodiment, the first default percentage is less than 1.Now, in the process that AAA business is switched to primary radius server by standby radius server at BRAS, only a part of AAA message is issued to primary radius server (sending an AAA message to primary radius server according to the first default percentage), and definite primary RIDIUS in Preset Time to the ratio of this part of AAA message response during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server, thereby the possibility of the AAA message that the primary radius server that can reduce BRAS in prior art directly user's AAA business to be switched to primary radius server when arrive in default switching time and cause is cannot normal process a large amount of.
In the another kind of application scenarios of the present embodiment, the first default percentage equals 1.Now, in the process that AAA business is switched to primary radius server by standby radius server at BRAS, with similar in prior art, all AAA messages are issued to primary radius server (sending an AAA message to primary radius server according to the first default percentage), but can be in determining Preset Time (first scheduled time) in the present embodiment to the ratio of AAA message response that is sent to primary radius server during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server.Compared with prior art, in the present embodiment, pass through to calculate the authentication success rate to AAA message of the primary radius server in certain hour, and then the authentication success rate that obtains of comparing calculation and be preset to power threshold and determine that whether primary radius server is in malfunction, can judge more all sidedly that primary radius server is in malfunction or normal condition, and then can between primary radius server and standby radius server, carry out according to the state of the primary radius server obtaining the switching of AAA business, thereby can reduce in prior art because the mistake to the state of primary radius server is judged, the possibility of the AAA message that the primary radius server causing is cannot normal process a large amount of.
Embodiment 2
The embodiment of the present invention provides a kind of message transmitting method, can be applied in process that BRAS switches to primary radius server by AAA business by standby radius server, and as shown in Fig. 2 or Fig. 3, this message transmitting method, can comprise:
S201, BRAS judge whether to meet pre-conditioned.
Wherein, in the first application scenarios of the embodiment of the present invention, describedly meet pre-conditionedly, be specifically as follows: start timing the default finish time that BRAS switches to AAA business standby radius server by primary radius server from BRAS, and timing time surpassed for second scheduled time.
Or, in the second application scenarios of the embodiment of the present invention, described meet pre-conditioned, be specifically as follows: start timing the default finish time that BRAS switches to AAA business standby radius server by primary radius server from BRAS, within default the 3rd scheduled time, receive the 2nd AAA response from primary radius server.
Wherein, the 2nd AAA response is the response message of primary radius server to the 3rd AAA message, and the 3rd AAA message is that BRAS was sent to the AAA message of primary radius server before described AAA business is switched to standby radius server.
Concrete, in embodiments of the present invention, in the process that BRAS switches to primary radius server by AAA business by standby radius server, BRAS can first send an AAA message to primary radius server according to the first default percentage, and be more than or equal to while being preset to power threshold in the authentication success rate (the authentication success rate of primary radius server is determined in the AAA response that BRAS receives according to first scheduled time) of determining primary radius server, just BRAS determines that primary radius server is in normal condition, the all AAA messages that then just send BRAS to primary radius server (, AAA business is switched to primary radius server by standby radius server).
But, BRAS is when sending an AAA message to primary radius server according to the first default percentage, primary radius server may be temporary in malfunction, therefore, if BRAS at definite primary radius server after malfunction, directly carry out following steps: according to the first default percentage, send an AAA message and send the 2nd AAA message to standby radius server to primary radius server with according to the second default percentage, and now if primary radius server is current in complete fault state, the AAA message that primary radius server sends according to the first default percentage for the BRAS receiving also cannot be processed.In this case, although standby radius server can preset according to second the 2nd AAA message that percentage sends by normal process BRAS, but, because BRAS can not determine whether complete failure of primary radius server, therefore, if primary radius server complete failure now, the AAA message that primary radius server can not normal process BRAS sends according to the first default percentage, the corresponding user of an AAA message cannot normally reach the standard grade.
In the first application scenarios of the embodiment of the present invention, because primary radius server may be temporary in malfunction, in the regular hour, (BRAS switches to AAA business to start default finish time standby radius server timing by primary radius server from BRAS, timing time surpassed for second scheduled time) after, primary radius server may return to normal condition by temporary malfunction, now primary radius server possesses the ability of processing a certain amount of AAA business, therefore, alternatively, BRAS sends an AAA message according to the first default percentage and sends the 2nd AAA message to before standby radius server to primary radius server with according to the second default percentage, can first judge that BRAS switches to AAA business to start default finish time standby radius server timing by primary radius server from BRAS, whether timing time surpassed for second scheduled time, and surpass after second scheduled time at timing time, carry out again S202 and S203, can reduce like this because primary radius server may be in the time (as 5 minutes) in temporary fault state, the possibility that the corresponding user of an AAA message that BRAS is sent to primary radius server according to the first default percentage cannot normally reach the standard grade.
Exemplary, suppose that be 10:00 the default finish time that BRAS switches to AAA business after standby radius server by primary radius server, and second scheduled time can be 15 minutes, BRAS can start timing from 10:00, after timing time surpasses 15 minutes, be that current time surpasses after 10:15, BRAS can determine meet pre-conditioned.
The embodiment of the present invention second in application scenarios, because primary radius server may be temporary in malfunction, therefore, if BRAS is at certain hour, (BRAS switches to AAA business to start default finish time standby radius server timing by primary radius server from BRAS, timing time is default the 3rd scheduled time) in, (the 2nd AAA response is the response message of primary radius server to the 3rd AAA message to receive the 2nd AAA response from primary radius server, the 3rd AAA message is that BRAS was sent to the AAA message of primary radius server before AAA business is switched to described standby radius server), represent that primary radius server possesses the ability of processing a certain amount of AAA business, now BRAS sends an AAA message to primary radius server compared at BRAS, AAA business being switched to while arriving default finish time after standby radius server by primary radius server according to the first default percentage, according to the first default percentage, send an AAA message to primary radius server at once, can reduce because primary radius server may be in the time in temporary fault state, the possibility that the corresponding user of an AAA message that BRAS is sent to primary radius server according to the first default percentage cannot normally reach the standard grade.
Therefore, optionally, BRAS sends an AAA message according to the first default percentage and sends the 2nd AAA message to before standby radius server to primary radius server with according to the second default percentage, can first judge that BRAS switches to AAA business to start default finish time standby radius server timing by primary radius server from BRAS, within default the 3rd scheduled time, whether receive the 2nd AAA response from primary radius server, and in BRAS, within default the 3rd scheduled time, receive after the 2nd AAA response from primary radius server, carry out again S202 and S203, to reduce because primary radius server may be in the time in temporary fault state, the possibility that the corresponding user of an AAA message that BRAS is sent to primary radius server according to the first default percentage cannot normally reach the standard grade.
Exemplary, suppose that be 10:00 the default finish time that BRAS switches to AAA business after standby radius server by primary radius server, and the 3rd scheduled time can be 10 minutes, BRAS can start timing from 10:00, if BRAS receives the 2nd AAA response from primary radius server at 10:00 to any moment between 10:10, BRAS can determine meet pre-conditioned.
It should be noted that, S201 is optional, also can not carry out S201 in embodiments of the present invention, directly carries out S202:BRAS and sends an AAA message to primary radius server and subsequent packet transfer process according to the first default percentage.
Alternatively, if do not meet pre-conditionedly, all AAA messages that send BRAS, to standby radius server, are directly carried out S211:
S202, BRAS send an AAA message to primary radius server according to the first default percentage.
It should be noted that, in embodiments of the present invention, in the process that BRAS switches to primary radius server by AAA business by standby radius server, BRAS sends an AAA message to primary radius server according to the first default percentage, be that BRAS only issues primary radius server by a part of AAA message, authentication success rate for detection of primary RIDIUS server, rather than when starting AAA business to switch to primary radius server by standby radius server, just send all AAA messages to primary radius server, can reduce BRAS in prior art and directly user's AAA business be switched to primary radius server when arrive in default switching time, but the possibility of the AAA message that the primary radius server that primary radius server may still cause in malfunction is cannot normal process a large amount of.
S203, BRAS send the 2nd AAA message to standby radius server according to the second default percentage.
It should be noted that, the first default percentage and the second default percentage sum are 1.The first default percentage and the second default percentage can arrange according to user's input data for BRAS.
S204, BRAS receive the AAA response from primary radius server.
Concrete, primary radius server is after the AAA message receiving from BRAS, can to the corresponding user of each AAA message, carry out corresponding authentication,authorization,accounting respectively, then after completing a user's authentication,authorization,accounting, can send an AAA and respond to BRAS, to notify this primary radius server of BRAS to complete corresponding user's authentication,authorization,accounting.
Wherein, an AAA response is the response message of primary radius server to an AAA message.
S205, BRAS determine the authentication success rate of primary radius server according to the AAA response receiving in first scheduled time.
Wherein, authentication success rate is for characterizing the disposal ability of primary radius server to the corresponding AAA business of an AAA message.
Concrete, due to primary radius server may break down cause cannot normal process or complete failure can not process an AAA message (can not carry out user's authentication,authorization,accounting) that is received from BRAS, primary radius server cannot send or cannot send in time an AAA and responds to BRAS, therefore, BRAS can determine according to the AAA response receiving in first scheduled time authentication success rate of primary radius server.
Exemplary, BRAS determines that according to the AAA response receiving in first scheduled time method of the authentication success rate of primary radius server can comprise: BRAS starts to send an AAA message according to the first default percentage from this BRAS, and extremely the moment of primary radius server starts timing, and statistics moment of starting timing from BRAS play the number of an AAA response and the sum of the AAA message that BRAS is sent to primary radius server that BRAS during this period of time that timing time surpassed for first scheduled time receives, then calculate BRAS and at BRAS, be sent to shared percentage in the sum of an AAA message of primary radius server in the number of a received AAA response of above-mentioned time period, and the authentication success rate using the percentage calculating as primary radius server.
For example, if BRAS within first scheduled time, be sent to primary radius server an AAA message add up to 10, and the number of the AAA response that BRAS receives within first scheduled time is 3, BRAS can determine that the authentication success rate of primary radius server is 30%.
It should be noted that, BRAS can repeatedly add up BRAS and send an AAA message to primary radius server, and primary radius server carries out user's authentication,authorization,accounting, return to an AAA and respond the total time spending to the process of BRAS, then according to first scheduled time of determining total time counting on.
S206, BRAS judge whether authentication success rate is more than or equal to and are preset to power threshold.
It should be noted that, in prior art, if BRAS receives the AAA response from a N continuous AAA message of primary radius server within a certain period of time, BRAS determines that primary radius server is in normal condition, and if BRAS does not receive the AAA response from a N continuous AAA message of primary radius server within a certain period of time, BRAS determines that primary radius server is in malfunction.Because primary radius server may exist a period of time in malfunction, the situation (be in-and-out situation) of a period of time in normal condition, so in prior art may there is the mistake judgement to the state of primary radius server in BRAS when carrying out the condition judgement of primary radius server.
For example, suppose that in the prior art BRAS sends 10 AAA messages and (comprising: AAA message 1-AAA message 10) to primary radius server, and in prior art when BRAS sends and finishes to above-mentioned 10 AAA messages starting to send above-mentioned 10 AAA starts of heading, add in the default stand-by period, if receive 5 continuous AAA responses, can determine that primary radius server is in normal condition.But in the time of may existing primary radius server in the process that receives and process these 10 AAA messages and in normal condition, time and in situation in malfunction, BRAS still judges the problem of primary radius server in normal condition.In this case, if primary radius server when receiving AAA message 1, AAA message 3, AAA message 5, AAA message 7 and AAA message 9 in normal condition, and primary radius server when receiving AAA message 2, AAA message 4, AAA message 6, AAA message 8 and AAA message 10 in malfunction, primary radius server can be processed AAA message 1, AAA message 3, AAA message 5, AAA message 7 and AAA message 9, and returns to AAA response 1, AAA response 3, AAA response 5, AAA response 7 and AAA response 9 to BRAS.Now, although primary radius server when receiving AAA message 2, AAA message 4, AAA message 6, AAA message 8 and AAA message 10 in malfunction, can not return to corresponding AAA responds to BRAS, but BRAS, after receiving AAA response 1, AAA response 3, AAA response 5, AAA response 7 and AAA response 9 these five AAA responses, can determine that primary radius server is in normal condition.But in fact primary radius server is not completely normal.Adopting said method to carry out judging to primary radius server is inaccurate with comprehensive.When primary radius server and in normal condition, time and in situation in malfunction, it is can not normal process a large amount of AAA message, if now judge, primary radius server is in normal condition, and all AAA messages that send BRAS are to primary radius server, may cause the primary radius server can not a large amount of AAA message of normal process, may increase the possibility that a large number of users cannot normally be reached the standard grade.
Compared with prior art, in the embodiment of the present invention, pass through to calculate the authentication success rate to AAA message of the primary radius server in certain hour (the first Preset Time), and then the authentication success rate that obtains of comparing calculation and be preset to power threshold and determine that whether primary radius server is in malfunction, can judge more all sidedly that primary radius server is in malfunction or normal condition, and then can between primary radius server and standby radius server, carry out according to the state of the primary radius server obtaining the switching of AAA business.
It should be noted that, be preset to power threshold and be in BRAS, set in advance for judging the whether success rate threshold value in malfunction of primary radius server.Wherein, BRAS can repeatedly add up in the situation that the authentication success rate of primary radius server is different numerical value, and then the failure condition of primary radius server is determined and be preset to power threshold according to the data that count on; Or the input that BRAS can receive user arranges threshold data, according to the threshold data configuration that arranges of user's input, be preset to accordingly power threshold.In the embodiment of the present invention, to being preset to the concrete numerical value of power threshold and setting or collocation method, do not limit.For example, being preset to power threshold can be 60%.
Concrete, if being greater than or equal to, authentication success rate is preset to power threshold, BRAS determines that primary radius server, in normal condition, continues to carry out S207-S208; If authentication success rate is less than, be preset to power threshold, BRAS determines that primary radius server is in malfunction, continues as shown in Figure 2 to carry out S209 and S210 or continues to carry out as shown in Figure 3 S209 and S211:
S207, BRAS determine that primary radius server is in normal condition.
Wherein, BRAS after normal condition, can switch to primary radius server at definite primary radius server by user's AAA business, carries out S208: send all AAA messages of BRAS to primary radius server.
S208, BRAS send all AAA messages of BRAS to primary radius server.
S209, BRAS determine that primary radius server is in malfunction.
Wherein, BRAS after malfunction, represents that primary radius server does not still possess the ability of a large amount of AAA business of normal process at definite primary radius server.
Now, in a kind of application scenarios of the embodiment of the present invention, BRAS can only issue primary radius server by a part of AAA message, be that BRAS can continue to issue primary radius server primary radius server is carried out to fault detect by sending a part of AAA message, (as shown in Figure 2, carry out S210) and definite primary RIDIUS in Preset Time to the ratio of this part of AAA message response during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server, thereby the possibility of the AAA message that the primary radius server that can reduce BRAS in prior art directly user's AAA business to be switched to primary radius server when arrive in default switching time and cause is cannot normal process a large amount of.
S210, BRAS send the 4th AAA message to described primary radius server according to the described first default percentage.
It should be noted that, BRAS sends the 4th AAA message according to the described first default percentage and to S202:BRAS in the method for described primary radius server and the embodiment of the present invention, according to the first default percentage, sends an AAA message extremely the method for primary radius server is similar, and the embodiment of the present invention repeats no more here.
Further alternative, under a kind of situation of above-mentioned application scenarios, at BRAS, according to the described first default percentage, send the 4th AAA message to before described primary radius server, the method for the embodiment of the present invention can also comprise: it is pre-conditioned that BRAS judges whether primary radius server meets.
In this case, BRAS sends the 4th AAA message to described primary radius server according to the described first default percentage, be specifically as follows: if meet pre-conditionedly, BRAS sends the 4th AAA message to described primary radius server according to the described first default percentage.
Further alternative, in this case, the method for the embodiment of the present invention can also comprise: if meet pre-conditionedly, BRAS sends the 5th AAA message to standby radius server according to the described second default percentage; If it is pre-conditioned that primary radius server does not meet, carry out S211.
It should be noted that, BRAS sends the 4th AAA message according to the described first default percentage and to S202:BRAS in the concrete grammar of described primary radius server and the embodiment of the present invention, according to the first default percentage, sends an AAA message extremely the concrete grammar of primary radius server is similar, and the embodiment of the present invention repeats no more here; BRAS sends the 5th AAA message according to the described second default percentage and to S203:BRAS in the concrete grammar of standby radius server and the embodiment of the present invention, according to the second default percentage, sends the 2nd AAA message extremely the concrete grammar of standby radius server is similar, and the embodiment of the present invention repeats no more here.
S211, BRAS send all AAA messages of BRAS to standby radius server.
In the another kind of application scenarios of the embodiment of the present invention, BRAS definite primary radius server after the malfunction (representing that primary radius server does not still possess the ability of a large amount of AAA business of normal process) directly by all AAA messages of BRAS to standby radius server, to reduce due to primary radius server fault, can not normal process AAA business, the possibility that causes a large number of users normally not reach the standard grade.
The message transmitting method that the embodiment of the present invention provides, will recognize in the process that AAA business switches to primary radius server by standby radius server at BRAS, and BRAS sends an AAA message to primary radius server according to the first default percentage; Reception responds from an AAA of primary radius server, and according to the AAA response receiving in first scheduled time, determines the authentication success rate of primary radius server; If the authentication success rate of primary radius server is more than or equal to, be preset to power threshold, determine that primary radius server is in normal condition, and all AAA messages that send BRAS be to primary radius server.
Pass through this programme, can reduce because arrive in default fault time, and primary radius server is still in the situation of fault, BRAS blindly switches to primary radius server by user's AAA business, causes the possibility that a large amount of AAA business can not normal process.In this programme, in the process that AAA business is switched to primary radius server by standby radius server at BRAS, determine after primary radius server fault, only a part of AAA message is issued to primary radius server, and definite primary RIDIUS in Preset Time to the ratio of this part of AAA message response during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server, thereby the possibility of the AAA message that the primary radius server that can reduce BRAS in prior art directly user's AAA business to be switched to primary radius server when arrive in default switching time and cause is cannot normal process a large amount of.
Further, in this programme, BRAS is before issuing primary radius server by a part of AAA message, can judge whether to meet pre-conditioned, and in meet pre-conditioned after, just a part of AAA message is issued to primary radius server, can further improve at BRAS when a part of AAA message is issued to primary radius server, the possibility of primary radius server in normal condition, thereby can reduce the possibility that primary radius server cannot normal process be sent to a part of AAA message of radius server, and then can improve BRAS and be sent to the possibility that the corresponding user of a part of AAA message of radius server normally reaches the standard grade.
Embodiment 3
The embodiment of the present invention provides a kind of BRAS, when BRAS switches to primary radius server by AAA business by standby radius server, as shown in Figure 4, described BRAS can comprise: the first transmitting element 31, receiving element 32, the first determining unit 33, the second determining unit 34.
The first transmitting element 31, for sending an AAA message to described primary radius server according to the first default percentage.
Receiving element 32, for receiving the AAA response from described primary radius server, a described AAA responds as described primary radius server is after receiving a described AAA message of described the first transmitting element transmission, the response message to a described AAA message.
The first determining unit 33, responds for a described AAA who receives within first scheduled time according to described receiving element 32 the authentication success rate of determining described primary radius server.
The second determining unit 34, is preset to power threshold if the authentication success rate of the described primary radius server of determining for described the first determining unit 33 is more than or equal to, and determines that described primary radius server is in normal condition.
Described the first transmitting element 31, also, for determining that in described the second determining unit 34 described primary radius server is after described normal condition, sends all AAA messages of described BRAS to described primary radius server.
Further, as shown in Figure 5, described BRAS, can also comprise: judging unit 35.
Judging unit 35, for sending a described AAA message according to the described first default percentage at described the first transmitting element 31 to before described primary radius server, judges whether to meet pre-conditioned.
Described the first transmitting element 31, if be also met described pre-conditionedly for 35 judgements of described judging unit, sends a described AAA message to described primary radius server according to the described first default percentage.
Further, as shown in Figure 6, described BRAS, can also comprise: the second transmitting element 36.
The second transmitting element 36, if be met described pre-conditionedly for 35 judgements of described judging unit, sends the 2nd AAA message to described standby radius server according to the second default percentage.
Wherein, the described first default percentage and the described second default percentage sum are 1.
Further alternative, described the second transmitting element 36, if also obtain not meeting described pre-conditioned for 35 judgements of described judging unit, sends all AAA messages of described BRAS to standby radius server.
It should be noted that, in a kind of application scenarios of the embodiment of the present invention, described meet described pre-conditioned, be specifically as follows: start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, and timing time surpassed for second scheduled time.
Or, in the another kind of application scenarios of the embodiment of the present invention, described meet described pre-conditioned, be specifically as follows: start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, within default the 3rd scheduled time, receive the 2nd AAA response from described primary radius server.
Wherein, described the 2nd AAA response is the response message of described primary radius server to the 3rd AAA message, and described the 3rd AAA message is that described BRAS was sent to the AAA message of described primary radius server before described AAA business is switched to described standby radius server.
Further, as shown in Figure 7, described BRAS, can also comprise: the 3rd determining unit 37.
The 3rd determining unit 37, if the authentication success rate of the described primary radius server of determining for described the first determining unit 33 is preset to power threshold described in being less than, determines that described primary radius server is in malfunction.
Further, described the first transmitting element 31, if also determine that for described the 3rd determining unit 37 described primary radius server is in described malfunction, sends the 4th AAA message to described primary radius server according to the described first default percentage.
Further, described the second transmitting element 36, if also determine that for described the 3rd determining unit 37 described primary radius server is in described malfunction, sends all AAA messages of described BRAS to standby radius server.
It should be noted that, in the BRAS that the embodiment of the present invention provides, the specific descriptions of part functional module can be with reference to the corresponding content in the inventive method embodiment, and the embodiment of the present invention is no longer described in detail here.
The BRAS that the embodiment of the present invention provides, will recognize in the process that AAA business switches to primary radius server by standby radius server, and BRAS sends an AAA message to primary radius server according to the first default percentage; Reception responds from an AAA of primary radius server, and according to the AAA response receiving in first scheduled time, determines the authentication success rate of primary radius server; If the authentication success rate of primary radius server is more than or equal to, be preset to power threshold, determine that primary radius server is in normal condition, and all AAA messages that send BRAS be to primary radius server.
Pass through this programme, can reduce because arrive in default fault time, and primary radius server is still in the situation of fault, BRAS blindly switches to primary radius server by user's AAA business, causes the possibility that a large amount of AAA business can not normal process.In this programme, after determining primary radius server fault, only according to the first default percentage, send an AAA message to primary radius server, and definite primary RIDIUS in Preset Time to the ratio of an AAA message response during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server, thereby the possibility of the AAA message that the primary radius server that can reduce BRAS in prior art directly user's AAA business to be switched to primary radius server when arrive in default switching time and cause is cannot normal process a large amount of.
Embodiment 4
The embodiment of the present invention provides a kind of BRAS, as shown in Figure 8, comprising: transmitter 41, receiver 42 and processor 43.
Transmitter 41, for sending an AAA message to described primary radius server according to the first default percentage.
Receiver 42, for receiving the AAA response from described primary radius server,, a described AAA responds as described primary radius server is after receiving a described AAA message of described transmitter 41 transmissions, the response message to a described AAA message.
Processor 43, responds for a described AAA who receives within first scheduled time according to described receiver 42 the authentication success rate of determining described primary radius server.
Described processor 43, if be also more than or equal to and be preset to power threshold for the authentication success rate of described primary radius server, determines that described primary radius server is in normal condition.
Described transmitter 41, also, for determining that at described processor 43 described primary radius server is after described normal condition, sends all AAA messages of described BRAS to described primary radius server.
Further, described processor 43, also, for sending a described AAA message according to the described first default percentage at described transmitter 41 to before described primary radius server, judges whether to meet pre-conditioned.
Described transmitter 41, if also determine and meet described pre-conditionedly for described processor 43, sends a described AAA message to described primary radius server according to the described first default percentage.
Further, described transmitter 41, if also determine and to meet described pre-conditionedly for described processor, sends the 2nd AAA message to described standby radius server according to the second default percentage.
Wherein, the described first default percentage and the described second default percentage sum are 1.
Further, described transmitter 41, if also determine and do not meet described pre-conditionedly for described processor 43, sends all AAA messages of described BRAS to standby radius server.
Wherein, the described first default percentage and the second default percentage sum are 1.
It should be noted that, in a kind of application scenarios of the embodiment of the present invention, described meet described pre-conditioned, be specifically as follows: start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, and timing time surpassed for second scheduled time.
Or, in the another kind of application scenarios of the embodiment of the present invention, described meet described pre-conditioned, be specifically as follows: start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, within default the 3rd scheduled time, receive the 2nd AAA response from described primary radius server.
Wherein, described the 2nd AAA response is the response message of described primary radius server to the 3rd AAA message, and described the 3rd AAA message is that described BRAS was sent to the AAA message of described primary radius server before described AAA business is switched to described standby radius server.
Further, described processor 43, if be preset to power threshold described in being also less than for the described authentication success rate of described primary radius server, determines that described primary radius server is in malfunction.
Further, described transmitter 41, if also determine that for described processor 43 described primary radius server is in described malfunction, sends the 4th AAA message to described primary radius server according to the described first default percentage.
Further, described transmitter 41, if also determine that for described processor 43 described primary radius server is in described malfunction, sends all AAA messages of described BRAS to standby radius server.
The BRAS that the embodiment of the present invention provides, will recognize in the process that AAA business switches to primary radius server by standby radius server, and BRAS sends an AAA message to primary radius server according to the first default percentage; Reception responds from an AAA of primary radius server, and according to the AAA response receiving in first scheduled time, determines the authentication success rate of primary radius server; If the authentication success rate of primary radius server is more than or equal to, be preset to power threshold, determine that primary radius server is in normal condition, and all AAA messages that send BRAS be to primary radius server.
Pass through this programme, can reduce because arrive in default fault time, and primary radius server is still in the situation of fault, BRAS blindly switches to primary radius server by user's AAA business, causes the possibility that a large amount of AAA business can not normal process.In this programme, after determining primary radius server fault, only according to the first default percentage, send an AAA message to primary radius server, and definite primary RIDIUS in Preset Time to the ratio of this AAA message response during higher than predetermined threshold value, just determine that primary radius server is in normal condition, then just user's AAA business is switched to primary radius server, thereby the possibility of the AAA message that the primary radius server that can reduce BRAS in prior art directly user's AAA business to be switched to primary radius server when arrive in default switching time and cause is cannot normal process a large amount of.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device be divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of embodiment of the present invention scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (16)

1. a message transmitting method, it is characterized in that, be applied to long-range BAS Broadband Access Server BRAS authentication,authorization,accounting AAA business is switched in the process of primary radius server by standby remote customer dialing authentication service radius server, described method comprises:
Described BRAS sends an AAA message to described primary radius server according to the first default percentage;
Described BRAS receives the AAA response from described primary radius server, and according to the authentication success rate of the definite described primary radius server of a described AAA response receiving in first scheduled time, a described AAA response is the response message of described primary radius server to a described AAA message;
If the authentication success rate of described primary radius server is more than or equal to, be preset to power threshold, described BRAS determines that described primary radius server is in normal condition, and all AAA messages that send described BRAS are to described primary radius server.
2. message transmitting method according to claim 1, is characterized in that, sends an AAA message to before described primary radius server at described BRAS according to the first default percentage, and described method also comprises:
Described BRAS judges whether to meet pre-conditioned;
Described BRAS sends an AAA message to described primary radius server according to the first default percentage, comprising:
If meet described pre-conditionedly, described BRAS sends a described AAA message to described primary radius server according to the described first default percentage.
3. message transmitting method according to claim 2, is characterized in that, also comprises:
If meet described pre-conditionedly, described BRAS sends the 2nd AAA message to described standby radius server according to the second default percentage;
Wherein, the described first default percentage and the described second default percentage sum are 1.
4. message transmitting method according to claim 2, is characterized in that, also comprises:
If do not meet described pre-conditionedly, all AAA messages that described BRAS sends described BRAS are to standby radius server.
5. according to the message transmitting method described in any one in claim 2-4, it is characterized in that, describedly meet described pre-conditionedly, be specially:
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, and timing time surpassed for second scheduled time;
Or,
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, receives the 2nd AAA response from described primary radius server within default the 3rd scheduled time;
Wherein, described the 2nd AAA response is the response message of described primary radius server to the 3rd AAA message, and described the 3rd AAA message is that described BRAS was sent to the AAA message of described primary radius server before described AAA business is switched to described standby radius server.
6. message transmitting method according to claim 1, is characterized in that, also comprises:
If be preset to power threshold described in the described authentication success rate of described primary radius server is less than, described BRAS determines that described primary radius server is in malfunction.
7. message transmitting method according to claim 6, is characterized in that, also comprises:
If described BRAS determines that described primary radius server is in described malfunction, described BRAS sends the 4th AAA message to described primary radius server according to the described first default percentage.
8. message transmitting method according to claim 6, is characterized in that, also comprises:
If described BRAS determines that described primary radius server is in described malfunction, described BRAS sends all AAA messages of described BRAS to standby radius server.
9. a BRAS, is characterized in that, comprising:
The first transmitting element, for sending an AAA message to described primary radius server according to the first default percentage;
Receiving element, for receiving the AAA response from described primary radius server, a described AAA responds as described primary radius server is after receiving a described AAA message of described the first transmitting element transmission, the response message to a described AAA message;
The first determining unit, responds for a described AAA who receives within first scheduled time according to described receiving element the authentication success rate of determining described primary radius server;
The second determining unit, is preset to power threshold if the authentication success rate of the described primary radius server of determining for described the first determining unit is more than or equal to, and determines that described primary radius server is in normal condition;
Described the first transmitting element, also for determining that in described the second determining unit described primary radius server is after described normal condition, sends all AAA messages of described BRAS to described primary radius server.
10. BRAS according to claim 9, is characterized in that, also comprises:
Judging unit, for sending a described AAA message according to the described first default percentage at described the first transmitting element to before described primary radius server, judges whether to meet pre-conditioned;
Described the first transmitting element, if be met described pre-conditionedly specifically for the judgement of described judging unit, sends a described AAA message to described primary radius server according to the described first default percentage.
11. BRAS according to claim 10, is characterized in that, also comprise:
The second transmitting element, if be met described pre-conditionedly for the judgement of described judging unit, sends the 2nd AAA message to described standby radius server according to the second default percentage;
Wherein, the described first default percentage and the described second default percentage sum are 1.
12. BRAS according to claim 10, is characterized in that, also comprise:
The second transmitting element, if obtain not meeting described pre-conditioned for the judgement of described judging unit, sends all AAA messages of described BRAS to standby radius server.
13. according to the BRAS described in any one in any one in claim 10-12, it is characterized in that, describedly meets described pre-conditionedly, is specially:
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, and timing time surpassed for second scheduled time;
Or,
Start timing the default finish time that described BRAS switches to described AAA business described standby radius server by described primary radius server from described BRAS, receives the 2nd AAA response from described primary radius server within default the 3rd scheduled time;
Wherein, described the 2nd AAA response is the response message of described primary radius server to the 3rd AAA message, and described the 3rd AAA message is that described BRAS was sent to the AAA message of described primary radius server before described AAA business is switched to described standby radius server.
14. BRAS according to claim 9, is characterized in that, also comprise:
The 3rd determining unit, if the authentication success rate of the described primary radius server of determining for described the first determining unit is preset to power threshold described in being less than, determines that described primary radius server is in malfunction.
15. BRAS according to claim 14, it is characterized in that, described the first transmitting element, if also determine that for described the 3rd determining unit described primary radius server is in described malfunction, according to the described first default percentage, send the 4th AAA message to described primary radius server.
16. BRAS according to claim 14, is characterized in that,
The second transmitting element, if also determine that for described the 3rd determining unit described primary radius server is in described malfunction, sends all AAA messages of described BRAS to standby radius server.
CN201310754007.8A 2013-12-31 A kind of message transmitting method and device Active CN103731310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310754007.8A CN103731310B (en) 2013-12-31 A kind of message transmitting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310754007.8A CN103731310B (en) 2013-12-31 A kind of message transmitting method and device

Publications (2)

Publication Number Publication Date
CN103731310A true CN103731310A (en) 2014-04-16
CN103731310B CN103731310B (en) 2016-11-30

Family

ID=

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410990A (en) * 2014-11-14 2015-03-11 迈普通信技术股份有限公司 Method and system for realizing access authentication server switchover
CN106332078A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Dot1x user authentication system, method and system
CN106341270A (en) * 2016-09-23 2017-01-18 杭州华三通信技术有限公司 Fault processing method and device
CN106533798A (en) * 2016-12-15 2017-03-22 北京小米移动软件有限公司 Detection method and device
CN110519351A (en) * 2019-08-15 2019-11-29 中国平安财产保险股份有限公司 Data processing method, device, equipment and computer readable storage medium
CN110932956A (en) * 2019-11-15 2020-03-27 北京连山时代科技有限公司 Method for networking by combining multi-path concurrent system and VPDN

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848754A (en) * 2005-04-13 2006-10-18 华为技术有限公司 Control method for switching server
CN101453341A (en) * 2008-12-19 2009-06-10 中兴通讯股份有限公司 Automatic switching system for remote authentication dialing user server and implementation method thereof
JP2010062667A (en) * 2008-09-01 2010-03-18 Hitachi Cable Ltd Network equipment and network system
CN101841609A (en) * 2009-03-19 2010-09-22 中国移动通信集团安徽有限公司 Call flow processing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848754A (en) * 2005-04-13 2006-10-18 华为技术有限公司 Control method for switching server
JP2010062667A (en) * 2008-09-01 2010-03-18 Hitachi Cable Ltd Network equipment and network system
CN101453341A (en) * 2008-12-19 2009-06-10 中兴通讯股份有限公司 Automatic switching system for remote authentication dialing user server and implementation method thereof
CN101841609A (en) * 2009-03-19 2010-09-22 中国移动通信集团安徽有限公司 Call flow processing method, device and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410990A (en) * 2014-11-14 2015-03-11 迈普通信技术股份有限公司 Method and system for realizing access authentication server switchover
CN104410990B (en) * 2014-11-14 2018-10-30 迈普通信技术股份有限公司 Realize the method and system of access authentication server switching
CN106332078A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Dot1x user authentication system, method and system
CN106332078B (en) * 2015-06-26 2020-05-05 中兴通讯股份有限公司 dot1x user authentication system, method and device
CN106341270A (en) * 2016-09-23 2017-01-18 杭州华三通信技术有限公司 Fault processing method and device
CN106341270B (en) * 2016-09-23 2019-09-17 新华三技术有限公司 A kind of fault handling method and device
CN106533798A (en) * 2016-12-15 2017-03-22 北京小米移动软件有限公司 Detection method and device
CN106533798B (en) * 2016-12-15 2019-09-20 北京小米移动软件有限公司 Detection method and device
CN110519351A (en) * 2019-08-15 2019-11-29 中国平安财产保险股份有限公司 Data processing method, device, equipment and computer readable storage medium
CN110932956A (en) * 2019-11-15 2020-03-27 北京连山时代科技有限公司 Method for networking by combining multi-path concurrent system and VPDN

Similar Documents

Publication Publication Date Title
CN107395697B (en) Push channel selection method, message push method, device and equipment, and readable medium
CN102547556B (en) Adding method of user association relationship, mobile terminal and server
CN107943650B (en) Application program control method and device, storage medium and terminal
CN108810116B (en) Message processing method and related product
CN104320756A (en) Account information changing method and device
CN103685423A (en) Information receiving method, device and system
CN106060909A (en) Network access method and mobile terminal
CN103294530A (en) Terminal equipment and application program management method thereof
CN104380769A (en) Information reminding method, apparatus, and electronic terminal
CN103177104A (en) Searching method and device of application program
CN103402186A (en) Incoming phonecall switching method and communication terminal
CN105262881A (en) Communication control method and electronic equipment
CN103209418A (en) Mobile terminal and wireless fidelity (WIFI) hot spot information updating method thereof
CN105557045A (en) Access network node, core network node and paging method
CN105488678A (en) Payment behavior information acquisition method and system
CN106604316A (en) Wireless access equipment fault positioning method, device and system
US20220221924A1 (en) Prioritized Usage of Devices
CN104702647A (en) Information request method and information request system
CN103927680A (en) Delivery release sending method and device for products related to network application
CN104869445A (en) A method for realizing content sharing between intelligent terminals based on a cloud system and the cloud system
CN103841172A (en) Application download operation statistic method and device based on user terminal identification comparison
CN102346822B (en) Traceable mobile storage device, system and tracking method
CN104378806B (en) Information processing method and terminal device
CN103731310A (en) Message transmitting method and device
CN104301235A (en) Network flow control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant