CN101420339B - Method for detecting D channel state - Google Patents

Method for detecting D channel state Download PDF

Info

Publication number
CN101420339B
CN101420339B CN2008101475549A CN200810147554A CN101420339B CN 101420339 B CN101420339 B CN 101420339B CN 2008101475549 A CN2008101475549 A CN 2008101475549A CN 200810147554 A CN200810147554 A CN 200810147554A CN 101420339 B CN101420339 B CN 101420339B
Authority
CN
China
Prior art keywords
channel status
receiving terminal
message
passage
status
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
CN2008101475549A
Other languages
Chinese (zh)
Other versions
CN101420339A (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
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008101475549A priority Critical patent/CN101420339B/en
Publication of CN101420339A publication Critical patent/CN101420339A/en
Application granted granted Critical
Publication of CN101420339B publication Critical patent/CN101420339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a field of network signaling transmission. The present invention provides a method and a device for detecting the state of D channels, the state of a D channel on MGC and the state of a D channel on SG can be assured to be learned in time, therefore, inconformity of the states of the two D channels can be avoided and reliability of the system can be improved.

Description

A kind of method that detects the D channel status
Technical field
The present invention relates to the network signal transmission field, relate in particular to a kind of method of the D of detection channel status.
Background technology
Along with the progressively maturation of IP network technology, the fusion of Circuit Switching Network and Data packet network is an inexorable trend, the demand of circuit switching signaling protocols such as Signaling System Number 7 occurred transmitting on IP network.In order to satisfy demand in IP network transmitting signaling agreement, the IP network signaling transfer protocol (SIGTRAN) that IETF (Internet Engineering Task Force, internet engineering task group) works out is supported by IP network transmission legacy circuit-switched signaling.IETF working group had formally issued Q.921 customer adaptation layer protocol IUA (Integated Services Digital Network (ISDN) is Layer Q.921-UserAdaptation) of ISDN in 2005.ISDN Q.921-User Adaptation Layer has defined by SCTP (SCTP, Streamcontrol Transmission Protocol) realizes SGW (SG, Signaling Gateway) Q.921 and the message transmission of Media Gateway Controller (MGC, Media Gateway Controller) between Q.931.
Regulation according to RFC4233; there are not MGC and SG to go up the method that the D channel status is consistent in the prior art; but for be distributed in two based on the channel status on the network element of IP carrying since a variety of causes through regular meeting cause the both sides state inconsistent, can't in time recover; cause information drop-out, traffic lost is huge.
It can be seen from the above, with regard to prior art, can't in time obtain D channel status on the MGC and the D channel status on the SG, causes information drop-out, traffic lost huge, and system reliability is poor.
Summary of the invention
The invention provides a kind of method of the D of detection channel status, solved the D channel status that can't in time obtain in the prior art on the MGC and the problem of the D channel status on the SG.
The present invention is achieved through the following technical solutions:
A kind of method that detects the D channel status comprises:
Send the Query Information of inquiry D channel status;
After receiving described Query Information, the D channel status information of receiving terminal is placed in the echo message, feed back to transmitting terminal;
Transmitting terminal obtains the D channel status of receiving terminal according to the described echo message of receiving terminal feedback.
Described transmitting terminal is Media Gateway Controller or SGW, and described receiving terminal is SGW or Media Gateway Controller.
After obtaining the D channel status of receiving terminal, if judgement receiving terminal D channel status and transmitting terminal D channel status are inconsistent, the information that gives a warning, request discharges the D passage of receiving terminal or sets up the D passage of transmitting terminal, recovers the D channel status.
After the D passage is set up successfully, D passage inquiry waiting timer is set, so that detect the echo message of whether receiving receiving terminal in the given time.
Need to prove that the foundation of D passage can be to realize, also can be after system starts working a period of time, realizes when the D passage need be repaired or rebuild in system initialization.
Described method further comprises:
D channel status query counts device is set, and behind the transmission Query Information, count value increases by 1; After receiving the receiving terminal echo message, the count value zero clearing.
When described count value is increased to predetermined value, the information that gives a warning, request discharges the D passage of receiving terminal.
As seen from the above technical solution provided by the invention, the invention provides a kind of method of the D of detection channel status, propose in time to obtain the method for D channel status information, make that the D channel status information on MGC and the SG can in time be extracted, improve system reliability.
Description of drawings
The structural representation of IUA present position in the SIGTRAN stack that Fig. 1 provides for the embodiment of the invention;
The MGC active inquiry SG that Fig. 2 provides for the embodiment of the invention goes up the operating process schematic diagram of D channel status.
Embodiment
Technical scheme provided by the invention comprises:
Send the Query Information of inquiry D channel status; Can be to carry out transmit operation according to certain time interval, also can be to carry out transmit operation at random;
Here need to illustrate, after the D of transmitting terminal passage is set up successfully, at once for it is provided with D passage inquiry waiting timer and D channel status query counts device, wherein:
D passage inquiry waiting timer is used to detect the echo message whether transmitting terminal receives receiving terminal in the given time;
D channel status query counts device, behind the transmission Query Information, count value increases by 1; After receiving the receiving terminal echo message, the count value zero clearing.When the count value of D channel status query counts device is increased to predetermined value, show that transmitting terminal fails to receive in the given time the echo message that receiving terminal returns, can assert that receiving terminal D passage and transmitting terminal D channel status are inconsistent, information gives a warning, request discharges the D passage of receiving terminal, recovers the D channel status of receiving terminal.
After receiving described Query Information, the D channel status information of receiving terminal is placed in the echo message, feed back to transmitting terminal;
Transmitting terminal obtains the D channel status of receiving terminal according to the described echo message of receiving terminal feedback.Transmitting terminal can be according to the described echo message of its receiving terminal that receives feedback, judge whether the D channel status on the transmitting terminal is consistent with D channel status on the receiving terminal, when D channel status on the judgement transmitting terminal and the D channel status on the receiving terminal are inconsistent, the information that gives a warning, request discharges the D passage of current receiving terminal or the D passage that current transmitting terminal is set up in initiation; That is to say that if the D channel status of the receiving terminal that gets access to is available, and the D channel status of transmitting terminal is unavailable, then transmitting terminal initiates to set up the D channel request immediately.If the D channel status of transmitting terminal is available, the D channel status of receiving terminal is unavailable, and transmitting terminal is initiated D passage release request immediately so.
Described transmitting terminal is Media Gateway Controller (MGC, Media Gateway Controller) or SGW (SG, Signaling Gateway), and described receiving terminal is SGW or Media Gateway Controller.
For D passage on the MGC and the D passage on the SG, in carrying out technical scheme process provided by the invention, need to increase by two primitive, these two primitive inquire about (StatusRequest) for the D channel status and state is replied (Status Confirm):
Status poll: represent that with Status Request the IUA on the MGC is regularly to the D channel status that sends on the inquiry SG;
State is replied: represent with Status Confirm, receive on the SG from after the inquiry of the D channel status of MGC, respond current D channel status information to MGC;
After the D passage on SG or the MGC was set up successfully, for it is provided with Tw (D passage inquiry waiting timer), purpose was to detect whether to receive replying of opposite end in a period of time.
After Q931 (corresponding to MGC) initiates query messages, D channel status inquiry times adds 1, and promptly the count value of D channel status query counts device increases by 1, if transmitting terminal is received replying of receiving terminal, the then clear O of D channel status inquiry times, i.e. the count value zero setting of D channel status query counts device.
Can a predetermined value be set for D channel status query counts device, as representing with MaxStatusReqNum (maximum inquiry times), inquiry times adds up after Q931 initiates query messages, just thinks that the D passage of opposite end (being Q921, corresponding to SG) is obstructed if reach this maximum times.
In the technical scheme that the embodiment of the invention provides, can be by expansion QPTM (Primitives Transport Messages Q.921/Q.931Boundary, Q.921 or Q.931 border primitive message transfer, a kind of News Category of IUA) message realizes the inquiry of D channel status.
As existing QPTM message content be:
Q.921/Q.931Boundary?Primitives?Transport(QPTM)Messages
0 Reserved (reservation)
1 Data Request Message (affirmation data request information)
2 Data Indication Message (affirmation data-indication message)
3 Unit Data Request Message (non-affirmation data request information)
4 Unit Data Indication Message (non-affirmation data-indication message)
5 Establish Request (the D passage is set up request)
6 Establish Co nfirm (the D passage is set up and confirmed)
7 Establish Indication (the D passage is set up indication)
8 Release Request (the D passage discharges request)
9 Release Confirm (the D passage discharges and confirms)
10 Release Indication (the D passage discharges indication)
11to127 Reserved by the IETF (I ETF reserved field)
128to255 Reserved for IETF-Defined QPTM extensions (remaining for the QPTM expansion of ietf definition in advance)
As follows through the QPTM message content after the expansion:
Q.921/Q.931Boundary?Primitives?Transport(QPTM)Messages
0 Reserved
1 Data?Request?Message
2 Data?Indication?Message
3 Unit?Data?Request?Message
4 Unit?Data?Indication?Message
5 Establish?Request
6 Establish?Confirm
7 Establish?Indication
8 Release?Request
9 Release?Confirm
10 Release?Indication
11 Status Request (D channel status query requests)
12 Status Co nfirm (D channel status acknowledgment of your inquiry)
13to127 Reserved?by?the?IETF
128to255?Reserved?for?IETF-Defined?QPTM?extensions
Numeral 0,1 in the above-mentioned QPTM message content, 2......255 represents the concrete type of message in the QPTM message.The content that compares QPTM extension of message front and back, as can be known:
The QPTM message content has increased by two parameter S tatusRequest (status poll) and Status Confirm (state is replied) at the place, reservation position that stays for IETF.
IUA message comprises a common message header, can follow zero or a plurality of variable element thereafter, and described variable element is determined by type of message.Existing variable element comprises:
Parameter?Name Parameter?ID
(parameter name) (type of message sequence number of parameter)
============== ============
Reserved 0x0000
Interface Identifier (integer) (interface identifier (integer)) 0x0001
Not?Used?in?IUA 0x0002
Interface Identifier (text) (interface identifier (text)) 0x0003
INFO String (information character string) 0x0004
DLCI (data link connection identifier) 0x0005
Not?Used?in?IUA 0x0006
Diagnostic Information (diagnostic message) 0x0007
Interface Ide ntifier Range (interface identifier scope) 0x0008
Heartbeat Data (heartbeat data) 0x0009
Not?Used?in?IUA 0x000a
Traffic Mode Type (business model type) 0x000b
Error Code (error code) 0x000c
Status (state) 0x000d
Protocol Data (protocol data) 0x000e
Release Reason (release cause) 0x000f
TEI Status (tei state) 0x0010
ASP Identifier (ASP identifier) 0x0011
The variable element that Not Used in IUA 0x0012-0x003f increases after the inquiry of D channel status comprises:
Parameter?Name Parameter?ID
(parameter name) (type of message sequence number of parameter)
=============== ===========
Reserved 0x0000
Interface?Identifier(integer) 0x0001
Not?Used?in?IUA 0x0002
Interface?Identifier(text) 0x0003
INFO?String 0x0004
DLCI 0x0005
Not?Used?in?IUA 0x0006
Diaic?Inftion Ox0007
Interface?Identifier?Range 0x0008
Heartbeat?Data 0x0009
Not?Used?in?IUA 0x000a
Traffic?Mode?Type 0x000b
Error?Code 0x000c
Status 0x000d
Protocol?Data 0x000e
Release?Reason 0x000f
TEI?Status 0x0010
ASP?Identifier 0x0011
DL Status (D channel status) 0x0012
Not?Used?in?IUA 0x0013-0x003f
Relatively the variable element content before and after the expansion has increased a variable element DLStatus as can be known after the expansion, the information parameter of entrained D channel status when DL Status is the inquiry of receiving terminal response transmitting terminal D channel status.The D channel status argument structure that Status Confirm after the expansion comprises is:
0 1 2 3
0?1?2?3?4?5?6?7?8?9?0?1?2?3?4?5?6?7?8?9?0?1?2?3?4?5?6?7?8?9?0?1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Tag(0x0012) | Length=8 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| DL Status |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Wherein the value defined of DL Status parameter is:
DL_RELEASE 0x0D passage is released
DL_AWAIT_EST 0x1D passage is waited for the state of setting up
DL_ESTABLSH 0x2D passage is set up state
DL_AWAIT_REL 0x3D passage is waited for release condition
According to above extended message, MGC uses Status Request message to SG inquiry D channel status, and message comprises common message header and IUA message header; And SG replys D channel status use Status Confirm message to MGC, and message comprises common message header, IUA message header and D channel status message structure.
Next, with MGC be the technical scheme that transmitting terminal, SG provide for the described method of the example explanation embodiment of the invention for receiving terminal:
After the D passage on the MGC is set up successfully, for it is provided with timer.
Q931 on steps A, the MGC regularly IUA on MGC sends the information of inquiring about the D channel status;
Q931 on step B, the MGC is to IUA inquiry D channel status, and the count value of D channel status query counts device increases by 1, starts D passage inquiry waiting timer Tw simultaneously, if in Tw does not have the overtime time period, receive the echo message of SG, execution in step C then, otherwise execution in step I.
After IUA on step C, the MGC receives the D passage query messages (StatusRequest) of Q931, by this message groups is dressed up the IUA message format, IUA selects suitable SCTP (Stream Control Transmission Protocol, SCTP) coupling that message is successfully sent to SG then;
IUA on the step D.SG receives the message on the MGC of opposite end, by resolving message StatusRequest is sent to Q921 on the SG;
Q921 on step e, the SG receives behind the D channel status query messages that the D channel status with oneself sends to IUA on the SG by Status Confirm message;
IUA on step F, the SG becomes the IUA message format to send to IUA on the MGC Status Confirm message conversion that receives;
After the last IUA of step G, MGC receives this I UA format messages, with this message conversion become Q931 to discern message---state is replied (Status Confirm) message, then this message is sent to the Q931 on the MGC.
Step H, Q931 receive after the state response message the status poll number of times clear 0, judge whether then and oneself state consistency.If consistent execution in step I, otherwise execution in step J.
Step I, after Tw is overtime, judge whether the status poll number of times is greater than or equal to MaxStatusReqNum, if less than execution in step B, otherwise execution in step J.
Step J, Q931 think that opposite end D passage is unavailable, initiate the D passage then and discharge request, and request discharges the D passage, the zero clearing of the number of times of status poll simultaneously, i.e. status poll counter O reset.
As shown in the above: technical scheme provided by the present invention is inquired about D channel status on the SG by the QPTM message of expansion IUA, prevented the inconsistent problem of two ends D channel status like this, simultaneously also prevented to cause the problem of losing of mass data in advance, improved the reliability of system because of the D passage is unavailable.
Describe below in conjunction with 2 pairs of the method applied in the present invention of accompanying drawing.
Its handling process is as follows:
Step 1, the Q931 on the MGC is the inquiry of the IUA on MGC D channel status regularly, and after Q931 initiated D channel status query messages (Status Request), inquiry times added 1, and promptly the count value of D channel status query counts device increases by 1, starts Tw simultaneously; Need regularly check Tw afterwards, if the not overtime execution in step 2 of Tw, otherwise execution in step 8.
Step 2 after the IUA on the MGC receives the D channel status query messages of Q931, selects suitable coupling to send a message to SCTP on the SG;
Step 3 after the SCTP on the SG receives D channel status query messages, with this source codec, obtains the indication of D channel status data query, and this D channel status data query is indicated the IUA that is sent on this SG;
Step 4, after this IUA received described D channel status data query indication, the Q921 under it initiated D channel status query requests;
After described Q921 received D channel status query requests, the IUA on SG replied D channel status message immediately, promptly fed back the D channel status and replied (Status Confirm) IUA to this SG;
Step 5, IUA replys the D channel status SCTP that is sent on the SG; SCTP on the SG selects suitable coupling that Status Confirm is sent to SCTP on the MGC, and the SCTP on the MGC obtains the indication of D channel status reply data with this source codec;
Step 6, the SCTP on the MGC indicates this D channel status reply data the IUA that is sent on this MGC after obtaining the indication of D channel status reply data;
Step 7 after the IUA on the MGC receives that the D channel status reply data on the SG is indicated, finds the Q931 of this D passage ownership, sends D channel status response message to this Q931; Q931 receives after the D channel status response message inquiry times clear 0, judge then state that the state of receiving carries in replying whether with own state consistency, if consistent execution in step 8, otherwise execution in step 9;
Step 8: if Tw has been overtime, judge whether inquiry times equals maximum times MaxStatusReqNum, if less than execution in step 1; Otherwise execution in step 9.
Step 9: inquiry times zero clearing (that is to say the zero clearing of D channel status query counts device), Q931 sends D passage release message to SG.
It can be seen from the above, method by detection D channel status provided by the invention, can in time obtain the D channel status information on MGC and the SG, guarantee at MGC consistent with D channel status on the SG, prevent the problem that D channel status on MGC and the SG is inconsistent, can't in time recover, improved the reliability of system.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (6)

1. a method that detects the D channel status is characterized in that, the D channel status that described method is used on media gateway controller MGC and the SGW SG detects; Comprise:
Send the Query Information of inquiry D channel status;
After receiving described Query Information, the D channel status information of receiving terminal is placed in the echo message, feed back to transmitting terminal;
Transmitting terminal obtains the D channel status of receiving terminal according to the described echo message of receiving terminal feedback; Described Query Information and described echo message all are the QPTM message of expansion.
2. according to the described method of claim 1, it is characterized in that when described transmitting terminal was Media Gateway Controller, described receiving terminal was a SGW; When described transmitting terminal was SGW, described receiving terminal was a Media Gateway Controller.
3. according to the described method of claim 1, it is characterized in that, obtain the D channel status of receiving terminal after, if judge that receiving terminal D channel status and transmitting terminal D channel status are inconsistent, the information that gives a warning, request discharges the D passage of receiving terminal or the D passage that transmitting terminal is set up in request.
4. according to the described method of claim 1, it is characterized in that, after the D passage is set up successfully, D passage inquiry waiting timer is set, so that detect the echo message of whether receiving receiving terminal in the given time.
5. according to the described method of claim 1, it is characterized in that described method further comprises:
D channel status query counts device is set, and behind the transmission Query Information, count value increases by 1; After receiving the receiving terminal echo message, the count value zero clearing.
6. according to the described method of claim 5, it is characterized in that, when described count value is increased to predetermined value, the information that gives a warning, request discharges the D passage of receiving terminal.
CN2008101475549A 2008-08-28 2008-08-28 Method for detecting D channel state Active CN101420339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101475549A CN101420339B (en) 2008-08-28 2008-08-28 Method for detecting D channel state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101475549A CN101420339B (en) 2008-08-28 2008-08-28 Method for detecting D channel state

Publications (2)

Publication Number Publication Date
CN101420339A CN101420339A (en) 2009-04-29
CN101420339B true CN101420339B (en) 2011-05-11

Family

ID=40630958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101475549A Active CN101420339B (en) 2008-08-28 2008-08-28 Method for detecting D channel state

Country Status (1)

Country Link
CN (1) CN101420339B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1196626A (en) * 1997-04-17 1998-10-21 日本电气株式会社 System and method for monitoring D channel signals of ISDN subscriber line
CN1882192A (en) * 2005-07-19 2006-12-20 华为技术有限公司 Method and system for transmitting ISDN call signalling
CN101193097A (en) * 2006-11-22 2008-06-04 中兴通讯股份有限公司 A link state inquiry response method and its device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1196626A (en) * 1997-04-17 1998-10-21 日本电气株式会社 System and method for monitoring D channel signals of ISDN subscriber line
CN1882192A (en) * 2005-07-19 2006-12-20 华为技术有限公司 Method and system for transmitting ISDN call signalling
CN101193097A (en) * 2006-11-22 2008-06-04 中兴通讯股份有限公司 A link state inquiry response method and its device

Also Published As

Publication number Publication date
CN101420339A (en) 2009-04-29

Similar Documents

Publication Publication Date Title
JP3464907B2 (en) Protocol conversion system
CN101047614B (en) Flow transmission route set-up method and data transmission system in IPv6 network environment
JPH09321821A (en) Protocol conversion system and its method
CN101136943B (en) System and method for implementing extended Diameter protocol application
CN1953400A (en) A method to control the continuity detection of Ethernet link
CN101834778B (en) Method for processing neighbor discovery protocol item and three-layer switching equipment
CN101908971A (en) LAC device and failover method
CN101222738A (en) Terminal-to-terminal signaling tracing method, system, soft exchanging and media gateway equipment
CN102223378B (en) File synchronization method and system
CN111726196A (en) Vehicle-mounted data transmission method and system
JP2003318905A (en) Integrated managing method for local area network switching device
CN101420339B (en) Method for detecting D channel state
JP2006279937A (en) Wireless base station, wireless terminal, and wireless access network
CN101184032B (en) Stacked system equipment communication method
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN101174936B (en) Wireless grouping redundant network system and redundant network equipment
JP2003520477A (en) Method and apparatus for performing reliable communication in an intelligent network
CN101043477B (en) Signaling process method of signaling gateway, system and signaling gateway
CN102138363B (en) The recovery of the media gateway resource of terminal
CN101494587B (en) Method for processing packet network tunnel and communication system as well as relevant equipment
CN100579054C (en) Controlling method, system and device for reciprocal imputation session boundary controller
CN101197788A (en) Method for client terminal acquiring configuration information of data base server in computer network
CN100399773C (en) Interconnection between domains
CN101193097B (en) A link state inquiry response method and its device
CN100375479C (en) Network system and method for implementing media gateway control protocol stack

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