WO2014019451A1 - 一种快速通知cgn异常的方法、设备及系统 - Google Patents

一种快速通知cgn异常的方法、设备及系统 Download PDF

Info

Publication number
WO2014019451A1
WO2014019451A1 PCT/CN2013/079373 CN2013079373W WO2014019451A1 WO 2014019451 A1 WO2014019451 A1 WO 2014019451A1 CN 2013079373 W CN2013079373 W CN 2013079373W WO 2014019451 A1 WO2014019451 A1 WO 2014019451A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
packet
cgn
cpe
network
Prior art date
Application number
PCT/CN2013/079373
Other languages
English (en)
French (fr)
Inventor
查敏
黄敬
张忠建
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP13825460.2A priority Critical patent/EP2869494A4/en
Publication of WO2014019451A1 publication Critical patent/WO2014019451A1/zh
Priority to US14/610,388 priority patent/US9553805B2/en
Priority to US15/364,007 priority patent/US10110555B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • H04L61/2525Translation at a client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method, device, and system for quickly notifying CGN anomalies.
  • IPv4 addresses tend to be exhausted, and the problem of shortage of IP addresses is very serious.
  • CGN Carrier Grade NAT, Carrier Grade NAT
  • NAT Network Address Translation
  • the role of NAT is to convert the internal address used by the PC in the internal private network to the external public network when the PC in the internal private network needs to contact the external public network. The legal address is thus used normally on the external public network. Since PCs in multiple internal private networks can share a legitimate address on an external public network, the problem of a shortage of IP addresses is somewhat relieved.
  • CGN Because CGN plays a very important role, in actual use, it is often required to have dual-system backup, or to recover quickly after restart. However, a large number of dynamic NAT entries are stored in the CGN. These entries are often difficult to back up in real time, and if the CGN is restarted, it is difficult to quickly restore these entries, resulting in PC users of the internal private network and external public networks. Connections must be re-established.
  • the PCP (Port Control Protocol) working group can use the PCP protocol to connect the PC users of the internal private network after the CGN restarts or the active/standby switchover to the external public network.
  • the prerequisite for this recovery is that the CPE (Customer Premise Equipment) connected to the PC of the internal private network can be quickly If the CGN device is restarted or the active/standby switchover is triggered, the CGN restart or the active/standby switchover is usually called a CGN exception.
  • the CGN exception is not limited to this.
  • the specific method of the first scheme includes: When the PCP Server (port control protocol server), that is, the CGN is abnormal, the unicast message is sent to each PCP Client (port control protocol client). That is, the CPE sends information indicating the Restart announce; when the PCP Client receives the information indicating the Restart announce, the PCP protocol transmits the NAT mapping information to the PCP Server.
  • PCP Server port control protocol server
  • the CPE sends information indicating the Restart announce
  • the PCP Client receives the information indicating the Restart announce
  • the PCP protocol transmits the NAT mapping information to the PCP Server.
  • the method of the second solution requires the PCP Server to recover all the PCP client information before the abnormal situation. In the case of a large number, the corresponding time will take longer. After the PCP server restarts or the active/standby switchover, the PCP server needs to be given. Sending a message to each PCP Client also increases the load on the PCP Server.
  • the specific method of the second solution includes: When the PCP server is in an abnormal situation, a Restart announce message is sent to each PCP client by multicast.
  • Embodiments of the present invention provide a method, device, and system for quickly notifying CGN anomalies, so that the load of the CGN is small, and the method can be applied to the most common application scenarios.
  • a method for quickly notifying a CGN anomaly comprising: an access router AR (Access Router) receiving a carrier-level network address translation device
  • the first packet includes information for indicating a restart notification, where a source address of the first packet is an address of the CGN, and the first packet is The destination address is the address of the AR;
  • the AR modifies the destination address of the first packet to the address of the CPE connected to the AR, to obtain the second text, where the AR is connected to the CPE.
  • the address of the CPE is a multicast address
  • the AR sends the second packet.
  • the AR, the destination address of the first packet is changed to an address of the CPE
  • the obtaining the second packet specifically includes: The source address of the packet is modified to the address of the AR, and the destination address of the first packet is modified to the address of the CPE, and the second packet is obtained.
  • the method further includes: adding a CGN address option to the second message to carry the CGN address.
  • the CGN address option includes:
  • An option code a reserved field, a length of the address of the CGN, and an address of the CGN; wherein the option code indicates a type of information of the restart notification.
  • the multicast address is 224.0.0.1; if the CPE belongs to an IPv6 network, the multicast The address is ff02:: 1.
  • an access router AR is provided, where the AR includes:
  • a receiving unit configured to receive a first packet sent by the carrier-level network address translation device CGN in a unicast manner; the first packet includes information for indicating a restart notification, where the source address of the first text is Address of the CGN, the destination address of the first message is an address of the AR;
  • a generating unit configured to modify, according to the first packet received by the receiving unit, the destination address of the first packet to an address of the CPE connected to the AR, to obtain the second packet
  • the AR is connected to the CPE through a Layer 2 network, and the address of the CPE is a multicast address;
  • a sending unit configured to send the second packet generated by the generating unit.
  • the generating unit is configured to modify, according to the first packet received by the receiving unit, a source address of the first packet to be the The address of the AR, the destination address of the first packet is modified to the address of the CPE, and the second packet is obtained.
  • the generating unit is configured to add a CGN address option to the second packet to carry the CGN address.
  • a system for quickly notifying CGN anomalies comprising:
  • the carrier-class network address translation device CGN the client device CPE, and the above-mentioned access router AR.
  • the embodiment of the present invention provides a method, a device, and a system for quickly notifying a CGN abnormality.
  • the CGN sends the first packet including the information for indicating the restart notification to the AR in a unicast manner, because the number of the AR is limited and static. Therefore, the load of the CGN is small when the second packet is sent to the AR, and the AR can quickly send the second packet including the information for indicating the restart notification to the CPE.
  • the method only needs to be a Layer 2 network between the AR and the CPE, thereby making the method applicable to the most common application scenarios.
  • FIG. 1 is a schematic diagram of a scenario for quickly notifying CGN anomalies in the prior art
  • FIG. 2 is a schematic diagram of another scenario for quickly notifying CGN anomalies in the prior art
  • FIG. 3 is a fast notification CGN exception according to an embodiment of the present invention
  • Schematic diagram of the scene
  • FIG. 4 is a schematic flow chart of a method for quickly notifying a CGN abnormality according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of an option format according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural block diagram of an AR according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic block diagram of another structure of an AR according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the embodiment of the present invention provides a method for quickly notifying a CGN abnormality.
  • the CGN sends a first packet including information for indicating a Restart announce to the AR in a unicast manner, and the AR according to the first report.
  • the second packet is generated, and the second packet is sent in multicast mode.
  • the method includes the following steps:
  • the CGN generates a first message and sends the message to the AR.
  • the first message includes information for indicating a Restart announce, where a source address of the first packet is an address of the CGN, and the first packet is sent.
  • the destination address of the text is the address of the AR.
  • the AR refers to the router closest to the CPE.
  • the information of the Restart announce indicates that the CGN is restarted or the active/standby switchover is taken as an example.
  • the present invention is not limited thereto, and any abnormality may occur in the CGN.
  • the AR may be a Broadband Remote Access Server (BRAS).
  • BRAS Broadband Remote Access Server
  • the source address of the first message generated by the CGN is an IP address of the CGN, and a destination address of the first message. That is, the IP address of the AR.
  • the first message may further include: a port number of the port where the AR receives the first packet.
  • the IP address of the CGN, the IP address of the AR, and the port number of the port on which the AR receives the first packet are encapsulated in the first packet. In the header.
  • the first packet generated by the CGN may be a UDP packet.
  • the information indicating the Restart announce may be encapsulated in the UDP packet, where the CGN is encapsulated in the header of the UDP packet.
  • the first packet is generated after the C GN is restarted or the active/standby switchover is abnormal.
  • the above-mentioned ARs are all ARs stored in the CGN AR list before the CGN restarts or the active/standby switchover. Therefore, in all embodiments of the present invention, the AR is at least one. After the CGN is restored, since the AR list is static and the number is relatively small, the saved AR list can be quickly restored for the CGN.
  • the corresponding CGN When the number of the ARs is multiple, the corresponding CGN generates a plurality of the first messages, and separately sends the first message to each AR in a unicast manner, that is, the CGN includes information for indicating a Restart announce.
  • the first message is sent to each AR in a unicast manner.
  • the first packet received by the AR is different.
  • the destination IP address of the first packet is different. That is to say, the destination address in the first packet received by each AR is the IP address of the AR.
  • the scheme description is performed from the perspective of only one AR, where one AR may be any one of all ARs in the AR list in the CGN, so no matter which AR A message received from the CGN including information indicating a Restart announce is referred to as a first message in all embodiments of the present invention.
  • the AR modifies the destination address of the first packet to the address of the CPE connected to the AR, to obtain the second packet, where the AR and the CPE pass the Layer 2 network. Connection, the address of the CPE is a multicast address.
  • the AR modifies the port number of the port that the AR receives the first packet to a port number that is used to instruct the CPE to receive the port of the second packet; if the same, the modification is not required.
  • the AR may further modify the source address of the first packet to an address of the AR.
  • the AR may determine an address of the CPE according to a network to which the CPE belongs, that is, determine a multicast address.
  • the multicast address is 224.0.0.1; If the CPE belongs to an IPv6 network, the multicast address is ff02::1.
  • the process of generating the second packet by using the first packet may be: if the AR receives the UDP packet sent by the CGN, where the packet includes the information for indicating the Restart announce, The AR, according to the network of the CPE (the IPv4 network or the IPv6 network), the destination address in the header of the UDP packet is modified to a multicast address corresponding to the network described by the CPE, that is, if the CPE belongs to In the IPv4 network, the multicast address is 224.0.0.1. If the CPE belongs to an IPv6 network, the multicast address is ff02::1.
  • the port number of the port that the AR receives the first packet in the header of the UDP packet is different from the port number used to indicate that the CPE receives the second packet
  • the port number of the port that the AR receives the first packet is modified to be a port number used to instruct the CPE to receive the port of the second packet; if they are the same, the AR does not need to be modified.
  • the AR also modifies the source address in the UDP header to the IP address of the AR.
  • the AR adds a CGN address option in the second message to carry the address of the CGN.
  • the CGN address option includes: an option code, a reserved field, a length of the address of the CGN, and an address of the CGN; wherein the option code indicates a type of information of the Restart announce.
  • the format of the option encapsulated in the second packet may be: the first byte indicates an option code, the second byte is a reserved field, and the third byte to the fourth byte indicate The length of the address of the CGN, the 4th byte to the 20th byte indicate the address of the CGN, that is, the IP address of the CGN.
  • the IP address of the CGN is an IPv4 address or an IPv6 address, and when the IP address of the CGN is an IPv4 address, the IPv4 is mapped to an IPv6 address.
  • the option can be a THIRD-PARTY for announce option.
  • the AR further adds a THIRD_PARTY for announce option in the second packet to carry the address of the CGN, that is, encapsulate the source address (the address of the CGN) of the first text in the first THIRD_PARTY for two messages Announce option.
  • the THIRD_PARTY for announce option is encapsulated in the second message.
  • the first byte may be 1, the type used to indicate the information of the Restart announce, the second byte.
  • the IP address of the CGN is, the type used to indicate the information of the Restart announce, the second byte.
  • the AR sends the second packet to the CPE according to a destination address in a header of the second packet.
  • the CPE after receiving the second packet, the CPE sends the NAT mapping information saved by the CPE to the CGN according to the IP address of the CGN in the header of the second packet.
  • the CGN establishes the NAT mapping information.
  • the NAT mapping information saved by the CPE is determined according to the IP address of the CGN in the THIRD_PARTY for announce option of the second packet. Sending to the CGN to request the CGN to establish the NAT mapping information.
  • the embodiment of the present invention provides a method for quickly notifying a CGN abnormality, where the CGN sends the first message including the information for indicating the restart notification to the AR in a unicast manner, because the number of the AR is limited and static,
  • the CGN has a small load when sending the second packet to the AR, and the AR can quickly send the second packet including the information for indicating the restart notification to the CPE by means of multicasting.
  • This method only needs to be a Layer 2 network between the AR and the CPE, which makes the method applicable to the most common application scenarios.
  • the embodiment of the present invention provides an AR 60, which can be applied to the foregoing method embodiments, and can perform all actions of the AR in the foregoing embodiment.
  • the AR 60 includes:
  • the receiving unit 601 is configured to receive a first message sent by the CGN in a unicast manner, where the first text includes information for indicating a Restart announce, where a source address of the first message is an address of the CGN, The destination address of the first packet is an address of the AR.
  • the source address of the first message generated by the CGN is an IP address of the CGN, and a destination address of the first message. That is, the IP address of the AR.
  • the first message may further include: a port number of the port where the AR receives the first packet.
  • the first packet generated by the CGN can be a UDP packet.
  • the information indicating the Restart announce may be encapsulated in the UDP packet, where the header of the UDP packet encapsulates the IP address of the CGN, the IP address of the AR, and the AR receiving station. Port number of the port of the first packet.
  • the generating unit 602 is configured to modify the destination address of the first packet to the address of the CPE connected to the AR according to the first packet received by the receiving unit 601, to obtain the second packet.
  • the AR is connected to the CPE through a Layer 2 network, and the address of the CPE is a multicast address.
  • the AR may determine an address of the CPE according to a network to which the CPE belongs, that is, determine a multicast address.
  • the multicast address is 224.0.0.1; if the CPE belongs to an IPv6 network, the multicast address is ff02::1.
  • the process of generating the second packet by using the first packet may be: if the AR receives the UDP packet sent by the CGN, where the packet includes the information for indicating the Restart announce,
  • the AR according to the network of the CPE (the IPv4 network or the IPv6 network), the destination address in the header of the UDP packet is modified to a multicast address corresponding to the network described by the CPE, that is, if the CPE belongs to In the IPv4 network, the multicast address is 224.0.0.1. If the CPE belongs to an IPv6 network, the multicast address is ff02::1.
  • the generating unit 602 modifies the port number of the port of the first packet to a port number used to instruct the CPE to receive the port of the second packet; if they are the same, no modification is needed.
  • the generating unit 602 is specifically configured to modify, according to the first packet received by the receiving unit 601, a source address of the first packet to an address of the AR, The destination address of the first packet is modified to the address of the CPE, and the second packet is obtained.
  • the receiving unit 601 receives a UDP message sent by the CGN, where the message includes information for indicating a Restart announce
  • the generating unit 602 is configured according to the CPE network (IPv4 network or IPv6). Networking, the destination address in the header of the UDP packet is modified to a multicast address corresponding to the network described by the CPE, that is, if the CPE belongs to an IPv4 network, the second destination address is multicast.
  • the address 224.0.0.1 if the CPE belongs to an IPv6 network, the second destination address is a multicast address ff02::1.
  • the port number of the port that the AR receives the first packet in the header of the UDP packet is different from the port number used to indicate that the CPE receives the second packet
  • the generating unit 602 the port number of the port that the AR receives the first packet is modified to be a port number used to instruct the CPE to receive the port of the second packet; if the same, the Need to be modified.
  • the generating unit 602 also modifies the source address in the header of the UDP address to the IP address of the AR.
  • the generating unit 602 is configured to add a CGN address option to the second ciphertext to carry the CGN address.
  • the option can be the THIRD_PARTY for announce option.
  • the THIRD_PART Y for announce option includes: an option code, a reserved field, a length of an address of the CGN, and an address of the CGN; wherein the option code indicates a type of information of the Restart announce .
  • the sending unit 603 is configured to send the second message generated by the generating unit 602.
  • the sending unit 603 is configured to send, according to the multicast address in a header of the second packet, the second information generated by the generating unit 602 to the CPE. .
  • the CPE After the CPE receives the second packet, sending the NAT mapping information saved by the CPE to the CGN according to the IP address of the CGN in the header of the second text.
  • the NAT mapping information is established by requesting the CGN.
  • the CPE After the CPE receives the second packet, according to the IP address of the CGN in the THIRD_PARTY for announce option in the second packet, Transmitting the NAT mapping information saved by the CPE to the CGN to request the CGN to establish the NAT mapping information.
  • the embodiment of the present invention provides an AR, where the CGN sends the first message including the information for indicating the restart notification to the AR in a unicast manner. Since the number of the AR is limited and static, the CGN is in the The AR sends a second packet with a small load. The AR can quickly send the second packet including the information for indicating the restart notification to the CPE.
  • the CPE is a Layer 2 network, which makes the method applicable to the most common application scenarios.
  • the embodiment of the present invention provides an AR 70, which can be applied to the foregoing method embodiments, and can perform all actions of the AR in the foregoing embodiment.
  • the AR 70 includes:
  • the protocol processing module 701 is configured to receive a first message that is sent by the CGN in a unicast manner, where the first message includes information for indicating a Restart announce, where a source address of the first source is the CGN The address of the first packet is the address of the AR.
  • the source address of the first message generated by the CGN is an IP address of the CGN, and a destination address of the first message. That is, the IP address of the AR.
  • the first message may further include: a port number of the port where the AR receives the first packet.
  • the processor 702 is configured to modify, according to the first packet received by the protocol processing module 701, the destination address of the first packet to an address of a CPE connected to the AR, to obtain the second packet.
  • the AR is connected to the CPE through a Layer 2 network, and the address of the CPE is a multicast address.
  • the AR may determine an address of the CPE according to a network to which the CPE belongs, that is, determine a multicast address.
  • the multicast address is 224.0.0.1; if the CPE belongs to an IPv6 network, the multicast address is ff02::1.
  • the process of generating the second packet by using the first packet may be: if the AR receives the UDP packet sent by the CGN, where the packet includes the information for indicating the Restart announce, Determining, by the AR, the destination address in the header of the UDP packet to the network according to the CPE network (IPv4 network or IPv6 network)
  • the multicast address corresponding to the network described by the CPE that is, if the CPE belongs to an IPv4 network, the multicast address is 224.0.0.1. If the CPE belongs to an IPv6 network, the multicast address is ff02: : l.
  • the processor 702 modifies the port number of the port of the first packet to a port number used to instruct the CPE to receive the port of the second packet; if they are the same, no modification is needed.
  • the processor 702 is specifically configured to modify, according to the first packet received by the protocol processing module 701, the source address of the first packet to an address of the AR, where the first packet is The destination address is modified to the address of the CPE, and the second packet is obtained.
  • the processor 702 is configured to add a CGN address option to the second packet to carry the CGN address.
  • the option can be the THIRD_PARTY for announce option.
  • the THIRD_PART Y for announce option includes: an option code, a reserved field, a length of an address of the CGN, and an address of the CGN; wherein the option code indicates a type of information of the Restart announce .
  • the protocol processing module 701 is further configured to send the second packet generated by the processor 702.
  • the protocol processing module 701 is configured to send the second packet generated by the processor 702 to the CPE according to the multicast address in a header of the second packet. .
  • the CPE After the CPE receives the second packet, sending the NAT mapping information saved by the CPE to the CGN according to the IP address of the CGN in the header of the second text.
  • the NAT mapping information is established by requesting the CGN.
  • the NAT mapping of the CPE is saved according to the IP address of the CGN in the THIRD_PARTY for announce option in the second packet.
  • Information is sent to the CGN to request the CGN to establish the NAT mapping information.
  • An embodiment of the present invention provides an AR, where the CGN will include a notification for restarting the notification.
  • the first packet of the information is sent to the AR in a unicast manner. Since the number of the ARs is limited and static, the load of the CGN is small when the second packet is sent to the AR.
  • the second packet including the information for indicating the restart notification can be quickly sent to the CPE.
  • the method only needs to be a Layer 2 network between the AR and the CPE, thereby making the method applicable to the most popular applications. Scenes.
  • the CGN when the PCP protocol is used, the CGN may be a PCP Server; and the CPE may be a PCP Client.
  • the embodiment of the present invention provides a system for quickly notifying a CGN abnormality, including: a CGN, a CPE, and the AR provided in the foregoing embodiment, where the structure of the AR has been described in the foregoing embodiment, where No longer.
  • the embodiment of the present invention provides a system for quickly notifying a CGN abnormality, where the CGN sends the first packet including the information for indicating the restart notification to the AR in a unicast manner, because the number of the AR is limited and static, so The CGN has a small load when sending the second packet to the AR, and the AR can quickly send the second packet including the information for indicating the restart notification to the CPE by means of multicasting.
  • This method only needs to be a Layer 2 network between the AR and the CPE, which makes the method applicable to the most common application scenarios.

Landscapes

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

Abstract

本发明实施例提供了一种快速通知CGN异常的方法、设备及系统,涉及网络通信领域,可使CGN在重建NAT映射时的负荷较小,同时,该方法可适用最普遍的应用场景。该方法包括:AR接收CGN以单播方式发送的第一报文;所述第一报文中包括用于指示重启通知的信息,所述第一报文的源地址是所述CGN的地址,所述第一报文的目的地址是所述AR的地址;所述AR将所述第一报文的目的地址修改为与所述AR连接的CPE的地址,得到所述第二报文;其中,所述AR与所述CPE通过二层网络连接,所述CPE的地址为组播地址;所述AR发送所述第二报文。用于当CGN发生重启或主备倒换后,快速通知CPE所述CGN发生重启或主备倒换等异常。

Description

一种快速通知 CGN异常的方法、 设备及系统 本申请要求于 2012年 8月 3日提交中国专利局、 申请号为
201210274452.X, 发明名称为 "一种快速通知 CGN 异常的方法、 设备 及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申 请中。 技术领域 本发明涉及网络通信领域, 尤其涉及一种快速通知 CGN异常的方 法、 设备及系统。
背景技术 目前 IPv4的地址趋于枯竭, IP地址短缺的问题非常严重, 现阶 段通过在运营商网络中部署 CGN ( Carrier Grade NAT , 运营级 NAT 设备 ) 来暂时緩解 IP地址短缺的问题。 其中 NAT ( Network Address Translation, 网络地址转换) 的作用, 即为, 当处于内部专用网络中 的 PC需要与外部公共网络发生联系时, 将内部专用网络中的 PC使 用的内部地址转换成外部公共网上的合法的地址,从而在外部公共网 络上正常使用。 由于多个内部专用网络中的 PC可共享一个外部公共 网上的合法的地址,使得 IP地址短缺的问题在一定程度上得到緩解。
由于 CGN扮演着十分重要的角色, 在实际使用中, 往往要求有 双机备份, 或能重启后快速恢复。 然而 CGN内存储着数量巨大的动 态 NAT表项, 这些表项往往很难实时备份, 而且 CGN如果重启后, 也很难快速恢复这些表项, 从而导致内部专用网络的 PC用户与外部 公共网络的连接都必须重新建立。
IETF ( Internet Engineering Task Force , 因特网工程任务组) PCP ( Port Control Protocol, 端口控制协议)工作组, 利用 PCP协议可以 将 CGN重启或主备倒换后的内部专用网络的 PC用户与外部公共网 络的连接建立起来。 但实现这种恢复的前提是与内部专用网络的 PC 相连接的 CPE ( Customer Premise Equipment, 用户端设备) 能迅速 感知 CGN设备重启或主备倒换, 通常将 CGN重启或主备倒换称作 CGN异常, 但 CGN异常不限于此。
目前, 方案一的具体方法, 参照图 1所示, 包括: 当 PCP Server (端口控制协议服务器) , 即, CGN 在异常情况下, 通过单播消息 的方式给每个 PCP Client (端口控制协议客户端) 即, CPE发送用于 指示 Restart announce (重启通知)的信息; 当 PCP Client接收到所述用 于指示 Restart announce的信息时,利用 PCP协议向 PCP Server发送 NAT映射信息。
但是方案二的方法需要 PCP Server在异常情况下, 恢复其在异 常情况前的所有 PCP Client信息, 由于数量巨大, 相应的需要时间会 较长; 而且 PCP Server在重启或主备倒换后, 需要给每个 PCP Client 发送消息, 也会增加 PCP Server的负荷。
方案二的具体方法, 参照图 2所示, 包括: 当 PCP Server在异 常情况下, 通过组播的方式给每个 PCP Client发送 Restart announce 消息。
但是方案三的方法中, 其仅适用于 PCP Server与 PCP Client之间 的网络为二层网络的情况, 适应范围较小, 不能适用于目前最普遍的 应用场景。 发明内容 本发明的实施例提供一种快速通知 CGN异常的方法、 设备及系 统, 使得 CGN的负荷较小, 同时, 该方法可适用最普遍的应用场景。
为达到上述目的, 本发明的实施例釆用如下技术方案:
第一方面,提供了一种快速通知 CGN异常的方法,该方法包括: 接入路由器 AR ( Access Router ) 接收运营级网络地址翻译设备
CGN 以单播方式发送的第一报文; 所述第一报文中包括用于指示重 启通知的信息, 所述第一报文的源地址是所述 CGN的地址, 所述第 一报文的目的地址是所述 AR的地址;
所述 AR将所述第一报文的目的地址修改为与所述 AR连接的所 述 CPE的地址, 得到所述第二 文; 其中, 所述 AR与所述 CPE通 过二层网络连接,所述 CPE的地址为组播地址;
所述 AR发送所述第二报文。
在第一方面的第一种可能的实现方式中,所述 AR将所述第一报 文的目的地址修改为所述 CPE的地址, 得到所述第二报文具体包括: 将所述第一报文的源地址修改为所述 AR 的地址,所述第一报文的目 的地址修改为所述 CPE的地址,得到所述第二报文。
结合第一方面的第一种可能的实现方式,在第一方面的第二种可 能的实现方式中,进一步包括:在所述第二 4艮文中增加 CGN地址选项 以携带所述 CGN地址。
在第一方面的第二种可能的实现方式的基础上, 所述 CGN地址 选项包括:
选项代码、 预留字段、 所述 CGN的地址的长度、 以及所述 CGN 的地址; 其中, 所述选项代码指示所述重启通知的信息的类型。
在第一方面与第一方面的上述各种可能的实现方式中, 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 ; 若所述 CPE属于 IPv6网络, 则所述组播地址为 ff02:: 1。
第二方面, 提供了一种接入路由器 AR, 该 AR包括:
接收单元, 用于接收运营级网络地址翻译设备 CGN以单播方式 发送的第一报文; 所述第一报文中包括用于指示重启通知的信息, 所 述第一 文的源地址是所述 CGN的地址, 所述第一 ^艮文的目的地址 是所述 AR的地址;
生成单元, 用于根据所述接收单元接收的所述第一报文, 将所述 第一报文的目的地址修改为与所述 AR连接的所述 CPE的地址, 得 到所述第二报文; 其中, 所述 AR与所述 CPE通过二层网络连接,所 述 CPE的地址为组播地址; ;
发送单元, 用于发送所述生成单元生成的所述第二报文。
在第二方面的第一种可能的实现方式中, 所述生成单元, 具体用 于根据所述接收单元接收的所述第一报文,将所述第一报文的源地址 修改为所述 AR的地址,所述第一报文的目的地址修改为所述 CPE的 地址,得到所述第二报文。
结合第二方面的第一种可能的实现方式,在第二方面的第二种可 能的实现方式中, 所述生成单元, 用于在所述第二报文中增加 CGN 地址选项以携带所述 CGN地址。
第三方面, 提供了一种快速通知 CGN异常的的系统, 该系统包 括:
运营级网络地址翻译设备 CGN, 用户端设备 CPE, 及上述的接 入路由器 AR。
本发明实施例提供了一种快速通知 CGN异常的方法、设备及系统, CGN将包括用于指示重启通知的信息的第一报文以单播方式发送到 AR, 由于 AR的数量有限而且为静态, 因此, 使得 CGN在向所述 AR发 送第二报文时的负荷较小, AR通过组播的方式将可快速的将包括所述 用于指示重启通知的信息的第二报文发送到 CPE , 同时, 该方法只需 AR与 C P E之间为二层网络,由此使得该方法可适用最普遍的应用场景。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例 ,对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。
图 1为现有技术中一种快速通知 CGN异常的场景示意图; 图 2为现有技术中另一种快速通知 CGN异常的场景示意图; 图 3为本发明实施例提供的一种快速通知 CGN异常的场景示意 图;
图 4为本发明实施例提供的一种快速通知 CGN异常的方法的流 程示意框图;
图 5为本发明实施例提供的一种选项格式示意图;
图 6为本发明实施例提供的 AR的结构示意框图;
图 7为本发明实施例提供的 AR的另一结构示意框图。 具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的 范围。
本发明实施例提供了一种快速通知 CGN异常的方法,参照图 3 , CGN以单播方式发送包括用于指示 Restart announce的信息的第一报 文到所述 AR, AR根据所述第一报文生成第二报文, 并以组播方式 发送第二报文。
如图 4所示, 该方法包括如下步骤:
S101、 CGN生成第一 4艮文并发送到 AR; 其中, 该第一 文中包 括用于指示 Restart announce的信息, 所述第一报文的源地址是所述 CGN的地址, 所述第一报文的目的地址是所述 AR的地址。
需要说明的是, 优选的, 在本发明所有实施例中的 AR都指距离 CPE最近的路由器。 在本发明所有实施例中以所述 Restart announce 的信息指示 CGN发生重启或主备倒换为例进行说明, 但本发明并不 限于此, 可以为 CGN发生任意异常的情况。
示例性的, 所述 AR可以为宽带接入服务器 ( Broadband Remote Access Server,简称 BRAS ) 。
可选的, 当 CGN发生重启或主备倒换等异常时, 所述 CGN生 成的第一^艮文的源地址, 即为所述 CGN的 IP地址, 所述第一^艮文的 目的地址, 即为所述 AR的 IP地址。 进一步的, 所述第一^艮文中还 可以包括: 所述 AR接收所述第一报文的端口的端口号。
其中, 在第一 ^艮文中所述 CGN的 IP地址、 所述 AR的 IP地址、 及所述 AR接收所述第一报文的端口的端口号,都被封装在所述第一 报文的报头中。
示例性的, 当 CGN发生重启或主备倒换, 该 CGN生成的第一 报文中可以为 UDP报文。 其中, 所述用于指示 Restart announce的信 息可被封装在该 UDP报文中,该 UDP报文的报头中封装有所述 CGN 的 IP地址、 所述 AR的 IP地址、 及所述 AR接收所述第一 ^艮文的端 口的端口号。
需要说明的是, 当所述 C GN发生重启或主备倒换等异常情况后 才会生成上述第一报文。 上述的 AR即为 CGN发生重启或主备倒换 等异常前保存在 CGN的 AR列表中的所有 AR,因此在本发明所有实 施例中, AR为至少一个。 当 CGN恢复后, 由于 AR列表为静态且数 量相对较少, 因此, 对于 CGN来说可快速的恢复保存的该 AR列表。
当 AR为多个时, 相应的 CGN生成多个所述第一 4艮文, 并以单 播方式向每个 AR分别发送所述第一报文, 即 CGN将包括用于指示 Restart announce的信息的第一报文以单播的方式发送到每个 AR。对 于每个 AR来说, 其收到的第一报文唯一不同的是, 第一报文的目的 地 AR的 IP地址不同。 也就是说, 每个 AR收到的第一报文中的目 的地址即为本 AR地 IP地址。
此处需要说明的是,在本发明所有实施例中仅从一个 AR的角度 进行方案描述, 此处的一个 AR可以为 CGN中的 AR列表中的所有 AR中的任一个,因此不管是哪个 AR收到来自 CGN发送的包括用于 指示 Restart announce的信息的报文, 在本发明所有实施例中都称为 第一报文。
S102、所述 AR将所述第一报文的目的地址修改为与所述 AR连 接的所述 CPE的地址, 得到所述第二报文; 其中, 所述 AR与所述 CPE通过二层网络连接,所述 CPE的地址为组播地址。
此外, 当所述第一报文中包含的所述 AR接收所述第一报文的端 口的端口号与用于指示所述 CPE接收所述第二报文的端口的端口号 为不同时, 则, 所述 AR将所述 AR接收所述第一报文的端口的端口 号修改为用于指示所述 CPE接收所述第二报文的端口的端口号; 若 相同, 则不需要修改。
进一步地,所述 AR还可以将所述第一报文的源地址修改为所述 AR的地址。
其中, 在下面所有实施例中, 所述 AR可根据所述 CPE所属的 网络, 确定所述 CPE的地址, 即确定组播地址。
具体的可以为, 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 ; 若所述 CPE属于 IPv6网络, 则所述组播地址为 ff02: : l。 示例性的, 所述第一报文生成所述第二报文的过程可以为: 若 AR接收到来自 CGN发送的 UDP报文, 该报文中包括所述用于指示 Restart announce的信息, 则所述 AR根据所述 CPE的网络 ( IPv4网 络或 IPv6 网络) , 将 UDP报文的报头中的目的地址修改为与所述 CPE所述的网络对应的组播地址, 即, 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 , 若所述 CPE属于 IPv6网络, 则所述组 播地址为 ff02: : l。
此外, 若所述 UDP报文的报头中包括的所述 AR接收所述第一 报文的端口的端口号与用于指示所述 CPE接收所述第二报文的端口 的端口号为不同时, 则, 所述 AR将所述 AR接收所述第一报文的端 口的端口号修改为用于指示所述 CPE接收所述第二报文的端口的端 口号; 若相同, 则不需要修改。
所述 AR还将所述 UDP ^艮文的 ^艮头中的源地址修改为所述 AR 的 IP地址。
进一步地, 所述 AR在所述第二 ^艮文中增加 CGN地址选项以携 带所述 CGN的地址。
其中,所述 CGN地址选项包括:选项代码、预留字段、所述 CGN 的地址的长度、 以及所述 CGN的地址; 其中, 所述选项代码指示所 述 Restart announce的信息的类型。
如图 5所示, 所述选项封装在所述第二报文中的格式可以为: 第 1字节指示选项代码, 第 2字节为预留字段, 第 3字节至第 4 字节指示所述 CGN的地址的长度, 第 4字节至第 20字节指示所述 CGN的地址, 即所述 CGN的 IP地址。 其中, 所述 CGN的 IP地址 为 IPv4地址或 IPv6地址, 且当所述 CGN的 IP地址为 IPv4地址时, 使用 IPv4映射成 IPv6的地址形式表示。
所述选项可以为 THIRD— PARTY for announce (第三方通知) 选 项。
示例性的, 所述 AR 在第二报文中还增加 THIRD— PARTY for announce选项以携带所述 CGN的地址, 即, 将所述第一 文的源地 址 ( CGN 的地址) 封装在所述第二报文的 THIRD_PARTY for announce选项申。
所述 THIRD— PARTY for announce选项封装在所述第二报文中, 参照图 5 所示, 第 1 字节可以为 1 , 该 " 用来指示所述 Restart announce的信息的类型, 第 2字节为预留字段, 第 3字节至第 4字 节可以为 16 , 用来指示所述 CGN的 IP地址的长度, 即为 16 x 8=128 比特, 第 4字节至第 20字节为指示所述 CGN的 IP地址。
需要说明的是, 上述示例过程没有时间上顺序的限制, 以实际应 用过程为准。
S103、 所述 AR发送所述第二 ^艮文。
所述 AR根据所述第二报文的报头中的目的地址,将所述第二报 文发送到所述 CPE。
可选的, 当所述 CPE接收到所述第二报文后, 根据所述第二报 文的 头中的 CGN的 IP地址, 将所述 CPE保存的 NAT映射信息发 送到所述 CGN以请求 CGN建立所述 NAT映射信息。
可选的, 当所述 CPE接收到所述第二报文后, 根据所述第二报 文的 THIRD— PARTY for announce选项中的所述 CGN的 IP地址, 将 所述 CPE保存的 NAT映射信息发送到所述 CGN以请求 CGN建立所 述 NAT映射信息。
本发明实施例提供了一种快速通知 CGN异常的方法, CGN将包 括用于指示重启通知的信息的第一报文以单播方式发送到 AR, 由于 AR的数量有限而且为静态, 因此,使得 CGN在向所述 AR发送第二 报文时的负荷较小, AR通过组播的方式将可快速的将包括所述用于 指示重启通知的信息的第二 ^艮文发送到 CPE, 同时, 该方法只需 AR 与 CPE之间为二层网络, 由此使得该方法可适用最普遍的应用场景。
本发明实施例提供了一种 AR 60 , 能够应用在上述方法实施例 中, 可以执行上述实施例中 AR的所有动作, 如图 6所示, 该 AR 60 包括:
接收单元 601 , 用于接收 CGN以单播方式发送的第一报文; 所 述第一 文中包括用于指示 Restart announce的信息, 所述第一 4艮文 的源地址是所述 CGN 的地址, 所述第一报文的目的地址是所述 AR 的地址。 可选的, 当 CGN发生重启或主备倒换等异常时, 所述 CGN生 成的第一^艮文的源地址, 即为所述 CGN的 IP地址, 所述第一^艮文的 目的地址, 即为所述 AR的 IP地址。 进一步的, 所述第一^艮文中还 可以包括: 所述 AR接收所述第一报文的端口的端口号。
示例性的, 当 CGN发生重启或主备倒换等异常时, 该 CGN生 成的第一报文可以为 UDP报文。其中,所述用于指示 Restart announce 的信息可被封装在该 UDP报文中,该 UDP报文的报头中封装有所述 CGN的 IP地址、 所述 AR的 IP地址、 及所述 AR接收所述第一报文 的端口的端口号。
生成单元 602 ,用于根据所述接收单元 601接收的所述第一报文, 将所述第一报文的目的地址修改为与所述 AR连接的 CPE的地址, 得到所述第二报文; 其中, 所述 AR与所述 CPE通过二层网络连接, 所述 CPE的地址为组播地址。
所述 AR可根据所述 CPE所属的网络, 确定所述 CPE的地址, 即确定组播地址。
具体的可以为, 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 ; 若所述 CPE属于 IPv6网络, 则所述组播地址为 ff02: : l。
示例性的, 所述第一报文生成所述第二报文的过程可以为: 若 AR接收到来自 CGN发送的 UDP报文, 该报文中包括所述用于指示 Restart announce的信息, 则所述 AR根据所述 CPE的网络 ( IPv4网 络或 IPv6 网络) , 将 UDP报文的报头中的目的地址修改为与所述 CPE所述的网络对应的组播地址, 即, 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 , 若所述 CPE属于 IPv6网络, 则所述组 播地址为 ff02: : l。
此外, 当所述第一报文中包含的所述 AR接收所述第一报文的端 口的端口号与用于指示所述 CPE接收所述第二报文的端口的端口号 为不同时, 则, 所述生成单元 602将所述第一报文的端口的端口号修 改为用于指示所述 CPE接收所述第二报文的端口的端口号; 若相同, 则不需要修改。
所述生成单元 602 , 具体可用于根据所述接收单元 601接收的所 述第一报文, 将所述第一报文的源地址修改为所述 AR 的地址,所述 第一报文的目的地址修改为所述 CPE的地址,得到所述第二报文。 示例性的, 若所述接收单元 601 接收到来自 CGN发送的 UDP 报文, 该报文中包括用于指示 Restart announce的信息, 则所述生成 单元 602根据所述 CPE的网络 ( IPv4 网络或 IPv6 网络) , 将 UDP 报文的报头中的目的地址修改为与所述 CPE所述的网络对应的组播 地址, 即, 若所述 CPE属于 IPv4网络, 则所述第二目的端地址为组 播地址 224.0.0.1 , 若所述 CPE属于 IPv6网络, 则所述第二目的端地 址为组播地址 ff02: : l。
此外, 若所述 UDP报文的报头中包括的所述 AR接收所述第一 报文的端口的端口号与用于指示所述 CPE接收所述第二报文的端口 的端口号为不同时, 则, 所述生成单元 602将所述 AR接收所述第一 报文的端口的端口号修改为用于指示所述 CPE接收所述第二报文的 端口的端口号; 若相同, 则不需要修改。
所述生成单元 602还将所述 UDP ^艮文的 头中的源地址修改为 所述 AR的 IP地址。
进一步地,所述生成单元 602 ,用于在所述第二 ^艮文中增加 CGN 地址选项以携带所述 CGN地址。
所述选项可以为 THIRD— PARTY for announce选项。
其中, 所述 THIRD— PART Y for announce选项包括: 选项代码、 预留字段、 所述 CGN的地址的长度、 以及所述 CGN的地址; 其中, 所述选项代码指示所述 Restart announce的信息的类型。 所述选项封 装在所述第二报文中的格式可参照方法实施例, 在此不再赘述。
发送单元 603 ,用于发送所述生成单元 602生成的所述第二 ^艮文。 示例性的, 所述发送单元 603 , 用于根据所述第二报文的报头中 的所述组播地址,将所述生成单元 602生成的所述第二 ^艮文发送到与 所述 CPE。
进一步可选的, 当所述 CPE接收到所述第二报文后, 根据所述 第二 文的 头中的所述 CGN的 IP地址, 将所述 CPE保存的 NAT 映射信息发送到所述 CGN以请求 CGN建立所述 NAT映射信息。
可选的, 当所述 CPE接收到所述第二报文后, 根据所述第二报 文中的 THIRD— PARTY for announce选项中的所述 CGN的 IP地址, 将所述 CPE保存的 NAT映射信息发送到所述 CGN以请求 CGN建立 所述 NAT映射信息。
本发明实施例提供了一种 AR , CGN将包括用于指示重启通知的 信息的第一报文以单播方式发送到 AR, 由于 AR的数量有限而且为 静态, 因此, 使得 CGN在向所述 AR发送第二报文时的负荷较小, AR通过组播的方式将可快速的将包括所述用于指示重启通知的信息 的第二报文发送到 CPE, 同时, 该方法只需 AR与 CPE之间为二层 网络, 由此使得该方法可适用最普遍的应用场景。
本发明实施例提供了一种 AR 70 , 能够应用在上述方法实施例 中, 可以执行上述实施例中 AR的所有动作, 如图 7所示, 该 AR 70 包括:
协议处理模块 701 ,用于接收 CGN以单播方式发送的第一报文; 所述第一^艮文中包括用于指示 Restart announce的信息, 所述第一才艮 文的源地址是所述 CGN的地址, 所述第一报文的目的地址是所述 AR 的地址。
可选的, 当 CGN发生重启或主备倒换等异常时, 所述 CGN生 成的第一^艮文的源地址, 即为所述 CGN的 IP地址, 所述第一^艮文的 目的地址, 即为所述 AR的 IP地址。 进一步的, 所述第一^艮文中还 可以包括: 所述 AR接收所述第一报文的端口的端口号。
处理器 702 , 用于根据所述协议处理模块 701接收的所述第一报 文, 将所述第一报文的目的地址修改为与所述 AR连接的 CPE的地 址, 得到所述第二报文; 其中, 所述 AR与所述 CPE通过二层网络 连接,所述 CPE的地址为组播地址。
所述 AR可根据所述 CPE所属的网络, 确定所述 CPE的地址, 即确定组播地址。
具体的可以为, 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 ; 若所述 CPE属于 IPv6网络, 则所述组播地址为 ff02: : l。
示例性的, 所述第一报文生成所述第二报文的过程可以为: 若 AR接收到来自 CGN发送的 UDP报文, 该报文中包括所述用于指示 Restart announce的信息, 则所述 AR根据所述 CPE的网络 ( IPv4网 络或 IPv6 网络) , 将 UDP报文的报头中的目的地址修改为与所述 CPE所述的网络对应的组播地址, 即 , 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 , 若所述 CPE属于 IPv6网络, 则所述组 播地址为 ff02: : l。
此外, 当所述第一报文中包含的所述 AR接收所述第一报文的端 口的端口号与用于指示所述 CPE接收所述第二报文的端口的端口号 为不同时, 则, 所述处理器 702将所述第一报文的端口的端口号修改 为用于指示所述 CPE接收所述第二报文的端口的端口号; 若相同, 则不需要修改。
所述处理器 702 , 具体用于根据所述协议处理模块 701接收的所 述第一报文, 将所述第一报文的源地址修改为所述 AR 的地址,所述 第一报文的目的地址修改为所述 CPE的地址,得到所述第二报文。
进一步地, 所述处理器 702 , 用于在所述第二报文中增加 CGN 地址选项以携带所述 CGN地址。
所述选项可以为 THIRD— PARTY for announce选项。
其中, 所述 THIRD— PART Y for announce选项包括: 选项代码、 预留字段、 所述 CGN的地址的长度、 以及所述 CGN的地址; 其中, 所述选项代码指示所述 Restart announce的信息的类型。 所述选项封 装在所述第二报文中的格式可参照方法实施例, 在此不再赘述。
所述协议处理模块 701 , 还用于发送所述处理器 702生成的所述 第二报文。
示例性的, 所述协议处理模块 701 , 用于根据所述第二报文的报 头中的所述组播地址,将所述处理器 702生成的所述第二报文发送到 与所述 CPE。
进一步可选的, 当所述 CPE接收到所述第二报文后, 根据所述 第二 文的 头中的所述 CGN的 IP地址, 将所述 CPE保存的 NAT 映射信息发送到所述 CGN以请求 CGN建立所述 NAT映射信息。
可选的, 当所述 CPE接收到所述第二报文后, 根据所述第二报 文中的 THIRD— PARTY for announce选项中的所述 CGN的 IP地址, 将所述 CPE保存的 NAT映射信息发送到所述 CGN以请求 CGN建立 所述 NAT映射信息。
本发明实施例提供了一种 AR , CGN将包括用于指示重启通知的 信息的第一报文以单播方式发送到 AR, 由于 AR的数量有限而且为 静态, 因此, 使得 CGN在向所述 AR发送第二报文时的负荷较小, AR通过组播的方式将可快速的将包括所述用于指示重启通知的信息 的第二报文发送到 CPE, 同时, 该方法只需 AR与 CPE之间为二层 网络, 由此使得该方法可适用最普遍的应用场景。
对于上述 AR ,当釆用 PCP协议时,所述 CGN可以为 PCP Server; 所述 CPE可以为 PCP Client。
本发明实施例提供了一种快速通知 CGN异常的系统, 包括: CGN, CPE, 及上述实施例中提供的所述 AR, 其中所述 AR的 结构已在上述实施例中有过说明, 在此不再赘述。
本发明实施例提供了一种快速通知 CGN异常的系统, CGN将包 括用于指示重启通知的信息的第一报文以单播方式发送到 AR, 由于 AR的数量有限而且为静态, 因此,使得 CGN在向所述 AR发送第二 报文时的负荷较小, AR通过组播的方式将可快速的将包括所述用于 指示重启通知的信息的第二 ^艮文发送到 CPE, 同时, 该方法只需 AR 与 CPE之间为二层网络, 由此使得该方法可适用最普遍的应用场景。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范 围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为准。

Claims

权利要求
1、 一种快速通知 CGN异常的方法, 其特征在于, 包括: 接入路由器 AR接收运营级网络地址翻译设备 CGN以单播方式 发送的第一报文; 所述第一报文中包括用于指示重启通知的信息, 所 述第一 文的源地址是所述 CGN的地址, 所述第一 ^艮文的目的地址 是所述 AR的地址;
所述 AR将所述第一报文的目的地址修改为与所述 AR连接的端 用户端设备 CPE的地址, 得到所述第二报文; 其中, 所述 AR与所 述 CPE通过二层网络连接,所述 CPE的地址为组播地址;
所述 AR发送所述第二报文。
2、 根据权利要求 1所述的方法, 其特征在于, 所述 AR将所述 第一报文的目的地址修改为所述 CPE的地址, 得到所述第二报文具 体包括:将所述第一报文的源地址修改为所述 AR的地址,所述第一报 文的目的地址修改为所述 CPE的地址,得到所述第二报文。
3、 根据权利要求 2所述的方法, 其特征在于, 进一步包括:在所 述第二报文中增加 CGN地址选项以携带所述 CGN的地址。
4、 根据权利要求 3 所述的方法, 其特征在于, 所述 CGN地址 选项包括:
选项代码、 预留字段、 所述 CGN的地址的长度、 以及所述 CGN 的地址; 其中, 所述选项代码指示所述重启通知的信息的类型。
5、 根据权利要求 1至 4任一项所述的方法, 其特征在于, 包括: 若所述 CPE属于 IPv4网络, 则所述组播地址为 224.0.0.1 ;
若所述 CPE属于 IPv6网络, 则所述组播地址为 ff02:: 1。
6、 一种接入路由器 AR, 其特征在于, 包括:
接收单元, 用于接收运营级网络地址翻译设备 CGN以单播方式 发送的第一报文; 所述第一报文中包括用于指示重启通知的信息, 所 述第一 文的源地址是所述 CGN的地址, 所述第一 ^艮文的目的地址 是所述 AR的地址;
生成单元, 用于根据所述接收单元接收的所述第一报文, 将所述 第一报文的目的地址修改为与所述 AR连接的端用户端设备 CPE的 地址, 得到所述第二报文; 其中, 所述 AR与所述 CPE通过二层网 络连接,所述 CPE的地址为组播地址; 发送单元, 用于发送所述生成单元生成的所述第二报文。
7、 根据权利要求 6所述的 AR, 其特征在于, 包括:
所述生成单元, 具体用于根据所述接收单元接收的所述第一报 文, 将所述第一报文的源地址修改为所述 AR 的地址,所述第一报文 的目的地址修改为所述 CPE的地址,得到所述第二报文。
8、 根据权利要求 7所述的 AR, 其特征在于, 包括:
所述生成单元, 用于在所述第二 ^艮文中增加 CGN地址选项以携 带所述 CGN地址。
9、 一种快速通知 CGN异常的系统, 其特征在于, 包括: 运营级网络地址翻译设备 CGN, 用户端设备 CPE, 及权利要求 6至 任一项所述的接入路由器 AR。
PCT/CN2013/079373 2012-08-03 2013-07-15 一种快速通知cgn异常的方法、设备及系统 WO2014019451A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP13825460.2A EP2869494A4 (en) 2012-08-03 2013-07-15 METHOD, DEVICE AND SYSTEM FOR FAST MESSAGE OF A CGN EXCEPTION
US14/610,388 US9553805B2 (en) 2012-08-03 2015-01-30 Method, device, and system for quickly informing CGN exception
US15/364,007 US10110555B2 (en) 2012-08-03 2016-11-29 Method, device, and system for quickly informing CGN exception

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210274452.X 2012-08-03
CN201210274452.XA CN103580880B (zh) 2012-08-03 2012-08-03 一种快速通知cgn异常的方法、设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/610,388 Continuation US9553805B2 (en) 2012-08-03 2015-01-30 Method, device, and system for quickly informing CGN exception

Publications (1)

Publication Number Publication Date
WO2014019451A1 true WO2014019451A1 (zh) 2014-02-06

Family

ID=50027227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079373 WO2014019451A1 (zh) 2012-08-03 2013-07-15 一种快速通知cgn异常的方法、设备及系统

Country Status (4)

Country Link
US (2) US9553805B2 (zh)
EP (1) EP2869494A4 (zh)
CN (1) CN103580880B (zh)
WO (1) WO2014019451A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3185473A4 (en) * 2014-08-21 2017-08-16 ZTE Corporation Backup protection method and device for carrier grade nat (cgn)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685586B (zh) * 2012-09-07 2018-09-04 中兴通讯股份有限公司 一种实现地址共享的方法、装置和系统
EP3105884A4 (en) 2014-02-11 2018-03-21 Yaana Technologies, LLC Mathod and system for metadata analysis and collection with privacy
US10447503B2 (en) 2014-02-21 2019-10-15 Yaana Technologies, LLC Method and system for data flow management of user equipment in a tunneling packet data network
US10334037B2 (en) 2014-03-31 2019-06-25 Yaana Technologies, Inc. Peer-to-peer rendezvous system for minimizing third party visibility and method thereof
US10285038B2 (en) 2014-10-10 2019-05-07 Yaana Technologies, Inc. Method and system for discovering user equipment in a network
US10542426B2 (en) 2014-11-21 2020-01-21 Yaana Technologies, LLC System and method for transmitting a secure message over a signaling network
US10257248B2 (en) 2015-04-29 2019-04-09 Yaana Technologies, Inc. Scalable and iterative deep packet inspection for communications networks
CN106302841A (zh) * 2015-05-18 2017-01-04 中兴通讯股份有限公司 一种运营商级网络地址转换的方法及装置
EP3375155A4 (en) * 2015-11-13 2019-08-14 Yaana Technologies, LLC SYSTEM AND METHOD FOR DISCOVERING INTERNET PROTOCOL (IP) NETWORK ADDRESS LINKS AND PORT TRANSLATION
WO2017116399A1 (en) * 2015-12-28 2017-07-06 Hewlett Packard Enterprise Development Lp Packet distribution based on an identified service function
JP6558492B2 (ja) * 2016-03-16 2019-08-14 日本電気株式会社 ネットワークアドレス変換装置、設定要求装置、通信システム、通信方法およびプログラム
CN106878117B (zh) * 2016-12-15 2020-12-29 新华三技术有限公司 一种数据处理方法及装置
CN108989271B (zh) * 2017-06-05 2022-06-10 中兴通讯股份有限公司 一种家庭网关端口防攻击的方法和装置
US11245664B2 (en) * 2020-06-17 2022-02-08 Cisco Technology, Inc. Conveying network-address-translation (NAT) rules in a network
CN115708384A (zh) * 2021-08-20 2023-02-21 中兴通讯股份有限公司 分布式业务转发方法、装置、系统、存储介质及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034831A1 (en) * 2000-04-19 2001-10-25 Brustoloni Jose C. Method and apparatus for providing internet access to client computers over a lan
CN101193130A (zh) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 移动IPv6中穿越网络地址转换的方法
CN101600194A (zh) * 2001-02-21 2009-12-09 美商内数位科技公司 互联网协议层中低架空移动率管理协议的方法与系统

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5224095A (en) * 1990-01-30 1993-06-29 Johnson Service Company Network control system and method
US6831917B1 (en) * 2000-05-10 2004-12-14 Cisco Technology, Inc. Network address translation for multicast virtual sourcing
US7054304B2 (en) * 2001-01-19 2006-05-30 Terited International , Inc. Method and protocol for managing broadband IP services in a layer two broadcast network
JP3998983B2 (ja) * 2002-01-17 2007-10-31 松下電器産業株式会社 ユニキャスト−マルチキャスト変換装置および映像監視システム
KR100590866B1 (ko) * 2003-12-04 2006-06-19 삼성전자주식회사 무선 네트워크를 통한 액세스 포인트의 무선 단말 등록방법 및 그 장치
US7546355B2 (en) * 2004-01-16 2009-06-09 Bloomberg Finance L.P. Network architecture for data transmission
US20060126613A1 (en) * 2004-12-09 2006-06-15 Nortel Networks Limited Multi-homed broadband router
US7630364B2 (en) * 2005-10-24 2009-12-08 Cisco Technology, Inc. Securely managing network element state information in transport-layer associations
KR100765325B1 (ko) * 2006-02-13 2007-10-09 삼성전자주식회사 Stun을 이용한 대칭형 네트워크 주소 변환 시스템 및그 방법
US7606191B1 (en) * 2006-05-01 2009-10-20 Sprint Spectrum L.P. Methods and systems for secure mobile-IP traffic traversing network address translation
KR101258988B1 (ko) * 2006-12-22 2013-04-26 삼성전자주식회사 VoIP 서비스 시스템 및 그 시스템의 패킷처리방법
US7839855B2 (en) * 2007-01-09 2010-11-23 Cisco Technology, Inc. Layer 2 address translation for service provider wholesale IP sessions
WO2010039084A1 (en) * 2008-10-01 2010-04-08 Telefonaktiebolaget L M Ericsson (Publ) Method for enabling a home base station to choose between local and remote transportation of uplink data packets
CN101447935B (zh) * 2008-11-20 2011-12-21 华为技术有限公司 数据包转发方法、系统及设备
CN101888389B (zh) * 2010-07-19 2013-04-17 中国电信股份有限公司 一种实现icp联盟统一认证的方法和系统
CN102413196A (zh) * 2010-09-26 2012-04-11 中华电信股份有限公司 网络地址分配与管理方法及其系统
CN102447748B (zh) * 2010-10-15 2015-04-22 华为技术有限公司 在nat穿越中分配外网互联网协议ip地址的方法及设备、系统
WO2012056010A1 (en) * 2010-10-29 2012-05-03 Nec Europe Ltd. Method and system for controlling ip traffic in a service provider network
CN102006337B (zh) * 2010-11-23 2013-12-18 华为技术有限公司 一种基于cgn实体的数据传输方法、cgn实体、网关及系统
US8774038B2 (en) * 2011-02-28 2014-07-08 Futurewei Technologies, Inc. Multicast support for dual stack-lite and internet protocol version six rapid deployment on internet protocol version four infrastructures
US8813074B2 (en) * 2011-08-05 2014-08-19 Vmware, Inc. Detecting and correcting network interruptions using network address translation
WO2013098429A1 (es) * 2011-12-30 2013-07-04 Juniper Networks, Inc. Equipo en las instalaciones del cliente basado en nube
US9258277B1 (en) * 2012-06-27 2016-02-09 Juniper Networks, Inc. Decentralized packet dispatch in network devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034831A1 (en) * 2000-04-19 2001-10-25 Brustoloni Jose C. Method and apparatus for providing internet access to client computers over a lan
CN101600194A (zh) * 2001-02-21 2009-12-09 美商内数位科技公司 互联网协议层中低架空移动率管理协议的方法与系统
CN101193130A (zh) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 移动IPv6中穿越网络地址转换的方法

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
See also references of EP2869494A4 *
WING, D. ET AL.: "Port Control Protocol (PCP)", ETF DRAFT-IETF-PCP-BASE-26, 5 June 2012 (2012-06-05), pages 62 - 65, XP015083181 *
WU, XIANGDONG ET AL.: "Arrangement and analysis of Metropolitan Area Network NAT444", TELECOMMUNICATIONS TECHNOLOGY., November 2011 (2011-11-01), pages 35 - 37, XP008175002 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3185473A4 (en) * 2014-08-21 2017-08-16 ZTE Corporation Backup protection method and device for carrier grade nat (cgn)

Also Published As

Publication number Publication date
CN103580880A (zh) 2014-02-12
US20150139230A1 (en) 2015-05-21
US10110555B2 (en) 2018-10-23
CN103580880B (zh) 2017-12-29
EP2869494A1 (en) 2015-05-06
EP2869494A4 (en) 2016-06-01
US20170085525A1 (en) 2017-03-23
US9553805B2 (en) 2017-01-24

Similar Documents

Publication Publication Date Title
WO2014019451A1 (zh) 一种快速通知cgn异常的方法、设备及系统
US10855654B2 (en) Session identifier for a communication session
US7366894B1 (en) Method and apparatus for dynamically securing voice and other delay-sensitive network traffic
US20160380966A1 (en) Media Relay Server
US20160006822A1 (en) Service discovery within multi-link networks
US8458303B2 (en) Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset
US20160380789A1 (en) Media Relay Server
EP3896927A1 (en) Packet transmission method, apparatus, and system
WO2011107052A2 (zh) 一种防止地址冲突的方法及接入节点
EP2052514B1 (en) Pervasive inter-domain dynamic host configuration
WO2022166932A1 (zh) 一种通信鉴权方法、设备及存储介质
WO2015014167A1 (zh) 一种处理原始ip报文的方法和相应装置
US11265248B2 (en) System log messages hostname address selection by multihomed hosts
WO2016161765A1 (zh) 发送、传递和获取能力的方法及装置
CN104518937B (zh) 虚拟局域网vlan多设备间通信的方法及装置
JP5535757B2 (ja) クライアント装置、及びプログラム
JP2013005221A (ja) 衛星通信方法、管制局及び地球局
JP2006054766A (ja) 冗長構成ネットワークシステムにおける制御データ共有方法
TW201136264A (en) Maintaining persistent connection with user level transmission control protocol
WO2013181991A1 (zh) 报文处理方法、系统及路由设备
Lidholm et al. Evaluating an IPv4 and IPv6 network
WO2015197484A1 (en) Method and device for routing ip multicast packets in a 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: 13825460

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013825460

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE