CN1269649A - Automatic distribution method of session mark for network equipment - Google Patents

Automatic distribution method of session mark for network equipment Download PDF

Info

Publication number
CN1269649A
CN1269649A CN 99105446 CN99105446A CN1269649A CN 1269649 A CN1269649 A CN 1269649A CN 99105446 CN99105446 CN 99105446 CN 99105446 A CN99105446 A CN 99105446A CN 1269649 A CN1269649 A CN 1269649A
Authority
CN
China
Prior art keywords
session
network equipment
time
value
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 99105446
Other languages
Chinese (zh)
Other versions
CN1119887C (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 CN 99105446 priority Critical patent/CN1119887C/en
Publication of CN1269649A publication Critical patent/CN1269649A/en
Application granted granted Critical
Publication of CN1119887C publication Critical patent/CN1119887C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The automatic distribution method of conversational identification of network equipment is characterized by that the conversational identification distributed by network equipment with RADIUS customer terminal is related to time, and when the number of bits and character set of conversational identification are limited by server, the distribution of the conversational identification must be promoted by means of proper interval time. Its steps include: defining unit time t, defining base number D, culculating basic dependent value d, setting a timing less than bXt, calculating conversational dependent value and distributing conversational identification for said user according to conversational dependent value. Said method can automatically prevent repetitive distribution of conversational identification, and has no need of modifying program.

Description

The auto-allocation method of session mark for network equipment
The present invention relates to the method for the automatic assign sessions sign of a kind of network equipment, specifically, relate to a kind of employed radius protocol of the network equipment (abbreviation of dial-in customer's remote validation service Remote AuthenticationDial In User Service that is, referring to RFC 2138, RFC 2139) in the remote dial-in user verified and remember the auto-allocation method of the session identification of expense belong to data communication field.
Session identification is the time-consuming character string that is used for identifying each dial-in customer's session of note, the user dials in the network equipment (such as access server), this network equipment is as radius client, can generate this time session that a character string is come this dial-in customer of unique identification, remember time-consuming use for the server end of RADIUS.In RFC 2139, the English of session identification is " Acct-Session-Id ".
A kind of distribution method of session mark for network equipment has been described: be to use 8 capitalization 16 system numbers to represent in RFC 2139, the front two numeral increases (per 256 times restart then will repeat) when restarting in each system, back 6 bit digital all since 0 (to the user of first login), are assigned to 2^24-1 (being approximately 1,000 6 hundred ten thousand) at every turn always after restarting.In addition, also have other possible coded systems.
Said method has used one 8 character string to identify each session, and 2 are used for writing down the number of times that radius client restarts, back 6 since 0, just add 1 after each user logins into.According to the method for salary distribution of above-mentioned session identification, guarantee that session identification does not repeat in for a long time, the number of times that just must have the memory (such as hard disk) of " data are not lost after the power down " to come memory machine to think highly of to open.Otherwise, to restart after each machine power down, session identification that will the same primary distribution repeats.
The method that some present access server generates session identification is: after restarting at every turn, session identification just distributes since fixing data, be that the memory of neither one " data are not lost after the power down " is used for memory machine and thinks highly of the number of times of new startup, like this, if machine restarts, for fear of the repetition of session identification, just need manual resetting.
If as the length long enough of the character string of session identification, or the scope of character set enough big (being not only 0 to 9 or 0 to E ten character), so, the time is connected with session identification, just can satisfy the automatic distribution of session identification.But, for some radius server that has used at present, the character string that it may attempt to receive converts lint-long integer (one of reason that it is possible is that the radius server program can be to logical with the radius client of at that time some network equipment at that time, and does not do consideration for later upgrading more) to.Radius server that has even requirement are in the long time, (radius server is handled the session sign as primary key) do not repeated to the logical session identification that radius client distributed in all and it when setting up database, like this, originally, had only the long of 10 (decimal systems) will tell several and identified the different network equipments.In order to guarantee effective distribution of session identification, behind system's abnormal shutdown, also can only carry out manual assignment to session identification.This manual assignment had both bothered loaded down with trivial details, made mistakes easily again.
The purpose of this invention is to provide a kind of auto-allocation method that can overcome the session mark for network equipment of above-mentioned many disadvantages.On radius server,, so just can think that the distribution of this session identification is unduplicated in a very long time if session identification does not repeat.Use distribution method of the present invention, when the network equipment that has radius client behind abnormal shutdown, when restarting, even the number of times that the memory stores machine of equipment " data are not lost after the power down " of no use has restarted, still can avoid the duplicate allocation of session identification automatically, and need not to carry out again manual configuration; And satisfied to a great extent online in the harsh requirement of the radius server that uses to session identification, revise its program and need not present radius server.
The present invention is achieved in that the session identification and the time correlation of the network equipment distribution that will have radius client.
Its concrete steps are as follows:
(1). determine unit interval t, this unit interval t is not more than on average the fastest turn-on time of the T of the network equipment;
(2). calculate substantially according to value d, its computational methods are: the system time that obtains current network equipment is counted n, d=n to the unit interval of some fixed times;
(3). when having the user to dial in, calculate session identification:
I user calculated session according to value d (i), and computational methods are:
D (l)=d, d (i+l)=d (i)+k (wherein i and k are not less than 1 integer);
According to calculating session identification S (i) according to value d (i), computational methods are:
S (i)=f (d (i)), f (x) is a kind of coded system of numerical value x,
If that is: integer x!=y, a f (x) so!=f (y).
When radius server is restricted to the figure place of session identification and character set, should regularly promote through the proper spacing time to the distribution of session identification.
Its concrete operations step is as follows:
(1). determine unit interval t, this unit interval t is not more than in T on average the fastest turn-on time of the network equipment, wherein
(2). determine radix b, suppose that this radius server requirement session identification does not repeat at least in the m time range, radix b just can select to be not less than certain numeral of (m/t) so, i.e. b>=(m/t);
(3). calculate basic according to value d, and begin to set a timing time that is not more than b * t, basic computational methods according to value d are: the system time that obtains current network equipment is counted n to the unit interval of some fixed times, and so basic foundation value d is: n mould b, i.e. d=n%b;
(4) if. timing time arrives, and begins to carry out from step 3 so again, promptly regularly promotes; Otherwise i the user who dials in after beginning for the last timing calculates session according to value d (i), and be that this user's assign sessions identifies S (i) according to session according to value d (i), and method is as follows:
The computational methods of a.d (i) are: d (l)=d, d (i+l)=(d (i)+k) %b (and wherein i is the integer greater than 0, k be 1-1 or other and the relatively prime integer of b);
B. the computational methods of session identification S (i) are: S (i)=f (d (i)), f (x) is a kind of coded system of numerical value x, S (i) can be the decimal representation of d (i), also can be hexadecimal representation, or other energy will be set up any coding (if i.e. x! of corresponding relation less than the same character set of the positive integer of b=y, x<b and y<b, a f (x) so!=f (y)).
Several characters of front that session can be identified are as the heterogeneous networks equipment mark, and other characters are still handled according to method recited above.
Several characters of the ad-hoc location that session can be identified are as the heterogeneous networks equipment mark, and other characters are still handled according to method recited above.
The auto-allocation method of session identification proposed by the invention when restarting, can be avoided the duplicate allocation of session identification automatically behind the equipment abnormal shutdown, need not to carry out manual configuration again; Also need not the number of times that the memory stores machine with " data are not lost after the power down " has restarted.And the satisfied to a great extent radius server that has existed on the net is to the harsh requirement of session identification, for the session identification of the network equipment effectively distributes, and need not (perhaps designing to such an extent that be not good) radius server update routine of having used on the network.
Introduce concrete operations step of the present invention in detail below in conjunction with accompanying drawing:
Fig. 1 is the flow chart of the auto-allocation method of the present invention when not having regularly to promote.
Fig. 2 is the present invention at the flow chart that is provided with the auto-allocation method when regularly promoting.
Referring to Fig. 1, the present invention is a kind of auto-allocation method of session mark for network equipment, is the session identification and the time correlation that will have the network equipment distribution of radius client, and its concrete steps are as follows:
(1). determine unit interval t, this unit interval t is not more than on average the fastest turn-on time of the T of the network equipment;
(2). calculate substantially according to value d, its computational methods are: the system time that obtains current network equipment is counted n, d=n to the unit interval of some fixed times;
(3). when having the user to dial in, calculate session identification:
I user calculated session according to value d (i), and computational methods are:
D (l)=d, d (i+l)=d (i)+k (wherein i and k are not less than 1 integer);
According to calculating session identification S (i) according to value d (i), computational methods are:
S (i)=f (d (i)), f (x) is a kind of coded system of numerical value x,
If that is: integer x!=y, a f (x) so!=f (y).
Referring to Fig. 2, the present invention is a kind of auto-allocation method that is applied to have the session mark for network equipment of radius client, and it is to have session identification and the time correlation that the network equipment of radius client distributes; When radius server is restricted to the figure place of session identification and character set, should regularly promote through the proper spacing time to the distribution of session identification.Its concrete operations step is as follows:
(1). determine unit interval t, this unit interval t is not more than in T on average the fastest turn-on time of the network equipment, wherein
Such as, certain access server has 30 user ports, and each user consults to login to the end successfully to need for 45 seconds from MODEM, so, be (45 seconds/30=1.5 second) the on average the fastest turn-on time of the network equipment, unit interval t can be chosen as be not more than 1.5 seconds any on the occasion of, such as being 1 second, i.e. t<=T;
2. determine radix b, suppose that this radius server requirement session identification does not repeat at least in the m time range, radix b just can select to be not less than certain numeral of (m/t) so.Be b>=(m/t);
3. calculate basic according to value d, and begin to set a timing time that is not more than b * t, basic computational methods according to value d are: the system time that obtains current network equipment is counted n to the unit interval of some fixed times, and so basic is n mould b, i.e. d=n%b according to value d;
4. if timing time arrives, so again, begin to carry out (regularly promoting) from step 3, otherwise i the user who dials in after beginning for the last timing calculates session according to value d (i), and according to the session identification S (i) of session according to value d (i) generation user, method is as follows:
The computational methods of a.d (i) are: d (l)=d, d (i+l)=(d (i)+k) %b (and wherein i is the integer greater than 0, k be 1-1 or other and the relatively prime integer of b)
B. the computational methods of session identification S (i) are: S (i)=f (d (i)), f (x) is a kind of coded system of digital x, can be the decimal representation of d (i) such as S (i), also can be hexadecimal representation, or other energy will be set up any coding (if i.e. x! of corresponding relation less than the same character set of the positive integer of b=y, x<b and y<b, a f (x) so!=f (y)).
So the present invention will adopt the reason that regularly promotes to be: because unit interval t is shorter than the on average the fastest turn-on time of equipment, and session identification basic according to the value d (i) the generation mould b, like this, what suppose last session identification of equipment before restarting for the 2nd time is d (h) according to value, the 1st session identification after restarting for the 2nd time according to value (basic according to value) might be also littler than d (h) (because of mould b), little by 1 such as just caing be compared to d (h), so, the 2nd session identification after restarting for the 2nd time just at once ditto once last session identification repeated.
Regularly promoting is exactly restarting of analogue system, there is following suggestion (littler when a lot of than m about the time interval length that regularly promotes timer at b * t-m, iff satisfying less than b * t is not enough): at first, radix b is bigger than m/t, secondly, regularly promote too not frequent, the time interval length of suggestion timer should be at least during greater than average the fastest turn-on time of computing equipment selected that time section length.In addition, it is oversize that the timing of timer promotes that the time interval also do not establish, suggestion less than (b * t)/u, wherein, u is an integer, and order satisfies: u > b × t b × t - m
(b * t is divided into u part, and its u-1 part is bigger than m so, according to this condition, can calculate above-mentioned span).
Above-mentioned condition is an adequate condition, but is not necessary condition.Can guarantee like this: if any two session identifications is identical according to value, so, the time interval between them is necessarily big than m.
If the session identification that requires the different network equipments to distribute is also different, so, several characters of the front that session can be identified are as the sign of the network equipment, and other character is still handled according to method recited above.Also can be with several characters of the ad-hoc location of session sign sign as the network equipment, and other character is still handled according to method recited above.
Introduce one embodiment of the present of invention below: its condition is: radius server requires to represent session identification with one 10 decimal numeral character string forms.And require in 3 months, any two session identifications can not repeat.And user's the time of on average dialling in the soonest is 1.5 seconds.
In this case, can plan the decimal system sign (10 character strings) of a long like this, preceding 3 are used for representing that different equipment is (for fear of device number since 0, from 100 open numberings), getting the unit interval is 1 second (1 second<1.5 seconds), radix b is made as 10000000 (10 7 powers), (10000000 * 1 seconds/1 second/(86400 seconds/day)=115.74 days, greater than 3 months).Suppose session identification to be promoted or promote in per 1000000 seconds.And will be chosen to be 0: 0: 0 on the 1st January in 1970 as the fixed time of reference.
Suppose that radius client is to start behind behind the fixed time (promptly 1970 on January 1,0: 0: 0) in reference the 80000007th second, and supposing the system be numbered 100, so, if system's normally operation always, then the session identification of Fen Peiing according to value is:
1000000007,1000000008 ..., the dial-in customer number-1 of 1000000007+ in 1000000 second,
1001000007,1001000008 ..., the dial-in customer number-1 of 1001000007+ in second 1000000 second,
1002000007,1002000008 ..., the dial-in customer number-1 of 1002000007+ in the 3rd 1000000 second,
……
1009000007,1009000008 ..., the dial-in customer number-1 of 1009000007+ in the tenth 1000000 second,
1000000007,1000000008 ..., the dial-in customer number-1 of 1000000007+ in the 11 1000000 second,
……
Regard these numerals as character string, just can be used as the session identification that this radius client distributes.

Claims (6)

1. the auto-allocation method of a session mark for network equipment is characterized in that: be the session identification and the time correlation that will have the network equipment distribution of radius client.
2. the auto-allocation method of session mark for network equipment as claimed in claim 1, it is characterized in that: its concrete steps are as follows:
(1). determine unit interval t, this unit interval t is not more than on average the fastest turn-on time of the T of the network equipment;
(2). calculate substantially according to value d, its computational methods are: the system time that obtains current network equipment is counted n, d=n to the unit interval of some fixed times;
(3). when having the user to dial in, calculate session identification:
I user calculated session according to value d (i), and computational methods are:
D (l)=d, d (i+l)=d (i)+k (wherein i and k are not less than 1 integer)
According to calculating session identification S (i) according to value d (i), computational methods are:
S (i)=f (d (i)), f (x) is a kind of coded system of numerical value x,
If that is: integer x!=y, a f (x) so!=f (y).
3. the auto-allocation method of session mark for network equipment as claimed in claim 1 is characterized in that: when radius server is restricted to the figure place of session identification and character set, should regularly promote the distribution of session identification through the proper spacing time.
4. as the auto-allocation method of claim 1 or 3 described session mark for network equipment, it is characterized in that: its concrete steps are as follows:
(1). determine unit interval t, this unit interval t is not more than in T on average the fastest turn-on time of the network equipment, wherein
Figure A9910544600021
(2). determine radix b, suppose that this radius server requirement session identification does not repeat at least in the m time range, radix b just can select to be not less than certain numeral of (m/t) so, i.e. b>=(m/t);
(3). calculate basic according to value d, and begin to set a timing time that is not more than b * t, basic computational methods according to value d are: the system time that obtains current network equipment is counted n to the unit interval of some fixed times, and so basic foundation value d is: n mould b, i.e. d=n%b;
(4) if. timing time arrives, and begins to carry out from step 3 so again, promptly regularly promotes; Otherwise i the user who dials in after beginning for a nearly timing calculates session according to value d (i), and be that this user's assign sessions identifies S (i) according to session according to value d (i), and method is as follows:
The computational methods of a.d (i) are: d (l)=d, d (i+l)=(d (i)+k) %b (and wherein i is the integer greater than 0, k be 1-1 or other and the relatively prime integer of b);
B. the computational methods of session identification S (i) are: S (i)=f (d (i)), f (x) is a kind of coded system of numerical value x, S (i) can be the decimal representation of d (i), also can be hexadecimal representation, or other energy will be set up any coding (if i.e.: x! of corresponding relation less than the same character set of the positive integer of b=y, x<b and y<b, a f (x) so!=f (y)).
5. as the auto-allocation method of claim 1 or 3 described session mark for network equipment, it is characterized in that: several characters of front that session can be identified are as the heterogeneous networks equipment mark, and other characters are still handled according to method recited above.
6. as the auto-allocation method of claim 1 or 3 described session mark for network equipment, it is characterized in that: several characters of the ad-hoc location that session can be identified are as the heterogeneous networks equipment mark, and other characters are still handled according to method recited above.
CN 99105446 1999-04-07 1999-04-07 Automatic distribution method of session mark for network equipment Expired - Fee Related CN1119887C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 99105446 CN1119887C (en) 1999-04-07 1999-04-07 Automatic distribution method of session mark for network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 99105446 CN1119887C (en) 1999-04-07 1999-04-07 Automatic distribution method of session mark for network equipment

Publications (2)

Publication Number Publication Date
CN1269649A true CN1269649A (en) 2000-10-11
CN1119887C CN1119887C (en) 2003-08-27

Family

ID=5271990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 99105446 Expired - Fee Related CN1119887C (en) 1999-04-07 1999-04-07 Automatic distribution method of session mark for network equipment

Country Status (1)

Country Link
CN (1) CN1119887C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145117A1 (en) * 2009-09-24 2010-12-23 中兴通讯股份有限公司 Apparatus, system and method for reducing call loss of online charging system
CN103701790A (en) * 2013-12-20 2014-04-02 广东威创视讯科技股份有限公司 Method and device for generating session identifier in real time streaming protocol (RTSP)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145117A1 (en) * 2009-09-24 2010-12-23 中兴通讯股份有限公司 Apparatus, system and method for reducing call loss of online charging system
CN101697517B (en) * 2009-09-24 2012-06-06 中兴通讯股份有限公司 Device, system and method for reducing call loss in on-line billing
CN103701790A (en) * 2013-12-20 2014-04-02 广东威创视讯科技股份有限公司 Method and device for generating session identifier in real time streaming protocol (RTSP)
CN103701790B (en) * 2013-12-20 2017-02-08 广东威创视讯科技股份有限公司 Method and device for generating session identifier in real time streaming protocol (RTSP)

Also Published As

Publication number Publication date
CN1119887C (en) 2003-08-27

Similar Documents

Publication Publication Date Title
CN110505306B (en) Data ID generation method capable of specifying digit
CN1051622C (en) Client-server type network
CN103188279A (en) Method and device for downloading file from neighbor nodes through peer-to-peer network
CN101056280A (en) An upgrade management method and system for instant message client
CN1874357A (en) Method for generating id symbol
CN101035331A (en) Method of updating daylight saving time information in wireless terminal
CN1886976A (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN1467656A (en) Information sending method and system for instant communication tool
CN1119887C (en) Automatic distribution method of session mark for network equipment
CN111580992A (en) Distributed ID generation method and system
CN1314757A (en) Method for processing jam state of user part of news transmission part
CN112565475B (en) Ip address allocation method for adding new node in container cluster service layer
US11782752B1 (en) System and method for assigning tasks
CN101694661A (en) Method and device for generating statistical form and statistical server
CN1243431C (en) Analysis of universal route platform command lines
CN105610593B (en) Method and device for distributing resource identification in network management system
CN110473088B (en) Block chain-based band type data processing method and system
CN108365962B (en) Certificate revocation list query method and device
CN1588411A (en) Flow custom managing platform
CN1791005A (en) Wireless network ability controlled centralized management system and method
CN114970464A (en) Method, device, terminal equipment and storage medium for generating identification
CN111600749B (en) Method and system for managing multiple servers and computer storage medium
CN111026748B (en) Data compression method, device and system for network access frequency management and control
CN1921412A (en) System and method of circuit shearing and connecting
CN110460634B (en) Edge computing consensus request management method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Applicant after: Huawei Technologies Co., Ltd.

Applicant before: Huawei Technology Co., Ltd., Shenzhen City

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN HUAWEI TECHNOLOGY CO., LTD TO: HUAWEI TECHNOLOGY CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20030827

Termination date: 20110407