A SIP-based IPv4 / IPv6 protocol intercommunication method and related equipment
Through the cooperation between the ALG module and the NAT64 module, the problem of interoperability between SIP protocols between IPv4 and IPv6 is solved, and the stable interoperability of the IPv4/IPv6 protocol is achieved, ensuring network stability and security during network upgrades.
Patent Information
- Application Number
- CN202210911033.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-07-29
AI Technical Summary
During network upgrades, there are difficulties in intercommunication between SIP protocols between IPv4 and IPv6, resulting in unstable network transmission and difficulty in initiating sessions.
Through the cooperation between the ALG module and the NAT64 module, the address information and port status are replaced, and the IPv4/IPv6 protocol format conversion of SIP protocol packets is realized to ensure the stable transmission of SIP messages and media streams between different network protocols.
The SIP protocol is realized stable interoperability between IPv4/IPv6, ensuring the transmission of SIP message packets and multimedia data between single-stack IPv4 proxy service and single-stack IPv6 proxy service, improving network stability and security during network upgrade .
Smart Images

Figure CN115277874B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to an IPv4 / IPv6 protocol intercommunication method based on a SIP protocol and related equipment. Background Art
[0002] SIP Session Initiation Protocol is one of the multimedia communication system framework protocols developed by IETF and is an application layer protocol. SIP Session Initiation Protocol is a control signaling protocol used to initiate sessions. It can control the establishment and termination of multimedia sessions involving multiple participants, and can dynamically adjust and modify session attributes, such as session bandwidth requirements, transmitted media types (voice, video, data, etc.), media codec formats, and support for multicast and unicast.
[0003] The most widely used IP protocol is IPv4, but the latest version of IP protocol is IPv6, which will replace IPv4 as the core network protocol of the Internet in the future. Therefore, in the process of IPv4 to IPv6 transformation and upgrading, it is necessary to complete the upgrade and transition of IP protocol with the help of IPv4 and IPv6 protocol interoperability. The core network protocol upgrade takes a long time, so the realization of SIP protocol interoperability between IPv4 and IPv6 during the network upgrade period is an inevitable problem in network development. Summary of the invention
[0004] The present invention provides an IPv4 / IPv6 protocol intercommunication method based on the SIP protocol and related equipment to solve the problem of realizing the intercommunication between the SIP protocol and IPv4 / IPv6 during the network upgrade period.
[0005] In a first aspect, the present invention provides an IPv4 / IPv6 protocol intercommunication method based on the SIP protocol, comprising:
[0006] Acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information;
[0007] Performing a first replacement operation on the first address information through the ALG module to determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to a second protocol format;
[0008] Controlling, by the ALG module, a port state of the NAT64 module based on the first port information;
[0009] Performing a second replacement operation on the first address information after the first replacement operation by the NAT64 module to determine second address information after the second replacement operation;
[0010] The second message information is sent to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information.
[0011] Optionally, the method further includes:
[0012] Acquire the link connection information established when the SIP protocol is registered.
[0013] Optionally, performing a first replacement operation on the first address information through an ALG module to determine the first address information after the first replacement operation includes:
[0014] Determining a type of the first replacement operation based on the first address information and the link connection information;
[0015] Based on the type of the first replacement operation, first address information subjected to the first replacement operation is determined.
[0016] Optionally, the determining the type of the first replacement operation based on the first address information and the link connection information includes:
[0017] In a case where the first address information and the link connection information do not match, determining that the type of the first replacement operation is reverse replacement;
[0018] In a case where the first address information matches the link connection information, it is determined that the type of the first replacement operation is forward replacement.
[0019] Optionally, the determining, based on the type of the first replacement operation, the first address information subjected to the first replacement operation includes:
[0020] In a case where the type of the first replacement operation is reverse replacement, obtaining third message information of the SIP protocol sent by the second protocol terminal, wherein the third message information at least includes third address information;
[0021] replacing the first address information with the third address information by the ALG module;
[0022] The third address information is replaced from the first protocol format to the second protocol format by the ALG module.
[0023] Optionally, the determining, based on the type of the first replacement operation, the first address information subjected to the first replacement operation includes:
[0024] In a case where the type of the first replacement operation is forward replacement, the first address information is replaced from the first protocol format to the second protocol format through the ALG module.
[0025] Optionally, controlling the port state of the NAT64 module based on the first port information by the ALG module includes:
[0026] Obtaining the port information of the NAT64 module;
[0027] Determine a target port of the NAT64 module based on the first port information and the port information of the NAT64 module;
[0028] Based on the target port of the NAT64 module, the ALG module is controlled to open the target port of the NAT64 module.
[0029] In a second aspect, the present invention further provides an IPv4 / IPv6 protocol intercommunication device based on the SIP protocol, comprising:
[0030] An acquisition module, configured to acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information;
[0031] A first determining module, configured to perform a first replacement operation on the first address information through an ALG module, and determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to a second protocol format;
[0032] A control module, configured to control the port state of the NAT64 module based on the first port information through the ALG module;
[0033] A second determination module, configured to perform a second replacement operation on the first address information that has undergone the first replacement operation through the NAT64 module, and determine second address information that has undergone the second replacement operation;
[0034] A sending module is used to send the second message information to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information.
[0035] In a third aspect, the present invention further provides an electronic device comprising a memory and a processor, wherein the processor is used to implement the steps of an IPv4 / IPv6 protocol intercommunication method based on the SIP protocol as described in any of the first aspects above when executing a computer program stored in the memory.
[0036] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the SIP-based IPv4 / IPv6 protocol intercommunication method as described in any one of the first aspects are implemented.
[0037] It can be seen from the above technical solution that an embodiment of the present application provides an IPv4 / IPv6 protocol intercommunication method based on the SIP protocol, including: obtaining first message information of the SIP protocol sent by a first protocol terminal, wherein the first message information includes first address information, first port information and first data information; performing a first replacement operation on the first address information through an ALG module to determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to the second protocol format; controlling the port state of the NAT64 module based on the first port information through the ALG module; performing a second replacement operation on the first address information after the first replacement operation through the NAT64 module to determine the second address information after the second replacement operation; sending the second message information to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information. The embodiment of the present application establishes a cooperation mechanism between the ALG module and the NAT64 module, establishes the ALG module on the upper layer of the NAT64 module, controls the NAT64 module through the ALG module based on the message information in the SIP protocol, and analyzes and processes the application layer and network layer address information in the SIP protocol. In this way, there is no need to process the data information of the sender, so that stable transmission of SIP messages and media streams between different network protocols can be achieved, ensuring that sessions can be smoothly initiated, and IPv4 / IPv6 protocol intercommunication based on the SIP protocol is achieved, and the transmission of SIP message packets and multimedia data between a single-stack IPv4 proxy service and a single-stack IPv6 proxy service is completed.
[0038] The SIP-based IPv4 / IPv6 protocol intercommunication method proposed in the embodiment of the present application, and other advantages, objectives and features of the embodiment of the present application will be partially reflected in the following description, and will also be understood by technicians in this field through research and practice of the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] Figure 1 A schematic flow chart of an IPv4 / IPv6 protocol intercommunication method based on the SIP protocol provided in an embodiment of the present application;
[0041] Figure 2 A schematic structural diagram of an IPv4 / IPv6 protocol intercommunication device based on the SIP protocol provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of an electronic device provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The embodiments will be described in detail below, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following embodiments do not represent all implementation methods consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims. In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways, and the device embodiments described below are merely exemplary.
[0045] The present application provides a method for intercommunication between IPv4 and IPv6 protocols based on the SIP protocol. Figure 1 As shown, including:
[0046] Step S110: Acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information.
[0047] Exemplarily, the first protocol may be an IPv4 protocol or an IPv6 protocol, the first address information may be the application layer IP address information and the network layer IP address information in the SIP protocol data packet, a mapping may be established based on a SIP message and the address information in the first SIP protocol message information, wherein the mapping may be a SIP identification information matching mapping determined based on the syntax of the SIP message, the mapping may be a mapping established based on the IPv4 protocol or a mapping established based on the IPv6 protocol, the first address information may be determined through the first protocol mapping and the first SIP protocol message information, and the first data information may be the SIP protocol message and / or media stream data information.
[0048] Step S120: Perform a first replacement operation on the first address information through the ALG module to determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to the second protocol format.
[0049] Exemplarily, the ALG module is an application layer gateway module, which may be a SIP-ALG module designed based on the SIP protocol. The second protocol may be an IPv4 protocol or an IPv6 protocol, but the first protocol and the second protocol are different protocols. The payload content in the received data packet may be analyzed and replaced. The first replacement operation may be a replacement operation performed on the application layer IP address information in the first address information through the ALG module, wherein the operation object of the first replacement operation may be at least one of a Request message and a Response message in the first message information of the SIP protocol, wherein the Request message may include Invite, ACK, BYE and Register messages, and the Response message may include 100 (Tring), 180 (Ringing) and 200 (OK) messages. The replacement operation may be performed on the private IP address contained in at least one of the Via, From, To, Call-ID and Contact header fields of the operation object.
[0050] Exemplarily, when the Response message in the first message information of the SIP protocol is replaced, the call context can be matched through Call-ID, and the Record-Route header field can be added to inform the first protocol terminal that all subsequent SIP messages in this call must flow through the ALG module. After the message is modified, the length of the message can be recalculated and the length can be saved in Content-Length.
[0051] Step S130: Control the port status of the NAT64 module based on the first port information through the ALG module.
[0052] Exemplarily, the NAT64 module is a stateful network address and protocol conversion module, which can realize the network connection between IPv4 and IPv6, and can replace the port information in the first address information through the ALG module, and can replace the port information contained in at least one of the Via, From, To, Call-ID and Contact header fields in at least one of the Request message and the Response message in the first message information of the SIP protocol, wherein the Request message can include Invite, ACK, BYE and Register messages, and the Response message can include 100 (Tring), 180 (Ringing) and 200 (OK) messages; the first port information can be the first port information after the replacement operation, or the original first port information without the replacement operation, and the ALG module can be used to control the corresponding port of the NAT64 module to be opened based on the port information, and the ALG module can also be used to analyze the "Media Address" in the SDP message body in the Invite and 200 (OK) messages. Description" line and "ConnectionInformation" line, based on the analysis results of the above two lines, the corresponding ports of the above NAT64 module can be controlled to be opened.
[0053] Step S140: Perform a second replacement operation on the first address information that has undergone the first replacement operation through the NAT64 module to determine the second address information that has undergone the second replacement operation.
[0054] Exemplarily, the network layer IP address information in the first address information after the first replacement operation can be obtained through the NAT64 module, and the network layer IP address information in the first address information after the first replacement operation can be replaced from the first protocol format to the second protocol format through the NAT64 module.
[0055] Step S150: Send the second message information to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information.
[0056] According to some embodiments, the method further comprises:
[0057] Get the link connection information established when the above SIP protocol is registered.
[0058] Exemplarily, the link connection information may include at least an application layer IP address in a protocol format of the sending end of the SIP protocol.
[0059] Through the link connection information established when the above-mentioned SIP protocol is registered, the application layer IP address of the sending end protocol format of the above-mentioned SIP protocol can be obtained. Based on the application layer IP address of the sending end protocol format of the above-mentioned SIP protocol, the initial information when the SIP protocol is registered can be determined, which is convenient for timely inspection and correction of the information in the session link and data packet.
[0060] According to some embodiments, performing a first replacement operation on the first address information through the ALG module to determine the first address information after the first replacement operation includes:
[0061] Determining a type of the first replacement operation based on the first address information and the link connection information;
[0062] Based on the type of the first replacement operation, the first address information subjected to the first replacement operation is determined.
[0063] Exemplarily, the type of the first replacement operation may be determined based on the application layer IP address information in the first address information and the application layer IP address information in the outgoing end protocol format contained in the link connection information.
[0064] By determining the type of the first replacement operation through the first address information and the link connection information, and selecting different information determination strategies based on different operation types, the information in the network can be more fully utilized, the determination result can be more accurate, and the efficiency and quality of IPv4 / IPv6 protocol intercommunication can be improved.
[0065] According to some embodiments, determining the type of the first replacement operation based on the first address information and the link connection information includes:
[0066] In a case where the first address information and the link connection information do not match, determining that the type of the first replacement operation is reverse replacement;
[0067] In a case where the first address information matches the link connection information, it is determined that the type of the first replacement operation is forward replacement.
[0068] Exemplarily, the matching may be performed based on the application layer IP address information in the first address information and the application layer IP address information in the outgoing end protocol format included in the link connection information.
[0069] By matching the first address information and the link connection information to determine the type of the first replacement operation, the address information that needs to be replaced can be corrected before performing the first replacement operation, and the replacement type of the first replacement operation can be determined more accurately, thereby improving the accuracy of the first address information of the first replacement operation, thereby improving the efficiency and quality of IPv4 / IPv6 protocol intercommunication.
[0070] According to some embodiments, the determining, based on the type of the first replacement operation, the first address information subjected to the first replacement operation includes:
[0071] In the case where the type of the first replacement operation is reverse replacement, obtaining third message information of the SIP protocol sent by the second protocol terminal, wherein the third message information at least includes third address information;
[0072] Replacing the first address information with the third address information through the ALG module;
[0073] The third address information is replaced from the first protocol format to the second protocol format through the ALG module.
[0074] Exemplarily, the third address information may include at least application layer IP address information, and the third address information may be determined through the second protocol mapping and the third message information of the SIP protocol, or through the application layer IP address information in the third address information.
[0075] In the case that the first address information and the link connection information do not match, it can be considered that the address information of at least one of the first address information and the link connection information is incorrect, and therefore the actual first address information of the first protocol terminal cannot be determined. By replacing the application layer IP address information in the first address information with the application layer IP address information in the third address information, the first address information is corrected, which can ensure that the SIP protocol can successfully traverse the NAT device and achieve interconnection and interoperability across IPv4 / IPv6 protocols, ensure smooth connection of the link, and thereby improve the stability and security of the SIP protocol in interoperability between IPv4 / IPv6 protocols.
[0076] According to some embodiments, the determining, based on the type of the first replacement operation, the first address information subjected to the first replacement operation includes:
[0077] In the case where the type of the first replacement operation is a forward replacement, the first address information is replaced from the first protocol format to the second protocol format through the ALG module.
[0078] In the case where the first address information and the link connection information match, the first address information can be considered correct and only requires format replacement. By performing format replacement through the ALG module, it can be ensured that the SIP protocol can successfully traverse the NAT device and achieve interconnection and interoperability across IPv4 / IPv6 protocols, thereby ensuring smooth connection of the link and improving the stability and security of the SIP protocol in interoperability between IPv4 / IPv6 protocols.
[0079] According to some embodiments, controlling the port state of the NAT64 module based on the first port information through the ALG module includes:
[0080] Get the port information of the above NAT64 module;
[0081] Determine the target port of the NAT64 module based on the first port information and the port information of the NAT64 module;
[0082] Based on the target port of the NAT64 module, the ALG module is controlled to open the target port of the NAT64 module.
[0083] Exemplarily, the first port information and the port information of the NAT64 module may be matched. When the information matches, the corresponding matching port is determined to be the target port of the NAT64 module. The ALG module may be controlled to close other ports of the NAT64 module while controlling the ALG module to open the target port of the NAT64 module.
[0084] By identifying the first message information of the SIP protocol sent by the first protocol terminal at the upper layer of the NAT64 module through the ALG module, and performing port matching based on the identification result, the message information can smoothly pass through the NAT64 module, thereby improving the efficiency and quality of the SIP protocol intercommunication between the IPv4 / IPv6 protocols.
[0085] See also Figure 2 , Figure 2 It is a schematic structural diagram of an IPv4 / IPv6 protocol intercommunication device based on the SIP protocol provided in an embodiment of the present application.
[0086] The embodiment of the present application provides an IPv4 / IPv6 protocol intercommunication device 200 based on the SIP protocol, the device comprising:
[0087] The acquisition module 201 is used to acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information;
[0088] A first determination module 202 is configured to perform a first replacement operation on the first address information through an ALG module to determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to a second protocol format;
[0089] A control module 203, configured to control the port state of the NAT64 module based on the first port information through the ALG module;
[0090] A second determination module 204 is used to perform a second replacement operation on the first address information after the first replacement operation through the NAT64 module to determine the second address information after the second replacement operation;
[0091] The sending module 205 is used to send the second message information to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information.
[0092] An IPv4 / IPv6 protocol intercommunication device 200 based on SIP protocol can realize Figure 1 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0093] like Figure 3 As shown, Figure 3 A schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0094] The embodiment of the present application provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented:
[0095] Acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information;
[0096] Performing a first replacement operation on the first address information through the ALG module to determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to the second protocol format;
[0097] Controlling the port status of the NAT64 module based on the first port information through the ALG module;
[0098] Performing a second replacement operation on the first address information after the first replacement operation through the NAT64 module to determine the second address information after the second replacement operation;
[0099] The second message information is sent to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information.
[0100] In the specific implementation process, when the processor 320 executes the computer program 311, it can achieve Figure 1 Any implementation manner in the corresponding embodiments.
[0101] Since the electronic device introduced in this embodiment is a device used to implement a device in the embodiment of the present application, based on the method introduced in the embodiment of the present application, technical personnel in this field can understand the specific implementation method of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present application is not introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present application is within the scope of protection of this application.
[0102] like Figure 4 As shown, Figure 4 A schematic structural diagram of a computer-readable storage medium provided in an embodiment of the present application.
[0103] This embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored. When the computer program 411 is executed by a processor, the following steps are implemented:
[0104] Acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information;
[0105] Performing a first replacement operation on the first address information through the ALG module to determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to the second protocol format;
[0106] Controlling the port status of the NAT64 module based on the first port information through the ALG module;
[0107] Performing a second replacement operation on the first address information after the first replacement operation through the NAT64 module to determine the second address information after the second replacement operation;
[0108] The second message information is sent to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information.
[0109] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0112] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0114] The present application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device is caused to execute the following Figure 1 The process in the control method of the hybrid vehicle in the corresponding embodiment.
[0115] The above-mentioned computer program product includes one or more computer instructions. When the above-mentioned computer program instructions are loaded and executed on a computer, the above-mentioned process or function according to the embodiment of the present application is generated in whole or in part. The above-mentioned computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The above-mentioned computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The above-mentioned available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (solid state disk, SSD)), etc.
[0116] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0117] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0118] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0120] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0121] In summary, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for intercommunication between IPv4 and IPv6 protocols based on SIP protocol, characterized in that: include: Acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information; Performing a first replacement operation on the first address information through the ALG module to determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to a second protocol format; Controlling, by the ALG module, a port state of the NAT64 module based on the first port information; Performing a second replacement operation on the first address information after the first replacement operation by the NAT64 module to determine second address information after the second replacement operation; Sending second message information to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information, the first port information and the first data information after the second replacement operation; Also includes: Obtaining the link connection information established when the SIP protocol is registered; The performing a first replacement operation on the first address information through the ALG module to determine the first address information after the first replacement operation includes: Determining a type of the first replacement operation based on the first address information and the link connection information; Determining, based on the type of the first replacement operation, the first address information subjected to the first replacement operation; The determining, based on the first address information and the link connection information, the type of the first replacement operation includes: In a case where the first address information and the link connection information do not match, determining that the type of the first replacement operation is reverse replacement; In a case where the first address information and the link connection information match, determining that the type of the first replacement operation is forward replacement; The determining, based on the type of the first replacement operation, the first address information after the first replacement operation includes: In a case where the type of the first replacement operation is reverse replacement, obtaining third message information of the SIP protocol sent by the second protocol terminal, wherein the third message information at least includes third address information; replacing the first address information with the third address information by the ALG module; Replacing the third address information from the first protocol format to the second protocol format by the ALG module; The determining, based on the type of the first replacement operation, the first address information after the first replacement operation includes: In a case where the type of the first replacement operation is a forward replacement, replacing the first address information from the first protocol format to the second protocol format by the ALG module; The ALG module is an application layer gateway module.
2. The method according to claim 1, characterized in that The controlling the port state of the NAT64 module based on the first port information by the ALG module includes: Obtaining the port information of the NAT64 module; Determine a target port of the NAT64 module based on the first port information and the port information of the NAT64 module; Based on the target port of the NAT64 module, the ALG module is controlled to open the target port of the NAT64 module.
3. A SIP-based IPv4 / IPv6 protocol intercommunication device, the device being used to implement the steps of a SIP-based IPv4 / IPv6 protocol intercommunication method as claimed in any one of claims 1 to 2, characterized in that: include: An acquisition module, configured to acquire first message information of the SIP protocol sent by the first protocol terminal, wherein the first message information includes first address information, first port information and first data information; A first determining module, configured to perform a first replacement operation on the first address information through an ALG module, and determine the first address information after the first replacement operation, wherein the first replacement operation is to replace the first address information from the first protocol format to a second protocol format; A control module, configured to control the port state of the NAT64 module based on the first port information through the ALG module; A second determination module, configured to perform a second replacement operation on the first address information after the first replacement operation through the NAT64 module, and determine the second address information after the second replacement operation; A sending module is used to send the second message information to the second protocol terminal through the NAT64 module, wherein the second message information includes the second address information after the second replacement operation, the first port information and the first data information.
4. An electronic device, comprising a memory and a processor, characterized in that: The processor is used to implement the steps of the SIP-based IPv4 / IPv6 protocol intercommunication method according to any one of claims 1 to 2 when executing the computer program stored in the memory.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the SIP-based IPv4 / IPv6 protocol intercommunication method as claimed in any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Implementing method of SIP application-level gateways based on NAT-PT
CN101257435A
SIP call-based traversal network address translation method and system
CN101902506A