WO2017000674A1 - 4in6 tunnel mode selection method and apparatus - Google Patents

4in6 tunnel mode selection method and apparatus Download PDF

Info

Publication number
WO2017000674A1
WO2017000674A1 PCT/CN2016/081601 CN2016081601W WO2017000674A1 WO 2017000674 A1 WO2017000674 A1 WO 2017000674A1 CN 2016081601 W CN2016081601 W CN 2016081601W WO 2017000674 A1 WO2017000674 A1 WO 2017000674A1
Authority
WO
WIPO (PCT)
Prior art keywords
cpe
dhcpv6
server
tunnel
message
Prior art date
Application number
PCT/CN2016/081601
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 WO2017000674A1 publication Critical patent/WO2017000674A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • the present application relates to, but is not limited to, the field of communications, and in particular, to a 4in6 tunnel mode selection method and apparatus.
  • IETF The Internet Engineering Task Force
  • 4in6 scenarios such as DS-lite (Dual-Stack Lite), lightweight 4over6 Tunnel (Lightweight 4over6), MAP-T (Mapping Address and Port-T (based on translation technology), MAP-E (Mapping Address and Port-E, packet-based encapsulation), etc.
  • Different operators may adopt different 4in6 tunnel modes. Different operators may adopt different 4in6 tunnel modes in different network deployment areas, and separately customize transition technologies supporting specific 4in6 tunnel modes for different operators or different regions. Customer Premise Equipment (CPE) is obviously not suitable.
  • CPE Customer Premise Equipment
  • the CPE can generally support multiple 4in6 tunnel transition technologies.
  • the operator also needs to select a 4in6 tunnel mode according to its own network environment through default configuration, remote configuration, or user configuration. This processing method needs to be pre-configured, and there is also a risk of error.
  • the present application provides a 4in6 tunnel mode selection method and apparatus to solve at least the problem that the 4in6 tunnel mode cannot be rapidly deployed in the related art.
  • a 4in6 tunnel mode selection method including: a user terminal device CPE sends a DHCPv6 request message for DHCP (Dynamic Host Configuration Protocol) of IPv6 to a server; the CPE And receiving, by the server, a response message for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the CPE selects a 4in6 tunnel mode according to the response message.
  • DHCPv6 request message for DHCP (Dynamic Host Configuration Protocol) of IPv6 to a server
  • the CPE And receiving, by the server, a response message for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the CPE selects a 4in6 tunnel mode according to the response message.
  • the method further includes: the CPE sending a DHCPv6 acknowledgment message to the server, where the DHCPv6 acknowledgment message Set to confirm to the server the IPv6 address and the specified 4in6 configuration parameter.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • another 4in6 tunnel mode selection method comprising: a server receiving a dynamic host configuration protocol DHCPv6 request message for IPv6 from a user terminal device CPE; the server sending a target to the CPE The response message of the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the response message is a basis for the CPE to select a 4in6 tunnel mode.
  • the method further includes: the server receiving a DHCPv6 acknowledgement message from the CPE, wherein the DHCPv6 acknowledgement The message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • the application further provides a computer readable storage medium storing computer executable instructions, The above method is implemented when the computer executable instructions are executed.
  • a 4in6 tunnel mode selection device which is applied to a user terminal device CPE, the device comprising: a first sending module, configured to send a dynamic host configuration protocol DHCPv6 for IPv6 to a server a requesting message, configured to receive a response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the selecting module is configured to select 4in6 according to the response message.
  • a first sending module configured to send a dynamic host configuration protocol DHCPv6 for IPv6 to a server a requesting message, configured to receive a response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter
  • the selecting module is configured to select 4in6 according to the response message.
  • the device further includes: a second sending module, configured to send a DHCPv6 acknowledgment message to the server, where the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration to the server parameter.
  • a second sending module configured to send a DHCPv6 acknowledgment message to the server, where the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration to the server parameter.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • another 4in6 tunnel mode selection apparatus applied to a server, the apparatus comprising: a first receiving module configured to receive a dynamic host configuration protocol for IPv6 from a user terminal device CPE a DHCPv6 request message, the sending module, configured to send a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is 4in6 for the CPE.
  • a first receiving module configured to receive a dynamic host configuration protocol for IPv6 from a user terminal device CPE a DHCPv6 request message
  • the sending module configured to send a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is 4in6 for the CPE.
  • the apparatus further includes: a second receiving module, configured to receive a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration to the server parameter.
  • a second receiving module configured to receive a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration to the server parameter.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • the user terminal device CPE sends a dynamic host configuration protocol DHCPv6 request message for the IPv6 to the server; the CPE receives the response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; The CPE selects the 4in6 tunnel mode according to the response message.
  • the problem that the 4in6 tunnel mode cannot be rapidly deployed in the related technologies is solved, the configuration process is simplified, the 4in6 deployment efficiency is improved, and the operation and maintenance costs of the device manufacturer and the operator are reduced.
  • FIG. 1 is a schematic diagram of networking of a network scenario to which the present application applies;
  • FIG. 2 is a flowchart of a 4in6 tunnel mode selection method according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram (1) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention.
  • FIG. 5 is a flowchart (1) of a 4in6 tunnel mode selection method according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram (2) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram (3) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a newly defined DHCPv6 message option according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of configuring IPv6 parameters for a CPE through DHCPv6 message interaction according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a DHCP6c and 4in6 tunnel in a CPE according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a 4in6 tunnel mode selection method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 the user terminal device CPE sends a dynamic host configuration protocol DHCPv6 request message for IPv6 to the server;
  • Step S204 The CPE receives a response message from the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter.
  • Step S206 the CPE selects a 4in6 tunnel mode according to the response message.
  • the CPE configures the 4in6 tunnel mode according to the IPv6 address obtained from the server and the specified 4in6 selection parameter.
  • Different operators may require different 4in6 tunnel modes, and the same carrier is in different network deployment areas. Different 4in6 tunnel modes may also be required.
  • the operator also needs to select a 4in6 tunnel mode according to its own network environment through default configuration, remote configuration, or user configuration.
  • the above steps solve the problem that the 4in6 tunnel mode cannot be quickly deployed in related technologies. The problem simplifies the configuration process, improves the efficiency of 4in6 deployment, and reduces the operating and maintenance costs of equipment manufacturers and operators.
  • the CPE In order to ensure that the CPE receives the correct IPv6 address and specifies the 4in6 configuration parameter, in an optional embodiment, after the CPE receives the response message from the server for the DHCPv6 request message, the CPE sends a DHCPv6 acknowledgment message to the server, wherein the DHCPv6 acknowledgment message is set. To confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • a 4in6 tunnel mode selection device is further provided, and the device is set to implement
  • the above embodiments and optional embodiments have not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 3 is a structural block diagram of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention.
  • the apparatus is applied to a user terminal equipment CPE.
  • the apparatus includes: a first sending module 32, configured to send to a server for sending The dynamic host configuration protocol DHCPv6 request message of the IPv6; the receiving module 34 is configured to receive the response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the selecting module 36 is configured to The response message selects the 4in6 tunnel mode.
  • a first sending module 32 configured to send to a server for sending The dynamic host configuration protocol DHCPv6 request message of the IPv6
  • the receiving module 34 is configured to receive the response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter
  • the selecting module 36 is configured to The response message selects the 4in6 tunnel mode.
  • FIG. 4 is a structural block diagram (1) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention.
  • the apparatus further includes: a second sending module 44, configured to send a DHCPv6 acknowledgement message to the server, where The DHCPv6 acknowledgment message is set to instruct the server to confirm the IPv6 address and the specified 4in6 configuration parameter.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • FIG. 5 is a flowchart (1) of a 4in6 tunnel mode selection method according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps:
  • Step S502 the server receives a request message for the dynamic host configuration protocol DHCPv6 of IPv6 from the user terminal device CPE;
  • Step S504 The server sends a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter, and the response message is a basis for selecting the 4in6 tunnel mode for the CPE.
  • the CPE selects the 4in6 tunnel mode according to the IPv6 address obtained from the server and the specified 4in6 configuration parameter. Different operators may require different 4in6 tunnel modes, and the same carrier is in different network deployment areas. Different 4in6 tunnel modes may also be required. The operator also needs to select a 4in6 tunnel mode according to its own network environment through default configuration, remote configuration or user configuration. The above steps solve the problem that the related technology cannot be fast. The problem of the 4in6 tunnel mode simplifies the configuration process, improves the efficiency of 4in6 deployment, and reduces the operating and maintenance costs of equipment manufacturers and operators.
  • the server sends a response message to the CPE for the DHCPv6 request message
  • the server receives a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 acknowledgment message The message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • Embodiments of the invention are not limited to any specific form of combination of hardware and software.
  • a 4in6 tunnel mode selection device is also provided, which is configured to implement the above-mentioned embodiments and optional embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural block diagram (2) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention, Applicable to the server, as shown in FIG. 6, the apparatus includes: a first receiving module 62 configured to receive a request message for the dynamic host configuration protocol DHCPv6 of IPv6 from the user terminal device CPE; and a sending module 64 configured to send to the CPE The response message of the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is a basis for selecting the 4in6 tunnel mode for the CPE.
  • a first receiving module 62 configured to receive a request message for the dynamic host configuration protocol DHCPv6 of IPv6 from the user terminal device CPE
  • a sending module 64 configured to send to the CPE
  • the response message of the DHCPv6 request message where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is a basis for selecting the 4in6 tunnel mode for the CPE
  • the apparatus further includes: a second receiving module 72 configured to receive a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 The acknowledgment message is set to instruct the server to acknowledge the IPv6 address and the specified 4in6 configuration parameter.
  • the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • the application also provides a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the user terminal device CPE sends a dynamic host configuration protocol DHCPv6 request message to the server.
  • the CPE receives a response message from the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter.
  • the CPE selects a 4in6 tunnel mode according to the response message.
  • the application also provides a storage medium that is configured to store program code for performing the following steps:
  • the server receives a dynamic host configuration protocol DHCPv6 request message from the user terminal device CPE.
  • the server sends a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is a basis for selecting the 4in6 tunnel mode for the CPE.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes S1, S2, and S3 according to the stored program code in the storage medium.
  • the processor executes S4 and S5 according to the stored program code in the storage medium.
  • the purpose of this alternative embodiment is to provide a method for rapidly deploying a 4 in6 tunnel mode in a CPE.
  • the method does not need any operation, and the deployment result can meet the requirements of the operator well, and the deployment is fast, accurate, flexible, and convenient.
  • An alternative embodiment of the present invention provides a method for the CPE to adaptively select and select a 4in6 tunnel mode according to an external network environment, and the method mainly includes:
  • the CPE sends a DHCPv6 request message to the server.
  • the DHCPv6 request message defines a new container option (OPTION_S46_CONT) and encapsulates several sub-options (including OPTION_S46_RULE, OPTION_S46_DMR, OPTION_S46_V4V6BIND, OPTION_S46_BR, etc., which can also be newly defined according to specific conditions).
  • Figure 8 ;
  • the CPE receives a response message returned by the server, and the response message carries a specific option of one or several 4in6 tunnel configuration parameters, and determines the mode of the option to determine which mode of the 4in6 tunnel the CPE should configure.
  • the CPE obtains the configuration parameters of the 4in6 tunnel from the response message, completes the tunnel configuration, and performs communication.
  • the optional embodiment also provides a CPE device system.
  • the DHCP6c and 4in6 tunnels of the CPE device are designed as two independent parts.
  • the DHCP6c is responsible for all processing related to DHCPv6 messages, and the 4in6 tunnel part is only responsible for configuration of various tunnels. Communication
  • the DHCP6c part includes DHCPv6 packet encapsulation, DHCPv6 packet receiving and sending, DHCPv6 packet parsing, and DHCP6c state machine. Referring to Figure 10;
  • the various 4in6 tunnel technologies are also independently arranged in their respective modules, such as Lw4o6, MAP-E, MAP-T, etc. in FIG.
  • An alternative embodiment of the present invention provides a method and system for rapidly deploying a 4in6 tunnel mode according to an external network environment, which is used to simplify the 4in6 tunnel configuration process and improve the deployment efficiency of the 4in6 tunnel.
  • the method of the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
  • FIG. 1 is a schematic diagram of a network scenario network to which the present application is applicable, and is applicable to an IPv4-IPv6-IPv4 network environment in which a 4in6 tunnel needs to be deployed.
  • the embodiment of the present invention provides a method for automatically configuring a 4in6 tunnel in a CPE adaptive network environment.
  • the method for the CPE is delivered in the form of an option in the DHCPv6 message interaction process by newly defining the option and encapsulating the sub-options in the DHCPv6 message.
  • the configuration parameters of the specific 4in6 tunnel mode indicating that the CPE chooses to configure the 4in6 tunnel of this mode.
  • FIG. 8 is a schematic diagram of a newly defined DHCPv6 message option structure according to an embodiment of the present invention.
  • the new definition of the container option is called an option of the OPTION_S46_CONT type.
  • the option option can encapsulate various sub-options.
  • the specific format includes:
  • option-code OPTION_S46_CONT, which will be defined by IANA;
  • Option option length option-length, determined by the encapsulated suboption
  • encapsulated-options of the encapsulation is used to encapsulate all the options related to the 4in6 tunnel, such as OPTION_S46_DMR, OPTION_S46_BR, OPTION_S46_RULE, OPTION_S46_PORTPARAMS, OPTION_S46_V4V6BIND, etc., and new options can be defined according to the actual situation.
  • OPTION_S46_DMR OPTION_S46_BR
  • OPTION_S46_RULE OPTION_S46_PORTPARAMS
  • OPTION_S46_V4V6BIND etc.
  • FIG. 9 is a schematic diagram of a process of configuring an IPv6 parameter for a CPE by using a DHCPv6 message exchange according to an embodiment of the present invention.
  • the CPE obtains a 4in6 configuration parameter by using a DHCPv6 protocol exchange message, and the DHCPv6 message carries the newly defined container of the optional embodiment.
  • the option option - OPTION_S46_CONT and encapsulates a number of 4in6 tunnel-related options. For the sake of simplicity, this embodiment only draws the address delivery process, and does not consider the address renewal problem.
  • FIG. 10 is a schematic structural diagram of a DHCP6c and a 4in6 tunnel in a CPE according to an embodiment of the present invention.
  • the main processing steps related to CPE including:
  • the external network environment may support Lw4o6, MAP-E, or MAP-T, and then encapsulate OPTION_S46_RULE, OPTION_S46_BR, OPTION_S46_DMR three sub-options.
  • OPTION_S46_RULE OPTION_S46_BR
  • OPTION_S46_DMR three sub-options.
  • only the required option is encapsulated, and other options may be encapsulated as required.
  • the CPE parses the received DHCPv6 response packet, extracts the encapsulated option and its value, and analyzes which mode 4in6 tunnel the CPE chooses and saves the configuration parameters.
  • the CPE is configured to configure the corresponding 4in6 tunnel.
  • Table 1 is the basis for selecting which 4in6 tunnel mode is configured by the CPE in this embodiment. This table lists all the options involved in the three 4in6 tunnels of Lw4o6, MAP-E, and MAP-T. It corresponds to a certain tunnel. M indicates a mandatory option, O indicates an optional option, and N/A indicates that it is not applied. -E, OPTION_S46_RULE and OPTION_S46_BR are mandatory. You can choose to issue OPTION_S46_PORTPARAMS, but it is not required.
  • the following is a detailed description of the configuration method of the present embodiment, that is, a process of allocating an IPv6 address and a configuration parameter to a CPE by using a DHCPv6 protocol message, and a process for the CPE to obtain its 4in6 tunnel configuration parameter and create a tunnel.
  • the process includes the following steps:
  • Step 1 Referring to FIG. 9, the CPE broadcasts a DHCPv6-Solicit message to request the DHCPv6 server in the network to allocate an IPv6 address and other configuration parameters.
  • the other configuration parameters may include parameters required for the creation of a 4in6 tunnel.
  • /FMR (Forwarding Mapping Rule) rule parameters the IPv6 address of the BR
  • the request message encapsulates a container option (OPTION_S46_CONT) newly defined by the optional embodiment of the present invention, and encapsulates a plurality of sub-options, wherein the role of the several sub-options is to select and encapsulate each sub-option in the request message, if the response If the corresponding option in the message has a value, it is used to determine which 4in6 tunnel mode to select. If it is assumed that the existing network may support Lw4o6, MAP-E, and MAP-T tunnels, the three suboptions OPTION_S46_RULE, OPTION_S46_BR, and OPTION_S46_DMR may be encapsulated.
  • the value of the sub-option carries the value.
  • the specific selection is based on Table 1.
  • the extended option can be added according to other modes of the 4in6 tunnel.
  • the environment can support DS-Lite, and the sub-option64 can be extended.
  • the specific format is shown in Figure 8.
  • Step 2 The DHCPv6 server sends a DHCPv6-Advertise message to the CPE according to the DHCPv6-Solicit message, and advertises the network configuration parameters such as the IPv6 address and the IPv6 address lease period allocated to the CPE.
  • the specific 4in6 configuration parameters are carried in the corresponding option. For example, if the network environment supports MAP-E, then option OPTION_S46_RULE The option OPTION_S46_BR will host a specific vlaue.
  • Step 3 The CPE sends a DHCPv6-Request message to the DHCPv6 server to request the server to confirm the assigned IPv6 address and other configuration parameters.
  • option option of the request message is consistent with the option option in the DHCPv6-Solicit request message in step 1.
  • Step 4 After receiving the DHCPv6-Request message sent by the CPE, the DHCPv6 server returns a DHCPv6-Reply message if it is confirmed that the IPv6 address and related configuration parameters are allocated to the CPE, and the DHCPv6-Reply message encapsulates an option option for carrying IPv6 address and other configuration parameters;
  • Step 5 The CPE parses the received DHCPv6-Reply packet, extracts the option value of the bearer, and determines which mode 4in6 tunnel the CPE should be configured according to the option value and the parameters it carries. For the 4in6 tunnel, you can refer to Table 1. If you have two options OPTION_S46_DMR and OPTION_S46_RULE, select MAP-T mode. If you have option -OPTION_S46_BR, select Lw4o6 tunnel mode.
  • the CPE of the present application responds by transmitting a DHCPv6 request message encapsulating a specific option option by using the CPE provided by the present application.
  • the response message carries a certain response message.
  • the configuration parameter information required for a 4in6 tunnel the CPE determines the type of 4in6 tunnel to be configured by analyzing the option of receiving the response packet.
  • the present application solves the problem of selecting a 4in6 tunnel mode for a device.
  • the device manufacturer no longer needs to customize different configurations for different carriers and different network regions. The operator does not need to worry about the difference in network deployment in various regions and the user to modify the tunnel configuration.
  • the communication is abnormal, that is, the CPE's 4in6 tunnel mode will be automatically adjusted according to the external network environment.
  • the selection and configuration of the 4in6 tunnel mode is simple and convenient through the CPE adaptive network environment.
  • the accuracy of the 4in6 tunnel selection can be ensured without any configuration by the operator or the user.
  • the CPE uses the message interaction in the IPv6 address configuration parameter allocation process to complete the configuration of the 4in6 tunnel parameter, which does not increase the extra message interaction between the CPE and the server, saves bandwidth resources, and improves network resource utilization.
  • This application simplifies the configuration process, which not only improves the efficiency of 4in6 deployment, but also reduces the operation and maintenance costs of equipment manufacturers and operators.
  • the application is easy to implement, not only saves the operation of pre-configuration or replacement configuration, but also improves the flexibility of network deployment, and the implementation and maintenance will be simpler and more economical.
  • modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the application is not limited to any particular combination of hardware and software.
  • the present application solves the problem of selecting a 4in6 tunnel mode for a device.
  • the device manufacturer no longer needs to customize different configurations for different carriers and different network regions.
  • the operator does not need to worry about the difference in network deployment in various regions and the user to modify the tunnel configuration.
  • the communication is abnormal, that is, the CPE's 4in6 tunnel mode will be automatically adjusted according to the external network environment.
  • the selection and configuration of the 4in6 tunnel mode is simple and convenient through the CPE adaptive network environment. The accuracy of the 4in6 tunnel selection can be ensured without any configuration by the operator or the user.

Landscapes

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

Abstract

Disclosed is a 4in6 tunnel mode selection method and an apparatus, the method comprising: Client Premise Equipment (CPE) transmits a dynamic host configuration protocol used for IPv6 (DHCPv6) request message to a server; the CPE receives a response message for the DHCPv6 request message from the server, the response message including an IPv6 address and a designated 4in6 configuration parameter; the CPE selects the 4in6 tunnel mode according to the response message. With the above solution, the problem in related technology that the 4in6 tunnel mode can not be deployed rapidly is solved, the configuration flow is simplified, the 4in6 deployment efficiency is enhanced, and the costs of operation and maintenance of the equipment manufacturer and operator is reduced.

Description

4in6隧道模式选择方法及装置4in6 tunnel mode selection method and device 技术领域Technical field
本申请涉及但不限于通信领域,具体是一种4in6隧道模式选择方法及装置。The present application relates to, but is not limited to, the field of communications, and in particular, to a 4in6 tunnel mode selection method and apparatus.
背景技术Background technique
随着网络技术的发展,互联网所采用的TCP/IP协议族中网络层的协议由IPv4正在不断向IPv6演进。在该演进过程中,根据IPv4提供的地址短缺同时IPv4业务蓬勃发展,根据IPv6提供了海量地址而IPv6业务匮乏。换言之,IPv4业务丰富,缺少演进为IPv6业务的动机,在很长一段时间内,庞大的IPv4用户群依旧存在,因此目前的网络环境是IPv4-IPv6-IPv4。该现状决定了在向IPv6过渡过程中,4in6场景将是一个重要的研究领域,图1示出了经典的4in6组网场景的示意图。与此同时,IETF(The Internet Engineering Task Force,国际互联网工程任务组)也产生了众多针对4in6场景的过渡技术,比如DS-lite(Dual-Stack Lite,轻级双栈技术)、轻量级4over6隧道(Lightweight 4over6)、MAP-T(Mapping Address and Port-T,基于翻译技术)、MAP-E(Mapping Address and Port–E、基于报文封装)等。With the development of network technology, the protocol of the network layer in the TCP/IP protocol family adopted by the Internet is constantly evolving to IPv6 by IPv4. In the evolution process, according to the shortage of addresses provided by IPv4 and the vigorous development of IPv4 services, a large number of addresses are provided according to IPv6 and IPv6 services are scarce. In other words, IPv4 services are rich and lack the motivation to evolve into IPv6 services. For a long time, a large IPv4 user group still exists, so the current network environment is IPv4-IPv6-IPv4. This status quo determines that the 4in6 scenario will be an important research area in the transition to IPv6. Figure 1 shows a schematic diagram of the classic 4in6 networking scenario. At the same time, IETF (The Internet Engineering Task Force) has also produced a number of transition technologies for 4in6 scenarios, such as DS-lite (Dual-Stack Lite), lightweight 4over6 Tunnel (Lightweight 4over6), MAP-T (Mapping Address and Port-T (based on translation technology), MAP-E (Mapping Address and Port-E, packet-based encapsulation), etc.
不同的运营商可能采用不同的4in6隧道模式,同一运营商在不同的网络部署地区亦可能采用不同的4in6隧道模式,为不同的运营商或不同的地区单独定制支持特定4in6隧道模式的过渡技术的用户终端设备(Customer Premise Equipment,简称为CPE)显然是不合适的。CPE一般可以支持多种4in6隧道过渡技术,这种情况下运营商亦需要根据自身的网络环境通过默认配置、远程配置或用户配置等方式选择一种4in6隧道模式。该处理方式需要预先配置,也存在出错的风险。Different operators may adopt different 4in6 tunnel modes. Different operators may adopt different 4in6 tunnel modes in different network deployment areas, and separately customize transition technologies supporting specific 4in6 tunnel modes for different operators or different regions. Customer Premise Equipment (CPE) is obviously not suitable. The CPE can generally support multiple 4in6 tunnel transition technologies. In this case, the operator also needs to select a 4in6 tunnel mode according to its own network environment through default configuration, remote configuration, or user configuration. This processing method needs to be pre-configured, and there is also a risk of error.
针对相关技术中,无法快速部署4in6隧道模式的问题,还未提出有效的解决方案。In view of the related art, the problem of 4in6 tunnel mode cannot be rapidly deployed, and an effective solution has not been proposed.
发明内容 Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本申请提供了一种4in6隧道模式选择方法及装置,以至少解决相关技术中无法快速部署4in6隧道模式的问题。The present application provides a 4in6 tunnel mode selection method and apparatus to solve at least the problem that the 4in6 tunnel mode cannot be rapidly deployed in the related art.
根据本申请的一个方面,提供了一种4in6隧道模式选择方法,包括:用户终端设备CPE向服务器发送用于IPv6的DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)的DHCPv6请求消息;所述CPE接收所述服务器针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;所述CPE根据所述响应消息选择4in6隧道模式。According to an aspect of the present application, a 4in6 tunnel mode selection method is provided, including: a user terminal device CPE sends a DHCPv6 request message for DHCP (Dynamic Host Configuration Protocol) of IPv6 to a server; the CPE And receiving, by the server, a response message for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the CPE selects a 4in6 tunnel mode according to the response message.
可选地,在所述CPE接收所述服务器针对所述DHCPv6请求消息的响应消息的步骤之后,所述方法还包括:所述CPE向所述服务器发送DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。Optionally, after the step of the CPE receiving the response message of the server for the DHCPv6 request message, the method further includes: the CPE sending a DHCPv6 acknowledgment message to the server, where the DHCPv6 acknowledgment message Set to confirm to the server the IPv6 address and the specified 4in6 configuration parameter.
可选地,所述4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。Optionally, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
根据本申请的另一个方面,还提供了另一种4in6隧道模式选择方法,包括:服务器从用户终端设备CPE接收用于IPv6的动态主机配置协议DHCPv6请求消息;所述服务器向所述CPE发送针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;所述响应消息为所述CPE选择4in6隧道模式的依据。According to another aspect of the present application, another 4in6 tunnel mode selection method is further provided, comprising: a server receiving a dynamic host configuration protocol DHCPv6 request message for IPv6 from a user terminal device CPE; the server sending a target to the CPE The response message of the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the response message is a basis for the CPE to select a 4in6 tunnel mode.
可选地,在所述服务器向所述CPE发送针对所述DHCPv6请求消息的响应消息的步骤之后,所述方法还包括:所述服务器从所述CPE接收DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。Optionally, after the step of the server sending a response message to the CPE for the DHCPv6 request message, the method further includes: the server receiving a DHCPv6 acknowledgement message from the CPE, wherein the DHCPv6 acknowledgement The message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
可选地,所述4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。Optionally, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
本申请另外提供一种计算机可读存储介质,存储有计算机可执行指令, 所述计算机可执行指令被执行时实现上述方法。The application further provides a computer readable storage medium storing computer executable instructions, The above method is implemented when the computer executable instructions are executed.
根据本申请的一个方面,提供了一种4in6隧道模式选择装置,该装置应用于用户终端设备CPE,所述装置包括:第一发送模块,设置为向服务器发送用于IPv6的动态主机配置协议DHCPv6请求消息;接收模块,设置为接收所述服务器针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;选择模块,设置为根据所述响应消息选择4in6隧道模式。According to an aspect of the present application, there is provided a 4in6 tunnel mode selection device, which is applied to a user terminal device CPE, the device comprising: a first sending module, configured to send a dynamic host configuration protocol DHCPv6 for IPv6 to a server a requesting message, configured to receive a response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the selecting module is configured to select 4in6 according to the response message. Tunnel mode.
可选地,所述装置还包括:第二发送模块,设置为向所述服务器发送DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。Optionally, the device further includes: a second sending module, configured to send a DHCPv6 acknowledgment message to the server, where the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration to the server parameter.
可选地,所述4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。Optionally, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
根据本申请的另一个方面,还提供了另一种4in6隧道模式选择装置,应用于服务器,所述装置包括:第一接收模块,设置为从用户终端设备CPE接收用于IPv6的动态主机配置协议DHCPv6请求消息;发送模块,设置为向所述CPE发送针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;所述响应消息为所述CPE选择4in6隧道模式的依据。According to another aspect of the present application, there is also provided another 4in6 tunnel mode selection apparatus, applied to a server, the apparatus comprising: a first receiving module configured to receive a dynamic host configuration protocol for IPv6 from a user terminal device CPE a DHCPv6 request message, the sending module, configured to send a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is 4in6 for the CPE. The basis of the tunnel mode.
可选地,所述装置还包括:第二接收模块,设置为从所述CPE接收DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。Optionally, the apparatus further includes: a second receiving module, configured to receive a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration to the server parameter.
可选地,所述4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。Optionally, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
通过本申请,采用用户终端设备CPE向服务器发送用于IPv6的动态主机配置协议DHCPv6请求消息;CPE接收服务器针对DHCPv6请求消息的响应消息,其中,该响应消息中包括IPv6地址和指定4in6配置参数;CPE根据该响应消息选择4in6隧道模式。解决了相关技术中无法快速部署4in6隧道模式的问题,简化了配置流程,提高了4in6部署效率,降低了设备制造商与运营商的运行与维护成本。 Through the application, the user terminal device CPE sends a dynamic host configuration protocol DHCPv6 request message for the IPv6 to the server; the CPE receives the response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; The CPE selects the 4in6 tunnel mode according to the response message. The problem that the 4in6 tunnel mode cannot be rapidly deployed in the related technologies is solved, the configuration process is simplified, the 4in6 deployment efficiency is improved, and the operation and maintenance costs of the device manufacturer and the operator are reduced.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是本申请适用的网络场景组网示意图;1 is a schematic diagram of networking of a network scenario to which the present application applies;
图2是根据本发明实施例的4in6隧道模式选择方法的流程图;2 is a flowchart of a 4in6 tunnel mode selection method according to an embodiment of the present invention;
图3是根据本发明实施例的4in6隧道模式选择装置的结构框图;3 is a structural block diagram of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的4in6隧道模式选择装置的结构框图(一);4 is a structural block diagram (1) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的4in6隧道模式选择方法的流程图(一);FIG. 5 is a flowchart (1) of a 4in6 tunnel mode selection method according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的4in6隧道模式选择装置的结构框图(二);6 is a structural block diagram (2) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的4in6隧道模式选择装置的结构框图(三);7 is a structural block diagram (3) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention;
图8是根据本发明实施例的新定义的DHCPv6消息option结构示意图;FIG. 8 is a schematic structural diagram of a newly defined DHCPv6 message option according to an embodiment of the present invention; FIG.
图9是根据本发明实施例的通过DHCPv6消息交互为CPE配置IPv6参数的流程示意图;9 is a schematic flowchart of configuring IPv6 parameters for a CPE through DHCPv6 message interaction according to an embodiment of the present invention;
图10是根据本发明实施例的CPE中DHCP6c与4in6隧道结构示意图。FIG. 10 is a schematic structural diagram of a DHCP6c and 4in6 tunnel in a CPE according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present application will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order.
在本发明实施例中提供了一种4in6隧道模式选择方法,图2是根据本发明实施例的4in6隧道模式选择方法的流程图,如图2所示,该流程包括如下步骤: In the embodiment of the present invention, a 4in6 tunnel mode selection method is provided. FIG. 2 is a flowchart of a 4in6 tunnel mode selection method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,用户终端设备CPE向服务器发送用于IPv6的动态主机配置协议DHCPv6请求消息;Step S202, the user terminal device CPE sends a dynamic host configuration protocol DHCPv6 request message for IPv6 to the server;
步骤S204,CPE接收服务器针对DHCPv6请求消息的响应消息,其中,该响应消息中包括IPv6地址和指定4in6配置参数;Step S204: The CPE receives a response message from the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter.
步骤S206,CPE根据该响应消息选择4in6隧道模式。Step S206, the CPE selects a 4in6 tunnel mode according to the response message.
通过上述步骤,CPE根据从服务器获取的IPv6地址和指定4in6选择参数配置4in6隧道模式,相比于相关技术中,不同的运营商可能需要不同的4in6隧道模式,同一运营商在不同的网络部署地区亦可能需要不同的4in6隧道模式,运营商亦需要根据自身的网络环境通过默认配置、远程配置或用户配置等方式选择一种4in6隧道模式,上述步骤解决了相关技术中无法快速部署4in6隧道模式的问题,简化了配置流程,提高了4in6部署效率,降低了设备制造商与运营商的运行与维护成本。Through the above steps, the CPE configures the 4in6 tunnel mode according to the IPv6 address obtained from the server and the specified 4in6 selection parameter. Different operators may require different 4in6 tunnel modes, and the same carrier is in different network deployment areas. Different 4in6 tunnel modes may also be required. The operator also needs to select a 4in6 tunnel mode according to its own network environment through default configuration, remote configuration, or user configuration. The above steps solve the problem that the 4in6 tunnel mode cannot be quickly deployed in related technologies. The problem simplifies the configuration process, improves the efficiency of 4in6 deployment, and reduces the operating and maintenance costs of equipment manufacturers and operators.
为了确保CPE收到正确的IPv6地址和指定4in6配置参数,在一个可选实施例中,CPE接收服务器针对DHCPv6请求消息的响应消息之后,CPE向服务器发送DHCPv6确认消息,其中,该DHCPv6确认消息设置为向该服务器确认该IPv6地址和该指定4in6配置参数。In order to ensure that the CPE receives the correct IPv6 address and specifies the 4in6 configuration parameter, in an optional embodiment, after the CPE receives the response message from the server for the DHCPv6 request message, the CPE sends a DHCPv6 acknowledgment message to the server, wherein the DHCPv6 acknowledgment message is set. To confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
在一个可选实施例中,4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。In an alternative embodiment, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
本发明实施例另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
在本实施例中还提供了一种4in6隧道模式选择装置,该装置设置为实现 上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a 4in6 tunnel mode selection device is further provided, and the device is set to implement The above embodiments and optional embodiments have not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的4in6隧道模式选择装置的结构框图,该装置应用于用户终端设备CPE,如图3所示,该装置包括:第一发送模块32,设置为向服务器发送用于IPv6的动态主机配置协议DHCPv6请求消息;接收模块34,设置为接收该服务器针对该DHCPv6请求消息的响应消息,其中,该响应消息中包括IPv6地址和指定4in6配置参数;选择模块36,设置为根据该响应消息选择4in6隧道模式。FIG. 3 is a structural block diagram of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention. The apparatus is applied to a user terminal equipment CPE. As shown in FIG. 3, the apparatus includes: a first sending module 32, configured to send to a server for sending The dynamic host configuration protocol DHCPv6 request message of the IPv6; the receiving module 34 is configured to receive the response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; and the selecting module 36 is configured to The response message selects the 4in6 tunnel mode.
图4是根据本发明实施例的4in6隧道模式选择装置的结构框图(一),如图4所示,该装置还包括:第二发送模块44,设置为向该服务器发送DHCPv6确认消息,其中,该DHCPv6确认消息设置为指示该服务器确认该IPv6地址和该指定4in6配置参数。4 is a structural block diagram (1) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus further includes: a second sending module 44, configured to send a DHCPv6 acknowledgement message to the server, where The DHCPv6 acknowledgment message is set to instruct the server to confirm the IPv6 address and the specified 4in6 configuration parameter.
可选地,该4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。Optionally, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
在本发明实施例中还提供了一种4in6隧道模式选择方法,图5是根据本发明实施例的4in6隧道模式选择方法的流程图(一),如图5所示,该流程包括如下步骤:In the embodiment of the present invention, a 4in6 tunnel mode selection method is also provided. FIG. 5 is a flowchart (1) of a 4in6 tunnel mode selection method according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps:
步骤S502,服务器从用户终端设备CPE接收用于IPv6的动态主机配置协议DHCPv6的请求消息;Step S502, the server receives a request message for the dynamic host configuration protocol DHCPv6 of IPv6 from the user terminal device CPE;
步骤S504,服务器向CPE发送针对该DHCPv6请求消息的响应消息,其中,该响应消息中包括IPv6地址和指定4in6配置参数;响应消息为该CPE选择4in6隧道模式的依据。Step S504: The server sends a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter, and the response message is a basis for selecting the 4in6 tunnel mode for the CPE.
通过上述步骤,CPE根据从服务器获取的IPv6地址和指定4in6配置参数选择4in6隧道模式,相比于相关技术中,不同的运营商可能需要不同的4in6隧道模式,同一运营商在不同的网络部署地区亦可能需要不同的4in6隧道模式,运营商亦需要根据自身的网络环境通过默认配置、远程配置或用户配置等方式选择一种4in6隧道模式,上述步骤解决了相关技术中无法快速部 署4in6隧道模式的问题,简化了配置流程,提高了4in6部署效率,降低了设备制造商与运营商的运行与维护成本。Through the above steps, the CPE selects the 4in6 tunnel mode according to the IPv6 address obtained from the server and the specified 4in6 configuration parameter. Different operators may require different 4in6 tunnel modes, and the same carrier is in different network deployment areas. Different 4in6 tunnel modes may also be required. The operator also needs to select a 4in6 tunnel mode according to its own network environment through default configuration, remote configuration or user configuration. The above steps solve the problem that the related technology cannot be fast. The problem of the 4in6 tunnel mode simplifies the configuration process, improves the efficiency of 4in6 deployment, and reduces the operating and maintenance costs of equipment manufacturers and operators.
为了确保CPE收到正确的IPv6地址和指定4in6配置参数,在一个可选实施例中,服务器向CPE发送针对该DHCPv6请求消息的响应消息之后,服务器从CPE接收DHCPv6确认消息,其中,该DHCPv6确认消息设置为向该服务器确认该IPv6地址和该指定4in6配置参数。In order to ensure that the CPE receives the correct IPv6 address and specifies the 4in6 configuration parameter, in an optional embodiment, after the server sends a response message to the CPE for the DHCPv6 request message, the server receives a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 acknowledgment message The message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
在一个可选实施例中,4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。In an alternative embodiment, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
在本实施例中还提供了一种4in6隧道模式选择装置,该装置设置为实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the present embodiment, a 4in6 tunnel mode selection device is also provided, which is configured to implement the above-mentioned embodiments and optional embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图6是根据本发明实施例的4in6隧道模式选择装置的结构框图(二), 应用于服务器,如图6所示,该装置包括:第一接收模块62,设置为从用户终端设备CPE接收用于IPv6的动态主机配置协议DHCPv6的请求消息;发送模块64,设置为向CPE发送针对该DHCPv6请求消息的响应消息,其中,响应消息中包括IPv6地址和指定4in6配置参数;响应消息为该CPE选择4in6隧道模式的依据。6 is a structural block diagram (2) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention, Applicable to the server, as shown in FIG. 6, the apparatus includes: a first receiving module 62 configured to receive a request message for the dynamic host configuration protocol DHCPv6 of IPv6 from the user terminal device CPE; and a sending module 64 configured to send to the CPE The response message of the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is a basis for selecting the 4in6 tunnel mode for the CPE.
图7是根据本发明实施例的4in6隧道模式选择装置的结构框图(三),如图7所示,该装置还包括:第二接收模块72,设置为从CPE接收DHCPv6确认消息,其中,DHCPv6确认消息设置为指示该服务器确认该IPv6地址和该指定4in6配置参数。7 is a structural block diagram (3) of a 4in6 tunnel mode selection apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus further includes: a second receiving module 72 configured to receive a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 The acknowledgment message is set to instruct the server to acknowledge the IPv6 address and the specified 4in6 configuration parameter.
可选地,该4in6隧道模式包括以下至少之一:DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。Optionally, the 4in6 tunnel mode includes at least one of the following: DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本申请还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:The application also provides a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,用户终端设备CPE向服务器发送动态主机配置协议DHCPv6请求消息;S1. The user terminal device CPE sends a dynamic host configuration protocol DHCPv6 request message to the server.
S2,CPE接收服务器针对DHCPv6请求消息的响应消息,其中,该响应消息中包括IPv6地址和指定4in6配置参数;S2. The CPE receives a response message from the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter.
S3,CPE根据该响应消息选择4in6隧道模式。S3. The CPE selects a 4in6 tunnel mode according to the response message.
本申请还提供了一种存储介质,存储介质被设置为存储用于执行以下步骤的程序代码:The application also provides a storage medium that is configured to store program code for performing the following steps:
S4,服务器从用户终端设备CPE接收动态主机配置协议DHCPv6请求消息;S4. The server receives a dynamic host configuration protocol DHCPv6 request message from the user terminal device CPE.
S5,服务器向CPE发送针对该DHCPv6请求消息的响应消息,其中,该响应消息中包括IPv6地址和指定4in6配置参数;响应消息为该CPE选择4in6隧道模式的依据。 S5: The server sends a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is a basis for selecting the 4in6 tunnel mode for the CPE.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本申请的一个实施例中,处理器根据存储介质中已存储的程序代码执行S1、S2以及S3。Optionally, in one embodiment of the present application, the processor executes S1, S2, and S3 according to the stored program code in the storage medium.
可选地,在本申请的一个实施例中,处理器根据存储介质中已存储的程序代码执行S4和S5。Optionally, in one embodiment of the present application, the processor executes S4 and S5 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本可选实施例的目的在于,提供一种CPE快速部署4in6隧道模式的方法,该方法无需任何操作,同时部署的结果能很好地满足运营商的要求,部署快速准确、灵活方便。The purpose of this alternative embodiment is to provide a method for rapidly deploying a 4 in6 tunnel mode in a CPE. The method does not need any operation, and the deployment result can meet the requirements of the operator well, and the deployment is fast, accurate, flexible, and convenient.
本发明可选实施例提出了一种CPE依据外部网络环境自适应选择选择4in6隧道模式的方法,该方法主要包括:An alternative embodiment of the present invention provides a method for the CPE to adaptively select and select a 4in6 tunnel mode according to an external network environment, and the method mainly includes:
CPE向服务器发送DHCPv6请求消息,该DHCPv6请求报文中新定义了特定container option(OPTION_S46_CONT)并封装有若干子option(包括OPTION_S46_RULE、OPTION_S46_DMR、OPTION_S46_V4V6BIND、OPTION_S46_BR等,也可以根据具体情况新定义),参考图8;The CPE sends a DHCPv6 request message to the server. The DHCPv6 request message defines a new container option (OPTION_S46_CONT) and encapsulates several sub-options (including OPTION_S46_RULE, OPTION_S46_DMR, OPTION_S46_V4V6BIND, OPTION_S46_BR, etc., which can also be newly defined according to specific conditions). Figure 8;
CPE接收服务器返回的响应消息,该响应消息承载了某一个或几个4in6隧道配置参数特定的option选项,通过解析这些option的值来确定CPE应选择配置何种模式的4in6隧道;The CPE receives a response message returned by the server, and the response message carries a specific option of one or several 4in6 tunnel configuration parameters, and determines the mode of the option to determine which mode of the 4in6 tunnel the CPE should configure.
CPE从所述响应消息中获取4in6隧道的配置参数,完成隧道配置并进行通信。The CPE obtains the configuration parameters of the 4in6 tunnel from the response message, completes the tunnel configuration, and performs communication.
本可选实施例亦提出一种CPE设备系统,该CPE设备的DHCP6c与4in6隧道设计为独立的两部分,其中DHCP6c负责DHCPv6报文相关的所有处理,4in6隧道部分仅负责各种隧道的配置与通信;The optional embodiment also provides a CPE device system. The DHCP6c and 4in6 tunnels of the CPE device are designed as two independent parts. The DHCP6c is responsible for all processing related to DHCPv6 messages, and the 4in6 tunnel part is only responsible for configuration of various tunnels. Communication
DHCP6c部分包含DHCPv6报文封装、DHCPv6报文接收与发送、DHCPv6报文解析、DHCP6c状态机等几部分,参考图10; The DHCP6c part includes DHCPv6 packet encapsulation, DHCPv6 packet receiving and sending, DHCPv6 packet parsing, and DHCP6c state machine. Referring to Figure 10;
各种4in6隧道技术也相互独立设置于各自的模块,如图10中的Lw4o6、MAP-E、MAP-T等。The various 4in6 tunnel technologies are also independently arranged in their respective modules, such as Lw4o6, MAP-E, MAP-T, etc. in FIG.
本发明可选实施例提供了一种CPE依据外部网络环境快速部署4in6隧道模式的方法和系统,用以简化4in6隧道配置流程,提高4in6隧道部署效率。下面结合说明书附图及具体实施例对本申请方法作进一步的详细说明。An alternative embodiment of the present invention provides a method and system for rapidly deploying a 4in6 tunnel mode according to an external network environment, which is used to simplify the 4in6 tunnel configuration process and improve the deployment efficiency of the 4in6 tunnel. The method of the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图1是本申请适用的网络场景组网示意图,在需要部署4in6隧道的IPv4-IPv6-IPv4网络环境下均适用。FIG. 1 is a schematic diagram of a network scenario network to which the present application is applicable, and is applicable to an IPv4-IPv6-IPv4 network environment in which a 4in6 tunnel needs to be deployed.
本发明实施例提供一种CPE自适应网络环境自动选择配置4in6隧道的方法,通过在DHCPv6消息里新定义option选项并封装若干子option,使在DHCPv6消息交互过程中以option的形式给CPE下发特定4in6隧道模式的配置参数,从而指示CPE选择配置该种模式的4in6隧道。The embodiment of the present invention provides a method for automatically configuring a 4in6 tunnel in a CPE adaptive network environment. The method for the CPE is delivered in the form of an option in the DHCPv6 message interaction process by newly defining the option and encapsulating the sub-options in the DHCPv6 message. The configuration parameters of the specific 4in6 tunnel mode, indicating that the CPE chooses to configure the 4in6 tunnel of this mode.
图8是根据本发明实施例的新定义的DHCPv6消息option结构示意图,为方便查看,该新定义container option选项称为OPTION_S46_CONT类型的option选项,该option选项可以封装各种子option,具体格式包括:FIG. 8 is a schematic diagram of a newly defined DHCPv6 message option structure according to an embodiment of the present invention. For convenience of viewing, the new definition of the container option is called an option of the OPTION_S46_CONT type. The option option can encapsulate various sub-options. The specific format includes:
1)option-code:OPTION_S46_CONT,将由IANA定义;1) option-code: OPTION_S46_CONT, which will be defined by IANA;
2)option选项长度:option-length,由封装的子option确定;2) Option option length: option-length, determined by the encapsulated suboption;
3)封装的子option:encapsulated-options,用于封装所有与4in6隧道有关的option,如OPTION_S46_DMR、OPTION_S46_BR、OPTION_S46_RULE、OPTION_S46_PORTPARAMS、OPTION_S46_V4V6BIND等,亦可以根据实际情况定义新的option进行封装。特别指出,若需要支持DHCPv4 over DHCPv6的方式获取Lw4o6隧道的配置参数,可以将DHCPv4的Message type封装在这些子option里。The sub-option: encapsulated-options of the encapsulation is used to encapsulate all the options related to the 4in6 tunnel, such as OPTION_S46_DMR, OPTION_S46_BR, OPTION_S46_RULE, OPTION_S46_PORTPARAMS, OPTION_S46_V4V6BIND, etc., and new options can be defined according to the actual situation. In particular, if you need to support DHCPv4 over DHCPv6 to obtain the configuration parameters of the Lw4o6 tunnel, you can encapsulate the DHCPv4 Message type in these suboptions.
图9是根据本发明实施例的通过DHCPv6消息交互为CPE配置IPv6参数的流程示意图,CPE通过DHCPv6协议交互消息获取4in6配置参数的过程,这些DHCPv6报文承载了本可选实施例新定义的container option选项——OPTION_S46_CONT,并封装有若干4in6隧道相关的option。本实施例为了简单,仅画出了地址下发流程,并未考虑地址续租问题。FIG. 9 is a schematic diagram of a process of configuring an IPv6 parameter for a CPE by using a DHCPv6 message exchange according to an embodiment of the present invention. The CPE obtains a 4in6 configuration parameter by using a DHCPv6 protocol exchange message, and the DHCPv6 message carries the newly defined container of the optional embodiment. The option option - OPTION_S46_CONT, and encapsulates a number of 4in6 tunnel-related options. For the sake of simplicity, this embodiment only draws the address delivery process, and does not consider the address renewal problem.
图10是根据本发明实施例的CPE中DHCP6c与4in6隧道结构示意图, 涉及到CPE的主要处理流程,包括:10 is a schematic structural diagram of a DHCP6c and a 4in6 tunnel in a CPE according to an embodiment of the present invention. The main processing steps related to CPE, including:
1)封装DHCPv6报文,构造承载有新定义container option选项的DHCPv6请求报文,并封装有各个子option,本实施例中假设外部网络环境可能支持Lw4o6、MAP-E或MAP-T,则封装OPTION_S46_RULE、OPTION_S46_BR、OPTION_S46_DMR三个子option。本实施例仅封装必选option,可以视要求封装其他option。1) Encapsulating a DHCPv6 message, constructing a DHCPv6 request message carrying the newly defined container option, and encapsulating each sub-option. In this embodiment, the external network environment may support Lw4o6, MAP-E, or MAP-T, and then encapsulate OPTION_S46_RULE, OPTION_S46_BR, OPTION_S46_DMR three sub-options. In this embodiment, only the required option is encapsulated, and other options may be encapsulated as required.
2)发送/接收DHCPv6报文,CPE与DHCPv6服务器间进行报文交互,完成IPv6地址及配置参数的下发。2) Sending/receiving DHCPv6 messages, the CPE and the DHCPv6 server exchange packets, and the IPv6 address and configuration parameters are delivered.
3)解析DHCPv6报文,CPE解析收到的DHCPv6响应报文,提取封装的option及其value值,从而分析出CPE该选用何种模式的4in6隧道,并保存配置参数。3) Parsing the DHCPv6 packet, the CPE parses the received DHCPv6 response packet, extracts the encapsulated option and its value, and analyzes which mode 4in6 tunnel the CPE chooses and saves the configuration parameters.
4)配置隧道,解析报文后,触发CPE配置相应的4in6隧道。4) After the tunnel is configured, the CPE is configured to configure the corresponding 4in6 tunnel.
表1是本实施例中CPE选择配置何种4in6隧道模式的依据。该表罗列了Lw4o6、MAP-E、MAP-T三种4in6隧道涉及的所有option,对应某种隧道,M表示必选option、O表示可选option、N/A表示未被应用,即对于MAP-E,OPTION_S46_RULE与OPTION_S46_BR为必选的,可以选择下发OPTION_S46_PORTPARAMS,但不是必须的。Table 1 is the basis for selecting which 4in6 tunnel mode is configured by the CPE in this embodiment. This table lists all the options involved in the three 4in6 tunnels of Lw4o6, MAP-E, and MAP-T. It corresponds to a certain tunnel. M indicates a mandatory option, O indicates an optional option, and N/A indicates that it is not applied. -E, OPTION_S46_RULE and OPTION_S46_BR are mandatory. You can choose to issue OPTION_S46_PORTPARAMS, but it is not required.
表1Table 1
OptionOption MAP-EMAP-E MAP-TMAP-T Lw4o6Lw4o6
OPTION_S46_RULEOPTION_S46_RULE MM MM N/AN/A
OPTION_S46_BROPTION_S46_BR MM N/AN/A MM
OPTION_S46_PORTPARAMSOPTION_S46_PORTPARAMS OO OO OO
OPTION_S46_DMROPTION_S46_DMR N/AN/A MM N/AN/A
OPTION_S46_V4V6BINDOPTION_S46_V4V6BIND N/AN/A N/AN/A OO
M–Mandatory;M–Mandatory;
O–Optional;O–Optional;
N/A-Not Applicable N/A-Not Applicable
下面详细说明本实施例的配置方法,即详细说明利用DHCPv6协议消息为CPE分配IPv6地址和配置参数的过程,以及CPE获取其4in6隧道配置参数并创建隧道的流程,该流程包括以下步骤:The following is a detailed description of the configuration method of the present embodiment, that is, a process of allocating an IPv6 address and a configuration parameter to a CPE by using a DHCPv6 protocol message, and a process for the CPE to obtain its 4in6 tunnel configuration parameter and create a tunnel. The process includes the following steps:
步骤1,参考图9,CPE广播发送DHCPv6-Solicit消息,以请求网络中的DHCPv6服务器为其分配IPv6地址及其他配置参数,其中,其他配置参数可以包括主要是分配4in6隧道创建所需要的参数,如创建Lw4o6所需的对端IPv6地址、分配给lwB4的IPv4地址与PSID(Port-Set Identifier,端口标识符)、IPv6binding prefix;创建MAP-E所需的BMR(Basic Mapping Rule,基本映射规则)/FMR(Forwarding Mapping Rule,转发映射规则)规则参数、BR的IPv6地址;创建MAP-T所需的BMR/FMR规则参数、DMR(Default Mapping Rule,默认映射规则)参数等;Step 1: Referring to FIG. 9, the CPE broadcasts a DHCPv6-Solicit message to request the DHCPv6 server in the network to allocate an IPv6 address and other configuration parameters. The other configuration parameters may include parameters required for the creation of a 4in6 tunnel. For example, the peer IPv6 address required for creating Lw4o6, the IPv4 address assigned to lwB4, and the PSID (Port-Set Identifier), IPv6 binding prefix; the BMR (Basic Mapping Rule) required to create MAP-E. /FMR (Forwarding Mapping Rule) rule parameters, the IPv6 address of the BR; the BMR/FMR rule parameters and the DMR (Default Mapping Rule) parameters required for creating the MAP-T;
其中,该请求消息里封装了本发明可选实施例新定义的container option(OPTION_S46_CONT),并封装有若干子option,其中,若干子option的作用在于请求报文里选择封装各个子option,若响应报文里对应的option有value,则以此判断选择何种4in6隧道模式。如假定存在的组网可能会支持Lw4o6、MAP-E、MAP-T三种模式的隧道,则可以封装OPTION_S46_RULE、OPTION_S46_BR、OPTION_S46_DMR三个子option,若响应报文里OPTION_S46_RULE与OPTION_S46_BR两个子option承载有值,则我们应选择MAP-E隧道模式;若响应报文里OPTION_S46_RULE与OPTION_S46_DMR两个子option承载有值,则应选择MAP-T隧道模式;若仅有OPTION_S46_BR这一个option有值,则我们应选择Lw4o6隧道模式。具体的选择依据参照表1,当然可以根据4in6隧道其他模式,新增扩展子option,如环境可以支持DS-Lite,可以扩展子option64。具体格式如图8所示。The request message encapsulates a container option (OPTION_S46_CONT) newly defined by the optional embodiment of the present invention, and encapsulates a plurality of sub-options, wherein the role of the several sub-options is to select and encapsulate each sub-option in the request message, if the response If the corresponding option in the message has a value, it is used to determine which 4in6 tunnel mode to select. If it is assumed that the existing network may support Lw4o6, MAP-E, and MAP-T tunnels, the three suboptions OPTION_S46_RULE, OPTION_S46_BR, and OPTION_S46_DMR may be encapsulated. If the two options in the response message are OPTION_S46_RULE and OPTION_S46_BR, the value of the sub-option carries the value. , we should choose the MAP-E tunnel mode; if the OPTION_S46_RULE and OPTION_S46_DMR two suboptions carry values in the response message, the MAP-T tunnel mode should be selected; if only OPTION_S46_BR has an option, we should select Lw4o6 Tunnel mode. The specific selection is based on Table 1. Of course, the extended option can be added according to other modes of the 4in6 tunnel. For example, the environment can support DS-Lite, and the sub-option64 can be extended. The specific format is shown in Figure 8.
步骤2,DHCPv6服务器根据该DHCPv6-Solicit消息,向CPE发送DHCPv6-Advertise消息,用以通告为CPE分配的IPv6地址、IPv6地址租期等网络配置参数;Step 2: The DHCPv6 server sends a DHCPv6-Advertise message to the CPE according to the DHCPv6-Solicit message, and advertises the network configuration parameters such as the IPv6 address and the IPv6 address lease period allocated to the CPE.
若该网络环境支持某种4in6隧道,则会将特定的4in6配置参数承载在相应的option选项内,如网络环境支持MAP-E,则option OPTION_S46_RULE 与option OPTION_S46_BR将会承载特定的vlaue。If the network environment supports a 4in6 tunnel, the specific 4in6 configuration parameters are carried in the corresponding option. For example, if the network environment supports MAP-E, then option OPTION_S46_RULE The option OPTION_S46_BR will host a specific vlaue.
步骤3,CPE向DHCPv6服务器发送DHCPv6-Request消息,以请求服务器确认其分配的IPv6地址及其他的配置参数;Step 3: The CPE sends a DHCPv6-Request message to the DHCPv6 server to request the server to confirm the assigned IPv6 address and other configuration parameters.
需要注意的是,该请求消息的option选项与步骤1中的DHCPv6-Solicit请求消息中的option选项一致。It should be noted that the option option of the request message is consistent with the option option in the DHCPv6-Solicit request message in step 1.
步骤4,DHCPv6服务器接收到CPE发送的DHCPv6-Request消息后,若确认将IPv6地址以及相关配置参数分配给该CPE,则返回DHCPv6-Reply消息,该DHCPv6-Reply消息封装有option选项,用于承载IPv6地址及其他配置参数;Step 4: After receiving the DHCPv6-Request message sent by the CPE, the DHCPv6 server returns a DHCPv6-Reply message if it is confirmed that the IPv6 address and related configuration parameters are allocated to the CPE, and the DHCPv6-Reply message encapsulates an option option for carrying IPv6 address and other configuration parameters;
步骤5,CPE解析收到的DHCPv6-Reply报文,提取出其承载的option值,依据这些option值及其所承载的参数,确定CPE应该配置何种模式的4in6隧道。对于选用何种4in6隧道可以简单参照表1,若承载有OPTION_S46_DMR与OPTION_S46_RULE两个option,则选用MAP-T模式,若承载有option——OPTION_S46_BR,则选用Lw4o6隧道模式。Step 5: The CPE parses the received DHCPv6-Reply packet, extracts the option value of the bearer, and determines which mode 4in6 tunnel the CPE should be configured according to the option value and the parameters it carries. For the 4in6 tunnel, you can refer to Table 1. If you have two options OPTION_S46_DMR and OPTION_S46_RULE, select MAP-T mode. If you have option -OPTION_S46_BR, select Lw4o6 tunnel mode.
综上所述,通过本申请提供的一种CPE快速部署4in6隧道业务的方法和系统,本申请CPE通过发送封装有特定option选项的DHCPv6请求消息,外部网络服务器进行响应,该响应消息承载了某种4in6隧道所需要的配置参数信息,CPE通过分析收到响应报文的option来确定配置何种模式的4in6隧道。本申请解决了设备对于4in6隧道模式的选择问题,设备制造商不再需要针对不同的运营商、不同的网络地区定制不同的配置,运营商亦无需担心各个地区网络部署的差异及用户修改隧道配置导致通信异常,即CPE的4in6隧道模式将依据外部网络环境自动调整。通过CPE自适应网络环境完成4in6隧道模式的选择与配置,简单方便,无需运营商或用户进行任何配置就能保证4in6隧道选型的准确性。同时CPE是利用IPv6地址配置参数分配过程中的消息交互完成4in6隧道参数的配置,并未增加CPE与服务器之间额外的消息交互,节约带宽资源,提高网络资源利用率。本申请简化了配置流程,不仅提高了4in6部署效率,还降低了设备制造商与运营商的运行与维护成本。本申请易于实施,不仅省去了预配置或更换配置的操作,亦提高了网络部署的灵活性,实施与维护也将更简单、更经济。 In summary, the CPE of the present application responds by transmitting a DHCPv6 request message encapsulating a specific option option by using the CPE provided by the present application. The response message carries a certain response message. The configuration parameter information required for a 4in6 tunnel, the CPE determines the type of 4in6 tunnel to be configured by analyzing the option of receiving the response packet. The present application solves the problem of selecting a 4in6 tunnel mode for a device. The device manufacturer no longer needs to customize different configurations for different carriers and different network regions. The operator does not need to worry about the difference in network deployment in various regions and the user to modify the tunnel configuration. The communication is abnormal, that is, the CPE's 4in6 tunnel mode will be automatically adjusted according to the external network environment. The selection and configuration of the 4in6 tunnel mode is simple and convenient through the CPE adaptive network environment. The accuracy of the 4in6 tunnel selection can be ensured without any configuration by the operator or the user. At the same time, the CPE uses the message interaction in the IPv6 address configuration parameter allocation process to complete the configuration of the 4in6 tunnel parameter, which does not increase the extra message interaction between the CPE and the server, saves bandwidth resources, and improves network resource utilization. This application simplifies the configuration process, which not only improves the efficiency of 4in6 deployment, but also reduces the operation and maintenance costs of equipment manufacturers and operators. The application is easy to implement, not only saves the operation of pre-configuration or replacement configuration, but also improves the flexibility of network deployment, and the implementation and maintenance will be simpler and more economical.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the application is not limited to any particular combination of hardware and software.
以上所述仅为本发明的可选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only an alternative embodiment of the present invention, and is not intended to limit the present application, and various changes and modifications may be made to the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application are intended to be included within the scope of the present application.
工业实用性Industrial applicability
本申请解决了设备对于4in6隧道模式的选择问题,设备制造商不再需要针对不同的运营商、不同的网络地区定制不同的配置,运营商亦无需担心各个地区网络部署的差异及用户修改隧道配置导致通信异常,即CPE的4in6隧道模式将依据外部网络环境自动调整。通过CPE自适应网络环境完成4in6隧道模式的选择与配置,简单方便,无需运营商或用户进行任何配置就能保证4in6隧道选型的准确性。 The present application solves the problem of selecting a 4in6 tunnel mode for a device. The device manufacturer no longer needs to customize different configurations for different carriers and different network regions. The operator does not need to worry about the difference in network deployment in various regions and the user to modify the tunnel configuration. The communication is abnormal, that is, the CPE's 4in6 tunnel mode will be automatically adjusted according to the external network environment. The selection and configuration of the 4in6 tunnel mode is simple and convenient through the CPE adaptive network environment. The accuracy of the 4in6 tunnel selection can be ensured without any configuration by the operator or the user.

Claims (12)

  1. 一种4in6隧道模式选择方法,包括:A 4in6 tunnel mode selection method, including:
    用户终端设备CPE向服务器发送用于IPv6的动态主机配置协议DHCPv6请求消息;The user terminal device CPE sends a dynamic host configuration protocol DHCPv6 request message for IPv6 to the server;
    所述CPE接收所述服务器针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;The CPE receives the response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter;
    所述CPE根据所述响应消息选择4in6隧道模式。The CPE selects a 4in6 tunnel mode according to the response message.
  2. 根据权利要求1所述的方法,在所述CPE接收所述服务器针对所述DHCPv6请求消息的响应消息的步骤之后,所述方法还包括:The method according to claim 1, after the step of the CPE receiving the response message of the server for the DHCPv6 request message, the method further includes:
    所述CPE向所述服务器发送DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。The CPE sends a DHCPv6 acknowledgment message to the server, wherein the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
  3. 根据权利要求1或2所述的方法,其中,所述4in6隧道模式包括以下至少之一:The method of claim 1 or 2, wherein the 4in6 tunnel mode comprises at least one of the following:
    DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  4. 一种4in6隧道模式选择方法,包括:A 4in6 tunnel mode selection method, including:
    服务器从用户终端设备CPE接收用于IPv6的动态主机配置协议DHCPv6请求消息;The server receives a dynamic host configuration protocol DHCPv6 request message for IPv6 from the user terminal device CPE;
    所述服务器向所述CPE发送针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;所述响应消息为所述CPE选择4in6隧道模式的依据。The server sends a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is a basis for the CPE to select a 4in6 tunnel mode.
  5. 根据权利要求4所述的方法,在所述服务器向所述CPE发送针对所述DHCPv6请求消息的响应消息的步骤之后,所述方法还包括:The method of claim 4, after the step of the server sending a response message to the CPE for the DHCPv6 request message, the method further comprising:
    所述服务器从所述CPE接收DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。The server receives a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
  6. 根据权利要求4或5所述的方法,其中,所述4in6隧道模式包括以下至少之一:The method of claim 4 or 5, wherein the 4in6 tunnel mode comprises at least one of the following:
    DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。 DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  7. 一种4in6隧道模式选择装置,该装置应用于用户终端设备CPE,所述装置包括:A 4in6 tunnel mode selection device is applied to a user terminal device CPE, and the device includes:
    第一发送模块,设置为向服务器发送用于IPv6的动态主机配置协议DHCPv6请求消息;a first sending module, configured to send a dynamic host configuration protocol DHCPv6 request message for IPv6 to the server;
    接收模块,设置为接收所述服务器针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;a receiving module, configured to receive a response message of the server for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter;
    选择模块,设置为根据所述响应消息配置4in6隧道模式。The selection module is configured to configure the 4in6 tunnel mode according to the response message.
  8. 根据权利要求7所述的装置,所述装置还包括:The apparatus of claim 7 further comprising:
    第二发送模块,设置为向所述服务器发送DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。The second sending module is configured to send a DHCPv6 acknowledgment message to the server, wherein the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
  9. 根据权利要求7或8所述的装置,其中,所述4in6隧道模式包括以下至少之一:The apparatus of claim 7 or 8, wherein the 4in6 tunnel mode comprises at least one of:
    DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
  10. 一种4in6隧道模式选择装置,应用于服务器,所述装置包括:A 4in6 tunnel mode selection device is applied to a server, and the device includes:
    第一接收模块,设置为从用户终端设备CPE接收用于IPv6的动态主机配置协议DHCPv6请求消息;a first receiving module, configured to receive a dynamic host configuration protocol DHCPv6 request message for IPv6 from the user terminal device CPE;
    发送模块,设置为向所述CPE发送针对所述DHCPv6请求消息的响应消息,其中,所述响应消息中包括IPv6地址和指定4in6配置参数;所述响应消息为所述CPE选择4in6隧道模式的依据。a sending module, configured to send a response message to the CPE for the DHCPv6 request message, where the response message includes an IPv6 address and a specified 4in6 configuration parameter; the response message is a basis for selecting a 4in6 tunnel mode for the CPE .
  11. 根据权利要求10所述的装置,所述装置还包括:The device of claim 10, the device further comprising:
    第二接收模块,设置为从所述CPE接收DHCPv6确认消息,其中,所述DHCPv6确认消息设置为向所述服务器确认所述IPv6地址和所述指定4in6配置参数。The second receiving module is configured to receive a DHCPv6 acknowledgment message from the CPE, wherein the DHCPv6 acknowledgment message is set to confirm the IPv6 address and the specified 4in6 configuration parameter to the server.
  12. 根据权利要求10或11所述的装置,其中,所述4in6隧道模式包括以下至少之一:The apparatus of claim 10 or 11, wherein the 4in6 tunnel mode comprises at least one of:
    DS-lite、Lightweight 4over6隧道、MAP-T、MAP-E。 DS-lite, Lightweight 4over6 tunnel, MAP-T, MAP-E.
PCT/CN2016/081601 2015-06-29 2016-05-10 4in6 tunnel mode selection method and apparatus WO2017000674A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510372048.X 2015-06-29
CN201510372048.XA CN106330651A (en) 2015-06-29 2015-06-29 4in6 tunnel mode selection method and device

Publications (1)

Publication Number Publication Date
WO2017000674A1 true WO2017000674A1 (en) 2017-01-05

Family

ID=57607739

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081601 WO2017000674A1 (en) 2015-06-29 2016-05-10 4in6 tunnel mode selection method and apparatus

Country Status (2)

Country Link
CN (1) CN106330651A (en)
WO (1) WO2017000674A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224854B (en) * 2018-11-27 2021-09-07 北京华为数字技术有限公司 Working mode selection method, client front-end equipment and storage medium
CN111131047A (en) * 2019-12-30 2020-05-08 江苏有线数据网络有限责任公司 Transition control system and method for realizing transition of home broadband from IPv4 to IPv6

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100202321A1 (en) * 2009-02-11 2010-08-12 Cisco Technology, Inc. IPv6 ADDRESSING OVER NON-IPv6 SYSTEMS
CN102130884A (en) * 2010-01-19 2011-07-20 中兴通讯股份有限公司 System and method for negotiating configuration of Internet protocol version 6 (IPv6) network parameters
CN102158563A (en) * 2010-02-12 2011-08-17 华为技术有限公司 Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
CN103731394A (en) * 2012-10-10 2014-04-16 中国移动通信集团公司 Method and equipment for configuring IPv6 transitional technologies on CPE

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100202321A1 (en) * 2009-02-11 2010-08-12 Cisco Technology, Inc. IPv6 ADDRESSING OVER NON-IPv6 SYSTEMS
CN102130884A (en) * 2010-01-19 2011-07-20 中兴通讯股份有限公司 System and method for negotiating configuration of Internet protocol version 6 (IPv6) network parameters
CN102158563A (en) * 2010-02-12 2011-08-17 华为技术有限公司 Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
CN103731394A (en) * 2012-10-10 2014-04-16 中国移动通信集团公司 Method and equipment for configuring IPv6 transitional technologies on CPE

Also Published As

Publication number Publication date
CN106330651A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US8631100B2 (en) Automatic assignment of hardware addresses within computer networks
US9258699B2 (en) Method for route transmission based on single IPv6 address prefix, and wireless device
US9380020B2 (en) Method for mobile node to dynamically acquire location identifier, and LISP network
WO2014056441A1 (en) Method and device for configuring ipv6 transition technique on cpe
US20220210700A1 (en) Communication method, apparatus, and system
EP2704403A1 (en) Method and device for controlling address configuration manner
US10855491B2 (en) Method for implementing GRE tunnel, access point and gateway
US10194469B2 (en) Enabling different device triggering aspects in a machine to machine communication system
WO2021202966A1 (en) Methods, apparatus, and systems for discovery of edge network management servers
US10303502B2 (en) Creating a virtual machine for an IP device using information requested from a lookup service
WO2017000674A1 (en) 4in6 tunnel mode selection method and apparatus
US20180262389A1 (en) Advertising method and system in network functions virtualization environment
WO2017206575A1 (en) Communication protocol access method, apparatus and system
CN111163463B (en) Method, device, equipment and storage medium for wireless equipment to access router
CN113396575B (en) Method for designating MAC address type by dynamic allocation mechanism
US20230319147A1 (en) Method for application to access network, apparatus, and system
WO2015123947A1 (en) Method and apparatus for delivering local area network information
CN111669309B (en) VxLAN establishing method, wireless controller and switch
CN107547668B (en) Message processing method and device and DHCP server
CN110800268B (en) Supporting mobility and multi-homing of internal transport layers of end hosts
CN108243078B (en) Address allocation method and device
WO2012155424A1 (en) Method and system for multiple address-prefixes assignment
JP5154345B2 (en) Wireless access network system
WO2022083610A1 (en) Ip address allocation method, apparatus and system
JP5261083B2 (en) Wireless access network system

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

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

Country of ref document: EP

Kind code of ref document: A1