CN113315808B - Network address matching method and device, computer equipment and storage medium - Google Patents

Network address matching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113315808B
CN113315808B CN202110428408.9A CN202110428408A CN113315808B CN 113315808 B CN113315808 B CN 113315808B CN 202110428408 A CN202110428408 A CN 202110428408A CN 113315808 B CN113315808 B CN 113315808B
Authority
CN
China
Prior art keywords
terminal
network address
port number
real
network
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
CN202110428408.9A
Other languages
Chinese (zh)
Other versions
CN113315808A (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.)
Ifreecomm Technology Co ltd
Original Assignee
Ifreecomm Technology 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 Ifreecomm Technology Co ltd filed Critical Ifreecomm Technology Co ltd
Priority to CN202110428408.9A priority Critical patent/CN113315808B/en
Publication of CN113315808A publication Critical patent/CN113315808A/en
Application granted granted Critical
Publication of CN113315808B publication Critical patent/CN113315808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a network address matching method, a network address matching device, computer equipment and a storage medium. The method comprises the following steps: receiving a call request sent by a first terminal; comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with the target network address and the target port number respectively; when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process; and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process. By adopting the method, the communication efficiency can be improved.

Description

Network address matching method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a network address matching method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, a network conference technology appears, and the network conference can realize document sharing, demonstration and cooperation with people in the same city and even all over the world, so that the regional limitation is completely broken, people in different places can realize real-time conference communication, the problems can be solved at any time and any place, the travel cost is reduced, and the productivity is improved. The user can no longer be tired of the journey for the meeting between companies and the exchange with the client, and the important meeting can not be missed because of business trip.
However, in the conventional technology, in the process of establishing a communication connection between a first terminal and a second terminal, the network address and the port number of the first terminal are often modified by a router and/or a firewall, and the first terminal and the second terminal cannot establish the communication connection, thereby resulting in low communication efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a network address matching method, apparatus, computer device, and storage medium capable of improving communication efficiency.
A method of network address matching, the method comprising:
receiving a call request sent by a first terminal;
comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with a target network address and a target port number respectively;
when the comparison is consistent, establishing communication connection between the first terminal and a corresponding second terminal through a public network process;
and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
In one embodiment, the method further comprises:
comparing a first network address and a first port number carried by a standard field in the registration request signaling with a second network address and a second port number carried by a non-standard field in the registration request signaling respectively;
when the comparison is consistent, determining the first network address and the first port number as a real network address and a real port number of the first terminal;
and when the comparison is inconsistent, determining the second network address and the second port number as the real network address and the real port number of the first terminal.
In one embodiment, the standard field is a ras address field carried by the registration request signaling; the non-standard field is a Nonstandard field pre-added to the registration request signaling.
In one embodiment, the establishing, through a public network process, a communication connection between the first terminal and a corresponding second terminal includes:
constructing a first call channel based on the real network address and the real port number of the first terminal and the real network address and the real port number of the corresponding second terminal;
and establishing communication connection between the first terminal and the corresponding second terminal according to the first calling channel.
In one embodiment, the establishing a communication connection between the first terminal and the second terminal through a private network procedure includes:
adding a third party network segment which is different from the network segment pointed by the real network address of the first terminal and the real network address of the second terminal based on a router;
constructing a second calling channel based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal and the third party network segment;
and establishing communication connection between the first terminal and the corresponding second terminal according to the second call channel.
In one embodiment, before the receiving the call request sent by the first terminal, the method further includes:
receiving a registration request signaling sent by a first terminal;
according to the registration request signaling, carrying out validity authentication on the identity information of the first terminal;
when the validity authentication passes, generating a registration confirmation signaling;
and sending the registration confirmation signaling to the first terminal to indicate the first terminal to generate a call request based on the registration confirmation signaling.
A network address matching apparatus, the apparatus comprising:
the receiving module is used for receiving a call request sent by a first terminal;
a comparison module, configured to compare a real network address and a real port number of the first terminal, which are carried in a registration request signaling corresponding to the call request, with a target network address and a target port number, respectively;
the establishing module is used for establishing communication connection between the first terminal and the corresponding second terminal through a public network process when the comparison is consistent; and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network flow.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a call request sent by a first terminal;
comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with a target network address and a target port number respectively;
when the comparison is consistent, establishing communication connection between the first terminal and a corresponding second terminal through a public network process;
and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a call request sent by a first terminal;
comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with a target network address and a target port number respectively;
when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process;
and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
The network address matching method, the network address matching device, the computer equipment and the storage medium receive the call request sent by the first terminal; comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with the target network address and the target port number respectively; when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process; and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process. Therefore, the real network address and the real port number of the first terminal are added in the registration request signaling, so that the problem of low communication efficiency caused by the fact that the communication connection between the first terminal and the second terminal cannot be normally established due to the fact that the network address and the port number of the first terminal are modified by a router and/or a firewall is solved.
Drawings
FIG. 1 is a diagram illustrating an exemplary implementation of a network address matching method;
FIG. 2 is a flow diagram illustrating a network address matching method in accordance with one embodiment;
fig. 3 is a schematic diagram of a GK registration process in one embodiment;
FIG. 4 is a diagram illustrating a network of a network address matching method in accordance with an embodiment;
FIG. 5 is a block diagram of a network address matching apparatus in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
The network address matching method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a first terminal 102, a network terminal 104, and a first terminal 106. The first terminal 102 and the network terminal 104 communicate over a network, and the second terminal 106 and the network terminal 104 communicate over a network. The terminal 102 may specifically include a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, a notebook computer, and the like. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
The network terminal 104 may receive the call request sent by the first terminal 102, and may compare the real network address and the real port number of the first terminal 102 carried by the registration request signaling corresponding to the call request with the target network address and the target port number, respectively. When the comparison is consistent, the network terminal 104 may establish a communication connection between the first terminal 102 and the corresponding second terminal 106 through a public network procedure. When the comparison is inconsistent, the network terminal 104 may establish a communication connection between the first terminal 102 and the second terminal 106 through a private network procedure.
In an embodiment, as shown in fig. 2, a network address matching method is provided, which is described by taking the method as an example applied to the network terminal 104 in fig. 1, and includes the following steps:
s202, receiving a call request sent by a first terminal.
Specifically, the user may perform a call triggering operation based on the first terminal, and the first terminal may generate a call triggering instruction based on the call triggering operation of the user and generate a call request based on the call triggering instruction. The first terminal may send a call request to the network terminal. The network terminal may receive a call request sent by the first terminal.
In one embodiment, the call trigger operation may specifically be a click operation, a long-press operation, a slide operation, or the like. The click operation may be a single click operation or a double click operation.
And S204, comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with the target network address and the target port number respectively.
The registration request signaling is a signaling that a terminal requests to register a GK (Gatekeeper) at a network terminal. The real network address is an address of the terminal in the current network environment. The real port number is a port number used by the terminal in the current network environment. The destination network address is a network address stored in advance on the network terminal. The destination port number is a port number stored in advance on the network terminal.
Specifically, the first terminal may complete GK registration in the network terminal in advance before transmitting a call request to the network terminal. The network terminal may store a registration request signaling sent when the first terminal requests to register the GK. After receiving the call request sent by the first terminal, the network terminal may locally search for a registration request signaling corresponding to the call request sent by the first terminal according to the terminal identifier of the first terminal, and compare the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with the target network address and the target port number, respectively. Wherein, the terminal identification is a character string.
In one embodiment, the terminal identification may include at least one of a number, a letter, and a special character. Special characters may include underlines, percentile, pound sign keys, asterisk keys, and the like.
And S206, when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through the public network process.
The public network refers to a network belonging to the same network segment. The public network flow refers to a communication channel for communication configuration based on the public network.
Specifically, when the comparison is consistent, the network terminal may establish a communication connection between the first terminal and the corresponding second terminal through a public network process.
For example, the network address of the first terminal is 192.168.0.1, and the network address of the second terminal is 192.168.10.65. The networks of the first terminal and the second terminal both belong to the network segment 192, and the network terminal can establish communication connection between the first terminal and the corresponding second terminal through a public network process.
And S208, when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
The private network refers to a network which does not belong to the same network segment. The private network flow refers to a communication channel for communication configuration based on a private network.
Specifically, when the comparison is inconsistent, the network terminal may establish a communication connection between the first terminal and the second terminal through a private network procedure.
For example, the network address of the first terminal is 192.168.0.1, and the network address of the second terminal is 172.32.1.2. The networks of the first terminal all belong to the segment 192, and the networks of the second terminal all belong to the segment 172, so that the network terminals can establish communication connection between the first terminal and the corresponding second terminal through a private network process.
In the network address matching method, a call request sent by a first terminal is received; comparing a real network address and a real port number of a first terminal carried by a registration request signaling corresponding to a call request with a target network address and a target port number respectively; when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process; and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process. Therefore, the real network address and the real port number of the first terminal are added in the registration request signaling, so that the problem of low communication efficiency caused by the fact that the communication connection between the first terminal and the second terminal cannot be normally established due to the fact that the network address and the port number of the first terminal are modified by a router and/or a firewall is solved.
In one embodiment, the network address matching method further includes: comparing a first network address and a first port number carried by a standard field in a registration request signaling with a second network address and a second port number carried by a non-standard field in the registration request signaling respectively; when the comparison is consistent, determining the first network address and the first port number as the real network address and the real port number of the first terminal; and when the comparison is inconsistent, determining the second network address and the second port number as the real network address and the real port number of the first terminal.
Wherein, the standard field is a field carried by the registration request signaling. The non-standard field is a field additionally added to the registration request signaling.
Specifically, the network terminal may compare a first network address and a first port number carried in a standard field in the registration request signaling with a second network address and a second port number carried in a non-standard field in the registration request signaling, respectively. When the comparison is consistent, the network terminal may determine the first network address and the first port number as a real network address and a real port number of the first terminal. When the comparison is inconsistent, the network terminal may determine the second network address and the second port number as the real network address and the real port number of the first terminal.
It will be appreciated that the first network address and first port number carried by the standard field are those passed through the firewall and router. Since the real network address and port number of the first terminal originally carried by the standard field are likely to be modified by the firewall and/or the router, it cannot be guaranteed that the first network address and first port number extracted from the standard field by the network terminal are also the real network address and port number of the first terminal. And a non-standard field is additionally added in the registration request signaling, and the non-standard field carries the real network address and port number of the first terminal, namely the second network address and the second port number. Since the real network address and port number of the first terminal carried by the non-standard field can not be modified by the firewall and/or the router, the second network address and port number extracted from the non-standard field by the network terminal can be ensured to be the real network address and port number of the first terminal.
Optionally, the standard field is a ras address field carried by the registration request signaling itself, and the non-standard field is a Nonstandard field pre-added to the registration request signaling.
In the above embodiment, the first network address and the first port number carried in the standard field in the registration request signaling are respectively compared with the second network address and the second port number carried in the non-standard field in the registration request signaling. And further determining the real network address and the real port number of the first terminal according to the comparison result. In this way, it is further ensured that the determined network address and port number are the real network address and port number of the first terminal in the current environment.
In an embodiment, the step of establishing a communication connection between the first terminal and the corresponding second terminal through the public network procedure in step S206 specifically includes: constructing a first call channel based on the real network address and the real port number of the first terminal and the real network address and the real port number of the corresponding second terminal; and establishing communication connection between the first terminal and the corresponding second terminal according to the first calling channel.
Specifically, the network terminal may construct the first call path based on the real network address and the real port number of the first terminal, and the real network address and the real port number of the corresponding second terminal. Furthermore, the network terminal can establish a communication connection between the first terminal and the corresponding second terminal according to the first call channel.
In the embodiment, the communication connection between the first terminal and the corresponding second terminal is directly established based on the real network address and the real port number of the first terminal and the real network address and the real port number of the corresponding second terminal, so that the communication efficiency is improved.
In an embodiment, the step of establishing a communication connection between the first terminal and the second terminal through a private network procedure in step S208 specifically includes: adding a third party network segment which is different from the network segment pointed by the real network address of the first terminal and the real network address of the second terminal based on the router; constructing a second calling channel based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal and the third party network segment; and establishing communication connection between the first terminal and the corresponding second terminal according to the second call channel.
Specifically, the network segment where the first terminal and the second terminal are located are different, and the network terminal may add a third-party network segment different from the network segment to which the real network address of the first terminal and the real network address of the second terminal are directed based on a router of a third party. Furthermore, the network terminal may construct a second call channel based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal, and the third party network segment, and establish a communication connection between the first terminal and the corresponding second terminal according to the second call channel.
In the embodiment, the communication connection between the first terminal and the corresponding second terminal is established based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal, and the third-party network segment, so that the first terminal and the corresponding second terminal can normally communicate, and the communication efficiency is improved.
In an embodiment, before step S202, that is, before the step of receiving the call request sent by the first terminal, the network address matching method further includes: receiving a registration request signaling sent by a first terminal; according to the registration request signaling, carrying out validity authentication on the identity information of the first terminal; when the validity authentication passes, generating a registration confirmation signaling; and sending the registration confirmation signaling to the first terminal to instruct the first terminal to generate a call request based on the registration confirmation signaling.
Specifically, the user may perform a registration triggering operation based on the first terminal, and the first terminal may generate a registration triggering instruction based on the registration triggering operation of the user and generate a registration request signaling based on the registration triggering instruction. The first terminal may send registration request signalling to the network terminal. The network terminal can receive the registration request signaling sent by the first terminal and carry out validity authentication on the identity information of the first terminal according to the registration request signaling. When the validity authentication passes, the network terminal may generate a registration confirmation signaling and send the registration confirmation signaling to the first terminal to instruct the first terminal to generate a call request based on the registration confirmation signaling.
Optionally, the network terminal performs validity authentication on the identity information of the first terminal according to the registration request signaling, and specifically, the identity information of the first terminal may be searched in a local identity information list. If the validity authentication is found, the validity authentication is judged to be passed.
In the embodiment, the identity information of the first terminal is legally authenticated, and the network terminal registers only when the legality authentication is passed, so that the communication safety is improved.
In one embodiment, as shown in fig. 3, the first terminal and the second terminal may respectively send registration request signaling to the network terminal. The network terminal can respectively perform GK registration on the first terminal and the second terminal according to the registration request signaling sent by the first terminal and the second terminal. When the registration is successful, the network terminal may send registration confirmation signaling to the first terminal and the second terminal, respectively.
In one embodiment, as shown in fig. 4, a GK registration management system is running in the network terminal, and terminal a (terma) and terminal b (termb) may send registration request signaling to the network terminal before initiating a call. Wherein, the registration request signaling needs to pass through the router and the firewall (Fire Wall) for transmission to reach the network terminal. The actual network addresses and port numbers of terminal a and terminal B are likely to be modified by the firewall and/or router. By adding the real network address and the real port number of the first terminal in the registration request signaling, the method and the device avoid the problem of low communication efficiency caused by the fact that the communication connection between the terminal A and the terminal B cannot be normally established because the network address and the port number of the terminal A and the terminal B are modified by a router and/or a firewall.
It should be understood that although the various steps of fig. 2 are shown in order, the steps are not necessarily performed in order. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatively with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a network address matching apparatus 500, including: a receiving module 501, a comparing module 502 and a establishing module 503, wherein:
a receiving module 501, configured to receive a call request sent by a first terminal.
A comparing module 502, configured to compare the real network address and the real port number of the first terminal, which are carried in the registration request signaling corresponding to the call request, with the target network address and the target port number, respectively.
An establishing module 503, configured to establish, when the comparison is consistent, a communication connection between the first terminal and the corresponding second terminal through a public network process; and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
In one embodiment, the comparing module 502 is further configured to compare a first network address and a first port number carried in a standard field in the registration request signaling with a second network address and a second port number carried in a non-standard field in the registration request signaling, respectively; when the comparison is consistent, determining the first network address and the first port number as the real network address and the real port number of the first terminal; and when the comparison is inconsistent, determining the second network address and the second port number as the real network address and the real port number of the first terminal.
In one embodiment, the standard field is a ras Address field carried by a registration request signaling; the non-standard field is a Nonstandard field pre-added to the registration request signaling.
In one embodiment, the establishing module 503 is further configured to establish the first call channel based on the real network address and the real port number of the first terminal, and the real network address and the real port number of the corresponding second terminal; and establishing communication connection between the first terminal and the corresponding second terminal according to the first calling channel.
In one embodiment, the establishing module 503 is further configured to add a third party network segment different from the network segment to which the real network address of the first terminal and the real network address of the second terminal are directed based on the router; constructing a second calling channel based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal and the third party network segment; and establishing communication connection between the first terminal and the corresponding second terminal according to the second call channel.
In one embodiment, the receiving module 501 is further configured to receive a registration request signaling sent by a first terminal; according to the registration request signaling, carrying out validity authentication on the identity information of the first terminal; when the validity authentication passes, generating a registration confirmation signaling; and sending the registration confirmation signaling to the first terminal to instruct the first terminal to generate a call request based on the registration confirmation signaling.
The network address matching device receives a call request sent by a first terminal; comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with the target network address and the target port number respectively; when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process; and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process. Therefore, the real network address and the real port number of the first terminal are added in the registration request signaling, and the problem of low communication efficiency caused by the fact that the communication connection between the first terminal and the second terminal cannot be normally established because the network address and the port number of the first terminal are modified by a router and/or a firewall is avoided.
For the specific definition of the network address matching device, reference may be made to the above definition of the network address matching method, which is not described herein again. The modules in the network address matching device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be the network terminal 104 in fig. 1, and the internal structure thereof may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network address matching method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a call request sent by a first terminal;
comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with the target network address and the target port number respectively;
when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process;
and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
comparing a first network address and a first port number carried by a standard field in a registration request signaling with a second network address and a second port number carried by a non-standard field in the registration request signaling respectively;
when the comparison is consistent, determining the first network address and the first port number as the real network address and the real port number of the first terminal;
and when the comparison is inconsistent, determining the second network address and the second port number as the real network address and the real port number of the first terminal.
In one embodiment, the standard field is a ras Address field carried by a registration request signaling; the non-standard field is a Nonstandard field pre-added to the registration request signaling.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
constructing a first call channel based on the real network address and the real port number of the first terminal and the real network address and the real port number of the corresponding second terminal;
and establishing communication connection between the first terminal and the corresponding second terminal according to the first call channel.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
adding a third party network segment which is different from the network segment pointed by the real network address of the first terminal and the real network address of the second terminal based on the router;
constructing a second calling channel based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal and the third party network segment;
and establishing communication connection between the first terminal and the corresponding second terminal according to the second call channel.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a registration request signaling sent by a first terminal;
according to the registration request signaling, carrying out validity authentication on the identity information of the first terminal;
when the validity authentication passes, generating a registration confirmation signaling;
and sending the registration confirmation signaling to the first terminal to instruct the first terminal to generate a call request based on the registration confirmation signaling.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
receiving a call request sent by a first terminal;
comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with the target network address and the target port number respectively;
when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process;
and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
In one embodiment, the computer program when executed by the processor further performs the steps of:
comparing a first network address and a first port number carried by a standard field in a registration request signaling with a second network address and a second port number carried by a non-standard field in the registration request signaling respectively;
when the comparison is consistent, determining the first network address and the first port number as the real network address and the real port number of the first terminal;
and when the comparison is inconsistent, determining the second network address and the second port number as the real network address and the real port number of the first terminal.
In one embodiment, the standard field is a ras Address field carried by a registration request signaling; the non-standard field is a Nonstandard field pre-added to the registration request signaling.
In one embodiment, the computer program when executed by the processor further performs the steps of:
constructing a first call channel based on the real network address and the real port number of the first terminal and the real network address and the real port number of the corresponding second terminal;
and establishing communication connection between the first terminal and the corresponding second terminal according to the first calling channel.
In one embodiment, the computer program when executed by the processor further performs the steps of:
adding a third party network segment which is different from the network segment pointed by the real network address of the first terminal and the real network address of the second terminal based on the router;
constructing a second calling channel based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal and the third party network segment;
and establishing communication connection between the first terminal and the corresponding second terminal according to the second call channel.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a registration request signaling sent by a first terminal;
according to the registration request signaling, carrying out validity authentication on the identity information of the first terminal;
when the validity authentication passes, generating a registration confirmation signaling;
and sending the registration confirmation signaling to the first terminal to instruct the first terminal to generate a call request based on the registration confirmation signaling.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A network address matching method is characterized in that the method is applied to a network terminal; the method comprises the following steps:
receiving a call request sent by a first terminal;
comparing the real network address and the real port number of the first terminal carried by the registration request signaling corresponding to the call request with a target network address and a target port number respectively; the target network address is a network address pre-stored on the network terminal; the target port number is a port number stored in advance on the network terminal;
when the comparison is consistent, establishing communication connection between the first terminal and the corresponding second terminal through a public network process;
and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network flow.
2. The method of claim 1, further comprising:
comparing a first network address and a first port number carried by a standard field in the registration request signaling with a second network address and a second port number carried by a non-standard field in the registration request signaling respectively;
when the comparison is consistent, determining the first network address and the first port number as a real network address and a real port number of the first terminal;
and when the comparison is inconsistent, determining the second network address and the second port number as the real network address and the real port number of the first terminal.
3. The method of claim 2, wherein the standard field is a ras Address field carried by the registration request signaling itself; the non-standard field is a Nonstandard field pre-added to the registration request signaling.
4. The method according to claim 1, wherein the establishing a communication connection between the first terminal and a corresponding second terminal through a public network process comprises:
constructing a first call channel based on the real network address and the real port number of the first terminal and the real network address and the real port number of the corresponding second terminal;
and establishing communication connection between the first terminal and the corresponding second terminal according to the first calling channel.
5. The method of claim 1, wherein establishing the communication connection between the first terminal and the second terminal through a private network procedure comprises:
adding a third party network segment which is different from the network segment pointed by the real network address of the first terminal and the real network address of the second terminal based on a router;
constructing a second calling channel based on the real network address and the real port number of the first terminal, the real network address and the real port number of the corresponding second terminal and the third party network segment;
and establishing communication connection between the first terminal and the corresponding second terminal according to the second call channel.
6. The method according to any of claims 1 to 5, wherein before said receiving the call request sent by the first terminal, the method further comprises:
receiving a registration request signaling sent by a first terminal;
according to the registration request signaling, carrying out validity authentication on the identity information of the first terminal;
when the validity authentication passes, generating a registration confirmation signaling;
and sending the registration confirmation signaling to the first terminal to indicate the first terminal to generate a call request based on the registration confirmation signaling.
7. A network address matching device is characterized in that the device is applied to a network terminal; the device comprises:
the receiving module is used for receiving a call request sent by a first terminal;
a comparison module, configured to compare a real network address and a real port number of the first terminal, which are carried in a registration request signaling corresponding to the call request, with a target network address and a target port number, respectively; the target network address is a network address pre-stored on the network terminal; the target port number is a port number stored in advance on the network terminal;
the establishing module is used for establishing communication connection between the first terminal and the corresponding second terminal through a public network process when the comparison is consistent; and when the comparison is inconsistent, establishing communication connection between the first terminal and the second terminal through a private network process.
8. The apparatus according to claim 7, wherein the comparing module is further configured to compare a first network address and a first port number carried in a standard field in the registration request signaling with a second network address and a second port number carried in a non-standard field in the registration request signaling, respectively; when the comparison is consistent, determining the first network address and the first port number as a real network address and a real port number of the first terminal; and when the comparison is inconsistent, determining the second network address and the second port number as the real network address and the real port number of the first terminal.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202110428408.9A 2021-04-21 2021-04-21 Network address matching method and device, computer equipment and storage medium Active CN113315808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110428408.9A CN113315808B (en) 2021-04-21 2021-04-21 Network address matching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110428408.9A CN113315808B (en) 2021-04-21 2021-04-21 Network address matching method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113315808A CN113315808A (en) 2021-08-27
CN113315808B true CN113315808B (en) 2022-09-30

Family

ID=77372523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110428408.9A Active CN113315808B (en) 2021-04-21 2021-04-21 Network address matching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113315808B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708532B (en) * 2023-08-03 2023-10-20 腾讯科技(深圳)有限公司 Local area network connection method, device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553667A (en) * 2003-06-05 2004-12-08 中兴通讯股份有限公司 Method for building call between multimedia apparatus
CN1719776A (en) * 2004-07-10 2006-01-11 深圳市凌宇创展科技有限公司 Communication method of passing through NAT and fire wall
CN1893394A (en) * 2005-07-05 2007-01-10 华为技术有限公司 Method for passing through network address conversion
CN109951562A (en) * 2019-03-29 2019-06-28 深圳市网心科技有限公司 NAT penetrating method and system, electronic equipment and storage medium
CN111464963A (en) * 2020-04-01 2020-07-28 中国联合网络通信集团有限公司 Registration method of card-free terminal and identity registration server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7333500B2 (en) * 2002-09-24 2008-02-19 Nortel Networks Limited Methods for discovering network address and port translators
CN101252605A (en) * 2008-04-03 2008-08-27 杭州华三通信技术有限公司 Multimedia communication method, system and apparatus traversing network address conversion equipment
CN102255980B (en) * 2010-05-20 2015-07-22 中兴通讯股份有限公司 Method and apparatus for managing calling information of session initiation protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553667A (en) * 2003-06-05 2004-12-08 中兴通讯股份有限公司 Method for building call between multimedia apparatus
CN1719776A (en) * 2004-07-10 2006-01-11 深圳市凌宇创展科技有限公司 Communication method of passing through NAT and fire wall
CN1893394A (en) * 2005-07-05 2007-01-10 华为技术有限公司 Method for passing through network address conversion
CN109951562A (en) * 2019-03-29 2019-06-28 深圳市网心科技有限公司 NAT penetrating method and system, electronic equipment and storage medium
CN111464963A (en) * 2020-04-01 2020-07-28 中国联合网络通信集团有限公司 Registration method of card-free terminal and identity registration server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种VoIP穿越NAT的解决方案;陈蕾;《西南科技大学学报》;20080615(第02期);全文 *

Also Published As

Publication number Publication date
CN113315808A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
WO2020087778A1 (en) Multiple system login method, apparatus, computer device and storage medium
CN110213223B (en) Service management method, device, system, computer equipment and storage medium
CN109359994B (en) Service processing method, device and system based on block chain
CN113067859B (en) Communication method and device based on cloud mobile phone
CN113079134A (en) Mobile terminal access method, mobile terminal access device, computer equipment and medium
CN110535971A (en) Interface configuration processing method, device, equipment and storage medium based on block chain
US20180130056A1 (en) Method and system for transaction security
CN111277711B (en) Virtual contact number generation method and device, storage medium and computer equipment
CN110647540A (en) Business data query method and device, computer equipment and storage medium
CN111193768A (en) Network data processing method and device, computer equipment and storage medium
CN110769482B (en) Method and device for network connection of wireless equipment and wireless router equipment
CN110597709B (en) Interactive debugging method and device for mixed-mode mobile application and computer equipment
CN110717156A (en) Identity authentication method, system, computer device and storage medium
CN110908778A (en) Task deployment method, system and storage medium
CN110913083A (en) Communication line connection method, communication line connection device, computer equipment and storage medium
CN113315808B (en) Network address matching method and device, computer equipment and storage medium
WO2021169305A1 (en) Voiceprint data processing method and apparatus, computer device, and storage medium
CN112016122A (en) Webpage data processing method and device, computer equipment and storage medium
CN108667919B (en) Data processing method, data processing device, computer equipment and storage medium
CN113114623B (en) Data connection method, device, terminal equipment and computer readable storage medium
WO2021169469A1 (en) Voiceprint data processing method and apparatus, computer device, and storage medium
CN110225511B (en) Method, device and system for acquiring IMEI number of terminal and computer equipment
CN114567557B (en) Message processing method, device, computer equipment and storage medium
CN110597843A (en) Waybill query method and device, computer equipment and storage medium
CN110071908B (en) Terminal binding method and device, computer equipment and storage medium

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Network address matching methods, devices, computer devices, and storage media

Effective date of registration: 20230912

Granted publication date: 20220930

Pledgee: Guangxi Guangtou Zhanxin Investment Fund Partnership Enterprise (L.P.)

Pledgor: IFREECOMM TECHNOLOGY Co.,Ltd.

Registration number: Y2023980056247