WO2020135421A1 - Route configuration method, route update method and device - Google Patents

Route configuration method, route update method and device Download PDF

Info

Publication number
WO2020135421A1
WO2020135421A1 PCT/CN2019/127931 CN2019127931W WO2020135421A1 WO 2020135421 A1 WO2020135421 A1 WO 2020135421A1 CN 2019127931 W CN2019127931 W CN 2019127931W WO 2020135421 A1 WO2020135421 A1 WO 2020135421A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing information
information
static routing
static
area
Prior art date
Application number
PCT/CN2019/127931
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 WO2020135421A1 publication Critical patent/WO2020135421A1/en

Links

Images

Classifications

    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a route configuration method, route update method, and device.
  • the static routes of most access devices are manually configured at the start of the deployment. If there are routing changes caused by network planning and transformation, it will take a long time to reconfigure the routes of all devices. Different devices are placed in different areas, and there are a lot of modified devices at the same time, and the routing of device configurations in different areas may be different, which brings great difficulties and inconvenience to the upgrade and maintenance of the network.
  • the present application provides a routing configuration method, which includes: receiving an update request of an access device, wherein the update request carries an area identifier of the access device; and is obtained from a regionalized static routing table Static routing information corresponding to the area identifier; carrying the static routing information in the response information, and replying the response information to the access device.
  • a method for updating routing information including: sending an update request to a server, where the update request carries an area identifier; receiving response information returned by the server, wherein the response information carries There is static routing information corresponding to the area identifier; according to the static routing information, the routing information is updated.
  • a routing configuration device which is located in a DHCP server and includes: a receiving module configured to receive an update request of an access device, where the update request carries an area identifier of the access device; The obtaining module is used to obtain the static routing information corresponding to the area identifier from the regionalized static routing table; the reply module is used to carry the static routing information in the response information and reply the response to the access device information.
  • a routing information update apparatus which is located in an access device and includes: a sending module for sending an update request to a server, wherein the update request carries an area identifier; a receiving module is used for receiving The response information returned by the server, wherein the response information carries static routing information corresponding to the area identifier; an update module is used to update the routing information according to the static routing information.
  • a server device including: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the following steps are implemented: receiving access A device update request, where the update request carries the area identifier of the access device; the static routing information corresponding to the area identifier is obtained from a regionalized static routing table; and the static routing information is carried in the response In the message, the response information is returned to the access device.
  • an access device including: a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the computer program, the following steps are implemented: to the server Sending an update request, where the update request carries an area identifier; receiving response information returned by the server, wherein the response information carries static routing information corresponding to the area identifier; based on the static routing information To update routing information.
  • a non-volatile computer-readable storage medium on which a computer program is stored.
  • the computer program When the computer program is executed by a processor, the following steps are implemented: receiving an update request of an access device, wherein, the The update request carries the area identification of the access device; the static routing information corresponding to the area identification is obtained from the regionalized static routing table; the static routing information is carried in the response information to the access device Reply to the response message.
  • a non-volatile computer-readable storage medium on which a computer program is stored.
  • the following steps are implemented: sending an update request to a server, wherein the update request Carries an area identifier; receives response information returned by the server, wherein the response information carries static routing information corresponding to the area identifier; and updates routing information according to the static routing information.
  • a computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer To enable the computer to execute the method described in the above aspects.
  • FIG. 1 is a method flowchart of a route configuration method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a method for updating a route provided by an embodiment of the present application
  • Figure 3 is a schematic diagram of an application scenario of regionalized routing configuration
  • FIG. 4 is a schematic diagram of packet interaction provided by an embodiment of the present application.
  • DHCP Option 168 message format provided by an embodiment of the present application.
  • routing configuration device switching device and client
  • DHCP server route update device
  • a routing configuration and update method is proposed in this example.
  • the DHCP Dynamic Host Configuration Protocol
  • option 121 The ClasslessStaticRouteOption, rfc3442
  • add an option custom field fill in the option custom field with information used to identify the device area, and use this information to distinguish the area identification of different devices.
  • the request message and response message are parsed and encapsulated to complete the setting update of the static routing tables of devices in different regions.
  • a routing configuration method is provided in this example, and may include the following steps: Step 101: Receive an update request of an access device, where the update request carries the access Area identification of the device; where the above update request can be option 121 field and custom field, where the custom field carries the area identification.
  • the above custom field can use the reserved field in the option field.
  • option 128-254 is a reserved type. You can select a type from the reserved type to fill in the area identification .
  • Step 102 Obtain the static routing information corresponding to the area identifier from the regionalized static routing table; where the regionalized static routing table may be pre-established, which saves time and realizes uniform update within the area.
  • the regionalized static routing table may include: S1: Obtaining the regional identifier of each area within the management scope; S2: Configuring the corresponding static routing table for each area; S3: Using the static routing table configured in each area as the configuration Regionalized static routing table.
  • routing information entries are distinguished according to the planned different area identifiers. That is, you can configure your own static routing tables based on the planned area identification.
  • the correspondence between the area ID and the routing table information is: area A->route listA, area B->route listB, area C ->route listC.
  • the three routing tables are independent of each other.
  • the routing information may be the same or different.
  • the routing entries are configured according to the actual needs of the respective access device network.
  • Step 103 Carry the static routing information in the response information, and reply the response information to the access device.
  • the static routing information corresponding to the area identifier may be filled in the option 121 field in the response message; the response message carrying the option 121 field may be used as the response information .
  • the access device can extract routing information from the option 121 field to update and configure the routing information.
  • Step 201 Send an update request to a server, where the update request Carrying an area identifier
  • Step 202 Receive response information returned by the server, where the response information carries static routing information corresponding to the area identifier
  • Step 203 Update routing information according to the static routing information .
  • updating routing information based on static routing information may include: obtaining static routing information and currently stored routing information; combining static routing information and currently stored routing information Compare the information to determine the routing entry that needs to be added and the routing entry that needs to be deleted; update the currently stored routing information according to the routing entry that needs to be added and the routing entry that needs to be deleted, and use the updated routing information as the currently stored route information.
  • a method of regionally configured static routing of devices based on DHCP is proposed. Specifically, in the DHCP standard protocol and option 121 (The Classless Static Route Option, Based on rfc3442), an option custom field is added. The option custom field is filled with information for identifying the device area, and the area identification of different devices can be distinguished by the information.
  • the option 121 and option custom fields of the request message and response message are parsed and encapsulated to complete the setting update of the static routing tables of devices in different regions.
  • the option custom field is filled for the access device
  • the option 121 field is filled for the DHCP server according to the custom field of the request message
  • the access device sets and updates the static route according to the option 121 field of the response message.
  • the method based on DHCP regionalized route configuration includes the following steps: Step 1: Configure the area identification information of the access device; wherein, the regionalized identification of the access device may be flexible according to the device workplace, access method, etc. Named; for example, log in to the access device and configure the area identifier belonging to the device. In this example, the name of the area where the access device is located is used as the identifier. Assuming that there are three areas of access device networks as shown in FIG. 2, area A, area B, and area C can be used as the area identifiers of the access devices in the three areas.
  • Step 2 Configure the DHCP Server regionalized static routing table.
  • DHCP Server configures a static routing table, and routing information entries are distinguished according to the planned different area identifiers. That is, you can configure your own static routing tables based on the planned area identification.
  • the route table information of the three areas exemplified in step 1 is identified by route listA, route listB, and routeC, and the corresponding relationship between the area identifier and the routing table information is: area A->route listA, area B- >route listB, area C->route listC.
  • the three routing tables are independent of each other.
  • the routing information may be the same or different.
  • the routing entries are configured according to the actual needs of the respective access device network.
  • Step 3 Customize the reserved option field and fill format of DHCP protocol packets.
  • option 128-254 is a reserved type. You can select a type from the reserved type to fill in the area identifier; among them, the message format supports integer, string, and text , Ipv4/ipv6 address, etc.
  • option168 is used to fill the area identifier.
  • the format of the message is string.
  • the specific message format can be shown in Figure 5.
  • the access device will carry option121 and option168 (the area identifier configured in step 1 is filled in). )
  • the protocol field initiates a request to the DHCP Server.
  • Step 4 The DHCP Server replies to routing information according to the area identifier.
  • the DHCP server after receiving the option 121 request from the access device, the DHCP server responds to the access device with corresponding routing information according to the area identifier in the option custom field.
  • the DHCP Server receives the request from the access device, parses the option 168 field in the request message, obtains the area identifier where the access device is located, and finds the corresponding according to the regionalized static routing table configured in step 2 Static routing information, after filling the found static routing information into the option 121 field, reply to the access device with a response.
  • the request message with the area identifier area A, the content filled with option 121 of the response message is route listA, the request message area with the area identifier is area B, and the content filled with option 121 of the response message is route listB, the area identifier
  • the request message of area C the content of option 121 of the response message is route listC, the request message of the area identifier is not configured, and the content of option 121 of the response message is default route.
  • Step 5 The access device analyzes, compares, updates, and records routing information.
  • the access device processes the option 121 field in the message to obtain the latest static routing information and update and record the latest routing information. Specifically, after receiving the reply from the DHCP server, the access device parses the option 121 field of the Ack message to obtain the latest static routing information.
  • the last option routing information of 121 can be obtained from the record, and the recorded routing information is compared with the latest routing information to obtain the need for new Add routing entries and routing entries that need to be deleted, and update the records to the latest routing data.
  • the route entries recorded in T1 times are R1, R2, R3, and the latest route entries obtained in T1+1 times are R2, R3, R4, then T1+1 times need to delete the R1 route entry and add two route entries R3, R4 And update the record to R2, R3, R4.
  • Step 6 Set up a static route to update the access device.
  • the relevant interface of the routing module to add and delete corresponding routing entries.
  • an option custom field is added, and the information used to identify the device area is filled in the option custom field. Distinguish the area identification of different devices.
  • the option 121 and option custom fields of the request message and response message are parsed and encapsulated to complete the setting update of the static routing tables of devices in different regions.
  • an embodiment of the present invention also provides a routing configuration device, as described in the following embodiments. Since the principle of the route configuration device to solve the problem is similar to the route configuration method, the implementation of the route configuration device can refer to the implementation of the route configuration method, and the repetition is not repeated. As used below, the term “unit” or “module” may implement a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation of hardware or a combination of software and hardware is also possible and conceived.
  • FIG. 6 is a structural block diagram of a routing configuration device according to an embodiment of the present invention. As shown in FIG. 6, it may include a receiving module 601, an obtaining module 602, and a reply module 603. The structure will be described below.
  • the receiving module 601 is used to receive an update request of the access device, where the update request carries the area identifier of the access device; the obtaining module 602 is used to obtain the area identifier from the regionalized static routing table Corresponding static routing information; the reply module 603 is used to carry the static routing information in the response information and reply the response information to the access device.
  • the above-mentioned routing configuration device can also specifically obtain the area identifiers of each area within the management range; configure corresponding static routing tables for each area; and use the static routing tables configured in each area as the configured regionalized static routing table .
  • the above update request may be an option 121 field and a custom field, where the custom field carries an area identifier.
  • the reply module 603 may specifically fill the static routing information corresponding to the area identifier into the option 121 field in the response message; and use the response message carrying the option 121 field as the response information.
  • An embodiment of the present invention also provides a routing information updating device. As shown in FIG. 7, it includes: a sending module 701, which is used to send an update request to a server, where the update request carries an area identifier; a receiving module 702, used to receive response information returned by the server, where the response information carries static routing information corresponding to the area identifier; and an update module 703 is used to update routing information according to the static routing information.
  • a sending module 701 which is used to send an update request to a server, where the update request carries an area identifier
  • a receiving module 702 used to receive response information returned by the server, where the response information carries static routing information corresponding to the area identifier
  • an update module 703 is used to update routing information according to the static routing information.
  • the update module 703 can specifically obtain the static routing information and the currently stored routing information; compare the static routing information with the currently stored routing information to determine the routing entries that need to be added and the routes that need to be deleted Entry; update the currently stored routing information according to the routing entry that needs to be added and the routing entry that needs to be deleted, and use the updated routing information as the currently stored routing information.
  • the above update request may be a message carrying an option 121 field and a custom field, where the custom field carries an area identifier.
  • the response information may be a message carrying the option 121 field of the static routing information corresponding to the area identifier.
  • the update request carries the area ID
  • the routing information is generated according to the area ID in the regionalized static routing table.
  • the area is returned to the access device Identify the corresponding routing information, so as to update the routing information of the access device.
  • the regional routing information of the management end needs to be modified to complete the update of the static routing table of all access devices in the management area.
  • a non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute each of the above Aspect of the method.
  • a computer program product includes a computer program stored on a non-volatile computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions When executed by a computer, the computer is caused to perform the methods described in the above aspects.

Landscapes

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

Abstract

The present application relates to a route configuration method, a route update method and device. The route configuration method comprises the following steps: receiving an update request of an access device, the update request carrying an area identifier of the access device; obtaining from a regionalized static routing table static routing information corresponding to the area identifier; and carrying the static routing information in response information, and replying the response information to the access device.

Description

一种路由配置方法、路由更新方法和装置Route configuration method, route update method and device
交叉引用cross reference
本发明要求在2018年12月29日提交至中国专利局、申请号为201811646882.3、发明名称为“一种路由配置方法、路由更新方法和装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention requires the priority of a Chinese patent application filed on December 29, 2018 in the Chinese Patent Office with the application number 201811646882.3 and the invention titled "A routing configuration method, routing update method and device", the entire content of the application It is incorporated in this invention by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种路由配置方法、路由更新方法和装置。The present application relates to the field of communication technologies, and in particular, to a route configuration method, route update method, and device.
背景技术Background technique
在通信网络中,大部分接入设备的静态路由都是在开局的时候手工配置好的,如果出现因网络规划和改造而引起的路由变化,那么久需要对所有设备的路由进行重新配置,由于不同设备放置在不同区域,同时涉及修改的设备数量很多,且不同区域设备配置的路由可能有差异,这就给网络的升级和维护带来了极大的困难和不便。In the communication network, the static routes of most access devices are manually configured at the start of the deployment. If there are routing changes caused by network planning and transformation, it will take a long time to reconfigure the routes of all devices. Different devices are placed in different areas, and there are a lot of modified devices at the same time, and the routing of device configurations in different areas may be different, which brings great difficulties and inconvenience to the upgrade and maintenance of the network.
针对如何快速实现对大面积设备路由设备的配置更新,目前尚未提出有效地解决方案。Regarding how to quickly realize the configuration update of the routing equipment of a large-area device, no effective solution has been proposed yet.
发明内容Summary of the invention
第一方面,本申请提供了一种路由配置方法,包括:接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;从区域化静态路由表中获取所述区域标识对应的静态路由信息;将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。In the first aspect, the present application provides a routing configuration method, which includes: receiving an update request of an access device, wherein the update request carries an area identifier of the access device; and is obtained from a regionalized static routing table Static routing information corresponding to the area identifier; carrying the static routing information in the response information, and replying the response information to the access device.
第二方面,提供了一种路由信息更新方法,包括:向服务器发送更新请求,其中,所述更新请求中携带有区域标识;接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;根据所述静态路由信息,进行路由信息更新。In a second aspect, a method for updating routing information is provided, including: sending an update request to a server, where the update request carries an area identifier; receiving response information returned by the server, wherein the response information carries There is static routing information corresponding to the area identifier; according to the static routing information, the routing information is updated.
第三方面,提供了一种路由配置装置,位于DHCP Server中,包括:接收模块,用于接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;获取模块,用于从区域化静态路由表中获取所述区域标识对应的静态路由信息;回复模块,用于将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。In a third aspect, a routing configuration device is provided, which is located in a DHCP server and includes: a receiving module configured to receive an update request of an access device, where the update request carries an area identifier of the access device; The obtaining module is used to obtain the static routing information corresponding to the area identifier from the regionalized static routing table; the reply module is used to carry the static routing information in the response information and reply the response to the access device information.
第四方面,提供了一种路由信息更新装置,位于接入设备中,包括:发送模块,用于向服务器发送更新请求,其中,所述更新请求中携带有区域标识;接收模块,用于接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;更新模块,用于根据所述静态路由信息,进行路由信息更新。According to a fourth aspect, there is provided a routing information update apparatus, which is located in an access device and includes: a sending module for sending an update request to a server, wherein the update request carries an area identifier; a receiving module is used for receiving The response information returned by the server, wherein the response information carries static routing information corresponding to the area identifier; an update module is used to update the routing information according to the static routing information.
第五方面,提供了一种服务器设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如下步骤:接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;从区域化静态路由表中获取所述区域标识对应的静态路由信息;将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。According to a fifth aspect, a server device is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the following steps are implemented: receiving access A device update request, where the update request carries the area identifier of the access device; the static routing information corresponding to the area identifier is obtained from a regionalized static routing table; and the static routing information is carried in the response In the message, the response information is returned to the access device.
第六方面,提供了一种接入设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如下步骤:向服务器发送更新请求,其中,所述更新请求中携带有区域标识;接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;根据所述静态路由信息,进行路由信息更新。According to a sixth aspect, an access device is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: to the server Sending an update request, where the update request carries an area identifier; receiving response information returned by the server, wherein the response information carries static routing information corresponding to the area identifier; based on the static routing information To update routing information.
第七方面,提供了一种非易失性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;从区域化静态路由表中获取所述区域标识对应的静态路由信息;将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。According to a seventh aspect, there is provided a non-volatile computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: receiving an update request of an access device, wherein, the The update request carries the area identification of the access device; the static routing information corresponding to the area identification is obtained from the regionalized static routing table; the static routing information is carried in the response information to the access device Reply to the response message.
第八方面,提供了一种非易失性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:向服务器发送更新请求,其中,所述更新请求中携带有区域标识;接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;根据所述静态路由信息,进行路由信息更新。According to an eighth aspect, there is provided a non-volatile computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: sending an update request to a server, wherein the update request Carries an area identifier; receives response information returned by the server, wherein the response information carries static routing information corresponding to the area identifier; and updates routing information according to the static routing information.
第九方面,提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行以上各个方面所述的方法。In a ninth aspect, a computer program product is provided, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer To enable the computer to execute the method described in the above aspects.
附图说明BRIEF DESCRIPTION
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The drawings here are incorporated into and constitute a part of this specification, show embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, for those of ordinary skill in the art In other words, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本申请实施例提供的一种路由配置方法的方法流程图;FIG. 1 is a method flowchart of a route configuration method provided by an embodiment of the present application;
图2为本申请实施例提供的一种路由更新方法的方法流程图;2 is a flowchart of a method for updating a route provided by an embodiment of the present application;
图3是区域化路由配置应用场景示意图;Figure 3 is a schematic diagram of an application scenario of regionalized routing configuration;
图4是本申请实施例提供的报文交互示意图;4 is a schematic diagram of packet interaction provided by an embodiment of the present application;
图5是本申请实施例提供的DHCP Option 168报文格式;5 is a DHCP Option 168 message format provided by an embodiment of the present application;
图6为本申请实施例提供的一种路由配置装置(交换设备、client端)的结构框图;6 is a structural block diagram of a routing configuration device (switching device and client) provided by an embodiment of this application;
图7为本申请实施例提供的一种路由更新装置(DHCP Server端)的结构框图。7 is a structural block diagram of a route update device (DHCP server) provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present application.
为了能快速实现对大面积设备路由的配置更新,在本例中提出了一种路由配置和更新方法,具体的,在DHCP(Dynamic Host Configuration Protocol,动态主机设置协议)标准协议及option 121(The Classless Static Route Option,rfc3442)基础上,增加option自定义字段,在该option自定义字段内填充用于标识设备区域的信息,通过该信息可以区分不同设备的区域标识。在报文动态交互的过程中,解析、封装请求报文及应答报文,完成对不同区域设备静态路由表的设置更新。In order to quickly realize the configuration update of the routing of large-area devices, a routing configuration and update method is proposed in this example. Specifically, the DHCP (Dynamic Host Configuration Protocol) standard protocol and option 121 (The ClasslessStaticRouteOption, rfc3442), add an option custom field, fill in the option custom field with information used to identify the device area, and use this information to distinguish the area identification of different devices. In the process of message dynamic interaction, the request message and response message are parsed and encapsulated to complete the setting update of the static routing tables of devices in different regions.
具体的,如图1所示,在本例中提供了一种路由配置方法,可以包括如下步骤:步骤101:接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;其中,上述更新请求可以option 121字段和自定义字段,其中,自定义字段中携带有区域标识。为了避免增加额外的字节,导致协议需要修改,上述自定义字段可以采用option字段中的保留字段,例如,option 128-254是保留类型,可以从保留类型中选取一个类型,用于填充区域标识。Specifically, as shown in FIG. 1, a routing configuration method is provided in this example, and may include the following steps: Step 101: Receive an update request of an access device, where the update request carries the access Area identification of the device; where the above update request can be option 121 field and custom field, where the custom field carries the area identification. In order to avoid adding extra bytes and causing the protocol to be modified, the above custom field can use the reserved field in the option field. For example, option 128-254 is a reserved type. You can select a type from the reserved type to fill in the area identification .
步骤102:从区域化静态路由表中获取所述区域标识对应的静态路由信息;其中,区域化静态路由表可以是预先建立的,这样可以节省时间,并实现区域内的统一更新。在建立区域化静态路由表的时候,可以包括:S1:获取管理范围内各个区域的区域标识;S2:为各个区域配置对应的静态路由表;S3:将各个区域配置的静态路由表,作为配置的区域化静态路由表。Step 102: Obtain the static routing information corresponding to the area identifier from the regionalized static routing table; where the regionalized static routing table may be pre-established, which saves time and realizes uniform update within the area. When establishing a regionalized static routing table, it may include: S1: Obtaining the regional identifier of each area within the management scope; S2: Configuring the corresponding static routing table for each area; S3: Using the static routing table configured in each area as the configuration Regionalized static routing table.
例如:划分为三个区域,分别用area A、area B、area C分别作为三个区域的接入设备的区域标识。在配置静态路由表的时候,路由信息条目根据已规划的不同区域标识加以区分。即,可以根据规划好的区域标识,配置各自的静态路由表。例如:用route listA、route listB、route listC标识所举例的三个区域的路由表信息,其区域标识和路由表信息对应关系为:area A->route listA,area B->route listB,area C->route listC。其中,三个路由表相互独立,路由信息可以相同,也可以不同,路由条目根据各自接入设备网的实际需求配置。For example, it is divided into three areas, and area A, area B, and area C are used as the area identifiers of the access devices in the three areas. When configuring a static routing table, routing information entries are distinguished according to the planned different area identifiers. That is, you can configure your own static routing tables based on the planned area identification. For example: the routing table information of the three areas exemplified by the route listA, route listB, and route listC logos. The correspondence between the area ID and the routing table information is: area A->route listA, area B->route listB, area C ->route listC. Among them, the three routing tables are independent of each other. The routing information may be the same or different. The routing entries are configured according to the actual needs of the respective access device network.
在路由信息出现变化的时候,修改区域化静态路由表,就可以实现对对应区域路由信息的更新。When the routing information changes, modify the regionalized static routing table to update the routing information in the corresponding area.
步骤103:将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。Step 103: Carry the static routing information in the response information, and reply the response information to the access device.
具体的,在将静态路由信息携带在应答信息中,可以是将区域标识对应的静态路由信息填入应答报文中的option 121字段;将携带有option 121字段的应答报文作为所述应答信息。Specifically, in carrying the static routing information in the response information, the static routing information corresponding to the area identifier may be filled in the option 121 field in the response message; the response message carrying the option 121 field may be used as the response information .
接入设备在接收到应答报文之后,就可以从option 121字段中提取出路由信息,以对路由信息进行更新和配置。After receiving the response message, the access device can extract routing information from the option 121 field to update and configure the routing information.
上述是对服务侧进行的说明,对于接入设备侧提出了一种路由信息更新方法,可以如图2所示,包括如下步骤:步骤201:向服务器发送更新请求,其中,所述更新请求中携带有区域标识;步骤202:接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;步骤203:根据所述静态路由信息,进行路由信息更新。The above is an explanation on the service side. A method for updating routing information is proposed for the access device side. As shown in FIG. 2, the method includes the following steps: Step 201: Send an update request to a server, where the update request Carrying an area identifier; Step 202: Receive response information returned by the server, where the response information carries static routing information corresponding to the area identifier; Step 203: Update routing information according to the static routing information .
为了可以提升更新效率,避免路由表被大量的残留路由条目占用,根据静态路由信息,进行路由信息更新,可以包括:获取静态路由信息和当前存储的路由信息;将静态路由信息和当前存储的路由信息进行比较,确定需要增加的路由条目和需要删除的路由条目;根据需要增加的路由条目和需要删除的路由条目,对当前存储的路由信息进行更新,将更新后的路由信息作为当前存储的路由信息。In order to improve the update efficiency and avoid the routing table being occupied by a large number of residual routing entries, updating routing information based on static routing information may include: obtaining static routing information and currently stored routing information; combining static routing information and currently stored routing information Compare the information to determine the routing entry that needs to be added and the routing entry that needs to be deleted; update the currently stored routing information according to the routing entry that needs to be added and the routing entry that needs to be deleted, and use the updated routing information as the currently stored route information.
下面结合一个具体实施例对上述方法进行说明,然而值得注意的是,该 具体实施例仅是为了更好地说明本申请,并不构成对本申请的不当限定。The above method will be described below in conjunction with a specific embodiment, but it is worth noting that this specific embodiment is only for better description of the present application, and does not constitute an undue limitation on the present application.
为了能快速实现对大面积设备路由的配置更新,在本例中提出了一种基于DHCP的区域化配置设备静态路由的方法,具体的,在DHCP标准协议及option 121(The Classless Static Route Option,rfc3442)基础上,增加option自定义字段,在该option自定义字段内填充用于标识设备区域的信息,通过该信息可以区分不同设备的区域标识。In order to quickly realize the configuration update of the routing of large-area devices, in this example, a method of regionally configured static routing of devices based on DHCP is proposed. Specifically, in the DHCP standard protocol and option 121 (The Classless Static Route Option, Based on rfc3442), an option custom field is added. The option custom field is filled with information for identifying the device area, and the area identification of different devices can be distinguished by the information.
在DHCP报文动态交互的过程中,解析、封装请求报文及应答报文的option 121及option自定义字段,完成对不同区域设备静态路由表的设置更新。During the dynamic interaction of DHCP messages, the option 121 and option custom fields of the request message and response message are parsed and encapsulated to complete the setting update of the static routing tables of devices in different regions.
在实现的过程中,只需要修改管理端DHCP Server的区域化路由信息,就可以完成对管理区域内所有接入设备静态路由表的更新,解决了工程上大面积接入设备静态路由发生变化时,需要逐个修改带来的巨大技术及实现困难,节省了设备运维过程中的时间和人力成本,减小了手工配置错误给通信带来的风险。In the process of implementation, only the regional routing information of the management DHCP server needs to be modified to complete the update of the static routing table of all access devices in the management area, which solves the problem when the static routing of large-scale access devices in the project changes. The huge technical and implementation difficulties that need to be modified one by one, save the time and labor cost in the operation and maintenance of equipment, and reduce the risk of manual configuration errors to communication.
具体的,为接入设备填充option自定义字段,为DHCP Server根据请求报文的自定义字段填充option 121字段,为接入设备根据应答报文的option 121字段设置更新静态路由。基于此,该基于DHCP区域化路由配置的方法,包括以下步骤:步骤1:配置接入设备的区域标识信息;其中,接入设备的区域化标识可以是根据设备工作场所、接入方式等灵活命名的;例如,登入接入设备,配置属于本设备的区域标识,在本例中以接入设备所在区域名作为标识进行说明。假设如图2所示有三个区域的接入设备网,可以用area A、area B、area C分别作为三个区域的接入设备的区域标识。Specifically, the option custom field is filled for the access device, the option 121 field is filled for the DHCP server according to the custom field of the request message, and the access device sets and updates the static route according to the option 121 field of the response message. Based on this, the method based on DHCP regionalized route configuration includes the following steps: Step 1: Configure the area identification information of the access device; wherein, the regionalized identification of the access device may be flexible according to the device workplace, access method, etc. Named; for example, log in to the access device and configure the area identifier belonging to the device. In this example, the name of the area where the access device is located is used as the identifier. Assuming that there are three areas of access device networks as shown in FIG. 2, area A, area B, and area C can be used as the area identifiers of the access devices in the three areas.
步骤2:配置DHCP Server区域化静态路由表。Step 2: Configure the DHCP Server regionalized static routing table.
其中,DHCP Server配置静态路由表,路由信息条目根据已规划的不同区域标识加以区分。即,可以根据规划好的区域标识,配置各自的静态路由表。如图3所示,用route listA、route listB、route listC标识步骤1所举例的三个区域的路由表信息,其区域标识和路由表信息对应关系为:area A->route listA,area B->route listB,area C->route listC。其中,三个路由表相互独立,路由信息可以相同,也可以不同,路由条目根据各自接入设备网的实际需求配置。Among them, DHCP Server configures a static routing table, and routing information entries are distinguished according to the planned different area identifiers. That is, you can configure your own static routing tables based on the planned area identification. As shown in FIG. 3, the route table information of the three areas exemplified in step 1 is identified by route listA, route listB, and routeC, and the corresponding relationship between the area identifier and the routing table information is: area A->route listA, area B- >route listB, area C->route listC. Among them, the three routing tables are independent of each other. The routing information may be the same or different. The routing entries are configured according to the actual needs of the respective access device network.
步骤3:自定义DHCP协议报文保留option字段及填充格式。Step 3: Customize the reserved option field and fill format of DHCP protocol packets.
如图4所示,在DHCP协议数据单元的option字段中,option 128-254是保留类型,可以从保留类型中选取一个类型,用于填充区域标识;其中,报文格式支持integer、string、text、ipv4/ipv6地址等。在本例中选用option 168 用以填充区域标识,报文格式为string类型,具体报文格式可以如图5所示,接入设备会携带option121及option 168(填充了步骤1中配置的区域标识)协议字段向DHCP Server发起请求。As shown in Figure 4, in the option field of the DHCP protocol data unit, option 128-254 is a reserved type. You can select a type from the reserved type to fill in the area identifier; among them, the message format supports integer, string, and text , Ipv4/ipv6 address, etc. In this example, option168 is used to fill the area identifier. The format of the message is string. The specific message format can be shown in Figure 5. The access device will carry option121 and option168 (the area identifier configured in step 1 is filled in). ) The protocol field initiates a request to the DHCP Server.
步骤4:DHCP Server根据区域标识回复路由信息。Step 4: The DHCP Server replies to routing information according to the area identifier.
即,如图4所示,DHCP Server在接收到接入设备的option 121请求之后,根据option自定义字段内的区域标识,给接入设备回复相应的路由信息。That is, as shown in FIG. 4, after receiving the option 121 request from the access device, the DHCP server responds to the access device with corresponding routing information according to the area identifier in the option custom field.
具体的,DHCP Server收到来自接入设备的请求,解析请求报文中的option 168字段,从中获取接入设备所在的区域标识,并根据步骤2中配置的区域化静态路由表,查找到对应的静态路由信息,将查找到的静态路由信息填入option 121字段之后,向接入设备回复应答。即,区域标识为area A的请求报文,应答报文的option 121填充的内容是route listA,区域标识为area B的请求报文,应答报文的option 121填充的内容是route listB,区域标识为area C的请求报文,应答报文的option 121填充的内容是route listC,未配置区域标识的请求报文,应答报文的option 121填充的内容是default route。Specifically, the DHCP Server receives the request from the access device, parses the option 168 field in the request message, obtains the area identifier where the access device is located, and finds the corresponding according to the regionalized static routing table configured in step 2 Static routing information, after filling the found static routing information into the option 121 field, reply to the access device with a response. That is, the request message with the area identifier area A, the content filled with option 121 of the response message is route listA, the request message area with the area identifier is area B, and the content filled with option 121 of the response message is route listB, the area identifier For the request message of area C, the content of option 121 of the response message is route listC, the request message of the area identifier is not configured, and the content of option 121 of the response message is default route.
第五步:接入设备解析、比较、更新、记录路由信息。Step 5: The access device analyzes, compares, updates, and records routing information.
如图4所示,接入设备在收到DHCP Server的回复报文后,处理报文中的option 121字段,获取最新的静态路由信息,并更新记录最新的路由信息。具体的,接入设备在接收到来自DHCP Server的回复之后,解析Ack报文的option 121字段,从中获取最新的静态路由信息。As shown in FIG. 4, after receiving the reply message from the DHCP server, the access device processes the option 121 field in the message to obtain the latest static routing information and update and record the latest routing information. Specifically, after receiving the reply from the DHCP server, the access device parses the option 121 field of the Ack message to obtain the latest static routing information.
为了避免路由表被大量的残留路由条目占用,在获取到最新的静态路由信息之后,可以从记录中获取上一次option 121的路由信息,用记录的路由信息和最新的路由信息比较,得到需要新增的路由条目和需要删除的路由条目,并将记录更新为最新的路由数据。例如:T1次记录的路由条目为R1、R2、R3,T1+1次获取的最新路由条目是R2、R3、R4,则T1+1次需要删除R1路由条目,添加R3、R4两条路由条目,并将记录更新为R2、R3、R4。In order to avoid that the routing table is occupied by a large number of residual routing entries, after the latest static routing information is obtained, the last option routing information of 121 can be obtained from the record, and the recorded routing information is compared with the latest routing information to obtain the need for new Add routing entries and routing entries that need to be deleted, and update the records to the latest routing data. For example: the route entries recorded in T1 times are R1, R2, R3, and the latest route entries obtained in T1+1 times are R2, R3, R4, then T1+1 times need to delete the R1 route entry and add two route entries R3, R4 And update the record to R2, R3, R4.
第六步:设置更新接入设备的静态路由。Step 6: Set up a static route to update the access device.
根据更新的路由信息,调用路由模块相关接口,新增、删除相应的路由条目。According to the updated routing information, call the relevant interface of the routing module to add and delete corresponding routing entries.
在上例中,在DHCP标准协议及option 121(The Classless Static Route Option,rfc3442)基础上,增加option自定义字段,在该option自定义字段内填充用于标识设备区域的信息,通过该信息可以区分不同设备的区域标识。在DHCP报文动态交互的过程中,解析、封装请求报文及应答报文的option 121及option自定义字段,完成对不同区域设备静态路由表的设置更新。这样在实现的过程中,只需要修改管理端DHCP Server的区域化路由信息,就 可以完成对管理区域内所有接入设备静态路由表的更新,解决了工程上大面积接入设备静态路由发生变化时,需要逐个修改带来的巨大技术及实现困难,节省了设备运维过程中的时间和人力成本,减小了手工配置错误给通信带来的风险。In the above example, based on the DHCP standard protocol and option 121 (The Classless Static Route Option, rfc3442), an option custom field is added, and the information used to identify the device area is filled in the option custom field. Distinguish the area identification of different devices. During the dynamic interaction of DHCP messages, the option 121 and option custom fields of the request message and response message are parsed and encapsulated to complete the setting update of the static routing tables of devices in different regions. In this way, in the process of implementation, only need to modify the regional routing information of the management end DHCP Server, you can complete the update of the static routing table of all access devices in the management area, which solves the problem of large area access device static routing changes in the project At this time, the huge technical and implementation difficulties that need to be modified one by one need to be saved, which saves time and labor costs during equipment operation and maintenance, and reduces the risk of manual configuration errors to communication.
基于同一发明构思,本发明实施例中还提供了一种路由配置装置,如下面的实施例所述。由于路由配置装置解决问题的原理与路由配置方法相似,因此路由配置装置的实施可以参见路由配置方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图6是本发明实施例的路由配置装置的一种结构框图,如图6所示,可以包括:接收模块601、获取模块602和回复模块603,下面对该结构进行说明。Based on the same inventive concept, an embodiment of the present invention also provides a routing configuration device, as described in the following embodiments. Since the principle of the route configuration device to solve the problem is similar to the route configuration method, the implementation of the route configuration device can refer to the implementation of the route configuration method, and the repetition is not repeated. As used below, the term "unit" or "module" may implement a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation of hardware or a combination of software and hardware is also possible and conceived. FIG. 6 is a structural block diagram of a routing configuration device according to an embodiment of the present invention. As shown in FIG. 6, it may include a receiving module 601, an obtaining module 602, and a reply module 603. The structure will be described below.
接收模块601,用于接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;获取模块602,用于从区域化静态路由表中获取所述区域标识对应的静态路由信息;回复模块603,用于将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。The receiving module 601 is used to receive an update request of the access device, where the update request carries the area identifier of the access device; the obtaining module 602 is used to obtain the area identifier from the regionalized static routing table Corresponding static routing information; the reply module 603 is used to carry the static routing information in the response information and reply the response information to the access device.
在一个实施方式中,上述路由配置装置具体还可以获取管理范围内各个区域的区域标识;为各个区域配置对应的静态路由表;将各个区域配置的静态路由表,作为配置的区域化静态路由表。In one embodiment, the above-mentioned routing configuration device can also specifically obtain the area identifiers of each area within the management range; configure corresponding static routing tables for each area; and use the static routing tables configured in each area as the configured regionalized static routing table .
在一个实施方式中,上述更新请求可以是option 121字段和自定义字段,其中,自定义字段中携带有区域标识。In one embodiment, the above update request may be an option 121 field and a custom field, where the custom field carries an area identifier.
在一个实施方式中,上述回复模块603具体可以将区域标识对应的静态路由信息填入应答报文中的option 121字段;将携带有option 121字段的应答报文作为所述应答信息。In one embodiment, the reply module 603 may specifically fill the static routing information corresponding to the area identifier into the option 121 field in the response message; and use the response message carrying the option 121 field as the response information.
在本发明实施例中还提供了一种路由信息更新装置,如图7所示,包括:发送模块701,用于向服务器发送更新请求,其中,所述更新请求中携带有区域标识;接收模块702,用于接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;更新模块703,用于根据所述静态路由信息,进行路由信息更新。An embodiment of the present invention also provides a routing information updating device. As shown in FIG. 7, it includes: a sending module 701, which is used to send an update request to a server, where the update request carries an area identifier; a receiving module 702, used to receive response information returned by the server, where the response information carries static routing information corresponding to the area identifier; and an update module 703 is used to update routing information according to the static routing information.
在一个实施方式中,更新模块703具体可以获取所述静态路由信息和当前存储的路由信息;将所述静态路由信息和当前存储的路由信息进行比较,确定需要增加的路由条目和需要删除的路由条目;根据所述需要增加的路由条目和需要删除的路由条目,对当前存储的路由信息进行更新,将更新后的路由信息作为当前存储的路由信息。In one embodiment, the update module 703 can specifically obtain the static routing information and the currently stored routing information; compare the static routing information with the currently stored routing information to determine the routing entries that need to be added and the routes that need to be deleted Entry; update the currently stored routing information according to the routing entry that needs to be added and the routing entry that needs to be deleted, and use the updated routing information as the currently stored routing information.
在一个实施方式中,上述更新请求可以是携带有option 121字段和自定义字段的报文,其中,自定义字段中携带有区域标识。In one embodiment, the above update request may be a message carrying an option 121 field and a custom field, where the custom field carries an area identifier.
在一个实施方式中,上述应答信息可以是携带有已填入区域标识对应的静态路由信息的option 121字段的报文。In an embodiment, the response information may be a message carrying the option 121 field of the static routing information corresponding to the area identifier.
在上例中,在更新请求中携带区域标识,在区域化静态路由表中按照区域标识生成路由信息,在收到接入设备的携带有区域标识的请求之后,向该接入设备返回该区域标识对应的路由信息,从而实现对接入设备路由信息的更新。这样只需要修改管理端的区域化路由信息,就可以完成对管理区域内所有接入设备静态路由表的更新,通过上述方案解决了现有的区域化路由更新所存在的更新效率低下的问题,达到了有效提升区域化路由更新效率的技术效果。In the above example, the update request carries the area ID, and the routing information is generated according to the area ID in the regionalized static routing table. After receiving the access device's request carrying the area ID, the area is returned to the access device Identify the corresponding routing information, so as to update the routing information of the access device. In this way, only the regional routing information of the management end needs to be modified to complete the update of the static routing table of all access devices in the management area. The above solution solves the problem of low update efficiency of the existing regional routing update. The technical effect of effectively improving the efficiency of regional routing update.
在本发明实施例中还提供了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于执行以上各个方面所述的方法。In an embodiment of the present invention, a non-volatile computer-readable storage medium is also provided. The non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute each of the above Aspect of the method.
在本发明实施例中还提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行以上各个方面所述的方法。In an embodiment of the present invention, a computer program product is also provided. The computer program product includes a computer program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions. When the program instructions When executed by a computer, the computer is caused to perform the methods described in the above aspects.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or order between entities or operations. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.
以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above are only specific embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown in this document, but should conform to the widest scope consistent with the principles and novel features applied in this document.

Claims (14)

  1. 一种路由配置方法,其中,包括:A routing configuration method, which includes:
    接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;Receiving an update request of the access device, where the update request carries the area identifier of the access device;
    从区域化静态路由表中获取所述区域标识对应的静态路由信息;Acquiring static routing information corresponding to the area identifier from the regionalized static routing table;
    将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。The static routing information is carried in the response information, and the response information is returned to the access device.
  2. 根据权利要求1所述的方法,其中,还包括:The method of claim 1, further comprising:
    获取管理范围内各个区域的区域标识;Obtain the area identification of each area within the management scope;
    为各个区域配置对应的静态路由表;Configure the corresponding static routing table for each area;
    将各个区域配置的静态路由表,作为配置的区域化静态路由表。Use the static routing table configured in each area as the configured regional static routing table.
  3. 根据权利要求1所述的方法,其中,所述更新请求为option 121字段和自定义字段,其中,自定义字段中携带有区域标识。The method according to claim 1, wherein the update request is an option 121 field and a custom field, wherein the custom field carries an area identifier.
  4. 根据权利要求3所述的方法,其中,将所述静态路由信息携带在应答信息中,包括:The method according to claim 3, wherein carrying the static routing information in the response information includes:
    将区域标识对应的静态路由信息填入应答报文中的option 121字段;Fill the static routing information corresponding to the area identifier into the option 121 field in the response message;
    将携带有option 121字段的应答报文作为所述应答信息。A response message carrying the option 121 field is used as the response information.
  5. 一种路由信息更新方法,其中,包括:A method for updating routing information, including:
    向服务器发送更新请求,其中,所述更新请求中携带有区域标识;Sending an update request to the server, where the update request carries an area identifier;
    接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;Receiving response information returned by the server, where the response information carries static routing information corresponding to the area identifier;
    根据所述静态路由信息,进行路由信息更新。Update routing information according to the static routing information.
  6. 根据权利要求5所述的方法,其中,根据所述静态路由信息,进行路由信息更新,包括:The method according to claim 5, wherein the updating of routing information according to the static routing information includes:
    获取所述静态路由信息和当前存储的路由信息;Obtain the static routing information and the currently stored routing information;
    将所述静态路由信息和当前存储的路由信息进行比较,确定需要增加的路由条目和需要删除的路由条目;Comparing the static routing information with the currently stored routing information to determine the routing entries that need to be added and the routing entries that need to be deleted;
    根据所述需要增加的路由条目和需要删除的路由条目,对当前存储的路由信息进行更新,将更新后的路由信息作为当前存储的路由信息。According to the routing entries that need to be added and the routing entries that need to be deleted, the currently stored routing information is updated, and the updated routing information is used as the currently stored routing information.
  7. 根据权利要求5所述的方法,其中,所述更新请求为携带有option 121字段和自定义字段的报文,其中,自定义字段中携带有区域标识。The method according to claim 5, wherein the update request is a message carrying an option 121 field and a custom field, wherein the custom field carries an area identifier.
  8. 根据权利要求7所述的方法,其中,所述应答信息为携带有已填入区域标识对应的静态路由信息的option 121字段的报文。The method according to claim 7, wherein the response information is a message carrying the option 121 field of the static routing information corresponding to the filled area identifier.
  9. 一种路由配置装置,其中,位于DHCP Server中,包括:A routing configuration device, which is located in the DHCP Server and includes:
    接收模块,用于接收接入设备的更新请求,其中,所述更新请求中携带有所述接入设备的区域标识;A receiving module, configured to receive an update request of the access device, wherein the update request carries the area identifier of the access device;
    获取模块,用于从区域化静态路由表中获取所述区域标识对应的静态路由信息;An obtaining module, configured to obtain static routing information corresponding to the area identifier from the regionalized static routing table;
    回复模块,用于将所述静态路由信息携带在应答信息中,向所述接入设备回复所述应答信息。The reply module is used to carry the static routing information in the reply information and reply the reply information to the access device.
  10. 一种路由信息更新装置,其中,位于接入设备中,包括:An apparatus for updating routing information, which is located in an access device and includes:
    发送模块,用于向服务器发送更新请求,其中,所述更新请求中携带有区域标识;A sending module, configured to send an update request to the server, where the update request carries an area identifier;
    接收模块,用于接收所述服务器返回的应答信息,其中,所述应答信息中携带有所述区域标识对应的静态路由信息;A receiving module, configured to receive the response information returned by the server, wherein the response information carries static routing information corresponding to the area identifier;
    更新模块,用于根据所述静态路由信息,进行路由信息更新。The updating module is used for updating routing information according to the static routing information.
  11. 一种服务器设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现权利要求1至4中任一项所述方法的步骤。A server device, including: a memory, a processor, and a computer program stored on the memory and runable on the processor, wherein the processor implements the computer program when implementing the computer program according to any one of claims 1 to 4. Describe the method steps.
  12. 一种接入设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现权利要求5至8中任一项所述方法的步骤。An access device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor realizes any one of claims 5 to 8 when the processor executes the computer program The steps of the method.
  13. 一种非易失性计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至4中任一项所述方法的步骤。A non-volatile computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
  14. 一种非易失性计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求5至8中任一项所述方法的步骤。A non-volatile computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 5 to 8 are realized.
PCT/CN2019/127931 2018-12-29 2019-12-24 Route configuration method, route update method and device WO2020135421A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811646882.3 2018-12-29
CN201811646882.3A CN111385132B (en) 2018-12-29 2018-12-29 Route configuration method, route updating method and device

Publications (1)

Publication Number Publication Date
WO2020135421A1 true WO2020135421A1 (en) 2020-07-02

Family

ID=71128451

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/127931 WO2020135421A1 (en) 2018-12-29 2019-12-24 Route configuration method, route update method and device

Country Status (2)

Country Link
CN (1) CN111385132B (en)
WO (1) WO2020135421A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883034A (en) * 2021-02-25 2021-06-01 紫光云技术有限公司 Method for deleting Vpn Ipsec shared static route
CN113364688A (en) * 2021-06-28 2021-09-07 北京天融信网络安全技术有限公司 Route synchronization method, device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680116A (en) * 1993-12-27 1997-10-21 Nec Corporation Static routing system
US20050232228A1 (en) * 2004-04-16 2005-10-20 Alcatel Method and system configured for facilitating residential broadband service
CN101018408A (en) * 2007-02-01 2007-08-15 华为技术有限公司 Service implementation method, network device and network
CN101552734A (en) * 2009-05-22 2009-10-07 迈普通信技术股份有限公司 Non-automatic multi-outlet routing method
CN103401787A (en) * 2013-08-12 2013-11-20 北京华为数字技术有限公司 Static route issuing method and UPE (Ultimate Provider Edge)
CN104348888A (en) * 2013-08-09 2015-02-11 中国电信股份有限公司 Content routing delivery method, content delivery network node and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09275414A (en) * 1996-04-05 1997-10-21 Hitachi Ltd Communication network system
US7574217B1 (en) * 2003-09-02 2009-08-11 Cisco Technology, Inc. Method for dynamic configuration of a mobile access point
CN104521189B (en) * 2013-08-09 2017-10-17 华为技术有限公司 The network terminal obtains method, equipment, the system of business
FR3046012A1 (en) * 2015-12-17 2017-06-23 Orange METHOD AND DEVICE FOR PROVIDING LOCATION INFORMATION TO EQUIPMENT CONNECTED TO A NETWORK ACCESS POINT
CN108989243B (en) * 2018-08-20 2022-03-11 清华大学 Real-time Ethernet scheduling method for transmitting real-time data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680116A (en) * 1993-12-27 1997-10-21 Nec Corporation Static routing system
US20050232228A1 (en) * 2004-04-16 2005-10-20 Alcatel Method and system configured for facilitating residential broadband service
CN101018408A (en) * 2007-02-01 2007-08-15 华为技术有限公司 Service implementation method, network device and network
CN101552734A (en) * 2009-05-22 2009-10-07 迈普通信技术股份有限公司 Non-automatic multi-outlet routing method
CN104348888A (en) * 2013-08-09 2015-02-11 中国电信股份有限公司 Content routing delivery method, content delivery network node and system
CN103401787A (en) * 2013-08-12 2013-11-20 北京华为数字技术有限公司 Static route issuing method and UPE (Ultimate Provider Edge)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883034A (en) * 2021-02-25 2021-06-01 紫光云技术有限公司 Method for deleting Vpn Ipsec shared static route
CN113364688A (en) * 2021-06-28 2021-09-07 北京天融信网络安全技术有限公司 Route synchronization method, device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN111385132A (en) 2020-07-07
CN111385132B (en) 2022-12-06

Similar Documents

Publication Publication Date Title
US11277306B2 (en) Sending information of a network repository function instance storing network function instance information
US20190052526A1 (en) Device Configuration Method and Apparatus that are Based on Network Configuration Protocol
CN108848100B (en) Stateful IPv6 address generation method and device
CN110324246B (en) Communication method and device
EP2421197A1 (en) Method and apparatus for performing device management via gateway device and device management server thereof
EP3703321B1 (en) Configuration method and apparatus
CN105430059A (en) Smart client routing
WO2020253631A1 (en) Configuration method, device, and system for ip address
CN110580256A (en) Method, device and system for identifying application identifier
WO2020135421A1 (en) Route configuration method, route update method and device
CN110198229B (en) Network configuration method and device, storage medium and electronic device
CN105142189B (en) The roam control method and device of website
EP4060951A1 (en) Method for transmitting data message, apparatus, and system
EP2675117A1 (en) Routing method and device for host in multi-homing site
CN106576285B (en) APN configuration method, user equipment and configuration server
CN106302638B (en) Data management method, forwarding equipment and system
CN105450585A (en) Information transmission method and device
CN107995321A (en) A kind of VPN client acts on behalf of the method and device of DNS
CN112217653B (en) Strategy issuing method, device and system
US8688741B2 (en) Device description framework information reporting and updating method, device and system
US20190215723A1 (en) Packet transmission method, apparatus, and packet transmission system
CN104780229A (en) Method of setting cloud server IP address through cloud terminal, system and cloud system
US20160065470A1 (en) Network device and method for routing
CN111770123A (en) Communication method, apparatus and storage medium
CN103581353A (en) Method and system of automatic configuration of gateway device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09/11/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19902313

Country of ref document: EP

Kind code of ref document: A1