WO2012109867A1 - 用于路由协议配置的方法、装置及系统 - Google Patents

用于路由协议配置的方法、装置及系统 Download PDF

Info

Publication number
WO2012109867A1
WO2012109867A1 PCT/CN2011/077831 CN2011077831W WO2012109867A1 WO 2012109867 A1 WO2012109867 A1 WO 2012109867A1 CN 2011077831 W CN2011077831 W CN 2011077831W WO 2012109867 A1 WO2012109867 A1 WO 2012109867A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration data
configuration
routing protocol
request information
packet
Prior art date
Application number
PCT/CN2011/077831
Other languages
English (en)
French (fr)
Inventor
李广鹏
刘颖
李凤凯
徐小飞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201180001959.1A priority Critical patent/CN103155495B/zh
Priority to PCT/CN2011/077831 priority patent/WO2012109867A1/zh
Publication of WO2012109867A1 publication Critical patent/WO2012109867A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements

Definitions

  • the present invention relates to a Virtual Private Network (VPN), and more specifically, to a Customer Edge (CE) device and a Provider Edge (hereinafter referred to as PE) in a VPN. ) Configuration of routing protocols between devices.
  • VPN Virtual Private Network
  • CE Customer Edge
  • PE Provider Edge
  • a routing protocol is configured between the user edge device and the provider edge device connected to it, such as the Border Gateway Protocol (BGP), Open Shortest Path First (OSPF). .
  • Border Gateway Protocol Border Gateway Protocol
  • OSPF Open Shortest Path First
  • the current configuration method implements the negotiation of the configuration parameters offline, and then the network administrator configures the CE device and the PE device separately. This method is inefficient. In the era of cloud computing, it is difficult to meet the dynamic changes of sites in the data center and the need to quickly access VPNs. Summary of the invention
  • An aspect of the present invention provides a method for configuring a routing protocol, where the method includes: receiving a DHCPREQUEST packet sent by a user edge CE device, where the configuration information request information of the CE device is embedded in the DHCPREQUEST packet and Configuration data required by the provider edge PE device; acquiring and storing configuration data request information of the CE device and configuration data required by the PE device; Setting the data request information to acquire the configuration data requested by the CE device, and embedding the configuration data requested by the CE device into a DHCPACK message; sending the DHCPACK message to the CE device, where the DHCPACK The packet enables the CE device to perform routing protocol configuration according to the configuration data requested by the CE device, and configures the routing protocol for the PE device according to the configuration data required by the PE device.
  • An aspect of the present invention provides an apparatus for routing protocol configuration on a CE device side, where the apparatus includes: a data embedding unit, configured to use configuration data request information of the CE device and a configuration required by the PE device The data is embedded in the DHCPREQUEST packet; and the CE device configuration unit is configured to obtain the configuration data requested by the CE device from the DHCPACK packet, and perform the CE device according to the configuration data requested by the CE device. Routing protocol configuration.
  • An aspect of the present invention provides an apparatus for routing protocol configuration on a PE device side, where the apparatus includes: a DHCP access unit, configured to acquire and store configuration data request information of the CE device, and the PE device The configuration data required for obtaining the configuration data requested by the CE device according to the configuration data request information of the CE device, and embedding the configuration data requested by the CE device into a DHCPACK packet; and configuring the PE device And a unit, configured to perform routing protocol configuration on the PE device according to configuration data required by the PE device.
  • An aspect of the present invention provides a system for routing protocol configuration, the system comprising: means for routing protocol configuration on a CE device side and means for routing protocol configuration on a PE device side.
  • the scheme for automatically configuring the routing protocol between the CE device and the PE device of the invention reduces the trouble of coordinating the configuration parameters under the manual line and improves the efficiency of the routing protocol configuration.
  • FIG. 1 shows a flow chart of a method in accordance with an embodiment of the present invention.
  • Figure 2 shows a schematic diagram of a device in accordance with an embodiment of the present invention.
  • Figure 3 shows a schematic diagram of a device in accordance with an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a system in accordance with an embodiment of the present invention.
  • Figure 5 shows a schematic diagram of a system in accordance with an embodiment of the present invention.
  • FIG. 1 is a flow chart of a method in accordance with an embodiment of the present invention. The method includes:
  • 102 Receive a DHCP REQUEST message sent by the CE device, where the configuration data request information of the CE device and the configuration data required by the PE device are embedded in the DHCPREQUEST message.
  • the CE device determines the configuration data request information of the CE device and the configuration data required by the PE device according to the type of the routing protocol to be configured.
  • the configuration data request information of the CE device and the configuration data required by the PE device are embedded in the OPTION field of the DHCPREQUEST message.
  • the PE device receives the DHCPREQUEST packet from the CE device.
  • the configuration data request information of the CE device refers to a request.
  • the request includes requesting the PE device to provide a data type for completing the CE device side routing protocol configuration.
  • the PE device returns the configuration data requested by the CE device according to the configuration data request information of the CE device.
  • the type of data included in the configuration data request information of the CE device varies according to the type of routing protocol to be configured.
  • the data type included in the configuration data request information of the CE device may be an AS-Number, which is used to request the PE device to return the AS-Number of the PE device.
  • the data type can also be a VPN-name, which is used to request the PE device to return the VPN-name of a VPN to which the CE device is to be configured. Understandably, since one PE device may support multiple VPNs, Use different VPN-names to identify different VPNs.
  • the configuration data required by the PE device may include the IP address of the CE device and the AS-Number of the CE device.
  • the PE device after receiving the DHCPREQUEST packet from the CE device, the PE device obtains the configuration data request information of the CE device and the configuration data required by the PE device, and then stores the two pieces of data.
  • the DHCPREQUEST packet is processed by the DHCP server in the same way as the standard packet flow of the Dynamic Host Configuration Protocol (DHCP).
  • the DHCP server constructs a DHCPACK packet.
  • the DHCP server can be on the PE device or not on the PE device. If the DHCP server is not on the PE, the PE device forwards DHCP packets as a DHCP relay agent.
  • the PE device obtains the configuration data requested by the CE device according to the configuration data request information of the previously stored CE device, and then embeds the configuration data requested by the C E device into the 'J DHCPACK packet.
  • the DHCP ACK message is sent to the CE device, where the DHCP ACK message causes the CE device to perform routing protocol configuration according to the configuration data requested by the CE device.
  • the CE device obtains the configuration data requested by the CE device from the DHCPACK packet.
  • the CE device performs routing protocol configuration on the CE device according to the requested configuration data.
  • the PE device configuration unit performs a routing protocol configuration on the PE device according to the configuration data required by the previously stored PE device.
  • the following is a device for routing protocol configuration between a CE device and a PE device. Embodiments of the system are described separately.
  • an embodiment of an apparatus for configuring a CE device side routing protocol includes:
  • a data embedding unit (202), configured to embed configuration data request information of the CE device and configuration data required by the PE device into a DHCPREQUEST packet;
  • the CE device configuration unit (204) is configured to obtain the configuration data requested by the CE device from the DHCP ACK message, and perform routing protocol configuration on the CE device according to the configuration data requested by the CE device.
  • the configuration data request information of the CE device and the configuration data required by the PE device are embedded in the OPTION field of the DHCPREQUEST.
  • an embodiment of an apparatus for configuring a PE device side routing protocol includes:
  • a DHCP access unit (302), configured to acquire and store configuration data request information of the CE device and configuration data required by the PE device, and configured to acquire the CE according to the configuration data request information of the CE device.
  • the PE device configuration unit (304) is configured to perform routing protocol configuration on the PE device according to configuration data required by the PE device.
  • the apparatus in this embodiment may further include a DHCP server.
  • the configuration data requested by the CE device is embedded in the OPTION field in the DHCPACK message.
  • a system in accordance with an embodiment of the present invention may include the apparatus of Figures 2 and 3.
  • the DHCP server (410) runs on the PE device, and the data embedding unit (402) of the DHCP is on the CE device. Perform the necessary analysis and processing of the DHCP packets in the DHCP access unit of the PE device to implement the interaction between the device configuration data on both sides of the CE device and the PE device.
  • the CE device configuration unit (404) and the PE device configuration unit (304) perform routing protocol configuration on the respective side devices according to the respective obtained configuration data.
  • the data embedding unit (402) of the CE device embeds the configuration data request information of the CE device and the configuration data required by the PE device into the OPTION field of the DHCPREQUEST message.
  • the CE device sends the DHCPREQUEST packet to the PE device.
  • the PE After receiving the DHCPREQUEST packet, the PE obtains and stores the configuration data request information of the CE device and the configuration data required by the PE device. Then, the DHCP server (410) obtains the DHCPREQUEST packet, processes the DHCPREQUEST packet, and constructs a DHCPACK packet.
  • the DHCP access unit (406) obtains the DHCP ACK message from the DHCP server (410), and the DHCP access unit obtains the configuration data requested by the CE device according to the configuration data request information of the previously stored CE device, and the configuration data is obtained. It is embedded in a DHCPACK packet and sent to the CE device.
  • the CE device configuration unit (404) parses the configuration data requested by the CE device, and configures the routing protocol for the CE device according to the data.
  • the PE device configuration unit (304) obtains the configuration data required by the previously stored PE device, according to the data pair. The PE device performs routing protocol configuration.
  • Figure 5 shows a schematic diagram of a system in accordance with another embodiment of the present invention.
  • the DHCP server (510) is not on the PE device.
  • the PE device acts as a DHCP relay agent to forward DHCP messages.
  • the data embedding unit (502) of the CE device embeds the configuration data request information of the CE device and the configuration data required by the PE device into the OPTION field of the DHCPREQUEST message.
  • the CE device sends the DHCPREQUEST packet to the PE device.
  • the PE obtains and stores the configuration data request information of the CE device and the configuration data required by the PE device.
  • the PE device sends a DHCPREQUEST message to the DHCP server (510).
  • the DHCP server (510) processes the DHCPREQUEST packet and constructs a DHCPACK packet.
  • the DHCP server (510) sends the DHCPACK message to the DHCP access unit (506) of the PE device.
  • the DHCP access unit obtains the configuration data requested by the CE device according to the previously configured configuration data request information of the CE device, and embeds the configuration data in the DHCPACK message and sends the configuration data to the CE device.
  • the CE device After the CE device receives the DHCPACK packet, the CE device is configured with the DHCP device.
  • the setting unit (504) parses and obtains the configuration data requested by the CE device, and performs routing protocol configuration on the CE device according to the data.
  • the PE device configuration unit (508) obtains the configuration data required by the previously stored PE device, according to the data pair. The PE device performs routing protocol configuration.
  • the Dynamic Host Setup Protocol is a network protocol for IP address allocation in the network.
  • the DHCP client requests an IP address and the DHCP server assigns an IP address.
  • a routing protocol between a CE device and a PE device is automatically configured by extending the function of DHCP. After IP configuration through DHCP, complete the routing protocol configuration between the CE device and the PE device.
  • the OPTION field of a DHCP message allows DHCP messages to carry additional information.
  • the OPTION field of DHCP can be composed of one or more subdomains. Each subdomain has a structure of Type-Length-Value (TLV), where Type can be identified by OPTION CODE, Value is used to load the value of data, and Length is used to define Value. Effective length
  • one or more OPTIONs may be added to the DHCP message to carry information for completing the routing protocol configuration between the CE device and the PE device.
  • the OPTION added to the DHCP packet can be a new OPTION or an existing OPTION.
  • the configuration data request information of the CE device and the configuration data required by the PE device may be embedded in the newly added OPTION of the DHCP REQUEST packet, and the configuration data requested by the CE device obtained by the PE device may be embedded in the DHCPACK packet.
  • Added in OPTION may be performed by the CE device and the PE device.
  • embodiments of the invention may relate to the following OPTION:
  • the PE device acquires the CE setting based on the stored configuration data request information of the CE device. Prepare the requested configuration data, and load the configuration data in the DHCPACK message.
  • OPTION CODE is 55, defined in RFC2132.
  • the configuration data request information of the CE device is loaded by the domain in the DHCPREQUEST message.
  • the configured routing protocol may be BGP, OSPF, or the like. Added some fields in DHCPREQUEST and DHCPACK messages to configure BGP and OSPF.
  • the new BGP Information field can use OPTION CODE of 214.
  • the BGP information field is used by the CE device and the PE device to exchange BGP-related configuration information.
  • the CODE ( 0-255 ) of the extended subdomain can be defined as needed, but it needs to follow the Type-Length-Value syntax.
  • the sub-domain CODE 1 is defined as AS-Number, indicating that the sub-domain is used to transmit the AS-Number of the PE device:
  • OSPF Information i or OPTION CODE can be 215.
  • the OSPF information field is used by the CE device and the PE device to exchange OSPF-related configuration information. If there is more than one configuration information, the encapsulation mode is the same as that of the above BGP Information domain.
  • a complete example of OSPF Information OPTION is shown below.
  • the subdomain CODE 1 is defined as area-id, which indicates that the subdomain is used to transmit the area-id of the PE device:
  • routing protocols include routing information protocols.
  • RIP in English
  • IS-IS Intermediate System to Intermediate System Routing Protocol
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented as a combination of computing components, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, a combination of one or more microprocessors and a DSP core, or any other such configuration.

Landscapes

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

Description

用于路由协议配置的方法、 装置及系统 技术领域
本发明涉及虚拟专用网 (Virtual Private Network, 英文简称为 VPN ), 且更具体而言, 涉及 VPN中用户边缘(Customer Edge, 英 文简称为 CE )设备与提供商边缘(Provider Edge, 英文简称为 PE ) 设备之间路由协议的配置。 背景技术
随着越来越多的企业选择通过 VPN将本企业各地分支机构互联 起来,传统的人工开通 VPN的方式因其手续复杂及流程緩慢, 而大大 制约了 VPN业务的进一步发展。 云计算的发展和数据中心的流行, 更 对移动的 VPN站点的配置提出了更高的要求。
当私网站点作为 VPN站点接入运营商网络时, 需要通过运营商 的网络将私网内部的路由信息发布到该 VPN的其他站点, 同时需要 学习其他站点的路由信息,因而需要在私网站点的用户边缘设备和与 之相连的提供商边缘设备之间配置路由协议, 如边界网关协议 ( Border Gateway Protocol , 英文简称为 BGP), 开放最短路径优先 ( Open Shortest Path First, 英文简称为 OSPF)等。
目前的配置方法实行的是线下完成配置参数的协商,然后由网络 管理员分别配置 CE设备和 PE设备。 这种方法效率低下, 在云计算 时代,很难满足数据中心内站点动态变化以及快速接入 VPN的需求。 发明内容
本发明的一方面提供一种路由协议配置的方法, 所述方法包括: 接收自用户边缘 CE设备发送的 DHCPREQUEST报文, 所述 DHCPREQUEST报文中被嵌入了所述 CE设备的配置数据请求信息及 提供商边缘 PE设备所需的配置数据; 获取并存储所述 CE设备的配置 数据请求信息和所述 PE设备所需的配置数据; 根据所述 CE设备的配 置数据请求信息获取所述 CE设备所请求的配置数据, 并将所述 CE设 备所请求的配置数据嵌入到 DHCPACK报文中; 将所述 DHCPACK报 文发送至所述 CE设备, 其中所述 DHCPACK报文使所述 CE设备根据 所述 CE设备所请求的配置数据进行路由协议配置; 及根据所述 PE设 备所需的配置数据对所述 PE设备进行路由协议配置。
本发明的一方面提供一种用于 CE设备侧的路由协议配置的装 置, 所述装置包括: 数据嵌入单元, 用于将所述 CE设备的配置数据 请求信息及所述 PE设备所需的配置数据嵌入到 DHCPREQUEST报文 中; 及 CE设备配置单元, 用于从 DHCPACK报文中获得所述 CE设备 所请求的配置数据, 并根据所述 CE设备所请求的配置数据来对所述 CE设备进行路由协议配置。
本发明的一方面提供一种用于 PE设备侧的路由协议配置的装 置, 所述装置包括: DHCP接入单元, 用于获取并存储所述 CE设备的 配置数据请求信息和所述 PE设备所需的配置数据, 且用于根据所述 CE设备的配置数据请求信息获取所述 CE设备所请求的配置数据并将 所述 CE设备所请求的配置数据嵌入到 DHCPACK报文中;及 PE设备配 置单元, 用于根据所述 PE设备所需的配置数据对所述 PE设备进行路 由协议配置。
本发明的一方面提供一种路由协议配置的系统, 所述系统包括: 用于 CE设备侧的路由协议配置的装置和用于 PE设备侧的路由协议配 置的装置。
本发明的自动配置 CE设备与 PE设备之间路由协议的方案, 减少 了人工线下协调配置参数的麻烦, 提高了路由协议配置的效率。 附图说明
图 1展示的是根据本发明的一实施例的方法流程图
图 2展示的是根据本发明的一实施例的装置示意图
图 3展示的是根据本发明的一实施例的装置示意图
图 4展示的是根据本发明的一实施例的系统示意图 图 5展示的是根据本发明的一实施例的系统示意图。
结合附图阅读时将更好地了解以上发明内容以及以下本发明的 某些实施例的详细描述。 出于说明本发明的目的,在图中展示某些实 施例。 然而, 应了解, 本发明不限于附图中所展示的布置和手段。 具体实施方式
下文结合附图所阐述的详细说明意在说明本发明的各种实施例, 而非代表本发明仅可实施为这些实施例。详细说明包括具体细节, 以 便达成对本发明的透彻了解。 然而, 所属领域的技术人员应了解, 本 发明的实施也可以不使用这些具体细节。在某些实例中, 以方块图的 形式显示各众所周知的结构及组件, 以免淡化对本发明的说明。
图 1 展示的是根据本发明的一实施例的方法流程图。 该方法包 括:
102 : 接收自 CE 设备发送的 DHCPREQUEST 报文, 所述 DHCPREQUEST报文中被嵌入了所述 CE设备的配置数据请求信息 及所述 PE设备所需的配置数据。
CE设备根据需要配置的路由协议的类型确定 CE设备的配置数 据请求信息及 PE设备所需的配置数据。 CE设备的配置数据请求信 息及 PE 设备所需的配置数据被嵌入到 DHCPREQUEST 报文的 OPTION域中。 PE设备接收来自该 CE设备的 DHCPREQUEST报文。
CE设备的配置数据请求信息指的是一种请求。 该请求中包含请 求 PE设备提供用于完成 CE设备侧路由协议配置的数据类型。 在后续 过程中, PE设备会根据该 CE设备的配置数据请求信息返回 CE设备所 请求的配置数据。 根据需要配置的路由协议的种类, CE设备的配置 数据请求信息中包含的数据类型有所不同。例如,在 BGP配置时, CE 设备的配置数据请求信息中所包含的数据类型可以是 AS-Number,其 用于请求 PE设备返回该 PE设备的 AS-Number。 该数据类型还可以是 VPN-name,其用于请求 PE设备返回 CE设备将要配置到的某个 VPN的 VPN-name。 可以理解的是, 由于一个 PE设备可能支持多个 VPN, 所 以用不同的 VPN-name来识别不同的 VPN。 此外, PE设备所需的配置 的数据, 这些数据可以包含 CE设备的 IP地址和 CE设备的 AS-Number。
104:获取并存储所述 CE设备的配置数据请求信息和所述 PE设备 所需的配置数据。
根据本实施例, PE设备收到来自 CE设备的 DHCPREQUEST报文 后, 获取 CE设备的配置数据请求信息及 PE设备所需的配置数据, 然 后将这两部分数据存储起来。
同动态主机设置协议 ( Dynamic Host Configuration Protocol , DHCP )的标准报文流程一样, DHCPREQUEST报文由 DHCP服务器 处理。 DHCP服务器构造 DHCPACK报文。 可选地, DHCP服务器可以 在 PE设备上, 也可以不在 PE设备上。 如果 DHCP服务器不在 PE设备 上, 则 PE设备作为 DHCP中继代理转发 DHCP报文。
106:根据所述 CE设备的配置数据请求信息获取所述 CE设备所请 求的配置数据,并将所述 CE设备所请求的配置数据嵌入到 DHCPACK 报文中。
PE设备根据之前存储的 CE设备的配置数据请求信息获取 CE设 备所请求的配置数据, 然后将 C E设备所请求的配置数据嵌入 'J DHCPACK报文中。
108 : 将所述 DHCPACK报文发送至所述 CE设备, 其中所述 DHCPACK报文使所述 CE设备根据所述 CE设备所请求的配置数据进 行路由协议配置。
CE设备从 DHCPACK报文中获得 CE设备所请求的配置数据。 CE 设备根据所请求的配置数据对该 CE设备进行路由协议配置。
110: 根据所述 PE设备所需的配置数据对所述 PE设备进行路由协 议配置。
可选地, 在获得 DHCPACK报文之后, PE设备配置单元根据之前 存储的 PE设备所需的配置数据对所述 PE设备进行路由协议配置。
下面就用于 CE设备与 PE设备之间进行路由协议配置的装置和 系统的实施例分别进行描述。
参阅图 2, 本发明所提供的 CE设备侧路由协议配置的装置的实 施例包括:
数据嵌入单元(202 ), 用于将所述 CE设备的配置数据请求信息 及所述 PE设备所需的配置数据嵌入到 DHCPREQUEST报文中; 及
CE设备配置单元( 204 ), 用于从 DHCPACK报文中获得所述 CE设 备所请求的配置数据, 并根据所述 CE设备所请求的配置数据对所述 CE设备进行路由协议配置。
在本实施例中,所述 CE设备的配置数据请求信息及所述 PE设备所 需的配置数据被嵌入到 DHCPREQUEST的 OPTION域中。
参阅图 3, 本发明所提供的 PE设备侧路由协议配置的装置的实施 例包括:
DHCP接入单元(302 ), 用于获取并存储所述 CE设备的配置数据 请求信息和所述 PE设备所需的配置数据, 且用于根据所述 CE设备的 配置数据请求信息获取所述 CE设备所请求的配置数据, 并将所述 CE 设备所请求的配置数据嵌入到 DHCPACK报文中;
PE设备配置单元( 304 ), 用于根据所述 PE设备所需的配置数据对 所述 PE设备进行路由协议配置。
可选地, 本实施例的装置还可以进一步包含 DHCP服务器。
在本实施例中, CE设备所请求的配置数据被嵌入到 DHCPACK 报文中的 OPTION域中。
参阅图 4, 根据本发明一实施例的系统可以包含图 2和图 3的装 置。
在本实施例中, DHCP服务器( 410 )运行在 PE设备上, DHCP 的数据嵌入单元( 402 )在 CE设备上。 在 PE设备的 DHCP接入单 元中对 DHCP报文进行必要的解析和处理, 以实现 CE设备和 PE设 备两侧设备配置数据的交互。 CE设备配置单元(404 )和 PE设备配 置单元(304 )根据各自得到的配置数据对各自侧设备进行路由协议 的配置。 具体而言, CE设备的数据嵌入单元(402 )将 CE设备的配置数 据请求信息和 PE设备所需的配置数据嵌入到 DHCPREQUEST报文 的 OPTION域中。 CE设备将该 DHCPREQUEST报文发送给 PE设备。 PE在收到该 DHCPREQUEST报文后, 获取并存储 CE设备的配置数 据请求信息和 PE设备所需的配置数据。 然后, DHCP服务器 (410 ) 获取该 DHCPREQUEST报文, 处理该 DHCPREQUEST报文并构造 DHCPACK报文。 然后 DHCP接入单元( 406 )获取来自 DHCP服务 器 (410 ) 的 DHCPACK报文, DHCP接入单元根据先前所存储的 CE设备的配置数据请求信息获得 CE设备所请求的配置数据, 并将 该配置数据嵌入到 DHCPACK报文中发送给 CE设备。 当 CE设备收 到 DHCPACK报文后, CE设备配置单元( 404 )解析获得 CE设备所 请求的配置数据, 并依此数据对 CE设备进行路由协议配置。 另一方 面, 当 DHCP接入单元(406 ) 收到来自 DHCP服务器 (410 ) 的 DHCPACK报文后, PE设备配置单元( 304 )获取先前所存储的 PE 设备所需的配置数据, 依此数据对 PE设备进行路由协议配置。
图 5展示了本发明另一实施例的系统示意图。
参阅图 5, 在本实施例中, DHCP服务器(510 )不在 PE设备上。 PE设备设备作为 DHCP中继代理进行 DHCP 文的转发。
具体而言, CE设备的数据嵌入单元( 502 )将 CE设备的配置数 据请求信息和 PE设备所需的配置数据嵌入到 DHCPREQUEST报文 的 OPTION域中。 CE设备将该 DHCPREQUEST报文发送给 PE设备。 PE在收到该 DHCPREQUEST报文后, 获取并存储 CE设备的配置数 据请求信息和 PE 设备所需的配置数据。 然后, PE 设备将 DHCPREQUEST报文发送给 DHCP服务器( 510 )。 DHCP服务器( 510 ) 处理 DHCPREQUEST报文并构造 DHCPACK报文。 DHCP服务器 ( 510 )将该 DHCPACK报文发送给 PE设备的 DHCP接入单元( 506 )。 DHCP接入单元根据先前所存储的 CE设备的配置数据请求信息获得 CE设备所请求的配置数据, 并将该配置数据嵌入到 DHCPACK报文 中发送给 CE设备。 当 CE设备收到 DHCPACK报文后, CE设备配 置单元(504 )解析获得 CE设备所请求的配置数据, 并依此数据对 CE设备进行路由协议配置。 另一方面, 当 DHCP接入单元( 506 ) 收到来自 DHCP服务器(510 )的 DHCPACK报文后, PE设备配置 单元( 508 )获取先前所存储的 PE设备所需的配置数据, 依此数据 对 PE设备进行路由协议配置。
为便于理解, 下面就 DHCPREQUEST报文和 DHCPACK报文中 的 OPTION域对本发明的实施例作进一步的描述。
动态主机设置协议是用于网络中 IP地址分配的网络协议。 根据 该协议, DHCP客户端请求 IP地址, DHCP服务器 分配 IP地址。根 据本发明的实施例,通过扩展 DHCP的功能来实现自动地配置 CE设 备与 PE设备间的路由协议。 在通过 DHCP进行 IP配置的同时, 完 成 CE设备与 PE设备之间的路由协议配置
DHCP报文的 OPTION域使 DHCP 报文可携带额外的信息。 DHCP 的 OPTION 域可以由一个或多个子域组成, 每个子域具有 Type-Length-Value ( TLV ) 的结构, 其中 Type可用 OPTION CODE 来标识, Value用于装载数据的值, 而 Length用于定义 Value的有效 长度
根据本发明的实施例, 可以在 DHCP 报文中加入一个或多个 OPTION来携带用于完成 CE设备与 PE设备之间路由协议配置的信 息。 上述加入 DHCP报文中的 OPTION可以是新增的 OPTION, 也 可以是已有的 OPTION。 例如, 可将 CE设备的配置数据请求信息和 PE设备所需的配置数据嵌入 DHCPREQUEST报文的新增的 OPTION 中, 同时可将 PE设备获得的 CE设备所请求的配置数据嵌入到 DHCPACK报文中的新增的 OPTION中。
可选地, 本发明的实施例可涉及以下 OPTION:
( 1 ) 用于传送厂商特定信息 Vendor Specific Information 的 OPTION。
OPTION CODE为 43, 在 RFC2132中定义。 根据本发明的实施 例,基于所存储的 CE设备的配置数据请求信息, PE设备获取 CE设 备所请求的配置数据, 并将该配置数据装载在 DHCPACK报文中的
Vendor Specific Information域中。
( 2 )用于传送请求参数列表 Parameter Request List的 OPTION。 OPTION CODE为 55,在 RFC2132中定义。本发明的实施例中, 通过 DHCPREQUEST报文中的该域来装载 CE设备的配置数据请求 信息。
( 3 ) 用于路由协议配置信息 (Routing Protocol Configuration Information ) 的 OPTION。
在本发明的实施例中, 配置的路由协议可以是 BGP、 OSPF等。 在 DHCPREQUEST报文和 DHCPACK报文中新增一些域用来配置 BGP、 OSPF。
举例而言, 新增的 BGP Information域可以选用 OPTION CODE 为 214。 BGP Information域被 CE设备和 PE设备用来交换 BGP相关 的配置信息。
如果配置信息不止一项, 则需要使用嵌套的方式封装:
扩展的子域的 CODE ( 0-255 ) 可以按照实际需要定义, 但需要 遵循 Type-Length- Value语法。
若新增 BGP Information域来配置 BGP,则该 OPTION的完整示 例如下所示,子域 CODE 1定义为 AS-Number,表示该子域用于传送 PE设备的 AS-Number:
Figure imgf000010_0001
若新增 OSPF Information域来配置 OSPF。 举例来说, 该 OSPF Information i或可以选用 OPTION CODE为 215。 该 OSPF Information 域被 CE设备和 PE设备用来交换 OSPF相关的配置信息。 如果配置 信息不止一项, 则封装的方式同上述的 BGP Information域的配置方 OSPF Information OPTION的完整示例如下所示, 子域 CODE 1 定义为 area-id, 表示该子域用于传送 PE设备的 area-id:
Figure imgf000011_0001
本领域的技术人员应理解的是, 除了 OSPF和 BGP两种路由协 议之外, 常见的路由协议还有路由信息协议( Routing information
Protocol, 英文简称为 RIP ) 以及中间系统到中间系统的路由选择协 议 ( Intermediate System to Intermediate System Routing Protocol, 英文 简称为 IS-IS )。 这些路由协议都可以用在 CE设备和 PE设备设备之 间, 利用本发明所述实施例的方法均可以实现自动配置; 此外, 新增 的 OPTION的的 OPTION CODE可以在 130-254之间选择。
结合本文所揭示实施例阐述的各种例示性逻辑块、 单元、 电路、 元件及 /或组件可通过通用处理器、 数字信号处理器 (DSP )、 应用专 用集成电路( ASIC )、 现场可编程门阵列 ( FPGA )或其它可编程逻 辑组件、 离散门或晶体管逻辑、 离散硬件组件、 或设计用于执行本文 所述功能的其任何组合来实施或执行。 通用处理器可为微处理器,但 另一选择为, 处理器也可为任何常规处理器、 控制器、 微控制器、 或 状态机。 处理器也可实施为计算组件的组合, 例如 DSP与微处理器的 组合、多个微处理器的组合、一个或多个微处理器与 DSP核心的组合、 或任何其它这种配置。
本领域普通技术人员可以理解实现上述实施例方法中的全部或 部分步骤是可以通过程序来指令相关的硬件完成,该程序可以存储于 一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储 器, 磁盘或光盘等。
以上对本发明所提供的用于路由协议配置的方法、 装置及系统 进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的 思想, 在具体实施方式及应用范围上均会有改变之处, 因此, 本说明 书内容不应理解为对本发明的限制。

Claims

权 利 要 求 书
1、 一种路由协议配置的方法, 其特征在于, 所述方法包括: 接收自用户边缘 CE设备发送的 DHCPREQUEST报文, 所述
DHCPREQUEST报文中被嵌入了所述 CE设备的配置数据请求信息及 提供商边缘 PE设备所需的配置数据;
获取并存储所述 CE设备的配置数据请求信息和所述 PE设备所需 的配置数据;
根据所述 CE设备的配置数据请求信息获取所述 CE设备所请求的 配置数据,并将所述 CE设备所请求的配置数据嵌入到 DHCPACK报文 中;
将所述 DHCPACK报文发送至所述 CE设备, 其中所述 DHCPACK 报文使所述 CE设备根据所述 CE设备所请求的配置数据进行路由协议 配置; 及
根据所述 PE设备所需的配置数据对所述 PE设备进行路由协议配
2、 根据权利要求 1所述的方法, 其特征在于, 其中, 求信息及所述 PE设备所需的配置数据包括: 扩展所述 请求信息及所述 PE设备所需的配置数据。
3、 根据权利要求 1所述的方法, 其特征在于, 其中,
将所述 CE设备所请求的配置数据嵌入到 DHCPACK报文中包括: 将所述 CE设备所请求的配置数据嵌入到 DHCPACK报文的 OPTION域中。
4、 一种用于 CE设备侧的路由协议配置的装置, 其特征在于, 所 述装置包括:
数据嵌入单元, 用于将所述 CE设备的配置数据请求信息及所述 PE设备所需的配置数据嵌入到 DHCPREQUEST报文中; 及
CE设备配置单元, 用于从 DHCPACK报文中获得所述 CE设备所 请求的配置数据, 并根据所述 CE设备所请求的配置数据来对所述 CE 设备进行路由协议配置。
5、 根据权利要求 4所述的装置, 其特征在于, 其中,
将所述 CE设备的配置数据请求信息及所述 PE设备所需的配置数 据嵌入到 DHCPREQUEST报文中包括: 通过所述 DHCPREQUEST报 文中的 OPTION域将所述 CE设备的配置数据请求信息及所述 PE设备 所需的配置数据嵌入到所述 DHCPREQUEST报文中。
6、 一种用于 PE设备侧的路由协议配置的装置, 其特征在于, 所 述装置包括:
DHCP接入单元, 用于获取并存储所述 CE设备的配置数据请求信 息和所述 PE设备所需的配置数据, 且用于根据所述 CE设备的配置数 据请求信息获取所述 CE设备所请求的配置数据并将所述 CE设备所请 求的配置数据嵌入到 DHCPACK报文中; 及
PE设备配置单元, 用于根据所述 PE设备所需的配置数据对所述 PE设备进行路由协议配置。
7、 根据权利要求 6所述的装置, 其进一步包括 DHCP服务器。
8、 根据权利要求 6或 7所述的装置, 其特征在于, 其中
根据所述 CE设备的配置数据请求信息来获取所述 CE设备所请求 的配置数据并将其嵌入到 DHCPACK报文中包括: 通过所述 DHCPACK报文中的 OPTION域将所述 CE设备所请求的配置数据嵌入 到所述 DHCPACK报文中。
9、 一种路由协议配置系统, 其特征在于, 所述系统包括: 如权利要求 4-5中任一项所述的装置及如权利要求 6-8中任一项所述 的装置。
PCT/CN2011/077831 2011-07-30 2011-07-30 用于路由协议配置的方法、装置及系统 WO2012109867A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180001959.1A CN103155495B (zh) 2011-07-30 2011-07-30 用于路由协议配置的方法、装置及系统
PCT/CN2011/077831 WO2012109867A1 (zh) 2011-07-30 2011-07-30 用于路由协议配置的方法、装置及系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/077831 WO2012109867A1 (zh) 2011-07-30 2011-07-30 用于路由协议配置的方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2012109867A1 true WO2012109867A1 (zh) 2012-08-23

Family

ID=46671936

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/077831 WO2012109867A1 (zh) 2011-07-30 2011-07-30 用于路由协议配置的方法、装置及系统

Country Status (2)

Country Link
CN (1) CN103155495B (zh)
WO (1) WO2012109867A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015021834A1 (zh) * 2013-08-12 2015-02-19 华为技术有限公司 静态路由的下发方法及靠近用户侧的提供商的边缘设备
US10805292B2 (en) 2018-02-19 2020-10-13 Fmr Llc Secure authentication and network access management for mobile computing devices

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103733600A (zh) * 2013-06-28 2014-04-16 华为技术有限公司 一种建立链路的方法、节点及装置
ES2931775T3 (es) 2018-01-15 2023-01-02 Ericsson Telefon Ab L M Selección de instancia de función de red

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044265A1 (en) * 2003-07-04 2005-02-24 France Telecom Method for automatic configuration of an access router compatible with the DHCP protocol, for specific automatic processing of IP flows from a client terminal
US20080279116A1 (en) * 2005-06-28 2008-11-13 France Telecom Method For Obtaining Configuration Data For a Terminal By Using the Dhcp Protocol
US20100287266A1 (en) * 2009-05-07 2010-11-11 Rajiv Asati Automated network device provisioning using dynamic host configuration protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044265A1 (en) * 2003-07-04 2005-02-24 France Telecom Method for automatic configuration of an access router compatible with the DHCP protocol, for specific automatic processing of IP flows from a client terminal
US20080279116A1 (en) * 2005-06-28 2008-11-13 France Telecom Method For Obtaining Configuration Data For a Terminal By Using the Dhcp Protocol
US20100287266A1 (en) * 2009-05-07 2010-11-11 Rajiv Asati Automated network device provisioning using dynamic host configuration protocol

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015021834A1 (zh) * 2013-08-12 2015-02-19 华为技术有限公司 静态路由的下发方法及靠近用户侧的提供商的边缘设备
US9954730B2 (en) 2013-08-12 2018-04-24 Huawei Technologies Co., Ltd. Method for delivering static route and ultimate provider edge
EP3018870B1 (en) * 2013-08-12 2021-04-07 Huawei Technologies Co., Ltd. Method for issuing static route and ultimate provider edge
US10805292B2 (en) 2018-02-19 2020-10-13 Fmr Llc Secure authentication and network access management for mobile computing devices

Also Published As

Publication number Publication date
CN103155495A (zh) 2013-06-12
CN103155495B (zh) 2016-06-29

Similar Documents

Publication Publication Date Title
US11838203B2 (en) Multipath data transmission method and device
EP2584743B1 (en) Method, apparatus and system for accessing virtual private network by virtual private cloud
JP5711754B2 (ja) スマートクライアントルーティング
CN104821905B (zh) 网络中继装置以及数据包中继方法
RU2602971C2 (ru) Способ динамического конфигурирования ipv6 для домашнего шлюза
WO2015003566A1 (zh) 组播域名系统中报文传输的方法、装置及系统
US11431671B2 (en) Method and apparatus for dynamic discovery of a blockchain component in a cloud computing system
WO2014166247A1 (zh) 一种虚拟网络管理的实现方法和系统
WO2011092605A1 (en) Stateless forwarding of load balanced packets
CN103580980A (zh) 虚拟网络自动发现和自动配置的方法及其装置
JP2014501978A5 (ja) ファイルシステムセッションにおけるマルチコネクションのための方法及びシステム
WO2015192563A1 (zh) 一种实现负载均衡的方法、装置及负载均衡服务系统
WO2013056585A1 (zh) 一种虚拟私云接入认证方法及相关装置
WO2013067904A1 (zh) 用于域间虚拟专用网络对接的方法和设备
WO2019185013A1 (zh) 报文转发
CN104821904B (zh) 网络中继装置以及数据包中继方法
WO2015054882A1 (zh) 网络设备通信方法及网络设备
WO2018157551A1 (zh) 数据传输的方法与装置
KR20110060895A (ko) 다중 인터넷 액세스를 제공하기 위한 방법 및 게이트웨이
WO2012109867A1 (zh) 用于路由协议配置的方法、装置及系统
WO2013182030A1 (zh) 一种用于请求资源的方法、设备及系统
US20150195363A1 (en) System and method for interconnecting local systems and cloud systems to provide seamless communications
WO2015024523A1 (zh) 确定ip承载网故障的方法和系统
JP5522494B2 (ja) クオリティオブサービス設定のための方法、リモートアクセスサーバおよびシステム
WO2014135102A1 (zh) Wlan用户管理方法、装置及系统

Legal Events

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

Ref document number: 201180001959.1

Country of ref document: CN

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

Ref document number: 11858510

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

Country of ref document: EP

Kind code of ref document: A1