CN110661860A - Method for establishing call and call equipment - Google Patents
Method for establishing call and call equipment Download PDFInfo
- Publication number
- CN110661860A CN110661860A CN201910883074.7A CN201910883074A CN110661860A CN 110661860 A CN110661860 A CN 110661860A CN 201910883074 A CN201910883074 A CN 201910883074A CN 110661860 A CN110661860 A CN 110661860A
- Authority
- CN
- China
- Prior art keywords
- call
- terminal
- link
- address
- threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/256—NAT traversal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a method for establishing a call and call equipment, and relates to the field of wireless communication. The method comprises the following steps: the method comprises the steps that a first terminal prestores an end-to-end P2P crossing success rate and a first parameter of a first call link, wherein the first parameter is used for the first terminal to carry out P2P crossing of the first call link, and the first call link is any one of the call links of which the call number of the first terminal is greater than a first threshold value, or is any one of the call links of which the call duration of the first terminal is greater than a second threshold value and the call number is greater than a third threshold value; and when the call link adopted by the newly-established call of the first terminal is the first call link, the first terminal determines a call establishment mode according to the P2P traversing success rate. The problems of long call link establishment time and low efficiency can be solved through the call establishment provided by the application.
Description
Technical Field
The present application relates to the field of wireless communications, and in particular, to a method for establishing a call and a call device.
Background
The call link used for the call between terminals can generally utilize two types of backbone networks: real-time network (RTN) and peer-to-peer (P2P) networks. The RTN network is a network architecture specially designed for real-time transmission, nodes can be reorganized among data centers around the world, and the nodes are connected and scheduled with each other, so that a new virtual network is constructed on the basis of the existing public Internet. The RTN system can distribute the optimal and most unobstructed transmission path according to the connection and transmission condition of each node, the load condition, the distance to a user and the response time in real time, and the quality assurance level required by real-time transmission is achieved. However, the RTN network is similar to a leased private network, which results in higher operation cost. P2P traversal means that two devices respectively use the internet protocol address (IP) and port of the opposite end as the destination IP and port to perform direct communication without renting a private network, so the operation cost is relatively low. However, communication quality such as delay, bandwidth, jitter, and the like of a P2P link between devices cannot be generally guaranteed, for example, when a device needs audio/video call experience with high definition (e.g., resolution is greater than or equal to 720P) or high fluency (e.g., greater than 25fps), the requirements on delay, bandwidth, and jitter indexes of a channel are high, and at this time, a P2P network may not meet the requirements. In addition, another disadvantage of the P2P link is that the device using the P2P link for communication may not successfully implement P2P traversal, and thus cannot implement audio/video communication; even if the P2P crossing can be realized, a long crossing process is required, resulting in a long crossing time.
Therefore, how to effectively implement P2P traversal and network selection of call links becomes a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method for establishing a call and a call device, which can solve the problems of long call link establishment time and low efficiency.
In a first aspect, a method for establishing a call is provided, including: the method comprises the steps that a first terminal prestores an end-to-end P2P crossing success rate and a first parameter of a first call link, wherein the first parameter is used for the first terminal to carry out P2P crossing of the first call link, and the first call link is any one of the call links of which the call number of the first terminal is greater than a first threshold value, or is any one of the call links of which the call duration of the first terminal is greater than a second threshold value and the call number is greater than a third threshold value; and when the call link adopted by the newly-established call of the first terminal is the first call link, the first terminal determines a call establishment mode according to the P2P traversing success rate.
With reference to the first aspect, in some implementations of the first aspect, the determining, by the first terminal according to the P2P traversal success rate, a manner of establishing a call includes: when the P2P crossing success rate is lower than a fourth threshold value, the first terminal establishes a call by adopting a real-time transport network (RTN); when the P2P crossing success rate is higher than or equal to the fourth threshold and is less than a fifth threshold, the first terminal performs the P2P crossing, wherein if the P2P crossing is successful, a call is performed by using a call link established after the P2P crossing is successful; if the P2P traversing is not successful, establishing a call by adopting the RTN; when the P2P crossing success rate is higher than or equal to the third threshold, the first terminal performs P2P crossing according to the first parameter, and establishes a call by using a call link established after the P2P crossing is successful.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: and the first terminal determines the first call link according to the number of times of calls and/or the call duration.
With reference to the first aspect, in some implementations of the first aspect, the determining, by the first terminal, the first call link according to the number of times of calls includes: the first terminal determines a first call Identification (ID) according to the number of calls, wherein the first call ID is any one of m call IDs of which the number of calls with the first terminal is greater than the first threshold value, and m is a positive integer; the first terminal determines a first address ID corresponding to the first call ID, wherein the first address ID is the address ID with the maximum number of calls between the first call ID and the first terminal; and the first terminal determines that a call link used when the first terminal calls the first call ID of the first address is a first call link.
With reference to the first aspect, in some implementation manners of the first aspect, the determining, by the first terminal, the first call link according to the call duration includes: the first terminal determines a second call ID according to the call duration, wherein the second call ID is any one of n call IDs of which the call duration with the first terminal is greater than the second threshold; the first terminal determines a second address ID corresponding to the second call ID, wherein the second address ID is the address ID with the maximum number of calls between the third terminal and the first terminal; the first terminal determines that a call link used when the first terminal makes a call with the second call ID at the second address is a first call link.
With reference to the first aspect, in certain implementations of the first aspect, the number of calls made by the third terminal with the first terminal is greater than the third threshold.
With reference to the first aspect, in certain implementations of the first aspect, the address ID includes at least one of: latitude and longitude, service set identifier BSSID/SSID of the router, mobile network number MNC, mobile country code MCC, location area code LAC, cell ID.
In a second aspect, a communication device is provided, which includes: a decision module, configured to pre-store a network address translation P2P traversal success rate and a first parameter of a first communication link, where the first parameter is used for the first terminal to perform P2P traversal of the first communication link, and the first communication link is any one of communication links in which the number of times of use of the first terminal is greater than a first threshold, or any one of communication links in which the length of time of use of the first terminal is greater than a second threshold and the number of times of use is greater than a third threshold; the decision module is further configured to determine a mode for establishing a call according to the P2P traversal success rate when the call link used by the newly-established call of the first terminal is the first call link.
With reference to the second aspect, in some implementations of the second aspect, the telephony device further includes: the RTN module is used for establishing a call by adopting a real-time transmission network RTN when the P2P crossing success rate is lower than a fourth threshold value; a P2P module, configured to perform the P2P traversal when the P2P traversal success rate is higher than or equal to the fourth threshold and smaller than a fifth threshold, where if the P2P traversal succeeds, a call is performed using a call link established after the P2P traversal succeeds; if the P2P traversing is not successful, the RTN module adopts the RTN to establish a call; and the P2P module is further configured to, when the P2P crossing success rate is higher than or equal to the third threshold, perform P2P crossing according to the first parameter, and establish a call by using a call link established after the P2P crossing is successful.
With reference to the second aspect, in some implementations of the second aspect, the decision module determines the first call link according to the number of times of calls and/or the time duration of calls.
With reference to the second aspect, in some implementations of the second aspect, the determining, by the decision module, the first call link according to the number of times of calls includes: the decision module determines a second terminal according to the number of calls, wherein the number of calls of the second terminal with the first terminal is any one of m terminals with the number of calls larger than the first threshold; the decision module determines a first address identifier ID corresponding to the second terminal, wherein the first address is the address with the maximum number of calls between the second terminal and the first terminal; and the decision module determines that a call link used when the first terminal calls the second terminal at the first address is a first call link.
With reference to the second aspect, in some implementations of the second aspect, the determining, by the decision module, the first call link according to the call duration includes: the decision module determines a third terminal according to the call duration, wherein the call duration of the third terminal with the first terminal is any one of n terminals with the second threshold value; the decision module determines a second address ID corresponding to the third terminal, wherein the second address is the address with the maximum number of times of calls between the third terminal and the first terminal; and the decision module determines that a call link used when the first terminal calls the third terminal at the second address is a first call link.
With reference to the second aspect, in some implementations of the second aspect, the number of calls made by the third terminal with the first terminal is greater than the third threshold.
With reference to the second aspect, in certain implementations of the second aspect, the address ID includes at least one of: latitude and longitude, service set identifier BSSID/SSID of the router, mobile network number MNC, mobile country code MCC, location area code LAC, cell ID.
According to the call establishment method and device, the frequent call ID (or frequent call person) and the frequent call place are screened out based on the call times and the call duration, and the frequent call link is further screened out according to the frequent call ID and the frequent call place; recording P2P traversing information of the frequent call link, such as NAT type of double end, P2P traversing parameter and accumulated traversing success rate; when the link of the subsequent newly-built call is a regular call link, the statistical crossing success rate is adopted to accelerate the judgment of P2P/RTN routing, or the pre-stored P2P crossing information is used to accelerate the P2P crossing process. Through the call establishment, the P2P exploration traversing process can be accelerated, P2P traversing delay and flow consumption are reduced, and in addition, the decision process of P2P and RTN link selection can be accelerated, and the decision time is reduced.
Drawings
Fig. 1 shows a schematic diagram of the P2P traversal process.
Fig. 2 shows a schematic flowchart of establishing a call according to an embodiment of the present application.
Fig. 3 shows a schematic structural diagram of a telephony device according to an embodiment of the present application.
Fig. 4 shows a schematic flow chart of call link establishment provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical scheme of the embodiment of the application can be applied to various communication systems, for example: a global system for mobile communication (GSM) system, a Code Division Multiple Access (CDMA) system, a Wideband Code Division Multiple Access (WCDMA) system, a General Packet Radio Service (GPRS), a long term evolution (long term evolution, LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, a universal mobile telecommunications system (universal mobile telecommunications system, UMTS), a Worldwide Interoperability for Microwave Access (WiMAX) communication system, a future fifth generation (5G) system, or a new radio NR (UMTS) system, etc.
A terminal in the embodiments of the present application may refer to a user equipment, an access terminal, a subscriber unit, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, or a user device. The terminal device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved Public Land Mobile Network (PLMN), and the like, which are not limited in this embodiment.
Generally, for internet protocol version 6 (IPv 6) devices, if no internal and external address conversion is required, IPv6 address direct connection may be directly adopted. However, the IPv4 device is generally located behind a Network Address Translation (NAT) device (such as a router), and the NAT device is responsible for translating an internet protocol address (IP) and a port of a device in a local network (i.e., an intranet) into an IP and a port of a public network (or an extranet). Whether the terminal equipment can acquire the IP and the port of the public network of the opposite terminal through the detection attempt of the NAT equipment so as to realize NAT traversal mainly depends on the type of the NAT equipment.
Table 1 shows the NAT traversal success rate and the P2P traversal delay when the home terminal and the peer terminal are different NAT device types.
TABLE 1
Local terminal NAT equipment | Opposite terminal NAT equipment | NAT traversal success rate | P2P traversal latency |
Symmetrical type | Symmetrical type | Extremely low | \ |
Symmetrical type | Port restricted taper profile | After the intelligent algorithm is adopted, the ratio is more than 90 percent | 1~3s |
Port restricted taper profile | Port restricted taper profile | >90% | About 1s |
Therefore, when the local terminal NAT equipment and the opposite terminal NAT equipment are both symmetrical NAT equipment, the success rate of NAT traversal is extremely low; when one of the local-end NAT device and the opposite-end NAT device is a symmetric NAT device and the other is a port-restricted conical NAT device, or both ends are port-restricted conical NAT devices, the P2P traversal also has a long time delay.
For ease of understanding, the present P2P traversal process will be described first with reference to the drawings.
Fig. 1 shows a schematic diagram of the P2P traversal process.
For convenience of description, in the P2P traversal process shown in fig. 1, a terminal corresponding to the home terminal is denoted as terminal a, and a terminal corresponding to the opposite terminal is denoted as terminal B. In the P2P traversal process, the home-end NAT device is taken as a symmetric NAT device, and the peer-end NAT device is taken as a port-restricted NAT device. The P2P traversal process includes the following steps.
S101, the terminal A and the terminal B interact with the NAT equipment type detection server respectively to obtain the type of the NAT equipment, the distributed public network IP and the public network port corresponding to the terminal A and the terminal B.
S102, the terminal A and the terminal B mutually exchange the NAT type, the public network IP and the public network port which respectively correspond to each other through the transit server. It should be understood that the P2P traversal terminates if both ends are IPv4 devices or the NAT devices are symmetric NAT devices.
When the NAT devices at the two ends are the symmetric NAT device and the port-restricted conical NAT device, the following steps are continued to perform P2P traversal.
S103, the terminal A sends a plurality of data packets to the P2P through the auxiliary server, and the server responds. Wherein the process requires much time and traffic.
And S104, the terminal A calculates a port list which can be allocated by the NAT equipment by the terminal A according to the data packet which is responded by the P2P and traverses the auxiliary server and the IP and the port information of the terminal B.
And S105, the terminal A informs the terminal B of the possible port list of the terminal A through the information transfer server.
S106, the terminal A and the terminal B mutually send data packets by using the obtained public network IP and the port information, and hole punching is carried out until an opposite end response is received, and the hole punching is successful. Wherein the process may require a relatively large amount of time and traffic.
S107, when the bidirectional hole punching is successful, the P2P crossing is successful.
It should be understood that there are many ways to assign the public network IP ports, for example, if a terminal is accessed by a router (a network cable connection or a mobile hotspot (WiFi) connection) or by a 5G/4G/3G radio access network, its corresponding public network IP port is typically affiliated with a certain operator; if in a small and medium city, a fixed network or an operator may only deploy one core network, while in a large city, an operator may deploy 2-3 core networks at the same time, where one core network generally corresponds to one NAT gateway. Generally, if a NAT gateway does not replace a NAT device, its NAT type will not change. The same NAT gateway allocates the external network IP address and the external network port to the same terminal, before one service connection (such as communication) is not finished, even 2-3 days can not be changed, but the allocated public network IP and the public network port can be changed about 2-3 days of the same service, but the algorithm rule of the allocation is not changed with high probability.
In the scheme of performing audio and video calls through the RTN and the P2P, a P2P traversing attempt is generally adopted at first, and the whole P2P traversing process is completed; when the hole punching fails or times out in the P2P crossing process, the call link of the RTN network is selected to establish the call. Therefore, when NAT devices at two ends are symmetric-ports are tapered first, a complete P2P traversal process consumes more traffic and has a longer time delay, resulting in a long decision time for selecting a P2P network and an RTN network and a low efficiency of establishing a call link.
In order to solve the above problems, the present application provides a method for establishing a call, which determines whether a currently-to-be-established call link is a link that has already been traversed by P2P by performing record analysis on the call link, thereby accelerating a P2P traversal procedure and RTN/P2P link selection.
Fig. 2 shows a schematic flow chart of a method for establishing a call according to an embodiment of the present application.
The method for establishing the call can be applied to the process of the call between two contacts, and a frequent call link is screened out according to the past call record; recording P2P crossing parameters of the constant call link; and judging whether the link of the newly-built call is a frequent call link, and determining whether to adopt the recorded P2P traversal parameters to accelerate the traversal process or whether to adopt the call link of the RT network directly. The method for establishing the call comprises the following contents.
S201, the first terminal prestores an end-to-end P2P crossing success rate and a first parameter of the first communication link, wherein the first parameter is used for the first terminal to carry out P2P crossing of the first communication link, and the first communication link is any one of the communication links of which the using times of the first terminal is greater than a first threshold value, or any one of the communication links of which the using times of the first terminal is greater than a second threshold value and the using time length is greater than a third threshold value.
The first communication link is any one of the frequently used communication links used by the first terminal, the first communication link may be a communication link of the P2P network, the opposite end of the first communication link may be a frequently used contact or a frequently used contact terminal of the first terminal, and the communication location corresponding to the opposite end of the first communication link may be a frequently used communication location of the first terminal.
In an implementation manner, the first terminal screens out a constant call link according to a past call record, where the constant call link may be a call link in which the number of calls of the first terminal is greater than a first threshold, or a call link in which the call duration of the first terminal is greater than a second threshold and the number of calls is greater than a third threshold, that is, the first call link is any one of the call links in which the number of calls of the first terminal is greater than the first threshold, or any one of the call links in which the call duration of the first terminal is greater than the second threshold and the number of calls is greater than the third threshold. The first threshold, the second threshold, and the third threshold may be set according to the actual application requirement, which is not limited in the present application.
It should be appreciated that the manner in which the first terminal determines the first telephony link may be varied in many ways.
As an example, the manner of determining the first call link by the first terminal may be, for example: the method comprises the steps that a first terminal determines a first call link according to the number of times of calls, specifically, the first terminal determines a first call ID according to the number of times of calls which have occurred in the past, wherein the first call ID is any one of the first m call IDs of the first terminal with the largest number of times of calls in the past, and m is a positive integer; then, screening out a first address ID where the first call ID and the number of calls of the first terminal are located; the first terminal may determine that a call link in which a call is made with the first call ID at the first address ID is a first call link.
It should be understood that, in general, each end user may have several regular call contacts with a large number of calls, such as family members, colleagues, etc., each regular call contact corresponds to a respective call ID, which may be, for example, a mobile phone number, a voice call application ID, or a video call application ID. The first terminal can sort all the calls which have occurred in the past according to the number of calls, screen out the top m contacts or call IDs with the largest number of calls, and record the m contacts or call IDs.
As another example, the manner in which the first terminal determines the first call link may be, for example: the method comprises the steps that a first call link is determined by a first terminal according to call duration, specifically, a second call ID is determined by the first terminal according to the call duration of calls which have occurred in the past, wherein the second call ID is any one of the first n call IDs of the first terminal with the longest previous call duration, and n is a positive integer; then, screening out a second address ID where the second call ID and the first terminal call frequency are located; the first terminal may determine a call link in which a call is made with the second call ID at the second address ID as the first call link.
It should be understood that, in general, each end user may have several regular call contacts with a large number of calls, such as family members, colleagues, etc., each regular call contact corresponds to a respective call ID, which may be, for example, a mobile phone number, a voice call application ID, or a video call application ID. The first terminal can sort all the calls which have occurred in the past according to the call duration, screen out the first m contacts or call IDs with the longest call duration, and record the m contacts or call IDs.
When the call duration is adopted to determine frequent contacts or call IDs, the call times also need to be considered, that is, when the call times are greater than a third threshold value, the call IDs corresponding to the first n calls with the longest call duration can be screened out.
As another example, the manner in which the first terminal determines the first call link may be, for example: and the first terminal screens out M call IDs or call contacts according to the call records, wherein the M call IDs or the call contacts consist of the call IDs with the maximum call times and the maximum call duration. For example, the first terminal may screen out the frequent call IDs of M before the call number ranking and M before the call duration ranking from all call records, then de-weight the repeated frequent call IDs of M before the call number ranking and M before the call duration ranking, and then screen out the call IDs of M before the ranking from the de-weighted call IDs according to a preset weight; the first terminal screens out the first N address IDs with the maximum call times and the maximum call duration according to the call records of the call IDs with the M before ranking, and determines that the first N address IDs are the IDs corresponding to the frequent call places; the first terminal determines a call link in which the call ID of the M before the ranking is communicated with the first terminal in the corresponding constant call place as a constant call link, and any one of the constant call links is marked as a first call link. In other words, the first terminal screens out a specific number of frequent call IDs, where the frequent call ID may be a call ID with a large number of call times, or may be a call ID with a long call duration under a certain number of call times, and different weight values may be given to the call times and the call duration during specific screening, so as to obtain a call ID M before the weight ranking; then, screening one or more frequent call places with the maximum call times between each call ID and the first terminal according to the call IDs of the M before the weight ranking; and determining a call link of each call ID when the first terminal calls with the frequent call place as a frequent call link.
It should be understood that the constant call link in the embodiment of the present application refers to a call link that is valuable to the user of the first terminal, for example, a call link to be established for a call between the user of the first terminal and a family, a colleague, or a friend, and therefore, the constant call link in the embodiment of the present application does not only refer to a call link with a large number of times of calls, but also refers to a call link with a large length of call time, where when the length of call time is used as a condition for determining whether the call link is the constant call link, there may be a certain requirement on the number of times of calls, for example, the number of times of calls is required to be greater than a third threshold, and the third threshold may be flexibly set according to circumstances, which is not limited by.
In one implementation, the frequent call location may have multiple determination manners, such as longitude and latitude, a BSSID (service set identifier, SSID) of a router, a Mobile Network Code (MNC), a Mobile Country Code (MCC), a Location Area Code (LAC), a cell ID, and the like.
It should be understood that when the opposite end of the first terminal is in the determined call place, the first terminal can be accessed multiple times through the router and the 5G/4G/3G base station. The determined communication places generally correspond to the same NAT gateway of the same core network, the public network IP addresses are distributed in the same network segment, and the distribution rules of public network ports are the same.
In one implementation, the first parameter recorded by the first terminal may be used for P2P traversal by the first terminal, and when the P2P traversal is successful, the first terminal may establish the first call link. The first parameter may include NAT types of a home terminal and an opposite terminal; for one side of the symmetric NAT type, the first parameter may be a calculation formula of the allocated port list and a parameter that may be used by the calculation formula, where the first terminal may obtain a port range that may be allocated according to the calculation formula and the parameter, and then directly establish a communication link with a port in the port range; the first parameter also includes an accumulated P2P traversal success rate.
S202, when the call link adopted by the newly-built call of the first terminal is the first call link, the first terminal determines a call establishment mode according to the P2P crossing success rate.
When the first terminal newly determines that the established call link is a regular call link, for example, the first call link, the first terminal accelerates the P2P or RTN routing decision through the statistical P2P traversal success rate, or accelerates the traversal process by using the pre-stored P2P traversal parameters.
In one implementation, the determining, by the first terminal, a manner of establishing a call according to the P2P traversal success rate may include: (1) when the accumulated P2P crossing success rate of the first terminal is lower than a fourth threshold, the first terminal directly adopts RTN to establish a call link, wherein the fourth threshold may be 10%, for example; (2) when the accumulated P2P crossing success rate of the first terminal is higher than or equal to the fourth threshold and smaller than the fifth threshold, the first terminal executes a complete P2P crossing process, wherein if the P2P crossing succeeds, the first terminal adopts a call link established after the P2P crossing succeeds to carry out a call; if the P2P traversal is not successful, the first terminal establishes a call link in the RTN, that is, the fifth threshold may be, for example, 80%; (3) when the accumulated P2P crossing success rate of the first terminal is higher than or equal to a third threshold, the first terminal tries to perform P2P crossing according to a pre-stored first parameter, and if the P2P crossing is successful, a call is performed by using a call link established after the P2P crossing is successful; if the P2P traversal fails, then the completed P2P traversal procedure is performed.
According to the call establishment method and device, the frequent call ID (or frequent call person) and the frequent call place are screened out based on the call times and the call duration, and the frequent call link is further screened out according to the frequent call ID and the frequent call place; recording P2P traversing information of the frequent call link, such as NAT type of double end, P2P traversing parameter and accumulated traversing success rate; when the link of the subsequent newly-built call is a regular call link, the statistical crossing success rate is adopted to accelerate the judgment of P2P/RTN routing, or the pre-stored P2P crossing information is used to accelerate the P2P crossing process. Through the call establishment, the P2P exploration traversing process can be accelerated, P2P traversing delay and flow consumption are reduced, and in addition, the decision process of P2P and RTN link selection can be accelerated, and the decision time is reduced.
Fig. 3 shows a schematic structural diagram of a telephony device provided by the present application. The telephony device 300 includes a decision block 310, a P2P block 320, and an RTN block 330.
In an implementation manner, the decision module 310 is configured to pre-store the network address translation P2P traversal success rate of the first communication link and a first parameter, where the first parameter is used for the first terminal to perform P2P traversal of the first communication link, and the first communication link is any one of the communication links whose usage times of the first terminal is greater than a first threshold, or any one of the communication links whose usage time of the first terminal is greater than a second threshold and whose usage times are greater than a third threshold.
In one implementation, the decision module 310 is further configured to determine a mode for establishing a call according to the P2P traversal success rate when the call link used by the new call of the first terminal is the first call link.
In one implementation, the telephony device 300 further includes an RTN module 320, where the RTN module 320 is configured to establish a call using a real-time transport network RTN when the P2P crossing success rate is lower than a fourth threshold.
In one implementation, the telephony device 300 further includes a P2P module 330, where the P2P module 330 may be configured to perform a P2P traversal when a P2P traversal success rate is higher than or equal to a fourth threshold and smaller than a fifth threshold, and if the P2P traversal succeeds, perform a call by using a call link established after the P2P traversal succeeds; if the P2P traversal is unsuccessful, the RTN module 320 establishes a call using the RTN.
In one implementation, the P2P module 330 may be further configured to perform a P2P traversal according to the first parameter when the P2P traversal success rate is higher than or equal to a third threshold, and establish a call using a call link established after the P2P traversal is successful.
In one implementation, the decision module 310 may be further configured to determine the first call link according to the number of times of calls and/or the call duration.
In one implementation, the decision module 310 may further determine a first call ID according to the number of calls already made, where the first call ID is any one of m call IDs whose number of calls with the first terminal is greater than the first threshold;
the decision module determines a first address identifier ID corresponding to the second terminal, wherein the first address is the address with the maximum number of calls between the second terminal and the first terminal;
in one implementation, the decision module 310 may be further configured to determine that a call link used when the first terminal calls the first call ID at the first address is the first call link.
In an implementation manner, the decision module 310 may be further configured to determine a second call ID according to the call duration, where the second call ID is any one of n call IDs, where the call duration of the second call ID is greater than the second threshold, with respect to the first terminal.
In an implementation manner, the decision module 310 may be further configured to determine a second address ID corresponding to a second call ID, where the second address is an address with the largest number of calls between the second call ID and the first terminal.
In one implementation, the decision module 310 is further configured to determine that a call link used when the first terminal calls the second call ID at the second address is the first call link.
In one implementation, the number of times of calls between the second call ID and the first terminal is greater than the third threshold.
In one implementation, the address ID includes at least one of: latitude and longitude, service set identifier BSSID/SSID of the router, mobile network number MNC, mobile country code MCC, location area code LAC, cell ID.
The following describes a procedure for establishing a call link according to an embodiment of the present application with reference to the accompanying drawings.
Fig. 4 shows a schematic flow chart of call link establishment provided in the embodiment of the present application. The call link establishment procedure may be performed by the first terminal, wherein the first terminal may include a decision module, a P2P module, and an RTN module.
S401, when a call link is newly established, a decision module of the first terminal judges a frequent call link.
The decision module can determine a frequent call ID (or a frequent contact) and a frequent call place according to the call times and/or the call duration of the completed call, and determine a call link of the first terminal and the frequent call ID in the frequent call place as a frequent call link.
In one implementation, if the decision module determines that the current call link is a frequent call link, step S402 is executed; if the decision module determines that the current call link is not the frequent call link, the step S402 is executed, that is, when the decision module determines that the current call link is the infrequent call link, the decision module instructs the P2P module to execute a complete P2P crossing process, and when the P2P crossing is successful, a P2P call link is established and P2P crossing parameters are stored; when the P2P traversal fails, a TRN call link is selected. When the current call link is an infrequent call link, the process of creating a new call link can be referred to as an existing flow, and details are not described here.
The following describes a case where the current call link is a regular call link.
And S403, the decision module determines a call link establishment mode according to the pre-stored P2P crossing success rate.
Wherein, the decision module can select the P2P call link or the RTN call link according to the pre-stored P2P success rate indication.
Specifically, after the decision module determines the call link establishment mode, step S404a may be executed, that is, the decision module sends indication information to the P2P module or the RTN module, and indicates the RTN module to use the RTN call link or execute the P2P module to execute the P2P traversal procedure.
In one implementation, the decision module may further instruct the P2P module to perform a complete P2P traversal procedure according to the P2P traversal success rate or to perform a P2P traversal directly using pre-stored P2P traversal parameters. When the P2P crossing success rate is equal to or higher than the fourth threshold and lower than the fifth threshold, the decision module instructs the P2P module to perform a complete P2P crossing process; when the P2P crossing success rate is higher than the fifth threshold, the decision module sends the P2P crossing parameter to the P2P module (step S404b), and instructs the P2P module to directly use the P2P parameter to perform P2P crossing, that is, a complete P2P crossing process is not required.
S405, the constant call link and P2P traversal success rate are updated.
When the call link is established or the call is completed, the decision module may update the frequent call link based on the call link, and in addition, the decision module may also update the P2P passing success rate according to whether the P2P passing is successful or not.
S406, the decision module receives the parameters of the P2P traversal sent by the P2P module this time.
S407, for the regular call link, the P2P crossing success rate is updated, and the P2P crossing information is stored.
The decision module stores the P2P crossing success rate and the P2P crossing information in the process of establishing the call link, so that when a subsequently newly established call link is the same as the call link, the P2P crossing information can be reused to accelerate the P2P crossing.
According to the call establishment method and device, the frequent call ID (or frequent call person) and the frequent call place are screened out based on the call times and the call duration, and the frequent call link is further screened out according to the frequent call ID and the frequent call place; recording P2P traversing information of the frequent call link, such as NAT type of double end, P2P traversing parameter and accumulated traversing success rate; when the link of the subsequent newly-built call is a regular call link, the statistical crossing success rate is adopted to accelerate the judgment of P2P/RTN routing, or the pre-stored P2P crossing information is used to accelerate the P2P crossing process. Through the call establishment, the P2P exploration traversing process can be accelerated, P2P traversing delay and flow consumption are reduced, and in addition, the decision process of P2P and RTN link selection can be accelerated, and the decision time is reduced.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (14)
1. A method for establishing a call, comprising:
the method comprises the steps that a first terminal prestores an end-to-end P2P crossing success rate and a first parameter of a first call link, wherein the first parameter is a P2P crossing parameter required for establishing the first call link, and the first call link is any one of the call links of which the call number of the first terminal is greater than a first threshold value, or any one of the call links of which the call duration of the first terminal is greater than a second threshold value and the call number is greater than a third threshold value;
and when the call link of the newly-established call of the first terminal is the first call link, the first terminal determines a call establishment mode according to the P2P traversing success rate.
2. The method according to claim 1, wherein the determining, by the first terminal, a manner of establishing a call according to the P2P traversal success rate comprises:
when the P2P crossing success rate is lower than a fourth threshold value, the first terminal determines to select a real-time transport network (RTN) call link to establish a call;
when the P2P crossing success rate is higher than or equal to the fourth threshold and is less than a fifth threshold, the first terminal executes the P2P crossing, wherein if the P2P crossing is successful, a call is established by using a call link established after the P2P crossing is successful; if the P2P traversing is not successful, establishing a call by adopting the RTN call link;
when the P2P crossing success rate is higher than or equal to the third threshold, the first terminal performs P2P crossing according to the first parameter, and establishes a call by using a call link established after the P2P crossing is successful.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and the first terminal determines the first call link according to the number of times of calls and/or the call duration.
4. The method of claim 3, wherein the first terminal determining the first call link according to the number of times that the call has been made comprises:
the first terminal determines a first call Identification (ID) according to the number of calls, wherein the first call ID is any one of m call IDs of which the number of calls with the first terminal is greater than the first threshold value, and m is a positive integer;
the first terminal determines a first address ID corresponding to the first call ID, wherein the first address is the address with the maximum number of calls between the first call ID and the first terminal;
and the first terminal determines that a call link used when the first terminal calls the first call ID of the first address is a first call link.
5. The method according to claim 3 or 4, wherein the determining, by the first terminal, the first call link according to the call duration includes:
the first terminal determines a second call ID according to the call duration, wherein the second call ID is any one of n call IDs of which the call duration with the first terminal is greater than the second threshold, and n is a positive integer;
the first terminal determines a second address ID corresponding to the second call ID, wherein the second address is the address with the maximum number of calls between the second call ID and the first terminal;
the first terminal determines that a call link used when the first terminal makes a call with the second call ID at the second address is a first call link.
6. The method of claim 5, wherein the second session ID is associated with a number of sessions with the first terminal that is greater than the third threshold.
7. The method according to any of claims 4-6, wherein the address ID comprises at least one of:
latitude and longitude, service set identifier BSSID/SSID of the router, mobile network number MNC, mobile country code MCC, location area code LAC, cell ID.
8. A telephony device, comprising:
a decision module, configured to pre-store a P2P traversal success rate and a first parameter of a first call link, where the first parameter is a P2P traversal parameter required to establish the first call link, and the first call link is any one of call links in which the number of calls of the first terminal is greater than a first threshold, or any one of call links in which the call duration of the first terminal is greater than a second threshold and the number of calls is greater than a third threshold;
the decision module is further configured to determine a mode of establishing a call according to the P2P traversal success rate when the call link of the newly-established call of the first terminal is the first call link.
9. The telephony device of claim 8, further comprising:
the RTN module is used for determining to select a real-time transport network RTN call link to establish a call when the P2P crossing success rate is lower than a fourth threshold;
a P2P module, configured to execute the P2P traversal when the P2P traversal success rate is higher than or equal to the fourth threshold and smaller than a fifth threshold, where if the P2P traversal succeeds, a call is established using a call link established after the P2P traversal succeeds; if the P2P traversing is not successful, the RTN module establishes a call by adopting the RTN call link;
and the P2P module is further configured to, when the P2P crossing success rate is higher than or equal to the third threshold, perform P2P crossing according to the first parameter, and establish a call by using a call link established after the P2P crossing is successful.
10. A telephony device according to claim 8 or 9, in which the decision module determines the first telephony link in dependence on the number of times and/or duration of calls made.
11. The telephony device of claim 10, wherein the decision module determines the first telephony link based on a number of times the call has been made, comprising:
the decision module determines a first call ID according to the number of calls, wherein the first call ID is any one of m terminals of which the number of calls with the first terminal is greater than the first threshold, and m is a positive integer;
the decision module determines a first address Identification (ID) corresponding to the first call ID, wherein the first address is the address with the maximum number of calls between the first call ID and the first terminal;
the decision module determines that a call link used when the first terminal makes a call with the first call ID at the first address is a first call link.
12. The telephony device of claim 10 or 11, wherein the decision module determines the first telephony link based on a duration of a call, comprising:
the decision module determines a second call ID according to the call duration, wherein the second call ID is any one of n terminals of which the call duration with the first terminal is greater than the second threshold, and n is a positive integer;
the decision module determines a second address ID corresponding to the third terminal, wherein the second address is the address with the maximum number of calls between the second call ID and the first terminal;
the decision module determines that a call link used when the first terminal makes a call with the second call ID at the second address is a first call link.
13. The telephony device of claim 12, wherein the number of calls made by the third terminal with the first terminal is greater than the third threshold.
14. Telephony device according to any of claims 11-13, in which the address ID comprises at least one of:
latitude and longitude, service set identifier BSSID/SSID of the router, mobile network number MNC, mobile country code MCC, location area code LAC, cell ID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910883074.7A CN110661860B (en) | 2019-09-18 | 2019-09-18 | Method for establishing call and call equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910883074.7A CN110661860B (en) | 2019-09-18 | 2019-09-18 | Method for establishing call and call equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110661860A true CN110661860A (en) | 2020-01-07 |
CN110661860B CN110661860B (en) | 2021-08-20 |
Family
ID=69038234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910883074.7A Active CN110661860B (en) | 2019-09-18 | 2019-09-18 | Method for establishing call and call equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110661860B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111800491A (en) * | 2020-06-23 | 2020-10-20 | 成都完美时空网络技术有限公司 | Data transmission method, system, computing device and storage medium |
CN113810451A (en) * | 2020-08-26 | 2021-12-17 | 荣耀终端有限公司 | Method and device for establishing point-to-point link, server and terminal equipment |
CN114629916A (en) * | 2022-03-09 | 2022-06-14 | 杭州萤石软件有限公司 | Stream taking method, device and system based on P2P link |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1917512A (en) * | 2005-08-18 | 2007-02-21 | 腾讯科技(深圳)有限公司 | Method for establishing direct connected peer-to-peer channel |
US20090111382A1 (en) * | 2007-10-26 | 2009-04-30 | Motorola, Inc. | Methods for scheduling collection of key performance indicators from elements in a communications network |
CN101547107A (en) * | 2008-03-27 | 2009-09-30 | 天津德智科技有限公司 | Method and device for establishing multi-channel point-to-point connection |
CN101887491A (en) * | 2010-06-30 | 2010-11-17 | 中山大学 | Distributed PACS-based teleconsultation method |
CN106254202A (en) * | 2016-08-29 | 2016-12-21 | 北京邮电大学 | A kind of multidiameter delay transmission method based on fountain codes and device |
CN108668327A (en) * | 2018-04-23 | 2018-10-16 | 北京小米移动软件有限公司 | The communication means and device of mobile terminal |
CN108702601A (en) * | 2016-03-11 | 2018-10-23 | 英特尔公司 | Reciprocity (P2P) is transformed into from the wireless connection based on infrastructure to be wirelessly connected |
CN109274735A (en) * | 2018-09-11 | 2019-01-25 | 腾讯科技(深圳)有限公司 | A kind of peer-to-peer network connection method and relevant device |
-
2019
- 2019-09-18 CN CN201910883074.7A patent/CN110661860B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1917512A (en) * | 2005-08-18 | 2007-02-21 | 腾讯科技(深圳)有限公司 | Method for establishing direct connected peer-to-peer channel |
US20090111382A1 (en) * | 2007-10-26 | 2009-04-30 | Motorola, Inc. | Methods for scheduling collection of key performance indicators from elements in a communications network |
CN101547107A (en) * | 2008-03-27 | 2009-09-30 | 天津德智科技有限公司 | Method and device for establishing multi-channel point-to-point connection |
CN101887491A (en) * | 2010-06-30 | 2010-11-17 | 中山大学 | Distributed PACS-based teleconsultation method |
CN108702601A (en) * | 2016-03-11 | 2018-10-23 | 英特尔公司 | Reciprocity (P2P) is transformed into from the wireless connection based on infrastructure to be wirelessly connected |
CN106254202A (en) * | 2016-08-29 | 2016-12-21 | 北京邮电大学 | A kind of multidiameter delay transmission method based on fountain codes and device |
CN108668327A (en) * | 2018-04-23 | 2018-10-16 | 北京小米移动软件有限公司 | The communication means and device of mobile terminal |
CN109274735A (en) * | 2018-09-11 | 2019-01-25 | 腾讯科技(深圳)有限公司 | A kind of peer-to-peer network connection method and relevant device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111800491A (en) * | 2020-06-23 | 2020-10-20 | 成都完美时空网络技术有限公司 | Data transmission method, system, computing device and storage medium |
CN113810451A (en) * | 2020-08-26 | 2021-12-17 | 荣耀终端有限公司 | Method and device for establishing point-to-point link, server and terminal equipment |
CN113810451B (en) * | 2020-08-26 | 2022-10-28 | 荣耀终端有限公司 | Method and device for establishing point-to-point link, first terminal equipment and storage medium |
CN114629916A (en) * | 2022-03-09 | 2022-06-14 | 杭州萤石软件有限公司 | Stream taking method, device and system based on P2P link |
CN114629916B (en) * | 2022-03-09 | 2024-03-29 | 杭州萤石软件有限公司 | Streaming method, device and system based on P2P link |
Also Published As
Publication number | Publication date |
---|---|
CN110661860B (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11470657B2 (en) | Method, user equipment, and network node for performing PDU session establishment procedure for LADN | |
CN110661860B (en) | Method for establishing call and call equipment | |
CN107925957B (en) | Systems, methods, and media for providing connectivity | |
EP3241383B1 (en) | Cellular handover | |
US20060234713A1 (en) | Dynamically obtaining neighborhood information | |
US10374960B2 (en) | Apparatus, systems and methods for network selection with priority class | |
US11240729B1 (en) | Network path routing for wireless traffic | |
CN108781361B (en) | Method and apparatus for processing data packets | |
EP3618499A1 (en) | Method and cell for determining handover of pdu session | |
CN104871603A (en) | Method for connecting IMS-based service | |
CN113691969A (en) | Communication method and device | |
US20160198122A1 (en) | Communication Channel Management for Real-Time Applications | |
US20220256396A1 (en) | Congestion control method and apparatus | |
CN112532757B (en) | NAT traversal method, equipment and system | |
US8346271B2 (en) | Method for implementing a business of communication service level based on a user request | |
EP1998583A1 (en) | Handover method | |
CN103262611A (en) | Gateway relocation control method in mobile communication system, and control device | |
CN110149669B (en) | Method for controlling terminal to use wireless network and related equipment | |
EP3537666B1 (en) | Service data processing method and apparatus | |
CN105009673B (en) | Business continuance judgment method and equipment | |
CN111757340B (en) | Method, device and system for determining service area | |
CN112438061B (en) | Wireless communication method, network node and terminal equipment | |
CN101998515B (en) | The implementation method of control PCRF load balancing and realize system | |
US11937166B2 (en) | Systems and methods for refining topology of a distributed unit mesh in a radio access network | |
US11050796B2 (en) | Interface session discovery within wireless communication networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |