WO2012174724A1 - Method for terminal network element registration, terminal network element and router - Google Patents

Method for terminal network element registration, terminal network element and router Download PDF

Info

Publication number
WO2012174724A1
WO2012174724A1 PCT/CN2011/076194 CN2011076194W WO2012174724A1 WO 2012174724 A1 WO2012174724 A1 WO 2012174724A1 CN 2011076194 W CN2011076194 W CN 2011076194W WO 2012174724 A1 WO2012174724 A1 WO 2012174724A1
Authority
WO
WIPO (PCT)
Prior art keywords
omc
address
ipv6
network element
packet
Prior art date
Application number
PCT/CN2011/076194
Other languages
French (fr)
Chinese (zh)
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 CN201180001010.1A priority Critical patent/CN102986186B/en
Priority to PCT/CN2011/076194 priority patent/WO2012174724A1/en
Publication of WO2012174724A1 publication Critical patent/WO2012174724A1/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/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Definitions

  • the present invention relates to network communication technologies, and in particular, to a method for registering a terminal network element, a terminal network element, and a router. Background technique
  • PNP Plug & Play
  • IP networking Plug & Play
  • the network element needs to have the function of automatically configuring after startup and automatically entering the network.
  • the importance of PNP is that during the startup of the terminal network element, no human involvement or intervention is required. In some scenarios, unmanned intervention is very important.
  • the terminal and the OMC must obtain the OMC address and then connect with the OMC to obtain the complete configuration information.
  • the OMC information may be configured in the terminal network element.
  • such a configuration is difficult to mass-produce and deploy in the manner of the terminal network element. Summary of the invention
  • the embodiment of the invention provides a method for registering a terminal network element, a terminal network element and a router, and implements network registration of the terminal network element to the OMC, and simplifies the configuration of the terminal network element.
  • the embodiment of the invention provides a method for registering a terminal network element, including:
  • the terminal network element receives the first packet, where the first packet includes an IPv6 anycast address
  • the terminal network element After receiving the first packet, the terminal network element determines whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time, and if not, determining that the IPv6 is used by the terminal. Anycast address;
  • the terminal network element After determining that the IPv6 anycast address is used by the terminal, the terminal network element obtains the public configuration information from the received message containing the public configuration information from the operation and maintenance center OMC.
  • the configuration information includes the address of the OMC;
  • the terminal network element performs network registration with the OMC according to the address of the OMC.
  • the embodiment of the invention provides a method for network registration, including:
  • the router receives the packet that is sent by the OMC and contains the IPv6 anycast address and public configuration information.
  • the router After receiving the packet that is sent by the OMC and including the IPv6 anycast address and the common configuration information, the router sends a neighbor request NS packet to the terminal network element in the local network segment, where the local network segment is where the router is located.
  • Network segment
  • the router receives the neighboring NA message, where the NA message is a packet that is sent by the terminal network element that uses the IPv6 anycast address; the broadcast address and the public configuration information, and the public configuration information includes the address of the OMC.
  • the embodiment of the present invention provides a terminal network element, including:
  • a receiving module configured to receive a first packet, where the first packet includes an IPv6 anycast address
  • a determining module configured to: after receiving, by the receiving module, the first packet, determining, in a preset time Whether it receives a message sent by another network element indicating that the IPv6 anycast address is used, and if not, determining that the IPv6 anycast address is used by itself;
  • An obtaining module configured to: after the determining module determines that the terminal network element uses the IPv6 anycast address, obtain the public configuration information from the received OMC-derived message including the common configuration information, where The public configuration information includes the address of the OMC;
  • a registration module configured to perform network registration with the OMC according to the address of the OMC acquired by the obtaining module.
  • the embodiment of the invention provides a router, including:
  • a first receiving module configured to receive, by the OMC, a packet that includes an IPv6 anycast address and public configuration information
  • a first sending module configured to send a neighbor request NS message to the terminal network element in the local network segment after the first receiving module receives the packet that includes the IPv6 anycast address and the common configuration information that is sent by the MME
  • the network segment is the network segment where the router is located;
  • a second receiving module configured to receive an NA packet, where the NA packet is sent by using a terminal network element that uses the IPv6 anycast address;
  • a second sending module configured to send, to the terminal network element that sends the NA packet that is sent by the second receiving module, a packet that includes the IPv6 anycast address and the common configuration information that is sent by the OMC, where the public configuration information is The address of the OMC is included, and the address of the OMC is used for network registration of the terminal network element to the OMC.
  • the embodiment of the present invention sends the public configuration information originating from the OMC to the terminal network element by using the IPv6 anycast address, which can implement end-to-end allocation of the common configuration information, and avoid configuring the public configuration information in the terminal network element.
  • FIG. 1 is a schematic flow chart of a method according to a first embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a method according to a second embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a method according to a third embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a method according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method according to a fifth embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal network element according to a sixth embodiment of the present invention.
  • FIG. 7 is a schematic flow chart of a method according to a seventh embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a router according to an eighth embodiment of the present invention. detailed description
  • the embodiment of the present invention is described by using a terminal network element as an example of a network element. Further, the terminal network element is described by using an IPv6 terminal as an example, but is not limited thereto.
  • FIG. 1 is a schematic flowchart of a method according to a first embodiment of the present invention, including:
  • Step 11 The terminal network element receives the first packet, where the first packet includes an IPv6 anycast address, where the terminal network element is an IPv6 terminal, and when the IPv6 terminal and the OMC transmit the packet through the router,
  • the first packet may be a Neighbour Solicitation (NS) packet sent by the router in the same network segment as the IPv6 terminal, where the NS packet is an IPv6 anycast address and public configuration information sent by the router to the 0MC.
  • the message was sent after the message.
  • the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information is called an OM-ping packet. That is, the NS packet is sent after the router receives the OM-ping packet sent by the OMC.
  • the first packet is the OM-ping packet.
  • the IPv6 address is 128 bits long.
  • the addresses are classified into three types according to their transmission type, namely, Unicast Address, Multicast Address, and Anycast Address.
  • the unicast address and the multicast address already exist in IPv4.
  • the anycast address is a new member in IPv6.
  • the anycast address in the IPv6 address structure is defined as the identifier of a series of network interfaces (usually belonging to different nodes). : A packet destined for an anycast address will be forwarded to a "nearest" network interface identified by the address (the "recent" definition is based on the distance metric in the routing protocol).
  • the last 64 bits of the IPv6 anycast address may be generated according to the Media Access Control (MAC) address, and the network segment where the terminal network element is located is used as the head of the IPv6 anycast address.
  • the tail 64 bits of the ⁇ ⁇ 6 anycast address is called a 64-bit extended unique identifier (EUI-64) and can be generated by a MAC address. That is, the format of the IPv6 anycast address is: Subnet segment of the subnet where the terminal NE is located: EUI-64.
  • the EUI-64 in this embodiment may be referred to as a specific EUI-64, that is, the IPv6 anycast address is: a subnet segment of the subnet where the terminal network element is located:: Specific EUI-64.
  • This particular EUI-64 can be generated as follows:
  • the equipment vendor or operator applies for its own MAC prefix
  • the equipment provider or the operator can define its own dedicated MAC address by different device types or application types, and the dedicated MAC address can be multiple; wherein the dedicated MAC address can be divided into 64 bits and 48 bits. Regardless of the length of the dedicated MAC address, the MAC prefix applied in the previous step is the only identifier for the vendor.
  • EUI-64 is generated from the dedicated MAC address, which is the specific EUI-64.
  • the EUI-64 generated by the MAC address can be implemented by using an existing method.
  • the OMC has the public configuration information of the terminal network element. Therefore, the OMC can carry the public configuration information of the terminal network element in the packet and send it to the terminal network element.
  • the public configuration information may include: an OMC address.
  • the OMC may also include formal configuration information corresponding to each terminal network element. After the terminal NE is successfully registered with the OMC, the OMC may send the formal configuration information to the terminal network element.
  • IPv6 In the IPv6 protocol, if the operation and maintenance center (OMC) pings an unassigned IPv6 address, it can trigger the router to send an NS message for address resolution.
  • OMC operation and maintenance center
  • the unassigned IPv6 address is assigned to an IPv6 terminal.
  • the IPv6 terminal may be a base station (eNodeB).
  • Step 12 After receiving the first packet, the terminal network element determines whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time. If not, it determines that the IPv6 is used by the terminal. Anycast address; In order to avoid the problem that the terminal network element is in conflict with the first packet, the number of times of receiving the first packet may be determined to be a preset number of times before the foregoing determining. The specific process may be: if the IPv6 terminal receives After the number of times the first packet is greater than the preset number of times, it is determined whether the packet sent by another network element indicating that the IPv6 anycast address is used is received within the preset time. If not, it is determined to use the packet. IPv6 anycast address.
  • Step 13 After determining that the IPv6 anycast address is used by the terminal network element, the public configuration information is obtained from the received OMC-containing packet containing the common configuration information, where the public configuration information includes the address of the OMC.
  • the IPv6 terminal when the IPv6 terminal communicates with the OMC through the router, the IPv6 terminal sends a Neighbor Advertisement (NA) message to the router after determining that the IPv6 anycast address is used by the IPv6 terminal. After receiving the NA message, the router receives the NA message.
  • NA Neighbor Advertisement
  • the OM-ping packet from the OMC is sent to the IPv6 terminal; the IPv6 terminal obtains the public configuration information from the OM-ping packet.
  • the IPv6 terminal when the IPv6 terminal directly communicates with the OMC, the IPv6 terminal obtains the public configuration information directly from the OM-ping packet after determining that the IPv6 anycast address is used by the IPv6 terminal.
  • Step 14 The terminal network element performs network registration with the OMC according to the address of the OMC. After the network is registered with the OMC, the OMC may send the formal configuration information of the IPv6 terminal corresponding to the terminal network element to the IPv6 terminal.
  • the public configuration information may further include: a virtual local area network (VLAN) configuration information, and then the IPv6 terminal configures the VLAN according to the VLAN configuration information.
  • the public configuration information may further include an address of a dynamic host configuration protocol (DHCP) server, and then the IPv6 terminal obtains a unicast IPv6 address from the DHCP server according to the address of the DHCP server.
  • DHCP dynamic host configuration protocol
  • the public configuration information from the OMC is sent to the terminal network element through the IPv6 anycast address, and the end-to-end configuration of the common configuration information can be implemented to avoid the problem that the public configuration information is configured in the terminal network element.
  • the embodiment may be applied to a scenario in which a terminal network element directly communicates with an OMC, and may also be applied to a scenario in which a terminal network element communicates with an OMC through a router.
  • FIG. 2 is a schematic flowchart of a method according to a second embodiment of the present invention.
  • an IPv6 terminal obtains public configuration information sent by an OMC.
  • Step 201 After the IPv6 terminal is started, the NS message in the VLAN is monitored by joining the multicast group.
  • the NS packet carries the "destination address" and the "request destination address," for example.
  • the pre-configured multicast address is: FF02::1:FF: 11:1111, and the subnet prefix of the IPv6 terminal is 2001:: , the pre-configured anycast address is: 2001: specific EUI-64.
  • the IPv6 terminal waits for the "destination address, which is FF02::1:FF: 11:1111, "Request destination address, NS message for 2001: specific EUI-64.
  • Step 204 The OMC queries the subnet prefix of the IPv6 terminal, and generates an IPv6 anycast address in the network segment according to the subnet prefix.
  • the generated IPv6 anycast address is: 2001:: Specific EUI-64.
  • Step 205 The OMC sends an OM-ping packet to the network segment, where the packet includes public configuration information, such as a VLAN, a DHCP-Server address, and an OMC address.
  • public configuration information such as a VLAN, a DHCP-Server address, and an OMC address.
  • Step 206 The OM-ping packet reaches the router of the subnet where the IPv6 terminal is located, the router Query the neighbor table entry. If the address is not used by other terminals, the router caches the OM-ping packet.
  • the address of each terminal can be recorded in the neighbor table entry.
  • Step 207 The router sends an NS multicast packet, and waits for the IPv6 terminal that uses the IPv6 anycast address to reply to the NA ⁇ message.
  • the NS multicast packet DIP FF02::1:FF: 11:1111, and the request destination address is: 2001:: Device vendor MAC prefix: 11:1111.
  • Step 208 After receiving the NS message, the IPv6 terminal starts counting, that is, performs C 1 + 1 processing.
  • the IPv6 terminal can perform the counting process after receiving the NS message waiting for the NS message, because the NS message is the NS message waiting for the IPv6 terminal.
  • Step 209 The IPv6 terminal determines whether the counted C1 is equal to N. If yes, go to step 210. Otherwise, go to step 203.
  • Step 210 Determine whether the NA message corresponding to the NS message address broadcast by the other IPv6 terminal is received in the random time T1. If yes, go to step 202. Otherwise, go to step 211.
  • T1 is a random delay and can be set to 10ms ⁇ Tl ⁇ 100ms. It can be determined that the other IPv6 terminals broadcast the NA message after receiving the NS message, and the other IPv6 terminals can be broadcasted after receiving the NS message. At this time, step 203, step 208, and step 209 may not be performed.
  • Step 211 The IPv6 terminal automatically configures the Link-local address.
  • the automatically configured Link-local address includes: a first 64 bits of a fixed specific value, and a last 64 bits of the EUI-64 of the terminal itself.
  • Step 212 The IPv6 terminal uses the link-local address to reply to the router with an NA message, and announces that it uses the IPv6 anycast address.
  • the SIP link-local address of the NA ⁇ , the IP address of the DIP router.
  • the IPv6 terminal can send "unsolicited NA" to broadcast itself to the local network segment where it is located (2001::specific EUI-64).
  • the purpose of this "unsolicited NA" (broadcast NA) is to prevent other terminal network elements in the same network segment from competing for the same address at the same time.
  • the possibility of contention between the terminal network elements is minimized.
  • the FLAG of the "override” is set to "not overwrite” in the sent NA message.
  • Step 213 After receiving the NA packet, the router forwards the OM-ping packet to the IPv6 terminal.
  • Step 215 The IPv6 terminal determines whether the packet is an OM-ping packet. If yes, go to step 216. Otherwise, go to step 217.
  • the difference between the OM-ping and the normal ping in the embodiment of the present invention is that the OM-ping packet in the embodiment of the present invention carries the public configuration information, and can be judged according to whether the public configuration information is carried. Whether it is an OM-ping message.
  • Step 216 The IPv6 terminal learns various information in the OM-ping packet, that is, obtains the public configuration information from the OM-ping packet.
  • the public configuration information includes an OMC address
  • the IPv6 terminal can register with the OMC according to the OMC address. After the registration is complete, the IPv6 terminal can obtain the official configuration information of the corresponding terminal network element from the OMC. The IPv6 terminal can use the VLAN configuration information in the OM-ping packet to configure the VLAN. If there is a new requirement for the Link-Local address in the OM-ping packet, reconfigure the Link-Local address according to the new requirement.
  • the OMC receives the registration message, records that the NE has received the OM-ping, and can continue to send the OM-ping until all the terminal NEs in the subnet are successfully registered.
  • Step 217 The IPv6 terminal discards the packet and stops the learning process on the configured IPv6 anycast address (the suffix of the configured IPv6 anycast address is 11:1111).
  • Step 218 Determine whether all learning processes fail, and if yes, perform step 219, otherwise, Go to step 202.
  • Step 219 Record the failure result and end the learning process.
  • the IPv6 anycast address configured by the OMC can be used to obtain the public configuration information of the OMC configuration and implement the end-to-end configuration of the common configuration information.
  • This embodiment can be applied to a scenario in which a terminal network element communicates with 0 M C through a router.
  • the terminal may perform different registration processes of the OMC according to different acquisition methods of the unicast IP address. For details, refer to the following embodiments.
  • FIG. 3 is a schematic flowchart of a method according to a third embodiment of the present invention. This embodiment takes an automatic configuration of a global unicast address as an example. Referring to FIG. 3, this embodiment includes:
  • Step 31 The IPv6 terminal obtains the OM-ping packet sent by the OMC through the IPv6 anycast address.
  • Step 33 The IPv6 terminal uses the global unicast address autoconfiguration process to configure a unicast IPv6 address.
  • the configured unicast IPv6 address may include: a first 64 bits and a last 64 bits, where the first 64 bits are subnet segments to which the IPv6 terminal belongs, and may be obtained from VLAN configuration information; the last 64 bits are terminals. Its own EUI-64, in which the terminal's own EUI-64 is obtained according to the MAC address of the terminal.
  • Step 34 The IPv6 terminal sends a first notification message to the OMC according to the unicast IPv6 address configured in the global unicast address auto-configuration process, where the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6 address. Correspondence to achieve registration with the OMC.
  • the first notification message is used to notify the OMC that the IPv6 terminal has received the OM-ping packet, and notifies the OMC of the unicast IPv6 address of the IPv6 terminal and the network element identifier of the IPv6 terminal.
  • the public configuration information includes an OMC address for the terminal to communicate with the OMC.
  • the OMC can determine whether the terminal network element is successfully registered according to the first notification message sent by the terminal network element, and so on, and the OMC can determine whether each terminal network element is successfully registered, that is, determine all terminal networks in the subnet. If the registration is successful, the OM-ping packet will be sent after the registration is successful. Otherwise, the OM-ping packet will continue to be sent.
  • Step 35 After the IPv6 terminal successfully registers with the OMC, it can also perform authentication, authentication, and formal configuration information for the terminal entity.
  • the public configuration information is obtained through the IPv6 anycast address, and the unicast IPv6 address configuration is completed according to the global unicast address automatic configuration process, so that OMC registration is not required.
  • IPv6 anycast address is a unicast IPv6 address. It can allocate common configuration information to multiple IPv6 terminals through an IPv6 anycast address.
  • FIG. 4 is a schematic flowchart of a method according to a fourth embodiment of the present invention. Different from the third embodiment, this embodiment obtains a self-unicast IPv6 address through a DHCP process. See Figure 4, including:
  • Step 41 The IPv6 terminal obtains the OM-ping packet sent by the OMC through the IPv6 anycast address.
  • Step 43 The IPv6 terminal uses the DHCP process to configure a unicast IPv6 address.
  • the public configuration information may include an address of the DHCP server to perform a DHCP process.
  • Step 44 The IPv6 terminal sends a first notification message to the OMC according to the unicast IPv6 address configured by the DHCP process, where the first notification message notifies the correspondence between the network element identifier of the terminal network element and the configured unicast IPv6 address to implement Registration to the OMC.
  • the first notification message is used to notify the OMC that the IPv6 terminal has received the OM-ping packet, and notifies the OMC of the unicast IPv6 address of the IPv6 terminal and the network element identifier of the IPv6 terminal.
  • the OMC address can be included in the public configuration information.
  • the OMC can determine whether the terminal network element is successfully registered according to the first notification message sent by the terminal network element, and so on, and the OMC can determine whether each terminal network element is successfully registered, that is, determine all terminal networks in the subnet. Whether the yuan is registered successfully, stop sending OM-ping after the registration is successful. Packet, otherwise continue to send OM-ping packets.
  • Step 45 After the IPv6 terminal successfully registers with the OMC, it can also perform authentication, authentication, and formal configuration for the terminal entity.
  • the public configuration information is obtained through the IPv6 anycast address, and the unicast IPv6 address configuration is completed according to the DHCP configuration process to perform the OMC registration, and the IPv6 anycast address is not required to be the unicast IPv6 address, and the IPv6 address can be achieved.
  • Anycast address assigns common configuration information to multiple IPv6 terminals.
  • the unicast IPv6 address is obtained in different ways, and the unicast IPv6 address acquisition mode is diversified.
  • FIG. 5 is a schematic flowchart of a method according to a fifth embodiment of the present invention. Different from the third and fourth embodiments, the embodiment uses an IPv6 anycast address as its unicast IPv6 address. See Figure 5, which includes:
  • Step 51 The IPv6 terminal obtains the OM-ping packet sent by the OMC through the IPv6 anycast address.
  • Step 53 The IPv6 terminal configures the IPv6 anycast address as its own unicast IPv6 address.
  • Step 54 The IPv6 terminal uses the unicast IPv6 address to send a second notification message to the OMC, and the second notification message notifies the mapping between the network element identifier of the terminal network element and the configured unicast IPv6 address to implement the OMC. Register and instruct the OMC to suspend the sending of anycast address in this segment.
  • the second notification message is used to notify the OMC that the IPv6 terminal has received the OM-ping packet, and notifies the OMC of the unicast IPv6 address of the IPv6 terminal and the network element identifier of the IPv6 terminal, and instructs the OMC to suspend the The transmission of the IPv6 anycast address in the network segment.
  • Step 55 After receiving the second notification message, the OMC temporarily stops the learning process in the network segment (2001::).
  • Step 56 At the same time, the IPv6 terminal broadcasts a Router Advertisement (RA) message, where "override” is an overlay, indicating that the IPv6 anycast address is occupied by the IPv6 terminal.
  • RA Router Advertisement
  • Step 57 The IPv6 terminal acquires a new unicast IPv6 address, for example, using a global unicast address.
  • the unicast IPv6 address obtained by the automatic configuration process or DHCP process.
  • Step 58 The IPv6 terminal sends a third notification message to the OMC, where the third notification message indicates that the OMC continues to send the packet in the local network segment.
  • the third notification message is used to notify the OMC that the IPv6 terminal has acquired a new unicast IPv6 address, and instructs the OMC to re-send the IPv6 anycast address in the network segment.
  • Step 59 The IPv6 terminal broadcasts the RA message, where "override" is not overwritten, indicating that the IPv6 anycast address is no longer occupied.
  • the IPv6 terminal may broadcast the RA message by sending the third notification message. Then, the IPv6 terminal can delete the anycast address configuration and no longer reply to the NS message related to the IPv6 anycast address. The router can delete the correspondence between the terminal and the anycast address after the aging time. The OMC resends the OM-ping ⁇ message until the terminals in the subnet are registered.
  • the public configuration information is obtained through the IPv6 anycast address, and the unicast IPv6 address is configured according to the IPv6 anycast address to perform the OMC registration.
  • the IPv6 anycast address is directly occupied by the unicast IPv6 address, which simplifies the process. .
  • FIG. 6 is a schematic structural diagram of a terminal network element according to a sixth embodiment of the present invention.
  • the terminal network element may be a device that performs the foregoing terminal side method, and may be an IPv6 terminal, such as a base station.
  • the terminal network element may include a receiving module 61, a determining module 62, an obtaining module 63, and a registering module 64.
  • the receiving module 61 is configured to receive a first packet, where the first packet includes an IPv6 anycast address
  • the determining module 62 is configured to: After receiving the first packet, the receiving module determines whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time, and if not, determining that the IPv6 is used by the receiving device.
  • the obtaining module 63 is configured to: after the determining module determines that the terminal network element itself uses the IPv6 anycast address, obtain the common configuration information from the received OMC-derived message including the common configuration information, where the public configuration is obtained.
  • the information includes an address of the OMC; the registration module 64 is configured to perform network registration with the OMC according to the address of the OMC obtained by the obtaining module.
  • the first packet is an NS packet
  • the receiving module is specifically configured to receive the router sent by the network segment.
  • the NS packet is sent by the router after receiving the packet containing the IPv6 anycast address and the common configuration information sent by the OMC.
  • the packet sent by the OMC including the IPv6 anycast address and the common configuration information is
  • the OM-ping packet is configured to send an NA message to the router after determining to use the IPv6 anycast address, and receive the OMC sent by the router after receiving the NA message.
  • the packet includes the IPv6 anycast address and the public configuration information, and obtains the public configuration information from the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information.
  • the first packet is a packet that is sent by the OMC and includes an IPv6 anycast address and a common configuration information
  • the receiving module is specifically configured to receive the OMC.
  • the sending the packet that includes the IPv6 anycast address and the common configuration information.
  • the obtaining module is specifically configured to obtain, after determining to use the IPv6 anycast address, the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information.
  • the public configuration information is specifically configured to obtain, after determining to use the IPv6 anycast address, the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information.
  • IPv6 anycast address can have the following format: Subnet segment of the subnet where the NE is located:: Specific EUI-64. This particular EUI-64 can be generated as follows:
  • the equipment vendor or operator applies for its own MAC prefix
  • the equipment provider or the operator can define its own dedicated MAC address by different device types or application types, and the dedicated MAC address can be multiple; wherein the dedicated MAC address can be divided into 64 bits and 48 bits. Regardless of the length of the dedicated MAC address, the MAC prefix applied in the previous step is the only identifier of the vendor.
  • EUI-64 is generated from the dedicated MAC address, which is the specific EUI-64.
  • the EUI-64 generated by the MAC address can be implemented by using an existing method.
  • the terminal network element may further include: a determining module, configured to determine whether the number of times the first packet is received is greater than a preset number of times; the determining module is specifically configured to determine, by the determining module, that the number of times is greater than After the preset number of times, it is determined whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time.
  • a determining module configured to determine whether the number of times the first packet is received is greater than a preset number of times
  • the determining module is specifically configured to determine, by the determining module, that the number of times is greater than After the preset number of times, it is determined whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time.
  • the registration module is specifically configured to obtain a unicast IPv6 address, and according to the OMC The address is registered with the OMC network.
  • the registration module is further configured to: configure a unicast IPv6 address by using a global unicast address auto-configuration process, and send a first notification message to the OMC, where the first notification message notifies the network element identifier and configuration of the network element of the terminal
  • the unicast IPv6 address is configured as a unicast IPv6 address; or the unicast IPv6 address is configured by the DHCP process, and the first notification message is sent to the OMC, and the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6 address.
  • the registration module is further configured to: configure the IPv6 anycast address as its own unicast IPv6 address; send a second notification message to the OMC, where the second notification message notifies the network element identifier and the configured list of the terminal network element
  • the corresponding relationship of the IPv6 address is broadcasted and the OMC is suspended to transmit the anycast address in the local network segment.
  • the NA packet broadcasting the IPv6 anycast address is broadcast in the local network segment.
  • the embodiment may further include: a notification module, configured to replace the IPv6 anycast address with the other unicast IPv6 address as a new unicast after acquiring another unicast IPv6 address different from the IPv6 anycast address.
  • a notification module configured to replace the IPv6 anycast address with the other unicast IPv6 address as a new unicast after acquiring another unicast IPv6 address different from the IPv6 anycast address.
  • the third notification message is sent to the OMC, and the third notification message indicates that the OMC continues to send the message in the local network segment; the broadcast indicates that the NA message of the IPv6 anycast address is no longer occupied by the broadcast.
  • the public configuration information is obtained by using the IPv6 anycast address, and the public configuration information includes the address of the OMC to register with the OMC to implement end-to-end registration.
  • This embodiment can be applied to the scenario where the terminal NE communicates with the OMC directly, and can also be applied to the scenario where the terminal NE communicates with the OMC through the router.
  • the unicast IPv6 address can be obtained in different manners, and the obtaining manner is diversified.
  • FIG. 7 is a schematic flowchart of a method according to a seventh embodiment of the present invention, including:
  • Step 71 The router receives the packet that is sent by the OMC and includes the IPv6 anycast address and the public configuration information.
  • the message is the above OM-ping message.
  • Step 72 After receiving the packet that is sent by the OMC and including the IPv6 anycast address and the common configuration information, the router sends an NS packet to the terminal network element in the local network segment, where the local network segment is the path.
  • Step 73 The router receives the NA packet, and the NA packet is sent by the terminal network element that determines the IPv6 anycast address.
  • the terminal network element may receive the NS message for a certain number of times, and after receiving the message indicating that the IPv6 anycast address is sent by the other terminal, determine that the IPv6 anycast address is used, and then send the message to the router. NA message.
  • Step 74 The router sends a message including the IPv6 anycast address and the common configuration information sent by the OMC to the terminal network element that sends the NA message, where the public configuration information includes the address of the OMC, and the address of the OMC is used for the terminal.
  • the network element registers with the OMC network.
  • the method may further include: the router querying the neighboring cell entry, determining, according to the neighboring cell entry, whether the IPv6 anycast address is used by other terminal network elements, and if not used by other terminal network elements, caching the A packet sent by the OMC that contains an IPv6 anycast address and public configuration information. For subsequent transmission to the terminal network element that determines the use of the IPv6 anycast address.
  • IPv6 anycast address in this embodiment may be constructed by using the methods of the foregoing embodiments.
  • the terminal network element obtains the public configuration information by using the IPv6 anycast address, and the public configuration information includes the address of the OMC, so that the terminal network element registers with the OMC to implement end-to-end registration.
  • This embodiment can be applied to a scenario in which a terminal network element communicates with a 0 MC through a router.
  • FIG. 8 is a schematic structural diagram of a router according to an eighth embodiment of the present invention.
  • the router may be a device that performs the method corresponding to the foregoing router.
  • the router 80 includes a first receiving module 81, a first sending module 82, a second receiving module 83, and
  • the second sending module 84 is configured to receive the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information.
  • the first sending module 82 is configured to receive, by the first receiving module, the content that is sent by the OMC.
  • the IPv6 anycast address and the public configuration information are sent to the terminal network element in the local network segment to send the neighbor request NS message, where the local network segment is the network segment where the router is located; And receiving the NA packet, where the NA packet is sent by the terminal network element that uses the IPv6 anycast address, and the second sending module 84 is configured to send the terminal network element that sends the NA packet received by the second receiving module.
  • the OMC sends IPv6 A message of anycast address and public configuration information, where the public configuration information includes an address of the OMC, and the address of the OMC is used for network registration of the terminal network element to the OMC.
  • An embodiment may further include: a cache module, configured to query a neighboring cell entry, determine, according to the neighboring cell entry, whether the IPv6 anycast address is used by another terminal network element, and if not used by other terminal network elements, cache the The packet received by the first receiving module and sent by the OMC, including an IPv6 anycast address and public configuration information.
  • a cache module configured to query a neighboring cell entry, determine, according to the neighboring cell entry, whether the IPv6 anycast address is used by another terminal network element, and if not used by other terminal network elements, cache the The packet received by the first receiving module and sent by the OMC, including an IPv6 anycast address and public configuration information.
  • IPv6 anycast address in this embodiment may be constructed by using the methods of the foregoing embodiments.
  • the terminal network element may determine whether the packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time, and if not, the terminal is determined.
  • the network element itself uses the IPv6 anycast address;
  • the terminal network element may further determine whether the number of times the first packet is received is greater than a preset number of times, so that when the number of times is greater than the preset number of times, it is determined whether the other network element sends the indication to be used within a preset time.
  • the packet of the IPv6 anycast address may be determined whether the number of times the first packet is received is greater than a preset number of times, so that when the number of times is greater than the preset number of times, it is determined whether the other network element sends the indication to be used within a preset time.
  • the terminal network element can also obtain a unicast IPv6 address, and perform network registration with the OMC according to the address of the OMC.
  • the terminal network element configures a unicast IPv6 address by using a global unicast address auto-configuration process, and sends a first notification message to the OMC, where the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6.
  • the terminal network element configures the unicast IPv6 address by using the dynamic host configuration protocol DHCP process, and sends a first notification message to the OMC, where the first notification message notifies the network element identification and configuration of the terminal network element The correspondence between unicast IPv6 addresses.
  • the terminal network element configures the IPv6 anycast address as its own unicast IPv6 address; the terminal network element sends a second notification message to the OMC, and the second notification message instructs the OMC to suspend the sending of any anycast address in the network segment.
  • the terminal NE broadcasts the NA packet that occupies the IPv6 anycast address in the local network segment.
  • the device network element may replace the IPv6 anycast address with the other unicast IPv6 address as a new unicast after acquiring another unicast IPv6 address different from the IPv6 anycast address.
  • IPv6 and sending a third notification message to the OMC, where the third notification message indicates that the OMC continues to send the packet in the local network segment; the terminal network element broadcast indicates that the IPv6 anycast address is no longer occupied by the terminal.
  • NA ⁇ .
  • the terminal network element obtains the public configuration information by using the IPv6 anycast address, and the public configuration information includes the address of the OMC, so that the terminal network element registers with the OMC to implement end-to-end registration.
  • This embodiment can be applied to a scenario in which a terminal network element communicates with a 0 MC through a router.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

A method for terminal network element registration, terminal network element and router are provided in this invention. The method includes the following steps: a terminal network element receives a first message, and the first message includes an Internet Protocol version 6 (IPv6) any-cast address; after receiving the first message, the terminal network element judges whether the message, which is sent by the other network element and indicates the use of the IPv6 any-cast address, is received during a predetermined time period, if not, then the terminal network element determines to use the IPv6 any-cast address by itself; after determining to use the IPv6 any-cast address by itself, the terminal network element obtains public configuration information from the message which includes the public configuration information and is received from the Operation and Maintenance Center (OMC), and the public configuration information includes the address of the OMC; the terminal network element performs network registration to the OMC according to the address of the OMC. The embodiments of this invention can simplify the configuration procedure.

Description

终端网元注册的方法、 终端网元及路由器  Method for registering terminal network element, terminal network element and router
技术领域 Technical field
本发明涉及网络通信技术, 尤其涉及一种终端网元注册的方法、 终端网 元及路由器。 背景技术  The present invention relates to network communication technologies, and in particular, to a method for registering a terminal network element, a terminal network element, and a router. Background technique
在 IP组网中, 即插即用 (Plug&Play, PNP )是对网络部署的基本要求。 因此需要网元具有启动后自动配置、 自动进入网络的功能。 PNP的重要性在 于, 终端网元启动过程中, 不需要人的参与和干预, 在某些场景下, 无人干 预是非常重要的。 终端网元自启动过程中需要获取操作维护中心 ( Operation and Maintenance Center, OMC )地址, 然后和 OMC建立连接, 向 OMC注册以获取完整配置信息。  In IP networking, Plug & Play (PNP) is a basic requirement for network deployment. Therefore, the network element needs to have the function of automatically configuring after startup and automatically entering the network. The importance of PNP is that during the startup of the terminal network element, no human involvement or intervention is required. In some scenarios, unmanned intervention is very important. The terminal and the OMC must obtain the OMC address and then connect with the OMC to obtain the complete configuration information.
现有技术中, 可以将 OMC信息配置在终端网元内的, 但是, 这种配置 在终端网元内的方式批量生产和部署难。 发明内容  In the prior art, the OMC information may be configured in the terminal network element. However, such a configuration is difficult to mass-produce and deploy in the manner of the terminal network element. Summary of the invention
本发明实施例是提供一种终端网元注册的方法、 终端网元及路由器, 实 现终端网元向 OMC进行网络注册, 且简化终端网元的配置。  The embodiment of the invention provides a method for registering a terminal network element, a terminal network element and a router, and implements network registration of the terminal network element to the OMC, and simplifies the configuration of the terminal network element.
本发明实施例提供了一种终端网元注册的方法, 包括:  The embodiment of the invention provides a method for registering a terminal network element, including:
终端网元接收第一报文, 所述第一报文中包含 IPv6任播地址;  The terminal network element receives the first packet, where the first packet includes an IPv6 anycast address;
终端网元接收到所述第一报文后, 判断在预设时间内是否收到其他网元 发送的表明使用所述 IPv6任播地址的报文,若为否,则确定自身使用所述 IPv6 任播地址;  After receiving the first packet, the terminal network element determines whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time, and if not, determining that the IPv6 is used by the terminal. Anycast address;
终端网元在确定自身使用所述 IPv6任播地址后,从接收的源自操作维护 中心 OMC 的包含公共配置信息的报文中获取所述公共配置信息, 所述公共 配置信息中包括 OMC的地址; After determining that the IPv6 anycast address is used by the terminal, the terminal network element obtains the public configuration information from the received message containing the public configuration information from the operation and maintenance center OMC. The configuration information includes the address of the OMC;
终端网元根据所述 OMC的地址, 向所述 OMC进行网络注册。  The terminal network element performs network registration with the OMC according to the address of the OMC.
本发明实施例提供了一种网络注册的方法, 包括:  The embodiment of the invention provides a method for network registration, including:
路由器接收操作维护中心 OMC发送的包含 IPv6任播地址和公共配置信 息的报文;  The router receives the packet that is sent by the OMC and contains the IPv6 anycast address and public configuration information.
路由器在接收到所述 OMC发送的包含 IPv6任播地址和公共配置信息的 报文后, 向本网段内的终端网元发送邻居请求 NS报文, 所述本网段为所述 路由器所在的网段;  After receiving the packet that is sent by the OMC and including the IPv6 anycast address and the common configuration information, the router sends a neighbor request NS packet to the terminal network element in the local network segment, where the local network segment is where the router is located. Network segment
路由器接收邻居宣告 NA报文, 所述 NA报文为确定使用所述 IPv6任播 地址的终端网元发送的; 播地址和公共配置信息的报文, 所述公共配置信息中包括 OMC的地址, 所述 本发明实施例提供了一种终端网元, 包括:  The router receives the neighboring NA message, where the NA message is a packet that is sent by the terminal network element that uses the IPv6 anycast address; the broadcast address and the public configuration information, and the public configuration information includes the address of the OMC. The embodiment of the present invention provides a terminal network element, including:
接收模块, 用于接收第一报文, 所述第一报文中包含 IPv6任播地址; 确定模块, 用于在所述接收模块接收到所述第一报文后, 判断在预设时 间内是否收到其他网元发送的表明使用所述 IPv6任播地址的报文, 若为否, 则确定自身使用所述 IPv6任播地址;  a receiving module, configured to receive a first packet, where the first packet includes an IPv6 anycast address, and a determining module, configured to: after receiving, by the receiving module, the first packet, determining, in a preset time Whether it receives a message sent by another network element indicating that the IPv6 anycast address is used, and if not, determining that the IPv6 anycast address is used by itself;
获取模块, 用于在所述确定模块确定所述终端网元自身使用所述 IPv6任 播地址后, 从接收的源自 OMC 的包含公共配置信息的报文中获取所述公共 配置信息, 所述公共配置信息中包括 OMC的地址;  An obtaining module, configured to: after the determining module determines that the terminal network element uses the IPv6 anycast address, obtain the public configuration information from the received OMC-derived message including the common configuration information, where The public configuration information includes the address of the OMC;
注册模块, 用于根据所述获取模块获取的所述 OMC的地址, 向所述 OMC 进行网络注册。  And a registration module, configured to perform network registration with the OMC according to the address of the OMC acquired by the obtaining module.
本发明实施例提供了一种路由器, 包括:  The embodiment of the invention provides a router, including:
第一接收模块, 用于接收 OMC发送的包含 IPv6任播地址和公共配置信 息的报文; 第一发送模块, 用于在所述第一接收模块接收到所述 0MC发送的包含 IPv6任播地址和公共配置信息的报文后, 向本网段内的终端网元发送邻居请 求 NS报文, 所述本网段为所述路由器所在的网段; a first receiving module, configured to receive, by the OMC, a packet that includes an IPv6 anycast address and public configuration information; a first sending module, configured to send a neighbor request NS message to the terminal network element in the local network segment after the first receiving module receives the packet that includes the IPv6 anycast address and the common configuration information that is sent by the MME The network segment is the network segment where the router is located;
第二接收模块, 用于接收 NA报文, 所述 NA报文为确定使用所述 IPv6 任播地址的终端网元发送的;  a second receiving module, configured to receive an NA packet, where the NA packet is sent by using a terminal network element that uses the IPv6 anycast address;
第二发送模块,用于向发送所述第二接收模块接收的所述 NA报文的终端 网元发送所述 OMC发送的包含 IPv6任播地址和公共配置信息的报文, 所述公 共配置信息中包括 OMC的地址, 所述 OMC的地址用于所述终端网元向 OMC 进行网络注册。  a second sending module, configured to send, to the terminal network element that sends the NA packet that is sent by the second receiving module, a packet that includes the IPv6 anycast address and the common configuration information that is sent by the OMC, where the public configuration information is The address of the OMC is included, and the address of the OMC is used for network registration of the terminal network element to the OMC.
由上述技术方案可知, 本发明实施例通过 IPv6任播地址将源自 OMC的 公共配置信息发送给终端网元, 可以实现公共配置信息的端到端分配, 避免 将公共配置信息配置在终端网元中引起的问题, 实现配置方案的简化。 附图说明  According to the foregoing technical solution, the embodiment of the present invention sends the public configuration information originating from the OMC to the terminal network element by using the IPv6 anycast address, which can implement end-to-end allocation of the common configuration information, and avoid configuring the public configuration information in the terminal network element. The problem caused in the implementation of the simplification of the configuration. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, a brief description of the drawings to be used in the description of the embodiments will be briefly made. It is obvious that the drawings in the following description are some embodiments of the present invention. It will be apparent to those skilled in the art that other drawings may be obtained from these drawings without the inventive labor.
图 1为本发明第一实施例的方法流程示意图;  1 is a schematic flow chart of a method according to a first embodiment of the present invention;
图 2为本发明第二实施例的方法流程示意图;  2 is a schematic flow chart of a method according to a second embodiment of the present invention;
图 3为本发明第三实施例的方法流程示意图;  3 is a schematic flow chart of a method according to a third embodiment of the present invention;
图 4为本发明第四实施例的方法流程示意图;  4 is a schematic flow chart of a method according to a fourth embodiment of the present invention;
图 5为本发明第五实施例的方法流程示意图;  FIG. 5 is a schematic flowchart of a method according to a fifth embodiment of the present invention; FIG.
图 6为本发明第六实施例的终端网元的结构示意图;  6 is a schematic structural diagram of a terminal network element according to a sixth embodiment of the present invention;
图 7为本发明第七实施例的方法流程示意图;  7 is a schematic flow chart of a method according to a seventh embodiment of the present invention;
图 8为本发明第八实施例的路由器的结构示意图。 具体实施方式 FIG. 8 is a schematic structural diagram of a router according to an eighth embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. 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.
值得说明的是,本发明实施例以终端网元作为网元的一个例子进行说明, 进一步的, 终端网元以 IPv6终端为例进行描述, 但不限于此。  It should be noted that the embodiment of the present invention is described by using a terminal network element as an example of a network element. Further, the terminal network element is described by using an IPv6 terminal as an example, but is not limited thereto.
图 1为本发明第一实施例的方法流程示意图, 包括:  FIG. 1 is a schematic flowchart of a method according to a first embodiment of the present invention, including:
步骤 11 : 终端网元接收第一报文, 该第一报文中包含 IPv6任播地址; 其中, 以终端网元为 IPv6终端为例, 则当 IPv6终端与 OMC通过路由器 进行报文传输时, 该第一报文可以为该 IPv6终端同网段内的路由器发送的邻 居请求( Neighbour Solicitation, NS )报文,该 NS报文为该路由器接收到 0MC 发送的包含 IPv6任播地址和公共配置信息的报文后发送的。本发明实施例中, 将 OMC发送的包含 IPv6任播地址和公共配置信息的报文称为 OM-ping报文。 即, 上述的 NS报文为该路由器接收到 OMC发送的 OM-ping报文后发送的。  Step 11: The terminal network element receives the first packet, where the first packet includes an IPv6 anycast address, where the terminal network element is an IPv6 terminal, and when the IPv6 terminal and the OMC transmit the packet through the router, The first packet may be a Neighbour Solicitation (NS) packet sent by the router in the same network segment as the IPv6 terminal, where the NS packet is an IPv6 anycast address and public configuration information sent by the router to the 0MC. The message was sent after the message. In the embodiment of the present invention, the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information is called an OM-ping packet. That is, the NS packet is sent after the router receives the OM-ping packet sent by the OMC.
当 IPv6 终端与 OMC 直接进行报文传输时, 该第一报文即为上述的 OM-ping才艮文。  When the IPv6 terminal and the OMC directly transmit packets, the first packet is the OM-ping packet.
IPv6地址长度为 128比特, 地址按照其传输类型分为三种, 即单播地址 ( Unicast Address ) 、 组播地址 ( Multicast Address ) 和任播地址 ( Anycast Address ) 。 单播地址和组播地址在 IPv4中已经存在, 任播地址是 IPv6中新 的成员, IPv6地址结构中的任播地址定义为一系列网络接口 (通常属于不同 的节点) 的标识, 其特点是: 发往一个任播地址的分组将被转发到由该地址 标识的 "最近"的一个网络接口 ( "最近"的定义是基于路由协议中的距离度 量) 。 本发明实施例中, 可以根据媒体接入控制( Media Access Control, MAC ) 地址生成 IPv6任播地址的尾 64位, 将终端网元所在网段作为 IPv6任播地址 的首部。 其中, 该 ιρν6任播地址的尾 64位称为 64位扩展唯一标识( 64-bit extended unique identifier, EUI-64 ) , 可以由 MAC地址生成。 即, IPv6任播 地址的格式为: 终端网元所在子网的子网网段:: EUI-64。 The IPv6 address is 128 bits long. The addresses are classified into three types according to their transmission type, namely, Unicast Address, Multicast Address, and Anycast Address. The unicast address and the multicast address already exist in IPv4. The anycast address is a new member in IPv6. The anycast address in the IPv6 address structure is defined as the identifier of a series of network interfaces (usually belonging to different nodes). : A packet destined for an anycast address will be forwarded to a "nearest" network interface identified by the address (the "recent" definition is based on the distance metric in the routing protocol). In the embodiment of the present invention, the last 64 bits of the IPv6 anycast address may be generated according to the Media Access Control (MAC) address, and the network segment where the terminal network element is located is used as the head of the IPv6 anycast address. The tail 64 bits of the ιρ ν 6 anycast address is called a 64-bit extended unique identifier (EUI-64) and can be generated by a MAC address. That is, the format of the IPv6 anycast address is: Subnet segment of the subnet where the terminal NE is located: EUI-64.
其中, 本实施例中的 EUI-64可以称为特定 EUI-64, 即, IPv6任播地址 为: 终端网元所在子网的子网网段:: 特定 EUI-64。  The EUI-64 in this embodiment may be referred to as a specific EUI-64, that is, the IPv6 anycast address is: a subnet segment of the subnet where the terminal network element is located:: Specific EUI-64.
该特定 EUI-64可以采用如下方式生成:  This particular EUI-64 can be generated as follows:
首先, 设备商或运营商申请自己的 MAC前缀;  First, the equipment vendor or operator applies for its own MAC prefix;
其次, 设备商或运营商可以分不同的设备种类或者应用种类定义自己的 专用 MAC地址, 该专用 MAC地址可以为多个; 其中, 该专用 MAC地址可 以分为 64位和 48位。 不论哪种长度的专用 MAC地址, 均以前一步中申请 的 MAC前缀作为厂商唯一标示。  Secondly, the equipment provider or the operator can define its own dedicated MAC address by different device types or application types, and the dedicated MAC address can be multiple; wherein the dedicated MAC address can be divided into 64 bits and 48 bits. Regardless of the length of the dedicated MAC address, the MAC prefix applied in the previous step is the only identifier for the vendor.
再次, 根据专用 MAC 地址生成 EUI-64, 该生成的 EUI-64 即为特定 EUI-64。 其中, 由 MAC地址生成 EUI-64可以采用现有方法实现。  Again, EUI-64 is generated from the dedicated MAC address, which is the specific EUI-64. The EUI-64 generated by the MAC address can be implemented by using an existing method.
由于 OMC中有终端网元的公共配置信息, 因此, 可以由 OMC将终端网 元的公共配置信息携带在报文中发送给终端网元。该公共配置信息可以包括: OMC地址。 当然, OMC中还可以包括与每个终端网元个体对应的正式配置 信息, 在终端网元向 OMC注册成功后, 则 OMC可以将正式配置信息发送给 终端网元。  The OMC has the public configuration information of the terminal network element. Therefore, the OMC can carry the public configuration information of the terminal network element in the packet and send it to the terminal network element. The public configuration information may include: an OMC address. Of course, the OMC may also include formal configuration information corresponding to each terminal network element. After the terminal NE is successfully registered with the OMC, the OMC may send the formal configuration information to the terminal network element.
在 IPv6协议中, 如果操作维护中心 ( OMC ) ping一个未分配的 IPv6地 址时,可以触发路由器发送 NS 文以进行地址解析过程,将该未分配的 IPv6 地址分配给某个 IPv6终端。 其中, 该 IPv6终端可以为基站( eNodeB ) 。  In the IPv6 protocol, if the operation and maintenance center (OMC) pings an unassigned IPv6 address, it can trigger the router to send an NS message for address resolution. The unassigned IPv6 address is assigned to an IPv6 terminal. The IPv6 terminal may be a base station (eNodeB).
步骤 12: 终端网元接收到该第一报文后, 判断在预设时间内是否收到其 他网元发送的表明使用该 IPv6任播地址的报文, 若为否, 则确定自身使用该 IPv6任播地址; 其中, 为了避免终端网元在接收第一报文时的冲突等问题, 可以在上述 判断之前首先判断接收到第一报文的次数是否达到预设次数, 具体的过程可 以是: 如果 IPv6终端接收到第一报文的次数大于预设的次数后, 再判断在预 设时间内是否收到其他网元发送的表明使用所述 IPv6任播地址的报文, 如果 为否, 则确定自身使用该 IPv6任播地址。 Step 12: After receiving the first packet, the terminal network element determines whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time. If not, it determines that the IPv6 is used by the terminal. Anycast address; In order to avoid the problem that the terminal network element is in conflict with the first packet, the number of times of receiving the first packet may be determined to be a preset number of times before the foregoing determining. The specific process may be: if the IPv6 terminal receives After the number of times the first packet is greater than the preset number of times, it is determined whether the packet sent by another network element indicating that the IPv6 anycast address is used is received within the preset time. If not, it is determined to use the packet. IPv6 anycast address.
步骤 13: 终端网元在确定自身使用所述 IPv6任播地址后,从接收的源自 OMC的包含公共配置信息的报文中获取该公共配置信息,该公共配置信息中 包括 OMC的地址。  Step 13: After determining that the IPv6 anycast address is used by the terminal network element, the public configuration information is obtained from the received OMC-containing packet containing the common configuration information, where the public configuration information includes the address of the OMC.
例如, IPv6终端与 OMC通过路由器通信时, IPv6终端在确定自身使用 该 IPv6任播地址后,向该路由器发送邻居宣告( Neighbor Advertisement, NA ) 报文; 之后, 路由器在接收到 NA报文后, 将上述的来自 OMC的 OM-ping 报文发送给 IPv6终端; IPv6终端则从该 OM-ping报文中获取公共配置信息。  For example, when the IPv6 terminal communicates with the OMC through the router, the IPv6 terminal sends a Neighbor Advertisement (NA) message to the router after determining that the IPv6 anycast address is used by the IPv6 terminal. After receiving the NA message, the router receives the NA message. The OM-ping packet from the OMC is sent to the IPv6 terminal; the IPv6 terminal obtains the public configuration information from the OM-ping packet.
或者, IPv6终端与 OMC直接通信时, IPv6终端在确定自身使用该 IPv6 任播地址后, 直接从该 OM-ping报文中获取公共配置信息。  Or, when the IPv6 terminal directly communicates with the OMC, the IPv6 terminal obtains the public configuration information directly from the OM-ping packet after determining that the IPv6 anycast address is used by the IPv6 terminal.
步骤 14: 终端网元根据该 OMC的地址, 向该 OMC进行网络注册。 其中, 向 OMC进行网络注册后, OMC可以将与终端网元个体对应的该 IPv6终端的正式配置信息发送给该 IPv6终端。  Step 14: The terminal network element performs network registration with the OMC according to the address of the OMC. After the network is registered with the OMC, the OMC may send the formal configuration information of the IPv6 terminal corresponding to the terminal network element to the IPv6 terminal.
另夕卜, 该公共配置信息中还可以包括: 虚拟局域网 (Virtual Local Area Network, VLAN ) 配置信息, 之后, IPv6终端根据该 VLAN配置信息配置 VLAN。或者,该公共配置信息中还可以包括动态主机配置协议( Dynamic Host Configuration Protocol, DHCP )服务器的地址,之后, IPv6终端根据该 DHCP 服务器的地址从 DHCP服务器获取单播 IPv6地址。  In addition, the public configuration information may further include: a virtual local area network (VLAN) configuration information, and then the IPv6 terminal configures the VLAN according to the VLAN configuration information. Alternatively, the public configuration information may further include an address of a dynamic host configuration protocol (DHCP) server, and then the IPv6 terminal obtains a unicast IPv6 address from the DHCP server according to the address of the DHCP server.
本实施例通过 IPv6任播地址将源自 OMC的公共配置信息发送给终端网 元, 可以实现公共配置信息的端到端配置, 避免将公共配置信息配置在终端 网元内部引起的问题。 另夕卜, 本实施例可以应用于终端网元直接与 OMC通 信的场景, 也可以应用于终端网元通过路由器与 OMC通信的场景。 图 2 为本发明第二实施例的方法流程示意图, 通过本实施例可以实现 IPv6终端获取 OMC发送的公共配置信息。 In this embodiment, the public configuration information from the OMC is sent to the terminal network element through the IPv6 anycast address, and the end-to-end configuration of the common configuration information can be implemented to avoid the problem that the public configuration information is configured in the terminal network element. In addition, the embodiment may be applied to a scenario in which a terminal network element directly communicates with an OMC, and may also be applied to a scenario in which a terminal network element communicates with an OMC through a router. FIG. 2 is a schematic flowchart of a method according to a second embodiment of the present invention. In this embodiment, an IPv6 terminal obtains public configuration information sent by an OMC.
步骤 201 : IPv6终端启动后, 通过加入组播组实现监听 VLAN中的 NS 报文。  Step 201: After the IPv6 terminal is started, the NS message in the VLAN is monitored by joining the multicast group.
例如, IPv6终端将自己加入组播地址为 FF02::1 :FF: (特定 EUI-64低 24 位) 的组播组, 则可以实现监听 VLAN中的 NS报文。 假定特定 EUI-64低 24位 =11: 1111 , 则 IPv6终端加入的组播地址为 FF02::1 :FF: 11:1111。  For example, an IPv6 terminal adds itself to a multicast group with a multicast address of FF02::1:FF: (the lower 24 bits of the EUI-64), and can listen to NS packets in the VLAN. Assuming that the specific EUI-64 is lower 24 bits = 11: 1111, the multicast address added by the IPv6 terminal is FF02::1:FF: 11:1111.
步骤 202: IPv6终端生成随机数 N, 并将计数器值 C1置零, 例如, 设置 3<N<10, C1=0。  Step 202: The IPv6 terminal generates a random number N, and sets the counter value C1 to zero. For example, setting 3<N<10, C1=0.
步骤 203: IPv6终端等待目的地址( destination address, DIP ) =预配置组 播地址, 且请求目的地址为预配置的任播地址的 NS报文。  Step 203: The IPv6 terminal waits for the destination address (DIP) = the pre-configured multicast address, and the request destination address is the NS message of the pre-configured anycast address.
其中, NS报文中可以携带 "目的地址" , 以及 "请求目的地址,, 。 例如, 预配置的组播地址为: FF02::1 :FF: 11 :1111 , 该 IPv6 终端所在子网前缀为 2001:: ,则预配置的任播地址为: 2001 ::特定 EUI-64。此时, IPv6终端等待"目 的地址,, 为 FF02::1 :FF: 11:1111 , "请求目的地址,, 为 2001 ::特定 EUI-64的 NS报文。  The NS packet carries the "destination address" and the "request destination address," for example. The pre-configured multicast address is: FF02::1:FF: 11:1111, and the subnet prefix of the IPv6 terminal is 2001:: , the pre-configured anycast address is: 2001: specific EUI-64. At this time, the IPv6 terminal waits for the "destination address, which is FF02::1:FF: 11:1111, "Request destination address, NS message for 2001: specific EUI-64.
步骤 204: OMC查询此 IPv6终端所在子网前缀,根据该子网前缀生成该 网段内的 IPv6任播地址。  Step 204: The OMC queries the subnet prefix of the IPv6 terminal, and generates an IPv6 anycast address in the network segment according to the subnet prefix.
例如, 以前缀为 2001::为例, 则生成的 IPv6 任播地址为: 2001::特定 EUI-64。  For example, with the prefix 2001:: as an example, the generated IPv6 anycast address is: 2001:: Specific EUI-64.
步骤 205: OMC向此网段内发送 OM-ping报文, 此报文中包含公共配置 信息, 例如 VLAN, DHCP-Server地址, OMC地址等。  Step 205: The OMC sends an OM-ping packet to the network segment, where the packet includes public configuration information, such as a VLAN, a DHCP-Server address, and an OMC address.
例如, 该 OM-ping ^艮文的源地址 SIP=OMC 的 IPv6 地址, 目的地址 DIP=2001 ::特定 EUI-64, 假设特定 EUI-64=设备商 MAC前缀: 11:1111 , 则 DIP=2001 :: 设备商 MAC前缀: 11:1111。  For example, the source address of the OM-ping address is SIP=OMC's IPv6 address, and the destination address is DIP=2001::specific EUI-64. Suppose the specific EUI-64=device vendor MAC prefix: 11:1111, then DIP=2001 :: Equipment vendor MAC prefix: 11:1111.
步骤 206: 此 OM-ping报文到达 IPv6终端所在子网的路由器, 该路由器 查询邻区表项 , 如果此地址未被其他终端使用 , 则路由器緩存此 OM-ping报 文。 Step 206: The OM-ping packet reaches the router of the subnet where the IPv6 terminal is located, the router Query the neighbor table entry. If the address is not used by other terminals, the router caches the OM-ping packet.
其中, 邻区表项中可以记录各终端使用的地址情况。  The address of each terminal can be recorded in the neighbor table entry.
步骤 207: 路由器发送 NS组播报文, 等待使用此 IPv6任播地址的 IPv6 终端回复 NA ^艮文。  Step 207: The router sends an NS multicast packet, and waits for the IPv6 terminal that uses the IPv6 anycast address to reply to the NA^ message.
比如, 该 NS组播才艮文的 DIP= FF02::1:FF: 11:1111 , 请求目的地址为: 2001:: 设备商 MAC前缀: 11:1111。  For example, the NS multicast packet DIP= FF02::1:FF: 11:1111, and the request destination address is: 2001:: Device vendor MAC prefix: 11:1111.
步骤 208: IPv6终端收到 NS报文后开始计数, 即进行 C 1 + 1处理。  Step 208: After receiving the NS message, the IPv6 terminal starts counting, that is, performs C 1 + 1 processing.
其中, 由于该 NS报文为 IPv6终端等待的 NS报文, 则 IPv6终端在接收 到该等待的 NS报文后可以进行计数处理。  The IPv6 terminal can perform the counting process after receiving the NS message waiting for the NS message, because the NS message is the NS message waiting for the IPv6 terminal.
步骤 209: IPv6终端判断计数后的 C1是否等于 N, 若是,执行步骤 210, 否则, 执行步骤 203。  Step 209: The IPv6 terminal determines whether the counted C1 is equal to N. If yes, go to step 210. Otherwise, go to step 203.
即, 如果计数 C N, 则继续侦听直至 C1=N。  That is, if C N is counted, it continues to listen until C1 = N.
步骤 210: 判断在随机时间 T1 内是否收到其他 IPv6终端广播的对应此 NS报文地址的 NA报文, 若是, 执行步骤 202, 否则, 执行步骤 211。  Step 210: Determine whether the NA message corresponding to the NS message address broadcast by the other IPv6 terminal is received in the random time T1. If yes, go to step 202. Otherwise, go to step 211.
其中, T1为随机时延, 可以设置为 10ms<Tl<100ms。 可以从 C1=N时开 上述是以接收到一定次数的 NS报文后再判断其他 IPv6 终端是否广播 NA报文, 也可以是接收到等待的 NS报文后即判断其他 IPv6终端是否广播 ΝΑ ·¾文, 此时, 步骤 203、 步骤 208、 步骤 209可以不执行。  Where T1 is a random delay and can be set to 10ms<Tl<100ms. It can be determined that the other IPv6 terminals broadcast the NA message after receiving the NS message, and the other IPv6 terminals can be broadcasted after receiving the NS message. At this time, step 203, step 208, and step 209 may not be performed.
步骤 211 : IPv6终端自动配置 Link-local地址。  Step 211: The IPv6 terminal automatically configures the Link-local address.
其中, 该自动配置的 Link-local地址包括: 固定的特定值的前 64位, 和 为终端自身的 EUI-64的后 64位。  The automatically configured Link-local address includes: a first 64 bits of a fixed specific value, and a last 64 bits of the EUI-64 of the terminal itself.
步骤 212: IPv6终端采用该 link-local地址向路由器回复 NA报文, 宣布 自己使用此 IPv6任播地址。  Step 212: The IPv6 terminal uses the link-local address to reply to the router with an NA message, and announces that it uses the IPv6 anycast address.
具体地, 该 NA ^艮文的 SIP=link-local地址, DIP 路由器的 IP地址。 同时, 该 IPv6终端可以发送 "非请求 NA" , 向自身所在的本网段广播 自己使用此地址( 2001::特定 EUI-64 ) 。 此 "非请求 NA" (广播 NA ) 的目 的是防止同网段内其他的终端网元与自己同时争抢同一地址。 而且, 与随机 时延 T1配合, 最大程度降低终端网元间争抢的可能性。 另外, 为防止路由器 固化此邻居表项,如为防止路由器将 IPv6任播地址与 IPv6终端的 MAC地址 绑定, 发送的 NA报文中, "Override" 的 FLAG, 设置为 "不覆盖" 。 Specifically, the SIP=link-local address of the NA^艮文, the IP address of the DIP router. At the same time, the IPv6 terminal can send "unsolicited NA" to broadcast itself to the local network segment where it is located (2001::specific EUI-64). The purpose of this "unsolicited NA" (broadcast NA) is to prevent other terminal network elements in the same network segment from competing for the same address at the same time. Moreover, in conjunction with the random delay T1, the possibility of contention between the terminal network elements is minimized. In addition, to prevent the router from curing the neighbor entry, for example, to prevent the router from binding the IPv6 anycast address to the MAC address of the IPv6 terminal, the FLAG of the "override" is set to "not overwrite" in the sent NA message.
步骤 213: 路由器收到 NA报文后, 将 OM-ping报文转发给 IPv6终端。 步骤 214: IPv6终端判断是否收到报文, 若是, 执行步骤 215, 否则, 执 行步骤 202。  Step 213: After receiving the NA packet, the router forwards the OM-ping packet to the IPv6 terminal. Step 214: The IPv6 terminal determines whether the packet is received. If yes, go to step 215. Otherwise, go to step 202.
步骤 215: IPv6终端判断此报文是否为 OM-ping报文, 若是, 执行步骤 216, 否则, 执行步骤 217。  Step 215: The IPv6 terminal determines whether the packet is an OM-ping packet. If yes, go to step 216. Otherwise, go to step 217.
其中, 本发明实施例中的 OM-ping ^艮文与普通的 ping 4艮文的区别是, 本 发明实施例中的 OM-ping报文中携带公共配置信息, 可以根据是否携带公共 配置信息判断是否为 OM-ping报文。  The difference between the OM-ping and the normal ping in the embodiment of the present invention is that the OM-ping packet in the embodiment of the present invention carries the public configuration information, and can be judged according to whether the public configuration information is carried. Whether it is an OM-ping message.
步骤 216: IPv6终端学习 OM-ping报文中的各种信息, 即从该 OM-ping 报文中获取公共配置信息。  Step 216: The IPv6 terminal learns various information in the OM-ping packet, that is, obtains the public configuration information from the OM-ping packet.
其中, 该公共配置信息中包括 OMC地址, IPv6终端可以根据该 OMC 地址向 OMC注册。注册完成后, IPv6终端可以从 OMC处获取对应终端网元 个体的正式配置信息。 IPv6终端可以利用 OM-ping报文中的 VLAN配置信息 配置 VLAN; 如果 OM-ping报文中有对 Link-Local地址新的要求, 则按照该 新的要求重新配置 Link-Local地址。  The public configuration information includes an OMC address, and the IPv6 terminal can register with the OMC according to the OMC address. After the registration is complete, the IPv6 terminal can obtain the official configuration information of the corresponding terminal network element from the OMC. The IPv6 terminal can use the VLAN configuration information in the OM-ping packet to configure the VLAN. If there is a new requirement for the Link-Local address in the OM-ping packet, reconfigure the Link-Local address according to the new requirement.
OMC收到注册报文, 记录此终端网元已收到 OM-ping, 还可以继续发送 OM-ping, 直到此子网内所有终端网元都注册成功。  The OMC receives the registration message, records that the NE has received the OM-ping, and can continue to send the OM-ping until all the terminal NEs in the subnet are successfully registered.
步骤 217: IPv6终端丟弃报文, 停止在该配置的 IPv6任播地址(该配置 的 IPv6任播地址的后缀为 11:1111 )上的学习过程。  Step 217: The IPv6 terminal discards the packet and stops the learning process on the configured IPv6 anycast address (the suffix of the configured IPv6 anycast address is 11:1111).
步骤 218: 判断所有学习过程是否都失败, 若是, 执行步骤 219, 否则, 执行步骤 202。 Step 218: Determine whether all learning processes fail, and if yes, perform step 219, otherwise, Go to step 202.
步骤 219: 记录失败结果, 结束学习过程。  Step 219: Record the failure result and end the learning process.
本实施例通过 OMC配置的 IPv6任播地址,可以实现终端网元获取 OMC 配置的公共配置信息, 实现公共配置信息的端到端配置。  In this embodiment, the IPv6 anycast address configured by the OMC can be used to obtain the public configuration information of the OMC configuration and implement the end-to-end configuration of the common configuration information.
本实施例通过判断接收的 NS报文是否到达预设次数以及判断其他终端 网元是否回复路由器发送的 NS报文, 可以避免终端网元在获取 IPv6任播地 址时出现冲突。  In this embodiment, it is possible to prevent the terminal network element from colliding when acquiring the IPv6 anycast address by determining whether the received NS message reaches the preset number of times and determining whether the other terminal network element replies to the NS message sent by the router.
本实施例可以应用于终端网元通过路由器与 0 M C通信的场景。  This embodiment can be applied to a scenario in which a terminal network element communicates with 0 M C through a router.
在获取公共配置信息之后, 终端可以根据自身单播 IP地址的不同获取方 式进行 OMC的不同注册过程, 详见下述实施例。  After obtaining the public configuration information, the terminal may perform different registration processes of the OMC according to different acquisition methods of the unicast IP address. For details, refer to the following embodiments.
图 3为本发明第三实施例的方法流程示意图, 本实施例以自动配置全球 单播地址为例。 参见图 3 , 本实施例包括:  FIG. 3 is a schematic flowchart of a method according to a third embodiment of the present invention. This embodiment takes an automatic configuration of a global unicast address as an example. Referring to FIG. 3, this embodiment includes:
步骤 31: IPv6终端通过 IPv6任播地址获取 OMC发送的 OM-ping报文。 步骤 32: IPv6终端从 OM-ping报文中获取公共配置信息。  Step 31: The IPv6 terminal obtains the OM-ping packet sent by the OMC through the IPv6 anycast address. Step 32: The IPv6 terminal obtains the public configuration information from the OM-ping packet.
上述两个步骤的具体实现可以参见第二实施例。  For the specific implementation of the above two steps, reference may be made to the second embodiment.
步骤 33: IPv6终端采用全球单播地址自动配置过程配置单播 IPv6地址。 具体地, 配置的该单播 IPv6地址可以包括: 前 64比特和后 64比特, 其 中, 前 64比特为该 IPv6终端所属的子网网段, 可以从 VLAN配置信息中获 取; 后 64比特为终端自身的 EUI-64, 其中终端自身的 EUI-64是根据终端的 MAC地址得到的。  Step 33: The IPv6 terminal uses the global unicast address autoconfiguration process to configure a unicast IPv6 address. Specifically, the configured unicast IPv6 address may include: a first 64 bits and a last 64 bits, where the first 64 bits are subnet segments to which the IPv6 terminal belongs, and may be obtained from VLAN configuration information; the last 64 bits are terminals. Its own EUI-64, in which the terminal's own EUI-64 is obtained according to the MAC address of the terminal.
步骤 34: IPv6终端根据该全球单播地址自动配置过程配置的单播 IPv6 地址向 OMC发送第一通知消息, 该第一通知消息通知所述终端网元的网元 标识与配置的单播 IPv6地址的对应关系以实现向 OMC的注册。  Step 34: The IPv6 terminal sends a first notification message to the OMC according to the unicast IPv6 address configured in the global unicast address auto-configuration process, where the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6 address. Correspondence to achieve registration with the OMC.
具体可以是,该第一通知消息用于通知 OMC该 IPv6终端已收到 OM-ping 报文 , 并将 IPv6终端的单播 IPv6地址及 IPv6终端的网元标识通知给 OMC。  Specifically, the first notification message is used to notify the OMC that the IPv6 terminal has received the OM-ping packet, and notifies the OMC of the unicast IPv6 address of the IPv6 terminal and the network element identifier of the IPv6 terminal.
其中, 公共配置信息中包括 OMC地址, 以便终端与 OMC通信。 另夕卜, OMC可以根据终端网元发送的第一通知消息判断该终端网元是否 注册成功, 依次类推, OMC可以判断每个终端网元是否注册成功, 即判断该 子网内的所有终端网元是否均注册成功, 在均注册成功后停止发送 OM-ping 报文, 否则继续发送 OM-ping报文。 The public configuration information includes an OMC address for the terminal to communicate with the OMC. In addition, the OMC can determine whether the terminal network element is successfully registered according to the first notification message sent by the terminal network element, and so on, and the OMC can determine whether each terminal network element is successfully registered, that is, determine all terminal networks in the subnet. If the registration is successful, the OM-ping packet will be sent after the registration is successful. Otherwise, the OM-ping packet will continue to be sent.
步骤 35: IPv6终端向 OMC注册成功后, 还可以向 OMC进行认证、 鉴 权、 获取针对终端个体的正式配置信息等过程。  Step 35: After the IPv6 terminal successfully registers with the OMC, it can also perform authentication, authentication, and formal configuration information for the terminal entity.
本实施例通过 IPv6任播地址获取公共配置信息,且根据全球单播地址自 动配置过程完成自身单播 IPv6地址配置, 以进行 OMC注册, 并不需要占用 In this embodiment, the public configuration information is obtained through the IPv6 anycast address, and the unicast IPv6 address configuration is completed according to the global unicast address automatic configuration process, so that OMC registration is not required.
IPv6任播地址为自身单播 IPv6地址,可以实现通过 IPv6任播地址为多个 IPv6 终端分配公共配置信息。 An IPv6 anycast address is a unicast IPv6 address. It can allocate common configuration information to multiple IPv6 terminals through an IPv6 anycast address.
图 4为本发明第四实施例的方法流程示意图, 与第三实施例不同的是, 本实施例是通过 DHCP过程获取自身单播 IPv6地址。 参见图 4, 包括:  FIG. 4 is a schematic flowchart of a method according to a fourth embodiment of the present invention. Different from the third embodiment, this embodiment obtains a self-unicast IPv6 address through a DHCP process. See Figure 4, including:
步骤 41: IPv6终端通过 IPv6任播地址获取 OMC发送的 OM-ping报文。 步骤 42: IPv6终端从 OM-ping报文中获取公共配置信息。  Step 41: The IPv6 terminal obtains the OM-ping packet sent by the OMC through the IPv6 anycast address. Step 42: The IPv6 terminal obtains public configuration information from the OM-ping packet.
上述两个步骤的具体实现可以参见第二实施例。  For the specific implementation of the above two steps, reference may be made to the second embodiment.
步骤 43: IPv6终端采用 DHCP过程配置单播 IPv6地址。  Step 43: The IPv6 terminal uses the DHCP process to configure a unicast IPv6 address.
其中,公共配置信息中可以包含 DHCP服务器的地址以进行 DHCP过程。 步骤 44: IPv6终端根据该 DHCP过程配置的单播 IPv6地址向 OMC发 送第一通知消息, 该第一通知消息通知所述终端网元的网元标识与配置的单 播 IPv6地址的对应关系以实现向 OMC的注册。  The public configuration information may include an address of the DHCP server to perform a DHCP process. Step 44: The IPv6 terminal sends a first notification message to the OMC according to the unicast IPv6 address configured by the DHCP process, where the first notification message notifies the correspondence between the network element identifier of the terminal network element and the configured unicast IPv6 address to implement Registration to the OMC.
具体可以是,该第一通知消息用于通知 OMC该 IPv6终端已收到 OM-ping 报文 , 并将 IPv6终端的单播 IPv6地址及 IPv6终端的网元标识通知给 OMC。  Specifically, the first notification message is used to notify the OMC that the IPv6 terminal has received the OM-ping packet, and notifies the OMC of the unicast IPv6 address of the IPv6 terminal and the network element identifier of the IPv6 terminal.
该 OMC地址可以包含在公共配置信息中。  The OMC address can be included in the public configuration information.
另夕卜, OMC可以根据终端网元发送的第一通知消息判断该终端网元是否 注册成功, 依次类推, OMC可以判断每个终端网元是否注册成功, 即判断该 子网内的所有终端网元是否均注册成功, 在均注册成功后停止发送 OM-ping 报文, 否则继续发送 OM-ping报文。 In addition, the OMC can determine whether the terminal network element is successfully registered according to the first notification message sent by the terminal network element, and so on, and the OMC can determine whether each terminal network element is successfully registered, that is, determine all terminal networks in the subnet. Whether the yuan is registered successfully, stop sending OM-ping after the registration is successful. Packet, otherwise continue to send OM-ping packets.
步骤 45: IPv6终端向 OMC注册成功后, 还可以向 OMC进行认证、 鉴 权、 获取针对终端个体的正式配置等过程。  Step 45: After the IPv6 terminal successfully registers with the OMC, it can also perform authentication, authentication, and formal configuration for the terminal entity.
本实施例通过 IPv6任播地址获取公共配置信息,且根据 DHCP配置过程 完成自身单播 IPv6地址配置, 以进行 OMC注册, 并不需要占用 IPv6任播地 址为自身单播 IPv6地址, 可以实现通过 IPv6任播地址为多个 IPv6终端分配 公共配置信息。 另外, 通过不同方式获取单播 IPv6地址, 实现单播 IPv6地 址获取方式的多样化。  In this embodiment, the public configuration information is obtained through the IPv6 anycast address, and the unicast IPv6 address configuration is completed according to the DHCP configuration process to perform the OMC registration, and the IPv6 anycast address is not required to be the unicast IPv6 address, and the IPv6 address can be achieved. Anycast address assigns common configuration information to multiple IPv6 terminals. In addition, the unicast IPv6 address is obtained in different ways, and the unicast IPv6 address acquisition mode is diversified.
图 5为本发明第五实施例的方法流程示意图, 与第三、 四实施例不同的 是, 本实施例将采用 IPv6任播地址作为自身的单播 IPv6地址。 参见图 5, 包 括:  FIG. 5 is a schematic flowchart of a method according to a fifth embodiment of the present invention. Different from the third and fourth embodiments, the embodiment uses an IPv6 anycast address as its unicast IPv6 address. See Figure 5, which includes:
步骤 51: IPv6终端通过 IPv6任播地址获取 OMC发送的 OM-ping报文。 步骤 52: IPv6终端从 OM-ping报文中获取公共配置信息。  Step 51: The IPv6 terminal obtains the OM-ping packet sent by the OMC through the IPv6 anycast address. Step 52: The IPv6 terminal obtains the public configuration information from the OM-ping packet.
上述两个步骤的具体实现可以参见第二实施例。  For the specific implementation of the above two steps, reference may be made to the second embodiment.
步骤 53: IPv6终端将 IPv6任播地址配置成自身的单播 IPv6地址。  Step 53: The IPv6 terminal configures the IPv6 anycast address as its own unicast IPv6 address.
步骤 54: IPv6终端采用该单播 IPv6地址, 向 OMC发送第二通知消息, 该第二通知消息通知所述终端网元的网元标识与配置的单播 IPv6地址的对应 关系以实现向 OMC的注册并指示 OMC暂停本网段内任播地址的发送。  Step 54: The IPv6 terminal uses the unicast IPv6 address to send a second notification message to the OMC, and the second notification message notifies the mapping between the network element identifier of the terminal network element and the configured unicast IPv6 address to implement the OMC. Register and instruct the OMC to suspend the sending of anycast address in this segment.
具体可以是,该第二通知消息用于通知 OMC该 IPv6终端已收到 OM-ping 报文 , 并将 IPv6终端的单播 IPv6地址及 IPv6终端的网元标识通知给 OMC , 并指示 OMC暂停本网段内 IPv6任播地址的发送。  Specifically, the second notification message is used to notify the OMC that the IPv6 terminal has received the OM-ping packet, and notifies the OMC of the unicast IPv6 address of the IPv6 terminal and the network element identifier of the IPv6 terminal, and instructs the OMC to suspend the The transmission of the IPv6 anycast address in the network segment.
步骤 55: OMC接收到该第二通知消息后, 暂时停止在本网段(2001:: ) 内的学习过程。  Step 55: After receiving the second notification message, the OMC temporarily stops the learning process in the network segment (2001::).
步骤 56: 同时, IPv6终端广播路由通告(Router Advertisement, RA )报 文, 其中的 "override" 为覆盖, 表示该 IPv6任播地址被该 IPv6终端占用。  Step 56: At the same time, the IPv6 terminal broadcasts a Router Advertisement (RA) message, where "override" is an overlay, indicating that the IPv6 anycast address is occupied by the IPv6 terminal.
步骤 57: IPv6终端获取新的单播 IPv6地址, 例如, 采用全球单播地址 自动配置过程或者 DHCP过程获取的单播 IPv6地址。 Step 57: The IPv6 terminal acquires a new unicast IPv6 address, for example, using a global unicast address. The unicast IPv6 address obtained by the automatic configuration process or DHCP process.
步骤 58: IPv6终端向 OMC发送第三通知消息, 该第三通知消息指示所 述 OMC继续本网段内所述报文的发送。  Step 58: The IPv6 terminal sends a third notification message to the OMC, where the third notification message indicates that the OMC continues to send the packet in the local network segment.
具体可以是, 该第三通知消息用于通知 OMC该 IPv6终端已获取新的单 播 IPv6地址, 并指示 OMC重新进行该网段内的 IPv6任播地址的发送过程。  Specifically, the third notification message is used to notify the OMC that the IPv6 terminal has acquired a new unicast IPv6 address, and instructs the OMC to re-send the IPv6 anycast address in the network segment.
步骤 59: IPv6终端广播 RA报文, 其中 "override" 为不覆盖, 表示不再 占用该 IPv6任播地址。  Step 59: The IPv6 terminal broadcasts the RA message, where "override" is not overwritten, indicating that the IPv6 anycast address is no longer occupied.
其中, IPv6终端可以在发送第三通知消息时, 通过广播该 RA ^艮文。 之后, IPv6终端可以删除任播地址配置, 不再回复 IPv6任播地址相关的 NS 报文; 路由器可以在老化时间后删除终端与任播地址的对应关系。 OMC 重新发送 OM-ping ^艮文直至该子网内的终端都注册完成。  The IPv6 terminal may broadcast the RA message by sending the third notification message. Then, the IPv6 terminal can delete the anycast address configuration and no longer reply to the NS message related to the IPv6 anycast address. The router can delete the correspondence between the terminal and the anycast address after the aging time. The OMC resends the OM-ping^ message until the terminals in the subnet are registered.
本实施例通过 IPv6任播地址获取公共配置信息, 且根据 IPv6任播地址 完成自身单播 IPv6地址配置, 以进行 OMC注册, 本实施例直接占用 IPv6任 播地址为自身单播 IPv6地址, 简化流程。  In this embodiment, the public configuration information is obtained through the IPv6 anycast address, and the unicast IPv6 address is configured according to the IPv6 anycast address to perform the OMC registration. In this embodiment, the IPv6 anycast address is directly occupied by the unicast IPv6 address, which simplifies the process. .
图 6为本发明第六实施例的终端网元的结构示意图, 该终端网元可以为 执行上述终端侧方法的设备, 可以为 IPv6终端, 具体如基站。  FIG. 6 is a schematic structural diagram of a terminal network element according to a sixth embodiment of the present invention. The terminal network element may be a device that performs the foregoing terminal side method, and may be an IPv6 terminal, such as a base station.
该终端网元可以包括接收模块 61、 确定模块 62、 获取模块 63和注册模 块 64; 接收模块 61用于接收第一报文, 该第一报文中包含 IPv6任播地址; 确定模块 62用于在该接收模块接收到该第一报文后,判断在预设时间内是否 收到其他网元发送的表明使用该 IPv6任播地址的报文, 若为否, 则确定自身 使用该 IPv6任播地址; 获取模块 63用于在该确定模块确定所述终端网元自 身使用该 IPv6任播地址后, 从接收的源自 OMC的包含公共配置信息的报文 中获取该公共配置信息, 该公共配置信息中包括 OMC的地址; 注册模块 64 用于根据该获取模块获取的该 OMC的地址, 向所述 OMC进行网络注册。  The terminal network element may include a receiving module 61, a determining module 62, an obtaining module 63, and a registering module 64. The receiving module 61 is configured to receive a first packet, where the first packet includes an IPv6 anycast address, and the determining module 62 is configured to: After receiving the first packet, the receiving module determines whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time, and if not, determining that the IPv6 is used by the receiving device. The obtaining module 63 is configured to: after the determining module determines that the terminal network element itself uses the IPv6 anycast address, obtain the common configuration information from the received OMC-derived message including the common configuration information, where the public configuration is obtained. The information includes an address of the OMC; the registration module 64 is configured to perform network registration with the OMC according to the address of the OMC obtained by the obtaining module.
一个实施例中, 当该终端网元与该 OMC通过路由器进行 ^艮文传输时, 该第一报文为 NS报文, 该接收模块具体用于接收本网段内的路由器发送的 NS报文,该 NS报文为该路由器接收到 OMC发送的包含 IPv6任播地址和公 共配置信息的报文后发送的, 例如, OMC发送的包含 IPv6任播地址和公共 配置信息的报文为上述的 OM-ping报文; 该获取模块具体用于在确定使用该 IPv6任播地址后, 向该路由器发送 NA报文; 接收该路由器在接收到该 NA 报文后转发的、 该 OMC发送的包含 IPv6任播地址和公共配置信息的报文, 并从该 OMC发送的包含 IPv6任播地址和公共配置信息的报文中获取该公共 配置信息。 In an embodiment, when the terminal network element and the OMC transmit the message through the router, the first packet is an NS packet, and the receiving module is specifically configured to receive the router sent by the network segment. The NS packet is sent by the router after receiving the packet containing the IPv6 anycast address and the common configuration information sent by the OMC. For example, the packet sent by the OMC including the IPv6 anycast address and the common configuration information is The OM-ping packet is configured to send an NA message to the router after determining to use the IPv6 anycast address, and receive the OMC sent by the router after receiving the NA message. The packet includes the IPv6 anycast address and the public configuration information, and obtains the public configuration information from the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information.
一个实施例中, 当该终端网元与该 OMC直接进行报文传输时, 该第一 报文为 OMC发送的包含 IPv6任播地址和公共配置信息的报文, 该接收模块 具体用于接收 OMC发送的包含 IPv6任播地址和公共配置信息的报文; 该获 取模块具体用于在确定使用该 IPv6任播地址后, 从该 OMC发送的包含 IPv6 任播地址和公共配置信息的报文中获取该公共配置信息。  In an embodiment, when the terminal network element directly transmits the message to the OMC, the first packet is a packet that is sent by the OMC and includes an IPv6 anycast address and a common configuration information, where the receiving module is specifically configured to receive the OMC. And the sending the packet that includes the IPv6 anycast address and the common configuration information. The obtaining module is specifically configured to obtain, after determining to use the IPv6 anycast address, the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information. The public configuration information.
上述的 IPv6任播地址可以具有如下格式: 网元所在子网的子网网段:: 特 定 EUI-64。 该特定 EUI-64可以采用如下方式生成:  The above IPv6 anycast address can have the following format: Subnet segment of the subnet where the NE is located:: Specific EUI-64. This particular EUI-64 can be generated as follows:
首先, 设备商或运营商申请自己的 MAC前缀;  First, the equipment vendor or operator applies for its own MAC prefix;
其次, 设备商或运营商可以分不同的设备种类或者应用种类定义自己的 专用 MAC地址, 该专用 MAC地址可以为多个; 其中, 该专用 MAC地址可 以分为 64位和 48位。 不论哪种长度的专用 MAC地址, 均要以前一步中申 请的 MAC前缀作为厂商唯一标示。  Secondly, the equipment provider or the operator can define its own dedicated MAC address by different device types or application types, and the dedicated MAC address can be multiple; wherein the dedicated MAC address can be divided into 64 bits and 48 bits. Regardless of the length of the dedicated MAC address, the MAC prefix applied in the previous step is the only identifier of the vendor.
再次, 根据专用 MAC 地址生成 EUI-64, 该生成的 EUI-64 即为特定 EUI-64。 其中, 由 MAC地址生成 EUI-64可以采用现有方法实现。  Again, EUI-64 is generated from the dedicated MAC address, which is the specific EUI-64. The EUI-64 generated by the MAC address can be implemented by using an existing method.
一个实施例中, 该终端网元还可以包括: 判断模块, 用于判断接收到该 第一报文的次数是否大于预设的次数; 该确定模块具体用于在该判断模块判 断出该次数大于预设的次数后, 判断在预设时间内是否收到其他网元发送的 表明使用该 IPv6任播地址的报文。  In an embodiment, the terminal network element may further include: a determining module, configured to determine whether the number of times the first packet is received is greater than a preset number of times; the determining module is specifically configured to determine, by the determining module, that the number of times is greater than After the preset number of times, it is determined whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time.
一个实施例中,该注册模块具体用于获取单播 IPv6地址,并根据该 OMC 的地址向 OMC进行网络注册。 In an embodiment, the registration module is specifically configured to obtain a unicast IPv6 address, and according to the OMC The address is registered with the OMC network.
进一步地, 该注册模块进一步用于: 采用全球单播地址自动配置过程配 置单播 IPv6地址, 并向 OMC发送第一通知消息, 该第一通知消息通知该终 端网元的网元标识与配置的单播 IPv6地址的对应关系; 或者, 采用 DHCP过 程配置单播 IPv6地址, 并向 OMC发送第一通知消息, 该第一通知消息通知 该终端网元的网元标识与配置的单播 IPv6地址的对应关系。  Further, the registration module is further configured to: configure a unicast IPv6 address by using a global unicast address auto-configuration process, and send a first notification message to the OMC, where the first notification message notifies the network element identifier and configuration of the network element of the terminal The unicast IPv6 address is configured as a unicast IPv6 address; or the unicast IPv6 address is configured by the DHCP process, and the first notification message is sent to the OMC, and the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6 address. Correspondence relationship.
或者,该注册模块进一步用于:将该 IPv6任播地址配置成自身的单播 IPv6 地址; 向 OMC发送第二通知消息, 该第二通知消息通知该终端网元的网元 标识与配置的单播 IPv6地址的对应关系并指示 OMC暂停本网段内任播地址 的发送; 在本网段内广播表明占用该 IPv6任播地址的 NA报文。  Or the registration module is further configured to: configure the IPv6 anycast address as its own unicast IPv6 address; send a second notification message to the OMC, where the second notification message notifies the network element identifier and the configured list of the terminal network element The corresponding relationship of the IPv6 address is broadcasted and the OMC is suspended to transmit the anycast address in the local network segment. The NA packet broadcasting the IPv6 anycast address is broadcast in the local network segment.
本实施例还可以包括: 通知模块, 用于在获取有别于该 IPv6任播地址的 其它的单播 IPv6地址后, 用该其它的单播 IPv6地址替代该 IPv6任播地址作 为新的单播 IPv6, 并向该 OMC发送第三通知消息, 该第三通知消息指示该 OMC继续本网段内该报文的发送; 广播表明自身不再占用该 IPv6任播地址 的 NA报文。  The embodiment may further include: a notification module, configured to replace the IPv6 anycast address with the other unicast IPv6 address as a new unicast after acquiring another unicast IPv6 address different from the IPv6 anycast address. And the third notification message is sent to the OMC, and the third notification message indicates that the OMC continues to send the message in the local network segment; the broadcast indicates that the NA message of the IPv6 anycast address is no longer occupied by the broadcast.
本实施例通过 IPv6任播地址获取公共配置信息, 该公共配置信息中包含 OMC的地址, 以实现向 OMC注册, 实现端到端注册。 本实施例可以应用于 终端网元与 OMC 直接通信的场景, 也可以应用于终端网元通过路由器与 OMC通信的场景。 本实施例可以采用不同的方式获取单播 IPv6地址, 实现 获取方式的多样化。  In this embodiment, the public configuration information is obtained by using the IPv6 anycast address, and the public configuration information includes the address of the OMC to register with the OMC to implement end-to-end registration. This embodiment can be applied to the scenario where the terminal NE communicates with the OMC directly, and can also be applied to the scenario where the terminal NE communicates with the OMC through the router. In this embodiment, the unicast IPv6 address can be obtained in different manners, and the obtaining manner is diversified.
图 7为本发明第七实施例的方法流程示意图, 包括:  FIG. 7 is a schematic flowchart of a method according to a seventh embodiment of the present invention, including:
步骤 71: 路由器接收 OMC发送的包含 IPv6任播地址和公共配置信息的 报文;  Step 71: The router receives the packet that is sent by the OMC and includes the IPv6 anycast address and the public configuration information.
例如, 该报文为上述的 OM-ping报文。  For example, the message is the above OM-ping message.
步骤 72: 路由器在接收到该 OMC发送的包含 IPv6任播地址和公共配置 信息的报文后, 向本网段内的终端网元发送 NS报文, 所述本网段为所述路 由器所在的网段; Step 72: After receiving the packet that is sent by the OMC and including the IPv6 anycast address and the common configuration information, the router sends an NS packet to the terminal network element in the local network segment, where the local network segment is the path. The network segment where the device is located;
步骤 73: 路由器接收 NA报文, 该 NA报文为确定使用该 IPv6任播地址 的终端网元发送的;  Step 73: The router receives the NA packet, and the NA packet is sent by the terminal network element that determines the IPv6 anycast address.
其中, 可以是终端网元接收到一定次数的 NS报文且在一定时间内没有 接收到其他终端发送的表明使用该 IPv6任播地址的报文后, 确定使用 IPv6 任播地址, 之后向路由器发送 NA报文。  The terminal network element may receive the NS message for a certain number of times, and after receiving the message indicating that the IPv6 anycast address is sent by the other terminal, determine that the IPv6 anycast address is used, and then send the message to the router. NA message.
步骤 74: 路由器向发送该 NA报文的终端网元发送该 OMC发送的包含 IPv6任播地址和公共配置信息的报文, 该公共配置信息中包括 OMC的地址, 该 OMC的地址用于该终端网元向 OMC进行网络注册。  Step 74: The router sends a message including the IPv6 anycast address and the common configuration information sent by the OMC to the terminal network element that sends the NA message, where the public configuration information includes the address of the OMC, and the address of the OMC is used for the terminal. The network element registers with the OMC network.
进一步地, 在步骤 71之后, 还可以包括: 路由器查询邻区表项, 根据邻 区表项判断该 IPv6任播地址是否被其它终端网元使用, 如果未被其它终端网 元使用, 则緩存该 OMC发送的包含 IPv6任播地址和公共配置信息的报文。 以便后续发送给确定使用 IPv6任播地址的终端网元。  Further, after the step 71, the method may further include: the router querying the neighboring cell entry, determining, according to the neighboring cell entry, whether the IPv6 anycast address is used by other terminal network elements, and if not used by other terminal network elements, caching the A packet sent by the OMC that contains an IPv6 anycast address and public configuration information. For subsequent transmission to the terminal network element that determines the use of the IPv6 anycast address.
本实施例中的 IPv6任播地址可以采用上述各实施例的方法构成。  The IPv6 anycast address in this embodiment may be constructed by using the methods of the foregoing embodiments.
本实施例通过 IPv6任播地址使得终端网元获取公共配置信息, 该公共配 置信息中包含 OMC的地址,以实现终端网元向 OMC注册,实现端到端注册。 本实施例可以应用于终端网元通过路由器与 0 MC通信的场景。  In this embodiment, the terminal network element obtains the public configuration information by using the IPv6 anycast address, and the public configuration information includes the address of the OMC, so that the terminal network element registers with the OMC to implement end-to-end registration. This embodiment can be applied to a scenario in which a terminal network element communicates with a 0 MC through a router.
图 8为本发明第八实施例的路由器的结构示意图, 该路由器可以为执行 上述路由器对应的方法的设备, 该路由器 80 包括第一接收模块 81、 第一发 送模块 82、 第二接收模块 83和第二发送模块 84; 第一接收模块 81用于接收 OMC发送的包含 IPv6任播地址和公共配置信息的报文; 第一发送模块 82用 于在该第一接收模块接收到该 OMC发送的包含 IPv6任播地址和公共配置信 息的报文后, 向本网段内的终端网元发送邻居请求 NS报文, 所述本网段为 所述路由器所在的网段; 第二接收模块 83用于接收 NA报文, 该 NA报文为 确定使用该 IPv6任播地址的终端网元发送的; 第二发送模块 84用于向发送 该第二接收模块接收的该 NA报文的终端网元,发送该 OMC发送的包含 IPv6 任播地址和公共配置信息的报文, 该公共配置信息中包括 OMC 的地址, 该 OMC的地址用于该终端网元向 OMC进行网络注册。 FIG. 8 is a schematic structural diagram of a router according to an eighth embodiment of the present invention. The router may be a device that performs the method corresponding to the foregoing router. The router 80 includes a first receiving module 81, a first sending module 82, a second receiving module 83, and The second sending module 84 is configured to receive the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information. The first sending module 82 is configured to receive, by the first receiving module, the content that is sent by the OMC. The IPv6 anycast address and the public configuration information are sent to the terminal network element in the local network segment to send the neighbor request NS message, where the local network segment is the network segment where the router is located; And receiving the NA packet, where the NA packet is sent by the terminal network element that uses the IPv6 anycast address, and the second sending module 84 is configured to send the terminal network element that sends the NA packet received by the second receiving module. The OMC sends IPv6 A message of anycast address and public configuration information, where the public configuration information includes an address of the OMC, and the address of the OMC is used for network registration of the terminal network element to the OMC.
一个实施例中还可以包括: 緩存模块, 用于查询邻区表项, 根据邻区表 项判断该 IPv6任播地址是否被其它终端网元使用, 如果未被其它终端网元使 用, 则緩存该第一接收模块接收的该 OMC发送的包含 IPv6任播地址和公共 配置信息的报文。  An embodiment may further include: a cache module, configured to query a neighboring cell entry, determine, according to the neighboring cell entry, whether the IPv6 anycast address is used by another terminal network element, and if not used by other terminal network elements, cache the The packet received by the first receiving module and sent by the OMC, including an IPv6 anycast address and public configuration information.
本实施例中的 IPv6任播地址可以采用上述各实施例的方法构成。  The IPv6 anycast address in this embodiment may be constructed by using the methods of the foregoing embodiments.
本实施例中, 终端网元在接收到 NS报文后, 可以判断在预设时间内是 否收到其他网元发送的表明使用所述 IPv6任播地址的报文, 若为否, 则确定 终端网元自身使用所述 IPv6任播地址;  In this embodiment, after receiving the NS packet, the terminal network element may determine whether the packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time, and if not, the terminal is determined. The network element itself uses the IPv6 anycast address;
进一步地, 终端网元还可以判断接收到所述第一报文的次数是否大于预 设的次数, 以便次数大于预设的次数时判断在预设时间内是否收到其他网元 发送的表明使用所述 IPv6任播地址的报文。  Further, the terminal network element may further determine whether the number of times the first packet is received is greater than a preset number of times, so that when the number of times is greater than the preset number of times, it is determined whether the other network element sends the indication to be used within a preset time. The packet of the IPv6 anycast address.
另外, 终端网元还可以获取单播 IPv6地址, 并根据所述 OMC的地址向 OMC进行网络注册。  In addition, the terminal network element can also obtain a unicast IPv6 address, and perform network registration with the OMC according to the address of the OMC.
例如, 终端网元采用全球单播地址自动配置过程配置单播 IPv6地址, 并 向 OMC发送第一通知消息, 所述第一通知消息通知所述终端网元的网元标 识与配置的单播 IPv6地址的对应关系; 或者, 终端网元采用动态主机配置协 议 DHCP过程配置单播 IPv6地址, 并向 OMC发送第一通知消息, 所述第一 通知消息通知所述终端网元的网元标识与配置的单播 IPv6地址的对应关系。  For example, the terminal network element configures a unicast IPv6 address by using a global unicast address auto-configuration process, and sends a first notification message to the OMC, where the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6. Corresponding relationship of the address; or, the terminal network element configures the unicast IPv6 address by using the dynamic host configuration protocol DHCP process, and sends a first notification message to the OMC, where the first notification message notifies the network element identification and configuration of the terminal network element The correspondence between unicast IPv6 addresses.
或者, 终端网元将所述 IPv6任播地址配置成自身的单播 IPv6地址; 终 端网元向 OMC发送第二通知消息,所述第二通知消息指示 OMC暂停本网段 内任播地址的发送; 终端网元在本网段内广播表明占用该 IPv6任播地址的 NA报文。  Alternatively, the terminal network element configures the IPv6 anycast address as its own unicast IPv6 address; the terminal network element sends a second notification message to the OMC, and the second notification message instructs the OMC to suspend the sending of any anycast address in the network segment. The terminal NE broadcasts the NA packet that occupies the IPv6 anycast address in the local network segment.
还可以: 终端网元在获取有别于该 IPv6任播地址的其它的单播 IPv6地 址后, 用所述其它的单播 IPv6 地址替代所述 IPv6任播地址作为新的单播 IPv6, 并向所述 OMC发送第三通知消息, 所述第三通知消息指示所述 OMC 继续本网段内所述报文的发送; 终端网元广播表明自身不再占用该 IPv6任播 地址的 NA 艮文。 The device network element may replace the IPv6 anycast address with the other unicast IPv6 address as a new unicast after acquiring another unicast IPv6 address different from the IPv6 anycast address. IPv6, and sending a third notification message to the OMC, where the third notification message indicates that the OMC continues to send the packet in the local network segment; the terminal network element broadcast indicates that the IPv6 anycast address is no longer occupied by the terminal. NA 艮文.
本实施例通过 IPv6任播地址使得终端网元获取公共配置信息, 该公共配 置信息中包含 OMC的地址,以实现终端网元向 OMC注册,实现端到端注册。 本实施例可以应用于终端网元通过路由器与 0 MC通信的场景。  In this embodiment, the terminal network element obtains the public configuration information by using the IPv6 anycast address, and the public configuration information includes the address of the OMC, so that the terminal network element registers with the OMC to implement end-to-end registration. This embodiment can be applied to a scenario in which a terminal network element communicates with a 0 MC through a router.
可以理解的是, 上述方法及设备中的相关特征可以相互参考。 另外, 上 述实施例中的 "第一" 、 "第二" 等是用于区分各实施例, 而并不代表各实 施例的优劣。  It can be understood that related features in the above methods and devices can be referred to each other. In addition, "first", "second", and the like in the above embodiments are used to distinguish the embodiments, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于计算机可读取 存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的 存储介质包括: ROM, RAM,磁碟或者光盘等各种可以存储程序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions. The foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1、 一种终端网元注册的方法, 其特征在于, 包括:  A method for registering a terminal network element, comprising:
终端网元接收第一报文, 所述第一报文中包含 IPv6任播地址;  The terminal network element receives the first packet, where the first packet includes an IPv6 anycast address;
终端网元接收到所述第一报文后, 判断在预设时间内是否收到其他网元 发送的表明使用所述 IPv6任播地址的报文,若为否,则确定自身使用所述 IPv6 任播地址;  After receiving the first packet, the terminal network element determines whether a packet sent by another network element indicating that the IPv6 anycast address is used is received within a preset time, and if not, determining that the IPv6 is used by the terminal. Anycast address;
终端网元在确定自身使用所述 IPv6任播地址后,从接收的源自操作维护 中心 OMC 的包含公共配置信息的报文中获取所述公共配置信息, 所述公共 配置信息中包括 OMC的地址;  After determining that the IPv6 anycast address is used by the terminal network element, the public configuration information is obtained from the received message containing the common configuration information from the operation and maintenance center OMC, where the public configuration information includes the address of the OMC. ;
终端网元根据所述 OMC的地址, 向所述 OMC进行网络注册。  The terminal network element performs network registration with the OMC according to the address of the OMC.
2、 根据权利要求 1 所述的方法, 其特征在于, 当所述终端网元与所述 OMC通过路由器进行报文传输时, 所述第一报文为邻居请求 NS报文,  The method according to claim 1, wherein when the terminal network element and the OMC transmit a message through a router, the first packet is a neighbor requesting an NS message.
所述终端网元接收第一报文, 包括:  Receiving, by the terminal network element, the first packet, including:
终端网元接收本网段内的路由器发送的 NS报文,所述 NS报文为所述路 由器接收到 OMC发送的包含 IPv6任播地址和公共配置信息的报文后发送的; 所述终端网元在确定自身使用所述 IPv6任播地址后,从接收的源自 OMC 的包含公共配置信息的报文中获取所述公共配置信息, 包括:  The terminal network element receives the NS message sent by the router in the local network segment, and the NS message is sent by the router after receiving the packet containing the IPv6 anycast address and the common configuration information sent by the OMC; After determining that the IPv6 anycast address is used by the user, the public configuration information is obtained from the received OMC-derived message containing the public configuration information, including:
终端网元在确定使用所述 IPv6任播地址后, 向所述路由器发送邻居宣告 NA报文;  After determining, by using the IPv6 anycast address, the terminal network element sends a neighbor declaration NA message to the router;
终端网元接收所述路由器在接收到所述 NA报文后转发的、 所述 OMC 发送的包含 IPv6任播地址和公共配置信息的报文, 并从所述 OMC发送的包 含 IPv6任播地址和公共配置信息的报文中获取所述公共配置信息。  Receiving, by the terminal network element, the packet that is sent by the OMC and that is sent by the OMC, including the IPv6 anycast address and the common configuration information, and the IPv6 anycast address that is sent from the OMC and received by the router. The public configuration information is obtained in a packet of public configuration information.
3、 根据权利要求 1 所述的方法, 其特征在于, 当所述终端网元与所述 OMC直接进行报文传输时,所述第一报文为 OMC发送的包含 IPv6任播地址 和公共配置信息的报文,  The method according to claim 1, wherein when the terminal network element and the OMC directly perform packet transmission, the first packet is an IPv6 anycast address and a public configuration sent by the OMC. Message message,
所述终端网元接收第一报文, 包括: 终端网元接收 OMC发送的包含 IPv6任播地址和公共配置信息的报文; 所述终端网元在确定自身使用所述 IPv6任播地址后,从接收的源自 OMC 的包含公共配置信息的报文中获取所述公共配置信息, 包括: Receiving, by the terminal network element, the first packet, including: Receiving, by the terminal network element, a message that includes the IPv6 anycast address and the common configuration information that is sent by the OMC; after determining that the IPv6 anycast address is used by the terminal network element, the received source information of the OMC-derived public configuration information is received. The public configuration information is obtained in the text, including:
终端网元在确定使用所述 IPv6任播地址后,从所述 OMC发送的包含 IPv6 任播地址和公共配置信息的报文中获取所述公共配置信息。  After determining, by using the IPv6 anycast address, the terminal network element obtains the public configuration information from a packet that is sent by the OMC and includes an IPv6 anycast address and public configuration information.
4、 根据权利要求 1-3任一项所述的方法, 其特征在于, 所述判断在预设 时间内是否收到其他网元发送的表明使用所述 IPv6任播地址的报文之前, 所 述方法还包括: 判断接收到所述第一报文的次数是否大于预设的次数, 以便 次数大于预设的次数时判断在预设时间内是否收到其他网元发送的表明使用 所述 IPv6任播地址的 ^艮文。  The method according to any one of claims 1-3, wherein the determining, before receiving, in a preset time, a message sent by another network element indicating that the IPv6 anycast address is used, The method further includes: determining whether the number of times the first packet is received is greater than a preset number of times, so that if the number of times is greater than a preset number of times, determining whether the network element sent by another network element is received within a preset time indicates that the IPv6 is used. ^艮文 of anycast address.
5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述终端网元根 据所述 OMC的地址, 向所述 OMC进行网络注册, 包括:  The method according to any one of claims 1-4, wherein the terminal network element performs network registration with the OMC according to the address of the OMC, including:
终端网元获取单播 IPv6地址, 并根据所述 OMC的地址向 OMC进行网 络注册。  The terminal NE obtains a unicast IPv6 address, and performs network registration with the OMC according to the address of the OMC.
6、根据权利要求 5所述的方法,其特征在于,所述终端网元获取单播 IPv6 地址, 并根据所述 OMC的地址向 OMC进行网络注册, 包括:  The method according to claim 5, wherein the terminal network element acquires a unicast IPv6 address, and performs network registration with the OMC according to the address of the OMC, including:
终端网元采用全球单播地址自动配置过程配置单播 IPv6地址 ,并向 OMC 发送第一通知消息, 所述第一通知消息通知所述终端网元的网元标识与配置 的单播 IPv6地址的对应关系; 或者,  The terminal network element uses a global unicast address auto-configuration process to configure a unicast IPv6 address, and sends a first notification message to the OMC, where the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6 address. Correspondence; or
终端网元采用动态主机配置协议 DHCP过程配置单播 IPv6地址, 并向 OMC发送第一通知消息,所述第一通知消息通知所述终端网元的网元标识与 配置的单播 IPv6地址的对应关系。  The terminal network element uses a dynamic host configuration protocol (DHCP) process to configure a unicast IPv6 address, and sends a first notification message to the OMC, where the first notification message notifies the network element identifier of the terminal network element and the configured unicast IPv6 address. relationship.
7、根据权利要求 5所述的方法,其特征在于,所述终端网元获取单播 IPv6 地址, 并根据所述 OMC的地址向 OMC进行网络注册, 包括:  The method according to claim 5, wherein the terminal network element obtains a unicast IPv6 address, and performs network registration with the OMC according to the address of the OMC, including:
终端网元将所述 IPv6任播地址配置成自身的单播 IPv6地址;  The terminal network element configures the IPv6 anycast address as its own unicast IPv6 address;
终端网元向 OMC发送第二通知消息, 所述第二通知消息通知该终端网 元的网元标识与配置的单播 IPv6地址的对应关系并指示 OMC暂停本网段内 任播地址的发送; The terminal network element sends a second notification message to the OMC, where the second notification message notifies the terminal network Correspondence between the network element identifier of the element and the configured unicast IPv6 address, and instructing the OMC to suspend the sending of the anycast address in the network segment;
终端网元在本网段内广播表明占用该 IPv6任播地址的 NA报文。  The terminal NE broadcasts the NA packet that occupies the IPv6 anycast address in the local network segment.
8、 根据权利要求 7所述的方法, 其特征在于, 还包括:  8. The method according to claim 7, further comprising:
终端网元在获取有别于该 IPv6任播地址的其它的单播 IPv6地址后, 用 所述其它的单播 IPv6地址替代所述 IPv6任播地址作为新的单播 IPv6, 并向 所述 OMC发送第三通知消息,所述第三通知消息指示所述 OMC继续本网段 内所述报文的发送;  After obtaining the other unicast IPv6 address different from the IPv6 anycast address, the terminal network element replaces the IPv6 anycast address with the other unicast IPv6 address as the new unicast IPv6, and sends the unicast IPv6 to the OMC. Sending a third notification message, where the third notification message indicates that the OMC continues to send the packet in the local network segment;
终端网元广播表明自身不再占用该 IPv6任播地址的 NA报文。  The broadcast of the terminal NE indicates that it no longer occupies the NA message of the IPv6 anycast address.
9、 一种网络注册的方法, 其特征在于, 包括:  9. A method of network registration, characterized in that it comprises:
路由器接收操作维护中心 OMC发送的包含 IPv6任播地址和公共配置信 息的报文;  The router receives the packet that is sent by the OMC and contains the IPv6 anycast address and public configuration information.
路由器在接收到所述 OMC发送的包含 IPv6任播地址和公共配置信息的 报文后, 向本网段内的终端网元发送邻居请求 NS报文, 所述本网段为所述 路由器所在的网段;  After receiving the packet that is sent by the OMC and including the IPv6 anycast address and the common configuration information, the router sends a neighbor request NS packet to the terminal network element in the local network segment, where the local network segment is where the router is located. Network segment
路由器接收邻居宣告 NA报文, 所述 NA报文为确定使用所述 IPv6任播 地址的终端网元发送的;  The router receives the neighboring NA message, and the NA message is sent by the terminal network element that determines the IPv6 anycast address.
路由器向发送所述 NA报文的终端网元发送所述 OMC发送的包含 IPv6 任播地址和公共配置信息的报文, 所述公共配置信息中包括 OMC 的地址,  The router sends the packet containing the IPv6 anycast address and the common configuration information, which is sent by the OMC, to the terminal network element that sends the NA packet, where the public configuration information includes the address of the OMC.
10、 根据权利要求 9 所述的方法, 其特征在于, 所述路由器接收 OMC 发送的包含 IPv6任播地址和公共配置信息的报文之后, 所述方法还包括: 路由器查询邻区表项,根据邻区表项判断所述 IPv6任播地址是否被其它 终端网元使用, 如果未被其它终端网元使用, 则緩存所述 OMC发送的包含 IPv6任播地址和公共配置信息的报文。 The method according to claim 9, wherein, after the router receives the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information, the method further includes: the router querying the neighboring table entry, according to The neighboring entry indicates whether the IPv6 anycast address is used by other terminal network elements, and if not used by other terminal network elements, buffers the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information.
11、 一种终端网元, 其特征在于, 包括: 接收模块, 用于接收第一报文, 所述第一报文中包含 IPv6任播地址; 确定模块, 用于在所述接收模块接收到所述第一报文后, 判断在预设时 间内是否收到其他网元发送的表明使用所述 IPv6任播地址的报文, 若为否, 则确定自身使用所述 IPv6任播地址; A terminal network element, comprising: a receiving module, configured to receive a first packet, where the first packet includes an IPv6 anycast address, and a determining module, configured to: after receiving, by the receiving module, the first packet, determining, in a preset time Whether it receives a message sent by another network element indicating that the IPv6 anycast address is used, and if not, determining that the IPv6 anycast address is used by itself;
获取模块, 用于在所述确定模块确定所述终端网元自身使用所述 IPv6任 播地址后, 从接收的源自 OMC 的包含公共配置信息的报文中获取所述公共 配置信息, 所述公共配置信息中包括 OMC的地址;  An obtaining module, configured to: after the determining module determines that the terminal network element uses the IPv6 anycast address, obtain the public configuration information from the received OMC-derived message including the common configuration information, where The public configuration information includes the address of the OMC;
注册模块,用于根据所述获取模块获取的所述 OMC的地址,向所述 OMC 进行网络注册。  And a registration module, configured to perform network registration with the OMC according to the address of the OMC acquired by the obtaining module.
12、 根据权利要求 11所述的终端网元, 其特征在于, 当所述终端网元与 所述 OMC通过路由器进行报文传输时, 所述第一报文为邻居请求 NS报文, 所述接收模块具体用于接收本网段内的路由器发送的 NS报文, 所述 NS 报文为所述路由器接收到 OMC发送的包含 IPv6任播地址和公共配置信息的 报文后发送的;  The terminal network element according to claim 11, wherein when the terminal network element and the OMC transmit a message through a router, the first packet is a neighbor request NS message, The receiving module is specifically configured to receive the NS message sent by the router in the local network segment, where the NS message is sent by the router after receiving the packet containing the IPv6 anycast address and the common configuration information sent by the OMC;
所述获取模块具体用于在确定使用所述 IPv6任播地址后, 向所述路由器 发送邻居宣告 NA报文; 接收所述路由器在接收到所述 NA报文后转发的、 所述 OMC发送的包含 IPv6任播地址和公共配置信息的报文,并从所述 OMC 发送的包含 IPv6任播地址和公共配置信息的报文中获取所述公共配置信息。  The acquiring module is specifically configured to: after determining to use the IPv6 anycast address, send a neighboring NA message to the router; and receive, by the OMC, the router, after being sent by the router, after receiving the NA message, The packet includes the IPv6 anycast address and the common configuration information, and obtains the public configuration information from the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information.
13、 根据权利要求 11所述的终端网元, 其特征在于, 当所述终端网元与 所述 OMC直接进行报文传输时, 所述第一报文为 OMC发送的包含 IPv6任 播地址和公共配置信息的报文,  The terminal network element according to claim 11, wherein when the terminal network element and the OMC directly perform packet transmission, the first packet is an IPv6 anycast address sent by the OMC and a message for public configuration information,
所述接收模块具体用于接收 OMC发送的包含 IPv6任播地址和公共配置 信息的报文;  The receiving module is specifically configured to receive, by the OMC, a packet that includes an IPv6 anycast address and public configuration information.
所述获取模块具体用于在确定使用所述 IPv6任播地址后, 从所述 OMC 发送的包含 IPv6任播地址和公共配置信息的报文中获取所述公共配置信息。  The obtaining module is configured to obtain the public configuration information in a packet that is sent from the OMC and includes an IPv6 anycast address and public configuration information after determining that the IPv6 anycast address is used.
14、 根据权利要求 11-13任一项所述的终端网元, 其特征在于, 还包括: 判断模块, 用于判断接收到所述第一报文的次数是否大于预设的次数; 所述确定模块具体用于在所述判断模块判断出所述次数大于预设的次数 后, 判断在预设时间内是否收到其他网元发送的表明使用所述 IPv6任播地址 的报文。 The terminal network element according to any one of claims 11 to 13, further comprising: a determining module, configured to determine whether the number of times the first packet is received is greater than a preset number of times; the determining module is specifically configured to: after the determining module determines that the number of times is greater than a preset number of times, determining Whether the packet sent by another network element indicating that the IPv6 anycast address is used is received.
15、 根据权利要求 11-14任一项所述的终端网元, 其特征在于, 所述注 册模块具体用于获取单播 IPv6地址, 并根据所述 OMC的地址向 OMC进行 网络注册。  The terminal network element according to any one of claims 11 to 14, wherein the registration module is configured to acquire a unicast IPv6 address, and perform network registration with the OMC according to the address of the OMC.
16、 根据权利要求 15所述的终端网元, 其特征在于, 所述注册模块进一 步用于:  The terminal network element according to claim 15, wherein the registration module is further used for:
采用全球单播地址自动配置过程配置单播 IPv6地址, 并向 OMC发送第 一通知消息, 所述第一通知消息通知所述终端网元的网元标识与配置的单播 IPv6地址的对应关系; 或者,  Configuring a unicast IPv6 address by using a global unicast address auto-configuration process, and sending a first notification message to the OMC, where the first notification message notifies the corresponding relationship between the network element identifier of the terminal network element and the configured unicast IPv6 address; Or,
采用动态主机配置协议 DHCP过程配置单播 IPv6地址, 并向 OMC发送 第一通知消息, 所述第一通知消息通知所述终端网元的网元标识与配置的单 播 IPv6地址的对应关系。  The dynamic host configuration protocol (DHCP) process is used to configure a unicast IPv6 address, and the first notification message is sent to the OMC, and the first notification message is used to notify the corresponding relationship between the network element identifier of the terminal network element and the configured unicast IPv6 address.
17、 根据权利要求 15所述的终端网元, 其特征在于, 所述注册模块进一 步用于:  The terminal network element according to claim 15, wherein the registration module is further used for:
将所述 IPv6任播地址配置成自身的单播 IPv6地址;  Configuring the IPv6 anycast address as its own unicast IPv6 address;
向 OMC发送第二通知消息, 所述第二通知消息通知该终端网元的网元 标识与配置的单播 IPv6地址的对应关系并指示 OMC暂停本网段内任播地址 的发送;  Sending a second notification message to the OMC, the second notification message notifying the corresponding relationship between the network element identifier of the terminal network element and the configured unicast IPv6 address, and instructing the OMC to suspend the sending of the anycast address in the network segment;
在本网段内广播表明占用该 IPv6任播地址的 NA报文。  Broadcasts in the local network segment indicating that the IPv6 anycast address is occupied.
18、 根据权利要求 17所述的终端网元, 其特征在于, 还包括:  The terminal network element according to claim 17, further comprising:
通知模块, 用于在获取有别于该 IPv6任播地址的其它的单播 IPv6地址 后,用所述其它的单播 IPv6地址替代所述 IPv6任播地址作为新的单播 IPv6, 并向所述 OMC发送第三通知消息,所述第三通知消息指示所述 OMC继续本 网段内所述报文的发送;广播表明自身不再占用该 IPv6任播地址的 NA报文。a notification module, configured to replace the IPv6 anycast address with the other unicast IPv6 address as a new unicast IPv6 after acquiring another unicast IPv6 address different from the IPv6 anycast address, and The OMC sends a third notification message, the third notification message indicating that the OMC continues to The packet is sent in the network segment; the broadcast indicates that it no longer occupies the NA message of the IPv6 anycast address.
19、 一种路由器, 其特征在于, 包括: 19. A router, comprising:
第一接收模块, 用于接收 OMC发送的包含 IPv6任播地址和公共配置信 息的报文;  a first receiving module, configured to receive, by the OMC, a packet that includes an IPv6 anycast address and public configuration information;
第一发送模块, 用于在所述第一接收模块接收到所述 OMC发送的包含 IPv6任播地址和公共配置信息的报文后, 向本网段内的终端网元发送邻居请 求 NS报文, 所述本网段为所述路由器所在的网段;  a first sending module, configured to send a neighbor request NS message to the terminal network element in the local network segment after the first receiving module receives the packet that is sent by the OMC and includes the IPv6 anycast address and the common configuration information. The network segment is the network segment where the router is located;
第二接收模块, 用于接收 NA报文, 所述 NA报文为确定使用所述 IPv6 任播地址的终端网元发送的;  a second receiving module, configured to receive an NA packet, where the NA packet is sent by using a terminal network element that uses the IPv6 anycast address;
第二发送模块, 用于向发送所述第二接收模块接收的所述 NA报文的终 端网元发送所述 OMC发送的包含 IPv6任播地址和公共配置信息的报文, 所 述公共配置信息中包括 OMC的地址,所述 OMC的地址用于所述终端网元向 OMC进行网络注册。  a second sending module, configured to send, to the terminal network element that sends the NA packet that is sent by the second receiving module, a packet that includes the IPv6 anycast address and the common configuration information that is sent by the OMC, where the public configuration information is The address of the OMC is included, and the address of the OMC is used for network registration of the terminal network element to the OMC.
20、 根据权利要求 19所述的路由器, 其特征在于, 还包括:  The router according to claim 19, further comprising:
緩存模块, 用于查询邻区表项, 根据邻区表项判断所述 IPv6任播地址是 否被其它终端网元使用, 如果未被其它终端网元使用, 则緩存所述第一接收 模块接收的所述 OMC发送的包含 IPv6任播地址和公共配置信息的报文。  a cache module, configured to query a neighboring cell entry, determine, according to the neighboring cell entry, whether the IPv6 anycast address is used by another terminal network element, and if not used by another terminal network element, buffering, received by the first receiving module A packet sent by the OMC that includes an IPv6 anycast address and public configuration information.
PCT/CN2011/076194 2011-06-23 2011-06-23 Method for terminal network element registration, terminal network element and router WO2012174724A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180001010.1A CN102986186B (en) 2011-06-23 2011-06-23 Method for terminal network element registration, terminal network element and router
PCT/CN2011/076194 WO2012174724A1 (en) 2011-06-23 2011-06-23 Method for terminal network element registration, terminal network element and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/076194 WO2012174724A1 (en) 2011-06-23 2011-06-23 Method for terminal network element registration, terminal network element and router

Publications (1)

Publication Number Publication Date
WO2012174724A1 true WO2012174724A1 (en) 2012-12-27

Family

ID=47421989

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076194 WO2012174724A1 (en) 2011-06-23 2011-06-23 Method for terminal network element registration, terminal network element and router

Country Status (2)

Country Link
CN (1) CN102986186B (en)
WO (1) WO2012174724A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868480A (en) * 2018-08-27 2020-03-06 北京淳中科技股份有限公司 IP address configuration method, device and system of network equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513316B (en) * 2018-04-10 2021-05-14 电子科技大学 Wireless network protocol performance modeling method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486094A (en) * 2002-09-26 2004-03-31 ������������ʽ���� Method and apparatus for mobile communication using load balance
US20070133539A1 (en) * 2005-12-08 2007-06-14 Electronics And Telecommunications Research Institute Routing apparatus for supporting IPv6 anycast service and method thereof
CN101518026A (en) * 2006-09-20 2009-08-26 摩托罗拉公司 Method for discovering outbound SIP proxy server
WO2010097445A1 (en) * 2009-02-27 2010-09-02 Nokia Siemens Networks Oy Ipv6 anycast-based load balancing and redirection functionality for pmipv6

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227307A (en) * 2007-01-19 2008-07-23 华为技术有限公司 Equipment, system and method for processing multimedia broadcast multicast business

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1486094A (en) * 2002-09-26 2004-03-31 ������������ʽ���� Method and apparatus for mobile communication using load balance
US20070133539A1 (en) * 2005-12-08 2007-06-14 Electronics And Telecommunications Research Institute Routing apparatus for supporting IPv6 anycast service and method thereof
CN101518026A (en) * 2006-09-20 2009-08-26 摩托罗拉公司 Method for discovering outbound SIP proxy server
WO2010097445A1 (en) * 2009-02-27 2010-09-02 Nokia Siemens Networks Oy Ipv6 anycast-based load balancing and redirection functionality for pmipv6

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868480A (en) * 2018-08-27 2020-03-06 北京淳中科技股份有限公司 IP address configuration method, device and system of network equipment

Also Published As

Publication number Publication date
CN102986186A (en) 2013-03-20
CN102986186B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
US8953601B2 (en) Internet protocol version six (IPv6) addressing and packet filtering in broadband networks
JP5069356B2 (en) Techniques for address resolution in data transmission networks.
US8724583B2 (en) Neighbor discovery message handling to support roaming of wireless mobile client devices
US8655990B2 (en) Access device routing device and method thereof supporting stateless address configuration communication network
WO2015003566A1 (en) Method, device and system for transmitting packet in multicast domain name system
US20140325090A1 (en) Discovery and disconnection of client addresses in an access node for an ip network
WO2018214809A1 (en) Message transmission method and device, and storage medium
WO2012155562A1 (en) Method for route transmission based on single ipv6 address prefix, and wireless device
WO2010072096A1 (en) Method and broadband access device for improving the security of neighbor discovery in ipv6 environment
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
WO2013053266A1 (en) Message learning method, device and system
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
WO2007028306A1 (en) A method for reconstructing the network address in the ipv6 access network
JP2014161084A (en) Self-configuration of forwarding table in access node
WO2011107052A2 (en) Method and access node for preventing address conflict
US20180167231A1 (en) Managing multiple virtual network memberships
WO2012100685A1 (en) Ip address configuration method, device and system
JP3994412B2 (en) Network system, network identifier setting method, network connection point, network identifier setting program, and recording medium
KR100677145B1 (en) Method and apparatus for auto-configuring network address
WO2011032478A1 (en) Method, device and terminal for obtaining terminal identifier
WO2012174724A1 (en) Method for terminal network element registration, terminal network element and router
WO2010066144A1 (en) Method, device and multi-address space mobile network for sending and forwarding data
US10298481B1 (en) Method and apparatus for testing VLAN
WO2012155424A1 (en) Method and system for multiple address-prefixes assignment
US20230171226A1 (en) Method for configuring a communication network and node implementing said configuration method

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180001010.1

Country of ref document: CN

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

Ref document number: 11868271

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: 11868271

Country of ref document: EP

Kind code of ref document: A1