WO2013181991A1 - Message processing method and system and routing device - Google Patents

Message processing method and system and routing device Download PDF

Info

Publication number
WO2013181991A1
WO2013181991A1 PCT/CN2013/076058 CN2013076058W WO2013181991A1 WO 2013181991 A1 WO2013181991 A1 WO 2013181991A1 CN 2013076058 W CN2013076058 W CN 2013076058W WO 2013181991 A1 WO2013181991 A1 WO 2013181991A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing device
ipv4
ipv6
packet
address
Prior art date
Application number
PCT/CN2013/076058
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 华为技术有限公司
Publication of WO2013181991A1 publication Critical patent/WO2013181991A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/52Multiprotocol routers

Definitions

  • IP version 6 IP version 6
  • IPv4 IP version 4
  • MAP Mapping of Address and Port
  • the CE obtains the IPv4 address of the CE according to the IPv6 prefix assigned to the CE and the Basic Mapping Rule (BMR) delivered by the IPv6 Dynamic Host Configure Protocol for IPv6 (DHCPv6) server.
  • IPv4 addresses can be exclusive (not shared) or shared.
  • PSID Port Set Identifier
  • CEs that use the same mapping rule can form a MAP domain.
  • CEs in the same MAP domain can directly communicate with their respective IPv4 addresses and IPv6 addresses.
  • the mapping rules can include BMR and forwarding mapping rules. Rule, FMR) and Default Mapping Rule (DMR) that provides the IPv6 address or prefix of the BR.
  • An aspect of the present application provides a packet processing method, including:
  • the first routing device receives the IPv4 packet, and the IPv4 packet includes the destination IPv4 address.
  • the first routing device encapsulates or translates the IPv4 packet into an IPv6 packet by using the IPv6 address or the prefix of the second routing device.
  • Sending to the second routing device so that the second routing device updates the source IPv4 address carried by the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet, and uses the first BMR.
  • the routing information corresponding to the destination IPv4 address is matched, and the content of the IPv4 packet is forwarded according to the routing information.
  • Another aspect of the present application provides a packet processing method, including:
  • the second routing device receives the IPv6 packet sent by the first routing device, where the IPv6 packet is the IPv4 address or the prefix of the second routing device after the first routing device receives the IPv4 packet, and the IPv4 packet is used.
  • the packet is encapsulated or translated, and the IPv4 packet includes a destination IPv4 address.
  • the second routing device updates the source IPv4 address carried by the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet, and matches the route corresponding to the destination IPv4 address by using the first BMR.
  • the second routing device forwards the content of the IPv4 packet according to the routing information.
  • a routing device including:
  • a first receiver configured to receive an IPv4 packet, where the IPv4 packet includes a destination IPv4 address;
  • a processor configured to encapsulate or translate the IPv4 packet into an IPv6 packet by using an IPv6 address or a prefix of the second routing device;
  • a transmitter configured to send the IPv6 packet to the second routing device, so that the second routing device updates the IPv6 according to a source IPv6 address of the first BMR and the IPv6 packet
  • the source IPv4 address carried in the packet, and the routing information corresponding to the destination IPv4 address is matched by using the first BMR, and the content of the IPv4 packet is forwarded according to the routing information.
  • a routing device including: a receiver, configured to receive an IPv6 packet sent by a first routing device, where the IPv6 packet is used by the first routing device after receiving an IPv4 packet
  • the IPv6 address or the prefix of the routing device, the IPv4 packet is encapsulated or translated, and the IPv4 packet includes a destination IPv4 address.
  • the processor is configured to use the source of the first BMR and the IPv6 packet.
  • An IPv6 address, the source IPv4 address carried in the IPv6 packet is updated, and the first BMR is used to match the routing information corresponding to the destination IPv4 address.
  • the sender is configured to forward the IPv4 packet according to the routing information.
  • the content of the text Another aspect of the present application provides a message processing system including the routing device of the above two aspects.
  • the terminal communicates with the destination device through the IPv6 network and through the second routing device by using the first routing device, and all the IPv4 packets initiated by the terminal are required to pass the first routing device and the second route.
  • the device is sent to the destination device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the second routing device, that is, the network side device, to the user communication traffic.
  • FIG. 1 is a schematic flowchart of a packet processing method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an application scenario of a MAP technology used in the embodiment corresponding to FIG. 1;
  • a schematic diagram of a mapping relationship between two BMRs; 4 is a schematic diagram of a mapping relationship of a first BMR in the embodiment corresponding to FIG. 1.
  • FIG. 5 is a schematic diagram of another mapping relationship of a first BMR in the embodiment corresponding to FIG. 1.
  • FIG. 6 is a diagram corresponding to the embodiment in FIG.
  • FIG. 7 is a schematic diagram of another mapping relationship of the second BMR in the embodiment corresponding to FIG. 1;
  • FIG. 8 is a schematic flowchart of a packet processing method according to another embodiment of the present application;
  • FIG. 8 is a schematic flowchart of a packet processing method according to another embodiment of the present application;
  • FIG. 8 is a schematic flowchart of a packet processing method according to another embodiment of the present application;
  • FIG. 10 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure
  • FIG. 11 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure
  • 12 is a schematic structural diagram of a routing device provided by another embodiment of the present application;
  • FIG. 13 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • the technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application.
  • the embodiments are part of the embodiments of the present application, 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 application without departing from the inventive scope are the scope of the present application.
  • the technical solution of the present application can be applied to an application scenario using MAP technology (see draft-mdt-softwire-mapping-address-and-port-03).
  • the first routing device may be a Customer Edge Router (CE), a Customer Premise Equipment (CPE), or a user gateway device located at a user network boundary.
  • CE Customer Edge Router
  • CPE Customer Premise Equipment
  • the second routing device may be a Border Relay (BR) or a port range router located between the IPv6 network and the IPv4 network.
  • BR Border Relay
  • FIG. 1 is a schematic flowchart of a packet processing method according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic diagram of an application scenario of a MAP technology used in the corresponding embodiment of FIG. 1 , as shown in FIG. 1 and FIG. 2 . 101.
  • the first routing device receives an IPv4 packet, where the IPv4 packet includes a destination IPv4 address.
  • the first routing device uses the IPv6 address or the prefix of the second routing device to encapsulate or translate the IPv4 packet into an IPv6 packet, and sends the IPv6 packet to the second routing device, so that the second routing device is configured according to the second routing device.
  • the source B6 address of the first BMR and the IPv6 packet, the source IPv4 address carried in the IPv6 file is updated, and the routing information corresponding to the destination IPv4 address is matched by using the first BMR, and the routing information is forwarded according to the routing information.
  • the content of the IPv4 message may specifically encapsulate or translate the IPv4 packet into an IPv6 packet, that is, a network address translation (NAT) 44 and a MAP.
  • NAT network address translation
  • the private network IPv4 address and port in the received IPv4 packet are converted into a public network IPv4 address; in the MAP module, the IPv4 packet processed by the NAT44 module is encapsulated or Translated into IPv6 messages.
  • the first routing device may specifically encapsulate or translate the IPv4 packet into an IPv6 packet by using a function module, which is not limited in this embodiment.
  • the IPv6 packet may carry the source IPv4 address (that is, the public network IPv4 address) in one of the two modes: one mode is carried in the packet header, and the packet header is carried in the IPv4 packet; For the translation, it is carried by the field in the interface identifier (interface ID) of the source IPv6 address of the IPv6 packet.
  • the terminal communicates with the destination device through the IPv6 network and through the second routing device by using the first routing device, and all the IPv4 packets initiated by the terminal are required to pass through the first routing device and the second routing device.
  • the device is sent to the destination device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the second routing device, that is, the network side device, to the user communication traffic.
  • the first routing device receives the IPv6 enabled dynamic host.
  • the first routing device is not delivered by the PSID of the first routing device and the IPv6 address or the prefix of the second routing device delivered by the server.
  • the public network IPv4 address of the first routing device cannot be obtained according to the BMR.
  • the first routing device may encapsulate or translate the IPv4 packet into an IPv6 packet by using an IPv6 address or a prefix of the second routing device. Send to the second routing device.
  • the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example, applying at the IANA.
  • the specific unicast IPv4 address registered, or similar to 192.0.0.2, or all 0s, or all 1s used to identify B4 in DS-lite technology.
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the parameters that the DHCPV6 server sends to the CE include the DMR for accessing the BR and the PSID of the CE.
  • the DMR includes an IPv6 address or prefix of the BR.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in Figure 4.
  • the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR.
  • the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 text, that is, the content of the IPv4 text is sent to another CE through the BR; if the IPv6 packet received by the BR is carried
  • the destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
  • the first routing device receives a dynamic host configuration protocol (Dynamic Host Configure) Protocol for IPv6, DHCPv6) server
  • the incomplete BMR (ie, the second BMR) and the DMR are delivered, that is, the server does not deliver the complete BMR (ie, the first BMR), so that the first routing device cannot obtain the first BMR according to the second BMR.
  • the second BMR provides only length information of the PSID.
  • the second BMR may further include a first embedded address (EA) bit length (EA bits), where the first EA bit length is used to indicate that the first route is allocated to the first route.
  • EA embedded address
  • EA bits first embedded address bit length
  • the DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 102, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address.
  • the first routing device will utilize the DMR,
  • the IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device.
  • the source IPv4 address carried by the first routing device may be a specific IPv4 address, because the first routing device cannot obtain the public network IPv4 address of the first routing device.
  • a specific unicast IPv4 address applied for registration by the Internet Assigned Numbers Authority (IANA), or 192.0.0.2 used to identify B4 in a similar dual stack lite (DS-lite) technology, Or all 0 or all 1 and so on.
  • the IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server delegates the first routing device by using a DHCPv6 Prefix Delegation (DHCPv6-PD)
  • DHCPv6-PD DHCPv6 Prefix Delegation
  • SLAAC Stateless Address Auto-Configuration
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and the incomplete BMR, that is, the second BMR, as shown in FIG. 3, wherein the second BMR may further include the first EA.
  • Bit length the first EA bit length is used to indicate the length of the PSID in the IPv6 prefix allocated to the CE.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets. By The complete BMR, the first BMR, is retained in the BR, as shown in Figure 4.
  • the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR.
  • the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried
  • the destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
  • the first routing device may further receive the DHCPV6 server only.
  • the DMR that is, the server only delivers the DMR, and does not deliver the BMR, so that the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device according to the BMR.
  • the DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix.
  • the first routing device may use the DMR to encapsulate the IPv4 packet or The translated IPv6 packet is sent to the second routing device.
  • the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example, applying at the IANA. Registered specific unicast IPv4 address, or similar to 192.0.0.2 used to identify B4 in DS-lite technology, or all 0 or all 1s.
  • the first routing device is the CE located at the boundary of the user network, and the second routing device is located at the IPv6.
  • the DHCPv6 server delivers the DMR for accessing the BR and does not deliver the BMR.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in FIG. Therefore, the BR can obtain the public network IPv4 prefix or address of the CE according to the source B6 address of the first BMR and the IPv6 packet from the CE.
  • the BR may select an address in the network segment indicated by the IPv4 prefix of the public network according to a preset rule, for example, the available first address of the network segment, as The public network IPv4 address of the CE. Then, the BR can update the source IPv4 address carried by the IPv6 packet by using the obtained public network IPv4 address of the CE. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information.
  • a preset rule for example, the available first address of the network segment
  • the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
  • the first routing device receives the DHCPV6 server that is not completely correct.
  • the BMR ie, the second BMR
  • the DMR that is, the server does not deliver the completely correct BMR (ie, the first BMR), so that the first routing device cannot obtain the first routing device according to the second BMR.
  • Public network IPv4 address in a scenario in which the first routing device shares the public network IPv4 address, the first routing device receives the DHCPV6 server that is not completely correct.
  • the BMR ie, the second BMR
  • the DMR that is, the server does not deliver the completely correct BMR (ie, the first BMR)
  • the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / ⁇ [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the second EA bit length
  • the second EA bit length is used to indicate the IPv6 prefix allocated to the first routing device.
  • the DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix.
  • the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address.
  • the first routing device can use the routing information corresponding to the destination IPv4 address by using the incompletely correct BMR (ie, the second BMR).
  • the DMR encapsulates or translates the IPv4 packet into an IPv6 packet and sends the packet to the second routing device.
  • the first routing device cannot use the incompletely correct BMR (ie, the second BMR) to obtain the public network IPv4 address of the first routing device, and therefore, the IPv6 sent by the first routing device.
  • the source IPv4 address carried in the packet may be an IPv4 address using the specific rule IPv4 prefix.
  • the IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server delegates the first routing device by using a DHCPv6 Prefix Delegation (DHCPv6-PD)
  • DHCPv6-PD DHCPv6 Prefix Delegation
  • SLAAC Stateless Address Auto-Configuration
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 6.
  • the second BMR may further include a specific A regular IPv4 prefix and a second EA bit length, the second EA bit length being used to indicate a sum of an IPv4 suffix and a length of the PSID in an IPv6 prefix allocated to the CE.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR.
  • the BR Since the BR is the correct BMR, the first BMR, as shown in Figure 4. Therefore, the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by the public network IPv4 address; Then, the BR may use the first BMR to match the routing information corresponding to the destination IPv4 address carried in the IPv6 packet, and forward the content of the IPv4 packet according to the routing information.
  • BR receives If the destination IPv4 address that is carried in the IPv6 packet is matched with the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in a certain MAP domain to which the BR belongs.
  • the content of the IPv4 packet is forwarded by using the IPv6 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the destination IPv4 address carried by the IPv6 packet received by the BR is The rule IPv4 prefix in the first BMR of any MAP domain in the BR cannot be matched, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
  • the first routing device receives an incomplete delivery by the DHCPV6 server.
  • the correct BMR ie, the second BMR
  • the DMR that is, the server does not deliver the completely correct BMR (ie, the first BMR), so that the first routing device cannot obtain the first route according to the second BMR.
  • the public network IPv4 prefix or address of the device.
  • the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / ⁇ [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the third EA bit length
  • the length of the third EA bit is used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the first routing device, and the IPv4 suffix is the IPv4 prefix or address of the first routing device.
  • the remainder of the rule after the corresponding length of the IPv4 prefix is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix.
  • the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address.
  • the first routing device cannot use the incompletely correct BMR (ie, the second BMR) to match the routing information corresponding to the destination IPv4 address, and the first routing device uses the DMR.
  • the IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device.
  • the first routing device cannot use the incomplete BMR (ie, the second BMR) to obtain the public network IPv4 prefix or address of the first routing device, and therefore, the first routing device sends the The source IPv4 address carried in the IPv6 packet can be used.
  • the IPv4 address of the specific rule IPv4 prefix is allocated by the operator to the first routing device, for example, the DHCPv6 server delegates the first routing device by using a DHCPv6 Prefix Delegation (DHCPv6-PD)
  • DHCPv6-PD DHCPv6 Prefix Delegation
  • SLAAC Stateless Address Auto-Configuration
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 7.
  • the second BMR may further include a specific A regular IPv4 prefix and a third EA bit length, the third EA bit length being used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the CE.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR.
  • the BR Since the BR is the correct BMR, the first BMR, as shown in Figure 5. Therefore, the BR can obtain the public network IPv4 address of the CE according to the source B6 address of the first BMR and the IPv6 packet from the CE. Then, the BR can use the obtained public network IPv4 address of the CE to update the source IPv4 address carried by the IPv6 packet. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information.
  • the destination device is in the certain one to which the BR belongs.
  • the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • FIG. 8 is a schematic flowchart of a packet processing method according to another embodiment of the present application, as shown in FIG. 8.
  • the second routing device receives the IPv6 packet sent by the first routing device, where the IPv6 packet is the IPv6 address or the prefix of the second routing device after the first routing device receives the IPv4 packet.
  • the IPv4 packet is encapsulated or translated, and the IPv4 packet includes a destination IPv4 address.
  • the second routing device updates the source IPv4 address carried in the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet, and uses the first BMR to match the destination IPv4 address. Routing information.
  • the second routing device forwards the content of the IPv4 packet according to the routing information.
  • the first routing device may specifically encapsulate or translate the IPv4 packet into an IPv6 packet, that is, a network address translation (NAT) 44 and a MAP.
  • IPv6 packet that is, a network address translation (NAT) 44 and a MAP.
  • NAT 44 module the private network IPv4 address and port in the received IPv4 packet are converted into a public network IPv4 address;
  • MAP module the IPv4 packet processed by the NAT44 module is encapsulated or Translated into IPv6 messages.
  • the first routing device may specifically encapsulate or translate the IPv4 packet into an IPv6 packet by using a function module, which is not limited in this embodiment.
  • the IPv6 packet may carry the source IPv4 address (that is, the public network IPv4 address) in one of the two modes: one mode is carried in the packet header, and the packet header is carried in the IPv4 packet; For the translation, it is carried by the field in the interface identifier (interface ID) of the source IPv6 address of the IPv6 packet.
  • the terminal communicates with the destination device through the IPv6 network and through the second routing device by using the first routing device, and all the IPv4 packets initiated by the terminal are required to pass through the first routing device and the second routing device. The device is sent to the destination device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the second routing device, that is, the network side device, to the user communication traffic.
  • the first routing device is different.
  • the first routing device receives the PSID of the first routing device and the IPv6 address or prefix of the second routing device delivered by the DHCPV6 server, and does not deliver the packet.
  • the BMR is such that the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device according to the BMR.
  • the first routing device may use the IPv6 address or prefix of the second routing device.
  • the IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device.
  • the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example: Applying at the IANA Registered specific unicast IPv4 address, or similar to 192.0.0.2 used to identify B4 in DS-lite technology, or all 0 or all 1s.
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and the PSID of the CE in the parameters sent to the CE.
  • the DMR includes an IPv6 address or prefix of the BR.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in FIG.
  • the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR.
  • the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 text, that is, the content of the IPv4 text is sent to another CE through the BR; if the IPv6 packet received by the BR is carried
  • the destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's management of user traffic Ability.
  • the first routing device receives the incomplete information sent by the DHCPV6 server before the 801.
  • the BMR ie, the second BMR
  • the DMR that is, the server does not deliver the complete BMR (ie, the first BMR), so that the first routing device cannot obtain the first routing device according to the second BMR.
  • Public network IPv4 address the second BMR may further include a first EA (Embedded Address, EA) bit length (EA bits), where the first EA bit length is used to indicate that the first routing device is allocated to the first routing device.
  • EA embedded Address
  • the DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 801, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address.
  • the first routing device cannot use the incomplete BMR (ie, the second BMR) to match the routing information corresponding to the destination IPv4 address, the first routing device will utilize the DMR, and the IPv4 The packet is encapsulated or translated into an IPv6 packet and sent to the second routing device.
  • the source IPv4 address carried by the first routing device may be a specific IPv4 address, because the first routing device cannot obtain the public network IPv4 address of the first routing device.
  • IPv4 For example: a specific unicast IPv4 address that is applied for registration at the IANA, or 192.0.0.2, or all 0s or all 1s, used to identify B4 in DS-lite technology.
  • the IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server sends the first route to the DHCPv6 Prefix Delegation (DHCPv6-PD) in DHCPv6.
  • DHCPv6-PD DHCPv6 Prefix Delegation
  • the device assigns an IPv6 prefix, or the Stateless Address Auto-Configuration (SLAAC) server assigns the IPv6 prefix to the first routing device by using the SLAAC method.
  • SLAAC Stateless Address Auto-Configuration
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and the incomplete BMR, that is, the second BMR, as shown in FIG. 3, wherein the second BMR may further include the first EA.
  • Bit length the first EA bit length is used to indicate the length of the PSID in the IPv6 prefix allocated to the CE.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets. By The complete BMR, the first BMR, is retained in the BR, as shown in Figure 4.
  • the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR.
  • the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried
  • the destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
  • the first routing device may further receive the DHCPV6 server only.
  • the DMR that is, the server only delivers the DMR, and does not deliver the BMR, so that the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device according to the BMR.
  • the DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix.
  • the first routing device can use the DMR to encapsulate or translate the IPv4 packet into an IPv6 packet by using the DMR to match the routing information corresponding to the destination IPv4 address.
  • the text is sent to the second routing device.
  • the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example: Applying at the IANA Registered specific unicast IPv4 address, or similar to 192.0.0.2 used to identify B4 in DS-lite technology, or all 0 or all 1s.
  • the IPv6 prefix of the first routing device is allocated by the operator to the first route.
  • the device for example, the DHCPv6 server delegates the IPv6 prefix to the first routing device by using the DHCPv6 Prefix Delegation (DHCPv6-PD) method, or the Stateless Address Auto-Configuration (SLAAC) server passes the device.
  • the SLAAC mode assigns the IPv6 prefix to the first routing device.
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and does not deliver the BMR.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in Figure 5. Therefore, the BR can obtain the public network IPv4 prefix or address of the CE according to the source B6 address of the first BMR and the IPv6 packet from the CE.
  • the BR may select an address in the network segment indicated by the IPv4 prefix of the public network according to a preset rule, for example, the available first address of the network segment, as The public network IPv4 address of the CE. Then, the BR can update the source IPv4 address carried by the IPv6 packet by using the obtained public network IPv4 address of the CE. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information.
  • a preset rule for example, the available first address of the network segment
  • the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
  • the first routing device receives the DHCPV6 server that is not completely correct.
  • BMR second BMR
  • DMR the DMR
  • the BMR ie, the first BMR
  • the first routing device cannot obtain the public network IPv4 address of the first routing device according to the second BMR.
  • the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / ⁇ [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the second EA bit length
  • the second EA bit length is used to indicate the sum of the IPv4 suffix and the length of the PSID in the IPv6 prefix allocated to the first routing device, where the IPv4 suffix is removed from the IPv4 address of the first routing device.
  • the remainder of the rule after the corresponding length of the IPv4 prefix The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix.
  • the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address.
  • the first routing device may use the DMR to The IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device.
  • the first routing device cannot obtain the public network IPv4 address of the first routing device by using the incomplete BMR (ie, the second BMR), and therefore, the first routing device sends the The source IPv4 address carried in the IPv6 packet may be an IPv4 address using the specific rule IPv4 prefix.
  • the IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server sends the first route to the DHCPv6 Prefix Delegation (DHCPv6-PD) in DHCPv6.
  • the device assigns an IPv6 prefix, or the Stateless Address Auto-Configuration (SLAAC) server assigns the IPv6 prefix to the first routing device by using the SLAAC method.
  • SLAAC Stateless Address Auto-Configuration
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 6.
  • the second BMR may further include a specific A regular IPv4 prefix and a second EA bit length, the second EA bit length being used to indicate a sum of an IPv4 suffix and a length of the PSID in an IPv6 prefix allocated to the CE.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR.
  • the BR Since the BR is the correct BMR, the first BMR, as shown in Figure 4. Therefore, the BR can be based on the first BMR and The source IPv6 address of the IPv6 packet from the CE obtains the public IPv4 address of the CE, and the IPv4 address of the public network updates the source IPv4 address carried in the IPv6 packet. Then, the BR can use the first BMR. The routing information corresponding to the destination IPv4 address carried in the IPv6 packet is matched, and the content of the IPv4 packet is forwarded according to the routing information.
  • the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in a certain MAP to which the BR belongs. In the domain, the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the destination of the IPv6 packet received by the BR is carried The IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
  • the first routing device receives an incomplete delivery by the DHCPV6 server.
  • the correct BMR ie, the second BMR
  • the DMR that is, the server does not deliver the completely correct BMR (ie, the first BMR), so that the first routing device cannot obtain the first route according to the second BMR.
  • the public network IPv4 prefix or address of the device.
  • the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / ⁇ [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the third EA bit length
  • the length of the third EA bit is used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the first routing device, and the IPv4 suffix is the IPv4 prefix or address of the first routing device.
  • the remainder of the rule after the corresponding length of the IPv4 prefix is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix.
  • the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address.
  • the first routing device uses the DMR, because the first routing device cannot use the incompletely correct BMR (ie, the second BMR) to match the routing information corresponding to the destination IPv4 address.
  • the IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device.
  • the first routing device since the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device by using the BMR (ie, the second BMR), the first routing device sends the The source IPv4 address carried in the IPv6 packet may be an IPv4 address using the specific rule IPv4 prefix.
  • the IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server sends the first route to the DHCPv6 Prefix Delegation (DHCPv6-PD) in DHCPv6.
  • the device assigns an IPv6 prefix, or the Stateless Address Auto-Configuration (SLAAC) server assigns the IPv6 prefix to the first routing device by using the SLAAC method.
  • SLAAC Stateless Address Auto-Configuration
  • the first routing device is a CE located at the boundary of the user network
  • the second routing device is a BR located between the IPv6 network and the IPv4 network.
  • the DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 7.
  • the second BMR may further include a specific A regular IPv4 prefix and a third EA bit length, the third EA bit length being used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the CE.
  • the CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR.
  • the BR Since the BR is the correct BMR, the first BMR, as shown in Figure 5. Therefore, the BR can obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE. Then, the BR can use the obtained public network IPv4 address of the CE to update the source IPv4 address carried by the IPv6 packet. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information.
  • the destination device is in the certain one to which the BR belongs.
  • the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
  • the terminal communicates with the destination device through the IPv6 network through the CE and through the BR. All the IPv4 packets sent by the terminal must be sent to the destination device through the CE and the BR. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the BR to the user communication traffic.
  • FIG. 9 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. As shown in FIG.
  • the routing device in this embodiment may include a first receiver 91, a processor 92, and a transmitter 93.
  • the first receiver 91 is configured to receive an IPv4 packet, where the IPv4 packet includes a destination IPv4 address
  • the processor 92 is configured to encapsulate or translate the IPv4 packet by using an IPv6 address or a prefix of the second routing device.
  • the IPv6 packet is sent to the second routing device, so that the second routing device updates the location according to the source address and the source IP address of the first BMR and the IPv6 packet.
  • the source I Pv4 address carried in the I Pv6 message, and the routing information corresponding to the destination IPv4 address is matched by using the first BM R, and the content of the IPv4 packet is forwarded according to the routing information.
  • the first receiver 91 is located at a user side local area network (LAN) interface of the routing device.
  • LAN local area network
  • the routing device provided in this embodiment may further The second receiver 1001 is configured to receive the DMR that is only sent by the DHCPv6 server. It can be understood that the second receiver 1001 is located on a user side Wide Area Network (WAN) interface of the routing device.
  • WAN Wide Area Network
  • the routing device provided in this embodiment may further include a third receiver 1 101, and further includes a third receiving. And receiving the PSID of the first routing device and the IPv6 address or prefix of the second routing device delivered by the DHCPV6 server.
  • the routing device provided in this embodiment may further include a third receiver 1 101, and further includes a third receiving. And receiving the PSID of the first routing device and the IPv6 address or prefix of the second routing device delivered by the DHCPV6 server.
  • the routing device provided in this embodiment may further include a fourth receiver 1201, configured to receive a number delivered by a DHCPV6 server.
  • the fourth receiver 1201 is located at the user side WAN interface of the routing device.
  • the second BMR received by the fourth receiver 1201 may include a first EA bit length, where the first EA bit length is used to indicate the allocation.
  • the second BMR received by the fourth receiver 1201 may include a specific rule IPv4 prefix and a second EA bit length, where the second EA bit is included.
  • the bit length is used to indicate the sum of the IPv4 suffix and the length of the PSID in the IPv6 prefix allocated to the routing device, where the IPv4 suffix is the remaining length of the IPv4 address of the routing device excluding the rule IPv4 prefix. section.
  • the second BMR received by the fourth receiver 1201 may include a specific rule IPv4 prefix and a second EA bit length, where the second EA bit is included.
  • the bit length is used to indicate the sum of the IPv4 suffix and the length of the PSID in the IPv6 prefix allocated to the routing device, where the IPv4 suffix is the remaining length of the IPv4 address of the routing device excluding the rule IPv4 prefix. section.
  • the IPv4 suffix is the remaining length of the IPv4 address of the routing device excluding the rule IPv4 pre
  • the second BMR received by the fourth receiver 1201 may include a specific rule IPv4 prefix and a third EA bit length, and the third EA.
  • the bit length is used to indicate the length of the IPv4 suffix in the IPv6 prefix assigned to the routing device, and the IPv4 suffix is the remainder of the IPv4 address or prefix of the routing device excluding the corresponding length of the rule IPv4 prefix.
  • the IPv4 suffix is the remainder of the IPv4 address or prefix of the routing device excluding the corresponding length of the rule IPv4 prefix.
  • the terminal communicates with the destination device through the IPv6 network and through the second routing device, and all the IPv4 packets initiated by the terminal are sent to the destination device through the routing device and the second routing device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the communication traffic of the second routing device, that is, the network side device to the user. Management ability.
  • FIG. 13 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • the routing device in this embodiment may include a receiver 1301, a processor 1302, and a transmitter 1303.
  • the receiver 1301 is configured to receive an IPv6 packet sent by the first routing device, where the IPv6 packet is the IPv6 address or prefix of the routing device after the first routing device receives the IPv4 packet,
  • the IPv4 packet is encapsulated or translated, and the IPv4 packet includes the destination IPv4 address.
  • the processor 1302 is configured to update the source IPv4 carried by the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet.
  • the sender 1303 is configured to forward the content of the IPv44 message according to the routing information.
  • the terminal communicates with the destination device through the IPv6 network and through the routing device, and all the IPv4 packets initiated by the terminal are sent to the destination device through the first routing device and the routing device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the routing device, that is, the network side device, to the user communication traffic.
  • the embodiment of the present application further provides a packet processing system, including the routing device provided in any one of the embodiments in FIG. 9 to FIG. 12 and the routing device provided in the embodiment corresponding to FIG.
  • a packet processing system including the routing device provided in any one of the embodiments in FIG. 9 to FIG. 12 and the routing device provided in the embodiment corresponding to FIG.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional unit.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute the method of the various embodiments of the present application. All or part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or an optical disk, and the like, which can store program codes. Medium.

Landscapes

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

Abstract

Provided are a message processing method and system and a routing device. A terminal communicates with a destination device by means of a first routing device via an IPv6 network and also by means of a second routing device. Since all IPv4 messages initiated by the terminal need to be sent to the destination device through the first routing device and the second routing device, a star communication mode is realized in an application scenario of MAP technology, which can improve the capability of the second routing device (i.e. network-side device) managing user communication traffic.

Description

报文处理方法、 系统及路由设备  Message processing method, system and routing device
本申请要求于 2012年 6月 5日提交中国专利局、 申请号为  This application is submitted to the Chinese Patent Office on June 5, 2012, and the application number is
201210183101.8、 发明名称为 "4艮文处理方法、 系统及路由设备 201210183101.8, the invention name is "4艮文 processing method, system and routing device
" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本申请涉及通信技术, 尤其涉及报文处理方法、 系统及路由设备。 The priority of the Chinese patent application is incorporated herein by reference.
背景技术 互联网技术的大规模应用极大地增加对互联网协议( Internet Protocol, IP )地址的需求。 IP版本 6 ( IPv6 )是新一代的网络协议, 釆用 128位地 址格式,地址空间巨大, 能够彻底解决 IP版本 4 ( IPv4 )地址不足的问题。 但在互联网向 IPv6的平稳迁移过程中, IPv4业务仍需保持延续性。地址端 口映射 ( Mapping of Address and Port, MAP )是一种 IPv4向 IPv6的过 渡技术, 主要针对接入网络釆用纯 IPv6的应用场景, 其技术应用的主要网 元包括位于 IPv6网络与 IPv4网络之间的边界中继路由器(Border Relay, BR )和位于用户网络边界的用户边缘路由器( Customer Edge Router, CE )。 CE根据分配给 CE的 IPv6前缀和支持 IPv6的动态主机配置协议( Dynamic Host Configure Protocol for IPv6, DHCPv6 )服务器下发的基本映射规则 ( Basic Mapping Rule, BMR ), 获得该 CE的 IPv4地址, 所述 IPv4地址 可以是独享 (不共享) 的, 也可以是共享的。 当所述 CE的 IPv4地址是共 享地址时, 还可以进一步获得该 CE 的端口集标识(Port-Set Identifier, PSID )。 使用相同映射规则的 CE可以组成一个 MAP域, 同一个 MAP域 中的 CE可以利用其映射规则和各自的 IPv4地址及 IPv6地址直接进行通信, 其中,映射规则可以包括 BMR,转发映射规则( Forwarding Mapping Rule, FMR )和提供 BR的 IPv6地址或前缀的缺省映射规则 (Default Mapping Rule, DMR )。 BACKGROUND OF THE INVENTION The large-scale application of Internet technology has greatly increased the demand for Internet Protocol (IP) addresses. IP version 6 (IPv6) is a new generation network protocol that uses a 128-bit address format and has a large address space to completely solve the problem of insufficient IP version 4 (IPv4) addresses. However, during the smooth migration of the Internet to IPv6, IPv4 services still need to remain continual. The Mapping of Address and Port (MAP) is a transitional technology from IPv4 to IPv6. It is mainly used in the application scenario where the access network uses pure IPv6. The main network elements of the technology application include IPv6 networks and IPv4 networks. The Border Relay (BR) and the Customer Edge Router (CE) at the boundary of the user network. The CE obtains the IPv4 address of the CE according to the IPv6 prefix assigned to the CE and the Basic Mapping Rule (BMR) delivered by the IPv6 Dynamic Host Configure Protocol for IPv6 (DHCPv6) server. IPv4 addresses can be exclusive (not shared) or shared. When the IPv4 address of the CE is a shared address, the Port Set Identifier (PSID) of the CE may be further obtained. CEs that use the same mapping rule can form a MAP domain. CEs in the same MAP domain can directly communicate with their respective IPv4 addresses and IPv6 addresses. The mapping rules can include BMR and forwarding mapping rules. Rule, FMR) and Default Mapping Rule (DMR) that provides the IPv6 address or prefix of the BR.
然而, CE之间直接通信使得网络侧设备无法对这些用户通信流量执行 管理操作,例如: 流量控制和统计等, 导致了网络侧设备管理能力的下降。 发明内容 本申请的多个方面提供报文处理方法、 系统及路由设备, 用以提高网 络侧设备对用户通信流量的管理能力。 本申请的一方面, 提供一种报文处理方法, 包括: However, direct communication between CEs makes it impossible for network-side devices to perform management operations on these user traffic, such as: traffic control and statistics, which leads to a decline in network-side device management capabilities. SUMMARY OF THE INVENTION Aspects of the present application provide a message processing method, system, and routing device for improving the ability of a network side device to manage user traffic. An aspect of the present application provides a packet processing method, including:
第一路由设备接收 IPv4报文, 所述 IPv4报文中包含目的 IPv4地址; 所述第一路由设备利用第二路由设备的 IPv6地址或前缀,将所述 IPv4 报文封装或翻译成 IPv6报文发送给所述第二路由设备, 以使得所述第二路 由设备根据第一 BMR和所述 IPv6报文的源 IPv6地址, 更新所述 IPv6报 文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出与所述目的 IPv4地址 对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。 本申请的另一方面, 提供一种报文处理方法, 包括:  The first routing device receives the IPv4 packet, and the IPv4 packet includes the destination IPv4 address. The first routing device encapsulates or translates the IPv4 packet into an IPv6 packet by using the IPv6 address or the prefix of the second routing device. Sending to the second routing device, so that the second routing device updates the source IPv4 address carried by the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet, and uses the first BMR. The routing information corresponding to the destination IPv4 address is matched, and the content of the IPv4 packet is forwarded according to the routing information. Another aspect of the present application provides a packet processing method, including:
第二路由设备接收第一路由设备发送的 IPv6报文, 所述 IPv6报文为 所述第一路由设备接收 IPv4报文之后, 利用所述第二路由设备的 IPv6地 址或前缀, 将所述 IPv4报文封装或翻译成的, 所述 IPv4报文中包含目的 IPv4地址;  The second routing device receives the IPv6 packet sent by the first routing device, where the IPv6 packet is the IPv4 address or the prefix of the second routing device after the first routing device receives the IPv4 packet, and the IPv4 packet is used. The packet is encapsulated or translated, and the IPv4 packet includes a destination IPv4 address.
所述第二路由设备根据第一 BMR和所述 IPv6报文的源 IPv6地址,更 新所述 IPv6报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出与所述 目的 IPv4地址对应的路由信息;  The second routing device updates the source IPv4 address carried by the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet, and matches the route corresponding to the destination IPv4 address by using the first BMR. Information
所述第二路由设备根据所述路由信息, 转发所述 IPv4报文的内容。 本申请的另一方面, 提供一种路由设备, 包括:  The second routing device forwards the content of the IPv4 packet according to the routing information. Another aspect of the present application provides a routing device, including:
第一接收器, 用于接收 IPv4报文, 所述 IPv4报文中包含目的 IPv4地 址;  a first receiver, configured to receive an IPv4 packet, where the IPv4 packet includes a destination IPv4 address;
处理器, 用于利用第二路由设备的 IPv6地址或前缀, 将所述 IPv4报 文封装或翻译成 IPv6报文;  a processor, configured to encapsulate or translate the IPv4 packet into an IPv6 packet by using an IPv6 address or a prefix of the second routing device;
发送器, 用于向所述第二路由设备发送所述 IPv6报文, 以使得所述第 二路由设备根据第一 BMR和所述 IPv6报文的源 IPv6地址,更新所述 IPv6 报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出与所述目的 IPv4地 址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。 本申请的另一方面, 提供一种路由设备, 包括: 接收器, 用于接收第一路由设备发送的 IPv6报文, 所述 IPv6报文为 所述第一路由设备接收 IPv4报文之后, 利用所述路由设备的 IPv6地址或 前缀, 将所述 IPv4报文封装或翻译成的, 所述 IPv4报文中包含目的 IPv4 地址; 处理器, 用于根据第一 BMR和所述 IPv6报文的源 IPv6地址, 更新所 述 IPv6报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出与所述目的 IPv4地址对应的路由信息; 发送器, 用于根据所述路由信息, 转发所述 IPv4报文的内容。 本申请的另一方面, 提供一种报文处理系统, 包括上述两个方面的路 由设备。 a transmitter, configured to send the IPv6 packet to the second routing device, so that the second routing device updates the IPv6 according to a source IPv6 address of the first BMR and the IPv6 packet The source IPv4 address carried in the packet, and the routing information corresponding to the destination IPv4 address is matched by using the first BMR, and the content of the IPv4 packet is forwarded according to the routing information. In another aspect of the present application, a routing device is provided, including: a receiver, configured to receive an IPv6 packet sent by a first routing device, where the IPv6 packet is used by the first routing device after receiving an IPv4 packet The IPv6 address or the prefix of the routing device, the IPv4 packet is encapsulated or translated, and the IPv4 packet includes a destination IPv4 address. The processor is configured to use the source of the first BMR and the IPv6 packet. An IPv6 address, the source IPv4 address carried in the IPv6 packet is updated, and the first BMR is used to match the routing information corresponding to the destination IPv4 address. The sender is configured to forward the IPv4 packet according to the routing information. The content of the text. Another aspect of the present application provides a message processing system including the routing device of the above two aspects.
由上述技术方案可知, 终端通过第一路由设备经由 IPv6网络并通过第 二路由设备与目的设备进行通信, 由于终端发起的所有 IPv4报文均需经过 所述第一路由设备和所述第二路由设备发送到目的设备, 因此在 MAP技术 的应用场景下实现了星形通信模式, 可以提高第二路由设备即网络侧设备 对用户通信流量的管理能力。 附图说明 为了更清楚地说明本申请实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍。 显而易见地, 下面描述中的附图是本申请的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  According to the foregoing technical solution, the terminal communicates with the destination device through the IPv6 network and through the second routing device by using the first routing device, and all the IPv4 packets initiated by the terminal are required to pass the first routing device and the second route. The device is sent to the destination device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the second routing device, that is, the network side device, to the user communication traffic. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can obtain other drawings according to the drawings without any inventive labor.
图 1为本申请一实施例提供的报文处理方法的流程示意图; 图 2为图 1对应的实施例中所釆用的 MAP技术的应用场景示意图; 图 3为图 1对应的实施例中第二 BMR的一映射关系示意图; 图 4为图 1对应的实施例中第一 BMR的一映射关系示意图; 图 5为图 1对应的实施例中第一 BMR的另一映射关系示意图; 图 6为图 1对应的实施例中第二 BMR的另一映射关系示意图; 图 7为图 1对应的实施例中第二 BMR的另一映射关系示意图; 图 8为本申请另一实施例提供的报文处理方法的流程示意图; 图 9为本申请另一实施例提供的路由设备的结构示意图; 图 10为本申请另一实施例提供的路由设备的结构示意图; 图 11为本申请另一实施例提供的路由设备的结构示意图; 图 12为本申请另一实施例提供的路由设备的结构示意图; 1 is a schematic flowchart of a packet processing method according to an embodiment of the present disclosure; FIG. 2 is a schematic diagram of an application scenario of a MAP technology used in the embodiment corresponding to FIG. 1; A schematic diagram of a mapping relationship between two BMRs; 4 is a schematic diagram of a mapping relationship of a first BMR in the embodiment corresponding to FIG. 1. FIG. 5 is a schematic diagram of another mapping relationship of a first BMR in the embodiment corresponding to FIG. 1. FIG. 6 is a diagram corresponding to the embodiment in FIG. FIG. 7 is a schematic diagram of another mapping relationship of the second BMR in the embodiment corresponding to FIG. 1; FIG. 8 is a schematic flowchart of a packet processing method according to another embodiment of the present application; FIG. 10 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure; FIG. 11 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure; 12 is a schematic structural diagram of a routing device provided by another embodiment of the present application;
图 13为本申请另一实施例提供的路由设备的结构示意图。 具体实施方式 为使本申请实施例的目的、 技术方案和优点更加清楚, 下面将结合本 申请实施例中的附图, 对本申请实施例中的技术方案进行清楚、 完整地描 述,显然, 所描述的实施例是本申请一部分实施例, 而不是全部的实施例。 基于本申请中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本申请保护的范围。  FIG. 13 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. The embodiments are part of the embodiments of the present application, 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 application without departing from the inventive scope are the scope of the present application.
本申请的技术方案, 可以应用于釆用 MAP 技术的应用场景 (参见 draft-mdt-softwire-mapping-address-and-port-03)。其中,第一路由设备可 以为位于用户网络边界的用户边缘路由器( Customer Edge Router, CE )、 用户住宅设备 ( Customer Premise Equipment, CPE ) 或用户网关设备 The technical solution of the present application can be applied to an application scenario using MAP technology (see draft-mdt-softwire-mapping-address-and-port-03). The first routing device may be a Customer Edge Router (CE), a Customer Premise Equipment (CPE), or a user gateway device located at a user network boundary.
( Residential Gateway )等网元; 第二路由设备可以为位于 IPv6 网络与 IPv4网络之间的边界中继路由器( Border Relay, BR )或端口范围路由器a network element such as a Residential Gateway; the second routing device may be a Border Relay (BR) or a port range router located between the IPv6 network and the IPv4 network.
( Port-Range Router, PRR )等网元。 (Port-Range Router, PRR) and other network elements.
图 1为本申请一实施例提供的报文处理方法的流程示意图,图 2为图 1 对应的实施例中所釆用的 MAP技术的应用场景示意图, 如图 1所示和图 2 所示。 101、 第一路由设备接收 IPv4报文, 所述 IPv4报文中包含目的 IPv4 地址。 FIG. 1 is a schematic flowchart of a packet processing method according to an embodiment of the present disclosure. FIG. 2 is a schematic diagram of an application scenario of a MAP technology used in the corresponding embodiment of FIG. 1 , as shown in FIG. 1 and FIG. 2 . 101. The first routing device receives an IPv4 packet, where the IPv4 packet includes a destination IPv4 address.
102、 所述第一路由设备利用第二路由设备的 IPv6地址或前缀, 将所 述 IPv4报文封装或翻译成 IPv6报文发送给所述第二路由设备, 以使得所 述第二路由设备根据第一 BMR和所述 IPv6报文的源 IPv6地址,更新所述 IPv6 文携带的源 IPv4地址,以及利用第一 BMR,匹配出与所述目的 IPv4 地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。 具体地, 所述第一路由设备具体可以通过两个功能模块实现将所述 IPv4 报文封装或翻译成 IPv6 报文, 即网络地址转换(Network Address Translation, NAT ) 44和 MAP。在 NAT44模块中 ,则将接收到的所述 IPv4 报文中的私网 IPv4地址和端口转换成公网 IPv4地址; 在 MAP模块中, 则 会将经过所述 NAT44模块处理的 IPv4报文封装或翻译成 IPv6报文。 The first routing device uses the IPv6 address or the prefix of the second routing device to encapsulate or translate the IPv4 packet into an IPv6 packet, and sends the IPv6 packet to the second routing device, so that the second routing device is configured according to the second routing device. The source B6 address of the first BMR and the IPv6 packet, the source IPv4 address carried in the IPv6 file is updated, and the routing information corresponding to the destination IPv4 address is matched by using the first BMR, and the routing information is forwarded according to the routing information. The content of the IPv4 message. Specifically, the first routing device may specifically encapsulate or translate the IPv4 packet into an IPv6 packet, that is, a network address translation (NAT) 44 and a MAP. In the NAT 44 module, the private network IPv4 address and port in the received IPv4 packet are converted into a public network IPv4 address; in the MAP module, the IPv4 packet processed by the NAT44 module is encapsulated or Translated into IPv6 messages.
可以理解的是, 所述第一路由设备具体也可以通过一个功能模块实现 将所述 IPv4报文封装或翻译成 IPv6报文, 本实施例对此不进行限定。 其中, 所述 IPv6报文具体可以通过两种方式携带源 IPv4地址 (即公 网 IPv4地址) : 一种方式为, 对于封装情况, 通过所述 IPv4报文的报文 头携带; 另一种方式为, 对于翻译情况, 通过所述 IPv6报文的源 IPv6地 址的接口标识(Interface ID ) 中的字段来携带。  It is to be understood that the first routing device may specifically encapsulate or translate the IPv4 packet into an IPv6 packet by using a function module, which is not limited in this embodiment. The IPv6 packet may carry the source IPv4 address (that is, the public network IPv4 address) in one of the two modes: one mode is carried in the packet header, and the packet header is carried in the IPv4 packet; For the translation, it is carried by the field in the interface identifier (interface ID) of the source IPv6 address of the IPv6 packet.
本实施例中, 终端通过第一路由设备经由 IPv6网络并通过第二路由设 备与目的设备进行通信, 由于终端发起的所有 IPv4报文均需经过所述第一 路由设备和所述第二路由设备发送到目的设备, 因此在 MAP技术的应用场 景下实现了星形通信模式, 可以提高第二路由设备即网络侧设备对用户通 信流量的管理能力。  In this embodiment, the terminal communicates with the destination device through the IPv6 network and through the second routing device by using the first routing device, and all the IPv4 packets initiated by the terminal are required to pass through the first routing device and the second routing device. The device is sent to the destination device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the second routing device, that is, the network side device, to the user communication traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备共 享公网 IPv4地址的场景中,在 102之前,所述第一路由设备接收支持 IPv6 々动态主机西己置协议( Dynamic Host Configure Protocol for IPv6, DHCPv6 ) 服务器下发的所述第一路由设备的 PSID和所述第二路由设备的 IPv6地址 或前缀, 并没有下发 BMR, 以使得所述第一路由设备无法根据 BMR获得 该第一路由设备的公网 IPv4地址。 相应地, 在 102中, 由于所述第一路由 设备无法利用 BMR, 匹配出与所述目的 IPv4地址对应的路由信息, 所述 第一路由设备则可以利用第二路由设备的 IPv6地址或前缀, 将所述 IPv4 报文封装或翻译成 IPv6报文发送给所述第二路由设备。 另外, 由于所述第 一路由设备无法获得其公网 IPv4地址, 因此, 所述第一路由设备发送的所 述 IPv6报文携带的源 IPv4地址可以为一特定的 IPv4地址,例如:在 IANA 申请注册的特定单播 IPv4 地址, 或类似 DS-lite技术中用于标识 B4 的 192.0.0.2, 或全 0, 或全 1等。 Optionally, in an optional implementation manner of this embodiment, in a scenario in which the first routing device shares the public network IPv4 address, before the 102, the first routing device receives the IPv6 enabled dynamic host. The first routing device is not delivered by the PSID of the first routing device and the IPv6 address or the prefix of the second routing device delivered by the server. The public network IPv4 address of the first routing device cannot be obtained according to the BMR. Correspondingly, in 102, due to the first route The device cannot use the BMR to match the routing information corresponding to the destination IPv4 address, and the first routing device may encapsulate or translate the IPv4 packet into an IPv6 packet by using an IPv6 address or a prefix of the second routing device. Send to the second routing device. In addition, since the first routing device cannot obtain the public network IPv4 address, the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example, applying at the IANA. The specific unicast IPv4 address registered, or similar to 192.0.0.2, or all 0s, or all 1s used to identify B4 in DS-lite technology.
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 包括用于访问 BR的 DMR, 及所述 CE的 PSID。 所述 DMR中包含所述 BR的 IPv6地址或前缀。 CE利用 DMR,将接收到的 IPv4报文封装或翻译 成 IPv6报文发送给 BR。 由于 BR中保留了完整的 BMR即第一 BMR, 如 图 4所示。 因此, BR可以根据所述第一 BMR和来自 CE的 IPv6报文的源 IPv6地址, 获得所述 CE的公网 IPv4地址, 并利用该公网 IPv4地址更新 所述 IPv6报文携带的源 IPv4地址; 然后, BR可以利用所述第一 BMR, 匹配出与所述目的 IPv4地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。例如: 若 BR接收到的 IPv6报文中携带的所述目的 IPv4 地址与 BR中某个 MAP域的所述第一 BMR中的规则 IPv4前缀能够匹配, 则说明目的设备在该 BR所在的某个的 MAP域内, BR将使用 IPv6报文对 所述 IPv4 文的内容进行回传处理,即所述 IPv4 文的内容通过 BR发向 另一 CE; 若 BR接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR 中任一 MAP域的所述第一 BMR中的规则 IPv4前缀不能匹配, BR则将所 述 IPv6报文携带的所述 IPv4报文的内容转发至 IPv4公网。  The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The parameters that the DHCPV6 server sends to the CE include the DMR for accessing the BR and the PSID of the CE. The DMR includes an IPv6 address or prefix of the BR. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in Figure 4. Therefore, the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR. In the MAP domain, the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 text, that is, the content of the IPv4 text is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。  The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备共 享公网 IPv4地址的场景中, 在 102之前, 所述第一路由设备接收动态主机 配置协议 ( Dynamic Host Configure Protocol for IPv6, DHCPv6 )服务器 下发的不完整的 BMR (即第二 BMR )和 DMR, 即服务器并没有下发完整 的 BMR(即第一 BMR ) ,以使得所述第一路由设备无法根据所述第二 BMR 获得该第一路由设备的公网 IPv4地址。 所述第二 BMR仅提供 PSID的长 度信息。 可选地, 所述第二 BMR 中还可以进一步包含第一嵌入地址 ( Embedded Address, EA ) 比特位( EA bits )长度, 所述第一 EA比特 位长度用以指示分配给所述第一路由设备的 IPv6前缀中 PSID的长度。 其 中, 所述 DMR用于访问第二路由设备, 即所述 DMR中包含所述第二路由 设备的 IPv6地址或其 IPv6前缀。 也就是说, 在 102之前, 所述第一路由 设备无法利用所述第二 BMR, 匹配出与所述目的 IPv4地址对应的路由信 息。相应地,在 102中,由于所述第一路由设备无法利用不完整的 BMR (即 第二 BMR ) , 匹配出与所述目的 IPv4地址对应的路由信息, 所述第一路 由设备将利用 DMR, 将所述 IPv4报文封装或翻译成 IPv6报文发送给所述 第二路由设备。 另外, 由于所述第一路由设备无法获得所述第一路由设备 的公网 IPv4地址, 因此, 所述第一路由设备发送的所述 IPv6报文携带的 源 IPv4地址可以为一特定的 IPv4地址,例如:在互联网号码分配局( Internet Assigned Numbers Authority, IANA ) 申请注册的特定单播 IPv4地址, 或 类似轻型双栈(dual stack lite, DS-lite )技术中用于标识 B4的 192.0.0.2, 或全 0或全 1等。 其中, 所述第一路由设备的 IPv6前缀是由运营商分配给所述第一路由 设备的 ,例如: DHCPv6服务器通过前缀委派( DHCPv6 Prefix Delegation , DHCPv6-PD )方式给所述第一路由设备委派的 IPv6前缀, 或者运营商边 缘路由器 (Provider Edge Router )通过无状态地址自动配置 (Stateless Address Auto-Configuration , SLAAC ) 方式给所述第一路由设备分配的 IPv6前缀。 Optionally, in an optional implementation manner of this embodiment, in a scenario where different first routing devices share a public network IPv4 address, before 102, the first routing device receives a dynamic host configuration protocol (Dynamic Host Configure) Protocol for IPv6, DHCPv6) server The incomplete BMR (ie, the second BMR) and the DMR are delivered, that is, the server does not deliver the complete BMR (ie, the first BMR), so that the first routing device cannot obtain the first BMR according to the second BMR. The public network IPv4 address of a routing device. The second BMR provides only length information of the PSID. Optionally, the second BMR may further include a first embedded address (EA) bit length (EA bits), where the first EA bit length is used to indicate that the first route is allocated to the first route. The length of the PSID in the IPv6 prefix of the device. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 102, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address. Correspondingly, in the 102, because the first routing device cannot use the incomplete BMR (ie, the second BMR) to match the routing information corresponding to the destination IPv4 address, the first routing device will utilize the DMR, The IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device. In addition, the source IPv4 address carried by the first routing device may be a specific IPv4 address, because the first routing device cannot obtain the public network IPv4 address of the first routing device. For example, a specific unicast IPv4 address applied for registration by the Internet Assigned Numbers Authority (IANA), or 192.0.0.2 used to identify B4 in a similar dual stack lite (DS-lite) technology, Or all 0 or all 1 and so on. The IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server delegates the first routing device by using a DHCPv6 Prefix Delegation (DHCPv6-PD) The IPv6 prefix, or the IPv6 prefix assigned by the Provider Edge Router to the first routing device by means of Stateless Address Auto-Configuration (SLAAC).
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 下发用于访问 BR的 DMR,以及不完整的 BMR即第二 BMR,如图 3所示, 其中, 所述第二 BMR中还可以进一步包含第一 EA比特位长度, 所述第一 EA比特位长度用以指示分配给所述 CE的 IPv6前缀中 PSID的长度。 CE 利用 DMR, 将接收到的 IPv4报文封装或翻译成 IPv6报文发送给 BR。 由 于 BR中保留了完整的 BMR即第一 BMR, 如图 4所示。 因此, BR可以根 据所述第一 BMR和来自 CE的 IPv6报文的源 IPv6地址, 获得所述 CE的 公网 IPv4地址,并利用该公网 IPv4地址更新所述 IPv6报文携带的源 IPv4 地址; 然后, BR可以利用所述第一 BMR, 匹配出与所述目的 IPv4地址对 应的路由信息, 根据所述路由信息转发所述 IPv4 报文的内容。 例如: 若 BR接收到的 IPv6报文中携带的所述目的 IPv4地址与 BR中某个 MAP域 的所述第一 BMR中的规则 IPv4前缀能够匹配, 则说明目的设备在该 BR 所在的某个的 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的内容进 行回传处理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR接收 到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中任一 MAP域的所述 第一 BMR中的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带的所 述 IPv4报文的内容转发至 IPv4公网。 The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and the incomplete BMR, that is, the second BMR, as shown in FIG. 3, wherein the second BMR may further include the first EA. Bit length, the first EA bit length is used to indicate the length of the PSID in the IPv6 prefix allocated to the CE. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets. By The complete BMR, the first BMR, is retained in the BR, as shown in Figure 4. Therefore, the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR. In the MAP domain, the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。  The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备不 共享公网 IPv4地址的场景中, 在 102之前, 所述第一路由设备还可以进一 步接收 DHCPV6服务器只下发的所述 DMR,即服务器只下发了所述 DMR, 并没有下发 BMR, 以使得所述第一路由设备无法根据 BMR获得该第一路 由设备的公网 IPv4前缀或地址。其中,所述 DMR用于访问第二路由设备, 即所述 DMR中包含所述第二路由设备的 IPv6地址或其 IPv6前缀。相应地, 在 102中, 由于所述第一路由设备无法利用 BMR, 匹配出与所述目的 IPv4 地址对应的路由信息, 所述第一路由设备则可以利用 DMR, 将所述 IPv4 报文封装或翻译成 IPv6报文发送给所述第二路由设备。 另外, 由于所述第 一路由设备无法获得其公网 IPv4地址, 因此, 所述第一路由设备发送的所 述 IPv6报文携带的源 IPv4地址可以为一特定的 IPv4地址,例如:在 IANA 申请注册的特定单播 IPv4 地址, 或类似 DS-lite技术中用于标识 B4 的 192.0.0.2, 或全 0或全 1等。  Optionally, in an optional implementation manner of this embodiment, in a scenario where different first routing devices do not share a public network IPv4 address, before the 102, the first routing device may further receive the DHCPV6 server only. The DMR, that is, the server only delivers the DMR, and does not deliver the BMR, so that the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device according to the BMR. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. Correspondingly, in the case that the first routing device cannot use the BMR to match the routing information corresponding to the destination IPv4 address, the first routing device may use the DMR to encapsulate the IPv4 packet or The translated IPv6 packet is sent to the second routing device. In addition, since the first routing device cannot obtain the public network IPv4 address, the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example, applying at the IANA. Registered specific unicast IPv4 address, or similar to 192.0.0.2 used to identify B4 in DS-lite technology, or all 0 or all 1s.
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 仅下发用于访问 BR的 DMR, 而不下发 BMR。 CE利用 DMR, 将接收到 的 IPv4报文封装或翻译成 IPv6报文发送给 BR。 由于 BR中保留了完整的 BMR即第一 BMR, 如图 5所示。 因此, BR可以根据所述第一 BMR和来 自 CE的 IPv6报文的源 IPv6地址,获得所述 CE的公网 IPv4前缀或地址。 如果 BR获得的是所述 CE的公网 IPv4前缀, BR则可以根据预设规则在 该公网 IPv4前缀所指示的网段中固定选择一个地址, 例如, 该网段的可用 的首地址, 作为所述 CE的公网 IPv4地址。 然后, BR则可以利用获得的 所述 CE的公网 IPv4地址更新所述 IPv6报文携带的源 IPv4地址; 然后, BR可以利用所述第一 BMR,匹配出与所述 IPv6报文携带的所述目的 IPv4 地址对应的路由信息,根据所述路由信息转发所述 IPv4报文的内容。例如: 若 BR接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中某个 MAP 域的所述第一 BMR中的规则 IPv4前缀能够匹配,则说明目的设备在该 BR 所属的某个 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的内容进行 回传处理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR接收到 的所述 IPv6报文携带的所述目的 IPv4地址与 BR中任一 MAP域的所述第 一 BMR中的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带的所述 IPv4报文的内容转发至 IPv4公网。 The first routing device is the CE located at the boundary of the user network, and the second routing device is located at the IPv6. Take the BR between the network and the IPv4 network as an example. The DHCPv6 server delivers the DMR for accessing the BR and does not deliver the BMR. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in FIG. Therefore, the BR can obtain the public network IPv4 prefix or address of the CE according to the source B6 address of the first BMR and the IPv6 packet from the CE. If the BR obtains the public network IPv4 prefix of the CE, the BR may select an address in the network segment indicated by the IPv4 prefix of the public network according to a preset rule, for example, the available first address of the network segment, as The public network IPv4 address of the CE. Then, the BR can update the source IPv4 address carried by the IPv6 packet by using the obtained public network IPv4 address of the CE. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in the In the MAP domain, the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。  The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备共 享公网 IPv4地址的场景中,在 102之前, 所述第一路由设备接收 DHCPV6 服务器下发的不完全正确的 BMR (即第二 BMR )和所述 DMR, 即服务器 没有下发完全正确的 BMR (即第一 BMR ) , 以使得所述第一路由设备无 法根据所述第二 BMR获得该第一路由设备的公网 IPv4地址。 可选地, 所 述第二 BMR中还可以进一步包含特定的规则 IPv4前缀(例如: 10.10.10.10 / · [规则 IPv4前缀的长度 }, 或全 0或全 1等 )和第二 EA比特位长度, 所述 第二 EA 比特位长度用以指示分配给所述第一路由设备的 IPv6 前缀中的 IPv4后缀与 PSID的长度之和,所述 IPv4后缀为所述第一路由设备的 IPv4 地址中除去所述规则 IPv4 前缀的相应长度之后的剩余部分。 其中, 所述 DMR 用于访问第二路由设备, 即所述 DMR 中包含所述第二路由设备的 IPv6地址或其 IPv6前缀。 也就是说, 在 102之前, 所述第一路由设备无 法利用所述第二 BMR, 匹配出与所述目的 IPv4地址对应的路由信息。 相 应地, 在 102中, 由于所述第一路由设备无法利用不完全正确的 BMR (即 第二 BMR ) , 匹配出与所述目的 IPv4地址对应的路由信息, 所述第一路 由设备则可以利用 DMR, 将所述 IPv4报文封装或翻译成 IPv6报文发送给 所述第二路由设备。 另外, 由于所述第一路由设备也无法利用不完全正确 的 BMR (即第二 BMR ) ,获得所述第一路由设备的公网 IPv4地址, 因此, 所述第一路由设备发送的所述 IPv6报文携带的源 IPv4地址可以为使用所 述特定的规则 IPv4前缀的 IPv4地址。 Optionally, in an optional implementation manner of this embodiment, in a scenario in which the first routing device shares the public network IPv4 address, the first routing device receives the DHCPV6 server that is not completely correct. The BMR (ie, the second BMR) and the DMR, that is, the server does not deliver the completely correct BMR (ie, the first BMR), so that the first routing device cannot obtain the first routing device according to the second BMR. Public network IPv4 address. Optionally, the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / · [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the second EA bit length The second EA bit length is used to indicate the IPv6 prefix allocated to the first routing device. The sum of the length of the IPv4 suffix and the PSID, the IPv4 suffix being the remainder of the IPv4 address of the first routing device after removing the corresponding length of the regular IPv4 prefix. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 102, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address. Correspondingly, in the first routing device, the first routing device can use the routing information corresponding to the destination IPv4 address by using the incompletely correct BMR (ie, the second BMR). The DMR encapsulates or translates the IPv4 packet into an IPv6 packet and sends the packet to the second routing device. In addition, the first routing device cannot use the incompletely correct BMR (ie, the second BMR) to obtain the public network IPv4 address of the first routing device, and therefore, the IPv6 sent by the first routing device. The source IPv4 address carried in the packet may be an IPv4 address using the specific rule IPv4 prefix.
其中, 所述第一路由设备的 IPv6前缀是由运营商分配给所述第一路由 设备的 ,例如: DHCPv6服务器通过前缀委派( DHCPv6 Prefix Delegation , DHCPv6-PD )方式给所述第一路由设备委派的 IPv6前缀, 或者运营商边 缘路由器 (Provider Edge Router )通过无状态地址自动配置 (Stateless Address Auto-Configuration , SLAAC ) 方式给所述第一路由设备分配的 IPv6前缀。  The IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server delegates the first routing device by using a DHCPv6 Prefix Delegation (DHCPv6-PD) The IPv6 prefix, or the IPv6 prefix assigned by the Provider Edge Router to the first routing device by means of Stateless Address Auto-Configuration (SLAAC).
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 下发用于访问 BR的 DMR, 以及不完全正确的 BMR即第二 BMR, 如图 6 所示, 其中, 所述第二 BMR中还可以进一步包含特定的规则 IPv4前缀和 第二 EA比特位长度, 所述第二 EA比特位长度用以指示分配给所述 CE的 IPv6前缀中的 IPv4后缀与 PSID的长度之和。 CE利用 DMR, 将接收到的 IPv4报文封装或翻译成 IPv6报文发送给 BR。 由于 BR中保留了完全正确 的 BMR即第一 BMR, 如图 4所示。 因此, BR可以根据所述第一 BMR和 来自 CE的 IPv6报文的源 IPv6地址, 获得所述 CE的公网 IPv4地址, 并 该公网 IPv4地址更新所述 IPv6报文携带的源 IPv4地址; 然后, BR可以 利用所述第一 BMR, 匹配出与所述 IPv6报文携带的所述目的 IPv4地址对 应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。 若 BR接收 到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中某个 MAP域的所述 第一 BMR中的规则 IPv4前缀能够匹配, 则说明目的设备在该 BR所属的 某个 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的内容进行回传处 理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR接收到的所述 IPv6报文携带的目的 IPv4地址与 BR中任一 MAP域的所述第一 BMR中 的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带的所述 IPv4报文 的内容转发至 IPv4公网。 终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。 The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 6. The second BMR may further include a specific A regular IPv4 prefix and a second EA bit length, the second EA bit length being used to indicate a sum of an IPv4 suffix and a length of the PSID in an IPv6 prefix allocated to the CE. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the BR is the correct BMR, the first BMR, as shown in Figure 4. Therefore, the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by the public network IPv4 address; Then, the BR may use the first BMR to match the routing information corresponding to the destination IPv4 address carried in the IPv6 packet, and forward the content of the IPv4 packet according to the routing information. If BR receives If the destination IPv4 address that is carried in the IPv6 packet is matched with the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in a certain MAP domain to which the BR belongs. The content of the IPv4 packet is forwarded by using the IPv6 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the destination IPv4 address carried by the IPv6 packet received by the BR is The rule IPv4 prefix in the first BMR of any MAP domain in the BR cannot be matched, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network. The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备不 共享公网 IPv4地址的场景中,在 102之前,所述第一路由设备接收 DHCPV6 服务器下发的不完全正确的 BMR (即第二 BMR )和所述 DMR, 即服务器 没有下发完全正确的 BMR (即第一 BMR ) , 以使得所述第一路由设备无 法根据所述第二 BMR获得该第一路由设备的公网 IPv4前缀或地址。 可选 地, 所述第二 BMR 中还可以进一步包含特定的规则 IPv4 前缀(例如: 10.10.10.10 / · [规则 IPv4前缀的长度 }, 或全 0或全 1等)和第三 EA比特 位长度,所述第三 EA比特位长度用以指示分配给所述第一路由设备的 IPv6 前缀中的 IPv4后缀的长度, 所述 IPv4后缀为所述第一路由设备的 IPv4前 缀或地址中除去所述规则 IPv4前缀的相应长度之后的剩余部分。 其中, 所 述 DMR用于访问第二路由设备, 即所述 DMR中包含所述第二路由设备的 IPv6地址或其 IPv6前缀。 也就是说, 在 102之前, 所述第一路由设备无 法利用所述第二 BMR, 匹配出与所述目的 IPv4地址对应的路由信息。 相 应地, 在 102中, 由于所述第一路由设备无法利用不完全正确的 BMR (即 第二 BMR ) , 匹配出与所述目的 IPv4地址对应的路由信息, 所述第一路 由设备利用 DMR, 将所述 IPv4报文封装或翻译成 IPv6报文发送给所述第 二路由设备。 另外, 由于所述第一路由设备也无法利用不完整的 BMR (即 第二 BMR ) , 获得所述第一路由设备的公网 IPv4前缀或地址, 因此, 所 述第一路由设备发送的所述 IPv6报文携带的源 IPv4地址可以为使用所述 特定的规则 IPv4前缀的 IPv4地址。 其中, 所述第一路由设备的 IPv6前缀是由运营商分配给所述第一路由 设备的 ,例如: DHCPv6服务器通过前缀委派( DHCPv6 Prefix Delegation , DHCPv6-PD )方式给所述第一路由设备委派的 IPv6前缀, 或者运营商边 缘路由器 (Provider Edge Router )通过无状态地址自动配置 (Stateless Address Auto-Configuration , SLAAC ) 方式给所述第一路由设备分配的 IPv6前缀。 Optionally, in an optional implementation manner of this embodiment, in a scenario where different first routing devices do not share a public network IPv4 address, before the 102, the first routing device receives an incomplete delivery by the DHCPV6 server. The correct BMR (ie, the second BMR) and the DMR, that is, the server does not deliver the completely correct BMR (ie, the first BMR), so that the first routing device cannot obtain the first route according to the second BMR. The public network IPv4 prefix or address of the device. Optionally, the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / · [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the third EA bit length The length of the third EA bit is used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the first routing device, and the IPv4 suffix is the IPv4 prefix or address of the first routing device. The remainder of the rule after the corresponding length of the IPv4 prefix. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 102, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address. Correspondingly, in the first routing device, the first routing device cannot use the incompletely correct BMR (ie, the second BMR) to match the routing information corresponding to the destination IPv4 address, and the first routing device uses the DMR. The IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device. In addition, the first routing device cannot use the incomplete BMR (ie, the second BMR) to obtain the public network IPv4 prefix or address of the first routing device, and therefore, the first routing device sends the The source IPv4 address carried in the IPv6 packet can be used. The IPv4 address of the specific rule IPv4 prefix. The IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server delegates the first routing device by using a DHCPv6 Prefix Delegation (DHCPv6-PD) The IPv6 prefix, or the IPv6 prefix assigned by the Provider Edge Router to the first routing device by means of Stateless Address Auto-Configuration (SLAAC).
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 下发用于访问 BR的 DMR, 以及不完全正确的 BMR即第二 BMR, 如图 7 所示, 其中, 所述第二 BMR中还可以进一步包含特定的规则 IPv4前缀和 第三 EA比特位长度, 所述第三 EA比特位长度用以指示分配给所述 CE的 IPv6前缀中的 IPv4后缀的长度。 CE利用 DMR, 将接收到的 IPv4报文封 装或翻译成 IPv6报文发送给 BR。由于 BR中保留了完全正确的 BMR即第 一 BMR,如图 5所示。因此, BR可以根据所述第一 BMR和来自 CE的 IPv6 报文的源 IPv6地址, 获得所述 CE的公网 IPv4地址。 然后, BR则可以利 用获得的所述 CE的公网 IPv4地址更新所述 IPv6报文携带的源 IPv4地址; 然后, BR可以利用所述第一 BMR, 匹配出与所述 IPv6报文携带的所述目 的 IPv4地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内 容。若 BR接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中某个 MAP域的所述第一 BMR中的规则 IPv4前缀能够匹配,则说明目的设备在 该该 BR所属的某个 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的 内容进行回传处理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR 接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中任一 MAP域的 所述第一 BMR中的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带 的所述 IPv4报文的内容转发至 IPv4公网。 终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。 图 8为本申请另一实施例提供的报文处理方法的流程示意图, 如图 8 所示。 The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 7. The second BMR may further include a specific A regular IPv4 prefix and a third EA bit length, the third EA bit length being used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the CE. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the BR is the correct BMR, the first BMR, as shown in Figure 5. Therefore, the BR can obtain the public network IPv4 address of the CE according to the source B6 address of the first BMR and the IPv6 packet from the CE. Then, the BR can use the obtained public network IPv4 address of the CE to update the source IPv4 address carried by the IPv6 packet. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information. If the destination IPv4 address carried in the IPv6 packet that the BR receives is matched with the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in the certain one to which the BR belongs. In the MAP domain, the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network. The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic. FIG. 8 is a schematic flowchart of a packet processing method according to another embodiment of the present application, as shown in FIG. 8.
801、 第二路由设备接收第一路由设备发送的 IPv6报文, 所述 IPv6报 文为所述第一路由设备接收 IPv4报文之后,利用所述第二路由设备的 IPv6 地址或前缀, 将所述 IPv4报文封装或翻译成的, 所述 IPv4报文中包含目 的 IPv4地址。  801. The second routing device receives the IPv6 packet sent by the first routing device, where the IPv6 packet is the IPv6 address or the prefix of the second routing device after the first routing device receives the IPv4 packet. The IPv4 packet is encapsulated or translated, and the IPv4 packet includes a destination IPv4 address.
802、 所述第二路由设备根据第一 BMR和所述 IPv6报文的源 IPv6地 址, 更新所述 IPv6报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出 与所述目的 IPv4地址对应的路由信息。  802. The second routing device updates the source IPv4 address carried in the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet, and uses the first BMR to match the destination IPv4 address. Routing information.
803、 所述第二路由设备根据所述路由信息, 转发所述 IPv4报文的内 容。 803. The second routing device forwards the content of the IPv4 packet according to the routing information.
具体地, 所述第一路由设备具体可以通过两个功能模块实现将所述 IPv4 报文封装或翻译成 IPv6 报文, 即网络地址转换(Network Address Translation, NAT ) 44和 MAP。在 NAT44模块中 ,则将接收到的所述 IPv4 报文中的私网 IPv4地址和端口转换成公网 IPv4地址; 在 MAP模块中, 则 会将经过所述 NAT44模块处理的 IPv4报文封装或翻译成 IPv6报文。  Specifically, the first routing device may specifically encapsulate or translate the IPv4 packet into an IPv6 packet, that is, a network address translation (NAT) 44 and a MAP. In the NAT 44 module, the private network IPv4 address and port in the received IPv4 packet are converted into a public network IPv4 address; in the MAP module, the IPv4 packet processed by the NAT44 module is encapsulated or Translated into IPv6 messages.
可以理解的是, 所述第一路由设备具体也可以通过一个功能模块实现 将所述 IPv4报文封装或翻译成 IPv6报文, 本实施例对此不进行限定。  It is to be understood that the first routing device may specifically encapsulate or translate the IPv4 packet into an IPv6 packet by using a function module, which is not limited in this embodiment.
其中, 所述 IPv6报文具体可以通过两种方式携带源 IPv4地址 (即公 网 IPv4地址) : 一种方式为, 对于封装情况, 通过所述 IPv4报文的报文 头携带; 另一种方式为, 对于翻译情况, 通过所述 IPv6报文的源 IPv6地 址的接口标识(Interface ID ) 中的字段来携带。 本实施例中, 终端通过第一路由设备经由 IPv6网络并通过第二路由设 备与目的设备进行通信, 由于终端发起的所有 IPv4报文均需经过所述第一 路由设备和所述第二路由设备发送到目的设备, 因此在 MAP技术的应用场 景下实现了星形通信模式, 可以提高第二路由设备即网络侧设备对用户通 信流量的管理能力。  The IPv6 packet may carry the source IPv4 address (that is, the public network IPv4 address) in one of the two modes: one mode is carried in the packet header, and the packet header is carried in the IPv4 packet; For the translation, it is carried by the field in the interface identifier (interface ID) of the source IPv6 address of the IPv6 packet. In this embodiment, the terminal communicates with the destination device through the IPv6 network and through the second routing device by using the first routing device, and all the IPv4 packets initiated by the terminal are required to pass through the first routing device and the second routing device. The device is sent to the destination device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the second routing device, that is, the network side device, to the user communication traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备共 享公网 IPv4地址的场景中,在 801之前, 所述第一路由设备接收 DHCPV6 服务器下发的所述第一路由设备的 PSID和所述第二路由设备的 IPv6地址 或前缀, 并没有下发 BMR, 以使得所述第一路由设备无法根据 BMR获得 该第一路由设备的公网 IPv4前缀或地址。 相应地, 在 102中, 由于所述第 一路由设备无法利用 BMR,匹配出与所述目的 IPv4地址对应的路由信息, 所述第一路由设备则可以利用第二路由设备的 IPv6 地址或前缀, 将所述 IPv4报文封装或翻译成 IPv6报文发送给所述第二路由设备。 另外, 由于所 述第一路由设备无法获得其公网 IPv4地址, 因此, 所述第一路由设备发送 的所述 IPv6报文携带的源 IPv4地址可以为一特定的 IPv4地址, 例如: 在 IANA申请注册的特定单播 IPv4地址, 或类似 DS-lite技术中用于标识 B4 的 192.0.0.2, 或全 0或全 1等。 Optionally, in an optional implementation manner of this embodiment, the first routing device is different. In the scenario of enjoying the IPv4 address of the public network, before the 801, the first routing device receives the PSID of the first routing device and the IPv6 address or prefix of the second routing device delivered by the DHCPV6 server, and does not deliver the packet. The BMR is such that the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device according to the BMR. Correspondingly, in the case that the first routing device cannot use the BMR to match the routing information corresponding to the destination IPv4 address, the first routing device may use the IPv6 address or prefix of the second routing device. The IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device. In addition, since the first routing device cannot obtain the public network IPv4 address, the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example: Applying at the IANA Registered specific unicast IPv4 address, or similar to 192.0.0.2 used to identify B4 in DS-lite technology, or all 0 or all 1s.
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 下发用于访问 BR的 DMR, 以及所述 CE的 PSID。 所述 DMR中包含所述 BR的 IPv6地址或前缀。 CE利用 DMR,将接收到的 IPv4报文封装或翻译 成 IPv6报文发送给 BR。 由于 BR中保留了完整的 BMR即第一 BMR, 如 图 4所示。 因此, BR可以根据所述第一 BMR和来自 CE的 IPv6报文的源 IPv6地址, 获得所述 CE的公网 IPv4地址, 并利用该公网 IPv4地址更新 所述 IPv6报文携带的源 IPv4地址; 然后, BR可以利用所述第一 BMR, 匹配出与所述目的 IPv4地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。例如: 若 BR接收到的 IPv6报文中携带的所述目的 IPv4 地址与 BR中某个 MAP域的所述第一 BMR中的规则 IPv4前缀能够匹配, 则说明目的设备在该 BR所在的某个的 MAP域内, BR将使用 IPv6报文对 所述 IPv4 文的内容进行回传处理,即所述 IPv4 文的内容通过 BR发向 另一 CE; 若 BR接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR 中任一 MAP域的所述第一 BMR中的规则 IPv4前缀不能匹配, BR则将所 述 IPv6报文携带的所述 IPv4报文的内容转发至 IPv4公网。 终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。 The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and the PSID of the CE in the parameters sent to the CE. The DMR includes an IPv6 address or prefix of the BR. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in FIG. Therefore, the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR. In the MAP domain, the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 text, that is, the content of the IPv4 text is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network. The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's management of user traffic Ability.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备共 享公网 IPv4地址的场景中,在 801之前, 所述第一路由设备接收 DHCPV6 服务器下发的不完整的 BMR (即第二 BMR )和所述 DMR, 即服务器并没 有下发完整的 BMR (即第一 BMR ) , 以使得所述第一路由设备无法根据 所述第二 BMR获得该第一路由设备的公网 IPv4地址。 可选地, 所述第二 BMR中还可以进一步包含第一 EA ( Embedded Address, EA )比特位( EA bits )长度, 所述第一 EA比特位长度用以指示分配给所述第一路由设备的 IPv6前缀中 PSID的长度。 其中, 所述 DMR用于访问第二路由设备, 即所 述 DMR中包含所述第二路由设备的 IPv6地址或其 IPv6前缀。 也就是说, 在 801之前, 所述第一路由设备无法利用所述第二 BMR, 匹配出与所述目 的 IPv4地址对应的路由信息。 相应地, 由于所述第一路由设备无法利用不 完整的 BMR (即第二 BMR ) , 匹配出与所述目的 IPv4地址对应的路由信 息, 所述第一路由设备将利用 DMR, 将所述 IPv4报文封装或翻译成 IPv6 报文发送给所述第二路由设备。 另外, 由于所述第一路由设备无法获得所 述第一路由设备的公网 IPv4地址,因此,所述第一路由设备发送的所述 IPv6 报文携带的源 IPv4地址可以为一特定的 IPv4地址,例如: 在 IANA申请注 册的特定单播 IPv4地址,或类似 DS-lite技术中用于标识 B4的 192.0.0.2, 或全 0或全 1等。 其中, 所述第一路由设备的 IPv6前缀是由运营商分配给所述第一路由 设备,例如: DHCPv6服务器通过 DHCPv6中的前缀委派( DHCPv6 Prefix Delegation , DHCPv6-PD )方式给所述第一路由设备委派 IPv6前缀, 或者 无状态地址自动配置( Stateless Address Auto-Configuration , SLAAC )服 务器通过 SLAAC方式给所述第一路由设备指配 IPv6前缀。  Optionally, in an optional implementation manner of this embodiment, in a scenario in which the first routing device shares the public network IPv4 address, the first routing device receives the incomplete information sent by the DHCPV6 server before the 801. The BMR (ie, the second BMR) and the DMR, that is, the server does not deliver the complete BMR (ie, the first BMR), so that the first routing device cannot obtain the first routing device according to the second BMR. Public network IPv4 address. Optionally, the second BMR may further include a first EA (Embedded Address, EA) bit length (EA bits), where the first EA bit length is used to indicate that the first routing device is allocated to the first routing device. The length of the PSID in the IPv6 prefix. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 801, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address. Correspondingly, because the first routing device cannot use the incomplete BMR (ie, the second BMR) to match the routing information corresponding to the destination IPv4 address, the first routing device will utilize the DMR, and the IPv4 The packet is encapsulated or translated into an IPv6 packet and sent to the second routing device. In addition, the source IPv4 address carried by the first routing device may be a specific IPv4 address, because the first routing device cannot obtain the public network IPv4 address of the first routing device. For example: a specific unicast IPv4 address that is applied for registration at the IANA, or 192.0.0.2, or all 0s or all 1s, used to identify B4 in DS-lite technology. The IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server sends the first route to the DHCPv6 Prefix Delegation (DHCPv6-PD) in DHCPv6. The device assigns an IPv6 prefix, or the Stateless Address Auto-Configuration (SLAAC) server assigns the IPv6 prefix to the first routing device by using the SLAAC method.
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 下发用于访问 BR的 DMR,以及不完整的 BMR即第二 BMR,如图 3所示, 其中, 所述第二 BMR中还可以进一步包含第一 EA比特位长度, 所述第一 EA比特位长度用以指示分配给所述 CE的 IPv6前缀中 PSID的长度。 CE 利用 DMR, 将接收到的 IPv4报文封装或翻译成 IPv6报文发送给 BR。 由 于 BR中保留了完整的 BMR即第一 BMR, 如图 4所示。 因此, BR可以根 据所述第一 BMR和来自 CE的 IPv6报文的源 IPv6地址, 获得所述 CE的 公网 IPv4地址,并利用该公网 IPv4地址更新所述 IPv6报文携带的源 IPv4 地址; 然后, BR可以利用所述第一 BMR, 匹配出与所述目的 IPv4地址对 应的路由信息, 根据所述路由信息转发所述 IPv4 报文的内容。 例如: 若 BR接收到的 IPv6报文中携带的所述目的 IPv4地址与 BR中某个 MAP域 的所述第一 BMR中的规则 IPv4前缀能够匹配, 则说明目的设备在该 BR 所在的某个的 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的内容进 行回传处理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR接收 到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中任一 MAP域的所述 第一 BMR中的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带的所 述 IPv4报文的内容转发至 IPv4公网。 The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and the incomplete BMR, that is, the second BMR, as shown in FIG. 3, wherein the second BMR may further include the first EA. Bit length, the first EA bit length is used to indicate the length of the PSID in the IPv6 prefix allocated to the CE. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets. By The complete BMR, the first BMR, is retained in the BR, as shown in Figure 4. Therefore, the BR may obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE, and update the source IPv4 address carried by the IPv6 packet by using the public network IPv4 address. Then, the BR can use the first BMR to match the routing information corresponding to the destination IPv4 address, and forward the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is located in the BR. In the MAP domain, the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。  The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备不 共享公网 IPv4地址的场景中, 在 801之前, 所述第一路由设备还可以进一 步接收 DHCPV6服务器只下发的所述 DMR,即服务器只下发了所述 DMR, 并没有下发 BMR, 以使得所述第一路由设备无法根据 BMR获得该第一路 由设备的公网 IPv4前缀或地址。其中,所述 DMR用于访问第二路由设备, 即所述 DMR中包含所述第二路由设备的 IPv6地址或其 IPv6前缀。相应地, 由于所述第一路由设备无法利用 BMR, 匹配出与所述目的 IPv4地址对应 的路由信息, 所述第一路由设备则可以利用 DMR, 将所述 IPv4报文封装 或翻译成 IPv6报文发送给所述第二路由设备。 另外, 由于所述第一路由设 备无法获得其公网 IPv4地址, 因此, 所述第一路由设备发送的所述 IPv6 报文携带的源 IPv4地址可以为一特定的 IPv4地址,例如: 在 IANA申请注 册的特定单播 IPv4地址,或类似 DS-lite技术中用于标识 B4的 192.0.0.2, 或全 0或全 1等。 其中, 所述第一路由设备的 IPv6前缀是由运营商分配给所述第一路由 设备,例如: DHCPv6服务器通过 DHCPv6中的前缀委派( DHCPv6 Prefix Delegation , DHCPv6-PD )方式给所述第一路由设备委派 IPv6前缀, 或者 无状态地址自动配置( Stateless Address Auto-Configuration , SLAAC )服 务器通过 SLAAC方式给所述第一路由设备指配 IPv6前缀。 Optionally, in an optional implementation manner of this embodiment, in a scenario where different first routing devices do not share a public network IPv4 address, before the 801, the first routing device may further receive the DHCPV6 server only. The DMR, that is, the server only delivers the DMR, and does not deliver the BMR, so that the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device according to the BMR. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. Correspondingly, the first routing device can use the DMR to encapsulate or translate the IPv4 packet into an IPv6 packet by using the DMR to match the routing information corresponding to the destination IPv4 address. The text is sent to the second routing device. In addition, since the first routing device cannot obtain the public network IPv4 address, the source IPv4 address carried by the IPv6 packet sent by the first routing device may be a specific IPv4 address, for example: Applying at the IANA Registered specific unicast IPv4 address, or similar to 192.0.0.2 used to identify B4 in DS-lite technology, or all 0 or all 1s. The IPv6 prefix of the first routing device is allocated by the operator to the first route. The device, for example, the DHCPv6 server delegates the IPv6 prefix to the first routing device by using the DHCPv6 Prefix Delegation (DHCPv6-PD) method, or the Stateless Address Auto-Configuration (SLAAC) server passes the device. The SLAAC mode assigns the IPv6 prefix to the first routing device.
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 仅下发用于访问 BR的 DMR, 而不下发 BMR。 CE利用 DMR, 将接收到 的 IPv4报文封装或翻译成 IPv6报文发送给 BR。 由于 BR中保留了完整的 BMR即第一 BMR, 如图 5所示。 因此, BR可以根据所述第一 BMR和来 自 CE的 IPv6报文的源 IPv6地址,获得所述 CE的公网 IPv4前缀或地址。 如果 BR获得的是所述 CE的公网 IPv4前缀, BR则可以根据预设规则在 该公网 IPv4前缀所指示的网段中固定选择一个地址, 例如, 该网段的可用 的首地址, 作为所述 CE的公网 IPv4地址。 然后, BR则可以利用获得的 所述 CE的公网 IPv4地址更新所述 IPv6报文携带的源 IPv4地址; 然后, BR可以利用所述第一 BMR,匹配出与所述 IPv6报文携带的所述目的 IPv4 地址对应的路由信息,根据所述路由信息转发所述 IPv4报文的内容。例如: 若 BR接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中某个 MAP 域的所述第一 BMR中的规则 IPv4前缀能够匹配,则说明目的设备在该 BR 所属的某个 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的内容进行 回传处理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR接收到 的所述 IPv6报文携带的所述目的 IPv4地址与 BR中任一 MAP域的所述第 一 BMR中的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带的所述 IPv4报文的内容转发至 IPv4公网。  The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and does not deliver the BMR. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the complete BMR, the first BMR, is retained in the BR, as shown in Figure 5. Therefore, the BR can obtain the public network IPv4 prefix or address of the CE according to the source B6 address of the first BMR and the IPv6 packet from the CE. If the BR obtains the public network IPv4 prefix of the CE, the BR may select an address in the network segment indicated by the IPv4 prefix of the public network according to a preset rule, for example, the available first address of the network segment, as The public network IPv4 address of the CE. Then, the BR can update the source IPv4 address carried by the IPv6 packet by using the obtained public network IPv4 address of the CE. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information. For example, if the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in the In the MAP domain, the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。  The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备共 享公网 IPv4地址的场景中,在 801之前, 所述第一路由设备接收 DHCPV6 服务器下发的不完全正确的 BMR (即第二 BMR )和所述 DMR, 即服务器 没有下发完全正确的 BMR (即第一 BMR ) , 以使得所述第一路由设备无 法根据所述第二 BMR获得该第一路由设备的公网 IPv4地址。 可选地, 所 述第二 BMR中还可以进一步包含特定的规则 IPv4前缀(例如: 10.10.10.10 / · [规则 IPv4前缀的长度 }, 或全 0或全 1等 )和第二 EA比特位长度, 所述 第二 EA 比特位长度用以指示分配给所述第一路由设备的 IPv6 前缀中的 IPv4后缀与 PSID的长度之和,所述 IPv4后缀为所述第一路由设备的 IPv4 地址中除去所述规则 IPv4 前缀的相应长度之后的剩余部分。 其中, 所述 DMR 用于访问第二路由设备, 即所述 DMR 中包含所述第二路由设备的 IPv6地址或其 IPv6前缀。 也就是说, 在 801之前, 所述第一路由设备无 法利用所述第二 BMR, 匹配出与所述目的 IPv4地址对应的路由信息。 相 应地,由于所述第一路由设备无法利用不完全正确的 BMR(即第二 BMR ), 匹配出与所述目的 IPv4地址对应的路由信息, 所述第一路由设备则可以利 用 DMR, 将所述 IPv4报文封装或翻译成 IPv6报文发送给所述第二路由设 备。另夕卜,由于所述第一路由设备也无法利用不完整的 BMR(即第二 BMR ), 获得所述第一路由设备的公网 IPv4地址, 因此, 所述第一路由设备发送的 所述 IPv6报文携带的源 IPv4地址可以为使用所述特定的规则 IPv4前缀的 IPv4地址。 其中, 所述第一路由设备的 IPv6前缀是由运营商分配给所述第一路由 设备,例如: DHCPv6服务器通过 DHCPv6中的前缀委派( DHCPv6 Prefix Delegation , DHCPv6-PD )方式给所述第一路由设备委派 IPv6前缀, 或者 无状态地址自动配置( Stateless Address Auto-Configuration , SLAAC )服 务器通过 SLAAC方式给所述第一路由设备指配 IPv6前缀。 Optionally, in an optional implementation manner of this embodiment, in a scenario in which the first routing device shares the public network IPv4 address, before the 801, the first routing device receives the DHCPV6 server that is not completely correct. BMR (ie second BMR) and the DMR, ie the server The BMR (ie, the first BMR) is not delivered correctly, so that the first routing device cannot obtain the public network IPv4 address of the first routing device according to the second BMR. Optionally, the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / · [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the second EA bit length The second EA bit length is used to indicate the sum of the IPv4 suffix and the length of the PSID in the IPv6 prefix allocated to the first routing device, where the IPv4 suffix is removed from the IPv4 address of the first routing device. The remainder of the rule after the corresponding length of the IPv4 prefix. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 801, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address. Correspondingly, since the first routing device cannot use the BMR (ie, the second BMR) that is not completely correct, and the routing information corresponding to the destination IPv4 address is matched, the first routing device may use the DMR to The IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device. In addition, the first routing device cannot obtain the public network IPv4 address of the first routing device by using the incomplete BMR (ie, the second BMR), and therefore, the first routing device sends the The source IPv4 address carried in the IPv6 packet may be an IPv4 address using the specific rule IPv4 prefix. The IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server sends the first route to the DHCPv6 Prefix Delegation (DHCPv6-PD) in DHCPv6. The device assigns an IPv6 prefix, or the Stateless Address Auto-Configuration (SLAAC) server assigns the IPv6 prefix to the first routing device by using the SLAAC method.
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 下发用于访问 BR的 DMR, 以及不完全正确的 BMR即第二 BMR, 如图 6 所示, 其中, 所述第二 BMR中还可以进一步包含特定的规则 IPv4前缀和 第二 EA比特位长度, 所述第二 EA比特位长度用以指示分配给所述 CE的 IPv6前缀中的 IPv4后缀与 PSID的长度之和。 CE利用 DMR, 将接收到的 IPv4报文封装或翻译成 IPv6报文发送给 BR。 由于 BR中保留了完全正确 的 BMR即第一 BMR, 如图 4所示。 因此, BR可以根据所述第一 BMR和 来自 CE的 IPv6报文的源 IPv6地址, 获得所述 CE的公网 IPv4地址, 并 该公网 IPv4地址更新所述 IPv6报文携带的源 IPv4地址; 然后, BR可以 利用所述第一 BMR, 匹配出与所述 IPv6报文携带的所述目的 IPv4地址对 应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。 若 BR接收 到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中某个 MAP域的所述 第一 BMR中的规则 IPv4前缀能够匹配, 则说明目的设备在该 BR所属的 某个 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的内容进行回传处 理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR接收到的所述 IPv6报文携带的目的 IPv4地址与 BR中任一 MAP域的所述第一 BMR中 的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带的所述 IPv4报文 的内容转发至 IPv4公网。 终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。 The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 6. The second BMR may further include a specific A regular IPv4 prefix and a second EA bit length, the second EA bit length being used to indicate a sum of an IPv4 suffix and a length of the PSID in an IPv6 prefix allocated to the CE. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the BR is the correct BMR, the first BMR, as shown in Figure 4. Therefore, the BR can be based on the first BMR and The source IPv6 address of the IPv6 packet from the CE obtains the public IPv4 address of the CE, and the IPv4 address of the public network updates the source IPv4 address carried in the IPv6 packet. Then, the BR can use the first BMR. The routing information corresponding to the destination IPv4 address carried in the IPv6 packet is matched, and the content of the IPv4 packet is forwarded according to the routing information. If the destination IPv4 address carried in the IPv6 packet received by the BR matches the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in a certain MAP to which the BR belongs. In the domain, the BR will use the IPv6 packet to perform the backhaul processing on the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the destination of the IPv6 packet received by the BR is carried The IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network. The terminal communicates with the destination device through the CE through the IPv6 network and through the BR. Since all the IPv4 packets initiated by the terminal are sent to the destination device through the CE and the BR, the star communication mode is implemented in the application scenario of the MAP technology. Improve BR's ability to manage user traffic.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备不 共享公网 IPv4地址的场景中,在 801之前,所述第一路由设备接收 DHCPV6 服务器下发的不完全正确的 BMR (即第二 BMR )和所述 DMR, 即服务器 没有下发完全正确的 BMR (即第一 BMR ) , 以使得所述第一路由设备无 法根据所述第二 BMR获得该第一路由设备的公网 IPv4前缀或地址。 可选 地, 所述第二 BMR 中还可以进一步包含特定的规则 IPv4 前缀(例如: 10.10.10.10 / · [规则 IPv4前缀的长度 }, 或全 0或全 1等)和第三 EA比特 位长度,所述第三 EA比特位长度用以指示分配给所述第一路由设备的 IPv6 前缀中的 IPv4后缀的长度, 所述 IPv4后缀为所述第一路由设备的 IPv4前 缀或地址中除去所述规则 IPv4前缀的相应长度之后的剩余部分。 其中, 所 述 DMR用于访问第二路由设备, 即所述 DMR中包含所述第二路由设备的 IPv6地址或其 IPv6前缀。 也就是说, 在 801之前, 所述第一路由设备无 法利用所述第二 BMR, 匹配出与所述目的 IPv4地址对应的路由信息。 相 应地,由于所述第一路由设备无法利用不完全正确的 BMR(即第二 BMR ), 匹配出与所述目的 IPv4地址对应的路由信息,所述第一路由设备利用 DMR, 将所述 IPv4报文封装或翻译成 IPv6报文发送给所述第二路由设备。另外, 由于所述第一路由设备也无法利用不完全正确的 BMR (即第二 BMR ) , 获得所述第一路由设备的公网 IPv4前缀或地址, 因此, 所述第一路由设备 发送的所述 IPv6报文携带的源 IPv4地址可以为使用所述特定的规则 IPv4 前缀的 IPv4地址。 Optionally, in an optional implementation manner of this embodiment, in a scenario where different first routing devices do not share a public network IPv4 address, before the 801, the first routing device receives an incomplete delivery by the DHCPV6 server. The correct BMR (ie, the second BMR) and the DMR, that is, the server does not deliver the completely correct BMR (ie, the first BMR), so that the first routing device cannot obtain the first route according to the second BMR. The public network IPv4 prefix or address of the device. Optionally, the second BMR may further include a specific rule IPv4 prefix (for example: 10.10.10.10 / · [the length of the rule IPv4 prefix], or all 0s or all 1s, etc.) and the third EA bit length The length of the third EA bit is used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the first routing device, and the IPv4 suffix is the IPv4 prefix or address of the first routing device. The remainder of the rule after the corresponding length of the IPv4 prefix. The DMR is used to access the second routing device, that is, the DMR includes the IPv6 address of the second routing device or its IPv6 prefix. That is, before 801, the first routing device cannot use the second BMR to match the routing information corresponding to the destination IPv4 address. Correspondingly, the first routing device uses the DMR, because the first routing device cannot use the incompletely correct BMR (ie, the second BMR) to match the routing information corresponding to the destination IPv4 address. The IPv4 packet is encapsulated or translated into an IPv6 packet and sent to the second routing device. In addition, since the first routing device cannot obtain the public network IPv4 prefix or address of the first routing device by using the BMR (ie, the second BMR), the first routing device sends the The source IPv4 address carried in the IPv6 packet may be an IPv4 address using the specific rule IPv4 prefix.
其中, 所述第一路由设备的 IPv6前缀是由运营商分配给所述第一路由 设备,例如: DHCPv6服务器通过 DHCPv6中的前缀委派( DHCPv6 Prefix Delegation , DHCPv6-PD )方式给所述第一路由设备委派 IPv6前缀, 或者 无状态地址自动配置( Stateless Address Auto-Configuration , SLAAC )服 务器通过 SLAAC方式给所述第一路由设备指配 IPv6前缀。  The IPv6 prefix of the first routing device is allocated by the operator to the first routing device, for example, the DHCPv6 server sends the first route to the DHCPv6 Prefix Delegation (DHCPv6-PD) in DHCPv6. The device assigns an IPv6 prefix, or the Stateless Address Auto-Configuration (SLAAC) server assigns the IPv6 prefix to the first routing device by using the SLAAC method.
以第一路由设备为位于用户网络边界的 CE,第二路由设备为位于 IPv6 网络与 IPv4网络之间的 BR为例。 DHCPV6服务器在下发给 CE的参数中, 下发用于访问 BR的 DMR, 以及不完全正确的 BMR即第二 BMR, 如图 7 所示, 其中, 所述第二 BMR中还可以进一步包含特定的规则 IPv4前缀和 第三 EA比特位长度, 所述第三 EA比特位长度用以指示分配给所述 CE的 IPv6前缀中的 IPv4后缀的长度。 CE利用 DMR, 将接收到的 IPv4报文封 装或翻译成 IPv6报文发送给 BR。由于 BR中保留了完全正确的 BMR即第 一 BMR,如图 5所示。因此, BR可以根据所述第一 BMR和来自 CE的 IPv6 报文的源 IPv6地址, 获得所述 CE的公网 IPv4地址。 然后, BR则可以利 用获得的所述 CE的公网 IPv4地址更新所述 IPv6报文携带的源 IPv4地址; 然后, BR可以利用所述第一 BMR, 匹配出与所述 IPv6报文携带的所述目 的 IPv4地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内 容。若 BR接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中某个 MAP域的所述第一 BMR中的规则 IPv4前缀能够匹配,则说明目的设备在 该该 BR所属的某个 MAP域内, BR将使用 IPv6报文对所述 IPv4报文的 内容进行回传处理, 即所述 IPv4报文的内容通过 BR发向另一 CE; 若 BR 接收到的所述 IPv6报文携带的所述目的 IPv4地址与 BR中任一 MAP域的 所述第一 BMR中的规则 IPv4前缀不能匹配, BR则将所述 IPv6报文携带 的所述 IPv4报文的内容转发至 IPv4公网。  The first routing device is a CE located at the boundary of the user network, and the second routing device is a BR located between the IPv6 network and the IPv4 network. The DHCPv6 server delivers the DMR for accessing the BR and the BMR that is not completely correct, that is, the second BMR, as shown in FIG. 7. The second BMR may further include a specific A regular IPv4 prefix and a third EA bit length, the third EA bit length being used to indicate the length of the IPv4 suffix in the IPv6 prefix allocated to the CE. The CE uses the DMR to encapsulate or translate the received IPv4 packets into IPv6 packets and send them to the BR. Since the BR is the correct BMR, the first BMR, as shown in Figure 5. Therefore, the BR can obtain the public network IPv4 address of the CE according to the source IPv6 address of the first BMR and the IPv6 packet from the CE. Then, the BR can use the obtained public network IPv4 address of the CE to update the source IPv4 address carried by the IPv6 packet. Then, the BR can use the first BMR to match the location carried by the IPv6 packet. And the routing information corresponding to the destination IPv4 address, and forwarding the content of the IPv4 packet according to the routing information. If the destination IPv4 address carried in the IPv6 packet that the BR receives is matched with the rule IPv4 prefix in the first BMR of a MAP domain in the BR, the destination device is in the certain one to which the BR belongs. In the MAP domain, the BR will use the IPv6 packet to forward the content of the IPv4 packet, that is, the content of the IPv4 packet is sent to another CE through the BR; if the IPv6 packet received by the BR is carried The destination IPv4 address does not match the rule IPv4 prefix in the first BMR of any MAP domain in the BR, and the BR forwards the content of the IPv4 packet carried in the IPv6 packet to the IPv4 public network.
终端通过 CE经由 IPv6网络并通过 BR与目的设备进行通信, 由于终 端发起的所有 IPv4报文均需经过 CE和 BR发送到目的设备, 因此在 MAP 技术的应用场景下实现了星形通信模式,可以提高 BR对用户通信流量的管 理能力。 The terminal communicates with the destination device through the IPv6 network through the CE and through the BR. All the IPv4 packets sent by the terminal must be sent to the destination device through the CE and the BR. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the BR to the user communication traffic.
需要说明的是: 对于前述的各方法实施例, 为了简单描述, 故将其都 表述为一系列的动作组合, 但是本领域技术人员应该知悉, 本申请并不受 所描述的动作顺序的限制, 因为依据本申请, 某些步骤可以釆用其他顺序 或者同时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实 施例均属于优选实施例, 所涉及的动作和模块并不一定是本申请所必须的。 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没 有详述的部分, 可以参见其他实施例的相关描述。 图 9为本申请另一实施例提供的路由设备的结构示意图,如图 9所示, 本实施例的路由设备可以包括第一接收器 91、 处理器 92和发送器 93。 其 中, 第一接收器 91用于接收 IPv4报文, 所述 IPv4报文中包含目的 IPv4 地址; 处理器 92用于利用第二路由设备的 IPv6地址或前缀, 将所述 IPv4 报文封装或翻译成 IPv6报文; 发送器 93用于向所述第二路由设备发送所 述 IPv6报文,以使得所述第二路由设备根据第一 BMR和所述 IPv6报文的 源 I Pv6地址,更新所述 I Pv6报文携带的源 I Pv4地址,以及利用第一 BM R , 匹配出与所述目的 IPv4地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。  It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. In the above embodiments, the descriptions of the various embodiments are different, and the details are not described in detail in an embodiment, and the related descriptions of other embodiments can be referred to. FIG. 9 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. As shown in FIG. 9, the routing device in this embodiment may include a first receiver 91, a processor 92, and a transmitter 93. The first receiver 91 is configured to receive an IPv4 packet, where the IPv4 packet includes a destination IPv4 address, and the processor 92 is configured to encapsulate or translate the IPv4 packet by using an IPv6 address or a prefix of the second routing device. The IPv6 packet is sent to the second routing device, so that the second routing device updates the location according to the source address and the source IP address of the first BMR and the IPv6 packet. The source I Pv4 address carried in the I Pv6 message, and the routing information corresponding to the destination IPv4 address is matched by using the first BM R, and the content of the IPv4 packet is forwarded according to the routing information.
可以理解的是,所述第一接收器 91位于所述路由设备的用户侧局域网 ( Local Area Network, LAN )接口。  It can be understood that the first receiver 91 is located at a user side local area network (LAN) interface of the routing device.
可选地, 在本实施例的一个可选实施方式中, 在不同第一路由设备不 共享公网 IPv4地址的场景中, 如图 10所示, 本实施例提供的所述路由设 备还可以进一步包括第二接收器 1001 ,用于接收 DHCPv6服务器只下发的 所述 DMR。 可以理解的是, 所述第二接收器 1001位于所述路由设备的用 户侧广域网 (Wide Area Network, WAN )接口。 详细描述可以参见图 1 对应的实施例中的相关内容, 此处不再赘述。 可选地, 在本实施例的一个可选实施方式中, 如图 1 1所示, 本实施例 提供的所述路由设备还可以进一步包括第三接收器 1 101 , 还包括第三接收 器, 用于接收 DHCPV6服务器下发的所述第一路由设备的 PSID和所述第 二路由设备的 IPv6地址或前缀。 详细描述可以参见图 1对应的实施例中的 相关内容, 此处不再赘述。 Optionally, in an optional implementation manner of this embodiment, in a scenario where different first routing devices do not share a public network IPv4 address, as shown in FIG. 10, the routing device provided in this embodiment may further The second receiver 1001 is configured to receive the DMR that is only sent by the DHCPv6 server. It can be understood that the second receiver 1001 is located on a user side Wide Area Network (WAN) interface of the routing device. For details, refer to related content in the corresponding embodiment of FIG. 1 , and details are not described herein again. Optionally, in an optional implementation manner of this embodiment, as shown in FIG. 11 , the routing device provided in this embodiment may further include a third receiver 1 101, and further includes a third receiving. And receiving the PSID of the first routing device and the IPv6 address or prefix of the second routing device delivered by the DHCPV6 server. For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again.
可选地, 在本实施例的一个可选实施方式中, 如图 12所示, 本实施例 提供的所述路由设备还可以进一步包括第四接收器 1201 , 用于接收 DHCPV6服务器下发的第二 BMR和所述 DMR; 所述处理器无法利用所述 第二 BMR匹配出与所述目的 IPv4地址对应的路由信息。 可以理解的是, 所述第四接收器 1201位于所述路由设备的用户侧 WAN接口。 详细描述可 以参见图 1对应的实施例中的相关内容, 此处不再赘述。 例如: 在不同第一路由设备共享公网 IPv4地址的场景中, 第四接收器 1201接收的第二 BMR中可以包含第一 EA比特位长度,所述第一 EA比特 位长度用以指示分配给所述路由设备的 IPv6前缀中 PSID的长度。 详细描 述可以参见图 1对应的实施例中的相关内容, 此处不再赘述。 再例如: 在不同第一路由设备共享公网 IPv4地址的场景中, 第四接收 器 1201接收的第二 BMR中可以包含特定的规则 IPv4前缀和第二 EA比特 位长度, 所述第二 EA比特位长度用以指示分配给所述路由设备的 IPv6前 缀中的 IPv4后缀与 PSID的长度之和, 所述 IPv4后缀为所述路由设备的 IPv4地址中除去所述规则 IPv4前缀的相应长度之后的剩余部分。详细描述 可以参见图 1对应的实施例中的相关内容, 此处不再赘述。 再例如: 在不同第一路由设备不共享公网 IPv4地址的场景中, 第四接 收器 1201接收的第二 BMR中可以包含特定的规则 IPv4前缀和第三 EA比 特位长度, 所述第三 EA比特位长度用以指示分配给所述路由设备的 IPv6 前缀中的 IPv4后缀的长度, 所述 IPv4后缀为所述路由设备的 IPv4地址或 前缀中除去所述规则 IPv4前缀的相应长度之后的剩余部分。 详细描述可以 参见图 1对应的实施例中的相关内容, 此处不再赘述。 本实施例中, 终端通过路由设备经由 IPv6网络并通过第二路由设备与 目的设备进行通信, 由于终端发起的所有 IPv4报文均需经过所述路由设备 和所述第二路由设备发送到目的设备, 因此在 MAP技术的应用场景下实现 了星形通信模式, 可以提高第二路由设备即网络侧设备对用户通信流量的 管理能力。 Optionally, in an optional implementation manner of this embodiment, as shown in FIG. 12, the routing device provided in this embodiment may further include a fourth receiver 1201, configured to receive a number delivered by a DHCPV6 server. The second BMR and the DMR; the processor cannot use the second BMR to match the routing information corresponding to the destination IPv4 address. It can be understood that the fourth receiver 1201 is located at the user side WAN interface of the routing device. For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again. For example, in a scenario in which the first routing device shares the public network IPv4 address, the second BMR received by the fourth receiver 1201 may include a first EA bit length, where the first EA bit length is used to indicate the allocation. The length of the PSID in the IPv6 prefix of the routing device. For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again. For example, in a scenario in which the first routing device shares the public network IPv4 address, the second BMR received by the fourth receiver 1201 may include a specific rule IPv4 prefix and a second EA bit length, where the second EA bit is included. The bit length is used to indicate the sum of the IPv4 suffix and the length of the PSID in the IPv6 prefix allocated to the routing device, where the IPv4 suffix is the remaining length of the IPv4 address of the routing device excluding the rule IPv4 prefix. section. For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again. For example, in a scenario in which the first routing device does not share the public network IPv4 address, the second BMR received by the fourth receiver 1201 may include a specific rule IPv4 prefix and a third EA bit length, and the third EA. The bit length is used to indicate the length of the IPv4 suffix in the IPv6 prefix assigned to the routing device, and the IPv4 suffix is the remainder of the IPv4 address or prefix of the routing device excluding the corresponding length of the rule IPv4 prefix. . For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again. In this embodiment, the terminal communicates with the destination device through the IPv6 network and through the second routing device, and all the IPv4 packets initiated by the terminal are sent to the destination device through the routing device and the second routing device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the communication traffic of the second routing device, that is, the network side device to the user. Management ability.
图 13为本申请另一实施例提供的路由设备的结构示意图, 如图 13所 示,本实施例的路由设备可以包括接收器 1301、处理器 1302和发送器 1303。 其中,接收器 1301用于接收第一路由设备发送的 IPv6报文, 所述 IPv6报 文为所述第一路由设备接收 IPv4报文之后, 利用所述路由设备的 IPv6地 址或前缀, 将所述 IPv4报文封装或翻译成的, 所述 IPv4报文中包含目的 IPv4地址;处理器 1302用于根据第一 BMR和所述 IPv6报文的源 IPv6地 址, 更新所述 IPv6报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出 与所述目的 IPv4地址对应的路由信息; 发送器 1303用于根据所述路由信 息, 转发所述 IPv44艮文的内容。 详细描述可以参见图 8对应的实施例中的 相关内容, 此处不再赘述。 本实施例中, 终端通过第一路由设备经由 IPv6网络并通过路由设备与 目的设备进行通信, 由于终端发起的所有 IPv4报文均需经过所述第一路由 设备和所述路由设备发送到目的设备, 因此在 MAP技术的应用场景下实现 了星形通信模式, 可以提高路由设备即网络侧设备对用户通信流量的管理 能力。  FIG. 13 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. As shown in FIG. 13, the routing device in this embodiment may include a receiver 1301, a processor 1302, and a transmitter 1303. The receiver 1301 is configured to receive an IPv6 packet sent by the first routing device, where the IPv6 packet is the IPv6 address or prefix of the routing device after the first routing device receives the IPv4 packet, The IPv4 packet is encapsulated or translated, and the IPv4 packet includes the destination IPv4 address. The processor 1302 is configured to update the source IPv4 carried by the IPv6 packet according to the source IPv6 address of the first BMR and the IPv6 packet. Addressing, and using the first BMR, matching the routing information corresponding to the destination IPv4 address; the sender 1303 is configured to forward the content of the IPv44 message according to the routing information. For details, refer to related content in the embodiment corresponding to FIG. 8, and details are not described herein again. In this embodiment, the terminal communicates with the destination device through the IPv6 network and through the routing device, and all the IPv4 packets initiated by the terminal are sent to the destination device through the first routing device and the routing device. Therefore, the star communication mode is implemented in the application scenario of the MAP technology, which can improve the management capability of the routing device, that is, the network side device, to the user communication traffic.
本申请实施例还提供了, 提供一种报文处理系统, 包括图 9〜图 12对 应的实施例中任一实施例提供的路由设备和图 13对应的实施例提供的路由 设备。 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述 描述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的 对应过程, 在此不再赘述。  The embodiment of the present application further provides a packet processing system, including the routing device provided in any one of the embodiments in FIG. 9 to FIG. 12 and the routing device provided in the embodiment corresponding to FIG. A person skilled in the art can clearly understand that the specific working process of the system, the device and the unit described above can be referred to the corresponding process in the foregoing method embodiments for the convenience and brevity of the description, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是 示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现 时可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到 另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的 相互之间的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元 的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本实施例方案的目的。 In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form. The components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外, 在本申请各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用硬 件加软件功能单元的形式实现。  In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional unit.
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算 机可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若 干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络 设备等)或处理器(processor )执行本申请各个实施例所述方法的全部或 部分步骤。而前述的存储介质包括: U盘、移动硬盘、只读存储器( Read-Only Memory, 简称 R0M )、 随机存取存储器( Random Access Memory, 简称 RAM ), 磁碟或者光盘等各种可以存储程序代码的介质。  The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute the method of the various embodiments of the present application. All or part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or an optical disk, and the like, which can store program codes. Medium.
最后应说明的是: 以上实施例仅用以说明本申请的技术方案, 而非对 其限制; 尽管参照前述实施例对本申请进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本申请各实施例技术方案的思想和范围。  Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is 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 substituted; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

权利要求 Rights request
1、 一种报文处理方法, 其特征在于, 包括: A packet processing method, comprising:
第一路由设备接收互联网协议版本 4IPv4报文, 所述 IPv4报文中包含 目的 IPv4地址; 所述第一路由设备利用第二路由设备的互联网协议版本 6IPv6地址或 前缀,将所述 IPv4报文封装或翻译成 IPv6报文发送给所述第二路由设备, 以使得所述第二路由设备根据第一基本映射规则 BMR和所述 IPv6报文的 源 I Pv6地址,更新所述 I Pv6报文携带的源 I Pv4地址,以及利用第一 BM R , 匹配出与所述目的 IPv4地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文的内容。  The first routing device receives the Internet Protocol version 4 IPv4 packet, and the IPv4 packet includes the destination IPv4 address. The first routing device encapsulates the IPv4 packet by using the Internet Protocol version 6 IPv6 address or prefix of the second routing device. Translating the IPv6 packet to the second routing device, so that the second routing device updates the I Pv6 packet carrying according to the first basic mapping rule BMR and the source I Pv6 address of the IPv6 packet. The source I Pv4 address, and the routing information corresponding to the destination IPv4 address is matched by using the first BM R, and the content of the IPv4 packet is forwarded according to the routing information.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一路由设备利用 第二路由设备的互联网协议版本 6IPv6地址或前缀, 将所述 IPv4报文封装 或翻译成 IPv6报文发送给所述第二路由设备之前, 还包括:  The method according to claim 1, wherein the first routing device encapsulates or translates the IPv4 packet into an IPv6 packet by using an Internet Protocol version 6 IPv6 address or a prefix of the second routing device. Before the second routing device, the method further includes:
所述第一路由设备接收支持 IPv6的动态主机配置协议 DHCPV6服务器 只下发的所述第二路由设备的 IPv6地址或前缀。  The first routing device receives the IPv6 address or prefix of the second routing device that is only delivered by the DHCP6 server.
3、 根据权利要求 1所述的方法, 其特征在于, 所述第一路由设备利用 第二路由设备的互联网协议版本 6IPv6地址或前缀, 将所述 IPv4报文封装 或翻译成 IPv6报文发送给所述第二路由设备之前, 还包括:  The method according to claim 1, wherein the first routing device encapsulates or translates the IPv4 packet into an IPv6 packet by using an Internet Protocol version 6 IPv6 address or a prefix of the second routing device. Before the second routing device, the method further includes:
所述第一路由设备接收 DHCPV6服务器下发的所述第一路由设备的端 口集标识 PSID和所述第二路由设备的 IPv6地址或前缀。  The first routing device receives the port set identifier PSID of the first routing device and the IPv6 address or prefix of the second routing device delivered by the DHCPV6 server.
4、 根据权利要求 1所述的方法, 其特征在于, 所述第一路由设备利用 第二路由设备的互联网协议版本 6IPv6地址或前缀, 将所述 IPv4报文封装 或翻译成 IPv6报文发送给所述第二路由设备之前, 还包括: 所述第一路由 设备接收 DHCPV6服务器下发的第二 BMR和所述第二路由设备的 IPv6地 址或前缀; 所述第一路由设备接收 IPv4报文之后, 所述第一路由设备利用 第二路由设备的 IPv6地址或前缀, 将所述 IPv4报文封装或翻译成 IPv6报 文发送给所述第二路由设备之前, 还包括:  The method according to claim 1, wherein the first routing device encapsulates or translates the IPv4 packet into an IPv6 packet by using an Internet Protocol version 6 IPv6 address or a prefix of the second routing device. Before the second routing device, the method further includes: the first routing device receiving the second BMR delivered by the DHCPV6 server and the IPv6 address or prefix of the second routing device; after the first routing device receives the IPv4 packet, And before the first routing device uses the IPv6 address or the prefix of the second routing device to encapsulate or translate the IPv4 packet into an IPv6 packet and send the message to the second routing device, the first routing device further includes:
所述第一路由设备无法利用所述第二 BMR匹配出与所述目的 IPv4地 址对应的路由信息。 The first routing device cannot use the second BMR to match the destination IPv4 The routing information corresponding to the address.
5、 根据权利要求 4所述的方法, 其特征在于, 所述第二 BMR中包含 第一嵌入地址 EA比特位长度,所述第一 EA比特位长度用以指示分配给所 述第一路由设备的 IPv6前缀中 PSID的长度。 The method according to claim 4, wherein the second BMR includes a first embedded address EA bit length, and the first EA bit length is used to indicate that the first routing device is allocated to the first routing device. The length of the PSID in the IPv6 prefix.
6、 根据权利要求 4所述的方法, 其特征在于, 所述第二 BMR中包含 特定的规则 IPv4前缀和第二 EA比特位长度, 所述第二 EA比特位长度用 以指示分配给所述第一路由设备的 IPv6前缀中的 IPv4后缀与 PSID的长度 之和,所述 IPv4后缀为所述第一路由设备的 IPv4地址中除去所述规则 IPv4 前缀的相应长度之后的剩余部分。 The method according to claim 4, wherein the second BMR includes a specific regular IPv4 prefix and a second EA bit length, and the second EA bit length is used to indicate the allocation to the The sum of the IPv4 suffix in the IPv6 prefix of the first routing device and the length of the PSID, the IPv4 suffix being the remainder of the IPv4 address of the first routing device after removing the corresponding length of the regular IPv4 prefix.
7、 根据权利要求 4所述的方法, 其特征在于, 所述第二 BMR中包含 特定的规则 IPv4前缀和第三 EA比特位长度, 所述第三 EA比特位长度用 以指示分配给所述第一路由设备的 IPv6前缀中的 IPv4后缀的长度, 所述 IPv4后缀为所述第一路由设备的 IPv4前缀或地址中除去所述规则 IPv4前 缀的相应长度之后的剩余部分。 The method according to claim 4, wherein the second BMR includes a specific regular IPv4 prefix and a third EA bit length, and the third EA bit length is used to indicate that the The length of the IPv4 suffix in the IPv6 prefix of the first routing device, where the IPv4 suffix is the remaining portion of the IPv4 prefix or address of the first routing device after the corresponding length of the regular IPv4 prefix is removed.
8、 一种报文处理方法, 其特征在于, 包括:  8. A message processing method, characterized in that:
第二路由设备接收第一路由设备发送的互联网协议版本 6IPv6报文, 所述 IPv6报文为所述第一路由设备接收互联网协议版本 4IPv4报文之后, 利用所述第二路由设备的 IPv6地址或前缀, 将所述 IPv4报文封装或翻译 成的, 所述 IPv4报文中包含目的 IPv4地址;  The second routing device receives the Internet Protocol version 6 IPv6 packet sent by the first routing device, where the IPv6 packet is the IPv6 address of the second routing device after the first routing device receives the Internet Protocol version 4 IPv4 packet or a prefix, the IPv4 packet is encapsulated or translated, and the IPv4 packet includes a destination IPv4 address;
所述第二路由设备根据第一基本映射规则 BMR和所述 IPv6报文的源 IPv6地址, 更新所述 IPv6报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出与所述目的 IPv4地址对应的路由信息;  The second routing device updates the source IPv4 address carried in the IPv6 packet according to the first basic mapping rule BMR and the source IPv6 address of the IPv6 packet, and uses the first BMR to match the destination IPv4 address. Corresponding routing information;
所述第二路由设备根据所述路由信息, 转发所述 IPv4报文的内容。  The second routing device forwards the content of the IPv4 packet according to the routing information.
9、 一种路由设备, 其特征在于, 包括: 第一接收器, 用于接收互联网协议版本 4IPv4报文, 所述 IPv4报文中 包含目的 IPv4地址; 处理器,用于利用第二路由设备的互联网协议版本 6IPv6地址或前缀, 将所述 IPv4报文封装或翻译成 IPv6报文; 发送器, 用于向所述第二路由设备发送所述 IPv6报文, 以使得所述第 二路由设备根据第一基本映射规则 BMR和所述 IPv6报文的源 IPv6地址, 更新所述 IPv6报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配出与所 述目的 IPv4地址对应的路由信息, 根据所述路由信息转发所述 IPv4报文 的内容。 A routing device, comprising: a first receiver, configured to receive an Internet Protocol version 4 IPv4 message, where the IPv4 message includes a destination IPv4 address; and a processor, configured to use the second routing device The IPv6 packet is encapsulated or translated into an IPv6 packet by using an Internet Protocol version 6 IPv6 address or a prefix; a transmitter, configured to send the IPv6 packet to the second routing device, so that the second routing device updates the IPv6 packet according to the first basic mapping rule BMR and the source IPv6 address of the IPv6 packet The source IPv4 address carried in the file, and the routing information corresponding to the destination IPv4 address is matched by using the first BMR, and the content of the IPv4 packet is forwarded according to the routing information.
10、 根据权利要求 9所述的路由设备, 其特征在于, 所述路由设备还 包括第二接收器,用于接收支持 IPv6的动态主机配置协议 DHCPV6服务器 只下发的所述第二路由设备的 IPv6地址或前缀。  The routing device according to claim 9, wherein the routing device further includes a second receiver, configured to receive the IPv6-enabled dynamic host configuration protocol, and the second routing device that is only delivered by the DHCPV6 server IPv6 address or prefix.
1 1、 根据权利要求 9所述的路由设备, 其特征在于, 所述路由设备还 包括第三接收器, 用于接收 DHCPV6服务器下发的所述第一路由设备的端 口集标识 PSID和所述第二路由设备的 IPv6地址或前缀。  The routing device according to claim 9, wherein the routing device further includes a third receiver, configured to receive a port set identifier PSID of the first routing device delivered by a DHCPV6 server, and the The IPv6 address or prefix of the second routing device.
12、 根据权利要求 9所述的路由设备, 其特征在于, 所述路由设备还 包括第四接收器, 用于接收 DHCPV6服务器下发的第二 BMR和所述第二 路由设备的 IPv6地址或前缀; 所述处理器无法利用所述第二 BMR匹配出 与所述目的 IPv4地址对应的路由信息。  The routing device according to claim 9, wherein the routing device further includes a fourth receiver, configured to receive an IPv6 address or a prefix of the second BMR and the second routing device delivered by the DHCPV6 server. The processor cannot use the second BMR to match the routing information corresponding to the destination IPv4 address.
13、 根据权利要求 12所述的路由设备, 其特征在于, 所述第四接收器 接收的第二 BMR中包含第一嵌入地址 EA比特位长度, 所述第一 EA比特 位长度用以指示分配给所述路由设备的 IPv6前缀中 PSID的长度。  The routing device according to claim 12, wherein the second BMR received by the fourth receiver includes a first embedded address EA bit length, and the first EA bit length is used to indicate allocation. The length of the PSID in the IPv6 prefix given to the routing device.
14、 根据权利要求 12所述的路由设备, 其特征在于, 所述第四接收器 接收的第二 BMR中包含特定的规则 IPv4前缀和第二 EA比特位长度, 所 述第二 EA比特位长度用以指示分配给所述路由设备的 IPv6前缀中的 IPv4 后缀与 PSID的长度之和,所述 IPv4后缀为所述路由设备的 IPv4地址中除 去所述规则 IPv4前缀的相应长度之后的剩余部分。  The routing device according to claim 12, wherein the second BMR received by the fourth receiver includes a specific rule IPv4 prefix and a second EA bit length, and the second EA bit length And indicating a sum of an IPv4 suffix in the IPv6 prefix allocated to the routing device and a length of the PSID, where the IPv4 suffix is the remaining portion of the IPv4 address of the routing device after removing the corresponding length of the rule IPv4 prefix.
15、 根据权利要求 12所述的路由设备, 其特征在于, 所述第四接收器 接收的第二 BMR中包含特定的规则 IPv4前缀和第三 EA比特位长度, 所 述第三 EA比特位长度用以指示分配给所述路由设备的 IPv6前缀中的 IPv4 后缀的长度, 所述 IPv4后缀为所述路由设备的 IPv4地址或前缀中除去所 述规则 IPv4前缀的相应长度之后的剩余部分。  The routing device according to claim 12, wherein the second BMR received by the fourth receiver includes a specific regular IPv4 prefix and a third EA bit length, and the third EA bit length And indicating the length of the IPv4 suffix in the IPv6 prefix allocated to the routing device, where the IPv4 suffix is the remaining portion of the IPv4 address or prefix of the routing device after removing the corresponding length of the rule IPv4 prefix.
16、 一种路由设备, 其特征在于, 包括: 接收器, 用于接收第一路由设备发送的互联网协议版本 6IPv6报文, 所述 IPv6报文为所述第一路由设备接收互联网协议版本 4IPv4报文之后, 利用所述路由设备的 IPv6地址或所述路由设备的 IPv6前缀, 将所述 IPv4 报文封装或翻译成的, 所述 IPv4报文中包含目的 IPv4地址; 16. A routing device, comprising: a receiver, configured to receive an Internet Protocol version 6 IPv6 packet sent by the first routing device, where the IPv6 packet is an IPv6 address or location of the routing device after the first routing device receives the Internet Protocol version 4 IPv4 packet Encapsulating or translating the IPv4 packet into an IPv6 prefix, where the IPv4 packet includes a destination IPv4 address;
处理器, 用于根据第一基本映射规则 BMR和所述 IPv6报文的源 IPv6 地址, 更新所述 IPv6报文携带的源 IPv4地址, 以及利用第一 BMR, 匹配 出与所述目的 IPv4地址对应的路由信息; 发送器, 用于根据所述路由信息, 转发所述 IPv4报文的内容。  a processor, configured to update a source IPv4 address carried in the IPv6 packet according to a first basic mapping rule BMR and a source IPv6 address of the IPv6 packet, and use the first BMR to match the destination IPv4 address The routing information is used by the sender to forward the content of the IPv4 packet according to the routing information.
17、 一种报文处理系统, 其特征在于, 包括如权利要求 9~15任一权利 要求所述的路由设备和如权利要求 16所述的路由设备。  A message processing system, comprising: the routing device according to any one of claims 9 to 15 and the routing device according to claim 16.
PCT/CN2013/076058 2012-06-05 2013-05-22 Message processing method and system and routing device WO2013181991A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210183101.8A CN103457856B (en) 2012-06-05 2012-06-05 Message processing method, system and routing device
CN201210183101.8 2012-06-05

Publications (1)

Publication Number Publication Date
WO2013181991A1 true WO2013181991A1 (en) 2013-12-12

Family

ID=49711350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076058 WO2013181991A1 (en) 2012-06-05 2013-05-22 Message processing method and system and routing device

Country Status (2)

Country Link
CN (2) CN108322400B (en)
WO (1) WO2013181991A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783974B (en) * 2021-09-09 2023-06-13 烽火通信科技股份有限公司 Method and device for dynamically issuing MAP domain rule

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798093A (en) * 2004-12-29 2006-07-05 中兴通讯股份有限公司 Method for building virtual channel by interpreting address passing through IPv6 network
US20060227792A1 (en) * 2005-04-07 2006-10-12 Patrick Wetterwald Access network clusterhead for providing local mobility management of a roaming IPv4 node
CN1965515A (en) * 2004-06-25 2007-05-16 思科技术公司 Arrangement for reaching IPv4 public network nodes by a node in an IPv4 private network via an IPv6 access network

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009018658A1 (en) * 2007-08-03 2009-02-12 Hexago Device, system and method for automatic ipv4 provisioning in a local area network connected to an ipv6 network
CN101222495A (en) * 2008-01-24 2008-07-16 中兴通讯股份有限公司 Method and router for IPv4 network host access to IPv6 network host
CN101227408A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 Method for IPv4 internal private network to visit IPv6 network and router thereof
EP2297928B1 (en) * 2008-06-30 2012-05-09 France Telecom Method for receiving a data packet in an ipv6 domain, and associated device and residential gateway
GB2478470B8 (en) * 2008-11-17 2014-05-21 Sierra Wireless Inc Method and apparatus for network port and netword address translation
CN101431478B (en) * 2008-12-17 2011-05-11 清华大学 P2P operator level router and home gateway combined IPv4/IPv6 grouping conversion method
CN102088391B (en) * 2009-12-07 2013-09-11 华为技术有限公司 Processing method, equipment and system for Internet protocol version 6 (IPv6) message
CN102209121A (en) * 2010-03-29 2011-10-05 杭州华三通信技术有限公司 Method and device for intercommunication between Internet protocol version 6 (IPv6) network and Internet protocol version 4 (IPv4) network
CN102447617A (en) * 2010-10-09 2012-05-09 华为技术有限公司 Method, terminals and gateway for transmitting IPv6 (Internet Protocol version 6) message in IPv4 network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1965515A (en) * 2004-06-25 2007-05-16 思科技术公司 Arrangement for reaching IPv4 public network nodes by a node in an IPv4 private network via an IPv6 access network
CN1798093A (en) * 2004-12-29 2006-07-05 中兴通讯股份有限公司 Method for building virtual channel by interpreting address passing through IPv6 network
US20060227792A1 (en) * 2005-04-07 2006-10-12 Patrick Wetterwald Access network clusterhead for providing local mobility management of a roaming IPv4 node

Also Published As

Publication number Publication date
CN108322400B (en) 2021-06-08
CN103457856A (en) 2013-12-18
CN108322400A (en) 2018-07-24
CN103457856B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN102577255B (en) Layer 2 seamless site extension of enterprises in cloud computing
KR101455219B1 (en) Method, apparatus and system for forwarding packet
JP4801153B2 (en) Access device, routing device and method for supporting IPv6 stateless address configuration in communication network
CN106209643B (en) Message forwarding method and device
WO2016210196A1 (en) Media relay server
WO2016210193A1 (en) Media session
EP4027688A1 (en) Communication method, apparatus, device and system, and medium
US20120317637A1 (en) Communication between private network and public network
WO2011032472A1 (en) Virtual private network implemaentation method and system
JP2004357292A (en) System for converting data transferred on ip switched network from ipv4 base into ipv6 base
WO2012013133A1 (en) Method and device for network communications
EP1861967A2 (en) Vpn services using address translation over an ipv6 network
WO2016210202A1 (en) Media relay server
WO2012106935A1 (en) Data communication network configuration method, gateway element and data communication system
WO2005112350A1 (en) A METHOD FOR MANAGING THE ROUTE IN THE VIRTUAL PRIVATE NETWORK BASED ON IPv6
WO2015085788A1 (en) Method and apparatus for processing dynamic host configuration protocol message
WO2017166936A1 (en) Method and device for implementing address management, and aaa server and sdn controller
WO2008014723A1 (en) Method and device for implementing vpn based on ipv6 address structure
US20140032782A1 (en) Method and apparatus for route selection of host in multihoming site
KR101901341B1 (en) Method and apparatus for supporting mobility of user equipment
WO2014114058A1 (en) Data message forwarding method, customer premises equipment and system
WO2014056412A1 (en) Message sending method, routing bridge and system
WO2012041168A1 (en) Processing method for network connection for ipv6 network and device thereof
WO2011140954A1 (en) Method and device for obtaining remote ip address
WO2014079208A1 (en) Communication method, device and system for trill network

Legal Events

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

Ref document number: 13800761

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

Country of ref document: EP

Kind code of ref document: A1