Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Figure 1, for the embodiment of the invention provides a kind of network architecture diagrams of network communication processing system.Such as Fig. 1
Shown, which may include the logical of network communication both sides or multi-party user terminal, Media Gateway and network communication
Telecommunications services equipment, wherein communication service equipment is also referred to as background service equipment, Component service equipment etc., communication service equipment
It can be communicatively coupled by the Media Gateway of IP network and both sides.In network architecture shown in Fig. 1, communication service equipment
By, there are when exceptional communication data packet, carrying out the place that unpacks to exceptional communication data packet in detecting network communication data flow
Reason, distributes the arrangement serial number of data subpackage after unpacking processing, and the normal communication data flow obtained after processing is sent to reception
The Media Gateway of side, realizes the process that abnormal network communication data stream is converted to normal network communications data flow.In Fig. 1 institute
In the network architecture shown, user terminal can include but is not limited to mobile phone, removable computer, tablet computer, individual digital and help
Manage the user equipmenies such as (Personal Digital Assistant, PDA), smartwatch.
Based on the network architecture shown in FIG. 1, below in conjunction with attached drawing 2 and attached drawing 3, to network provided in an embodiment of the present invention
Communication processing method describes in detail.
Fig. 2 is referred to, for the embodiment of the invention provides a kind of flow diagrams of network communication processing method.Such as Fig. 2
It is shown, the embodiment of the present invention the method may include following steps S101- step S103.
S101 obtains the network communication data flow of the first Media Gateway transmission;
Specifically, as the both sides of network communication or multi-party progress network communication, communication service equipment available first
The network communication data flow of Media Gateway transmission, first Media Gateway can specifically be expressed as communicating in Netcom's communication process
The Media Gateway of signalling, first Media Gateway obtains the signal of communication of sender's transmission, and the communication is believed
Number be converted to network communication data flow, to be sent to the communication service equipment, the network communication data flow may include to
A few communication data packet, the communication data packet can be the communication data packet of the types such as g729, g711 or g723.
It is understood that the network communication may include two kinds of communication types:The communication of network clawback and network direct dialing
Communication, the network clawback communication are specially:After the network communication number of caller dials callee, the communication service equipment
Automatic dialing is called back into platform access code, clawback platform will be called back with the identity of operator to calling party, while according to network
Communicating number calls callee, when calling party and callee's selection are answered at this time, that is, establishes the connection of network clawback communication;Network
Direct dialing communicates:After the network communication number of caller dials callee, the communication service equipment will lead to according to network
Signal code calls callee, when callee's selection at this time is answered, that is, establishes the connection of network direct dialing communication.
S102, when detecting at least one described communication data packet there are when exceptional communication data packet, to the exception
Communication data packet unpack processing to generate data subpackage, and distributes the arrangement serial number of the data subpackage;
Specifically, when the communication service equipment detects that there are exceptional communication numbers at least one described communication data packet
When according to packet, the communication service equipment can carry out processing of unpacking to the exceptional communication data packet, to generate multiple data point
Packet, and the arrangement serial number of the data subpackage is allocated, it should be noted that communication data packet is taken during transmission
With corresponding traffic value and arrangement serial number, traffic value is the data flow for illustrating communication data packet, and arrangement serial number is
For indicating that the continuity of data flow, the exceptional communication data packet are expressed as the communication that payload is greater than predetermined load threshold value
Data packet, the normal communication data packet are expressed as the communication data packet that payload is less than or equal to predetermined load threshold value.With
For g729 communication data packet, the predetermined load threshold value of g729 communication data packet is 20 bytes, can for 2 bytes, 10 bytes,
12 bytes, 20 bytes, therefore the payload of the normal communication data packet of g729 needs to be less than or is equal to 20 bytes, and g729
The payload of exceptional communication data packet is greater than 20 bytes, such as:40 bytes, 60 bytes etc., cause signal of communication to receive
The Media Gateway of side can not be supported to convert, therefore can carry out processing of unpacking to exceptional communication data packet.
Further, described logical when detecting at least one described communication data packet there are when exceptional communication data packet
Telecommunications services equipment can detecte the frame number of the network communication data flow, if the frame number is even number, the communication service is set
It is standby that preset data amount can be used unpack processing to the exceptional communication data packet to generate data subpackage, the present count
It can be above-mentioned predetermined load threshold value according to amount, such as:Assuming that the payload of exceptional communication data packet is 40 bytes, preset data
Amount is 20 bytes, then is two data subpackages etc. by exceptional communication data packet processing of unpacking, and the communication service equipment can be with
The arrangement serial number of the data subpackage is distributed according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value,
According to the example above, the exceptional communication data packet is divided into two data subpackages, it is assumed that the arrangement of the exceptional communication data packet
Serial number 1, preset increments threshold value are 1, then two data subpackage putting in order according to traffic value, the arrangement that will be distributed respectively
Serial number 1 and 2, while needing accordingly to adjust the arrangement serial number of subsequent communication data packet, such as:Original arrangement serial number 2
Communication data packet, needing to be arranged serial number according to the preset increments threshold modifying is 3.
If the frame number is odd number, the communication service equipment can be using preset data amount to the exceptional communication number
Unpack processing according to packet to generate data subpackage, and unpacks that treated to exceptional communication data packet remaining data amount counts
According to splicing, the row of the data subpackage is distributed according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value
Column serial number, the treatment process unpacked and process when arranging assigning process and the frame number of serial number as even number are identical, so
And since frame number is odd number, it unpacks to exceptional communication data packet and certainly exists remaining data amount after handling, the communication clothes
The remaining data amount and next communication data packet can be carried out data splicing by equipment of being engaged in, it is preferred that assuming that the residue
Data volume is 10 bytes, if next communication data packet is more than or equal to 10 bytes, by the head 10 in next data packet
Byte and the remaining data amount carry out data splicing to generate a data subpackage, if next communication data packet is 2 bytes,
The remaining data amount and next communication data packet are directly then subjected to data splicing and generated a data subpackage;Assuming that
The remaining data amount is 2 bytes, if next communication data packet is to abandon the remaining data more than or equal to 10 bytes
Amount, using 10 byte of head in next data packet as a data subpackage, if next communication data packet is 2 bytes, directly
It connects and abandons next communication data packet.
S103, arrangement serial number and the data based on normal communication data packet at least one described communication data packet point
The arrangement serial number of packet, generate include the normal communication data packet and the data subpackage network communication data flow, and by institute
The network communication data flow for stating generation is sent to the second Media Gateway;
Specifically, the communication service equipment can be based on normal communication data packet at least one described communication data packet
Arrangement serial number and the data subpackage arrangement serial number, generate comprising the normal communication data packet and the data subpackage
Network communication data flow, and the network communication data flow of the generation is sent to the second Media Gateway, the second media net
The Media Gateway that can be specifically expressed as signal of communication recipient in Netcom's communication process is closed, second Media Gateway can incite somebody to action
The network communication data flow of the generation is converted to signal of communication, to be transmitted to the user terminal of recipient.
It should be noted that the side calling party in above-mentioned signal of communication sender and signal of communication recipient, in addition one
Side is callee, i.e., when signal of communication sender is calling party, signal of communication recipient is callee;Signal of communication sender is
When callee, signal of communication recipient is calling party, is specifically determined by the transmission direction of current communication signal.
In embodiments of the present invention, by detecting network communication data flow there are when exceptional communication data packet, it is right
Exceptional communication data packet carries out processing of unpacking, distribution is unpacked the arrangement serial number of data subpackage after processing, and will obtain after processing
Normal communication data flow is sent to the Media Gateway of recipient, realizes abnormal network communication data stream being converted to proper network
The process of communication data stream allows the Media Gateway of recipient to support conversion normal network communications data flow, improves net
The transmission quality of network communication, and then ensure that the using effect of network communication.
Fig. 3 is referred to, for the embodiment of the invention provides the flow diagrams of another network communication processing method.Such as figure
Shown in 3, the embodiment of the present invention the method may include following steps S201- step S204.
S201 obtains the network communication data flow of the first Media Gateway transmission;
Specifically, as the both sides of network communication or multi-party progress network communication, communication service equipment available first
The network communication data flow of Media Gateway transmission, first Media Gateway can specifically be expressed as communicating in Netcom's communication process
The Media Gateway of signalling, first Media Gateway obtains the signal of communication of sender's transmission, and the communication is believed
Number be converted to network communication data flow, to be sent to the communication service equipment, the network communication data flow may include to
A few communication data packet, the communication data packet can be the communication data packet of the types such as g729, g711 or g723.
It is understood that the network communication may include two kinds of communication types:The communication of network clawback and network direct dialing
Communication, the network clawback communication are specially:After the network communication number of caller dials callee, the communication service equipment
Automatic dialing is called back into platform access code, clawback platform will be called back with the identity of operator to calling party, while according to network
Communicating number calls callee, when calling party and callee's selection are answered at this time, that is, establishes the connection of network clawback communication;Network
Direct dialing communicates:After the network communication number of caller dials callee, the communication service equipment will lead to according to network
Signal code calls callee, when callee's selection at this time is answered, that is, establishes the connection of network direct dialing communication.
S202, according to the communication type of network communication, and according to each communication data at least one described communication data packet
The traffic value of packet puts in order, and is adjusted to the arrangement serial number of each communication data packet;
Specifically, in order to avoid arrangement serial number jump the case where, the communication service equipment can first to it is described extremely
The arrangement serial number of each communication data packet carries out serial number calibration in a few communication data packet, that is, guarantees the arrangement of each communication data packet
Serial number is arranged according to putting in order for traffic value.The communication service equipment can be according to the communication of network communication
Type, and put in order according to the traffic value of each communication data packet at least one described communication data packet, to described each
The arrangement serial number of communication data packet is adjusted.It should be noted that further include in the network communication data flow except it is described extremely
Remainder data packet outside a few communication data packet, such as:If communication data packet is g729, in the network communication data flow
It may also contain the data packet of other carrying medium types such as g711, g723;If communication data packet is g711, the network is logical
It may also contain the data packets of other carrying medium types such as g729, g723 in letter data stream, the embodiment of the present invention is by the type
Data packet be known as remainder data packet.
Preferably, when the communication type is network clawback communication, the communication service equipment can be according to the net
The traffic value of at least one communication data described in network communication data stream and the remainder data packet puts in order, and detects institute
State arrangement of the arrangement serial number of each communication data packet at least one communication data relative to previous continuous communication data packet
The sequence number delta of serial number, when the communication service equipment detects that there are the first communication data packets in each communication data packet
When sequence number delta is not equal to preset increments threshold value, the communication service equipment can be using described in the preset increments adjusting thresholds
The arrangement serial number of first communication data packet, such as:Preset increments threshold value is 1, the arrangement of the g729 communication data packet of current detection
Serial number 4, and its previous data packet is also g729 communication data packet, i.e., referred to as previous continuous communication data packet, if this
When previous continuous communication data packet arrangement serial number 2, then the g729 communication data packet of current detection is the first communication number
According to packet, the arrangement serial number of the g729 communication data packet of current detection can be adjusted to 3 by the communication service equipment.
When the communication type is network direct dialing communication, the communication service equipment equally can be logical according to the network
The traffic value of at least one communication data described in letter data stream and the remainder data packet puts in order, and detection is described extremely
Arrangement serial number of the arrangement serial number of each communication data packet relative to previous continuous communication data packet in a few communication data
Sequence number delta, when the communication service equipment detects that there are the serial numbers of the first communication data packet in each communication data packet
When increment is not equal to preset increments threshold value, the communication service equipment can be using described in the preset increments adjusting thresholds first
The arrangement serial number of communication data packet, such as:Preset increments threshold value is 1, the arrangement serial number of the g729 communication data packet of current detection
It is 4, and its previous data packet is also g729 communication data packet, i.e., referred to as previous continuous communication data packet, if before at this time
The arrangement serial number 2 of one continuous communication data packet, then the g729 communication data packet of current detection is the first communication data packet,
The arrangement serial number of the g729 communication data packet of current detection can be adjusted to 3 by the communication service equipment.Due to straight in network
It puts through in letter, only focuses on communication data packet, therefore for the ease of the packet loss detection etc. of communication data packet, the communication service equipment
It also needs to reject the remainder data packet in the network communication data flow, and is adjusted again using the preset increments threshold value
The arrangement serial number of each communication data packet.
S203, when detecting at least one described communication data packet there are when exceptional communication data packet, to the exception
Communication data packet unpack processing to generate data subpackage, and distributes the arrangement serial number of the data subpackage;
Specifically, when the communication service equipment detects that there are exceptional communication numbers at least one described communication data packet
When according to packet, the communication service equipment can carry out processing of unpacking to the exceptional communication data packet, to generate multiple data point
Packet, and the arrangement serial number of the data subpackage is allocated, it should be noted that communication data packet is taken during transmission
With corresponding traffic value and arrangement serial number, traffic value is the data flow for illustrating communication data packet, and arrangement serial number is
For indicating that the continuity of data flow, the exceptional communication data packet are expressed as the communication that payload is greater than predetermined load threshold value
Data packet, the normal communication data packet are expressed as the communication data packet that payload is less than or equal to predetermined load threshold value.With
For g729 communication data packet, the predetermined load threshold value of g729 communication data packet is 20 bytes, can for 2 bytes, 10 bytes,
12 bytes, 20 bytes, therefore the payload of the normal communication data packet of g729 needs to be less than or is equal to 20 bytes, and g729
The payload of exceptional communication data packet is greater than 20 bytes, such as:40 bytes, 60 bytes etc., cause signal of communication to receive
The Media Gateway of side can not be supported to convert, therefore can carry out processing of unpacking to exceptional communication data packet.
Further, described logical when detecting at least one described communication data packet there are when exceptional communication data packet
Telecommunications services equipment can detecte the frame number of the network communication data flow, if the frame number is even number, the communication service is set
It is standby that preset data amount can be used unpack processing to the exceptional communication data packet to generate data subpackage, the present count
It can be above-mentioned predetermined load threshold value according to amount, such as:Assuming that the payload of exceptional communication data packet is 40 bytes, preset data
Amount is 20 bytes, then is two data subpackages etc. by exceptional communication data packet processing of unpacking, and the communication service equipment can be with
The arrangement serial number of the data subpackage is distributed according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value,
According to the example above, the exceptional communication data packet is divided into two data subpackages, it is assumed that the arrangement of the exceptional communication data packet
Serial number 1, preset increments threshold value are 1, then two data subpackage putting in order according to traffic value, the arrangement that will be distributed respectively
Serial number 1 and 2, while needing accordingly to adjust the arrangement serial number of subsequent communication data packet, such as:Original arrangement serial number 2
Communication data packet, needing to be arranged serial number according to the preset increments threshold modifying is 3.
If the frame number is odd number, the communication service equipment can be using preset data amount to the exceptional communication number
Unpack processing according to packet to generate data subpackage, and unpacks that treated to exceptional communication data packet remaining data amount counts
According to splicing, the row of the data subpackage is distributed according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value
Column serial number, the treatment process unpacked and process when arranging assigning process and the frame number of serial number as even number are identical, so
And since frame number is odd number, it unpacks to exceptional communication data packet and certainly exists remaining data amount after handling, the communication clothes
The remaining data amount and next communication data packet can be carried out data splicing by equipment of being engaged in, it is preferred that assuming that the residue
Data volume is 10 bytes, if next communication data packet is more than or equal to 10 bytes, by the head 10 in next data packet
Byte and the remaining data amount carry out data splicing to generate a data subpackage, if next communication data packet is 2 bytes,
The remaining data amount and next communication data packet are directly then subjected to data splicing and generated a data subpackage;Assuming that
The remaining data amount is 2 bytes, if next communication data packet is to abandon the remaining data more than or equal to 10 bytes
Amount, using 10 byte of head in next data packet as a data subpackage, if next communication data packet is 2 bytes, directly
It connects and abandons next communication data packet.
S204, arrangement serial number and the data based on normal communication data packet at least one described communication data packet point
The arrangement serial number of packet, generate include the normal communication data packet and the data subpackage network communication data flow, and by institute
The network communication data flow for stating generation is sent to the second Media Gateway;
Specifically, the communication service equipment can be based on normal communication data packet at least one described communication data packet
Arrangement serial number and the data subpackage arrangement serial number, generate comprising the normal communication data packet and the data subpackage
Network communication data flow, and the network communication data flow of the generation is sent to the second Media Gateway, the second media net
The Media Gateway that can be specifically expressed as signal of communication recipient in Netcom's communication process is closed, second Media Gateway can incite somebody to action
The network communication data flow of the generation is converted to signal of communication, to be transmitted to the user terminal of recipient.
It should be noted that the side calling party in above-mentioned signal of communication sender and signal of communication recipient, in addition one
Side is callee, i.e., when signal of communication sender is calling party, signal of communication recipient is callee;Signal of communication sender is
When callee, signal of communication recipient is calling party, is specifically determined by the transmission direction of current communication signal.
In embodiments of the present invention, by detecting network communication data flow there are when exceptional communication data packet, it is right
Exceptional communication data packet carries out processing of unpacking, distribution is unpacked the arrangement serial number of data subpackage after processing, and will obtain after processing
Normal communication data flow is sent to the Media Gateway of recipient, realizes abnormal network communication data stream being converted to proper network
The process of communication data stream allows the Media Gateway of recipient to support conversion normal network communications data flow, improves net
The transmission quality of network communication, and then ensure that the using effect of network communication;Pass through the arrangement serial number in advance to communication data packet
Be adjusted, can to avoid arrangement serial number occur jump cause Media Gateway or user terminal to detect packet loss, into
One step improves the transmission quality of network communication.
Based on the network architecture shown in FIG. 1, below in conjunction with attached drawing 4 and attached drawing 8, to communication provided in an embodiment of the present invention
Service equipment describes in detail.It should be noted that attached drawing 4 and attached communication service equipment shown in Fig. 8, for executing this hair
The method of bright Fig. 2 and embodiment illustrated in fig. 3, for ease of description, only parts related to embodiments of the present invention are shown, specifically
What technical detail did not disclosed, please refer to Fig. 2 of the present invention and embodiment shown in Fig. 3.
Fig. 4 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of communication service equipment.As shown in figure 4,
The communication service equipment 1 of the embodiment of the present invention may include:Data flow acquiring unit 11, serial number allocation unit 12 and data
Flow transmission unit 13.
Data flow acquiring unit 11, for obtaining the network communication data flow of the first Media Gateway transmission;
In the specific implementation, as the both sides of network communication or multi-party progress network communication, the data flow acquiring unit 11
The network communication data flow of available first Media Gateway transmission, it is logical that first Media Gateway can specifically be expressed as Netcom
The Media Gateway of signal of communication sender during letter, first Media Gateway obtain the signal of communication of sender's transmission, and
The signal of communication is converted into network communication data flow, to be sent to the communication service equipment 1, the network communication data
Stream may include at least one communication data packet, and the communication data packet can be the communication of the types such as g729, g711 or g723
Data packet.
It is understood that the network communication may include two kinds of communication types:The communication of network clawback and network direct dialing
Communication, the network clawback communication are specially:After the network communication number of caller dials callee, the communication service equipment
Automatic dialing is called back platform access code by 1, and clawback platform will be called back with the identity of operator to calling party, while according to network
Communicating number calls callee, when calling party and callee's selection are answered at this time, that is, establishes the connection of network clawback communication;Network
Direct dialing communicates:After the network communication number of caller dials callee, the communication service equipment 1 will lead to according to network
Signal code calls callee, when callee's selection at this time is answered, that is, establishes the connection of network direct dialing communication.
Serial number allocation unit 12 detects that there are exceptional communication data packets at least one described communication data packet for working as
When, unpack processing to the exceptional communication data packet to generate data subpackage, and distribute the arrangement sequence of the data subpackage
Number;
In the specific implementation, when the communication service equipment 1 detects at least one described communication data packet there is exception
When communication data packet, the serial number allocation unit 12 can carry out processing of unpacking to the exceptional communication data packet, more to generate
A data subpackage, and the arrangement serial number of the data subpackage is allocated, it should be noted that communication data packet is in transmission
Corresponding traffic value and arrangement serial number are carried in the process, and traffic value is the data flow for illustrating communication data packet, row
Column serial number is intended to indicate that the continuity of data flow, the exceptional communication data packet are expressed as payload greater than predetermined load threshold
The communication data packet of value, the normal communication data packet are expressed as the communication number that payload is less than or equal to predetermined load threshold value
According to packet.By taking g729 communication data packet as an example, the predetermined load threshold value of g729 communication data packet is 20 bytes, can for 2 bytes,
10 bytes, 12 bytes, 20 bytes, therefore the payload of the normal communication data packet of g729 needs to be less than or is equal to 20 bytes,
And the payload of the exceptional communication data packet of g729 is greater than 20 bytes, such as:40 bytes, 60 bytes etc., cause to communicate
The Media Gateway of receiving side signal can not be supported to convert, therefore can carry out processing of unpacking to exceptional communication data packet.
Further, when detecting at least one described communication data packet there are when exceptional communication data packet, the sequence
Number allocation unit 12 can detecte the frame number of the network communication data flow, if the frame number is even number, the serial number distribution
Unit 12 can use preset data amount unpack processing to the exceptional communication data packet to generate data subpackage, described pre-
If data volume can be above-mentioned predetermined load threshold value, such as:Assuming that the payload of exceptional communication data packet is 40 bytes, preset
Data volume is 20 bytes, then the exceptional communication data packet is unpacked processing as two data subpackages etc., the serial number allocation unit
12 can distribute the row of the data subpackage according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value
Column serial number, according to the example above, the exceptional communication data packet is divided into two data subpackages, it is assumed that the exceptional communication data packet
Arrangement serial number 1, preset increments threshold value be 1, then two data subpackage putting in order according to traffic value, will distribute respectively
Arrangement serial number 1 and 2, while needing accordingly to adjust the arrangement serial number of subsequent communication data packet, such as:Original arrangement serial number
For 2 communication data packet, needing to be arranged serial number according to the preset increments threshold modifying is 3.
If the frame number is odd number, the serial number allocation unit 12 can be using preset data amount to the exceptional communication
Data packet unpack processing to generate data subpackage, and unpacks that treated to exceptional communication data packet remaining data amount carries out
Data splicing distributes the data subpackage according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value
Arranging serial number, the treatment process unpacked and process when arranging assigning process and the frame number of serial number as even number are identical,
However, unpacking to exceptional communication data packet since frame number is odd number and certainly existing remaining data amount, the serial number after handling
The remaining data amount and next communication data packet can be carried out data splicing by allocation unit 12, it is preferred that assuming that described
Remaining data amount be 10 bytes, if next communication data packet be more than or equal to 10 bytes, will be in next data packet
First 10 byte and the remaining data amount carry out data splicing to generate a data subpackage, if next communication data packet is 2
The remaining data amount and next communication data packet are then directly carried out data splicing and have generated data point by byte
Packet;Assuming that the remaining data amount is 2 bytes, if next communication data packet be more than or equal to 10 bytes, abandon described in
Remaining data amount, using 10 byte of head in next data packet as a data subpackage, if next communication data packet is 2 words
Section, then directly abandon next communication data packet.
Data flow transmission unit 13, for the arrangement based on normal communication data packet at least one described communication data packet
It is logical to generate the network comprising the normal communication data packet and the data subpackage for the arrangement serial number of serial number and the data subpackage
Letter data stream, and the network communication data flow of the generation is sent to the second Media Gateway;
In the specific implementation, the data flow transmission unit 13 can be based on positive normal open at least one described communication data packet
The arrangement serial number of the arrangement serial number of letter data packet and the data subpackage, generating includes the normal communication data packet and the number
The second Media Gateway is sent to according to the network communication data flow of subpackage, and by the network communication data flow of the generation, described
Two Media Gateway can specifically be expressed as the Media Gateway of signal of communication recipient in Netcom's communication process, the second media net
The network communication data flow of the generation can be converted to signal of communication by pass, to be transmitted to the user terminal of recipient.
It should be noted that the side calling party in above-mentioned signal of communication sender and signal of communication recipient, in addition one
Side is callee, i.e., when signal of communication sender is calling party, signal of communication recipient is callee;Signal of communication sender is
When callee, signal of communication recipient is calling party, is specifically determined by the transmission direction of current communication signal.
In embodiments of the present invention, by detecting network communication data flow there are when exceptional communication data packet, it is right
Exceptional communication data packet carries out processing of unpacking, distribution is unpacked the arrangement serial number of data subpackage after processing, and will obtain after processing
Normal communication data flow is sent to the Media Gateway of recipient, realizes abnormal network communication data stream being converted to proper network
The process of communication data stream allows the Media Gateway of recipient to support conversion normal network communications data flow, improves net
The transmission quality of network communication, and then ensure that the using effect of network communication.
Fig. 5 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another communication service equipment.Such as Fig. 4 institute
Show, the communication service equipment 1 of the embodiment of the present invention may include:Data flow acquiring unit 11, serial number allocation unit 12, number
According to stream transmission unit 13 and serial number adjustment unit 14.
Data flow acquiring unit 11, for obtaining the network communication data flow of the first Media Gateway transmission;
In the specific implementation, as the both sides of network communication or multi-party progress network communication, the data flow acquiring unit 11
The network communication data flow of available first Media Gateway transmission, it is logical that first Media Gateway can specifically be expressed as Netcom
The Media Gateway of signal of communication sender during letter, first Media Gateway obtain the signal of communication of sender's transmission, and
The signal of communication is converted into network communication data flow, to be sent to the communication service equipment 1, the network communication data
Stream may include at least one communication data packet, and the communication data packet can be the communication of the types such as g729, g711 or g723
Data packet.
It is understood that the network communication may include two kinds of communication types:The communication of network clawback and network direct dialing
Communication, the network clawback communication are specially:After the network communication number of caller dials callee, the communication service equipment
Automatic dialing is called back platform access code by 1, and clawback platform will be called back with the identity of operator to calling party, while according to network
Communicating number calls callee, when calling party and callee's selection are answered at this time, that is, establishes the connection of network clawback communication;Network
Direct dialing communicates:After the network communication number of caller dials callee, the communication service equipment 1 will lead to according to network
Signal code calls callee, when callee's selection at this time is answered, that is, establishes the connection of network direct dialing communication.
Serial number adjustment unit 14, for the communication type according to network communication, and according at least one described communication data
The traffic value of each communication data packet puts in order in packet, is adjusted to the arrangement serial number of each communication data packet;
In the specific implementation, the case where jumping in order to avoid arrangement serial number, the serial number adjustment unit 14 can be first right
The arrangement serial number of each communication data packet carries out serial number calibration at least one described communication data packet, that is, guarantees each communication data packet
Arrangement serial number be to be arranged according to putting in order for traffic value.The serial number adjustment unit 14 can be logical according to network
The communication type of letter, and put in order according to the traffic value of each communication data packet at least one described communication data packet,
The arrangement serial number of each communication data packet is adjusted.It should be noted that further including in the network communication data flow
Remainder data packet in addition at least one described communication data packet, such as:If communication data packet is g729, the network communication
It may also contain the data packet of other carrying medium types such as g711, g723 in data flow;If communication data packet is g711, institute
State the data packet that may also contain other carrying medium types such as g729, g723 in network communication data flow, the embodiment of the present invention
The data packet of the type is known as remainder data packet.
Specifically, please also refer to Fig. 6, for the embodiment of the invention provides a kind of structural representations of serial number adjustment unit
Figure.As shown in fig. 6, the serial number adjustment unit 14 may include:
First incremental detection subelement 141, for according at least one communication number described in the network communication data flow
Accordingly and the traffic value of the remainder data packet puts in order, and detects each communication data packet at least one described communication data
Arrangement serial number relative to previous continuous communication data packet arrangement serial number sequence number delta;
First serial number adjusts subelement 142, detects that there are the first communication datas in each communication data packet for working as
When the sequence number delta of packet is not equal to preset increments threshold value, using the first communication data packet described in the preset increments adjusting thresholds
Arrange serial number;
In the specific implementation, the first incremental detection subelement 141 can when the communication type is network clawback communication
To be arranged according to the traffic value of at least one communication data described in the network communication data flow and the remainder data packet
Column sequence detects the arrangement serial number of each communication data packet at least one described communication data relative to previous continuous communication
The sequence number delta of the arrangement serial number of data packet, when the communication service equipment 1 detects that there are in each communication data packet
When the sequence number delta of one communication data packet is not equal to preset increments threshold value, the first serial number adjustment subelement 142 can be used
The arrangement serial number of first communication data packet described in the preset increments adjusting thresholds, such as:Preset increments threshold value is 1, current to examine
The arrangement serial number 4 of the g729 communication data packet of survey, and its previous data packet is also g729 communication data packet, i.e., it is referred to as previous
A continuous communication data packet, if the arrangement serial number 2 of continuous communication data packet previous at this time, the g729 of current detection
Communication data packet is the first communication data packet, and the first serial number adjustment subelement 142 can communicate the g729 of current detection
The arrangement serial number of data packet is adjusted to 3.
Optionally, please also refer to Fig. 7, for the embodiment of the invention provides the structural representations of another serial number adjustment unit
Figure.As shown in fig. 7, the serial number adjustment unit 14 may include:
Second incremental detection subelement 143, for according at least one communication number described in the network communication data flow
Accordingly and the traffic value of the remainder data packet puts in order, and detects each communication data packet at least one described communication data
Arrangement serial number relative to previous continuous communication data packet arrangement serial number sequence number delta;
Second serial number adjusts subelement 144, detects that there are the second communication datas in each communication data packet for working as
When the sequence number delta of packet is not equal to preset increments threshold value, using the second communication data packet described in the preset increments adjusting thresholds
Arrange serial number;
Second serial number adjusts subelement 144, is also used to reject its described remainder in the network communication data flow
According to packet, and using the arrangement serial number of each communication data packet described in the preset increments adjusting thresholds;
In the specific implementation, the second incremental detection subelement 143 is same when the communication type is network direct dialing communication
Sample can be according to the data flow of at least one communication data described in the network communication data flow and the remainder data packet
Value puts in order, and detects the arrangement serial number of each communication data packet at least one described communication data relative to previous continuous
The sequence number delta of the arrangement serial number of communication data packet is deposited when the communication service equipment 1 detects in each communication data packet
When the sequence number delta of the first communication data packet is not equal to preset increments threshold value, second serial number adjustment subelement 144 can be with
Using the arrangement serial number of the first communication data packet described in the preset increments adjusting thresholds, such as:Preset increments threshold value is 1, when
The arrangement serial number 4 of the g729 communication data packet of preceding detection, and its previous data packet is also g729 communication data packet, that is, is known as
Previous continuous communication data packet, if the arrangement serial number 2 of continuous communication data packet previous at this time, current detection
G729 communication data packet is the first communication data packet, and the second serial number adjustment subelement 144 can be by the g729 of current detection
The arrangement serial number of communication data packet is adjusted to 3.Due to only focusing on communication data packet, therefore in order to just in network direct dialing communication
In the packet loss detection etc. of communication data packet, the second serial number adjustment subelement 144 also needs to reject the network communication data
The remainder data packet in stream, and the use preset increments threshold value adjusts the arrangement sequence of each communication data packet again
Number.
Serial number allocation unit 12 detects that there are exceptional communication data packets at least one described communication data packet for working as
When, unpack processing to the exceptional communication data packet to generate data subpackage, and distribute the arrangement sequence of the data subpackage
Number;
In the specific implementation, when the communication service equipment 1 detects at least one described communication data packet there is exception
When communication data packet, the serial number allocation unit 12 can carry out processing of unpacking to the exceptional communication data packet, more to generate
A data subpackage, and the arrangement serial number of the data subpackage is allocated, it should be noted that communication data packet is in transmission
Corresponding traffic value and arrangement serial number are carried in the process, and traffic value is the data flow for illustrating communication data packet, row
Column serial number is intended to indicate that the continuity of data flow, the exceptional communication data packet are expressed as payload greater than predetermined load threshold
The communication data packet of value, the normal communication data packet are expressed as the communication number that payload is less than or equal to predetermined load threshold value
According to packet.By taking g729 communication data packet as an example, the predetermined load threshold value of g729 communication data packet is 20 bytes, can for 2 bytes,
10 bytes, 12 bytes, 20 bytes, therefore the payload of the normal communication data packet of g729 needs to be less than or is equal to 20 bytes,
And the payload of the exceptional communication data packet of g729 is greater than 20 bytes, such as:40 bytes, 60 bytes etc., cause to communicate
The Media Gateway of receiving side signal can not be supported to convert, therefore can carry out processing of unpacking to exceptional communication data packet.
Specifically, please also refer to Fig. 8, for the embodiment of the invention provides the structural schematic diagrams of serial number allocation unit.Such as
Shown in Fig. 8, the serial number allocation unit 12 may include:
Frame number detection sub-unit 121 detects that there are exceptional communication numbers at least one described communication data packet for working as
When according to packet, the frame number of the network communication data flow is detected;
Serial number distributes subelement 122, is used for when the frame number is even number, using preset data amount to the exceptional communication
Data packet unpack processing to generate data subpackage, and according to the arrangement serial number of the exceptional communication data packet and using default
Delta threshold distributes the arrangement serial number of the data subpackage;
The serial number distributes subelement 122, is also used to when the frame number is odd number, using preset data amount to described different
Normal communication data packet unpack processing to generate data subpackage, and to exceptional communication data packet remaining data of unpacking that treated
Amount carries out data splicing, distributes the data according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value
The arrangement serial number of subpackage;
In the specific implementation, when detecting at least one described communication data packet there are when exceptional communication data packet, it is described
Frame number detection sub-unit 121 can detecte the frame number of the network communication data flow, if the frame number is even number, the serial number
Distribution subelement 122 can use preset data amount unpack processing to the exceptional communication data packet to generate data point
Packet, the preset data amount can be above-mentioned predetermined load threshold value, such as:Assuming that the payload of exceptional communication data packet is 40
Byte, preset data amount are 20 bytes, then the exceptional communication data packet are unpacked processing as two data subpackages etc., the serial number
Distributing subelement 122 can be according to the arrangement serial number of the exceptional communication data packet and using the preset increments threshold value distribution number
According to the arrangement serial number of subpackage, according to the example above, the exceptional communication data packet is divided into two data subpackages, it is assumed that the exception
The arrangement serial number 1 of communication data packet, preset increments threshold value are 1, then two data subpackage putting in order according to traffic value,
The arrangement serial number 1 and 2 that will be distributed respectively, while needing accordingly to adjust the arrangement serial number of subsequent communication data packet, such as:It is former
The communication data packet for first arranging serial number 2, needing to be arranged serial number according to the preset increments threshold modifying is 3.
If the frame number is odd number, the serial number distribution subelement 122 can be using preset data amount to the exception
Communication data packet unpack processing to generate data subpackage, and to exceptional communication data packet remaining data amount of unpacking that treated
Data splicing is carried out, distributes the data point according to the arrangement serial number of the exceptional communication data packet and using preset increments threshold value
Process phase when the arrangement serial number of packet, the treatment process unpacked and the assigning process for arranging serial number and the frame number is even numbers
Together, it however, since frame number is odd number, unpacks to exceptional communication data packet and certainly exists remaining data amount after handling, it is described
Serial number, which distributes subelement 122, can carry out data splicing for the remaining data amount and next communication data packet, it is preferred that false
If the remaining data amount is 10 bytes, if next communication data packet is more than or equal to 10 bytes, by next data
10 byte of head and the remaining data amount in packet carry out data and splice to generate a data subpackage, if next communication data
Packet is 2 bytes, then the remaining data amount and next communication data packet is directly carried out data splicing and generated a number
According to subpackage;Assuming that the remaining data amount is 2 bytes, if next communication data packet is to abandon more than or equal to 10 bytes
The remaining data amount, using 10 byte of head in next data packet as a data subpackage, if next communication data packet
For 2 bytes, then next communication data packet is directly abandoned.
Data flow transmission unit 13, for the arrangement based on normal communication data packet at least one described communication data packet
It is logical to generate the network comprising the normal communication data packet and the data subpackage for the arrangement serial number of serial number and the data subpackage
Letter data stream, and the network communication data flow of the generation is sent to the second Media Gateway;
In the specific implementation, the data flow transmission unit 13 can be based on positive normal open at least one described communication data packet
The arrangement serial number of the arrangement serial number of letter data packet and the data subpackage, generating includes the normal communication data packet and the number
The second Media Gateway is sent to according to the network communication data flow of subpackage, and by the network communication data flow of the generation, described
Two Media Gateway can specifically be expressed as the Media Gateway of signal of communication recipient in Netcom's communication process, the second media net
The network communication data flow of the generation can be converted to signal of communication by pass, to be transmitted to the user terminal of recipient.
It should be noted that the side calling party in above-mentioned signal of communication sender and signal of communication recipient, in addition one
Side is callee, i.e., when signal of communication sender is calling party, signal of communication recipient is callee;Signal of communication sender is
When callee, signal of communication recipient is calling party, is specifically determined by the transmission direction of current communication signal.
In embodiments of the present invention, by detecting network communication data flow there are when exceptional communication data packet, it is right
Exceptional communication data packet carries out processing of unpacking, distribution is unpacked the arrangement serial number of data subpackage after processing, and will obtain after processing
Normal communication data flow is sent to the Media Gateway of recipient, realizes abnormal network communication data stream being converted to proper network
The process of communication data stream allows the Media Gateway of recipient to support conversion normal network communications data flow, improves net
The transmission quality of network communication, and then ensure that the using effect of network communication;Pass through the arrangement serial number in advance to communication data packet
Be adjusted, can to avoid arrangement serial number occur jump cause Media Gateway or user terminal to detect packet loss, into
One step improves the transmission quality of network communication.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.