CN102594821B - A kind of method and device of processing diameter protocol message - Google Patents

A kind of method and device of processing diameter protocol message Download PDF

Info

Publication number
CN102594821B
CN102594821B CN201210037084.7A CN201210037084A CN102594821B CN 102594821 B CN102594821 B CN 102594821B CN 201210037084 A CN201210037084 A CN 201210037084A CN 102594821 B CN102594821 B CN 102594821B
Authority
CN
China
Prior art keywords
message
diameter protocol
protocol message
information
characteristic information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210037084.7A
Other languages
Chinese (zh)
Other versions
CN102594821A (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.)
ZTE Corp
Original Assignee
Nanjing ZTE New Software 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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201210037084.7A priority Critical patent/CN102594821B/en
Publication of CN102594821A publication Critical patent/CN102594821A/en
Application granted granted Critical
Publication of CN102594821B publication Critical patent/CN102594821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of method and apparatus of processing diameter protocol message, this method includes:Register the characteristic information of diameter protocol message to be tracked;After receiving diameter protocol message, if judging, the characteristic information that the diameter protocol message carries is consistent with the characteristic information of registration, records the information of the diameter protocol message.The tracking to diameter protocol message can be realized according to the present invention.

Description

A kind of method and device of processing diameter protocol message
Technical field
The present invention relates to the communications fields, it particularly relates to a kind of method and apparatus of processing diameter protocol message.
Background technology
Diameter (diameter) agreement (being the upgraded version of RADIUS (remote customer dialing authentication system) agreement) is one The network application of kind AAA (Authentication, Authorization, Accounting, verification, authorization and accounting) type Agreement, for functions such as authentication, authorization, accountings.Remote control of the protocol realization for user's access.Since access is controlled System and the functions such as certification, mandate realize (see Fig. 1) on different devices respectively, so (or other needs are recognized when user logs in Card or authorize behavior) failure when, it is thus necessary to determine that failure cause.At this moment the message for just needing tracking diameter sessions, with association Help positioning problems.But in actual commercial environment, while there is the friendship of the diameter protocol messages such as a large amount of certification, mandate Mutually, the treatment effeciency of system can be influenced by tracking all diameter protocol messages, while artificial screening being needed to go out required report Text needs take a substantial amount of time and energy, and are unfavorable for the quick positioning of problem.Generally will not include required in response message Information (such as user account, calling number, IP address, MAC Address information), therefore relevant response message can not be carried out Tracking.
Invention content
The technical problem to be solved in the present invention is to provide a kind of method and apparatus of processing diameter protocol message, with reality Now to the tracking of diameter protocol message.
In order to solve the above technical problem, the present invention provides a kind of methods of processing diameter protocol message, including:
Register the characteristic information of diameter protocol message to be tracked;
After receiving diameter protocol message, if judging the characteristic information and registration that the diameter protocol message carries Characteristic information it is consistent, then record the information of the diameter protocol message.
Further, the above method also has the characteristics that following:
If the diameter protocol message received is request message, in the information for recording the diameter protocol message During, further include:Preserve the sequence of message number in the diameter protocol message;
If in subsequently received diameter protocol message response message, is then locally searching whether to preserve and be somebody's turn to do The consistent sequence of message number of sequence of message number in response message, if so, then recording the information of the response message.
Further, the above method also has the characteristics that following:The characteristic information includes one kind or more in following information Kind:
User account, calling number, media access control address and IP address.
To solve the above-mentioned problems, the present invention also provides a kind of devices of processing diameter protocol message, including:
Registration Module, the characteristic information for registering diameter protocol message to be tracked;
Processing module, after receiving diameter protocol message, if judging what the diameter protocol message carried Characteristic information is consistent with the characteristic information of registration, then records the information of the diameter protocol message.
Further, above-mentioned apparatus also has the characteristics that following:
The processing module is recording the diameter if the diameter protocol message received is request message It is additionally operable to during the information of protocol massages, preserves the sequence of message number in the diameter protocol message;In receipt of subsequent If the diameter protocol message response message arrived, then it is used to search whether to preserve and the report in the response message locally The consistent sequence of message number of literary sequence number, if so, then recording the information of the response message.
Further, above-mentioned apparatus also has the characteristics that following:The characteristic information includes one kind or more in following information Kind:
User account, calling number, media access control address and IP address.
The present invention provides a kind of method and apparatus of processing diameter protocol message, can realize to diameter agreements The tracking of message.
Description of the drawings
Attached drawing is used to provide further understanding of the present invention, and a part for constitution instruction, the reality with the present invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the network diagram of the prior art;
Fig. 2 is the device of the processing diameter protocol message of the embodiment of the present invention;
Fig. 3 is the flow chart of the method for the processing diameter protocol message of the embodiment of the present invention;
Fig. 4 is the flow chart of the specific diameter sessions of tracking of a specific embodiment of the invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature mutually can arbitrarily combine.
Fig. 2 is the device of the processing diameter protocol message of the embodiment of the present invention, including:
Registration Module, the characteristic information for registering diameter protocol message to be tracked;
Processing module, after receiving diameter protocol message, if judging what the diameter protocol message carried Characteristic information is consistent with the characteristic information of registration, then records the information of the diameter protocol message.
Wherein, the processing module is somebody's turn to do if the diameter protocol message received is request message in record It is additionally operable to during the information of diameter protocol message, preserves the sequence of message number in the diameter protocol message; If subsequently received diameter protocol message response message, then it is used to search whether to preserve and the response report locally The consistent sequence of message number of sequence of message number in text, if so, then recording the information of the response message.
Wherein, the characteristic information includes but not limited to one or more in following information:
User account, calling number, media access control address and IP address.
Fig. 3 is the flow chart of the method for the processing diameter protocol message of the embodiment of the present invention, as shown in figure 3, including Below step:
The characteristic information of S10, registration diameter protocol message to be tracked;
S20, after receiving diameter protocol message, if judge the diameter protocol message carry characteristic information with The characteristic information of registration is consistent, then records the information of the diameter protocol message.
As shown in Figure 1, device A and equipment B operation are on ip networks, between have diameter protocol message interaction, by setting Standby A is sent in diameter requests to equipment B, and equipment B responds diameter requests.
Fig. 4 is the flow chart of the specific diameter sessions of tracking of a specific embodiment of the invention, including below step:
Step 101, the user account that Handwork register needs track in device A first (can also be that (media access MAC Control) information such as address, IP address);
Step 102, device A receive diameter protocol message, judge whether to be request message, if so, turning to step 103, if it is not, then turning to step 105;
Step 103 unpacks diameter request messages, judge in message user account whether the user account with registration It is identical, if inconsistent, directly abandon;If consistent, step 104 is turned to;
Step 104, the Hop-by-Hop Identifier (sequence of message number) in message, recorded message information are preserved;
In the same diameter sessions, the Hop-by-Hop Identifier values one of request message and response message It causes, due to being typically free of the characteristic information for needing to track in response message, this method can find out satisfactory response message.
Step 105, for diameter response messages, judge Hop-by-Hop Identifier values and the thing in message First save value comparison, if there are identical Hop-by-Hop Identifier values, if it does not, directly abandoning;If deposited In recorded message information.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program Related hardware is completed, and described program can be stored in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, all or part of step of above-described embodiment can also be realized using one or more integrated circuits.Accordingly Ground, the form that hardware may be used in each module/unit in above-described embodiment are realized, the shape of software function module can also be used Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
It these are only the preferred embodiment of the present invention, certainly, the invention may also have other embodiments, without departing substantially from this In the case of spirit and its essence, those skilled in the art make various corresponding changes in accordance with the present invention And deformation, but these corresponding change and deformations should all belong to the protection domain of appended claims of the invention.

Claims (4)

1. a kind of method of processing diameter protocol message, including:
Register the characteristic information of diameter protocol message to be tracked;
After receiving diameter protocol message, if judging the spy for the characteristic information and registration that the diameter protocol message carries Reference breath is consistent, then records the information of the diameter protocol message, if inconsistent, directly abandons;
If the diameter protocol message received is request message, in the mistake for the information for recording the diameter protocol message Cheng Zhong further includes:Preserve the sequence of message number in the diameter protocol message;
If in subsequently received diameter protocol message response message, then search whether to preserve and the response locally The consistent sequence of message number of sequence of message number in message, if so, then recording the information of the response message, if not having, directly It abandons;
The characteristic information includes one or more in following information:
User account, calling number and media access control address.
2. the method as described in claim 1, it is characterised in that:The characteristic information further includes:IP address.
3. a kind of device of processing diameter protocol message, including:
Registration Module, the characteristic information for registering diameter protocol message to be tracked;
Processing module, after receiving diameter protocol message, if judging the feature that the diameter protocol message carries Information is consistent with the characteristic information of registration, then records the information of the diameter protocol message, if inconsistent, directly abandons;
The processing module is recording the diameter agreements if the diameter protocol message received is request message It is additionally operable to during the information of message, preserves the sequence of message number in the diameter protocol message;Subsequently received If diameter protocol message response message, then it is used to search whether to preserve and the message sequence in the response message locally The consistent sequence of message number of row number, if not having, directly abandons if so, then recording the information of the response message;
The characteristic information includes one or more in following information:
User account, calling number, media access control address.
4. device as claimed in claim 3, it is characterised in that:The characteristic information further includes:IP address.
CN201210037084.7A 2011-11-28 2012-02-17 A kind of method and device of processing diameter protocol message Active CN102594821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210037084.7A CN102594821B (en) 2011-11-28 2012-02-17 A kind of method and device of processing diameter protocol message

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN2011103840962 2011-11-28
CN201110384096 2011-11-28
CN201110384096.2 2011-11-28
CN201210037084.7A CN102594821B (en) 2011-11-28 2012-02-17 A kind of method and device of processing diameter protocol message

Publications (2)

Publication Number Publication Date
CN102594821A CN102594821A (en) 2012-07-18
CN102594821B true CN102594821B (en) 2018-08-17

Family

ID=46483022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210037084.7A Active CN102594821B (en) 2011-11-28 2012-02-17 A kind of method and device of processing diameter protocol message

Country Status (1)

Country Link
CN (1) CN102594821B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638463A (en) * 2012-03-28 2012-08-15 中兴通讯股份有限公司 Method and device for tracking special radius (Remote Authentication Dial in User Service) session
CN102932245A (en) * 2012-10-09 2013-02-13 中兴通讯股份有限公司 Method and device for processing and tracking terminal access controller access control system (TACACS)+ session

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859238A (en) * 2006-03-17 2006-11-08 华为技术有限公司 Measuring method and device and system for Diameter protocol interface
CN101272329A (en) * 2008-02-19 2008-09-24 华为技术有限公司 Method and equipment for tracing packet
CN102026281A (en) * 2010-12-21 2011-04-20 大唐移动通信设备有限公司 Method and device for realizing TCP (transmission control protocol) proxy based on RNC (radio network controller)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247321B (en) * 2007-02-14 2012-07-04 华为技术有限公司 Method, device and system for routing diagnosis in network based on diameter protocol
CN101252788B (en) * 2008-04-11 2011-10-19 北京首信科技股份有限公司 Diameter-AAA server supporting RADIUS protocol and working method thereof
CN101321092A (en) * 2008-07-07 2008-12-10 上海华为技术有限公司 Method and device for measuring service quality of internet protocol transmission network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859238A (en) * 2006-03-17 2006-11-08 华为技术有限公司 Measuring method and device and system for Diameter protocol interface
CN101272329A (en) * 2008-02-19 2008-09-24 华为技术有限公司 Method and equipment for tracing packet
CN102026281A (en) * 2010-12-21 2011-04-20 大唐移动通信设备有限公司 Method and device for realizing TCP (transmission control protocol) proxy based on RNC (radio network controller)

Also Published As

Publication number Publication date
CN102594821A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
JP6426854B2 (en) Method and apparatus for maintaining a mobile terminal, maintenance server and virtual SIM card
CN103605529B (en) The treating method and apparatus of application program
CN104796436B (en) User login method, system, the first Platform Server and related platform server
CN103944869A (en) Wake on cloud
US20150181431A1 (en) Method and Device for Controlling A Data Card APN Locking State, and Data Card
CN107580032B (en) Data processing method, device and equipment
CN105847277A (en) Service account share management method and system used for third party application
CN111064804B (en) Network access method and device
CN105992204A (en) Access authentication method of applications of mobile intelligent terminal and device
CN101764808A (en) Authentication processing method and system for automatic login as well as server
CN107182054A (en) Wireless hotspot connection control method, device and equipment and computer storage medium
US9402002B1 (en) Open API for toll free data on demand
CN102594821B (en) A kind of method and device of processing diameter protocol message
CN101896917B (en) Method for moving rights object and method for managing rights of issuing rights object and system thereof
US11638134B2 (en) Methods, systems, and computer readable media for resource cleanup in communications networks
CN105786575B (en) Mobile terminal and its data exempt from the method removed when for rewriting system
CN105227532B (en) A kind of blocking-up method and device of malicious act
CN101998377A (en) Method and device for protecting IMSI (International Mobile Subscriber Identity) and communication system
CN107787024B (en) Shutdown method and device and home subscriber server
CN108055299A (en) Portal page push method, network access server and portal certification system
CN101873232A (en) Judgment method of equipment uniqueness and IP network discovery server
CN102932245A (en) Method and device for processing and tracking terminal access controller access control system (TACACS)+ session
CN109753769A (en) A kind of software authorization method and system based on block chain
US11784996B2 (en) Runtime credential requirement identification for incident response
CN108055262A (en) Video conference terminal register method, terminal and gatekeeper

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180530

Address after: 210012 No. 68, Bauhinia Road, Ningnan street, Yuhuatai District, Nanjing, Jiangsu

Applicant after: Nanjing Zhongxing Software Co., Ltd.

Address before: 518057 Nanshan District high tech Industrial Park, Shenzhen, Guangdong, Ministry of justice, Zhongxing Road, South China road.

Applicant before: ZTE Corporation

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191112

Address after: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee after: ZTE Communications Co., Ltd.

Address before: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Patentee before: Nanjing Zhongxing Software Co., Ltd.