CN101018231B - A detection method for self-adapted protocol version - Google Patents

A detection method for self-adapted protocol version Download PDF

Info

Publication number
CN101018231B
CN101018231B CN200710078184A CN200710078184A CN101018231B CN 101018231 B CN101018231 B CN 101018231B CN 200710078184 A CN200710078184 A CN 200710078184A CN 200710078184 A CN200710078184 A CN 200710078184A CN 101018231 B CN101018231 B CN 101018231B
Authority
CN
China
Prior art keywords
protocol version
protocolversionflag
asn
value
version
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
CN200710078184A
Other languages
Chinese (zh)
Other versions
CN101018231A (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.)
Keen (Chongqing) Microelectronics Technology Co., Ltd.
Original Assignee
Chongqing Cyit Communication 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 Chongqing Cyit Communication Technologies Co Ltd filed Critical Chongqing Cyit Communication Technologies Co Ltd
Priority to CN200710078184A priority Critical patent/CN101018231B/en
Publication of CN101018231A publication Critical patent/CN101018231A/en
Application granted granted Critical
Publication of CN101018231B publication Critical patent/CN101018231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

Compared with prior art, with neither knowing current NS protocol edition nor manual loading ASN.1 coding/decoding module to re-generate objective code, this invention receives L3 message from NS and automatic tries to traverse all ASN.1 protocol editions corresponding to this message till finding out the decoder to decode the message. This invention is adaptive and compatible well.

Description

A kind of detection method of self-adapted protocol version
Technical field
The present invention relates to a kind of self-adapted protocol version detection method, particularly 3G (Third Generation) Moblie terminal self-adapted protocol version detection method.
Background technology
The protocol message of each interface in the 3-G (Generation Three mobile communication system), the network layer that comprises air interface (abbreviates layer three as, usually represent with L3) message all is to utilize abstract syntax title (English Abstract SyntaxNotation One abbreviates ASN.1 usually as) to be described.Along with continuous development, 3G (Third Generation) Moblie collaborative project tissue (3GPP) has proposed a lot of protocol versions, as: R99 version, R4 version, R5 version, R6 version and R7 version.Description at protocol message ASN.1 in these protocol versions is not identical, even and at certain Rx version, it also is progressively evolution that its ASN.1 describes.For example: 3GPP25.331-4h0 version (so-called R4-4h0 version) and increased up pilot channel skew (being UpPCH Shifting) function on its basis after the corresponding ASN.1 of version (so-called R4-4h0-shift version) describe also identical not to the utmost.For some L3 message, reshuffle message such as (being Physical Channel Reconfiguration) as cell update confirmation (being Cell UpdateConfirm), physical channel, the R4-4h0-shift version has increased the up pilot channel positional information relevant with UpPCH Shifting function (being IE " upPCHpositionInfo ") on R4-4h0 version basis.Like this, for any L3 message wherein, using the R4-4h0 version is different with the R4-4h0-shift version through the message that ASN.1 encodes, the communication apparatus of certain protocol version possibly can't entirely truely parse the message of using another protocol version coding and use wherein, and the ASN.1 between diversity of protocol versions describes can not be compatible fully.
If a user terminal need and use the network of diversity of protocol versions to communicate, prior art generally needs to know from network equipment provider in advance the ASN.1 protocol version of its use, the ASN.1 coding/decoding module of manual loading correspondence regenerates the object code operation then.Obviously, this mode can't solve user terminal and not do the problem that communicates with the network that uses diversity of protocol versions under the prerequisite of any change.
Summary of the invention
Main purpose of the present invention provides a kind of self-adapted protocol version detection method, can allow user terminal adaptively with the network interworking of using diversity of protocol versions.
The technical scheme of detection method of the present invention comprises:
1, user terminal definition correlated identities and tabulation:
1. define protocol version sign protocolVersionFlag: be used for the storage protocol version identifier, set its span according to concrete needs such as the protocol version of being supported, each value is represented a specific ASN.1 protocol version and a corresponding ASN.1 coding/decoding module (following abbreviate this value as the protocol version value);
2. according to a version group list versionGroupList of each its correspondence of L3 message definition of 3GPP definition: this tabulation is according to the ASN.1 description of pairing this message of all possible protocol version value of protocolVersionFlag identical grouping whether, and the protocol version value that ASN.1 describes identical each protocolVersionFlag is divided into one group;
3. define a protocol version and attempt tabulation protocolVersionTryList: this tabulation is used to store the protocol version value of attempting.
2, initialization: initialization protocolVersionFlag is certain protocol version value as required, and initialization protocolVersionTryList is empty;
3, the protocol version value according to protocolVersionFlag loads corresponding ASN.1 decoder module, the network side message (abbreviating message as) that user terminal receives is decoded, and deposit the value of protocolVersionFlag in protocolVersionTryList, judge decoded result;
If 4 decode successfully, determine that the final agreement version is the pairing ASN.1 version of the current protocol version value of protocolVersionFlag, load corresponding ASN.1 coding module, execution in step 6; If decoding is unsuccessful, then judge and whether have other groupings that meet the following conditions among the versionGroupList of message correspondence: the grouping of non-current protocolVersionFlag place, and wherein any one protocol version value not in protocolVersionTryList;
If 5 exist other groupings that satisfy condition, just taking out any one protocol version value from wherein any one divides into groups composes to protocolVersionFlag, return execution in step 3, the failure otherwise the ASN.1 of message decodes, protocolVersionFlag is changed to initial value again, carries out next step;
6, protocolVersionTryList is emptied, the protocol version detection process finishes, and user terminal carries out subsequent treatment according to agreement.
The present invention compared with prior art, do not need to know in advance the protocol version of network side use, do not need the ASN.1 coding/decoding module of manual loading correspondence to regenerate object code yet, but by after receiving the L3 message of network side, automatically attempt, travel through the protocol version that all corresponding different ASN .1 of this message describe, can correctly parse this message up to the ASN.1 of this version correspondence decoder module, reached the purpose of self-adaptive detection protocol version, greatly improved the flexibility of user terminal and using the network compatibility of diversity of protocol versions.
Description of drawings
The network of user terminal and use diversity of protocol versions is realized the FB(flow block) of intercommunication in Fig. 1 prior art;
The FB(flow block) of Fig. 2 self-adapted protocol version detection method of the present invention embodiment.
Below in conjunction with accompanying drawing detection method of the present invention is further described.
The network of user terminal and use diversity of protocol versions is realized the FB(flow block) of intercommunication in accompanying drawing 1 prior art.As seen from the figure, in the prior art, need know the employed protocol version of network, and need the ASN.1 coding/decoding module of manual loading correspondence,, then may need the ASN.1 coding/decoding module of n manual loading correspondence if n protocol version arranged.Otherwise user terminal may normally operation in some network.
Accompanying drawing 2 is flow charts of self-adapted protocol version detection method embodiment of the present invention.The institute that sets protocolVersionFlag in this embodiment might value be { v1, v2, v3, v4}, the versionGroupList of setup message A correspondence be (v1, v2), (v3, v4) } (v1 and v2 are same grouping, and v3 and v4 are another grouping), corresponding a kind of ASN.1 of each value describes and an ASN.1 coding/decoding module.Specifically may further comprise the steps:
1, initialization protocolVersionFlag is a certain version value, and this embodiment is v1; Initialization versionGroupList is empty;
2, user terminal receives a L3 message from network side, is message A among the embodiment;
3, according to the corresponding ASN.1 decoder module of the value loading of protocolVersionFlag message A is carried out the ASN.1 decoding, and deposit the value of protocolVersionFlag in protocolVersionTryList, judge decoded result;
If 4 decode successfully, determine that the final agreement version is the pairing ASN.1 version of current protocol version value of protocolVersionFlag, execution in step 6; Otherwise further judge and whether have other groupings that meet the following conditions among the versionGroupList of message A correspondence: the grouping of non-current protocolVersionFlag place, and wherein any one protocol version value not in protocolVersionTryList;
If 5 exist the grouping that satisfies condition, just from wherein any one divides into groups, take out any one protocol version value and compose to protocolVersionFlag, turn back to step 3 and carry out; The failure otherwise the ASN.1 of message A decodes is changed to initial value again with protocolVersionFlag, execution in step 6;
For this embodiment, if carry out step 5 for the first time, (v3 v4), therefore will compose v3 or v4 to protocolVersionFlag, turn back to step 3 and carry out owing to there is the grouping that satisfies condition among the versionGroupList of message A.If carry out step 5 for the second time, then just can not find the grouping that satisfies condition among the versionGroupList of message A, the pairing ASN.1 decoder module of protocol version that means all supports of user terminal all can't correctly be resolved message A, user terminal is changed to initial value again with protocolVersionFlag, execution in step 6.
6, protocolVersionTryList is emptied, the protocol version detection process finishes, and user terminal carries out subsequent treatment according to agreement.
The inventive method also can have other various embodiments; without departing from the spirit and substance of the case in the method for the present invention; those skilled in the art work as can make various corresponding changes or distortion according to the inventive method, but these corresponding changes or distortion all belong to the claim protection range of the inventive method.

Claims (1)

1. self-adapted protocol version detection method, it is characterized in that: this technical scheme comprises:
(1) user terminal definition correlated identities and tabulation:
1. definition is used for the protocolVersionFlag of storage protocol version identifier, its each value, and promptly the protocol version value is represented a specific abstract syntax title ASN.1 protocol version and corresponding abstract syntax title ASN.1 coding/decoding module;
2. according to a version group list versionGroupList of its correspondence of network layer L3 message definition of each air interface of 3GPP definition, and the protocol version value that abstract syntax title ASN.1 describes identical each protocolVersionFlag is divided into one group;
3. define one and be used to store the protocol version value list protocolVersionTryList that attempted;
(2) initialization protocolVersionFlag is certain protocol version value, and initialization protocolVersionTryList is empty;
(3) the protocol version value according to protocolVersionFlag loads corresponding abstract syntax title ASN.1 decoder module, the network side message that terminal receives is decoded, and the value of protocolVersionFlag deposited among the protocolVersionTryList, decoded result is judged;
(4) if decode successfully, determine that the final agreement version is the pairing abstract syntax title of the current protocol version value of a protocolVersionFlag ASN.1 version, load corresponding abstract syntax title ASN.1 coding module, execution in step (6); Otherwise judge whether to exist among the versionGroupList of network side message correspondence and satisfy the grouping of non-current protocolVersionFlag place and wherein not other groupings of the condition in protocolVersionTryList of any one protocol version value;
(5) compose to protocolVersionFlag as existing other groupings just from wherein any one divides into groups, to take out any one protocol version value, return execution in step (3); The failure otherwise the abstract syntax title ASN.1 of network side message decodes has promptly been attempted still can not being correctly decoded behind the protocol version of all supports, and protocolVersionFlag is changed to initial value again, carries out next step;
(6) protocolVersionTryList is emptied, the protocol version detection process finishes, and user terminal carries out subsequent treatment according to agreement.
CN200710078184A 2007-02-07 2007-02-07 A detection method for self-adapted protocol version Active CN101018231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710078184A CN101018231B (en) 2007-02-07 2007-02-07 A detection method for self-adapted protocol version

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710078184A CN101018231B (en) 2007-02-07 2007-02-07 A detection method for self-adapted protocol version

Publications (2)

Publication Number Publication Date
CN101018231A CN101018231A (en) 2007-08-15
CN101018231B true CN101018231B (en) 2010-05-26

Family

ID=38726987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710078184A Active CN101018231B (en) 2007-02-07 2007-02-07 A detection method for self-adapted protocol version

Country Status (1)

Country Link
CN (1) CN101018231B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055723B (en) * 2009-11-03 2013-11-06 开曼晨星半导体公司 Method for realizing forward compatibility of protocol versions in 3G RRC ASN.1 structure at UE (user equipment) side
CN102347954B (en) * 2011-10-13 2014-06-04 大唐移动通信设备有限公司 Message analyzing method and equipment
WO2020232707A1 (en) * 2019-05-23 2020-11-26 深圳市大疆创新科技有限公司 Update of communication protocol version number in distributed system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595860A (en) * 2003-09-13 2005-03-16 华为技术有限公司 Method of protocol version detection in communication system
CN1753405A (en) * 2004-09-24 2006-03-29 华为技术有限公司 Coding and decoding method of information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595860A (en) * 2003-09-13 2005-03-16 华为技术有限公司 Method of protocol version detection in communication system
CN1753405A (en) * 2004-09-24 2006-03-29 华为技术有限公司 Coding and decoding method of information

Also Published As

Publication number Publication date
CN101018231A (en) 2007-08-15

Similar Documents

Publication Publication Date Title
CN101977412B (en) Application processor, modem and communication method therebetween
CN101657005A (en) Method for accessing terminal to network and terminal
CN102860090A (en) Methods and apparatus to support voice solutions for data centric terminals
CN101917698A (en) Method and system for providing mobile equipment user information compatible with 3GPP protocol
CN101568114A (en) Communication apparatuses and methods for processing apparatus originated device identification request
CN101480103A (en) Telecommunications device contains multiple subscriber identities for simultaneous use on a wireless network
CN102907163A (en) Time-sliced search of radio access technologies during connected-mode radio link failure
CN101466170B (en) Method and system for transmitting interference information between base stations, base station and mobile management entity
US20130121241A1 (en) Indication of Selected Core Network in a Network Sharing Environment
CN105744655B (en) Support base station and the communication means of multi-operator
CN103392376B (en) Radio network controller and radio network controller component
CN105611508A (en) Method and device for indicating network mode
CN100421527C (en) Method for reinforcing equivalent public mobile network function
EP2685780B1 (en) Mobile phone and data processing method therefor
CN100473206C (en) Method and system for carrying out communication switch in communication system
CN101018231B (en) A detection method for self-adapted protocol version
KR101331431B1 (en) Communication terminal, method for receiving data and computer program product
CN110798453B (en) Data processing method and device for one-key login
CN102790926A (en) Voice transmission method and system
CN101060430A (en) Information tracking method and system
CN102752739B (en) Open chucking method, terminal, server and system in the air
CN101389060A (en) Implementing method and system for binding access point and operator
CN103051484B (en) Session service processing method, system and Session Border Controll
CN101449539A (en) Connection configuration in a wireless telecommunications system using hash values
EP2399414B1 (en) Processing data flows

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: CHONGQING CYIT COMMUNICATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: CHONGQING CHONGYOU XINKE (GROUP) CO., LTD.

Effective date: 20081017

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20081017

Address after: Huang Chongqing Nan'an District No. 1 Wu Fort Park Post encoding: 400065

Applicant after: Chongqing City Communication & Technology Co., Ltd.

Address before: B, 4 floor, zone 401147, Neptune science building, Chongqing, Yubei District

Applicant before: Chongqing cyit (Group) Limited by Share Ltd

C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A detection method for self-adapted protocol version

Effective date of registration: 20141117

Granted publication date: 20100526

Pledgee: Chongqing cyit (Group) Limited by Share Ltd

Pledgor: Chongqing City Communication & Technology Co., Ltd.

Registration number: 2014500000017

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20161020

Granted publication date: 20100526

Pledgee: Chongqing cyit (Group) Limited by Share Ltd

Pledgor: Chongqing City Communication & Technology Co., Ltd.

Registration number: 2014500000017

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170504

Address after: Nanping Street 400060 Chongqing Nan'an District Nancheng Road No. 199 left attached to the floor 403

Patentee after: Keen (Chongqing) Microelectronics Technology Co., Ltd.

Address before: 400065 Chongqing Nan'an District huangjuezhen pass Fort Park No. 1

Patentee before: Chongqing City Communication & Technology Co., Ltd.