[go: up one dir, main page]

WO2018133051A1 - Address conflict detection method and device - Google Patents

Address conflict detection method and device Download PDF

Info

Publication number
WO2018133051A1
WO2018133051A1 PCT/CN2017/071991 CN2017071991W WO2018133051A1 WO 2018133051 A1 WO2018133051 A1 WO 2018133051A1 CN 2017071991 W CN2017071991 W CN 2017071991W WO 2018133051 A1 WO2018133051 A1 WO 2018133051A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
conflict
access gateway
registration message
voice access
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.)
Ceased
Application number
PCT/CN2017/071991
Other languages
French (fr)
Chinese (zh)
Inventor
周懿
欧阳文斌
左利均
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2017/071991 priority Critical patent/WO2018133051A1/en
Publication of WO2018133051A1 publication Critical patent/WO2018133051A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and an apparatus for checking an address conflict.
  • VoIP Voice over Internet Protocol
  • a call control device and a call access device such as a terminal are usually included.
  • a call control device may access a large number of call access devices, such as an optical network terminal (ONT).
  • ONT optical network terminal
  • the call access device may not receive the signaling message sent by the call control device, and the call access device cannot successfully access the call control device or the call access device. After successfully accessing the call control device, the call access device cannot establish a call or release a call. If there is a conflict in the media IP address, the call access device may not receive the media stream information of the call answering device normally, resulting in no sound after the call is established, or the voice quality is poor during the call.
  • ARP address resolution protocol
  • the local address conflict check indicates that, for the two directly connected devices A and B, device A broadcasts its own IP address through the free ARP packet. If device B receives the ARP packet, it finds this. If the IP address of the ARP packet is the same as the IP address of the ARP packet, the device considers that the IP address conflicts.
  • the remote address conflict check indicates that the device A and the device B are sent to the gateway. After receiving the two ARP packets, the ARP packet considers that the IP address of device A is the same as the IP address of device B.
  • the above implementation can successfully check whether there is an IP address conflict between the two devices.
  • the ARP protocol used in the ARP packet belongs to the Layer 2 protocol and runs on the Layer 2 network. Therefore, the above check for IP address conflicts.
  • only the address conflicts in the same network segment can be checked, that is, only the IP address conflicts between different devices accessing the same gateway at the lowest level can be checked. In this way, the limitation of the IP address conflict checking process is increased, and the accuracy of the conflict checking process is reduced.
  • the embodiment of the invention provides a method and a device for checking an address conflict, which can reduce the limitation of the IP address conflict checking process and improve the accuracy of the conflict checking process.
  • an embodiment of the present invention provides a method for checking an address conflict, including the following steps: First, receiving a registration message, where the registration message carries at least an IP address and identification information of a voice access gateway, where the IP address is at least Including the signaling IP address and the media IP address; then, determining whether there is an IP address that conflicts with the IP address; if it is determined that there is an IP address that conflicts with the IP address, sending an address conflict alarm message to the OSS, the address conflict alarm The message carries at least the cause of the conflict, and the cause of the conflict includes at least the same signaling IP address and/or the same media IP address.
  • the address conflict check process is performed on the upper device of the voice access gateway. Therefore, the address conflict check can check whether there is an address conflict between the lowest-level directly connected devices, and check the devices in different network segments. Is there an address conflict between them? In this way, the inspection scope is expanded from the same network segment to multiple network segments, thereby reducing the limitation of the IP address conflict checking process. As the limitations of checking address conflicts are reduced, the number of devices that can implement IP address conflict checking is also greatly increased, so that the accuracy of the conflict checking process can be further improved. Therefore, the problem caused by IP address conflict checking using ARP packets is solved.
  • the above method can be applied to a call control device or to an address translation NAT device.
  • the application device gateway ALG is configured on the NAT device
  • the NAT device is configured to convert the internal network IP address in the registration message sent by the voice access gateway to the NAT device to the external network IP address, for the ALG.
  • the intranet IP address is obtained by parsing the registration message sent by the voice access gateway to the NAT device.
  • the execution subject of the check address conflict can be the call control device located on the core network side, or the NAT device acts as the execution subject of the check address conflict when the NAT device exists in the VoIP network system.
  • the method further includes: if it is determined that there is no IP address conflicting with the IP address, saving IP address of the voice access gateway. In this way, when the NAT device performs the IP address conflict check again, the current IP address conflict check can be performed based on the saved IP address of the voice access gateway that has not previously collided.
  • the method further includes: if it is determined that there is no IP address conflicting with the IP address, The IP address carried in the registration message and the identification information of the voice access gateway are recorded in the address list.
  • the address list is used to store the IP address of the voice access gateway that has completed registration. In this way, when the call control device performs the IP address collision check again, the current IP address conflict check can be performed based on the IP address of the voice access gateway that has not been collided before being recorded in the address list.
  • the call control device can not only complete the first IP address conflict check process in the networking environment, but if the previous address translation device has completed the IP address rush In the case of a sudden check, it is equivalent to the call control device performing a collision check of the secondary IP address. It should be noted that if the call control device is currently performing a collision check of the secondary IP address, the result of the IP address conflict check performed by the address translation device for the first time is that there is no conflicting IP address. In other words, if the address translation device detects that there is a conflict in the IP address, in order to save the resources occupied during the IP address check, the response message of the registration failure may be directly fed back to the voice access gateway, thereby ending the IP address check. process.
  • the registration message if the registration message is forwarded via the NAT device, the registration message carries the identification information of the NAT device. This can facilitate the call control device to effectively distinguish between registration messages forwarded by different NAT devices.
  • the method further includes: if it is determined that there is an IP address that conflicts with the IP address, sending a response message to the voice access gateway.
  • the response message corresponds to the registration message, and the response message carries at least the conflict reason. It can be seen that once the conflicting IP address is detected, the NAT device or the call control device, which is the execution body of the checking process, can feed back a response message to the voice access gateway, and notify the voice access gateway of the failure result and the cause of the conflict. .
  • the embodiment of the present invention provides an apparatus for inspecting an address conflict, which may implement a function performed by a NAT device or a call control device in the foregoing method embodiment, and the function may be implemented by hardware or by hardware.
  • Software implementation, the hardware or software includes one or more corresponding modules of the above functions.
  • the apparatus includes a processor and a transceiver configured to support the apparatus to perform the corresponding functions of the above methods.
  • the transceiver is used to support communication between the device and other network elements.
  • the apparatus can also include a memory for coupling with the processor that retains the program instructions and data necessary for the apparatus.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions for use in the above apparatus, including a program designed to perform the above aspects.
  • the ARP packet is used to check the IP address conflict between different devices accessing the same gateway.
  • the solution is to receive the IP address and the identifier information of the voice access gateway. After the registration message, it is determined whether there is an IP address that conflicts with the IP address according to the IP address, and if there is a conflicting IP address, an address conflict warning message carrying the conflict cause is sent to the operation support system.
  • the address conflict check process is performed on the upper device of the voice access gateway. Therefore, the address conflict check can check whether there is an address conflict between the lowest-level directly connected devices, and check the devices in different network segments. Is there an address conflict between them?
  • the inspection scope is expanded from the same network segment to multiple network segments, thereby reducing the limitation of the IP address conflict checking process.
  • the limitations of checking address conflicts are reduced, the number of devices that can implement IP address conflict checking is also greatly increased, so that the accuracy of the conflict checking process can be further improved. Therefore, the problem caused by IP address conflict checking using ARP packets is solved.
  • FIG. 1 is a schematic structural diagram of a VoIP network system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for checking an address conflict according to an embodiment of the present invention
  • FIG. 3 is a signaling interaction diagram of an address conflict checking method according to an embodiment of the present disclosure
  • FIG. 4 is a signaling interaction diagram of another method for checking an address conflict according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of an apparatus for checking an address conflict according to an embodiment of the present disclosure
  • FIG. 6 and FIG. 7 are schematic diagrams showing the structure of another apparatus for checking an address conflict according to an embodiment of the present invention.
  • the embodiment of the present invention can be used in a VoIP network system.
  • the VoIP network system at least a call control device and a call access device attempting to access the call control device are included.
  • the execution subject of the address conflict check may be a call control device located on the core network side, or may be used by the address translation device when there is a Network Address Translation (NAT) device in the VoIP network system.
  • NAT Network Address Translation
  • the execution body of the address conflict may be disposed on the address translation device.
  • the address translation device is configured to convert the intranet IP address in the registration message sent by the voice access gateway to the address translation device to an external network IP address;
  • the application layer gateway is configured to parse the registration sent by the voice access gateway to the address translation device. Message, get the internal network IP address.
  • FIG. 1 is a schematic structural diagram of a possible VoIP network system.
  • any one of the voice access gateways (VoIP-Access Gateways, VoIP-AGs) 1 to 3 is not shown.
  • the voice access gateway can communicate with the call control device by using the address translation device.
  • both the voice access gateway 1 and the voice access gateway 2 as shown in FIG. 1 establish a communication connection with the address translation device 1, and then
  • the address conversion device 1 performs data interaction with the call control device; the voice access gateway can also directly communicate with the call control device, for example, the voice access gateway 3 as shown in FIG.
  • there may be one or more address translation devices for address translation such as address translation device 1 and address translation device 2 as shown in FIG.
  • gateways respectively provided on the address switching device 1 and the address translation device 2 are not shown in FIG.
  • the gateway shown in FIG. 1 may specifically be the Office of Strategic Services (OSS) or other devices or devices that can be used to manage the entire VoIP network system.
  • OSS Office of Strategic Services
  • An embodiment of the present invention provides a method for checking an address conflict. As shown in FIG. 2, the method may be performed by the call control device or the address translation device shown in FIG. 1. Of course, in other special application scenarios, Executed by other devices, the execution subject is not restricted here.
  • the method includes:
  • Step 101 Receive a registration message.
  • the registration message carries at least the IP address and the identifier information of the voice access gateway, and the IP address includes at least the signaling IP address and the media IP address.
  • the registration message may be an existing message such as OPTION, REGISTER, SUBSCRIBE, INVITE, INFO, UPDATE, MESSAGE, or an extension of a new request message as a registration message to complete
  • SIP Session Initiation Protocol
  • the registration message may be an existing message such as OPTION, REGISTER, SUBSCRIBE, INVITE, INFO, UPDATE, MESSAGE, or an extension of a new request message as a registration message to complete
  • the IP address and identification information are reported.
  • the existing header field may be extended to carry the foregoing IP address and identification information, for example, an existing header field such as Contact, Route, Via, or the like, or a new header field.
  • the IP address can be specifically recorded as:
  • IP-Info 4242-2121-E1E1
  • the call control device is located in the IP Multimedia Subsystem (IMS) and there is a Session Border Controller (SBC) in the network, then The method for performing the conflict of the IP address is performed by the call control device or the address translation device.
  • IMS IP Multimedia Subsystem
  • SBC Session Border Controller
  • the registration message may be Service Change, and the device performing the IP address check may be a Media Gateway Controller (MGC); under the Media Gateway Control Protocol (MGCP), the foregoing
  • MGC Media Gateway Controller
  • the registration message may be a RestartIn Progress, that is, an MGCP command in the process is restarted, and the device performing the IP address check may also be an MGC
  • the registration message may be a Registration Request (RRQ) or an Admissions Request (ARQ). Etc., and the device performing the IP address check can be an H323 gateway.
  • the device for performing IP address check may be a specific device in the application scenario, and is not limited to a call control device or an address translation device. In the above, only some possible application scenarios are listed. In addition, other networking structures and devices for performing IP address check in the network structure may be used, and the application scenario of the embodiment of the present invention is not Do too much limit.
  • the IP addresses of different voice access gateways may be identical. Therefore, the reported registration message also needs to carry the identification information of the voice access gateway, so as to effectively distinguish different voice access gateways.
  • the identifier information may be information that is unique within the entire network, such as a Media Access Control (MAC) address of the device.
  • MAC Media Access Control
  • the identifier information carried in the registration message needs to be the same, that is, in the scenario where the address translation device exists in the network, no matter which address translation device passes.
  • the MAC address completes the forwarding of the registration message, and the application layer gateway needs to ensure that the same MAC address is used for identification.
  • Step 102 Determine whether there is an IP address that conflicts with the IP address.
  • step 103 If it is determined that there is an IP address that conflicts with the IP address, step 103 is performed; otherwise, step 104 is performed.
  • a device for checking an IP address conflict may be a call control
  • the device or the address translation device therefore, different conflict determination processes can be taken for different execution entities.
  • the voice access gateway that has data interaction with the address translation device can send a registration message to the address translation device, and carries its own IP address and identification information in the registration message.
  • the address translation device may perform the resolution of the registration message through the application layer gateway, and obtain the signaling IP address and the media IP address of the voice access gateway carried in the registration message; after that, the address translation device will The obtained plurality of sets of data are compared, wherein each set of data includes a signaling IP address and a media IP address of a voice access gateway, so that at least two voice access gateways with IP address conflicts can be found, thereby completing IP Address conflict check.
  • a voice access gateway having direct data interaction with the call control device, and an address translation device having data interaction with the call control device may send a registration message to the address translation device,
  • the IP address carried in the registration message sent by the address translation device to the call control device is the IP address converted by the address conversion device, and the subsequent check process is completed by the call control device.
  • the specific implementation process may refer to the following description, and in the two specific application scenarios shown in FIG. 3 and FIG. 4, the call control device and the address translation device are used as the execution subject of the IP address conflict check process, and the conflict check is completed. The specific implementation process.
  • Step 103 Send an address conflict alarm message to the operation support system.
  • the address conflict alarm message carries at least the conflict reason, and the conflict cause includes at least the same signaling IP address and/or the same media IP address.
  • the signaling IP address may be the same.
  • the foregoing operation support system may be a network management system as shown in FIG. 1 , and the main function is to record related information of the IP address conflict, and facilitate subsequent management and address adjustment of each device in the networking structure.
  • Step 104 According to the current execution entity, determine to save the IP address of the voice access gateway, or record the IP address carried in the registration message and the identifier information of the voice access gateway in the address list.
  • the address list is used to store the IP address of the voice access gateway that has completed registration.
  • the embodiment of the present invention can determine whether there is an IP address that conflicts with the IP address according to the IP address, and if there is a conflicting IP address, The address conflict alarm message carrying the conflicting reason is sent to the operation support system.
  • the address conflict check process is performed on the upper device of the voice access gateway. Therefore, the address conflict check can check whether there is an address conflict between the lowest-level directly connected devices, and check the devices in different network segments. Is there an address conflict between them? In this way, the inspection scope is expanded from the same network segment to multiple network segments, thereby reducing the limitation of the IP address conflict checking process. IP address conflict checking can be implemented as the limitations of checking address conflicts are reduced. The equipment has also increased significantly, which will further improve the accuracy of the conflict checking process. Therefore, the problem caused by IP address conflict checking using ARP packets is solved.
  • the address translation device is used as an execution body to check the interaction process of IP address conflicts.
  • the specific interaction process is as follows:
  • Step 201 The voice access gateway sends a registration message to the address translation device.
  • Step 202 The address translation device determines whether there is an IP address that conflicts with an IP address sent by the voice access gateway. Wherein, if it is determined to exist, step 203 and step 204 are performed, otherwise steps 205 and 206 are performed.
  • Step 203 The address translation device sends an address conflict alarm message to the operation support system.
  • Step 204 The address translation device sends a response message that the registration fails to the voice access gateway.
  • Step 205 The address translation device saves the IP address of the voice access gateway.
  • Step 206 The address translation device sends a response message of successful registration to the voice access gateway.
  • the address translation device is used as an execution entity to complete the conflict check of the IP address.
  • Step 204 and step 206 are optional steps, and the purpose is to feedback back to the voice access gateway whether there is an IP address conflict check result.
  • the application layer gateway itself is set as an optional device on the address translation device, and the purpose thereof is mainly for enhancing the routing function of the VoIP network. If the IP address of the address translation device is only one, then The application layer gateway is not one of the mandatory network elements, which means that the application layer gateway may not be set on the address translation device.
  • the call control device can perform the IP address twice after the registration message is sent to the call control device.
  • the process of conflict check refer to the method flow shown in Figure 4 for details.
  • the call control device is used as an execution body to check the interaction process of IP address conflicts.
  • the specific interaction process is as follows:
  • Step 301 The voice access gateway sends a registration message to the address translation device.
  • Step 302 The address translation device sends a registration message to the call control device.
  • Step 303 The call control device determines whether there is an IP address that conflicts with the IP address sent by the address translation device. If it is determined to exist, step 304 to step 306 are performed, otherwise steps 307 to 309 are performed.
  • Step 304 The call control device sends an address conflict alarm message to the operation support system.
  • Step 305 The call control device sends a response message that the registration fails to the address translation device.
  • Step 306 The address translation device sends a response message that the registration fails to the voice access gateway.
  • the registration message sent by the voice access gateway needs to be forwarded to the call control device by using the address translation device. Therefore, the registration message received by the call control device should also carry the identifier information of the address translation device.
  • the identifier information may be a MAC address of the address translation device or another unique identifier that can be used to distinguish different address translation devices.
  • Step 307 The call control device records the IP address carried in the registration message and the identifier information of the voice access gateway in the address list.
  • Step 308 The call control device sends a response message of successful registration to the address translation device.
  • Step 309 The address translation device sends a response message that the registration is successful to the voice access gateway.
  • the call control device is used as an execution subject to complete the conflict check of the IP address.
  • Step 305 and step 306, and step 308 and step 309 are optional steps, and the purpose is to feedback to the address translation device and the voice access gateway whether there is an IP address conflict check result.
  • the call control device can not only complete the first IP address conflict check process in the networking environment, but if the previous address translation device has completed the IP address conflict check, the call control device is equivalent to the secondary IP address. Conflict check. It should be noted that if the call control device is currently performing a collision check of the secondary IP address, the result of the IP address conflict check performed by the address translation device for the first time is that there is no conflicting IP address.
  • the address translation device detects that there is a conflict in the IP address, in order to save the resources occupied during the IP address check, the response message of the registration failure may be directly fed back to the voice access gateway, thereby ending the IP address check. process.
  • the address conflict checking device includes a hardware structure and/or a software module corresponding to each function in order to implement the above functions.
  • a hardware structure and/or a software module corresponding to each function in order to implement the above functions.
  • the embodiments of the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
  • the embodiment of the present invention may perform the division of the function module on the address conflict checking apparatus according to the above method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 5 is a schematic diagram of a possible configuration of an apparatus for checking an address conflict involved in the foregoing embodiment.
  • the address conflict checking apparatus 40 includes: a receiving unit 41, The determining unit 42, the transmitting unit 43, and the storage unit 44.
  • the receiving unit 41 is configured to support the address conflict checking apparatus 40 to perform step 101 in FIG. 2, the step of receiving the registration message after step 201 in FIG. 3, the step of receiving the registration message after step 302 in FIG. 4;
  • the checking device 40 for supporting address conflicts performs step 102 in FIG. 2, step 202 in FIG. 3, step 303 in FIG. 4;
  • the transmitting unit 43 is configured to support the address conflict checking apparatus 40 to perform the steps in FIG. 103, step 204 or step 206 in FIG. 3, step 305 or step 308 in FIG.
  • the storage unit 44 is configured to support the address conflict checking apparatus 40 to perform step 104 in FIG. 2, step 205 in FIG. Step 307 in 4. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • FIG. 6 shows a possible structural diagram of an apparatus for checking an address conflict involved in the above embodiment.
  • the address conflict checking device 50 includes: communication Module 51, processing module 52, and storage module 53.
  • the communication module 51 is configured to support communication between the check device 50 of the address conflict and other network entities, or to collect corresponding commands triggered by the user, etc.
  • the processing module 52 is configured to control and manage the actions of the address conflict checking device 50.
  • the processing module 52 is configured to support address conflict checking apparatus 50 to perform step 102 in FIG. 2, step 202 in FIG. 3, step 303 in FIG. 4, and/or other processes for the techniques described herein.
  • the storage module 53 is configured to store program codes and data of the base station.
  • the communication module 51 can be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the processing module 52 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit. , ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out various exemplary logical blocks, modules and circuits described in connection with the disclosure of the embodiments of the invention.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the storage module 53 can be a memory.
  • the address conflict checking apparatus 60 may be as shown in FIG. 7. Show.
  • the address conflict checking apparatus 60 includes a processor 61, a transceiver 62, a memory 63, and a bus 64.
  • the processor 61, the transceiver 62, and the memory 63 are connected to each other through a bus 64.
  • the bus 64 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. Wait.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • Wait The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
  • the steps of the method or algorithm described in connection with the disclosure of the embodiments of the present invention may be implemented in a hardware manner, or may be implemented by a processor executing software instructions.
  • the software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium may also be an integral part of the processor, or the processor and the storage medium may also exist as discrete components in the core network interface device.
  • the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable medium including computer storage Storage medium and communication medium, wherein the communication medium includes any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments of the present invention relate to the technical field of communications. Disclosed are an address conflict detection method and device, for use in reducing the limitations during the IP address conflict detection process and improving the precision of the conflict detection process. The method at least comprises: receiving a registration message, the registration message at least carrying an IP address and identification information of a voice access gateway, and the IP address at least comprising a signaling IP address and a media IP address; determining whether there is an IP address conflicting with the IP address; and if it is determined that there is an IP address conflicting with the IP address, sending an address conflict alert message to an OSS, the address conflict alert message at least carrying the conflict cause. The conflict cause at least comprises that the signaling IP addresses are the same and/or the media IP addresses are the same. The embodiments of the present invention are applicable to the conflict detection process of an IP address.

Description

一种地址冲突的检查方法及装置Method and device for checking address conflict 技术领域Technical field

本发明实施例涉及通信技术领域,尤其涉及一种地址冲突的检查方法及装置。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and an apparatus for checking an address conflict.

背景技术Background technique

随着网络协议(Internet Protocol,IP)的不断发展,网络电话(Voice over Internet Protocol,VoIP)技术的使用也变得越来越普遍。在VoIP网络中,通常包括呼叫控制设备和诸如终端的呼叫接入设备。随着VoIP技术的普及,在VoIP网络中,一个呼叫控制设备下可能会接入海量的呼叫接入设备,如光网络终端(Optical network terminal,ONT)。在这种场景下,往往会存在至少两个呼叫接入设备之间被配置的信令IP地址、媒体IP地址存在冲突。With the continuous development of Internet Protocol (IP), the use of Voice over Internet Protocol (VoIP) technology has become more and more common. In a VoIP network, a call control device and a call access device such as a terminal are usually included. With the popularity of VoIP technology, in a VoIP network, a call control device may access a large number of call access devices, such as an optical network terminal (ONT). In this scenario, there is a conflict between the configured signaling IP address and media IP address between at least two call access devices.

其中,若信令IP地址存在冲突,则呼叫接入设备很可能无法正常接收到呼叫控制设备发送的信令消息,导致呼叫接入设备无法成功接入呼叫控制设备,或是在呼叫接入设备成功接入呼叫控制设备后,呼叫接入设备无法正常的建立呼叫或释放呼叫等。若媒体IP地址存在冲突,则呼叫接入设备可能无法正常接收呼叫应答设备的媒体流信息,导致呼叫建立后没有声音,或是通话过程中话音质量较差等。If the signaling IP address conflicts, the call access device may not receive the signaling message sent by the call control device, and the call access device cannot successfully access the call control device or the call access device. After successfully accessing the call control device, the call access device cannot establish a call or release a call. If there is a conflict in the media IP address, the call access device may not receive the media stream information of the call answering device normally, resulting in no sound after the call is established, or the voice quality is poor during the call.

由此可见,为了给用户提供优质的服务,无论是信令IP地址的冲突检查,还是媒体IP地址的冲突检查,都显得尤为重要。目前,通常采用地址解析协议(Address Resolution Protocol,ARP)报文来完成IP地址的冲突检查,比如,本端地址冲突检查,或是远端地址冲突检查。其中,本端地址冲突检查指的是,针对两个直连的设备A和设备B,设备A通过免费的ARP报文广播自身的IP地址,若设备B收到这个ARP报文后,发现这个ARP报文所携带的IP地址与自身相同,则认为IP地址冲突;远端地址冲突检查指的是,针对设备A与设备B在同一网关下的场景,设备A和设备B分别向该网关发送ARP报文,在该网关接收到这两个ARP报文后,若发现这两个ARP报文所携带的设备A的IP地址与设备B的IP地址相同,则认为IP地址冲突。It can be seen that in order to provide users with high-quality services, whether it is a conflict check of signaling IP addresses or a conflict check of media IP addresses, it is particularly important. Currently, address resolution protocol (ARP) packets are used to check IP address conflicts, such as local address conflict check or remote address conflict check. The local address conflict check indicates that, for the two directly connected devices A and B, device A broadcasts its own IP address through the free ARP packet. If device B receives the ARP packet, it finds this. If the IP address of the ARP packet is the same as the IP address of the ARP packet, the device considers that the IP address conflicts. The remote address conflict check indicates that the device A and the device B are sent to the gateway. After receiving the two ARP packets, the ARP packet considers that the IP address of device A is the same as the IP address of device B.

虽然上述实现方式能够成功检查到两个设备之间是否存在IP地址冲突,但是,由于ARP报文所采用的ARP协议属于二层协议,运行在二层网络中,因此,上述检查IP地址冲突的实现方式,仅能检查同一网段内的地址冲突,即只能检查到最底层的接入同一网关的不同设备之间的IP地址冲突。这样一来,就增加了IP地址冲突检查过程的局限性,降低了冲突检查过程的精度。The above implementation can successfully check whether there is an IP address conflict between the two devices. However, the ARP protocol used in the ARP packet belongs to the Layer 2 protocol and runs on the Layer 2 network. Therefore, the above check for IP address conflicts. In the implementation mode, only the address conflicts in the same network segment can be checked, that is, only the IP address conflicts between different devices accessing the same gateway at the lowest level can be checked. In this way, the limitation of the IP address conflict checking process is increased, and the accuracy of the conflict checking process is reduced.

发明内容 Summary of the invention

本发明实施例提供一种地址冲突的检查方法及装置,能够降低IP地址冲突检查过程的局限性,提高冲突检查过程的精度。The embodiment of the invention provides a method and a device for checking an address conflict, which can reduce the limitation of the IP address conflict checking process and improve the accuracy of the conflict checking process.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

第一方面,本发明实施例提供一种地址冲突的检查方法,包括如下步骤:首先,接收注册消息,其中该注册消息中至少携带有语音接入网关的IP地址和标识信息,该IP地址至少包括信令IP地址和媒体IP地址;然后,确定是否存在与该IP地址存在冲突的IP地址;若确定存在与该IP地址存在冲突的IP地址,则向OSS发送地址冲突告警消息,地址冲突告警消息至少携带有冲突原因,并且冲突原因至少包括信令IP地址相同和/或媒体IP地址相同。由此可见,在接收到携带有语音接入网关的IP地址和标识信息的注册消息后,能够根据IP地址确定是否存在与该IP地址存在冲突的IP地址,并在存在冲突的IP地址的情况下,向运营支撑系统发送携带有冲突原因的地址冲突告警消息。由于上述地址冲突的检查过程发生在语音接入网关的上层设备,因此,上述地址冲突的检查不仅可以检查出最底层直连设备之间是否存在地址冲突,还可以检查不同网段内各个设备之间是否存在地址冲突。这样一来,就将检查范围从同一网段扩大到多个网段,从而降低IP地址冲突检查过程的局限性。随着检查地址冲突的局限性的降低,可实现IP地址冲突检查的设备也大幅增加,这样便可以进一步提高冲突检查过程的精度。因此,解决了采用ARP报文实现IP地址冲突检查所引发的问题。In a first aspect, an embodiment of the present invention provides a method for checking an address conflict, including the following steps: First, receiving a registration message, where the registration message carries at least an IP address and identification information of a voice access gateway, where the IP address is at least Including the signaling IP address and the media IP address; then, determining whether there is an IP address that conflicts with the IP address; if it is determined that there is an IP address that conflicts with the IP address, sending an address conflict alarm message to the OSS, the address conflict alarm The message carries at least the cause of the conflict, and the cause of the conflict includes at least the same signaling IP address and/or the same media IP address. It can be seen that after receiving the registration message carrying the IP address and the identification information of the voice access gateway, it is possible to determine whether there is an IP address that conflicts with the IP address according to the IP address, and in the case where there is a conflicting IP address. The address conflict alarm message carrying the conflicting reason is sent to the operation support system. The address conflict check process is performed on the upper device of the voice access gateway. Therefore, the address conflict check can check whether there is an address conflict between the lowest-level directly connected devices, and check the devices in different network segments. Is there an address conflict between them? In this way, the inspection scope is expanded from the same network segment to multiple network segments, thereby reducing the limitation of the IP address conflict checking process. As the limitations of checking address conflicts are reduced, the number of devices that can implement IP address conflict checking is also greatly increased, so that the accuracy of the conflict checking process can be further improved. Therefore, the problem caused by IP address conflict checking using ARP packets is solved.

在一种可能的设计中,上述方法可以应用于呼叫控制设备或应用于地址转换NAT设备。若该方法应用于NAT设备,则NAT设备上设置有应用层网关ALG,NAT设备用于将语音接入网关向NAT设备发送的注册消息中的内网IP地址转换为外网IP地址,ALG用于解析语音接入网关向NAT设备发送的注册消息,得到内网IP地址。由此可见,检查地址冲突的执行主体可以为位于核心网侧的呼叫控制设备,或是在VoIP网络系统中存在NAT设备时,由NAT设备作为检查地址冲突的执行主体。In one possible design, the above method can be applied to a call control device or to an address translation NAT device. If the method is applied to the NAT device, the application device gateway ALG is configured on the NAT device, and the NAT device is configured to convert the internal network IP address in the registration message sent by the voice access gateway to the NAT device to the external network IP address, for the ALG. The intranet IP address is obtained by parsing the registration message sent by the voice access gateway to the NAT device. It can be seen that the execution subject of the check address conflict can be the call control device located on the core network side, or the NAT device acts as the execution subject of the check address conflict when the NAT device exists in the VoIP network system.

在一种可能的设计中,若该方法应用于NAT设备,在确定是否存在与IP地址存在冲突的IP地址之后,该方法还包括:若确定不存在与IP地址存在冲突的IP地址,则保存语音接入网关的IP地址。这样一来,当NAT设备再次进行IP地址的冲突检查时,还能够以已保存的之前未产生冲突的语音接入网关的IP地址为依据,进行当前的IP地址冲突检查。In a possible design, if the method is applied to a NAT device, after determining whether there is an IP address that conflicts with the IP address, the method further includes: if it is determined that there is no IP address conflicting with the IP address, saving IP address of the voice access gateway. In this way, when the NAT device performs the IP address conflict check again, the current IP address conflict check can be performed based on the saved IP address of the voice access gateway that has not previously collided.

在一种可能的设计中,若该方法应用于呼叫控制设备,在确定是否存在与IP地址存在冲突的IP地址之后,该方法还包括:若确定不存在与IP地址存在冲突的IP地址,则将注册消息携带的IP地址和语音接入网关的标识信息记录在地址列表中。其中,地址列表用于存储完成注册的语音接入网关的IP地址。这样一来,当呼叫控制设备再次进行IP地址的冲突检查时,还能够以已记录在地址列表中的之前未产生冲突的语音接入网关的IP地址为依据,进行当前的IP地址冲突检查。另外,呼叫控制设备不仅可以完成组网环境中的第一次的IP地址冲突检查过程,若前期地址转换设备已完成IP地址的冲 突检查,则此时相当于呼叫控制设备正在进行二次IP地址的冲突检查。需要说明的是,若呼叫控制设备当前正在进行二次IP地址的冲突检查,那么第一次由地址转换设备执行的IP地址冲突检查的结果为不存在冲突的IP地址。也就意味着,若地址转换设备检查到IP地址存在冲突,那么为了节省IP地址检查过程中占用的资源,则可以直接向语音接入网关反馈注册失败的响应消息,从而结束本次IP地址检查过程。In a possible design, if the method is applied to the call control device, after determining whether there is an IP address that conflicts with the IP address, the method further includes: if it is determined that there is no IP address conflicting with the IP address, The IP address carried in the registration message and the identification information of the voice access gateway are recorded in the address list. The address list is used to store the IP address of the voice access gateway that has completed registration. In this way, when the call control device performs the IP address collision check again, the current IP address conflict check can be performed based on the IP address of the voice access gateway that has not been collided before being recorded in the address list. In addition, the call control device can not only complete the first IP address conflict check process in the networking environment, but if the previous address translation device has completed the IP address rush In the case of a sudden check, it is equivalent to the call control device performing a collision check of the secondary IP address. It should be noted that if the call control device is currently performing a collision check of the secondary IP address, the result of the IP address conflict check performed by the address translation device for the first time is that there is no conflicting IP address. In other words, if the address translation device detects that there is a conflict in the IP address, in order to save the resources occupied during the IP address check, the response message of the registration failure may be directly fed back to the voice access gateway, thereby ending the IP address check. process.

在一种可能的设计中,若注册消息经由NAT设备转发,则注册消息携带有NAT设备的标识信息。这样可以便于呼叫控制设备有效区分不同NAT设备转发的注册消息。In a possible design, if the registration message is forwarded via the NAT device, the registration message carries the identification information of the NAT device. This can facilitate the call control device to effectively distinguish between registration messages forwarded by different NAT devices.

在一种可能的设计中,该方法还包括:若确定存在与IP地址存在冲突的IP地址,则向语音接入网关发送响应消息。其中,响应消息与注册消息对应,该响应消息至少携带有冲突原因。由此可见,一旦检查出存在冲突的IP地址,那么作为检查过程的执行主体的NAT设备或是呼叫控制设备则可以向语音接入网关反馈响应消息,将失败结果及冲突原因告知语音接入网关。In a possible design, the method further includes: if it is determined that there is an IP address that conflicts with the IP address, sending a response message to the voice access gateway. The response message corresponds to the registration message, and the response message carries at least the conflict reason. It can be seen that once the conflicting IP address is detected, the NAT device or the call control device, which is the execution body of the checking process, can feed back a response message to the voice access gateway, and notify the voice access gateway of the failure result and the cause of the conflict. .

第二方面,本发明实施例提供一种地址冲突的检查装置,该装置可以实现上述方法实施例中NAT设备或呼叫控制设备所执行的功能,该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,该硬件或软件包括一个或多个上述功能相应的模块。In a second aspect, the embodiment of the present invention provides an apparatus for inspecting an address conflict, which may implement a function performed by a NAT device or a call control device in the foregoing method embodiment, and the function may be implemented by hardware or by hardware. Software implementation, the hardware or software includes one or more corresponding modules of the above functions.

在一种可能的设计中,该装置的结构中包括处理器和收发器,该处理器被配置为支持该装置执行上述方法中相应的功能。该收发器用于支持该装置与其他网元之间的通信。该装置还可以包括存储器,该存储器用于与处理器耦合,其保存该装置必要的程序指令和数据。In one possible design, the apparatus includes a processor and a transceiver configured to support the apparatus to perform the corresponding functions of the above methods. The transceiver is used to support communication between the device and other network elements. The apparatus can also include a memory for coupling with the processor that retains the program instructions and data necessary for the apparatus.

第三方面,本发明实施例提供了一种计算机存储介质,用于储存为上述装置所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In a third aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for use in the above apparatus, including a program designed to perform the above aspects.

相比较于现有技术中的利用ARP报文,检查最底层的接入同一网关的不同设备之间的IP地址冲突,上述方案,在接收到携带有语音接入网关的IP地址和标识信息的注册消息后,能够根据IP地址确定是否存在与该IP地址存在冲突的IP地址,并在存在冲突的IP地址的情况下,向运营支撑系统发送携带有冲突原因的地址冲突告警消息。由于上述地址冲突的检查过程发生在语音接入网关的上层设备,因此,上述地址冲突的检查不仅可以检查出最底层直连设备之间是否存在地址冲突,还可以检查不同网段内各个设备之间是否存在地址冲突。这样一来,就将检查范围从同一网段扩大到多个网段,从而降低IP地址冲突检查过程的局限性。随着检查地址冲突的局限性的降低,可实现IP地址冲突检查的设备也大幅增加,这样便可以进一步提高冲突检查过程的精度。因此,解决了采用ARP报文实现IP地址冲突检查所引发的问题。Compared with the prior art, the ARP packet is used to check the IP address conflict between different devices accessing the same gateway. The solution is to receive the IP address and the identifier information of the voice access gateway. After the registration message, it is determined whether there is an IP address that conflicts with the IP address according to the IP address, and if there is a conflicting IP address, an address conflict warning message carrying the conflict cause is sent to the operation support system. The address conflict check process is performed on the upper device of the voice access gateway. Therefore, the address conflict check can check whether there is an address conflict between the lowest-level directly connected devices, and check the devices in different network segments. Is there an address conflict between them? In this way, the inspection scope is expanded from the same network segment to multiple network segments, thereby reducing the limitation of the IP address conflict checking process. As the limitations of checking address conflicts are reduced, the number of devices that can implement IP address conflict checking is also greatly increased, so that the accuracy of the conflict checking process can be further improved. Therefore, the problem caused by IP address conflict checking using ARP packets is solved.

附图说明DRAWINGS

图1为本发明实施例提供的一种VoIP网络系统的结构示意图;FIG. 1 is a schematic structural diagram of a VoIP network system according to an embodiment of the present invention;

图2为本发明实施例提供的一种地址冲突的检查方法流程图; 2 is a flowchart of a method for checking an address conflict according to an embodiment of the present invention;

图3为本发明实施例提供的一种地址冲突的检查方法的信令交互图;FIG. 3 is a signaling interaction diagram of an address conflict checking method according to an embodiment of the present disclosure;

图4为本发明实施例提供的另一种地址冲突的检查方法的信令交互图;FIG. 4 is a signaling interaction diagram of another method for checking an address conflict according to an embodiment of the present disclosure;

图5为本发明实施例提供的一种地址冲突的检查装置的结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for checking an address conflict according to an embodiment of the present disclosure;

图6、图7为本发明实施例提供的另一种地址冲突的检查装置的结构示意图。FIG. 6 and FIG. 7 are schematic diagrams showing the structure of another apparatus for checking an address conflict according to an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.

本发明实施例可以用于一种VoIP网络系统,在VoIP网络系统中,至少包括呼叫控制设备和试图接入该呼叫控制设备的呼叫接入设备。在本发明实施例中,检查地址冲突的执行主体可以为位于核心网侧的呼叫控制设备,或是在VoIP网络系统中存在地址转换(Network Address Translation,NAT)设备时,由地址转换设备作为检查地址冲突的执行主体。需要说明的是,若本发明实施例所提供的方法应用于地址转换设备,那么,在地址转换设备上设置有应用层网关(Application Layer Gateway,ALG)。其中,地址转换设备用于将语音接入网关向地址转换设备发送的注册消息中的内网IP地址转换为外网IP地址;应用层网关用于解析语音接入网关向地址转换设备发送的注册消息,得到内网IP地址。The embodiment of the present invention can be used in a VoIP network system. In the VoIP network system, at least a call control device and a call access device attempting to access the call control device are included. In the embodiment of the present invention, the execution subject of the address conflict check may be a call control device located on the core network side, or may be used by the address translation device when there is a Network Address Translation (NAT) device in the VoIP network system. The execution body of the address conflict. It should be noted that, if the method provided by the embodiment of the present invention is applied to an address translation device, an application layer gateway (ALG) is disposed on the address translation device. The address translation device is configured to convert the intranet IP address in the registration message sent by the voice access gateway to the address translation device to an external network IP address; the application layer gateway is configured to parse the registration sent by the voice access gateway to the address translation device. Message, get the internal network IP address.

如图1所示为一种可能的VoIP网络系统的结构示意图,在该VoIP网络系统中,未示出接入语音接入网关(VoIP-Access Gateway,VoIP-AG)1至3中任意一个语音接入网关的呼叫接入设备。其中,语音接入网关可以通过地址转换设备与呼叫控制设备进行通信,比如,如图1所示的语音接入网关1和语音接入网关2均与地址转换设备1之间建立通信连接,之后通过地址转换设备1,与呼叫控制设备进行数据交互;语音接入网关还可以直接与呼叫控制设备进行通信,比如,如图1所示的语音接入网关3。在同一呼叫控制设备下,可能存在一个或是多个用于地址转换的地址转换设备,比如,如图1所示的地址转换设备1和地址转换设备2。此外,在图1中未示出分别设置在地址换换设备1和地址转换设备2上的应用层网关。在本发明实施例中,图1所示的网关具体可以为运营支撑系统(The Office of Strategic Services,OSS),或是其他能够用于管理整个VoIP网络系统的设备或是设备集合。FIG. 1 is a schematic structural diagram of a possible VoIP network system. In the VoIP network system, any one of the voice access gateways (VoIP-Access Gateways, VoIP-AGs) 1 to 3 is not shown. The call access device of the access gateway. The voice access gateway can communicate with the call control device by using the address translation device. For example, both the voice access gateway 1 and the voice access gateway 2 as shown in FIG. 1 establish a communication connection with the address translation device 1, and then The address conversion device 1 performs data interaction with the call control device; the voice access gateway can also directly communicate with the call control device, for example, the voice access gateway 3 as shown in FIG. Under the same call control device, there may be one or more address translation devices for address translation, such as address translation device 1 and address translation device 2 as shown in FIG. Furthermore, application layer gateways respectively provided on the address switching device 1 and the address translation device 2 are not shown in FIG. In the embodiment of the present invention, the gateway shown in FIG. 1 may specifically be the Office of Strategic Services (OSS) or other devices or devices that can be used to manage the entire VoIP network system.

本发明实施例提供一种地址冲突的检查方法,如图2所示,该方法可以由图1所示的呼叫控制设备或是地址转换设备执行,当然,在其他特殊的应用场景下,也可以由其他设备执行,在此不对执行主体进行限制。该方法包括:An embodiment of the present invention provides a method for checking an address conflict. As shown in FIG. 2, the method may be performed by the call control device or the address translation device shown in FIG. 1. Of course, in other special application scenarios, Executed by other devices, the execution subject is not restricted here. The method includes:

步骤101、接收注册消息。Step 101: Receive a registration message.

其中,注册消息至少携带有语音接入网关的IP地址和标识信息,IP地址至少包括信令IP地址和媒体IP地址。The registration message carries at least the IP address and the identifier information of the voice access gateway, and the IP address includes at least the signaling IP address and the media IP address.

注册消息的类型可以有多种,且每个注册消息的类型都会随着应用场景 的变化而发生改变。比如,在会话初始协议(Session Initiation Protocol,SIP)下,注册消息可以为OPTION、REGISTER、SUBSCRIBE、INVITE、INFO、UPDATE、MESSAGE等已有消息,或是扩展新的请求消息作为注册消息,以完成IP地址和标识信息的上报。There are many types of registration messages, and the type of each registration message will follow the application scenario. The change has changed. For example, under the Session Initiation Protocol (SIP), the registration message may be an existing message such as OPTION, REGISTER, SUBSCRIBE, INVITE, INFO, UPDATE, MESSAGE, or an extension of a new request message as a registration message to complete The IP address and identification information are reported.

在上述注册消息中,可以扩展已有头域,以携带上述IP地址和标识信息,比如,Contact、Route、Via等已有头域,或是扩展新的头域。在注册消息的头域中,IP地址具体可以记载为:In the foregoing registration message, the existing header field may be extended to carry the foregoing IP address and identification information, for example, an existing header field such as Contact, Route, Via, or the like, or a new header field. In the header field of the registration message, the IP address can be specifically recorded as:

IP-Info:4242-2121-E1E1IP-Info: 4242-2121-E1E1

(信令IP地址)signal=10.146.229.229:5060(signaling IP address) signal=10.146.229.229:5060

(媒体IP地址)media=10.146.229.229(media IP address) media=10.146.229.229

需要说明的是,在SIP协议下,若呼叫控制设备位于IP多媒体子系统(IPMultimedia Subsystem,IMS),且在组网中存在会话边界控制器(Session Border Controller,SBC)的情况下,那么除了可以由呼叫控制设备或是地址转换设备完成IP地址的冲突检查,还可以有SBC执行本发明实施例所涉及的方法流程。It should be noted that, under the SIP protocol, if the call control device is located in the IP Multimedia Subsystem (IMS) and there is a Session Border Controller (SBC) in the network, then The method for performing the conflict of the IP address is performed by the call control device or the address translation device.

在H248协议下,上述注册消息可以为Service Change,且执行IP地址检查的设备可以为媒体网关控制器(Media Gateway Controller,MGC);在媒体网关控制协议(Media Gateway Control Protocol,MGCP)下,上述注册消息可以为RestartIn Progress,即重启在过程中的一个MGCP命令,且执行IP地址检查的设备同样可以为MGC;在H323协议下,上述注册消息可以为Registration Request(RRQ)、Admissions Request(ARQ)等,且执行IP地址检查的设备可以为H323网关。In the H248 protocol, the registration message may be Service Change, and the device performing the IP address check may be a Media Gateway Controller (MGC); under the Media Gateway Control Protocol (MGCP), the foregoing The registration message may be a RestartIn Progress, that is, an MGCP command in the process is restarted, and the device performing the IP address check may also be an MGC; in the H323 protocol, the registration message may be a Registration Request (RRQ) or an Admissions Request (ARQ). Etc., and the device performing the IP address check can be an H323 gateway.

由此可见,在不同应用场景下,用于执行IP地址检查的设备可以为该应用场景下的特定设备,而不仅限于呼叫控制设备或是地址转换设备。以上仅罗列出部分可能的应用场景,除此以外,还可以存在其他组网结构,以及在该组网结构内用于执行IP地址检查的设备,在此对于本发明实施例的应用场景不做过多限定。It can be seen that, in different application scenarios, the device for performing IP address check may be a specific device in the application scenario, and is not limited to a call control device or an address translation device. In the above, only some possible application scenarios are listed. In addition, other networking structures and devices for performing IP address check in the network structure may be used, and the application scenario of the embodiment of the present invention is not Do too much limit.

另外,考虑到不同语音接入网关的IP地址可能完全相同,因此,上报的注册消息中还需要携带有语音接入网关的标识信息,这样才能有效区分不同的语音接入网关。其中,标识信息可以为保证在全网内唯一的信息,比如,设备的媒体访问控制(Media Access Control,MAC)地址。需要说明的是,对于同一语音接入网关发出的注册消息而言,在注册消息中所携带的标识信息需要保证相同,即在组网中存在地址转换设备的场景中,无论地址转换设备通过哪个MAC地址完成注册消息的转发,应用层网关都需要确保使用相同的MAC地址进行标识。In addition, it is considered that the IP addresses of different voice access gateways may be identical. Therefore, the reported registration message also needs to carry the identification information of the voice access gateway, so as to effectively distinguish different voice access gateways. The identifier information may be information that is unique within the entire network, such as a Media Access Control (MAC) address of the device. It should be noted that, for the registration message sent by the same voice access gateway, the identifier information carried in the registration message needs to be the same, that is, in the scenario where the address translation device exists in the network, no matter which address translation device passes. The MAC address completes the forwarding of the registration message, and the application layer gateway needs to ensure that the same MAC address is used for identification.

步骤102、确定是否存在与IP地址存在冲突的IP地址。Step 102: Determine whether there is an IP address that conflicts with the IP address.

其中,若确定存在与IP地址存在冲突的IP地址,则执行步骤103;否则,执行步骤104。If it is determined that there is an IP address that conflicts with the IP address, step 103 is performed; otherwise, step 104 is performed.

考虑到在本发明实施例中,用于检查IP地址冲突的设备可以为呼叫控制 设备或是地址转换设备,因此,针对不同执行主体,可以采取不同的冲突判断过程。Considering that in the embodiment of the present invention, a device for checking an IP address conflict may be a call control The device or the address translation device, therefore, different conflict determination processes can be taken for different execution entities.

比如,对于地址转换设备而言,与该地址转换设备之间存在数据交互的语音接入网关均可以向该地址转换设备发送注册消息,并在该注册消息中携带有自身的IP地址和标识信息;地址转换设备在接收到注册消息之后,可以通过应用层网关完成注册消息的解析,得到该注册消息中携带的语音接入网关的信令IP地址和媒体IP地址;之后,由地址转换设备将得到的多组数据进行比对,其中,每组数据包括一个语音接入网关的信令IP地址和媒体IP地址,这样就能够找到存在IP地址冲突的至少两个语音接入网关,从而完成IP地址的冲突检查。对于呼叫控制设备而言,与该呼叫控制设备之间存在直接数据交互的语音接入网关、以及与该呼叫控制设备之间存在数据交互的地址转换设备均可以向该地址转换设备发送注册消息,其中,地址转换设备向呼叫控制设备发送的注册消息中携带的IP地址是经过地址转换设备进行转换后的IP地址,后续检查过程则由呼叫控制设备完成。具体实现过程可以参照后文说明,以及如图3和图4所示的两个具体应用场景下,由呼叫控制设备、地址转换设备作为IP地址冲突检查过程的执行主体,在完成冲突检查时的具体实现过程。For example, for the address translation device, the voice access gateway that has data interaction with the address translation device can send a registration message to the address translation device, and carries its own IP address and identification information in the registration message. After receiving the registration message, the address translation device may perform the resolution of the registration message through the application layer gateway, and obtain the signaling IP address and the media IP address of the voice access gateway carried in the registration message; after that, the address translation device will The obtained plurality of sets of data are compared, wherein each set of data includes a signaling IP address and a media IP address of a voice access gateway, so that at least two voice access gateways with IP address conflicts can be found, thereby completing IP Address conflict check. For the call control device, a voice access gateway having direct data interaction with the call control device, and an address translation device having data interaction with the call control device may send a registration message to the address translation device, The IP address carried in the registration message sent by the address translation device to the call control device is the IP address converted by the address conversion device, and the subsequent check process is completed by the call control device. The specific implementation process may refer to the following description, and in the two specific application scenarios shown in FIG. 3 and FIG. 4, the call control device and the address translation device are used as the execution subject of the IP address conflict check process, and the conflict check is completed. The specific implementation process.

步骤103、向运营支撑系统发送地址冲突告警消息。Step 103: Send an address conflict alarm message to the operation support system.

其中,地址冲突告警消息至少携带有冲突原因,冲突原因至少包括信令IP地址相同和/或媒体IP地址相同。The address conflict alarm message carries at least the conflict reason, and the conflict cause includes at least the same signaling IP address and/or the same media IP address.

考虑到在注册消息中不仅携带有信令IP地址,还携带有媒体IP地址,且不同语音接入网关直接或是间接发送至冲突检查执行主体的注册消息中,可能存在信令IP地址相同的冲突、媒体IP地址相同的冲突,或是信令IP地址与媒体IP地址均存在冲突的情况,因此,向运营支撑系统发送的地址冲突告警消息中所携带的冲突原因也可能有一种或是多种情况。Considering that the registration message carries not only the signaling IP address but also the media IP address, and the different voice access gateways are directly or indirectly sent to the registration message of the conflict checking execution entity, the signaling IP address may be the same. Conflicts, media IP addresses with the same conflict, or between the signaling IP address and the media IP address. Therefore, there may be one or more conflicts in the address conflict alarm message sent to the operation support system. Kind of situation.

需要说明的是,上述运营支撑系统可以为如图1所示的网管,主要作用在于记录产生IP地址冲突的相关信息,方便后续对组网结构中各个设备进行管理、地址调整等。It should be noted that the foregoing operation support system may be a network management system as shown in FIG. 1 , and the main function is to record related information of the IP address conflict, and facilitate subsequent management and address adjustment of each device in the networking structure.

步骤104、根据当前执行主体,确定保存语音接入网关的IP地址、或将注册消息携带的IP地址和语音接入网关的标识信息记录在地址列表中。Step 104: According to the current execution entity, determine to save the IP address of the voice access gateway, or record the IP address carried in the registration message and the identifier information of the voice access gateway in the address list.

其中,地址列表用于存储完成注册的语音接入网关的IP地址。The address list is used to store the IP address of the voice access gateway that has completed registration.

本发明实施例在接收到携带有语音接入网关的IP地址和标识信息的注册消息后,能够根据IP地址确定是否存在与该IP地址存在冲突的IP地址,并在存在冲突的IP地址的情况下,向运营支撑系统发送携带有冲突原因的地址冲突告警消息。由于上述地址冲突的检查过程发生在语音接入网关的上层设备,因此,上述地址冲突的检查不仅可以检查出最底层直连设备之间是否存在地址冲突,还可以检查不同网段内各个设备之间是否存在地址冲突。这样一来,就将检查范围从同一网段扩大到多个网段,从而降低IP地址冲突检查过程的局限性。随着检查地址冲突的局限性的降低,可实现IP地址冲突检查 的设备也大幅增加,这样便可以进一步提高冲突检查过程的精度。因此,解决了采用ARP报文实现IP地址冲突检查所引发的问题。After receiving the registration message carrying the IP address and the identification information of the voice access gateway, the embodiment of the present invention can determine whether there is an IP address that conflicts with the IP address according to the IP address, and if there is a conflicting IP address, The address conflict alarm message carrying the conflicting reason is sent to the operation support system. The address conflict check process is performed on the upper device of the voice access gateway. Therefore, the address conflict check can check whether there is an address conflict between the lowest-level directly connected devices, and check the devices in different network segments. Is there an address conflict between them? In this way, the inspection scope is expanded from the same network segment to multiple network segments, thereby reducing the limitation of the IP address conflict checking process. IP address conflict checking can be implemented as the limitations of checking address conflicts are reduced. The equipment has also increased significantly, which will further improve the accuracy of the conflict checking process. Therefore, the problem caused by IP address conflict checking using ARP packets is solved.

如图3所示为地址转换设备作为执行主体,检查IP地址冲突的交互流程。具体交互流程如下:As shown in FIG. 3, the address translation device is used as an execution body to check the interaction process of IP address conflicts. The specific interaction process is as follows:

步骤201、语音接入网关向地址转换设备发送注册消息。Step 201: The voice access gateway sends a registration message to the address translation device.

步骤202、地址转换设备确定是否存在与语音接入网关发送的IP地址存在冲突的IP地址。其中,若确定存在,则执行步骤203和步骤204,否则执行步骤205和步骤206。Step 202: The address translation device determines whether there is an IP address that conflicts with an IP address sent by the voice access gateway. Wherein, if it is determined to exist, step 203 and step 204 are performed, otherwise steps 205 and 206 are performed.

步骤203、地址转换设备向运营支撑系统发送地址冲突告警消息。Step 203: The address translation device sends an address conflict alarm message to the operation support system.

步骤204、地址转换设备向语音接入网关发送注册失败的响应消息。Step 204: The address translation device sends a response message that the registration fails to the voice access gateway.

步骤205、地址转换设备保存语音接入网关的IP地址。Step 205: The address translation device saves the IP address of the voice access gateway.

步骤206、地址转换设备向语音接入网关发送注册成功的响应消息。Step 206: The address translation device sends a response message of successful registration to the voice access gateway.

在本发明实施例中,由地址转换设备作为执行主体,完成IP地址的冲突检查。其中,步骤204和步骤206作为可选步骤,目的在于向语音接入网关反馈是否存在IP地址冲突的检查结果。另外,需要说明的是,应用层网关本身作为一个可选设备,被设置在地址转换设备上,其目的主要是用于增强VoIP网络的路由功能,若地址转换设备上行的IP地址只有一个,那么应用层网关则不作为必选网元之一,也就意味着,可以不在地址转换设备上设置应用层网关。并且,在地址转换设备完成IP地址的冲突检查之后,若在当前组网环境中,还存在呼叫控制设备,则当注册消息发送至呼叫控制设备之后,呼叫控制设备还能对IP地址进行二次冲突检查,具体实现过程可以参见图4所示的方法流程,在此不做赘述。In the embodiment of the present invention, the address translation device is used as an execution entity to complete the conflict check of the IP address. Step 204 and step 206 are optional steps, and the purpose is to feedback back to the voice access gateway whether there is an IP address conflict check result. In addition, it should be noted that the application layer gateway itself is set as an optional device on the address translation device, and the purpose thereof is mainly for enhancing the routing function of the VoIP network. If the IP address of the address translation device is only one, then The application layer gateway is not one of the mandatory network elements, which means that the application layer gateway may not be set on the address translation device. Moreover, after the address translation device completes the conflict check of the IP address, if there is a call control device in the current networking environment, the call control device can perform the IP address twice after the registration message is sent to the call control device. For the process of conflict check, refer to the method flow shown in Figure 4 for details.

如图4所示为呼叫控制设备作为执行主体,检查IP地址冲突的交互流程。具体交互流程如下:As shown in FIG. 4, the call control device is used as an execution body to check the interaction process of IP address conflicts. The specific interaction process is as follows:

步骤301、语音接入网关向地址转换设备发送注册消息。Step 301: The voice access gateway sends a registration message to the address translation device.

步骤302、地址转换设备向呼叫控制设备发送注册消息。Step 302: The address translation device sends a registration message to the call control device.

步骤303、呼叫控制设备确定是否存在与地址转换设备发送的IP地址存在冲突的IP地址。其中,若确定存在,则执行步骤304至步骤306,否则执行步骤307至步骤309。Step 303: The call control device determines whether there is an IP address that conflicts with the IP address sent by the address translation device. If it is determined to exist, step 304 to step 306 are performed, otherwise steps 307 to 309 are performed.

步骤304、呼叫控制设备向运营支撑系统发送地址冲突告警消息。Step 304: The call control device sends an address conflict alarm message to the operation support system.

步骤305、呼叫控制设备向地址转换设备发送注册失败的响应消息。Step 305: The call control device sends a response message that the registration fails to the address translation device.

步骤306、地址转换设备向语音接入网关发送注册失败的响应消息。Step 306: The address translation device sends a response message that the registration fails to the voice access gateway.

在本发明实施例中,语音接入网关发出的注册消息,需要经由地址转换设备转发给呼叫控制设备,因此,呼叫控制设备所接收到的注册消息中还应携带有地址转换设备的标识信息。其中,该标识信息可以为该地址转换设备的MAC地址、或是其他能够用于区分不同地址转换设备的唯一标识。In the embodiment of the present invention, the registration message sent by the voice access gateway needs to be forwarded to the call control device by using the address translation device. Therefore, the registration message received by the call control device should also carry the identifier information of the address translation device. The identifier information may be a MAC address of the address translation device or another unique identifier that can be used to distinguish different address translation devices.

步骤307、呼叫控制设备将注册消息携带的IP地址和语音接入网关的标识信息记录在地址列表中。Step 307: The call control device records the IP address carried in the registration message and the identifier information of the voice access gateway in the address list.

步骤308、呼叫控制设备向地址转换设备发送注册成功的响应消息。 Step 308: The call control device sends a response message of successful registration to the address translation device.

步骤309、地址转换设备向语音接入网关发送注册成功的响应消息。Step 309: The address translation device sends a response message that the registration is successful to the voice access gateway.

在本发明实施例中,由呼叫控制设备作为执行主体,完成IP地址的冲突检查。其中,步骤305和步骤306、以及步骤308和步骤309作为可选步骤,目的在于向地址转换设备及语音接入网关反馈是否存在IP地址冲突的检查结果。另外,呼叫控制设备不仅可以完成组网环境中的第一次的IP地址冲突检查过程,若前期地址转换设备已完成IP地址的冲突检查,则此时相当于呼叫控制设备正在进行二次IP地址的冲突检查。需要说明的是,若呼叫控制设备当前正在进行二次IP地址的冲突检查,那么第一次由地址转换设备执行的IP地址冲突检查的结果为不存在冲突的IP地址。也就意味着,若地址转换设备检查到IP地址存在冲突,那么为了节省IP地址检查过程中占用的资源,则可以直接向语音接入网关反馈注册失败的响应消息,从而结束本次IP地址检查过程。In the embodiment of the present invention, the call control device is used as an execution subject to complete the conflict check of the IP address. Step 305 and step 306, and step 308 and step 309 are optional steps, and the purpose is to feedback to the address translation device and the voice access gateway whether there is an IP address conflict check result. In addition, the call control device can not only complete the first IP address conflict check process in the networking environment, but if the previous address translation device has completed the IP address conflict check, the call control device is equivalent to the secondary IP address. Conflict check. It should be noted that if the call control device is currently performing a collision check of the secondary IP address, the result of the IP address conflict check performed by the address translation device for the first time is that there is no conflicting IP address. In other words, if the address translation device detects that there is a conflict in the IP address, in order to save the resources occupied during the IP address check, the response message of the registration failure may be directly fed back to the voice access gateway, thereby ending the IP address check. process.

可以理解的是,地址冲突的检查装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。It can be understood that the address conflict checking device includes a hardware structure and/or a software module corresponding to each function in order to implement the above functions. Those skilled in the art will readily appreciate that the embodiments of the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.

本发明实施例可以根据上述方法示例对地址冲突的检查装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention may perform the division of the function module on the address conflict checking apparatus according to the above method example. For example, each function module may be divided according to each function, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.

在采用对应各个功能划分各个功能模块的情况下,图5示出了上述实施例中所涉及的地址冲突的检查装置的一种可能的结构示意图,地址冲突的检查装置40包括:接收单元41、确定单元42、发送单元43、存储单元44。接收单元41用于支持地址冲突的检查装置40执行图2中的步骤101,图3中的步骤201之后的接收注册消息的步骤,图4中的步骤302之后的接收注册消息的步骤;确定单元42用于支持地址冲突的检查装置40执行图2中的步骤102,图3中的步骤202,图4中的步骤303;发送单元43用于支持地址冲突的检查装置40执行图2中的步骤103,图3中的步骤204或步骤206,图4中的步骤305或步骤308;存储单元44用于支持地址冲突的检查装置40执行图2中的步骤104,图3中的步骤205,图4中的步骤307。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。FIG. 5 is a schematic diagram of a possible configuration of an apparatus for checking an address conflict involved in the foregoing embodiment. The address conflict checking apparatus 40 includes: a receiving unit 41, The determining unit 42, the transmitting unit 43, and the storage unit 44. The receiving unit 41 is configured to support the address conflict checking apparatus 40 to perform step 101 in FIG. 2, the step of receiving the registration message after step 201 in FIG. 3, the step of receiving the registration message after step 302 in FIG. 4; The checking device 40 for supporting address conflicts performs step 102 in FIG. 2, step 202 in FIG. 3, step 303 in FIG. 4; the transmitting unit 43 is configured to support the address conflict checking apparatus 40 to perform the steps in FIG. 103, step 204 or step 206 in FIG. 3, step 305 or step 308 in FIG. 4; the storage unit 44 is configured to support the address conflict checking apparatus 40 to perform step 104 in FIG. 2, step 205 in FIG. Step 307 in 4. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.

在采用集成的单元的情况下,图6示出了上述实施例中所涉及的地址冲突的检查装置的一种可能的结构示意图。地址冲突的检查装置50包括:通信 模块51、处理模块52和存储模块53。通信模块51用于支持地址冲突的检查装置50与其他网络实体之间的通信,或是用于采集用户触发的相应指令等;处理模块52用于对地址冲突的检查装置50的动作进行控制管理,例如,处理模块52用于支持地址冲突的检查装置50执行图2中的步骤102,图3中的步骤202,图4中的步骤303,和/或用于本文所描述的技术的其它过程;存储模块53,用于存储基站的程序代码和数据。In the case of employing an integrated unit, FIG. 6 shows a possible structural diagram of an apparatus for checking an address conflict involved in the above embodiment. The address conflict checking device 50 includes: communication Module 51, processing module 52, and storage module 53. The communication module 51 is configured to support communication between the check device 50 of the address conflict and other network entities, or to collect corresponding commands triggered by the user, etc. The processing module 52 is configured to control and manage the actions of the address conflict checking device 50. For example, the processing module 52 is configured to support address conflict checking apparatus 50 to perform step 102 in FIG. 2, step 202 in FIG. 3, step 303 in FIG. 4, and/or other processes for the techniques described herein. The storage module 53 is configured to store program codes and data of the base station.

其中,通信模块51可以是收发器、收发电路或通信接口等。处理模块52可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明实施例公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。存储模块53可以是存储器。The communication module 51 can be a transceiver, a transceiver circuit, a communication interface, or the like. The processing module 52 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit. , ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out various exemplary logical blocks, modules and circuits described in connection with the disclosure of the embodiments of the invention. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The storage module 53 can be a memory.

若处理模块52的功能由处理器实现,通信模块51的功能由收发器实现,存储模块53的功能由存储器实现,那么,本发明实施例所涉及的地址冲突的检查装置60可以如图7所示。If the function of the processing module 52 is implemented by the processor, the function of the communication module 51 is implemented by the transceiver, and the function of the memory module 53 is implemented by the memory, the address conflict checking apparatus 60 according to the embodiment of the present invention may be as shown in FIG. 7. Show.

参阅图7所示,该地址冲突的检查装置60包括:处理器61、收发器62、存储器63以及总线64。其中,处理器61、收发器62及存储器63通过总线64相互连接;总线64可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 7, the address conflict checking apparatus 60 includes a processor 61, a transceiver 62, a memory 63, and a bus 64. The processor 61, the transceiver 62, and the memory 63 are connected to each other through a bus 64. The bus 64 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. Wait. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.

结合本发明实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分,或者,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。The steps of the method or algorithm described in connection with the disclosure of the embodiments of the present invention may be implemented in a hardware manner, or may be implemented by a processor executing software instructions. The software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium may also be an integral part of the processor, or the processor and the storage medium may also exist as discrete components in the core network interface device.

本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存 储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should appreciate that in one or more of the above examples, the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium. Computer readable medium including computer storage Storage medium and communication medium, wherein the communication medium includes any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer.

以上所述的具体实施方式,对本发明实施例的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明实施例的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the embodiments of the present invention. The scope of the invention is to be construed as being included in the scope of the embodiments of the invention.

Claims (12)

一种地址冲突的检查方法,其特征在于,所述方法包括:A method for checking an address conflict, characterized in that the method comprises: 接收注册消息,所述注册消息至少携带有语音接入网关的网络协议IP地址和标识信息,所述IP地址至少包括信令IP地址和媒体IP地址;Receiving a registration message, where the registration message carries at least a network protocol IP address and identification information of the voice access gateway, where the IP address includes at least a signaling IP address and a media IP address; 确定是否存在与所述IP地址存在冲突的IP地址;Determining whether there is an IP address that conflicts with the IP address; 若确定存在与所述IP地址存在冲突的IP地址,则向运营支撑系统OSS发送地址冲突告警消息,所述地址冲突告警消息至少携带有冲突原因,所述冲突原因至少包括所述信令IP地址相同和/或所述媒体IP地址相同。If it is determined that there is an IP address that conflicts with the IP address, the address support alarm message is sent to the OSS, where the address conflict alarm message carries at least the conflict cause, and the conflict cause includes at least the signaling IP address. The same and/or the media IP address is the same. 根据权利要求1所述的方法,其特征在于,所述方法应用于呼叫控制设备或应用于地址转换NAT设备,若所述方法应用于所述NAT设备,则所述NAT设备上设置有应用层网关ALG,所述NAT设备用于将所述语音接入网关向所述NAT设备发送的注册消息中的内网IP地址转换为外网IP地址,所述ALG用于解析所述语音接入网关向所述NAT设备发送的注册消息,得到所述内网IP地址。The method according to claim 1, wherein the method is applied to a call control device or to an address translation NAT device, and if the method is applied to the NAT device, an application layer is set on the NAT device. a gateway ALG, the NAT device is configured to convert an intranet IP address in the registration message sent by the voice access gateway to the NAT device to an external network IP address, where the ALG is used to parse the voice access gateway The registration message sent to the NAT device obtains the intranet IP address. 根据权利要求2所述的方法,其特征在于,若所述方法应用于所述NAT设备,在所述确定是否存在与所述IP地址存在冲突的IP地址之后,所述方法还包括:The method according to claim 2, wherein, if the method is applied to the NAT device, after the determining whether there is an IP address that conflicts with the IP address, the method further includes: 若确定不存在与所述IP地址存在冲突的IP地址,则保存所述语音接入网关的IP地址。If it is determined that there is no IP address conflicting with the IP address, the IP address of the voice access gateway is saved. 根据权利要求2所述的方法,其特征在于,若所述方法应用于所述呼叫控制设备,在所述确定是否存在与所述IP地址存在冲突的IP地址之后,所述方法还包括:The method according to claim 2, wherein, if the method is applied to the call control device, after the determining whether there is an IP address that conflicts with the IP address, the method further includes: 若确定不存在与所述IP地址存在冲突的IP地址,则将所述注册消息携带的IP地址和所述语音接入网关的标识信息记录在地址列表中,所述地址列表用于存储完成注册的语音接入网关的IP地址。If it is determined that there is no IP address that conflicts with the IP address, the IP address carried in the registration message and the identification information of the voice access gateway are recorded in an address list, where the address list is used to store the registration. The IP address of the voice access gateway. 根据权利要求4所述的方法,其特征在于,若所述注册消息经由所述NAT设备转发,则所述注册消息携带有所述NAT设备的标识信息。The method according to claim 4, wherein if the registration message is forwarded via the NAT device, the registration message carries identification information of the NAT device. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising: 若确定存在与所述IP地址存在冲突的IP地址,则向所述语音接入网关发送响应消息,所述响应消息与所述注册消息对应,所述响应消息至少携带有所述冲突原因。If it is determined that there is an IP address that conflicts with the IP address, sending a response message to the voice access gateway, where the response message corresponds to the registration message, and the response message carries at least the conflict reason. 一种地址冲突的检查装置,其特征在于,所述装置包括:An apparatus for inspecting an address conflict, characterized in that the apparatus comprises: 接收单元,用于接收注册消息,所述注册消息至少携带有语音接入网关的网络协议IP地址和标识信息,所述IP地址至少包括信令IP地址和媒体IP地址;a receiving unit, configured to receive a registration message, where the registration message carries at least a network protocol IP address and identification information of the voice access gateway, where the IP address includes at least a signaling IP address and a media IP address; 确定单元,用于确定是否存在与所述接收单元接收到的所述IP地址存在冲突的IP地址;a determining unit, configured to determine whether there is an IP address that conflicts with the IP address received by the receiving unit; 发送单元,用于若所述确定单元确定存在与所述IP地址存在冲突的IP地址,则向运营支撑系统OSS发送地址冲突告警消息,所述地址冲突告警消息至 少携带有冲突原因,所述冲突原因至少包括所述信令IP地址相同和/或所述媒体IP地址相同。a sending unit, configured to: if the determining unit determines that there is an IP address that conflicts with the IP address, send an address conflict alarm message to the operation support system OSS, where the address conflict alarm message is There are less conflicts, and the cause of the conflict includes at least the same signaling IP address and/or the same media IP address. 根据权利要求7所述的装置,其特征在于,所述装置应用于呼叫控制设备或应用于地址转换NAT设备,若所述装置应用于所述NAT设备,则所述NAT设备上设置有应用层网关ALG,所述NAT设备用于将所述语音接入网关向所述NAT设备发送的注册消息中的内网IP地址转换为外网IP地址,所述ALG用于解析所述语音接入网关向所述NAT设备发送的注册消息,得到所述内网IP地址。The device according to claim 7, wherein the device is applied to a call control device or to an address translation NAT device, and if the device is applied to the NAT device, an application layer is set on the NAT device. a gateway ALG, the NAT device is configured to convert an intranet IP address in the registration message sent by the voice access gateway to the NAT device to an external network IP address, where the ALG is used to parse the voice access gateway The registration message sent to the NAT device obtains the intranet IP address. 根据权利要求8所述的装置,其特征在于,若所述装置应用于所述NAT设备,所述装置还包括:The device according to claim 8, wherein if the device is applied to the NAT device, the device further comprises: 存储单元,用于若所述确定单元确定不存在与所述IP地址存在冲突的IP地址,则保存所述语音接入网关的IP地址。And a storage unit, configured to save an IP address of the voice access gateway if the determining unit determines that there is no IP address that conflicts with the IP address. 根据权利要求8所述的装置,其特征在于,若所述装置应用于所述呼叫控制设备,所述装置还包括:The device according to claim 8, wherein if the device is applied to the call control device, the device further comprises: 存储单元,用于若所述确定单元确定不存在与所述IP地址存在冲突的IP地址,则将所述注册消息携带的IP地址和所述语音接入网关的标识信息记录在地址列表中,所述地址列表用于存储完成注册的语音接入网关的IP地址。a storage unit, configured to record, in the address list, an IP address carried by the registration message and identifier information of the voice access gateway, if the determining unit determines that there is no IP address that conflicts with the IP address, The address list is used to store the IP address of the voice access gateway that has completed registration. 根据权利要求10所述的装置,其特征在于,若所述注册消息经由所述NAT设备转发,则所述注册消息携带有所述NAT设备的标识信息。The apparatus according to claim 10, wherein if the registration message is forwarded via the NAT device, the registration message carries identification information of the NAT device. 根据权利要求7所述的装置,其特征在于,所述发送单元,还用于若所述确定单元确定存在与所述IP地址存在冲突的IP地址,则向所述语音接入网关发送响应消息,所述响应消息与所述注册消息对应,所述响应消息至少携带有所述冲突原因。 The apparatus according to claim 7, wherein the sending unit is further configured to: if the determining unit determines that an IP address conflicting with the IP address exists, send a response message to the voice access gateway. The response message corresponds to the registration message, and the response message carries at least the cause of the conflict.
PCT/CN2017/071991 2017-01-20 2017-01-20 Address conflict detection method and device Ceased WO2018133051A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/071991 WO2018133051A1 (en) 2017-01-20 2017-01-20 Address conflict detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/071991 WO2018133051A1 (en) 2017-01-20 2017-01-20 Address conflict detection method and device

Publications (1)

Publication Number Publication Date
WO2018133051A1 true WO2018133051A1 (en) 2018-07-26

Family

ID=62907585

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071991 Ceased WO2018133051A1 (en) 2017-01-20 2017-01-20 Address conflict detection method and device

Country Status (1)

Country Link
WO (1) WO2018133051A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416886A (en) * 2020-03-26 2020-07-14 北京文香信息技术有限公司 Internet protocol address dynamic modification method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977245A (en) * 2010-01-07 2011-02-16 中兴通讯股份有限公司 Method, network equipment and system for detecting IP (Internet Protocol) address conflict
CN102457407A (en) * 2010-10-30 2012-05-16 华为技术有限公司 Method and equipment for detecting IP address conflict in autonomous system
CN104468867A (en) * 2014-12-26 2015-03-25 陈晨 Dynamic distribution method for IP address in wireless local area network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977245A (en) * 2010-01-07 2011-02-16 中兴通讯股份有限公司 Method, network equipment and system for detecting IP (Internet Protocol) address conflict
CN102457407A (en) * 2010-10-30 2012-05-16 华为技术有限公司 Method and equipment for detecting IP address conflict in autonomous system
CN104468867A (en) * 2014-12-26 2015-03-25 陈晨 Dynamic distribution method for IP address in wireless local area network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416886A (en) * 2020-03-26 2020-07-14 北京文香信息技术有限公司 Internet protocol address dynamic modification method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110324284B (en) Method and communication device for accessing IMS
RU2535476C2 (en) Mobile communication device registration method
US12192252B2 (en) Voice service restoration after element failure
CN102647487B (en) Method for saving Internet protocol (IP) addresses and access proxy equipment
JP5591814B2 (en) Method for grouping terminations
WO2007016832A1 (en) A method for detecting fault in the next generation network
WO2017157144A1 (en) Sip over tcp/tls-based communication method and associated device
US20250047572A1 (en) Communication method and apparatus
WO2021027450A1 (en) Method and device for registering ims terminal, location information server, and storage medium
WO2021213243A1 (en) Associated service registration method, related device and computer-readable storage medium
US20250220411A1 (en) Information Processing Method
CN107567027B (en) Processing method, device, device and mobile terminal for network handover of RCS terminal
JP6305786B2 (en) Incoming call control apparatus, incoming call control method, and program
CN113726968B (en) Terminal communication method, device, server and storage medium
WO2018133051A1 (en) Address conflict detection method and device
WO2005117346A1 (en) A method of registration for the private nerwork terminal to the gatekeeper based on the h.323 protocol
US7907514B2 (en) MGCP fallback mechanism enhancement
WO2025148754A1 (en) Voice call establishment method and apparatus, and device and storage medium
WO2017028773A1 (en) Method and device for establishing self-configuring network by ims terminal
CN108307376B (en) A method, device and system for selecting a called access domain
CN103795878B (en) A kind of guard method of Voice over IP business, equipment and system
US20180352009A1 (en) Apparatus for setting up conference call and method thereof
CN1917506B (en) Media gateway, media gateway controller and related registration control processing method
CN108650425B (en) Monitoring method and monitoring system
WO2008003250A1 (en) A fault positioning method, apparatus and system in the next generation network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17892591

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17892591

Country of ref document: EP

Kind code of ref document: A1