Embodiment
In order that the purpose of the present invention, technical scheme and beneficial effect are more clearly understood, below in conjunction with accompanying drawing and implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only to explain this hair
It is bright, it is not intended to limit the present invention.
Fig. 1 illustrates a kind of applicable ad Hoc wireless network communication system architecture schematic diagram of the embodiment of the present invention,
As shown in figure 1, ad Hoc wireless network communication system includes ad Hoc wireless network 110, protocol conversion apparatus 120, public exchange electricity
Telephone network 130, terminal 111, terminal 112, terminal 113, terminal 131, terminal 132 and terminal 133;Wherein, on the one hand, agreement turns
Changing device 120 connects ad Hoc wireless network 110, and ad Hoc wireless network 110 connects terminal 111, terminal 112 and terminal 113 respectively;
On the other hand, the connection of protocol conversion apparatus 120 PSTN 130, PSTN 130 is connected eventually respectively
End 131, terminal 132 and terminal 133;Alternatively, connected mode can be wired connection, or wireless connection.
In the embodiment of the present invention, ad Hoc wireless network 110 is the ad Hoc wireless network for not possessing operator's qualification ability;Specially
It is different with the protocol stack of PSTN 130 with wireless network 110, so ad Hoc wireless network 110 and public exchange
The coding protocol that telephone network 130 is supported is different, it is necessary to by protocol conversion apparatus 120 when being communicated between two kinds of networks
The conversion of coding protocol is carried out to packet.
When the ad Hoc wireless network communication system is communicated, point following two situations:
The first, the intercommunication of ad Hoc wireless network 110 or the intercommunication of PSTN 130:First, specially
With the intercommunication of wireless network 110, for example, terminal 111, terminal 112 and terminal 113 that ad Hoc wireless network 110 is connected,
When terminal 111 is to the transmission packet of terminal 112, the packet is sent to ad Hoc wireless network 110 from terminal 111, by special nothing
Gauze network 110 is sent to terminal 112, and packet need not carry out protocol conversion during being somebody's turn to do, and all use private wireless network
The coding protocol that network 110 is supported is encoded;Second, the intercommunication of PSTN 130, for example, public friendship
Change telephone network 130 and connect terminal 131, terminal 132 and terminal 133 respectively, should when terminal 131 is to the transmission packet of terminal 132
Packet is sent to PSTN 130 from terminal 131, is sent by PSTN 130 to terminal 132,
Packet need not carry out protocol conversion during being somebody's turn to do, and all use the coding protocol of the support of PSTN 130
Encoded;
Second, the communication between ad Hoc wireless network 110 and PSTN 130:For example, special nothing
The transmission packet of terminal 132 that the terminal 111 that gauze network 110 is connected connect to PSTN 130, the packet from
Terminal 111 is to the transmission process of terminal 132:Terminal 111 sends to ad Hoc wireless network 110 and uses ad Hoc wireless network 110
The packet for the coding protocol coding held, ad Hoc wireless network 110 sends the ad Hoc wireless network to protocol conversion apparatus 120
The packet of the 110 coding protocol codings supported, the coding that protocol conversion apparatus 120 will be supported using ad Hoc wireless network 110
The packet of protocol code is converted to:The packet for the coding protocol coding supported using PSTN 130, then
Protocol conversion apparatus 120 sends the packet for the coding protocol coding supported using PSTN 130 to public
Switched telephone network 130, PSTN 130 uses this coding protocol that PSTN 130 is supported
The packet of coding is sent to terminal 132.Ad Hoc wireless network communication means in the embodiment of the present invention is mainly for above-mentioned
The communication of two kinds of situations.
Fig. 2 illustrates a kind of ad Hoc wireless network communication means schematic flow sheet provided in an embodiment of the present invention.
Based on the system architecture shown in Fig. 1, as shown in Fig. 2 a kind of ad Hoc wireless network provided in an embodiment of the present invention is logical
Letter method, it is adaptable to include the communication system of ad Hoc wireless network, common exchanging telephone network PSTN and protocol conversion apparatus, institute
State ad Hoc wireless network and the PSTN and connection is set up by protocol conversion apparatus;This method comprises the following steps:
Step S201:Protocol conversion apparatus receives the packet of first network transmission;Wherein, packet uses the first net
The coding protocol that network is supported is encoded;
Step S202:The coding protocol and the coding of the second network support that protocol conversion apparatus is supported according to first network are assisted
Corresponding relation is discussed, the coding protocol of corresponding second network of coding protocol of first network is determined;
Step S203:The packet for the coding protocol coding supported using first network is converted to using the second network branch
The packet for the coding protocol coding held;
Step S204:The packet encoded using the coding protocol of the second network support is sent to the second network.
In above-mentioned steps S202, if first network is ad Hoc wireless network, the second network is PSTN:
The coding protocol of coding protocol one the second network of correspondence of each first network;The coding protocol correspondence of each second network is extremely
The coding protocol of a few first network;Or, if first network is PSTN, the second network is special nothing
Gauze network:The coding protocol of coding protocol one first network of correspondence of each second network;The coding association of each first network
View corresponds to the coding protocol of at least one the second network.
In the embodiment of the present invention, because protocol conversion apparatus receives the packet of first network transmission;Wherein, the number
The coding protocol supported according to bag using first network is encoded;The coding protocol that protocol conversion apparatus is supported according to first network
With the coding protocol corresponding relation of the second network support, the coding of corresponding second network of coding protocol of first network is determined
Agreement;The packet for the coding protocol coding supported using first network is converted to the coding protocol using the second network support
The packet of coding;The speech data encoded using the coding protocol of the second network support is sent to the second network;Therefore, it is real
The connectedness of ad Hoc wireless network and outer net PSTN is showed, it is to avoid the application program of the prior art that passes through connects PSTN voices
Ropy problem, and then improve voice call quality.
Based on above-described embodiment, the communication between ad Hoc wireless network and PSTN includes following two kinds of feelings
Condition:
If first network is ad Hoc wireless network, the second network is PSTN:Protocol conversion apparatus connects
The packet that the coding protocol supported using ad Hoc wireless network is encoded is received, this is used special nothing by protocol conversion apparatus
The packet of the coding protocol coding of line network support is converted to the coding protocol coding supported using PSTN
Packet, and send to PSTN;
If first network is PSTN, the second network is ad Hoc wireless network:Protocol conversion apparatus connects
The packet that the coding protocol supported using PSTN is encoded is received, protocol conversion apparatus is by this using public
The packet that the coding protocol that switched telephone network is supported altogether is encoded is converted to the coding supported using ad Hoc wireless network
The packet of protocol code, and send to ad Hoc wireless network.
Based on the step S201 in above-described embodiment, protocol conversion apparatus is received before packet, in addition to:Set up
IP tunnel between one network and the second network;The packet transmission that the IP tunnel is used between first network and the second network.
Based on above-mentioned steps S203, the packet for the coding protocol coding that will be supported using first network, which is converted to, uses the
The packet of the coding protocol coding of two network supports, including:It is determined that the coding protocol that uses of packet is first network branch
In the case of IP address of the purpose IP address for the second network in the coding protocol and packet held, first network will be used
The packet of the coding protocol coding of support is converted to the packet of the coding protocol coding using the second network support.In this way,
The packet for the coding protocol coding that protocol conversion apparatus supports first network is converted to the coding using the second network support
The packet of protocol code, realizes connectedness between first network and the second network, do not change existing ad Hoc wireless network and
PSTN, Network stretch is carried out by protocol conversion apparatus, expands network interworking ability.
Alternatively, the packet in the embodiment of the present invention is VoP.Private wireless network in the embodiment of the present invention
The system architecture that network and Public Switched Telephony Network are connected by protocol conversion apparatus, is compared to of the prior art wireless
Terminal under WIFI network is got through using VoIP application, and call voice does not have a reliable quality assurance, Consumer's Experience compared with
Difference;The embodiment of the present invention changes the WIFI network framework of the ad Hoc wireless network of outer net interconnecting requirement, uses private wireless network
Network replaces WIFI network, not only solves operation qualification problem, and reduces IoT docking links, is a kind of quick, reliable
Outstanding construction of professional network scheme, optimizes AoIP voice qualities.
In the embodiment of the present invention, the network formats of ad Hoc wireless network include any one of herein below:The whole world is mobile
Communication system (Global System for Mobile communication, abbreviation GSM), TD SDMA
(Time Division-Synchronous Code Division Multiple Access, abbreviation TD-SCDMA), broadband code
Divide multiple access (Wideband Code Division Multiple Access, abbreviation WCDMA), CDMA (Code
Division Multiple Access, abbreviation CDMA), FDD LTE (Frequency Division Duplex LTE,
Abbreviation FDD-LTE) and time division duplex LTE (Time Division Duplex LTE, abbreviation TDD LTE).
Alternatively, the coding protocol that the ad Hoc wireless network is supported includes any one of herein below:In GSM standards
Under, the coding protocol that the ad Hoc wireless network is supported is assisted including Non-Access Stratum (Non-Access Stratum, abbreviation NAS)
View, Base Station System Application Part (Base Station Subsystem Application Part, abbreviation BSSAP) agreement, letter
Order connection control section (Signaling Connection Control Part, abbreviation SCCP) agreement, third level user it is suitable
With layer protocol (MTP3 User Adaptation, abbreviation M3UA), internet interconnection protocol (Internet Protocol, abbreviation
IP), media access control protocol (Media Access Control, abbreviation MAC);Under LTE standards, the private wireless network
The coding protocol that network is supported includes S1 Application Protocol (S1Application protocol, abbreviation S1AP), flow control transmission association
Discuss (Stream Control Transmission Protocol, abbreviation SCTP), IP, MAC.
Alternatively, the coding protocol that the PSTN is supported includes:Session initiation protocol (Session
Initiation Protocol, abbreviation SIP), IP, MAC.
In order to clearly introduce the coding protocol that ad Hoc wireless network and PSTN are supported, following example is lifted
It is introduced.
Fig. 3 illustrates the coding protocol that the coding protocol of GSM standards ad Hoc wireless network support is supported with PSTN
Corresponding relation schematic diagram.
As shown in figure 3, GSM standards ad Hoc wireless network support coding protocol 310 include NAS, BSSAP, SCCP,
M3UA, SCTP, IP and MAC;The coding protocol 320 that common exchanging telephone network PSTN is supported includes SIP, IP and MAC;Wherein,
NAS, BSSAP, SCCP, M3UA, SCTP and common exchanging telephone in the coding protocol 310 that GSM standards ad Hoc wireless network is supported
In SIP correspondences in the coding protocol 320 that network PSTN is supported, the coding protocol 310 that GSM standards ad Hoc wireless network is supported
IP is corresponding with IP in the coding protocol 320 that common exchanging telephone network PSTN is supported, the volume that GSM standards ad Hoc wireless network is supported
MAC in code agreement 310 is corresponding with the MAC in the coding protocol 320 that common exchanging telephone network PSTN is supported.
It is for example, special from GSM standards when GSM standards ad Hoc wireless network and PSTN communications in the embodiment of the present invention
Wireless network to PSTN send packet when, the packet use coding protocol include NAS, BSSAP, SCCP, M3UA,
SCTP, IP and MAC, protocol conversion apparatus according to NAS, BSSAP, SCCP, M3UA, SCTP and SIP corresponding relation, by NAS,
BSSAP, SCCP, M3UA, SCTP are converted to Session Initiation Protocol, obtain coding protocol SIP, IP and the MAC supported using PSTN, and will
The packet encoded using SIP, IP and MAC protocol is sent to PSTN.
Fig. 4 illustrates the coding protocol that the coding protocol of LTE standards ad Hoc wireless network support is supported with PSTN
Corresponding relation schematic diagram.
As shown in figure 3, the coding protocol 410 that LTE standards ad Hoc wireless network is supported includes S1AP, SCTP, IP and MAC;
The coding protocol 420 that common exchanging telephone network PSTN is supported includes SIP, IP and MAC;Wherein, LTE standards ad Hoc wireless network
SIP pairs in the coding protocol 420 that S1AP, SCTP and common exchanging telephone network PSTN are supported in the coding protocol 410 of support
Should, the coding that the IP in the coding protocol 410 that LTE standards ad Hoc wireless network is supported is supported with common exchanging telephone network PSTN
MAC and PSTN in IP correspondences in agreement 420, the coding protocol 410 that LTE standards ad Hoc wireless network is supported
MAC correspondences in the coding protocol 420 that PSTN is supported.
It is for example, special from LTE standards when LTE standards ad Hoc wireless network and PSTN communications in the embodiment of the present invention
When wireless network is to PSTN transmission packets, the coding protocol that the packet is used includes S1AP, SCTP, IP and MAC, and agreement turns
S1AP, SCTP are converted to Session Initiation Protocol by changing device according to S1AP, SCTP and SIP corresponding relation, obtain supporting using PSTN
Coding protocol SIP, IP and MAC, and the packet that will be encoded using SIP, IP and MAC protocol sent to PSTN.
Above method flow is introduced in order to clearer, the embodiment of the present invention provides the example below.
Fig. 5 illustrates another ad Hoc wireless network communication means flow signal provided in an embodiment of the present invention
Figure.Based on the system architecture shown in Fig. 1, as shown in figure 5, another ad Hoc wireless network communication party provided in an embodiment of the present invention
Method, it is adaptable to include the communication system of ad Hoc wireless network, common exchanging telephone network PSTN and protocol conversion apparatus, it is described special
Set up and connected by protocol conversion apparatus with wireless network and the PSTN;This method comprises the following steps:
Step S501:Protocol conversion apparatus receives packet;
Step S502:Protocol conversion apparatus parses the packet, determines the coding protocol that the packet is used;If special
The coding protocol that wireless network is supported, then perform step S503;If the coding protocol that PSTN is supported, then hold
Row step S506;
Step S503:Coding protocol and PSTN that protocol conversion apparatus is supported according to ad Hoc wireless network
The coding protocol of support, determines the coding protocol of the corresponding PSTN of coding protocol of ad Hoc wireless network;
Step S504:The packet for the coding protocol coding supported using ad Hoc wireless network is converted to using public friendship
Change the packet of the coding protocol coding of telephone network support;
Step S505:The packet for the coding protocol coding supported using PSTN is sent to public friendship
Change telephone network;Afterwards, terminate;
Step S506:Coding protocol and PSTN that protocol conversion apparatus is supported according to ad Hoc wireless network
The coding protocol of support, determines the coding protocol of the corresponding ad Hoc wireless network of coding protocol of PSTN;
Step S507:The packet for the coding protocol coding supported using PSTN is converted to using special
The packet for the coding protocol coding supported with wireless network;
Step S508:The packet for the coding protocol coding supported using ad Hoc wireless network is sent to private wireless network
Network, afterwards, terminates.
It can be seen that from above-mentioned Fig. 5:Between ad Hoc wireless network and PSTN, protocol conversion is added
Device, realize the ad Hoc wireless network and the outer net PSTN that do not possess operation qualification connectedness, it is to avoid of the prior art
The problem of poor PSTN voice qualities and called poor reliability are connected by application program, and then ensured voice call quality.
Also, it is not necessary to transform the corresponding core network of ad Hoc wireless network and PSTN, it is not required that carry out IoT with PSTN and dock.
In the embodiment of the present invention, PSTN conventional methods are accessed using IPPBX multi-user's characteristic and IPPBX, pass through association
Conversion equipment is discussed, ad Hoc wireless network is converted into PSTN terminals, intercommunication is realized with common exchanging telephone network PSTN;In this way,
Both the wireless communication technology characteristic under ad Hoc wireless network had been remained, had been got through again and PSTN external network
It is connective.During ad Hoc wireless network user is converted into IPPBX user, the logical of ad Hoc wireless network support need to be developed
Believe signaling plane and the function of medium surface that protocol conversion is the communication protocol that PSTN is supported, this process will use cordless communication network
Protocol conversion technology, protocol conversion technology realized by protocol conversion apparatus.
For the function of the clearer signaling plane and medium surface for introducing protocol conversion apparatus realization, following example is lifted:
In the particular embodiment, protocol conversion apparatus can be corresponded to and included:Signaling surface protocol converting unit, medium surface management
Unit, IPPBX units.Wherein, signaling surface protocol converting unit, turn for realizing inner-mesh network agreement and outer net procotol
Change.Specifically, for the private network wireless network of different systems, the agreement that this unit continues is had nothing in common with each other, it is non-under such as GSM network to connect
Enter IMS network agreement under layer NAS agreements, LTE network etc., must according to wireless network selection, activate corresponding protocol entity;
The agreement and the SIP of PSTN network for supporting the ad Hoc wireless network of different systems for PSTN, this unit
Agreement is associated and connected.Medium surface administrative unit, for realizing ad Hoc wireless network and public switch telephone network on medium surface
The IP tunnel of network is set up, and the intercommunication of coding rate types is changed.The signaling process continued in signaling surface protocol converting unit
In, the flow that will be set up along with medium surface IP tunnel, this element completes the medium surface channel management task that signaling procedure is assigned.
IPPBX units, the access function for completing PSTN network.
In the embodiment of the present invention, ad Hoc wireless network is accessed with the identity of terminal by PSTN by protocol conversion apparatus, made
Obtain networking mode simpler and convenient, improve flexibility and the ease for use of system.And contrast WIFI network and connected by IPPBX
PSTN framework is connect, the present invention substitutes WIFI network using private radio communication network, compared to the AOIP modes of WIFI network,
The present invention can improve voice quality, optimization network service experience using private radio communication network.Further, for traditional special
It is a kind of LAN, with outer net without connectedness with wireless network;The embodiment of the present invention by signaling surface protocol converting unit,
Medium surface administrative unit and IPPBX units, have got through the passage of ad Hoc wireless network and PSTN network so that ad Hoc wireless network
Under mobile subscriber possess the ability communicated with PSTN network user, also possess the energy communicated with the PLMN network user whereby
Power;So that ad Hoc wireless network no longer sinks into obstructed outer net during wireless connection, immovable situation during wired connection.
Fig. 6 illustrates a kind of protocol conversion dress communicated for ad Hoc wireless network provided in an embodiment of the present invention
The structural representation put.
Based on same idea, a kind of protocol conversion dress communicated for ad Hoc wireless network provided in an embodiment of the present invention
Put, it is adaptable to include the communication system of ad Hoc wireless network, PSTN and protocol conversion apparatus, the special nothing
Gauze network and the PSTN are set up by protocol conversion apparatus to be connected;The protocol conversion apparatus is used to perform above method flow,
As shown in fig. 6, the protocol conversion apparatus 600 includes receiving unit 601, determining unit 602, converting unit 603 and transmitting element
604;Wherein:
Receiving unit 601, the packet for receiving first network transmission;Wherein, the packet uses the first net
The coding protocol that network is supported is encoded;
Determining unit 602, for the coding protocol and the coding protocol pair of the second network support supported according to first network
It should be related to, determine the coding protocol of corresponding second network of coding protocol of the first network;Wherein, the first network
For the ad Hoc wireless network, then second network is the PSTN:The coding association of each first network
The coding protocol of view one the second network of correspondence;The coding of at least one first network of the coding protocol correspondence of each second network
Agreement;Or, the first network is the PSTN, then second network is the private wireless network
Network:The coding protocol of coding protocol one first network of correspondence of each second network;The coding protocol pair of each first network
Answer the coding protocol of at least one the second network;
Converting unit 603, is adopted for the packet of the coding protocol supported using first network coding to be converted to
The packet encoded with the coding protocol of the second network support;
Transmitting element 604, the packet for the coding protocol using the second network support to be encoded is sent to institute
State the second network.
Alternatively, the converting unit 603, is used for:It is determined that the coding protocol that uses of the packet is first network
, will be using the in the case of the IP address of purpose IP address in the coding protocol of support and the packet for the second network
The packet of the coding protocol coding of one network support is converted to the number of the coding protocol coding using the second network support
According to bag.
Alternatively, the coding protocol that the ad Hoc wireless network is supported includes any one of herein below:In GSM standards
Under, the coding protocol that the ad Hoc wireless network is supported includes Non-Access Stratum NAS agreements, Base Station System Application Part BSSAP and assisted
View, signaling connection control protocol SCCP, the adaptation layer protocol M3UA of third level user, internet interconnection protocol IP, medium access
Control protocol MAC;Under LTE standards, the coding protocol that the ad Hoc wireless network is supported includes S1 Application Protocol S1AP, stream control
Host-host protocol SCTP, IP, MAC processed.
Alternatively, the coding protocol that the PSTN is supported includes:SIP (Session Initiation Protocol), internet
Interconnection protocol IP, media access control protocol MAC.
Alternatively, the packet is VoP.
It can be seen from the above:Because protocol conversion apparatus receives the packet of first network transmission;Wherein, institute
Packet is stated to be encoded using the coding protocol of first network support;The coding that protocol conversion apparatus is supported according to first network
Agreement and the coding protocol corresponding relation of the second network support, determine corresponding second network of coding protocol of first network
Coding protocol;The packet for the coding protocol coding supported using first network is converted to the coding using the second network support
The packet of protocol code;The speech data encoded using the coding protocol of the second network support is sent to the second network;Cause
This, realize the connectedness of ad Hoc wireless network and outer net PSTN, it is to avoid of the prior art to be connected by application program
The problem of PSTN voice qualities are poor, and then improve voice call quality.
It should be understood that the division of above unit is only a kind of division of logic function, can be whole when actually realizing
Or be partially integrated on a physical entity, can also be physically separate.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program production
Product.Therefore, in terms of the embodiment of the present invention can be using complete hardware embodiment, complete software embodiment or combination software and hardware
Embodiment form.Moreover, the embodiment of the present invention can be used wherein includes computer available programs generation one or more
The meter implemented in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code
The form of calculation machine program product.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Flow chart and/or block diagram describe.It should be understood that can be in computer program instructions implementation process figure and/or block diagram
Each flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These calculating can be provided
Processing of the machine programmed instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices
Device is to produce a machine so that the instruction for passing through computer or the computing device of other programmable data processing devices is produced
For realizing the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
Device.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out various changes and modification without departing from this Shen to the embodiment of the present invention
Spirit and scope please.So, if these modifications and variations of the embodiment of the present invention belong to the application claim and its waited
Within the scope of technology, then the application is also intended to comprising including these changes and modification.