CN104363180B - A kind of routing device and its protocol stack switching method - Google Patents
A kind of routing device and its protocol stack switching method Download PDFInfo
- Publication number
- CN104363180B CN104363180B CN201410691933.XA CN201410691933A CN104363180B CN 104363180 B CN104363180 B CN 104363180B CN 201410691933 A CN201410691933 A CN 201410691933A CN 104363180 B CN104363180 B CN 104363180B
- Authority
- CN
- China
- Prior art keywords
- protocol stack
- routing device
- type
- handoff
- 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.)
- Expired - Fee Related
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of routing device and its protocol stack switching method, and being run in the routing device has the first process and the second process, comprises the following steps:First process receives the protocol stack switching command for carrying handoff protocol stack type;First process judges whether the handoff protocol stack type and Current protocol stack type are identical, if identical, keeps current state constant;If it is not the same, the protocol stack handover request for carrying the handoff protocol stack type is then sent to second process according to the protocol stack switching command;After second process carries out initialization operation according to the protocol stack handover request received, second process is restarted to load relevant configuration, the relevant configuration includes protocol stack corresponding with the handoff protocol stack type.The present invention can support the operation of multiple voice protocol stack, voice protocol stack can be managed and flexibly switched, improve the efficiency of system operation.
Description
Technical field
The present invention relates to routing device field, more particularly to it is a kind of can flexibly the routing device of handoff protocol stack type and
Its protocol stack switching method.
Background technology
Support the routing device of voice protocol stack at present, be mostly just for a kind of voice protocol stack, the flexibility of utilization compared with
Difference, and reality use in, probably due to the configuration of the type of resource or interactive device difference, it is necessary to can support two kinds or
The routing device of more kinds of voice protocol stacks, and need to carry out protocol stack flexible and efficient switching, to ensure the effect of operation
Rate.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of routing device and its protocol stack
Switching method, routing device is just for a kind of voice protocol stack for solving in the prior art, the problem of use flexibly is poor.
In order to achieve the above objects and other related objects, the present invention provides a kind of routing device protocol stack switching method, institute
Stating operation in routing device has the first process and the second process, comprises the following steps:First process, which receives, carries switching association
Discuss the protocol stack switching command of stack type;First process judges that the handoff protocol stack type and Current protocol stack type are
It is no identical, if identical, keep current state constant;If it is not the same, then according to the protocol stack switching command to described
Second process sends the protocol stack handover request for carrying the handoff protocol stack type;Second process is according to the institute received
After stating protocol stack handover request progress initialization operation, second process is restarted to load relevant configuration, the relevant configuration
Including protocol stack corresponding with the handoff protocol stack type.
Optionally, in addition to:Second process is in the case of judging that the relevant configuration loading is complete, to the phase
Configuration is closed to be registered.
Optionally, the operation bag that second process is initialized according to the protocol stack handover request received
Include:Second process kills the thread related to Current protocol stack, Resource recovery and resets various states.
Optionally, the type of the protocol stack is H.248 protocol stack or Session Initiation Protocol stack.
Optionally, first process is finger daemon, and second process is voice process.
In order to achieve the above objects and other related objects, the present invention also provides a kind of routing device, in the routing device
Operation has the first process and the second process, and the routing device includes:Command reception module, make first process receive and carry
The protocol stack switching command of handoff protocol stack type;Judge comparison module, make first process judge the handoff protocol stack
Whether type is identical with Current protocol stack type, if identical, keeps current state constant;If it is not the same, then according to institute
State protocol stack switching command and the protocol stack handover request for carrying the handoff protocol stack type is sent to second process;Configuration
Load-on module, after making second process carry out initialization operation according to the protocol stack handover request received, restart institute
The second process is stated to load relevant configuration, the relevant configuration includes protocol stack corresponding with the handoff protocol stack type.
Optionally, in addition to, Registering modules, second process is made to judge the complete situation of the relevant configuration loading
Under, the relevant configuration is registered.
Optionally, the operation bag that second process is initialized according to the protocol stack handover request received
Include:Second process kills the thread related to Current protocol stack, Resource recovery and resets various states.
Optionally, the type of the protocol stack is H.248 protocol stack or Session Initiation Protocol stack.
Optionally, first process is finger daemon, and second process is voice process.
As described above, the routing device and its protocol stack switching method of the present invention, can support the fortune of multiple voice protocol stack
OK, and voice protocol stack can be managed and flexibly switched, and switching action only needs to restart process, without
Routing device is restarted or image upgrade is carried out to routing device, saved human cost and time, improve system
The efficiency of operation.
Brief description of the drawings
Fig. 1 is shown as a kind of flow signal of routing device protocol stack switching method of the present invention in one embodiment
Figure.
Fig. 2 is shown as a kind of module diagram of routing device of the present invention in one embodiment.
Component label instructions
1 routing device
11 command reception modules
12 judge comparison module
13 configuration load-on modules
S11~S15 process steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where not conflicting, following examples and implementation
Feature in example can be mutually combined.
It should be noted that the diagram provided in following examples only illustrates the basic structure of the present invention in a schematic way
Think, the component relevant with the present invention is only shown in illustrating then rather than according to component count, shape and the size during actual implement
Draw, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel
It is likely more complexity.
Referring to Fig. 1, it is shown as a kind of routing device protocol stack switching method of the present invention in one embodiment
Schematic flow sheet, in the routing device operation have the first process and the second process, preferable described first in the present embodiment
Process is finger daemon, and second process is voice process.
Finger daemon is departed from terminal and in the process of running background.Finger daemon depart from terminal be in order to avoid
The information of process in the process of implementation is shown in any terminal and process terminal will not also be believed caused by any terminal
Breath is interrupted.Because in Linux, the interface that each system is exchanged with user is referred to as terminal, each is from this terminal
The process to bring into operation can all depend on this terminal, and this terminal is known as the control terminal of these processes, when control terminal
When being closed, corresponding process can all close automatically.But finger daemon can but break through this limitation, since it being performed
Operating, is just exited when whole system is closed, finger daemon can not because user or terminal or other change and by
Influence.
The switching method comprises the following steps:
S11:First process receives the protocol stack switching command for carrying handoff protocol stack type;Optionally, the association
View stack switching command is locally generated or is sended over from a remote terminal, in a specific embodiment, the routing device
The type of the protocol stack of support is H.248 protocol stack or Session Initiation Protocol stack.
S12:First process judges whether the handoff protocol stack type and Current protocol stack type are identical, such as institute
The protocol stack for stating the current load operating of routing device is H.248 protocol stack, then judges the handoff protocol stack type with H.248 assisting
Whether identical discuss stack.
S13:If identical, keep current state constant;Do not enter any change of shape, continue executing with Current protocol stack
Associative operation.
S14:If it is not the same, the protocol stack of for example described current load operating of routing device is H.248 protocol stack, and institute
It is Session Initiation Protocol stack to state handoff protocol stack type, then is sent according to the protocol stack switching command to second process and carry institute
State the protocol stack handover request of Session Initiation Protocol stack type;Second process is entered according to the protocol stack handover request received
After row initialization operation, restart second process is included with loading with the Session Initiation Protocol stack relevant configuration, the relevant configuration
The Session Initiation Protocol stack corresponding with the handoff protocol stack type Session Initiation Protocol stack.Optionally, second process is according to receiving
The operation that is initialized of the protocol stack handover request include:Second process kills the line related to Current protocol stack
Journey, Resource recovery and the various states of reset.
In a specific embodiment, in second process in the case of judging that the relevant configuration loading is complete, i.e.,
In the case that switching is completed, the relevant configuration is registered.
Referring to Fig. 2, a kind of module diagram of routing device of the present invention in one embodiment is shown as, it is described
1 operation has the first process and the second process in routing device, and preferable first process is finger daemon in the present embodiment,
Second process is voice process.
Finger daemon is departed from terminal and in the process of running background.Finger daemon depart from terminal be in order to avoid
The information of process in the process of implementation is shown in any terminal and process terminal will not also be believed caused by any terminal
Breath is interrupted.Because in Linux, the interface that each system is exchanged with user is referred to as terminal, each is from this terminal
The process to bring into operation can all depend on this terminal, and this terminal is known as the control terminal of these processes, when control terminal
When being closed, corresponding process can all close automatically.But finger daemon can but break through this limitation, since it being performed
Operating, is just exited when whole system is closed, finger daemon can not because user or terminal or other change and by
Influence.
The routing device 1 includes following module:Command reception module 11, judge comparison module 12 and configuration loading
Module 13.
The protocol stack that the command reception module 11 makes the first process reception carry handoff protocol stack type, which switches, to be referred to
Order;Optionally, the protocol stack switching command is locally generated or is sended over from a remote terminal, in a specific embodiment
In, the type for the protocol stack that the routing device is supported is H.248 protocol stack or Session Initiation Protocol stack.
The judgement comparison module 12 makes first process judge the handoff protocol stack type and Current protocol stack class
Whether type is identical, such as the protocol stack of the current load operating of the routing device is H.248 protocol stack, then judges the switching association
Discuss stack type and whether H.248 protocol stack is identical.
If identical, keep current state constant;Do not enter any change of shape, continue executing with the correlation of Current protocol stack
Operation.
The handoff protocol is carried if it is not the same, then being sent according to the protocol stack switching command to second process
The protocol stack handover request of stack type;Such as the protocol stack of the current load operating of routing device is H.248 protocol stack, and institute
It is Session Initiation Protocol stack to state handoff protocol stack type, then is sent according to the protocol stack switching command to second process and carry institute
State the protocol stack handover request of Session Initiation Protocol stack type.
The configuration load-on module 13, when the handoff protocol stack type differs with Current protocol stack type, make institute
After the second process is stated according to the protocol stack handover request progress initialization operation received, second process is restarted to add
Relevant configuration is carried, the relevant configuration includes protocol stack corresponding with the handoff protocol stack type.Optionally, described second enters
The operation that journey is initialized according to the protocol stack handover request received includes:Second process is killed and current association
Discuss the related thread of stack, Resource recovery and reset various states.
In a specific embodiment, the routing device also includes a Registering modules, to sentence in second process
In the case of the disconnected relevant configuration loading is complete, i.e., in the case that switching is completed, the relevant configuration is registered.
In summary, a kind of routing device and its protocol stack switching method of the invention, can support multiple voice protocol stack
Operation, voice protocol stack can be managed and flexibly switch, and switching action only needs to restart process, without
Need to restart routing device or image upgrade is carried out to routing device, saved human cost and time, improve system
The efficiency of system operation.So the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.
Claims (6)
1. a kind of routing device protocol stack switching method, it is characterised in that operation has the first process and the in the routing device
Two processes, comprise the following steps:
First process receives the protocol stack switching command for carrying handoff protocol stack type;
First process judges whether the handoff protocol stack type is identical with Current protocol stack type, if identical, protects
It is constant to hold current state;If it is not the same, described in then sending carrying to second process according to the protocol stack switching command
The protocol stack handover request of handoff protocol stack type;
After second process carries out initialization operation according to the protocol stack handover request received, restart described second and enter
For journey to load relevant configuration, the relevant configuration includes protocol stack corresponding with the handoff protocol stack type;Described second enters
The operation that journey is initialized according to the protocol stack handover request received includes:Second process is killed and current association
Discuss the related thread of stack, Resource recovery and reset various states;
First process is finger daemon, and second process is voice process.
2. routing device protocol stack switching method according to claim 1, it is characterised in that:Also include:Described second enters
Journey is registered in the case of judging that the relevant configuration loading is complete to the relevant configuration.
3. routing device protocol stack switching method according to claim 1, it is characterised in that:The type of the protocol stack is
H.248 protocol stack or Session Initiation Protocol stack.
A kind of 4. routing device, it is characterised in that:Operation has the first process and the second process, the route in the routing device
Equipment includes:
Command reception module, first process is made to receive the protocol stack switching command for carrying handoff protocol stack type;Judge ratio
Compared with module, first process is made to judge whether the handoff protocol stack type and Current protocol stack type are identical, if identical,
Then keep current state constant;Carried if it is not the same, then being sent according to the protocol stack switching command to second process
The protocol stack handover request of the handoff protocol stack type;
Load-on module is configured, makes second process carry out initialization operation according to the protocol stack handover request received
Afterwards, second process is restarted to load relevant configuration, and the relevant configuration includes corresponding with the handoff protocol stack type
Protocol stack;
The operation that second process is initialized according to the protocol stack handover request received includes:Described second enters
Journey kills the thread related to Current protocol stack, Resource recovery and resets various states;
First process is finger daemon, and second process is voice process.
5. routing device according to claim 4, it is characterised in that:Also include, Registering modules, make second process exist
In the case of judging that the relevant configuration loading is complete, the relevant configuration is registered.
6. routing device according to claim 4, it is characterised in that:The type of the protocol stack for H.248 protocol stack or
Session Initiation Protocol stack.
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 CN104363180A (en) | 2015-02-18 |
CN104363180B true 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) |
Families Citing this family (2)
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006068417A1 (en) * | 2004-12-21 | 2006-06-29 | Samsung Electronics Co., Ltd. | Method and system for providing private voice call service to mobile subscriber and wireless soft switch apparatus therefor |
-
2014
- 2014-11-25 CN CN201410691933.XA patent/CN104363180B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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) |
Also Published As
Publication number | Publication date |
---|---|
CN104363180A (en) | 2015-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10592273B2 (en) | System and method for live migration of a virtualized networking stack | |
EP3386170B1 (en) | Fault processing method, device and system | |
US20180074546A1 (en) | Systems, methods and devices for native and virtualized video in a hybrid docking station | |
CN106250166B (en) | A kind of half virtualizes network interface card kernel accelerating module upgrade method and device | |
CN107391156B (en) | Method, management node and service node for distributed system transmission service | |
US10992600B2 (en) | Virtual network element and methods for use therewith | |
CN104363180B (en) | A kind of routing device and its protocol stack switching method | |
CN105095765B (en) | Mobile terminal and its processor system, a kind of credible execution method | |
US9507625B2 (en) | Apparatus and method for generating software defined network(SDN)-based virtual network according to user demand | |
US20120297091A1 (en) | Method and apparatus of server i/o migration management | |
CN103503416A (en) | Virtual desktop system, network processing device, management method, and management program | |
ES2785562T3 (en) | SDN architecture, message forwarding procedure based on SDN architecture | |
CN106569871A (en) | Method and device for upgrade processing | |
CN104572285B (en) | Screen prjection method, projection arrangement and the terminal of terminal | |
RU2016136355A (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD AND ENERGY INDEPENDENT COMPUTER READABLE MEDIA STORING THE PROGRAM | |
CN104954321B (en) | A kind of connection switching method, apparatus and system | |
WO2015163084A1 (en) | Data processing system and data processing method | |
CN104813610B (en) | Multiple content items are provided to be shown in multiple equipment | |
CN102541499A (en) | Managing method and device of local computer equipment | |
CN106406650B (en) | A kind of icon display method and equipment | |
CN110457119A (en) | Asynchronous process callback method and device | |
CN104797004B (en) | The method that automatic network-building is realized between master-slave equipment | |
US10462072B2 (en) | System and method for scaling multiclouds in a hybrid cloud architecture | |
RU2666243C1 (en) | Method of commutation processing, controller, switch center and commutation processing system | |
CN103200092A (en) | Route process management method and equipment based on virtual network equipment |
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 |