CN104363180A - Routing equipment and protocol stack switching method thereof - Google Patents

Routing equipment and protocol stack switching method thereof Download PDF

Info

Publication number
CN104363180A
CN104363180A CN201410691933.XA CN201410691933A CN104363180A CN 104363180 A CN104363180 A CN 104363180A CN 201410691933 A CN201410691933 A CN 201410691933A CN 104363180 A CN104363180 A CN 104363180A
Authority
CN
China
Prior art keywords
protocol stack
routing device
type
switching
relevant configuration
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
CN201410691933.XA
Other languages
Chinese (zh)
Other versions
CN104363180B (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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410691933.XA priority Critical patent/CN104363180B/en
Publication of CN104363180A publication Critical patent/CN104363180A/en
Application granted granted Critical
Publication of CN104363180B publication Critical patent/CN104363180B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides routing equipment and a protocol stack switching method of the routing equipment. A first program and a second program run in the routing equipment. The protocol stack switching method comprises the following steps that the first program receives a protocol stack switching instruction carrying the switching protocol stack type; the first program judges whether the switching protocol stack type is the same as the current protocol stack type, and if yes, the current state is kept unchanged; if not, a protocol stack switching message carrying the switching protocol stack type is sent to the second program according to the protocol stack switching instruction; after initialization operation is conducted on the second program according to the received protocol stack switching message, the second program is restarted so as to load relevant configuration, wherein the relevant configuration comprises a protocol stack corresponding to the switching protocol stack type. The routing equipment and the protocol stack switching method of the routing equipment can support operation of various voice protocol stacks, can conduct management and flexible switching on the voice protocol stacks and improve the system operation efficiency.

Description

A kind of routing device and protocol stack changing method thereof
Technical field
The present invention relates to routing device field, particularly relate to a kind of can the routing device of handoff protocol stack type and protocol stack changing method thereof flexibly.
Background technology
The routing device of current support voice protocol stack, mostly be only for a kind of voice protocol stack, the flexibility of using is poor, and in reality is used, may because the difference of the type of resource or the configuration of interactive device, needs can support the routing device of two or more voice protocol stacks, and need to carry out flexible and efficient switching to protocol stack, to ensure the efficiency run.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of routing device and protocol stack changing method thereof, only for a kind of voice protocol stack, uses the problem that flexibility is poor for solving routing device in prior art.
For achieving the above object and other relevant objects, the invention provides a kind of routing device protocol stack changing method, run in described routing device and have the first process and the second process, comprise the steps: that described first process receives the protocol stack switching command carrying handoff protocol stack type; Described first process judges that whether described handoff protocol stack type is identical with Current protocol stack type, if identical, then keeps current state constant; If not identical, then send to described second process the protocol stack carrying described handoff protocol stack type according to described protocol stack switching command and switch message; After described second process carries out initialization operation according to the described protocol stack switching message received, restart described second process to load relevant configuration, described relevant configuration comprises the protocol stack corresponding with described handoff protocol stack type.
Optionally, also comprise: described second process, when judging that described relevant configuration loads complete, is registered described relevant configuration.
Optionally, described second process switches message according to the described protocol stack received and carries out initialized operation and comprise: described second process kills the thread relevant to Current protocol stack, Resource recovery and the various state that resets.
Optionally, the type of described protocol stack is H.248 protocol stack or Session Initiation Protocol stack.
Optionally, described first process is finger daemon, and described second process is voice process.
For achieving the above object and other relevant objects, the present invention also provides a kind of routing device, run in described routing device and have the first process and the second process, described routing device comprises: command reception module, makes described first process receive the protocol stack switching command carrying handoff protocol stack type; Judge comparison module, whether described handoff protocol stack type is identical with Current protocol stack type to make described first process judge, if identical, then keeps current state constant; If not identical, then send to described second process the protocol stack carrying described handoff protocol stack type according to described protocol stack switching command and switch message; Configuration load-on module, after making described second process carry out initialization operation according to the described protocol stack switching message received, restart described second process to load relevant configuration, described relevant configuration comprises the protocol stack corresponding with described handoff protocol stack type.
Optionally, also comprise, Registering modules, make described second process when judging that described relevant configuration loads complete, described relevant configuration is registered.
Optionally, described second process switches message according to the described protocol stack received and carries out initialized operation and comprise: described second process kills the thread relevant to Current protocol stack, Resource recovery and the various state that resets.
Optionally, the type of described protocol stack is H.248 protocol stack or Session Initiation Protocol stack.
Optionally, described first process is finger daemon, and described second process is voice process.
As mentioned above, routing device of the present invention and protocol stack changing method thereof, the operation of multiple voice protocol stack can be supported, and can management be carried out to voice protocol stack and switch flexibly, and switching action only needs to restart process, and do not need to restart routing device or carry out image upgrade to routing device, save human cost and time, improve the efficiency of system cloud gray model.
Accompanying drawing explanation
Fig. 1 is shown as a kind of routing device protocol stack changing method of the present invention schematic flow sheet in one embodiment.
Fig. 2 is shown as a kind of routing device of the present invention module diagram in one embodiment.
Element numbers explanation
1 routing device
11 command reception modules
12 judge comparison module
13 configuration load-on modules
S11 ~ S15 process step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in diagram but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, be shown as a kind of routing device protocol stack changing method of the present invention schematic flow sheet in one embodiment, run in described routing device and have the first process and the second process, in the present embodiment, preferably described first process is finger daemon, and described second process is voice process.
Finger daemon to depart from terminal and in the process of running background.Finger daemon depart from terminal be in order to avoid process information in the process of implementation show in any terminal and process also can not the end message that produces by any terminal interrupt.Due in Linux, the interface that each system carries out exchanging with user is called terminal, and each process that from then on terminal brings into operation can depend on this terminal, and this terminal is just called the control terminal of these processes, when control terminal is closed, corresponding process all can be closed automatically.But finger daemon but can break through this restriction, it is from being performed entry into service, until just exit when whole system is closed, finger daemon can not because user or terminal or other ground change and is affected.
Described changing method comprises the steps:
S11: described first process receives the protocol stack switching command carrying handoff protocol stack type; Optionally, described protocol stack switching command is generated by this locality or sends over from a remote terminal, and in a specific embodiment, the type of the protocol stack that described routing device is supported is H.248 protocol stack or Session Initiation Protocol stack.
S12: described first process judges that whether described handoff protocol stack type is identical with Current protocol stack type, the such as protocol stack of the current load operating of described routing device is H.248 protocol stack, then judge described handoff protocol stack type and H.248 whether protocol stack is identical.
S13: if identical, then keep current state constant; Namely do not enter any change of shape, continue the associative operation performing Current protocol stack.
S14: if not identical, the such as protocol stack of the current load operating of described routing device is H.248 protocol stack, and described handoff protocol stack type is Session Initiation Protocol stack, then sends to described second process the protocol stack carrying described Session Initiation Protocol stack type according to described protocol stack switching command and switch message; After described second process carries out initialization operation according to the described protocol stack switching message received, restart described second process to load and described Session Initiation Protocol stack relevant configuration, described relevant configuration comprises the Session Initiation Protocol stack corresponding with described handoff protocol stack type Session Initiation Protocol stack.Optionally, described second process switches message according to the described protocol stack received and carries out initialized operation and comprise: described second process kills the thread relevant to Current protocol stack, Resource recovery and the various state that resets.
In a specific embodiment, in described second process when judging that described relevant configuration loads complete, when namely having switched, described relevant configuration is registered.
Refer to Fig. 2, be shown as a kind of routing device of the present invention module diagram in one embodiment, in described routing device, 1 operation has the first process and the second process, and in the present embodiment, preferably described first process is finger daemon, and described second process is voice process.
Finger daemon to depart from terminal and in the process of running background.Finger daemon depart from terminal be in order to avoid process information in the process of implementation show in any terminal and process also can not the end message that produces by any terminal interrupt.Due in Linux, the interface that each system carries out exchanging with user is called terminal, and each process that from then on terminal brings into operation can depend on this terminal, and this terminal is just called the control terminal of these processes, when control terminal is closed, corresponding process all can be closed automatically.But finger daemon but can break through this restriction, it is from being performed entry into service, until just exit when whole system is closed, finger daemon can not because user or terminal or other ground change and is affected.
Described routing device 1 comprises as lower module: command reception module 11, judge comparison module 12 and configuration load-on module 13.
Described command reception module 11 makes described first process receive the protocol stack switching command carrying handoff protocol stack type; Optionally, described protocol stack switching command is generated by this locality or sends over from a remote terminal, and in a specific embodiment, the type of the protocol stack that described routing device is supported is H.248 protocol stack or Session Initiation Protocol stack.
Describedly judge to make described first process judge by comparison module 12 whether described handoff protocol stack type is identical with Current protocol stack type, the such as protocol stack of the current load operating of described routing device is H.248 protocol stack, then judge described handoff protocol stack type and H.248 whether protocol stack is identical.
If identical, then keep current state constant; Namely do not enter any change of shape, continue the associative operation performing Current protocol stack.
If not identical, then send to described second process the protocol stack carrying described handoff protocol stack type according to described protocol stack switching command and switch message; The such as protocol stack of the current load operating of described routing device is H.248 protocol stack, and described handoff protocol stack type is Session Initiation Protocol stack, then sends to described second process the protocol stack carrying described Session Initiation Protocol stack type according to described protocol stack switching command and switch message.
Described configuration load-on module 13, when described handoff protocol stack type and Current protocol stack type are not identical, after making described second process carry out initialization operation according to the described protocol stack switching message received, restart described second process to load relevant configuration, described relevant configuration comprises the protocol stack corresponding with described handoff protocol stack type.Optionally, described second process switches message according to the described protocol stack received and carries out initialized operation and comprise: described second process kills the thread relevant to Current protocol stack, Resource recovery and the various state that resets.
In a specific embodiment, described routing device also comprises a Registering modules, in order in described second process when judging that described relevant configuration loads complete, when namely having switched, described relevant configuration is registered.
In sum, a kind of routing device of the present invention and protocol stack changing method thereof, the operation of multiple voice protocol stack can be supported, can management be carried out to voice protocol stack and switch flexibly, and switching action only needs to restart process, and do not need to restart routing device or carry out image upgrade to routing device, save human cost and time, improve the efficiency of system cloud gray model.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. a routing device protocol stack changing method, is characterized in that, running in described routing device has the first process and the second process, comprises the steps:
Described first process receives the protocol stack switching command carrying handoff protocol stack type;
Described first process judges that whether described handoff protocol stack type is identical with Current protocol stack type, if identical, then keeps current state constant; If not identical, then send to described second process the protocol stack carrying described handoff protocol stack type according to described protocol stack switching command and switch message;
After described second process carries out initialization operation according to the described protocol stack switching message received, restart described second process to load relevant configuration, described relevant configuration comprises the protocol stack corresponding with described handoff protocol stack type.
2. routing device protocol stack changing method according to claim 1, is characterized in that: also comprise: described second process, when judging that described relevant configuration loads complete, is registered described relevant configuration.
3. routing device protocol stack changing method according to claim 1, is characterized in that: described second process is carried out initialized operation according to the described protocol stack switching message received and comprised: described second process kills the thread relevant to Current protocol stack, Resource recovery and the various state that resets.
4. routing device protocol stack changing method according to claim 1, is characterized in that: the type of described protocol stack is H.248 protocol stack or Session Initiation Protocol stack.
5. routing device protocol stack changing method according to claim 1, it is characterized in that: described first process is finger daemon, described second process is voice process.
6. a routing device, is characterized in that: running in described routing device has the first process and the second process, and described routing device comprises:
Command reception module, makes described first process receive the protocol stack switching command carrying handoff protocol stack type;
Judge comparison module, whether described handoff protocol stack type is identical with Current protocol stack type to make described first process judge, if identical, then keeps current state constant; If not identical, then send to described second process the protocol stack carrying described handoff protocol stack type according to described protocol stack switching command and switch message;
Configuration load-on module, after making described second process carry out initialization operation according to the described protocol stack switching message received, restart described second process to load relevant configuration, described relevant configuration comprises the protocol stack corresponding with described handoff protocol stack type.
7. routing device according to claim 6, is characterized in that: also comprise, Registering modules, making described second process when judging that described relevant configuration loads complete, registering described relevant configuration.
8. routing device according to claim 6, is characterized in that: described second process is carried out initialized operation according to the described protocol stack switching message received and comprised: described second process kills the thread relevant to Current protocol stack, Resource recovery and the various state that resets.
9. routing device according to claim 6, is characterized in that: the type of described protocol stack is H.248 protocol stack or Session Initiation Protocol stack.
10. routing device according to claim 6, is characterized in that: described first process is finger daemon, and described second process is voice process.
CN201410691933.XA 2014-11-25 2014-11-25 A kind of routing device and its protocol stack switching method Expired - Fee Related CN104363180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410691933.XA CN104363180B (en) 2014-11-25 2014-11-25 A kind of routing device and its protocol stack switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410691933.XA CN104363180B (en) 2014-11-25 2014-11-25 A kind of routing device and its protocol stack switching method

Publications (2)

Publication Number Publication Date
CN104363180A true CN104363180A (en) 2015-02-18
CN104363180B CN104363180B (en) 2018-04-06

Family

ID=52530407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410691933.XA Expired - Fee Related CN104363180B (en) 2014-11-25 2014-11-25 A kind of routing device and its protocol stack switching method

Country Status (1)

Country Link
CN (1) CN104363180B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331401A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Voice protocol switching method and voice terminal device
CN109450991A (en) * 2018-10-19 2019-03-08 网宿科技股份有限公司 Data transmission acceleration method, relevant device and acceleration system based on mobile application

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060159039A1 (en) * 2004-12-21 2006-07-20 Tae-Sung Jung Method and system for providing private voice call service to mobile subscriber and wireless soft switch apparatus therefor
CN102394890A (en) * 2011-11-15 2012-03-28 上海市共进通信技术有限公司 Multiprotocol voice control system, operation method and switching method in support of SIP (session initiation protocol) and H.248
CN103139858A (en) * 2011-12-01 2013-06-05 中国电信股份有限公司 Method, system and mobile terminal for realizing seamless switching between code division multiple access (CDMA) and wireless fidelity (WiFi)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060159039A1 (en) * 2004-12-21 2006-07-20 Tae-Sung Jung Method and system for providing private voice call service to mobile subscriber and wireless soft switch apparatus therefor
CN102394890A (en) * 2011-11-15 2012-03-28 上海市共进通信技术有限公司 Multiprotocol voice control system, operation method and switching method in support of SIP (session initiation protocol) and H.248
CN103139858A (en) * 2011-12-01 2013-06-05 中国电信股份有限公司 Method, system and mobile terminal for realizing seamless switching between code division multiple access (CDMA) and wireless fidelity (WiFi)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331401A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Voice protocol switching method and voice terminal device
CN109450991A (en) * 2018-10-19 2019-03-08 网宿科技股份有限公司 Data transmission acceleration method, relevant device and acceleration system based on mobile application

Also Published As

Publication number Publication date
CN104363180B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
US10120710B2 (en) Virtualized resource management node and virtual migration method for seamless virtual machine integration
RU2683629C2 (en) Virtual machine resource changing method and device and virtual network function device
EP3280099A1 (en) Network system, network control method, and control apparatus
CN103677989B (en) A kind of utilization linux kernel realizes the device and method of multisystem
CN102662618B (en) Image processing method in remote assistance process and device
RU2016129616A (en) DATA PROCESSING METHOD FOR MULTIPLE OPERATING SYSTEMS AND TERMINAL EQUIPMENT
CN104391581B (en) The projecting method of the operation interface of mobile terminal and its application program
CN102929650A (en) Method and device for independently configuring application program running environment and mobile device
CN102413246A (en) Method for switching sharing application between multiple systems and mobile terminal
WO2015117445A1 (en) Method and device for processing task window
CN105210324B (en) Strategy and charging rule functions virtual method, apparatus and system
CN104363180A (en) Routing equipment and protocol stack switching method thereof
CN107579850B (en) Wired and wireless hybrid networking method based on SDN control for cloud data center
JP2016040876A (en) Arrangement determination device for virtual machine, method thereof and program
CN105391776A (en) Communication method and system for long connection message
CN105005492A (en) Embedded equipment and software upgrading method
CN104699570A (en) Intelligent network flow desktop method allowing virtual desktop and physical desktop to share mirror image
CN102970375A (en) Cluster configuration method and device
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN110661873A (en) Internet of things platform parameter conversion method, device, equipment, medium and system
CN104571583A (en) Method and device for switching KVM (Keyboard Video Mouse)
RU2014147323A (en) INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING METHOD AND PROGRAM
CN108268300A (en) The moving method and device of a kind of virtual machine
KR101737468B1 (en) Apparatus and method for managing resource in virtualization environment
CN109167808B (en) Data processing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180406

Termination date: 20181125