Nothing Special   »   [go: up one dir, main page]

CN104995985B - A kind of method, apparatus and system of ip voice local exchange - Google Patents

A kind of method, apparatus and system of ip voice local exchange Download PDF

Info

Publication number
CN104995985B
CN104995985B CN201480000452.8A CN201480000452A CN104995985B CN 104995985 B CN104995985 B CN 104995985B CN 201480000452 A CN201480000452 A CN 201480000452A CN 104995985 B CN104995985 B CN 104995985B
Authority
CN
China
Prior art keywords
user equipment
voice packet
equipment
local exchange
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201480000452.8A
Other languages
Chinese (zh)
Other versions
CN104995985A (en
Inventor
刘海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104995985A publication Critical patent/CN104995985A/en
Application granted granted Critical
Publication of CN104995985B publication Critical patent/CN104995985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/20Communication route or path selection, e.g. power-based or shortest path routing based on geographic position or location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

This application discloses the method, apparatus and system of a kind of ip voice local exchange, this method comprises: first network equipment receives the first ip voice packet of second network equipment forwarding, wherein the purpose user equipment of the first ip voice packet is the first user equipment;Determine that the characteristic information of the characteristic information and the first ip voice packet for the second ip voice packet that second user equipment is sent matches according to the characteristic information of the first ip voice packet, wherein the first user equipment and second user equipment belong to first network equipment;Local exchange relationship is established for second user equipment and the first user equipment, wherein, the ip voice packet that local exchange relationship instruction second user equipment is sent locally is transmitted to the ip voice packet that the first user equipment or the first user equipment are sent by first network equipment and is locally transmitted to second user equipment by first network equipment.

Description

A kind of method, apparatus and system of ip voice local exchange
Technical field
This application involves field of communication technology, in particular to a kind of the method, apparatus and system of ip voice local exchange.
Background technique
With the fast development of wireless communication technique, we enter LTE, and (Long Term Evolution, is drilled for a long time Into) epoch, LTE wireless communication system is the evolution of 3G, commonly referred to as 3.9G, and compared with 3G, LTE has more technical advantage, tool Body is embodied in: the features such as high data rate, grouping transmission, delay reduction, wide area cover and are backward compatible.Terminal is accessed from LTE The process of system are as follows: (eNB can also be replaced by radio network controller (RNC) or nothing for user equipment UE access evolution base station eNB Line local area network WLANAP replacement), then Access Service Network Gateway SGW, then access package exchange gateway PGW, internet is entered by PGW.
VOIP (voice over IP) ip voice is IP network come by way of transmitting voice, two user terminals it Between by signaling (usually SIP signaling) negotiate VOIP user plane information (including IP address port, encoding and decoding speech etc.), negotiate Later, so that it may carry out VOIP phone.As shown in Figure 1, if two mobile subscriber the first user UE1 and second user UE2 Between data packet switching path be UE1-eNB-SGW-PGW-PGW-SGW-eNB-UE2, wherein between two PGW may Also to pass through several routers or other switching equipment.
Currently, in switching path shown in Fig. 1, even if the first user UE1 and second user UE2 belong to it is same The eNB or same SGW (namely UE1 and UE2 are connected under the same eNB), but the IP mutually sent between them Voice packet still will undergo the path of a complete eNB-SGW-PGW-PGW-SGW-eNB, then inevitably resulting in exchange road Diameter redundancy increases network flow, to increase network investment.
It can be seen that when two users are in the same network equipment there is waste in existing ip voice exchanged form The technical issues of Internet resources.
Summary of the invention
The embodiment of the present application is by providing the method, apparatus and system of a kind of ip voice local exchange, to solve when two When a user is in the same network equipment, existing for existing ip voice exchanged form the technical issues of waste Internet resources.
In a first aspect, providing a kind of method of ip voice local exchange, comprising: first network equipment receives the second network and sets First ip voice packet of standby forwarding, wherein the purpose user equipment of the first ip voice packet is the first user equipment;According to institute The characteristic information for stating the first ip voice packet determines the characteristic information and described the of the second ip voice packet that second user equipment is sent The characteristic information of one ip voice packet matches, wherein first user equipment and the second user equipment belong to described First network equipment;Local exchange relationship is established for the second user equipment and first user equipment, wherein described It is described that ground commutative relation indicates that the ip voice packet that the second user equipment is sent locally is transmitted to by the first network equipment The ip voice packet that first user equipment or first user equipment are sent locally is transmitted to institute by the first network equipment State second user equipment.
With reference to first aspect, in the first possible implementation, the second network is received in the first network equipment Before the first ip voice packet that device forwards are come, the method also includes: the first network equipment receives the second user The second ip voice packet that equipment is sent;The characteristic information for saving the second ip voice packet, by the second ip voice packet It is sent to second network equipment.
With reference to first aspect, in the second possible implementation, described for the second user equipment and described First user equipment is established before local exchange relationship, the method also includes: when the characteristic information of the second ip voice packet When matching with the characteristic information of the first ip voice packet, increase the value of counter;It determines that the value of the counter reaches to set Determine threshold value, wherein be that the second user equipment and described first are used when the value of the counter reaches the given threshold Family equipment establishes the local exchange relationship.
With reference to first aspect, in the third possible implementation, described for the second user equipment and described First user equipment is established after local exchange relationship, the method also includes: the first network equipment receives described second The third ip voice packet that user equipment is sent, and inquire the corresponding local exchange relationship of the second user equipment Afterwards, the third ip voice packet is locally transmitted to first user equipment of the local exchange relationship instruction;Or institute It states first network equipment and receives the 4th ip voice packet that first user equipment is sent, and inquire first user After the corresponding local exchange relationship of equipment, it is signified that the 4th ip voice packet is locally transmitted to the local exchange relationship The second user equipment shown.
The third possible implementation with reference to first aspect, in the fourth possible implementation, the inquiry To after the corresponding local exchange relationship of the second user equipment, the third ip voice packet is locally transmitted to described First user equipment that ground commutative relation indicates, comprising: inquire the corresponding local of the second user equipment After commutative relation, the address conversion relationship of address conversion relationship and first user equipment based on the second user equipment Address conversion is carried out, the address conversion relationship of the second user equipment includes the first IP address and first port and the 2nd IP Address and second port corresponding relationship, the address conversion relationship of first user equipment include third IP address and third port And the 4th IP address and the 4th port corresponding relationship;The third ip voice packet is locally transmitted to first user to set It is standby.
The third possible implementation with reference to first aspect, in a fifth possible implementation, the inquiry To after the corresponding local exchange relationship of first user equipment, the 4th ip voice packet is locally transmitted to described The second user equipment shown in ground commutative relation meaning, comprising: it is described corresponding to inquire first user equipment After ground commutative relation, the address conversion of address conversion relationship and the second user equipment based on first user equipment is closed System carries out address conversion, and the address conversion relationship of first user equipment includes the second IP address and second port and first IP address and first port corresponding relationship, the address conversion relationship of the second user equipment include the 4th IP address and the 4th end Mouth and third IP address and third port corresponding relationship;The 4th ip voice packet is locally transmitted to the second user to set It is standby.
With reference to first aspect or first aspect the first to any one possible implementation in the 5th kind, In 6th kind of possible implementation, the characteristic information, comprising: the real time transport protocol RTP sequence number and root of ip voice packet The cryptographic Hash being calculated according to the payload of ip voice packet;Or the real time transport protocol RTP sequence number and ip voice of ip voice packet The label of packet, the label are added after receiving the ip voice packet that user equipment is sent by the first network equipment, In, the label is composed of at least one code field in RTP encapsulation head, for identify the first network equipment and The user equipment.
The 6th kind of possible implementation with reference to first aspect, in the 7th kind of possible implementation, the determination The characteristic information of the characteristic information and the first ip voice packet of the second ip voice packet that second user equipment is sent matches, and wraps It includes: determining that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and determine The cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet;Or determine second ip voice The RTP sequence number of packet is identical as the RTP sequence number of the first ip voice packet, and determines the label of the second ip voice packet It is identical as the label of the first ip voice packet.
Second aspect provides a kind of device of ip voice local exchange, is applied to first network equipment, described device packet It includes: the first receiving unit, determination unit and establishing unit, in which: first receiving unit is set for receiving the second network First ip voice packet of standby forwarding, wherein the purpose user equipment of the first ip voice packet is the first user equipment;It is described true Order member, for determining the second ip voice packet that second user equipment is sent according to the characteristic information of the first ip voice packet The characteristic information of characteristic information and the first ip voice packet matches, wherein first user equipment and described second is used Family equipment belongs to the first network equipment;It is described to establish unit, for being used for the second user equipment and described first Family equipment establishes local exchange relationship, wherein the local exchange relationship indicates the ip voice that the second user equipment is sent Packet is locally transmitted to the IP language that first user equipment or first user equipment are sent by the first network equipment Sound packet is locally transmitted to the second user equipment by the first network equipment.
In conjunction with second aspect, in the first possible implementation, described device further include: the second receiving unit is used In the second ip voice packet that the reception second user equipment is sent;Storage unit, for saving second ip voice The second ip voice packet is sent to second network equipment by the characteristic information of packet.
It is in the second possible implementation, described to establish unit in conjunction with second aspect, it is also used to: when described second When the characteristic information of the characteristic information of ip voice packet and the first ip voice packet matches, increase the value of counter;Determine institute The value for stating counter reaches given threshold, wherein when the value of the counter reaches the given threshold, uses for described second Family equipment and first user equipment establish the local exchange relationship.
In conjunction with second aspect, in the third possible implementation, described device further include: third receiving unit is used In the third ip voice packet that the reception second user equipment is sent;First retransmission unit, for inquiring the second user After the corresponding local exchange relationship of equipment, the third ip voice packet is locally transmitted to the local exchange relationship and is indicated First user equipment;4th receiving unit, the 4th ip voice packet sent for receiving first user equipment;The Two retransmission units, after inquiring the corresponding local exchange relationship of first user equipment, by the 4th IP language Sound packet is locally transmitted to the second user equipment indicated by the local exchange relationship.
In conjunction with the third possible implementation of second aspect, in the fourth possible implementation, described first Retransmission unit is used for: after inquiring the corresponding local exchange relationship of the second user equipment, being based on the second user The address conversion relationship of equipment and the address conversion relationship of first user equipment carry out address conversion, and the second user is set Standby address conversion relationship includes the first IP address and first port and the second IP address and second port corresponding relationship, described The address conversion relationship of first user equipment includes third IP address and third port and the 4th IP address and the 4th port pair It should be related to, the third ip voice packet is locally transmitted to first user equipment.
In conjunction with the third possible implementation of second aspect, in a fifth possible implementation, described second Retransmission unit is used for: after inquiring the corresponding local exchange relationship of first user equipment, being based on first user The address conversion relationship of the address conversion relationship of equipment and the second user equipment carries out address conversion, and first user sets Standby address conversion relationship includes the second IP address and second port and the first IP address and first port corresponding relationship, described The address conversion relationship of second user equipment includes the 4th IP address and the 4th port and third IP address and third port pair It should be related to, the 4th ip voice packet is locally transmitted to the second user equipment.
In conjunction with the first of second aspect or second aspect to any one possible implementation in the 5th kind, In 6th kind of possible implementation, the characteristic information, comprising: the real time transport protocol RTP sequence number and root of ip voice packet The cryptographic Hash being calculated according to the payload of ip voice packet;Or the real time transport protocol RTP sequence number and ip voice of ip voice packet The label of packet, the label are added after receiving the ip voice packet that user equipment is sent by described device, wherein the IP The label of voice packet is composed of at least one code field in RTP encapsulation head, for identifying the first network equipment With the user equipment.
In conjunction with the 6th kind of possible implementation of second aspect, in the 7th kind of possible implementation, the determination Unit is used for: determine that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, with And determine that the cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet;Or determine described second The RTP sequence number of ip voice packet is identical as the RTP sequence number of the first ip voice packet, and determines the second ip voice packet Label it is identical as the label of the first ip voice packet.
The third aspect provides a kind of system of ip voice local exchange, comprising: first network equipment, and with described Second network equipment of one network equipment connection;Wherein, the first network equipment includes the ip voice as described in second aspect The device of local exchange.
Fourth aspect provides a kind of device of ip voice local exchange, is applied to first network equipment, described device packet It includes: receiver, for receiving the first ip voice packet of second network equipment forwarding, wherein the mesh of the first ip voice packet User equipment be the first user equipment;Processor, for determining the second use according to the characteristic information of the first ip voice packet The characteristic information of the characteristic information and the first ip voice packet of the second ip voice packet that family equipment is sent matches, wherein institute It states the first user equipment and the second user equipment belongs to the first network equipment;It and is the second user equipment Local exchange relationship is established with first user equipment, wherein the local exchange relationship indicates the second user equipment The ip voice packet of transmission is locally transmitted to first user equipment by the first network equipment or first user sets The ip voice packet that preparation is sent locally is transmitted to the second user equipment by the first network equipment;Memory, for storing Local exchange relationship, and store the characteristic information of the first ip voice packet and the second ip voice packet.
In conjunction with fourth aspect, in the first possible implementation, the receiver is also used to: receiving described second The second ip voice packet that user equipment is sent;Described device, further includes: transmitter, for saving institute in the memory After the characteristic information for stating the second ip voice packet, the second ip voice packet is sent to second network equipment.
In conjunction with fourth aspect, in the second possible implementation, described device, further includes: counter, for working as institute When the characteristic information of the characteristic information and the first ip voice packet of stating the second ip voice packet matches, increase the counter Value;The processor, is also used to: determining that the value of the counter reaches given threshold, wherein when the value of the counter reaches When the given threshold, the local exchange relationship is established for the second user equipment and first user equipment.
In conjunction with fourth aspect, in the third possible implementation, the receiver is also used to: being described second User equipment and first user equipment are established after local exchange relationship, and the third that the second user equipment is sent is received Ip voice packet;The processor, is also used to: after inquiring the corresponding local exchange relationship of the second user equipment, control The transmitter is made to set first user that the third ip voice packet is locally transmitted to the local exchange relationship instruction It is standby;The receiver, is also used to: establishing local exchange for the second user equipment and first user equipment and is related to it Afterwards, the 4th ip voice packet that first user equipment is sent is received;The processor, is also used to: inquiring described first and uses After the corresponding local exchange relationship of family equipment, control the transmitter the 4th ip voice packet is locally transmitted to it is described The second user equipment indicated by local exchange relationship.
In conjunction with the third possible implementation of fourth aspect, in the fourth possible implementation, the processing Device is also used to: after inquiring the corresponding local exchange relationship of the second user equipment, being based on the second user equipment Address conversion relationship and first user equipment address conversion relationship carry out address conversion, the second user equipment Address conversion relationship includes the first IP address and first port and the second IP address and second port corresponding relationship, and described first The address conversion relationship of user equipment includes the corresponding pass of third IP address and third port and the 4th IP address and the 4th port System;It controls the transmitter and the third ip voice packet is locally transmitted to first user equipment.
In conjunction with the third possible implementation of fourth aspect, in a fifth possible implementation, the processing Device is also used to: after inquiring the corresponding local exchange relationship of first user equipment, being based on first user equipment Address conversion relationship and the second user equipment address conversion relationship carry out address conversion, first user equipment Address conversion relationship includes the second IP address and second port and the first IP address and first port corresponding relationship, and described second The address conversion relationship of user equipment includes the 4th IP address and the 4th port and third IP address and the corresponding pass of third port System;It controls the transmitter and the 4th ip voice packet is locally transmitted to the second user equipment.
In conjunction with the first of fourth aspect or fourth aspect to any one possible implementation in the 5th kind, In 6th kind of possible implementation, the characteristic information, comprising: the real time transport protocol RTP sequence number and root of ip voice packet The cryptographic Hash being calculated according to the payload of ip voice packet;Or the real time transport protocol RTP sequence number and ip voice of ip voice packet The label of packet, the label are added after receiving the ip voice packet that user equipment is sent by the first network equipment, In, the label is composed of at least one code field in RTP encapsulation head, for identify the first network equipment and The user equipment.
In conjunction with the 6th kind of possible implementation of fourth aspect, in the 7th kind of possible implementation, the processing Device is also used to: determine that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, with And determine that the cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet;Or determine described second The RTP sequence number of ip voice packet is identical as the RTP sequence number of the first ip voice packet, and determines the second ip voice packet Label it is identical as the label of the first ip voice packet.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Due in the embodiment of the present application, when the first user and second user belong to first network equipment, first When the network equipment receives ip voice packet of the purpose user that the forwarding of second network equipment comes for the first user, take according to the IP The characteristic information for the ip voice packet that the characteristic information of voice packet is sent with the user saved matches, if it is determined that the ip voice The characteristic information for the ip voice packet that the characteristic information of packet can be sent with the second user that has saved match, then for second user with Local exchange relationship is established between first user, wherein indicate that second user is made with first with mutual in local exchange relationship For the purpose user of other side, when to carry out the transmission of ip voice packet between second user and the first user next time, first network Equipment directly can locally forward ip voice packet based on the local exchange relationship, solve when two users are in the same net When network equipment, existing for existing ip voice exchanged form the technical issues of waste Internet resources, realize same to be connected to Two users under a network equipment establish local exchange relationship in order to exchange ip voice Bao Shineng again between two users It is enough directly to carry out local exchange, save Internet resources.
Detailed description of the invention
Fig. 1 switching path of data packet between the first user UE1 provided by the embodiments of the present application and second user UE2 shows It is intended to;
Fig. 2 is a kind of flow chart of the method for ip voice local exchange provided by the embodiments of the present application;
Fig. 3 is the IP that the method provided by the embodiments of the present application by ip voice local exchange in the embodiment of the present application is realized The switching path comparison diagram of the switching path of voice packet and existing ip voice packet;
Fig. 4 is a kind of apparatus structure schematic diagram of ip voice local exchange provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application is solved by providing the method, apparatus and system of a kind of ip voice local exchange when two When user is in the same network equipment, existing for existing ip voice exchanged form the technical issues of waste Internet resources.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper It states technical solution to be described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the application The detailed description of technical solution, rather than the restriction to technical scheme, in the absence of conflict, the application are implemented Technical characteristic in example and embodiment can be combined with each other.
VOIP (voice over Internet Protocol abbreviation ip voice) is exactly by analog signal in brief (Voice) it digitizes, does real-time delivery on IP network (IP Network) in the form of data packet (Data Packet), For example, beating IP phone or the networking telephone.The method of the ip voice local exchange provided in the embodiment of the present application is mainly used in In ip voice local switching system, which includes the various network equipments, for example, evolution base station eNB, nothing Line network controller RNC, WLAN WLAN AP, gateway SGW, packet switch gateway PGW, transcoder and mixer Deng.The device of ip voice local exchange corresponding with the method for the ip voice local exchange is exactly to be arranged in these network equipments In in, for example, be arranged in evolution base station eNB or gateway SGW.Therefore, the first network mentioned in this application Equipment just refers to the device for being provided with ip voice local exchange, thus the network equipment with ip voice local exchange function, And second network equipment refers to connecting with first network equipment and close to those of the internet layer network equipment, the second network Equipment is referred to as the upstream network device of first network equipment.
No matter whether two user equipmenies for carrying out ip voice communication at present are in the same network equipment, ip voice packet Switching path is the same, i.e. ip voice packet will just can enter interconnection by the various network equipments after user equipment sending Net, for example, by evolution base station eNB (or radio network controller (RNC) or WLAN WLAN AP), using service Gateway SGW, then internet is entered by packet switch gateway PGW.The method of ip voice local exchange provided by the present application is exactly to be It solves when two user equipmenies are all in the same network equipment, ip voice packet still will enter by normal transmission path The technical issues of passing the network equipment back again behind internet and causing waste Internet resources.Therefore, it mentions in the embodiment of the present application Under the first network equipment that can carry out local exchange to ip voice packet supplied, ip voice communication will be carried out by being connected at least a pair User equipment, i.e. the first user equipment and second user equipment belong to first network equipment.For example, the first user equipment with Second user equipment is connected to the same evolution base station eNB, or is connected to the same gateway SGW.When the first user equipment When being all connected under first network equipment with second user equipment, first network equipment can be understood as the two user equipmenies Local network device.
As shown in Fig. 2, the method for ip voice local exchange provided by the embodiments of the present application, specifically includes step:
S1: first network equipment receives the first ip voice packet of second network equipment forwarding, wherein first ip voice The purpose user equipment of packet is the first user equipment;
In the specific implementation process, in step sl, first network equipment connects as in ip voice communication with user equipment The underlay network device connect is connected with user equipment in first network device downstream, is connected in the upstream of first network equipment Second network equipment, second network equipment are responsible for being some under first network equipment by the purpose user equipment in internet The ip voice packet of user equipment is sent to first network equipment.Therefore, because the first user equipment is connected to first network equipment Under, when the purpose user equipment of the first ip voice packet is the first user equipment, first network equipment can receive the second network The first ip voice packet that device forwards come.It will be clear that second network equipment is more closer than first network equipment The network equipment of internet, for example, if second network equipment is service network when first network equipment is evolution base station eNB SGW is closed, if first network equipment is gateway SGW, second network equipment is packet switch gateway PGW.
S2: the second ip voice packet that second user equipment is sent is determined according to the characteristic information of the first ip voice packet The characteristic information of characteristic information and the first ip voice packet matches, wherein first user equipment and described second is used Family equipment belongs to the first network equipment;
In the specific implementation process, first network equipment is as the bottom-layer network connecting in ip voice communication with user equipment Equipment is not only responsible for the ip voice packet that second network equipment forwarding of upstream to be received comes, to be also responsible for connect in its lower section User equipment send ip voice packet send.If the ip voice packet that first network equipment receives and the IP sent out Voice packet is the same packet, then illustrates that the purpose user equipment of the ip voice packet and transmission user equipment are all connected to first network Under equipment.
Therefore, when the first IP language that first network equipment is sent by second network equipment that step S1 receives upstream After sound packet, the characteristic information of the first IP meaning of one's words packet is obtained, so that in step s 2 according to the characteristic information of the first ip voice packet It inquires whether local preserves the IP language to match with the characteristic information of the first ip voice packet that other users equipment is sent Sound packet.If it is determined that the second ip voice packet sent by second user equipment can be with the characteristic information phase of the first ip voice packet It mixes, then illustrates that second user equipment is the sending device of the first ip voice packet, the first user equipment is the first ip voice packet Purpose equipment.
Further, characteristic information, comprising:
The real time transport protocol RTP sequence number of ip voice packet, and the cryptographic Hash being calculated according to the payload of ip voice packet; Or
The real time transport protocol RTP sequence number of ip voice packet and the label of ip voice packet, the label are by described first The network equipment adds after receiving the ip voice packet of user equipment transmission, wherein the label by RTP encapsulation head at least One code field is composed, for identifying the first network equipment and user equipment.
In the specific implementation process, the real time transport protocol RTP sequence number for the ip voice packet that characteristic information refers specifically to and The real time transport protocol RTP sequence number of the cryptographic Hash or ip voice packet that are calculated according to the payload of ip voice packet and by First network equipment receives the label added after the ip voice packet that user equipment is sent.
Wherein, the normal data packet format that audio and video are transmitted on internet is defined in real time transport protocol RTP, RTP sequence number is then the sequence number for identifying RTP message transmitted by sender, one message of every transmission, and sequence number increases 1, Recipient is by sequence number come detection messages loss situation, and message of resequencing restores data, and briefly, RTP sequence number is at this It is exactly a sequence number of ip voice packet defined when user equipment side is packaged transmission in application embodiment.
Refer to first network equipment to the payload of ip voice packet according to the cryptographic Hash that the payload of ip voice packet is calculated Hash calculation is carried out, the cryptographic Hash of acquisition is in the embodiment of the present application not specifically limited the hash algorithm of use, for example, The hash algorithm used can be with are as follows: and 16bit is successively taken to the payload of an ip voice packet from the beginning to the end, constitutes a series of integers, If last number inadequate 16, mend and 0 gather together enough below, these integers are subjected to exclusive or calculating by bit, finally obtain one it is whole Number, here it is cryptographic Hash.For example, the payload of an ip voice packet are as follows: 0X1A2346B1123 mends 0 first and obtains: 0X1A2346B11230 is divided into three shapings: 0X1A23,0X46B1,0X1230, carries out position exclusive or and is calculated: 0X1A23^ 0X46B1^0X 1230=0X8EA2, then 0X8EA2 is exactly the cryptographic Hash of the ip voice packet payload.
The label of ip voice packet refers to first network equipment in the ip voice Bao Houwei for receiving user equipment and sending Ip voice packet addition mark, label can beat RTP sequence number in front, specifically by least one of RTP encapsulation head encode Field combination forms, and coding specifically can be Chinese Industrial Standards (CIS) audio-visual product coding CSRC, i.e., increases CSRC to each ip voice packet Label of the field as the packet, the label of ip voice packet, for identifying first network equipment and user equipment.
For an ip voice packet, RTP sequence number combined with payload cryptographic Hash or RTP sequence number with Tag combination together, can be used as the unique identification to the ip voice packet, therefore, in the embodiment of the present application be directed to each IP The characteristic information of voice packet includes two kinds, and one is being made of RTP sequence number and payload cryptographic Hash, another kind is by RTP sequence Number with label form.
Therefore, further, in step s 2, the characteristic information for the second ip voice packet that second user equipment is sent is determined The process to match with the characteristic information of the first ip voice packet, comprising: determine the RTP sequence number and the first IP of the second ip voice packet The RTP sequence number of voice packet is identical, and determines that the cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet, Then illustrate that the characteristic information of the characteristic information and the first ip voice packet of the second ip voice packet matches;Or determine the second ip voice The RTP sequence number of packet is identical as the RTP sequence number of the first ip voice packet, and determines the label and the first IP of the second ip voice packet The label of voice packet is identical, then illustrates that the characteristic information of the characteristic information and the first ip voice packet of the second ip voice packet matches.
It can be seen that when the characteristic information for determining the first ip voice packet can be matched with the characteristic information of the second ip voice packet When upper, then illustrated the first ip voice packet and the second ip voice packet is the same voice packet, and second user equipment is the first IP language The sending device of sound packet, the first user equipment are the purpose equipments of the first ip voice packet.Therefore, in the first user equipment and second It can establish a local exchange relationship between user equipment, that is to say, that later first user equipment and second user equipment Between when carrying out ip voice communication again, ip voice packet that both sides send can not be via internet, and in first network equipment It is local directly to swap.
S3: local exchange relationship is established for the second user equipment and first user equipment, wherein the local Commutative relation indicates that ip voice packet that the second user equipment is sent locally is transmitted to described the by the first network equipment The ip voice packet that one user equipment or first user equipment are sent locally is transmitted to described by the first network equipment Second user equipment.
In the specific implementation process, by the analysis in the embodiment of front it is found that when determine the second ip voice packet with When first ip voice packet is the same voice packet, then illustrate that the first ip voice packet is to be set by second user equipment by first network What preparation was seen off, first network equipment has been returned to after the transmission via internet, and by second network equipment, therefore, Execute step S3, local network device of the first network equipment as the first user equipment and second user equipment, first network Equipment will establish local exchange relationship between second user equipment and the first user equipment.Wherein, local exchange relationship indicates When carrying out ip voice communication between second user equipment and the first user equipment out, the ip voice packet that second user equipment is sent can To be directly locally transmitted to the first user equipment by first network equipment, meanwhile, the ip voice packet that the first user equipment is sent can To be directly locally transmitted to second user equipment by first network equipment.
It the save location to local exchange relationship and is not specifically limited in the embodiment of the present application, as long as first network In the position that equipment can be extracted, such as the user information that can be stored in first network equipment, but work as user When information is deleted, the local exchange relationship between user is also released from therewith, and can only carry out IP according to normal switching path Voice packet has exchanged.
It will be clear that if in the IP network transmission path that the ip voice packet that first network equipment receives passes through Between with the presence of network equipments such as transcoder or mixers, then the payload of ip voice packet can be changed, even if the ip voice at this time The label of packet is identical as the label of the ip voice packet locally saved, and local ip voice can not be done between two user equipmenies and is handed over It changes, local exchange relationship cannot be established, therefore, in actual application, wrapped when in second network equipment for detecting upstream When having included transcoder or mixer, first network equipment can be by the ip voice packet that second network equipment is sent in order to prevent Label, which is brought, to be matched, and first network equipment, should when receiving the ip voice packet that second network equipment sends over The label that ip voice is wrapped is deleted.Therefore, when in second network equipment including transcoder or mixer, IP can only be passed through The RTP sequence number of voice packet judges whether two packets match with payload cryptographic Hash.
Further, it before step S1, further comprises the steps of:
The first network equipment receives the second ip voice packet that the second user equipment is sent;
The second ip voice packet is sent to second network and set by the characteristic information for saving the second ip voice packet It is standby.
In the specific implementation process, first network equipment can be existed based on the characteristic information of the first ip voice packet in step S1 It is to have preserved other users in first network equipment and set that whether local search, which has the premise of matched characteristic information, The characteristic information for the ip voice packet that preparation is sent.Therefore, it before step S1, is set when first network equipment receives second user When the second ip voice packet that preparation is come, inquiry is first had to whether about the corresponding local exchange relationship of second user equipment, such as If fruit inquires, with regard to directly carrying out local exchange;If inquiry is less than illustrating not establish second user equipment and local Local exchange relationship between other users equipment can only then use common switching path, the second ip voice packet is sent to Second network equipment of trip, the second ip voice packet to be sent to its purpose user equipment by second network equipment, but Before being sent to second network equipment, first network equipment will obtain the characteristic information of the second ip voice packet, that is, obtain the The RTP sequence number and payload cryptographic Hash of two ip voice packets, or the RTP sequence number and label of the second ip voice packet are obtained, and protect Deposit the characteristic information of acquisition.
Further, after step s 3, it further comprises the steps of:
The first network equipment receives the third ip voice packet that the second user equipment is sent, and inquires described After the corresponding local exchange relationship of second user equipment, the third ip voice packet is locally transmitted to the local exchange First user equipment of relationship instruction;Or
The first network equipment receives the 4th ip voice packet that first user equipment is sent, and inquires institute After stating the corresponding local exchange relationship of the first user equipment, the 4th ip voice packet is locally transmitted to the local friendship Change the second user equipment indicated by relationship.
In the specific implementation process, based on the local friendship in step S3 being the first user equipment and the foundation of second user equipment Relationship is changed, after first network equipment receives the third ip voice packet that second user equipment is sent again, can be inquired Two user equipmenies are corresponding with local exchange relationship, if the purpose user equipment of the third ip voice packet is the first user equipment, Therefore, just third ip voice packet is not sent in second network equipment of upstream according still further to common switching path, but directly Locally it is transmitted to the first user equipment of local exchange relationship instruction;Similarly, when first network equipment receives the first use again After the 4th ip voice packet that family equipment is sent, the first user equipment can be inquired and be corresponding with local exchange relationship, if the 4th The purpose user equipment of ip voice packet is second user equipment, and the 4th ip voice packet is directly locally just transmitted to local exchange and is closed It is that meaning shows second user equipment.To reduce network flow, improve network path redundancy phenomena, and reduces network and throw Money.
Lower mask body illustrates that first network equipment passes through the sheet provided in the embodiment of the present application in conjunction with an application scenarios Exchange method in ground carries out the process forwarded to ip voice packet, it is assumed that first network equipment is evolution base station eNB, is used there are two mobile The first equipment of family equipment and the second equipment are all connected under the evolution base station, and eNB is to the ip voice packet sent out and to reception The treatment process of the ip voice packet arrived are as follows:
When the first equipment will send the first ip voice packet to its purpose user equipment by eNB, eNB is judged first The local exchange relationship between the first equipment and its purpose user equipment locally whether is being preserved, if so, then illustrating it Purpose user equipment the local eNB is all connected to as the first equipment, there is no local exchange relationship if local, After eNB records and saves the characteristic information of the first ip voice packet, the first ip voice packet is just sent to upstream network and is set It is standby, to be sent the first ip voice packet in its purpose user equipment by upstream network device and internet.
When eNB is received from upstream network device, for example the purpose equipment that gateway SGW is sended over is the second equipment The second ip voice packet when, just obtain the characteristic information of the second ip voice packet, this had been saved according to this feature information Inquire whether have the IP language to match with the characteristic information of the second ip voice packet in the ip voice packet that the user equipment on ground is sent Sound packet, if detecting the characteristic information phase of the characteristic information and the second ip voice packet of the first ip voice packet in the first equipment Match, then illustrate that the first ip voice packet and the second ip voice packet are the same packets, and the characteristic information of the first ip voice packet is by One equipment is sent to by the eNB to be recorded before upstream network device and be preserved, then illustrates the first equipment and the second equipment It is not only all connected to the local the eNB, but also is the purpose user equipment of other side mutually, also mutually to be sent out between the two next time Can be in local directly exchange, therefore when sending ip voice packet, which can establish local exchange for the first equipment and the second equipment Relationship.
As shown in figure 3, Fig. 3 is the ip voice packet realized by the method for ip voice local exchange in the embodiment of the present application The switching path comparison diagram of switching path and existing ip voice packet.In existing exchange method, even if UE1 and UE2 are connected to together Under one eNB or SGW, the path that ip voice packet is exchanged between UE1 and UE2 is path 10, and by the embodiment of the present application The method of the ip voice local exchange of offer, when UE1 and UE2 is connected to the same SGW, the path of ip voice packet is path 20, it is only necessary to by the eNB in the downstream SGW, be not required to that local exchange can be realized further around upstream network device is crossed;As UE1 and UE2 When being connected to the same eNB, the path of ip voice packet is path 30, that is to say, that directly in eNB local exchange.
As it can be seen that in the embodiment of the present application, when the first user belongs to first network equipment with second user, first When the network equipment receives ip voice packet of the purpose user that the forwarding of second network equipment comes for the first user, take according to the IP The characteristic information for the ip voice packet that the characteristic information of voice packet is sent with the user saved matches, if it is determined that the ip voice The characteristic information for the ip voice packet that the characteristic information of packet can be sent with the second user that has saved match, then for second user with Local exchange relationship is established between first user, wherein indicate that second user is made with first with mutual in local exchange relationship For the purpose user of other side, when to carry out the transmission of ip voice packet between second user and the first user next time, first network Equipment directly can locally forward ip voice packet based on the local exchange relationship, solve when two users are in the same net When network equipment, existing for existing ip voice exchanged form the technical issues of waste Internet resources, realize same to be connected to Two users under a network equipment establish local exchange relationship in order to exchange ip voice Bao Shineng again between two users It is enough directly to carry out local exchange, save Internet resources.
Further, local exchange is established in step s3 for the second user equipment and first user equipment to close Before system, further comprise the steps of:
When the characteristic information of the characteristic information of the second ip voice packet and the first ip voice packet matches, increase The value of counter;
Determine that the value of the counter reaches given threshold, wherein when the value of the counter reaches the given threshold When, the local exchange relationship is established for the second user equipment and first user equipment.
In the specific implementation process, it originally applies in example and provides a kind of preferred implementation to establish local exchange relationship in step S3 Mode is chosen multiple ip voice packets and is matched, that is to say, that if the purpose user equipment that first network equipment receives The characteristic information for being N number of ip voice packet of the first user equipment can be with the feature of N number of ip voice packet in second user equipment Information matches, and N is that can then further confirm that the first user equipment is that the purpose of second user equipment is set greater than the integer for waiting 2 Standby, first network equipment is just that second user equipment and the first user equipment establish local exchange relationship.So preferred real It applies in mode, when the characteristic information for inquiring the ip voice packet saved in second user equipment each time and is sent to the first user After the characteristic information of the ip voice packet of equipment matches, just to the value of count-up counter, and judge whether the value of counter reaches To given threshold N, local exchange relationship just is established to second user equipment and the first user equipment after reaching N.
As it can be seen that in the embodiment of the present application, since use will choose multiple ip voice packets for being sent to the first user equipment It is matched, is only all matched just to second user with the multiple ip voice packets issued in the second user equipment locally saved Equipment and the first user equipment establish the technological means of local exchange relationship, and the first user equipment can be further confirmed that by realizing It is the purpose user equipment of second user equipment, to establish the beneficial effect of local exchange relationship between the two.
Further, the first user is sent to second user equipment based on local exchange relationship in first network equipment to set During standby third ip voice packet carries out local forwarding, it is also necessary to carry out address converting step:
First network equipment receives the third ip voice packet that second user equipment is sent, and inquires second user equipment After corresponding local exchange relationship, if the purpose user equipment of the third ip voice packet is the first user equipment, it is based on second The address conversion relationship of user equipment and the address conversion relationship of the first user equipment carry out address conversion, second user equipment Address conversion relationship includes the first IP address and first port and the second IP address and second port corresponding relationship, the first user The address conversion relationship of equipment includes third IP address and third port and the 4th IP address and the 4th port corresponding relationship, is incited somebody to action Third ip voice packet is locally transmitted to the first user equipment.
Further, similarly, local exchange relationship being based in first network equipment, second is sent to the first user equipment During 4th ip voice packet of user equipment carries out local forwarding, it is also desirable to carry out address converting step:
First network equipment receives the 4th ip voice packet that the first user equipment is sent, and inquires the first user equipment After corresponding local exchange relationship, if the purpose user equipment of the 4th ip voice packet is second user equipment, it is based on first The address conversion relationship of user equipment and the address conversion relationship of second user equipment carry out address conversion, the first user equipment Address conversion relationship includes the second IP address and second port and the first IP address and first port corresponding relationship, second user The address conversion relationship of equipment includes the 4th IP address and the 4th port and third IP address and third port corresponding relationship, will 4th ip voice packet is locally transmitted to second user equipment.
In the specific implementation process, due to pass through net when IP network transmits ip voice packet according to common switching path It closes NAT and carries out address conversion, therefore also want advanced row address to convert when the direct local exchange ip voice packet of first network equipment, So the address conversion relationship between the first user equipment and second user equipment is recorded in first network equipment, in order to work as After first network equipment receives the third ip voice packet that second user equipment is sent and inquires local exchange relationship, based on the The address conversion relationship of two user equipmenies and the address conversion relationship of the first user equipment carry out address conversion, by third ip voice After the address conversion of packet is the address of the first user equipment, then locally it is transmitted to the first user equipment, wherein second user equipment Address conversion relationship include the first IP address and first port and the second IP address and second port corresponding relationship, first uses The address conversion relationship of family equipment includes third IP address and third port and the 4th IP address and the 4th port corresponding relationship. Or after first network equipment receives the 4th ip voice packet that the first user equipment is sent and inquires local exchange relationship, The address conversion relationship of address conversion relationship and second user equipment based on the first user equipment carries out address conversion, by the 4th The address conversion of ip voice packet is transmitted to second user equipment to be local again behind the address of second user equipment, wherein first uses The address conversion relationship of family equipment includes the second IP address and second port and the first IP address and first port corresponding relationship, The address conversion relationship of second user equipment includes the 4th IP address and the 4th port and third IP address and third port pair It should be related to.Here address conversion relationship is to establish before establishing local exchange relationship, that is, matching multiple IP languages During sound packet, the first network is forwarded to from internet when the first ip voice is bundled into function by second network equipment of upstream The first user equipment in equipment when, illustrate address conversion of second network equipment to the first ip voice packet from transmitting terminal For the address of the first user equipment, therefore, when the first ip voice packet characteristic information can with protected in second user equipment When the characteristic information for the second ip voice packet deposited matches, first network equipment is according to the address of the first ip voice packet received And it is stored in the address of the second local ip voice packet, record second network equipment to the conversion regime of the two addresses, It is stored in local as address conversion relationship, after establishing local exchange relationship, so that it may be based on the address conversion relationship for IP After the address conversion of voice packet is the address of purpose user equipment, it is transmitted to purpose user equipment.For example, the first user equipment is sent out The source address/port for the first ip voice packet seen off is original address/port of the first user equipment, such as 10.0.0.1/ 5000, and the address of the second user equipment end of user equipment should be the address after source address conversion as a purpose, such as 200.1.1.1/9000, therefore, directly locally handed in the first ip voice packet that first network equipment sends the first user equipment When giving second user equipment, 10.0.0.1/5000 is converted into 200.1.1.1/9000 and is exchanged again, similarly, incited somebody to action When the direct local exchange of ip voice packet that second user equipment is sent is to the first user equipment, by 200.1.1.1/9000 Be converted to 10.0.0.1/5000.
Based on the same inventive concept, the embodiment of the present application also provides a kind of device of ip voice local exchange, is applied to the One network equipment, as shown in figure 4, the device includes: the first receiving unit 100, determination unit 200 and establishes unit 300, In:
First receiving unit 100, for receiving the first ip voice packet of second network equipment forwarding, wherein institute The purpose user equipment for stating the first ip voice packet is the first user equipment;
The determination unit 200, for determining that second user equipment is sent out according to the characteristic information of the first ip voice packet The characteristic information of the characteristic information and the first ip voice packet of the second ip voice packet sent matches, wherein described first uses Family equipment and the second user equipment belong to the first network equipment;
It is described to establish unit 300, for establishing local exchange for the second user equipment and first user equipment Relationship, wherein the ip voice packet that the local exchange relationship indicates that the second user equipment is sent is set by the first network The standby local ip voice packet for being transmitted to first user equipment or first user equipment transmission is by the first network Equipment is locally transmitted to the second user equipment.
Further, described device further include:
Second receiving unit, the second ip voice packet sent for receiving the second user equipment;
The second ip voice packet is sent to by storage unit for saving the characteristic information of the second ip voice packet Second network equipment.
Further, described to establish unit 300, it is also used to:
When the characteristic information of the characteristic information of the second ip voice packet and the first ip voice packet matches, increase The value of counter;
Determine that the value of the counter reaches given threshold, wherein when the value of the counter reaches the given threshold When, the local exchange relationship is established for the second user equipment and first user equipment.
Further, described device further include:
Third receiving unit, the third ip voice packet sent for receiving the second user equipment;
First retransmission unit, after inquiring the corresponding local exchange relationship of the second user equipment, by institute State first user equipment that third ip voice packet is locally transmitted to the local exchange relationship instruction;
4th receiving unit, the 4th ip voice packet sent for receiving first user equipment;
Second retransmission unit, after inquiring the corresponding local exchange relationship of first user equipment, by institute It states the 4th ip voice packet and is locally transmitted to the second user equipment indicated by the local exchange relationship.
Further, first retransmission unit, is used for:
After inquiring the corresponding local exchange relationship of the second user equipment, based on the second user equipment Address conversion relationship and the address conversion relationship of first user equipment carry out address conversion, the ground of the second user equipment Location transformational relation includes the first IP address and first port and the second IP address and second port corresponding relationship, and described first uses The address conversion relationship of family equipment includes third IP address and third port and the 4th IP address and the 4th port corresponding relationship, The third ip voice packet is locally transmitted to first user equipment.
Further, second retransmission unit, is used for:
After inquiring the corresponding local exchange relationship of first user equipment, based on first user equipment The address conversion relationship of address conversion relationship and the second user equipment carries out address conversion, the ground of first user equipment Location transformational relation includes the second IP address and second port and the first IP address and first port corresponding relationship, and described second uses The address conversion relationship of family equipment includes the 4th IP address and the 4th port and third IP address and third port corresponding relationship, The 4th ip voice packet is locally transmitted to the second user equipment.
Further, the characteristic information, comprising:
The real time transport protocol RTP sequence number of ip voice packet, and the cryptographic Hash being calculated according to the payload of ip voice packet; Or
The real time transport protocol RTP sequence number of ip voice packet and the label of ip voice packet, the label is by described device Added after receiving the ip voice packet of user equipment transmission, wherein the label of the ip voice packet by RTP encapsulation head extremely A few code field is composed, for identifying the first network equipment and the user equipment.
Further, the determination unit 200, is used for:
Determine that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and Determine that the cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet;Or
Determine that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and Determine that the label of the second ip voice packet is identical as the label of the first ip voice packet.
In the specific implementation process, the device of ip voice local exchange for realizing above-mentioned ip voice local exchange method In, the description according to above-described embodiment to the method for ip voice local exchange provided by the present application, various pieces in the device The course of work is consistent with one or more embodiments of the above method, does not just repeat one by one herein.
Based on the same inventive concept, the embodiment of the present application also provides a kind of system of ip voice local exchange, comprising: first The network equipment, and second network equipment being connect with the first network equipment;Wherein, the first network equipment include with The device of the upper ip voice local exchange.
Based on the same inventive concept, the embodiment of the present application also provides a kind of device of ip voice local exchange, is applied to the One network equipment, described device include:
Receiver, for receiving the first ip voice packet of second network equipment forwarding, wherein the first ip voice packet Purpose user equipment be the first user equipment;
Processor, for determining the 2nd IP of second user equipment transmission according to the characteristic information of the first ip voice packet The characteristic information of voice packet and the characteristic information of the first ip voice packet match, wherein first user equipment and institute It states second user equipment and belongs to the first network equipment;It and is the second user equipment and first user equipment Establish local exchange relationship, wherein the local exchange relationship indicates the ip voice packet of the second user equipment transmission by institute State first network equipment be locally transmitted to ip voice packet that first user equipment or first user equipment are sent by The first network equipment is locally transmitted to the second user equipment;
Memory, for storing local exchange relationship, and the characteristic information of the storage ip voice packet.
Further, the receiver, is also used to: receiving second ip voice that the second user equipment is sent Packet;
The memory, is also used to: saving the characteristic information of the second ip voice packet;
Described device, further includes: transmitter, for the second ip voice packet to be sent to second network equipment.
Further, described device, further includes: counter, for working as characteristic information and the institute of the second ip voice packet When stating the characteristic information of the first ip voice packet and matching, increase the value of the counter;
The processor, is also used to: determining that the value of the counter reaches given threshold, wherein when the counter When value reaches the given threshold, the local exchange pass is established for the second user equipment and first user equipment System.
Further, the receiver, is also used to: establishing for the second user equipment and first user equipment After local exchange relationship, the third ip voice packet that the second user equipment is sent is received;
The processor, is also used to: after inquiring the corresponding local exchange relationship of the second user equipment, control The third ip voice packet is locally transmitted to first user equipment of the local exchange relationship instruction by the transmitter;
The receiver, is also used to: establishing local exchange for the second user equipment and first user equipment After relationship, the 4th ip voice packet that first user equipment is sent is received;
The processor, is also used to: after inquiring the corresponding local exchange relationship of first user equipment, by institute It states the 4th ip voice packet and is locally transmitted to the second user equipment indicated by the local exchange relationship.
Further, the processor, is also used to:
After inquiring the corresponding local exchange relationship of the second user equipment, based on the second user equipment Address conversion relationship and the address conversion relationship of first user equipment carry out address conversion, the ground of the second user equipment Location transformational relation includes the first IP address and first port and the second IP address and second port corresponding relationship, and described first uses The address conversion relationship of family equipment includes third IP address and third port and the 4th IP address and the 4th port corresponding relationship; It controls the transmitter and the third ip voice packet is locally transmitted to first user equipment.
Further, the processor, is also used to:
After inquiring the corresponding local exchange relationship of first user equipment, based on first user equipment The address conversion relationship of address conversion relationship and the second user equipment carries out address conversion, the ground of first user equipment Location transformational relation includes the second IP address and second port and the first IP address and first port corresponding relationship, and described second uses The address conversion relationship of family equipment includes the 4th IP address and the 4th port and third IP address and third port corresponding relationship; It controls the transmitter and the 4th ip voice packet is locally transmitted to the second user equipment.
Further, the characteristic information, comprising:
The real time transport protocol RTP sequence number of ip voice packet, and the cryptographic Hash being calculated according to the payload of ip voice packet; Or
The real time transport protocol RTP sequence number of ip voice packet and the label of ip voice packet, the label are by described first The network equipment adds after receiving the ip voice packet of user equipment transmission, wherein the label by RTP encapsulation head at least One code field is composed, for identifying the first network equipment and the user equipment.
Further, the processor, is also used to:
Determine that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and Determine that the cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet;Or
Determine that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and Determine that the label of the second ip voice packet is identical as the label of the first ip voice packet.
In the specific implementation process, the device of the ip voice local exchange and the device of first set ip voice local exchange are It based on the same inventive concept, is equally used in the method for realizing above-mentioned ip voice local exchange, according to above-described embodiment to this The description that the method for the ip voice local exchange provided is provided, the one of the course of work of various pieces and the above method in the device A or multiple embodiments are consistent, just do not repeat one by one herein.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Due in the embodiment of the present application, when the first user and second user belong to first network equipment, first When the network equipment receives ip voice packet of the purpose user that the forwarding of second network equipment comes for the first user, take according to the IP The characteristic information for the ip voice packet that the characteristic information of voice packet is sent with the user saved matches, if it is determined that the ip voice The characteristic information for the ip voice packet that the characteristic information of packet can be sent with the second user that has saved match, then for second user with Local exchange relationship is established between first user, wherein indicate that second user is made with first with mutual in local exchange relationship For the purpose user of other side, when to carry out the transmission of ip voice packet between second user and the first user next time, first network Equipment directly can locally forward ip voice packet based on the local exchange relationship, solve when two users are in the same net When network equipment, existing for existing ip voice exchanged form the technical issues of waste Internet resources, realize same to be connected to Two users under a network equipment establish local exchange relationship in order to exchange ip voice Bao Shineng again between two users It is enough directly to carry out local exchange, save Internet resources.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (17)

1. a kind of method of ip voice local exchange characterized by comprising
First network equipment receives the first ip voice packet of second network equipment forwarding, wherein the mesh of the first ip voice packet User equipment be the first user equipment;
The feature letter for the second ip voice packet that second user equipment is sent is determined according to the characteristic information of the first ip voice packet It ceases and matches with the characteristic information of the first ip voice packet, wherein first user equipment and the second user equipment Belong to the first network equipment;
Local exchange relationship is established for the second user equipment and first user equipment, wherein the local exchange is closed Mean that the ip voice packet for showing that the second user equipment is sent locally is transmitted to first user by the first network equipment The ip voice packet that equipment or first user equipment are sent locally is transmitted to described second by the first network equipment and uses Family equipment.
2. the method as described in claim 1, which is characterized in that receive the forwarding of second network equipment in the first network equipment Before the first ip voice packet come, the method also includes:
The first network equipment receives the second ip voice packet that the second user equipment is sent;
The second ip voice packet is sent to second network equipment by the characteristic information for saving the second ip voice packet.
3. the method as described in claim 1, which is characterized in that described for the second user equipment and first user Equipment is established before local exchange relationship, the method also includes:
When the characteristic information of the characteristic information of the second ip voice packet and the first ip voice packet matches, increases and count The value of device;
Determine that the value of the counter reaches given threshold, wherein when the value of the counter reaches the given threshold, be The second user equipment and first user equipment establish the local exchange relationship.
4. the method as described in claim 1, which is characterized in that described for the second user equipment and first user Equipment is established after local exchange relationship, the method also includes:
The first network equipment receives the third ip voice packet that the second user equipment is sent, and inquires described second After the corresponding local exchange relationship of user equipment, the third ip voice packet is locally transmitted to the local exchange relationship First user equipment indicated;Or
The first network equipment receives the 4th ip voice packet that first user equipment is sent, and inquires described After the corresponding local exchange relationship of one user equipment, the 4th ip voice packet is locally transmitted to the local exchange and is closed The indicated second user equipment of system.
5. method as claimed in claim 4, which is characterized in that described to inquire the second user equipment described corresponding After ground commutative relation, the third ip voice packet is locally transmitted to first user that the local exchange relationship indicates Equipment, comprising:
After inquiring the corresponding local exchange relationship of the second user equipment, the address based on the second user equipment The address conversion relationship of transformational relation and first user equipment carries out address conversion, and the address of the second user equipment turns Changing relationship includes that the first IP address and first port and the second IP address and second port corresponding relationship, first user set Standby address conversion relationship includes third IP address and third port and the 4th IP address and the 4th port corresponding relationship;
The third ip voice packet is locally transmitted to first user equipment.
6. method as claimed in claim 4, which is characterized in that described to inquire first user equipment described corresponding After ground commutative relation, the 4th ip voice packet is locally transmitted to second use shown in the local exchange relationship meaning Family equipment, comprising:
After inquiring the corresponding local exchange relationship of first user equipment, the address based on first user equipment The address conversion relationship of transformational relation and the second user equipment carries out address conversion, and the address of first user equipment turns Changing relationship includes that the second IP address and second port and the first IP address and first port corresponding relationship, the second user are set Standby address conversion relationship includes the 4th IP address and the 4th port and third IP address and third port corresponding relationship;
The 4th ip voice packet is locally transmitted to the second user equipment.
7. the method as described in claim any in claim 1-6, which is characterized in that the characteristic information, comprising:
The real time transport protocol RTP sequence number of ip voice packet, and the cryptographic Hash being calculated according to the payload of ip voice packet;Or
The real time transport protocol RTP sequence number of ip voice packet and the label of ip voice packet, the label are by the first network Equipment is added after receiving the ip voice packet of user equipment transmission, wherein the label is by least one of RTP encapsulation head Code field is composed, for identifying the first network equipment and the user equipment.
8. the method for claim 7, which is characterized in that the second ip voice packet that the determining second user equipment is sent The characteristic information of characteristic information and the first ip voice packet match, comprising:
It determines that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and determines The cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet;Or
It determines that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and determines The label of the second ip voice packet is identical as the label of the first ip voice packet.
9. a kind of device of ip voice local exchange, it is applied to first network equipment, which is characterized in that described device includes: the One receiving unit, determination unit and establish unit, in which:
First receiving unit, for receiving the first ip voice packet of second network equipment forwarding, wherein the first IP The purpose user equipment of voice packet is the first user equipment;
The determination unit, for determining the second of the transmission of second user equipment according to the characteristic information of the first ip voice packet The characteristic information of ip voice packet and the characteristic information of the first ip voice packet match, wherein first user equipment and The second user equipment belongs to the first network equipment;
It is described to establish unit, for establishing local exchange relationship for the second user equipment and first user equipment, In, the local exchange relationship indicates that the ip voice packet that the second user equipment is sent locally is turned by the first network equipment It is local by the first network equipment to issue the ip voice packet that first user equipment or first user equipment are sent It is transmitted to the second user equipment.
10. device as claimed in claim 9, which is characterized in that described device further include:
Second receiving unit, the second ip voice packet sent for receiving the second user equipment;
The second ip voice packet is sent to described by storage unit for saving the characteristic information of the second ip voice packet Second network equipment.
11. device as claimed in claim 9, which is characterized in that it is described to establish unit, it is also used to:
When the characteristic information of the characteristic information of the second ip voice packet and the first ip voice packet matches, increases and count The value of device;
Determine that the value of the counter reaches given threshold, wherein when the value of the counter reaches the given threshold, be The second user equipment and first user equipment establish the local exchange relationship.
12. device as claimed in claim 9, which is characterized in that described device further include:
Third receiving unit, the third ip voice packet sent for receiving the second user equipment;
First retransmission unit, after inquiring the corresponding local exchange relationship of the second user equipment, by described Three ip voice packets are locally transmitted to first user equipment of the local exchange relationship instruction;
4th receiving unit, the 4th ip voice packet sent for receiving first user equipment;
Second retransmission unit, after inquiring the corresponding local exchange relationship of first user equipment, by described Four ip voice packets are locally transmitted to the second user equipment indicated by the local exchange relationship.
13. device as claimed in claim 12, which is characterized in that first retransmission unit is used for:
After inquiring the corresponding local exchange relationship of the second user equipment, the address based on the second user equipment The address conversion relationship of transformational relation and first user equipment carries out address conversion, and the address of the second user equipment turns Changing relationship includes that the first IP address and first port and the second IP address and second port corresponding relationship, first user set Standby address conversion relationship includes third IP address and third port and the 4th IP address and the 4th port corresponding relationship, by institute It states third ip voice packet and is locally transmitted to first user equipment.
14. device as claimed in claim 12, which is characterized in that second retransmission unit is used for:
After inquiring the corresponding local exchange relationship of first user equipment, the address based on first user equipment The address conversion relationship of transformational relation and the second user equipment carries out address conversion, and the address of first user equipment turns Changing relationship includes that the second IP address and second port and the first IP address and first port corresponding relationship, the second user are set Standby address conversion relationship includes the 4th IP address and the 4th port and third IP address and third port corresponding relationship, by institute It states the 4th ip voice packet and is locally transmitted to the second user equipment.
15. the device as described in claim any in claim 9-14, which is characterized in that the characteristic information, comprising:
The real time transport protocol RTP sequence number of ip voice packet, and the cryptographic Hash being calculated according to the payload of ip voice packet;Or
The real time transport protocol RTP sequence number of ip voice packet and the label of ip voice packet, the label is received by described device It is added after the ip voice packet sent to user equipment, wherein the label of the ip voice packet is by least one in RTP encapsulation head A code field is composed, for identifying the first network equipment and the user equipment.
16. device as claimed in claim 15, which is characterized in that the determination unit is used for:
It determines that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and determines The cryptographic Hash of the second ip voice packet is identical as the cryptographic Hash of the first ip voice packet;Or
It determines that the RTP sequence number of the second ip voice packet is identical as the RTP sequence number of the first ip voice packet, and determines The label of the second ip voice packet is identical as the label of the first ip voice packet.
17. a kind of system of ip voice local exchange characterized by comprising
First network equipment, and second network equipment being connect with the first network equipment;
Wherein, the first network equipment includes the dress of the ip voice local exchange as described in claim any in claim 9-16 It sets.
CN201480000452.8A 2014-01-26 2014-01-26 A kind of method, apparatus and system of ip voice local exchange Active CN104995985B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/071503 WO2015109575A1 (en) 2014-01-26 2014-01-26 Method, device and system for local switching of voices over ip

Publications (2)

Publication Number Publication Date
CN104995985A CN104995985A (en) 2015-10-21
CN104995985B true CN104995985B (en) 2019-08-27

Family

ID=53680677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480000452.8A Active CN104995985B (en) 2014-01-26 2014-01-26 A kind of method, apparatus and system of ip voice local exchange

Country Status (2)

Country Link
CN (1) CN104995985B (en)
WO (1) WO2015109575A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811570B (en) * 2023-01-27 2023-08-18 荣耀终端有限公司 IMS call voice quality testing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159905A (en) * 2007-11-07 2008-04-09 华为技术有限公司 Local exchange method, core network equipment and network system of implementing in base station controller
CN101790246A (en) * 2009-01-23 2010-07-28 华为技术有限公司 Method, device and system for local exchange
CN101800911A (en) * 2009-02-06 2010-08-11 华为技术有限公司 Method and system for realizing local exchange
CN101815358A (en) * 2009-02-24 2010-08-25 鼎桥通信技术有限公司 Data transmission method between user equipment
CN102281187A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 System and method for realizing local exchange transmission and base station

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8818322B2 (en) * 2006-06-09 2014-08-26 Trapeze Networks, Inc. Untethered access point mesh system and method
EP2059087A1 (en) * 2007-11-06 2009-05-13 Nokia Siemens Networks S.p.A. Method for establishing circuit switched calls in a mobile radio network and mobile radio network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159905A (en) * 2007-11-07 2008-04-09 华为技术有限公司 Local exchange method, core network equipment and network system of implementing in base station controller
CN101790246A (en) * 2009-01-23 2010-07-28 华为技术有限公司 Method, device and system for local exchange
CN101800911A (en) * 2009-02-06 2010-08-11 华为技术有限公司 Method and system for realizing local exchange
CN101815358A (en) * 2009-02-24 2010-08-25 鼎桥通信技术有限公司 Data transmission method between user equipment
CN102281187A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 System and method for realizing local exchange transmission and base station

Also Published As

Publication number Publication date
CN104995985A (en) 2015-10-21
WO2015109575A1 (en) 2015-07-30

Similar Documents

Publication Publication Date Title
CN105516635A (en) Video call system, device and method
CN106716951A (en) Methods and apparatus for optimizing tunneled traffic
CN107370722B (en) Network interaction method, wireless convergence relay gateway and system
CN110943935B (en) Method, device and system for realizing data transmission
CN107196834B (en) Message processing method and device
MX2010012889A (en) Method for providing seamless transition between networks following different protocols.
CN108307516A (en) Data transmission method and relevant device
CN104852855B (en) Jamming control method, device and equipment
CN106717033A (en) Coverage enhancement for multicast in a cellular network
CN107707476A (en) Efficient wireless relay device and method based on FPGA
CN102984070A (en) Method for realizing data forwarding through unnumbered interface of Ethernet
CN101163226B (en) Method and system for implementing mobile video session using WiMAX network
CN104683228B (en) A kind of digital switch media gateway realization method based on FPGA
CN104168273A (en) Method and system for achieving TCP proxy in thin AP mode
CN105897665B (en) Method for realizing TCP transmission in satellite network environment and corresponding gateway
CN104995985B (en) A kind of method, apparatus and system of ip voice local exchange
CN104105222B (en) Establish communication
US9236935B2 (en) System and method for data transmission
US8031697B2 (en) Method for bearer independent call control (BICC) optimization for IP bearer support
CN102238164A (en) Internet protocol (IP) telecommunication network-oriented multi-protocol message adaptation method
CN105072057A (en) Intermediate switch equipment for network data transmission, and network communication system
KR20170043634A (en) Data packet transmission processing method and device
CN101252620B (en) Method and system of monitoring IP field communication
CN101562582B (en) New VOIP framework in wireless access system
CN106559851B (en) LTE broadband cluster system IPSec cascade network realization method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant