CN104486239A - Method for controlling sending rate of RADIUS messages - Google Patents

Method for controlling sending rate of RADIUS messages Download PDF

Info

Publication number
CN104486239A
CN104486239A CN201410774204.0A CN201410774204A CN104486239A CN 104486239 A CN104486239 A CN 104486239A CN 201410774204 A CN201410774204 A CN 201410774204A CN 104486239 A CN104486239 A CN 104486239A
Authority
CN
China
Prior art keywords
message
radius
messages
xsendold
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410774204.0A
Other languages
Chinese (zh)
Inventor
李胜军
周能强
潘伟
汪申华
周光如
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Province Postal Communication Electricity Ltd Co
Anhui Wantong Posts and Telecommunications Co Ltd
Original Assignee
Anhui Province Postal Communication Electricity Ltd Co
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 Anhui Province Postal Communication Electricity Ltd Co filed Critical Anhui Province Postal Communication Electricity Ltd Co
Priority to CN201410774204.0A priority Critical patent/CN104486239A/en
Publication of CN104486239A publication Critical patent/CN104486239A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to the field of communication, and discloses a method for controlling the sending rate of a RADIUS (Remote Authentication Dial In User Service) messages. The method comprises the following steps of A, setting the maximum number Xmax of messages sent per second on equipment, and developing a section of cache for storing RADIUS messages to be sent in a system; B, setting a time interval of a scanning timer of a queue, and setting time for scanning the cached queue at the timer, wherein the time interval is shorter than 100 milliseconds, and a time length of the timer is shorter than 1 second; C, acquiring current system time of which the unit is second, rounding and obtaining the initial time Tinit of the current system time, and recording the number of messages which are sent till the current system time as Xsendold 0; D, when new RADIUS messages are generated by the equipment, storing the new RADIUS messages to the tail of the cache for sending; E, acquiring system time Tnow, acquiring the maximum number Xsend of messages which are sent this time according to Xsend=Xmax*(Tnow-Tinit)-Xsendold, sending not more than Xsend messages, adding the number Xsendold of the messages which are sent till the current system time to Xsend, and storing the sum as the value of Xsendold. According to the method, the messages can be uniformly sent, and impact on a RADIUS server is avoided.

Description

A kind of method of control RADIUS message transmitting spped rate
Technical field
The present invention relates to the communications field, particularly relate to a kind of method of control RADIUS message transmitting spped rate.
Background technology
RADIUS is a kind of AAA(Authentication, Authorization, Accounting) the network application agreement of type, for functions such as authentication, authorization, accountings.This protocol realization is for the Long-distance Control of user's access.Usually, a radius server can receive the RADIUS message of multiple network equipment, like this, very high requirement is proposed to the disposal ability of radius server: if a radius server is connected with 10 network equipments, the maximum transmissions per second of every platform 2000 messages, then radius server needs are per second can process 20000 messages, for most server, it is inconvenient for reaching such processing speed, overstocking and postponing, the serious collapse that even may cause radius server of message will be caused.Therefore, the server requirement network equipment carries out speed limit to transmission RADIUS message.Therefore the network equipment does the restriction of a maximum transmission hundreds of message per second usually.But, generation due to RADIUS message has paroxysmal feature---and such as line card the reason such as to be restarted and user's short time may be caused to roll off the production line in a large number and reach the standard grade, in one second, same transmission rate is uneven like this: a possible hundreds of message all mails to radius server in several milliseconds, server is impacted, affects treatment effect.
Summary of the invention
The present invention is directed to the network equipment in prior art and there is paroxysmal shortcoming to radius server transmission message, provide a kind of method of control RADIUS message transmitting spped rate.
In order to solve the problems of the technologies described above, the present invention is solved by following technical proposals:
A method for control RADIUS message transmitting spped rate, comprises the following steps:
A: maximum transmission message number Xmax per second is set on equipment, and open up one section of buffer memory in systems in which and the radius message to be sent such as to deposit;
B: the scanning Timer interval that queue is set, the time interval is less than 100 milliseconds; At timer setting timing scan buffer queue, this timer duration is less than 1 second;
C: obtain present system time, chronomere is second, then round and obtain the initial time Tinit of present system time, and recording present system time, to have sent message number be Xsendold 0;
D: after equipment produces new RADIUS message, is stored in buffer memory afterbody etc. to be sent;
E: get system time Tnow, obtains this and sends maximum message segment number Xsend=Xmax*(Tnow-Tinit)-Xsendold, send the message being no more than maximum message segment number Xsend; Add that present system time has sent message number Xsendold and saved as Xsendold value;
F: after arriving timer duration, performs step e);
G: repeat step D) and F).
As preferably, described equipment and radius server run in an ip network respectively, and described equipment and radius server carry out cooperating.
As preferably, described equipment is router or access server.This equipment is the arbitrary network equipment that can carry out the transmission of radius message, comprises router, access server etc.
The present invention, owing to have employed above technical scheme, has significant technique effect:
The present invention arranges maximum transmission message number Xmax per second, record and sent message number Xsendold current second, the network equipment is (interval is less than 1 second) acquisition present system time Tinit at set intervals, unit second, be accurate to millisecond, triggered by event (as receive RADIUS message, the timer time of setting arrive) and send RADIUS message, calculate the difference of current time Tnow and Tinit, current maximum transmission message number Xsend=Xmax*(Tnow-Tinit)-Xsendold.Like this, just achieve the even transmission of message, avoid the impact to radius server.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is network diagram of the present invention;
Fig. 2 is the flow chart of control RADIUS message transmitting spped rate method of the present invention.
Embodiment
Below in conjunction with embodiment, the present invention is described in further detail, and following examples are explanation of the invention and the present invention is not limited to following examples.
As shown in Figure 1, described equipment and radius server run in an ip network respectively, and described equipment and radius server carry out cooperating.
Embodiment 1:
A method for control RADIUS message transmitting spped rate, as shown in Figure 2, comprises the following steps:
A: maximum transmission message number Xmax per second is set on equipment, and open up one section of buffer memory in systems in which and the radius message to be sent such as to deposit;
B: the scanning Timer interval that queue is set, the time interval is less than 100 milliseconds; At timer setting timing scan buffer queue, this timer duration is less than 1 second;
C: obtain present system time, chronomere is second, then round and obtain the initial time Tinit of present system time, and recording present system time, to have sent message number be Xsendold 0;
D: after equipment produces new RADIUS message, is stored in buffer memory afterbody etc. to be sent;
E: get system time Tnow, obtains this and sends maximum message segment number Xsend=Xmax*(Tnow-Tinit)-Xsendold, send the message being no more than maximum message segment number Xsend; Add that present system time has sent message number Xsendold and saved as Xsendold value;
F: after arriving timer duration, performs step e);
G: repeat step D) and F).
The equipment related in whole step is router.
Embodiment 2:
A: set maximum transmission message number Xmax=600 per second on equipment;
B: the timer 100 milliseconds that timing scan buffer queue is set;
C: when there being new message to add buffer memory, performs next step;
D: get system time Tnow=1.05 second, remove fractional part and obtain Tinit=1 second, now Xsendold=0, obtain this and send maximum message segment number Xsend=Xmax*(Tnow-Tinit)-Xsendold, through calculating, the maximum message segment number of transmission is no more than the message of Xsend=30; Sent message number Xsendold and saved as Xsendold value when adding Tinit=1 second, this duration is 30;
E: when timer time then, perform D), now system time Tnow=1.10 second, remove fractional part and obtain Tinit=1 second, now Xsendold=30, send and be no more than 30 messages, preserve Xsendold value, this duration is 60;
, E) G: repetition step C).
In addition, it should be noted that, the specific embodiment described in this specification, the shape, institute's title of being named etc. of its parts and components can be different.All equivalences of doing according to structure, feature and the principle described in inventional idea of the present invention or simple change, be included in the protection range of patent of the present invention.Those skilled in the art can make various amendment or supplement or adopt similar mode to substitute to described specific embodiment; only otherwise depart from structure of the present invention or surmount this scope as defined in the claims, protection scope of the present invention all should be belonged to.

Claims (3)

1. a method for control RADIUS message transmitting spped rate, is characterized in that, comprises the following steps:
A: maximum transmission message number Xmax per second is set on equipment, and open up one section of buffer memory in systems in which and the radius message to be sent such as to deposit;
B: the scanning Timer interval that queue is set, the time interval is less than 100 milliseconds; At timer setting timing scan buffer queue, this timer duration is less than 1 second;
C: obtain present system time, chronomere is second, then round and obtain the initial time Tinit of present system time, and recording present system time, to have sent message number be Xsendold 0;
D: after equipment produces new RADIUS message, is stored in buffer memory afterbody etc. to be sent;
E: get system time Tnow, obtains this and sends maximum message segment number Xsend=Xmax*(Tnow-Tinit)-Xsendold, send the message being no more than maximum message segment number Xsend; Add that present system time has sent message number Xsendold and saved as Xsendold value;
F: after arriving timer duration, performs step e);
G: repeat step D) and F).
2. the method for a kind of control RADIUS message transmitting spped rate according to claim 1, it is characterized in that: described equipment and radius server run in an ip network respectively, described equipment and radius server carry out cooperating.
3. the method for a kind of control RADIUS message transmitting spped rate according to claim 1 and 2, is characterized in that: described equipment is router or access server.
CN201410774204.0A 2014-12-16 2014-12-16 Method for controlling sending rate of RADIUS messages Pending CN104486239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410774204.0A CN104486239A (en) 2014-12-16 2014-12-16 Method for controlling sending rate of RADIUS messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410774204.0A CN104486239A (en) 2014-12-16 2014-12-16 Method for controlling sending rate of RADIUS messages

Publications (1)

Publication Number Publication Date
CN104486239A true CN104486239A (en) 2015-04-01

Family

ID=52760744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410774204.0A Pending CN104486239A (en) 2014-12-16 2014-12-16 Method for controlling sending rate of RADIUS messages

Country Status (1)

Country Link
CN (1) CN104486239A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466334A (en) * 2002-06-12 2004-01-07 ��Ϊ�������޹�˾ Method for controlling message transmitting spped rate in router interface
US20080068999A1 (en) * 2006-09-19 2008-03-20 Ntt Docomo, Inc. Data flow amount control device and data flow amount control method
CN102368729A (en) * 2011-09-23 2012-03-07 北京东方网信科技股份有限公司 Accurate network speed limit method at non-realtime system
CN104093135A (en) * 2014-07-18 2014-10-08 杭州华三通信技术有限公司 RADIUS authentication charging speed adjusting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466334A (en) * 2002-06-12 2004-01-07 ��Ϊ�������޹�˾ Method for controlling message transmitting spped rate in router interface
US20080068999A1 (en) * 2006-09-19 2008-03-20 Ntt Docomo, Inc. Data flow amount control device and data flow amount control method
CN102368729A (en) * 2011-09-23 2012-03-07 北京东方网信科技股份有限公司 Accurate network speed limit method at non-realtime system
CN104093135A (en) * 2014-07-18 2014-10-08 杭州华三通信技术有限公司 RADIUS authentication charging speed adjusting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋睿 等: "《信息与通信工程研究生规划教材 网络信息安全理论与技术》", 30 November 2007, 武汉:华中科技大学出版社 *

Similar Documents

Publication Publication Date Title
US10631144B2 (en) Method and device for charging traffic data flow of user equipment
CN108810119A (en) block chain processing method, device and block chain node
CN107454276A (en) A kind of subscriber terminal equipment and its data forwarding method and communication system
EP3076290A1 (en) Method and device for remotely updating application program
CN105635017B (en) A kind of transmission method and equipment of targeting signal
CN108737949A (en) Bluetooth equipment and its method for avoiding WiFi system from interfering and Bluetooth system
CN103095831A (en) Method of maintaining heartbeat mechanism, wireless local area network (WLAN) client terminal and procedure server
CN102780688A (en) Method and device for preventing attack under transmission control protocol (TCP)
CN106713495A (en) Uploading method and apparatus, access method and apparatus, and access system of IP geographic position
CN108769142A (en) Exchange information processing method and block generate node
CN105208081A (en) Method and system realizing network communication through subscription mode
WO2012001514A3 (en) Management of serving gateways for enhanced performance
CN107294830B (en) A kind of data transmission method and system
CN106330674A (en) On-line information pushing system
CN104380644B (en) A kind of method for transmitting information, base station and user equipment
CN108012294A (en) A kind of method and device of network switching
CN101478409B (en) Fee charging control method and wideband access server
CN103402229B (en) A kind of data download method and system
CN104410962A (en) A terminal user network traffic monitoring method and device
CN106506669B (en) Method, device and system for processing session information
CN104486239A (en) Method for controlling sending rate of RADIUS messages
CN105207768A (en) Reminding method and system for time inconsistency between router side access device and Internet
CN105517014A (en) Grouping polling method of wireless communication
CN104394586A (en) Synchronization method and system of miniature base station and clock server
CN105610728A (en) Web crawler flow control automatic degradation method based on time window

Legal Events

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

Application publication date: 20150401

RJ01 Rejection of invention patent application after publication