CN102571594B - Method of relay configuration, network node and system - Google Patents
Method of relay configuration, network node and system Download PDFInfo
- Publication number
- CN102571594B CN102571594B CN201210021061.7A CN201210021061A CN102571594B CN 102571594 B CN102571594 B CN 102571594B CN 201210021061 A CN201210021061 A CN 201210021061A CN 102571594 B CN102571594 B CN 102571594B
- Authority
- CN
- China
- Prior art keywords
- relay
- network node
- dhcp
- election
- message
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种中继配置的方法、网络节点和系统。方法包括:获取DHCP服务器的路由信息;启动第一定时器,并在子网范围内侦听第一中继宣告报文和第一中继选举报文;如果第一定时器超时且没有接收到第一中继宣告报文或第一中继选举报文,则启动第二定时器并向所述子网范围内广播第二中继选举报文;第二中继选举报文包括当前网络节点的选举信息;如果第二定时器超时、且没有接收到所述第一中继宣告报文、以及没有接收到包括优先级高于所述当前网络节点的第二网络节点的选举信息的第一中继选举报文,则向所述子网范围内广播第二中继宣告报文;第二中继宣告报文用于通告当前网络节点作为所述DHCP中继。本发明提高了配置DHCP中继的效率。
The invention discloses a relay configuration method, network node and system. The method includes: obtaining the routing information of the DHCP server; starting a first timer, and listening to the first relay announcement message and the first relay election message within the subnet; if the first timer expires and does not receive The first relay announcement message or the first relay election message starts the second timer and broadcasts the second relay election message to the subnet; the second relay election message includes the current network node election information; if the second timer expires, and the first relay announcement message is not received, and the first relay announcement message including the election information of the second network node with a higher priority than the current network node is not received The relay election message broadcasts a second relay announcement message to the subnet; the second relay announcement message is used to notify the current network node to be the DHCP relay agent. The invention improves the efficiency of configuring DHCP relay.
Description
技术领域 technical field
本发明实施例涉及通信技术,特别是涉及一种中继配置的方法、网络节点和系统。Embodiments of the present invention relate to communication technologies, and in particular to a relay configuration method, network node and system.
背景技术 Background technique
动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)使用用户数据包协议(User Datagram Protocol,简称UDP)工作,可自动将IP地址指派给登录传输控制协议/网际协议(Transmission ControlProtocol/Internet Protocol,简称TCP/IP)网络的客户端。DHCP协议是基于UDP层之上的应用,DHCP服务器使用的UDP端口号为67,DHCP客户端使用的UDP端口号为68。Dynamic Host Configuration Protocol (DHCP) uses User Datagram Protocol (UDP) to work, and can automatically assign IP addresses to login Transmission Control Protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP for short) /IP) network clients. The DHCP protocol is an application based on the UDP layer. The UDP port number used by the DHCP server is 67, and the UDP port number used by the DHCP client is 68.
DHCP客户端和DHCP服务器可能位于同一广播域,该情形下,DHCP服务器和DHCP客户端之间可直接收发DHCP广播报文。或者,DHCP客户端和DHCP服务器位于不同的广播域,该情形下,DHCP客户端发送的DHCP广播报文需经过该DHCP客户端所在子网的其他网络节点转发给DHCP服务器,该网络节点称为DHCP中继。现有技术需要在子网中手动配置DHCP中继;如果一个子网内存在多个可作为DHCP中继的网络节点,则需在这些网络节点中手动指定一个网络节点作为DHCP中继。The DHCP client and DHCP server may be in the same broadcast domain. In this case, the DHCP server and DHCP client can directly send and receive DHCP broadcast packets. Or, the DHCP client and the DHCP server are located in different broadcast domains. In this case, the DHCP broadcast message sent by the DHCP client needs to be forwarded to the DHCP server by other network nodes in the subnet where the DHCP client is located. This network node is called DHCP relay. In the prior art, the DHCP relay needs to be manually configured in the subnet; if there are multiple network nodes that can serve as the DHCP relay in a subnet, it is necessary to manually designate a network node among the network nodes as the DHCP relay.
现有DHCP中继需要手工配置,在已配置的DHCP中继退出子网之后,需要重新配置新的DHCP中继,DHCP中继配置过程操作较为繁琐;此外,在完成某一DHCP中继配置之后,操作人员需要频繁检测该DHCP中继是否在线,如果无法获知已配置的DHCP中继已经退出子网,则可能导致该子网因没有配置DHCP中继,而无法为该子网内的DHCP客户端进行网络配置。The existing DHCP relay needs to be manually configured. After the configured DHCP relay exits the subnet, a new DHCP relay needs to be reconfigured. The DHCP relay configuration process is relatively cumbersome; , the operator needs to frequently check whether the DHCP relay is online. If it is not known that the configured DHCP relay has exited the subnet, it may cause the subnet to fail to serve DHCP clients in the subnet because the DHCP relay is not configured. terminal for network configuration.
发明内容 Contents of the invention
本发明实施例提供一种中继配置的方法、网络节点和系统,用以提高DHCP中继配置的效率。Embodiments of the present invention provide a relay configuration method, network node and system, so as to improve the efficiency of DHCP relay configuration.
本发明实施例提供了一种中继配置的方法,包括:An embodiment of the present invention provides a method for relay configuration, including:
获取DHCP服务器的路由信息;Obtain the routing information of the DHCP server;
启动第一定时器,并在子网范围内侦听第一中继宣告报文和第一中继选举报文;所述第一中继宣告报文由子网内作为DHCP中继的第一网络节点发送;所述DHCP中继用于根据所述DHCP服务器的路由信息,中继传输所述DHCP服务器和所述子网内的DHCP客户端交换的数据;所述第一中继选举报文由所述子网内满足DHCP中继选举条件的第二网络节点发送,包括所述第二网络节点的选举信息;Start the first timer, and listen to the first relay announcement message and the first relay election message within the scope of the subnet; the first relay announcement message is sent by the first network as a DHCP relay in the subnet The node sends; the DHCP relay is used to relay the data exchanged between the DHCP server and the DHCP client in the subnet according to the routing information of the DHCP server; the first relay election message is sent by The second network node in the subnet that meets the DHCP relay election condition sends, including the election information of the second network node;
如果所述第一定时器超时且没有接收到所述第一中继宣告报文或所述第一中继选举报文,则启动第二定时器并向所述子网范围内广播第二中继选举报文;所述第二中继选举报文包括当前网络节点的选举信息;If the first timer expires and the first relay announcement message or the first relay election message is not received, start a second timer and broadcast a second relay message to the subnet range A relay election message; the second relay election message includes election information of the current network node;
如果所述第二定时器超时、且没有接收到所述第一中继宣告报文、以及没有接收到包括优先级高于所述当前网络节点的第二网络节点的选举信息的第一中继选举报文,则向所述子网范围内广播第二中继宣告报文;所述第二中继宣告报文用于通告所述当前网络节点作为所述DHCP中继。If the second timer expires, and the first relay announcement message is not received, and the first relay including the election information of the second network node with a higher priority than the current network node is not received election message, broadcasting a second relay announcement message within the subnet; the second relay announcement message is used to notify the current network node to be the DHCP relay agent.
本发明实施例还提供了一种网络节点,包括:The embodiment of the present invention also provides a network node, including:
服务器信息获取模块,用于获取DHCP服务器的路由信息;The server information obtaining module is used to obtain the routing information of the DHCP server;
中继报文侦听模块,用于启动第一定时器,并在子网范围内侦听第一中继宣告报文和第一中继选举报文;所述第一中继宣告报文由子网内作为DHCP中继的第一网络节点发送;所述DHCP中继用于根据所述DHCP服务器的路由信息,中继传输所述DHCP服务器和所述子网内的DHCP客户端交换的数据;所述第一中继选举报文由所述子网内满足DHCP中继选举条件的第二网络节点发送,包括所述第二网络节点的选举信息;The relay message listening module is used to start the first timer, and listen to the first relay announcement message and the first relay election message within the scope of the subnet; the first relay announcement message is sent by the subnet The first network node serving as a DHCP relay in the network sends; the DHCP relay is used to relay and transmit the data exchanged between the DHCP server and the DHCP client in the subnet according to the routing information of the DHCP server; The first relay election message is sent by a second network node that satisfies the DHCP relay election condition in the subnet, and includes election information of the second network node;
中继选举处理模块,用于启动第二定时器,并向所述子网范围内广播第二中继选举报文;所述第二中继选举报文包括当前网络节点的选举信息;A relay election processing module, configured to start a second timer, and broadcast a second relay election message to the subnet; the second relay election message includes election information of the current network node;
中继宣告处理模块,用于如果所述第二定时器超时、且没有接收到所述第一中继宣告报文、以及没有接收到包括优先级高于所述当前网络节点的第二网络节点的选举信息的第一中继选举报文,则向所述子网范围内广播第二中继宣告报文;所述第二中继宣告报文用于通告所述当前网络节点作为所述DHCP中继。A relay announcement processing module, configured to if the second timer expires, and the first relay announcement message is not received, and the second network node including the priority higher than the current network node is not received The election information of the first relay election message, then broadcast the second relay announcement message to the range of the subnet; the second relay announcement message is used to notify the current network node as the DHCP relay.
本发明实施例还提供了一种DHCP中继配置系统,包括:DHCP客户端、第一DHCP中继和第一DHCP服务器;所述DHCP客户端和所述第一DHCP中继位于同一子网;The embodiment of the present invention also provides a DHCP relay configuration system, including: a DHCP client, a first DHCP relay and a first DHCP server; the DHCP client and the first DHCP relay are located in the same subnet;
所述第一DHCP中继由所述子网包括的多个网络节点经选举产生,用于中继传输所述DHCP服务器和所述DHCP客户端交换的数据;参与选举所述第一DHCP中继的网络节点为本发明实施例提供的上述网络节点。The first DHCP relay is elected by a plurality of network nodes included in the subnet, and is used to relay and transmit the data exchanged between the DHCP server and the DHCP client; participate in the election of the first DHCP relay The network node of is the above-mentioned network node provided by the embodiment of the present invention.
本发明实施例提供的中继配置的方法、网络节点和系统,网络节点可获取DHCP服务器的路由信息,通过侦听第一中继宣告报文,来确定DHCP客户端所在子网内当前作为DHCP中继的第一网络节点的在线情况;通过侦听第一中继选举报文,来获取该子网内的第二网络节点参与DHCP中继选举的情况;并可通过广播第二中继选举报文来参与DHCP中继选举,以及通过广播第二中继宣告报文来自举为DHCP中继,由此在该子网内实现了DHCP中继的自动配置,省去了手动配置的繁琐,提高了DHCP中继配置的效率,并降低了配置DHCP中继所需的成本。In the relay configuration method, network node and system provided by the embodiments of the present invention, the network node can obtain the routing information of the DHCP server, and determine that the subnet where the DHCP client is located is currently the DHCP server by listening to the first relay announcement message. The online status of the first relay network node; by listening to the first relay election message, to obtain the participation of the second network node in the subnet in the DHCP relay election; and by broadcasting the second relay election Message to participate in the DHCP relay election, and broadcast the second relay announcement message to self-promote as a DHCP relay, thus realizing the automatic configuration of the DHCP relay in the subnet, eliminating the cumbersome manual configuration, Improves the efficiency of DHCP relay configuration and reduces the cost required to configure DHCP relay.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例一提供的中继配置的方法流程图;FIG. 1 is a flowchart of a method for relay configuration provided in Embodiment 1 of the present invention;
图2a为本发明实施例提供的中继配置的方法的应用场景示例一;Fig. 2a is an application scenario example 1 of the relay configuration method provided by the embodiment of the present invention;
图2b为本发明实施例提供的中继配置的方法的应用场景示例二;Fig. 2b is an application scenario example 2 of the relay configuration method provided by the embodiment of the present invention;
图3a为本发明实施例二提供的网络节点内部运行的状态机的状态控制示意图一;FIG. 3a is a first schematic diagram of the state control of the state machine running inside the network node provided by Embodiment 2 of the present invention;
图3b为本发明实施例二提供的网络节点内部运行的状态机的状态控制示意图二;FIG. 3b is a second schematic diagram of the state control of the state machine running inside the network node provided by Embodiment 2 of the present invention;
图3c为本发明实施例二提供的网络节点内部运行的状态机的状态控制示意图三;FIG. 3c is a third schematic diagram of the state control of the state machine running inside the network node provided by Embodiment 2 of the present invention;
图3d为本发明实施例二提供的各示意图的图例说明;Fig. 3d is an illustration of each schematic diagram provided by Embodiment 2 of the present invention;
图4为本发明实施例三提供的与DHCP中继自动配置相关报文的格式示例;FIG. 4 is an example of the format of a message related to DHCP relay automatic configuration provided by Embodiment 3 of the present invention;
图5为本发明实施例四提供的网络节点的结构示意图;FIG. 5 is a schematic structural diagram of a network node provided by Embodiment 4 of the present invention;
图6为本发明实施例五提供的中继配置的系统的结构示意图。FIG. 6 is a schematic structural diagram of a relay configuration system provided by Embodiment 5 of the present invention.
具体实施方式 Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明以下实施例的序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the following embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
图1为本发明实施例一提供的中继配置的方法流程图。本实施例的执行主体可为:DHCP客户端所在子网内的某一网络节点,即下文所述的当前网络节点。如图1所示的方法包括:FIG. 1 is a flow chart of a relay configuration method provided by Embodiment 1 of the present invention. The executor of this embodiment may be: a certain network node in the subnet where the DHCP client is located, that is, the current network node described below. The methods shown in Figure 1 include:
11:获取DHCP服务器的路由信息。11: Obtain the routing information of the DHCP server.
所述DHCP服务器的路由信息可包括:DHCP服务器的地址信息以及所述DHCP服务器的下一跳地址信息等;其中,所述DHCP服务器的数量可为一个或多个。本发明实施例中,所述DHCP服务器与DHCP客户端不在同一广播域,例如:所述DHCP服务器位于公网,或者,所述DHCP服务器位于所述DHCP客户端所在子网之外的其他子网等。如果所述DHCP服务器位于其他子网,则所述DHCP服务器的路由信息还可包括:所述DHCP服务器所在子网的信息等。The routing information of the DHCP server may include: address information of the DHCP server and next-hop address information of the DHCP server, etc.; wherein, the number of the DHCP servers may be one or more. In the embodiment of the present invention, the DHCP server and the DHCP client are not in the same broadcast domain, for example: the DHCP server is located in the public network, or the DHCP server is located in another subnet other than the subnet where the DHCP client is located wait. If the DHCP server is located in another subnet, the routing information of the DHCP server may further include: information of the subnet where the DHCP server is located, and the like.
所述DHCP服务器的路由信息的获取方式不受限制,例如:可在所述当前网络节点上预先配置所述DHCP服务器的路由信息;或者,可根据接收到的包括所述DHCP服务器的路由信息的广播报文,获取所述DHCP服务器的路由信息;所述广播报文包括:第一中继宣告报文,或除第一中继宣告报文之外的其他DHCP报文。The way to obtain the routing information of the DHCP server is not limited, for example: the routing information of the DHCP server may be pre-configured on the current network node; or, according to the received routing information including the DHCP server Broadcasting a message to obtain routing information of the DHCP server; the broadcasting message includes: a first relay announcement message, or other DHCP messages except the first relay announcement message.
12:启动第一定时器,并在子网范围内侦听第一中继宣告报文和第一中继选举报文;所述第一中继宣告报文由子网内作为DHCP中继的第一网络节点发送;所述DHCP中继用于根据所述DHCP服务器的路由信息,中继传输所述DHCP服务器和所述子网内的DHCP客户端交换的数据;所述第一中继选举报文由所述子网内满足DHCP中继选举条件的第二网络节点发送,包括所述第二网络节点的选举信息。12: Start the first timer, and listen to the first relay announcement message and the first relay election message within the scope of the subnet; A network node sends; the DHCP relay is used to relay and transmit the data exchanged between the DHCP server and the DHCP client in the subnet according to the routing information of the DHCP server; the first relay election report The message is sent by a second network node that meets the DHCP relay election condition in the subnet, and includes election information of the second network node.
所述DHCP客户端所在的子网范围内,当前作为DHCP中继的第一网络节点可以第一预设时长为间隔,周期性向子网范围内广播第一中继宣告报文;所述第一中继宣告报文用于通告所述第一网络节点为所述DHCP中继。Within the range of the subnet where the DHCP client is located, the first network node currently serving as a DHCP relay may periodically broadcast a first relay announcement message to the range of the subnet at intervals of the first preset duration; the first The relay announcement message is used to announce that the first network node is the DHCP relay agent.
子网内的满足DHCP中继选举条件的第二网络节点可能发送第一中继选举报文,用于在子网内参与DHCP中继的选举。第二网络节点可以第二预设时长为间隔,周期性向子网广播第一中继选举报文。当子网内存在作为DHCP中继的第一网络节点时,第一网络节点向子网内广播第一中继宣告报文,所述第一中继宣告报文用于通告所述第一网络节点作为所述DHCP中继。The second network node meeting the DHCP relay election condition in the subnet may send the first relay election message for participating in the DHCP relay election in the subnet. The second network node may periodically broadcast the first relay election message to the subnet at intervals of the second preset time length. When there is a first network node serving as a DHCP relay in the subnet, the first network node broadcasts a first relay announcement message to the subnet, and the first relay announcement message is used to notify the first network The node acts as the DHCP relay.
可选的,如果所述第一定时器定时范围内接收到所述第一中继宣告报文或所述第一中继选举报文,则重启所述第一定时器。Optionally, if the first relay announcement message or the first relay election message is received within the timing range of the first timer, restart the first timer.
13:如果所述第一定时器超时且没有接收到所述第一中继宣告报文或所述第一中继选举报文,则启动第二定时器并向所述子网范围内广播第二中继选举报文;所述第二中继选举报文包括当前网络节点的选举信息。13: If the first timer expires and the first relay announcement message or the first relay election message is not received, start a second timer and broadcast the first relay announcement message to the subnet range Two relay election messages; the second relay election message includes election information of the current network node.
当前网络节点可向子网内广播第二中继选举报文,用于参与该子网内DHCP中继的选举。可选的,当前网络节点可以第二预设时长为间隔,周期性向子网内广播所述第二中继选举报文。The current network node can broadcast the second relay election message to the subnet for participating in the election of the DHCP relay agent in the subnet. Optionally, the current network node may periodically broadcast the second relay election message to the subnet at intervals of the second preset time length.
14:如果所述第二定时器超时、且没有接收到所述第一中继宣告报文、以及没有接收到包括优先级高于所述当前网络节点的第二网络节点的选举信息的第一中继选举报文,则向所述子网范围内广播第二中继宣告报文;所述第二中继宣告报文用于通告所述当前网络节点作为所述DHCP中继。14: If the second timer expires, and the first relay announcement message is not received, and the first relay announcement message including the election information of the second network node with a higher priority than the current network node is not received A relay election message broadcasts a second relay announcement message within the subnet; the second relay announcement message is used to notify the current network node as the DHCP relay agent.
可选的,如果所述第二定时器定时范围内接收到所述第一中继宣告报文,或者,接收到包括优先级高于所述当前网络节点的第二网络节点的选举信息的第一中继选举报文,则可执行12和13。Optionally, if the first relay announcement message is received within the timing range of the second timer, or the first relay announcement message including election information of a second network node with a higher priority than the current network node is received 12 and 13 can be executed if the election message is relayed.
可选的,所述第二网络节点的选举信息为所述第二网络节点的第二识别码。向所述子网范围内广播第二中继宣告报文之前,所述方法还可包括:确定所述第二定时器定时范围内接收到的所述第一中继选举报文;获取确定的所述第一中继选举报文包括的所述第二网络节点的第二识别码;通过比较所述第二识别码和所述第一识别码的大小,确定所述第二网络节点优先级和所述第一网络节点优先级的高低。例如:将所述第二网络节点的第二识别码域所述当前网络节点的第一识别码进行比较;根据预设的判断准则确定所述第二网络节点的选举信息的优先级,是否大于所述当前网络节点的选举信息的优先级。Optionally, the election information of the second network node is a second identification code of the second network node. Before broadcasting the second relay announcement message to the subnet, the method may further include: determining the first relay election message received within the timing range of the second timer; obtaining the determined The second identification code of the second network node included in the first relay election message; determining the priority of the second network node by comparing the size of the second identification code with the first identification code and the priority of the first network node. For example: comparing the second identification code of the second network node with the first identification code of the current network node; determining whether the priority of the election information of the second network node is greater than The priority of the election information of the current network node.
上述第一识别码、第二识别码以及判断准则可根据实际需要设置,本发明实施例不进行限制。一种可选的实现方式例如:The foregoing first identification code, second identification code, and judgment criterion may be set according to actual needs, and are not limited in this embodiment of the present invention. An optional implementation such as:
判断准则1:MAC地址小的优先。第二网络节点的第二识别码为:第二网络节点的第二MAC地址;当前网络节点的第一识别码为:当前网络节点的第一MAC地址。如果第二网络节点的第二MAC地址小于当前网络节点的第一MAC地址,则第二网络节点的选举信息的优先级,高于当前网络节点的选举信息的优先级;否则,第二网络节点的选举信息的优先级,低于当前网络节点的选举信息的优先级。Judgment criterion 1: The one with the smaller MAC address is preferred. The second identification code of the second network node is: the second MAC address of the second network node; the first identification code of the current network node is: the first MAC address of the current network node. If the second MAC address of the second network node is smaller than the first MAC address of the current network node, the priority of the election information of the second network node is higher than the priority of the election information of the current network node; otherwise, the second network node The priority of the election information is lower than the priority of the election information of the current network node.
判断准则2:MAC地址大的优先。如果第二网络节点的第二MAC地址大于当前网络节点的第一MAC地址,则第二网络节点的选举信息的优先级,高于当前网络节点的选举信息的优先级;否则,第二网络节点的选举信息的优先级,低于当前网络节点的选举信息的优先级。Judgment criterion 2: The one with the larger MAC address is preferred. If the second MAC address of the second network node is greater than the first MAC address of the current network node, the priority of the election information of the second network node is higher than the priority of the election information of the current network node; otherwise, the second network node The priority of the election information is lower than the priority of the election information of the current network node.
判断准则3:随机数大的优先。第二网络节点的第二识别码为:第二网络节点产生的第二随机数;当前网络节点的第一识别码为:当前网络节点的产生的第一随机数。如果第二网络节点的第二随机数小于当前网络节点的第一随机数,则第二网络节点的选举信息的优先级,高于当前网络节点的选举信息的优先级;否则,第二网络节点的选举信息的优先级,低于当前网络节点的选举信息的优先级。Judgment criterion 3: The one with the larger random number is preferred. The second identification code of the second network node is: the second random number generated by the second network node; the first identification code of the current network node is: the first random number generated by the current network node. If the second random number of the second network node is smaller than the first random number of the current network node, the priority of the election information of the second network node is higher than the priority of the election information of the current network node; otherwise, the second network node The priority of the election information is lower than the priority of the election information of the current network node.
判断准则4:随机数大的优先。如果第二网络节点的第二随机数大于当前网络节点的第一随机数,则第二网络节点的选举信息的优先级,高于当前网络节点的选举信息的优先级;否则,第二网络节点的选举信息的优先级,低于当前网络节点的选举信息的优先级。Judgment criterion 4: The one with the larger random number is preferred. If the second random number of the second network node is greater than the first random number of the current network node, the priority of the election information of the second network node is higher than the priority of the election information of the current network node; otherwise, the second network node The priority of the election information is lower than the priority of the election information of the current network node.
可以理解,上述识别码和判断准则仅为可选示例,不应理解为对本发明实施例技术方案的限制。It can be understood that the above identification codes and judgment criteria are only optional examples, and should not be construed as limitations on the technical solutions of the embodiments of the present invention.
可选的,所述当前网络节点向子网范围内广播所述第二中继宣告报文之后,所述子网内的其他网络节点则确定所述当前网络节点为所述DHCP中继;由于所述当前网络节点获取有所述DHCP服务器的路由信息,在所述当前网络节点作为所述DHCP中继之后,所述子网范围内的DHCP客户端和所述DHCP服务器之间,可经所述DHCP中继进行数据交换。Optionally, after the current network node broadcasts the second relay announcement message to the subnet, other network nodes in the subnet determine that the current network node is the DHCP relay agent; because The current network node obtains the routing information of the DHCP server, and after the current network node acts as the DHCP relay, the DHCP client within the subnet range and the DHCP server can communicate via the DHCP server. The above DHCP relay performs data exchange.
本实施例提供的方法中,DHCP客户端所在子网内的网络节点可获取DHCP服务器的路由信息,通过侦听第一中继宣告报文,来确定该子网内当前作为DHCP中继的第一网络节点的在线情况;通过侦听第一中继选举报文,来获取该子网内的第二网络节点参与DHCP中继选举的情况;并可通过广播第二中继选举报文来参与DHCP中继选举,以及通过广播第二中继宣告报文来自举为DHCP中继,由此在该子网内实现了DHCP中继的自动配置。In the method provided in this embodiment, the network node in the subnet where the DHCP client is located can obtain the routing information of the DHCP server, and determine the current DHCP relay agent in the subnet by listening to the first relay announcement message. The online status of a network node; by listening to the first relay election message, the second network node in the subnet participates in the DHCP relay election; and can participate by broadcasting the second relay election message The DHCP relay election, and broadcasting the second relay announcement message to self-promote as a DHCP relay, thereby realizing the automatic configuration of the DHCP relay in the subnet.
采用本实施例提供的技术方案,可在子网扩容、演进升级或故障等情形下,通过网络节点之间的选举产生DHCP中继,由该DHCP中继为DHCP服务器和子网中的DHCP客户端转发交换数据,由此获取DHCP客户端的网络配置信息。本实施例DHCP中继无需手动配置,提高了DHCP中继配置的效率,并降低了配置DHCP中继所需的成本。By adopting the technical solution provided by this embodiment, in the case of subnet expansion, evolution upgrade or failure, etc., a DHCP relay can be generated through election between network nodes, and the DHCP relay can be the DHCP server and the DHCP client in the subnet. Forward the exchanged data, thereby obtaining the network configuration information of the DHCP client. In this embodiment, the DHCP relay does not need to be manually configured, which improves the efficiency of configuring the DHCP relay and reduces the cost required for configuring the DHCP relay.
图2a和图2b为本发明实施例提供的DHCP中继配置方法的两个应用场景示例。如图2a所示,DHCP客户端所在的子网中,作为DHCP中继的网络节点集成有网关功能,DHCP客户端经DHCP中继直接与DHCP服务器交互。如图2b所示,DHCP客户端所在的子网中,作为DHCP中继的网络节点与网关功能实体分离,DHCP客户端经DHCP中继并通过网关与DHCP服务器交互。上述两个应用场景仅为本发明实施例的应用场景示例,并且DHCP中继和网关可集成为一个设备实体或者可分离为不同的设备实体。本发明实施例仅说明DHCP中继的功能,对该DHCP中继是否集成有网关功能不作限制。Fig. 2a and Fig. 2b are two examples of application scenarios of the DHCP relay configuration method provided by the embodiment of the present invention. As shown in Figure 2a, in the subnet where the DHCP client is located, the network node as a DHCP relay is integrated with a gateway function, and the DHCP client directly interacts with the DHCP server through the DHCP relay. As shown in Figure 2b, in the subnet where the DHCP client is located, the network node serving as the DHCP relay is separated from the gateway functional entity, and the DHCP client interacts with the DHCP server through the DHCP relay and through the gateway. The above two application scenarios are only examples of application scenarios of the embodiments of the present invention, and the DHCP relay and gateway may be integrated into one device entity or separated into different device entities. The embodiment of the present invention only illustrates the function of the DHCP relay, and does not limit whether the DHCP relay is integrated with a gateway function.
图3a为本发明实施例二提供的网络节点内部运行的状态机的状态控制示意图一。图3a所使用的图例的含义参见图3d所示,且网络节点处于的各状态的含义、网络节点在各状态中的操作、以及网络节点在不同状态之间转化需满足的条件说明,参见表1所示。FIG. 3a is a first schematic diagram of state control of a state machine running inside a network node provided by Embodiment 2 of the present invention. The meaning of the legend used in Figure 3a is shown in Figure 3d, and the meaning of each state that the network node is in, the operation of the network node in each state, and the description of the conditions that the network node needs to satisfy when transitioning between different states, see Table 1.
表1Table 1
在子网范围内,用户手动配置的DHCP中继即为所述正式DHCP中继。上述图3a和表1所述的正式DHCP中继2状态,体现了DCHP中继自动配置和用户配置兼容的应用场景。子网中处于正式DHCP中继2状态之外的任一状态的网络节点,均可被配置为正式DHCP中继,该网络节点进而转入正式DHCP中继2状态,该网络节点的状态机示例为图3b所示。Within the scope of the subnet, the DHCP relay manually configured by the user is the official DHCP relay. The official DHCP relay 2 state described in FIG. 3a and Table 1 above reflects an application scenario in which the automatic configuration of the DCHP relay is compatible with the user configuration. A network node in any state other than the official DHCP relay 2 state in the subnet can be configured as an official DHCP relay agent, and the network node then transfers to the official DHCP relay 2 state. The state machine example of the network node As shown in Figure 3b.
而处于正式DHCP中继2状态的网络节点,也可开启或关闭DHCP中继自动配置功能。如果被配置为正式DHCP中继的网络节点关闭了DHCP中继自动配置功能,则不处理与DHCP中继自动配置相关的报文。如果被配置为正式DHCP中继的网络节点开启DHCP中继自动配置功能,则该网络节点处理运行其作为正式DHCP中继的基本功能之外,还可作为普通网络节点参与到DHCP中继的自动配置流程中。The network node in the official DHCP relay 2 state can also enable or disable the automatic configuration function of the DHCP relay. If the network node configured as an official DHCP relay agent disables the DHCP relay automatic configuration function, it does not process messages related to the DHCP relay automatic configuration. If the network node configured as an official DHCP relay agent enables the automatic configuration function of the DHCP relay agent, the network node can not only handle and run its basic functions as an official DHCP relay agent, but also participate in the automatic configuration of the DHCP relay agent as an ordinary network node. During the configuration process.
可选的,子网中处于终止6状态之外的任一状态的网络节点,均可关闭该网络节点的DHCP中继自动配置功能,该网络节点进而转入终止6状态,该网络节点的状态机示例为图3c所示。Optionally, a network node in any state other than the termination 6 state in the subnet can close the DHCP relay automatic configuration function of the network node, and the network node then turns into the termination 6 state, and the state of the network node A machine example is shown in Figure 3c.
可选的,处于配置1状态的网络节点读取配置数据,该配置数据可包括:是否开启DHCP中继自动配置功能的信息;还可包括:是否配置为正式DHCP中继的信息、第一定时器的定时时长、第二定时器的定时时长、第一预设时长、和/或第二预设时长等信息。上述各种时长信息可通过网络节点的配置参数的不同取值预先配置。其中,配置参数的名称、取值以及各配置参数的含义说明如表2所示。Optionally, the network node in the configuration 1 state reads the configuration data, and the configuration data may include: information on whether to enable the automatic configuration function of the DHCP relay; it may also include: information on whether to configure it as a formal DHCP relay, the first timing The timing duration of the timer, the timing duration of the second timer, the first preset duration, and/or the second preset duration and other information. The above various duration information can be pre-configured through different values of configuration parameters of the network nodes. Among them, the name and value of the configuration parameters and the description of the meaning of each configuration parameter are shown in Table 2.
表2Table 2
可选的,以DHCP中继自动配置相关的报文,如中继宣告报文、中继选举报文等,可采用地址解析协议(Address Resolution Protocol,简称ARP)广播报文的格式。现有ARP广播报文第28-44位为保留位,可基于这些位的扩展,来定义DHCP中继自动配置相关报文的含义。Optionally, the DHCP relay automatically configures related messages, such as relay announcement messages, relay election messages, etc., and may adopt the format of an Address Resolution Protocol (ARP) broadcast message. The 28th-44th bits of the existing ARP broadcast message are reserved bits, and the meanings of the messages related to the automatic configuration of the DHCP relay agent can be defined based on the extension of these bits.
图4为本发明实施例三提供的与DHCP中继自动配置相关报文的格式示例。如图4所示的ARP报文中:FIG. 4 is an example of the format of a message related to DHCP relay automatic configuration provided by Embodiment 3 of the present invention. In the ARP packet shown in Figure 4:
第28-32字节为报文类型标识:这些字节可填充报文识别码,如填充“DARRDARR”的ASCII码等识别码,用于标识该报文为与DHCP中继自动配置相关的报文。The 28th-32nd bytes are the message type identification: these bytes can be filled with the message identification code, such as the ASCII code of "DARRDARR" and other identification codes, which are used to identify the message as a message related to DHCP relay automatic configuration. arts.
第36-44字节为选项(Option),包括:类型(Type)选项、净荷长度(Length)选项、数值(Value)选项等。如果某一ARP广播报文没有携带选项(Option),则选项(Option)各字节全部填充0;如果类型(Type)选项的值等于0,则表示该类型(Type)选项为无效选项;净荷长度(Length)选项以字节为单位,可取值0-8,当净荷长度(Length)选项的值大于8,则表示该净荷长度(Length)选项为无效选项;数值(Value)选项的值长度为0-8字节,如果数值(Value)选项的值长度小于8,则该数值(Value)选项的尾部以0填充。The 36th-44th bytes are options (Option), including: type (Type) option, payload length (Length) option, value (Value) option, etc. If an ARP broadcast message does not carry an option (Option), all bytes of the option (Option) are filled with 0; if the value of the type (Type) option is equal to 0, it means that the type (Type) option is an invalid option; The payload length (Length) option is in bytes and can take values from 0 to 8. When the value of the payload length (Length) option is greater than 8, it means that the payload length (Length) option is an invalid option; the value (Value) The length of the value of the option is 0-8 bytes. If the length of the value of the value (Value) option is less than 8, the tail of the value (Value) option is filled with 0.
上述选项(Option)中各具体选项的不同取值所表示的含义如表3所示。The meanings of the different values of the specific options in the above options (Option) are shown in Table 3.
表3table 3
可选的,上述表3中:携带DHCP服务器的路由信息的选项,如DHCP服务器的地址和达到DHCP服务器的下一跳地址等,可携带在DHCP中继宣告报文中发送;携带网络节点的选举信息的选项,如软件或硬件标识符、或者随机数等,可携带在DHCP中继选举报文中发送。Optionally, in the above table 3: the options carrying the routing information of the DHCP server, such as the address of the DHCP server and the next-hop address to reach the DHCP server, etc., can be carried in the DHCP relay announcement message; Options of the election information, such as software or hardware identifiers, or random numbers, etc., may be carried in the DHCP relay election message and sent.
可选的,为防止对网络邻居的邻居表项造成不正常刷新,如图4所示的ARP广播报文的正文部分,符合RFC 5227的冲突检测报文格式,即:源IP地址(SPA)域和源MAC地址域(SHA)的取值不匹配,目的IP地址(TPA)域和目的MAC地址域(THA)的取值不匹配。这些域的取值例如:Optionally, in order to prevent the abnormal refresh of the neighbor table entry of the network neighbor, the body part of the ARP broadcast message as shown in Figure 4 conforms to the conflict detection message format of RFC 5227, namely: source IP address (SPA) The values of the domain and the source MAC address domain (SHA) do not match, and the values of the destination IP address (TPA) domain and the destination MAC address domain (THA) do not match. Examples of values for these fields are:
源IP地址(SPA)域=0.0.0.0;Source IP Address (SPA) field = 0.0.0.0;
源MAC地址域(SHA)域=发送此报文的网络节点的接口MAC地址;Source MAC address domain (SHA) domain=the interface MAC address of the network node that sends this message;
目的IP地址(SPA)域=发送此报文的网络节点的接口IP地址;Purpose IP address (SPA) field=the interface IP address of the network node that sends this message;
源MAC地址域(SHA)域=0x000000000000。Source MAC address field (SHA) field=0x000000000000.
如果网络节点接收到的ARP广播报文中,源IP地址(SPA)域和源MAC地址域(SHA)的取值不匹配,目的IP地址(TPA)域和目的MAC地址域(THA)的取值不匹配,则该网络节点在接收到该ARP广播报文之后,不会对该网络节点的邻居表项进行刷新,从而避免了该ARP广播报文对该网络节点维护的邻居表项可能引入的错误信息,有利于实现与现有系统的兼容。If the value of the source IP address (SPA) domain and the source MAC address domain (SHA) do not match in the ARP broadcast message received by the network node, the value of the destination IP address (TPA) domain and the destination MAC address domain (THA) value does not match, the network node will not refresh the neighbor table entry of the network node after receiving the ARP broadcast message, thus avoiding the possible introduction of the ARP broadcast message into the neighbor table maintained by the network node. The error message is conducive to achieving compatibility with existing systems.
图5为本发明实施例四提供的网络节点的结构示意图。如图5所示的网络节点包括:服务器信息获取模块51、中继报文侦听模块52、中继选举处理模块54和中继宣告处理模块55。FIG. 5 is a schematic structural diagram of a network node provided by Embodiment 4 of the present invention. The network node shown in FIG. 5 includes: a server information acquisition module 51 , a relay packet interception module 52 , a relay election processing module 54 and a relay announcement processing module 55 .
服务器信息获取模块51可用于获取DHCP服务器的路由信息。The server information acquiring module 51 can be used to acquire routing information of the DHCP server.
中继报文侦听模块52可用于启动第一定时器,并在子网范围内侦听第一中继宣告报文和第一中继选举报文;所述第一中继宣告报文由子网内作为DHCP中继的第一网络节点发送;所述DHCP中继用于根据所述DHCP服务器的路由信息,中继传输所述DHCP服务器和所述子网内的DHCP客户端交换的数据;所述第一中继选举报文由所述子网内满足DHCP中继选举条件的第二网络节点发送,包括所述第二网络节点的选举信息。The relay message listening module 52 can be used for starting the first timer, and listens to the first relay announcement message and the first relay election message within the scope of the subnet; The first network node serving as a DHCP relay in the network sends; the DHCP relay is used to relay and transmit the data exchanged between the DHCP server and the DHCP client in the subnet according to the routing information of the DHCP server; The first relay election message is sent by a second network node that meets the DHCP relay election condition in the subnet, and includes election information of the second network node.
中继选举处理模块54可用于启动第二定时器,并向所述子网范围内广播第二中继选举报文;所述第二中继选举报文包括当前网络节点的选举信息。The relay election processing module 54 may be configured to start a second timer, and broadcast a second relay election message to the subnet; the second relay election message includes election information of the current network node.
中继宣告处理模块55可用于如果所述第二定时器超时、且没有接收到所述第一中继宣告报文、以及没有接收到包括优先级高于所述当前网络节点的第二网络节点的选举信息的第一中继选举报文,则向所述子网范围内广播第二中继宣告报文;所述第二中继宣告报文用于通告所述当前网络节点作为所述DHCP中继。The relay announcement processing module 55 may be configured to if the second timer expires, and the first relay announcement message is not received, and the second network node including the priority higher than the current network node is not received The election information of the first relay election message, then broadcast the second relay announcement message to the range of the subnet; the second relay announcement message is used to notify the current network node as the DHCP relay.
可选的,所述中继报文侦听模块52还可用于如果所述第一定时器定时范围内接收到所述第一中继宣告报文或所述第一中继选举报文,则重启所述第一定时器。Optionally, the relay message listening module 52 is further configured to: if the first relay announcement message or the first relay election message is received within the timing range of the first timer, then restarting the first timer.
可选的,DHCP服务器的路由信息的获取方式的不同,服务器信息获取模块51的具体功能不同。例如:所述服务器信息获取模块51具体可用于在所述当前网络节点上预先配置所述DHCP服务器的路由信息。或者,所述服务器信息获取模块51具体可用于根据接收到的包括所述DHCP服务器的路由信息的广播报文,获取所述DHCP服务器的路由信息;所述广播报文包括:所述第一中继宣告报文,或除所述第一中继宣告报文之外的其他DHCP报文。Optionally, the specific function of the server information obtaining module 51 is different depending on the way of obtaining the routing information of the DHCP server. For example: the server information obtaining module 51 may be specifically configured to pre-configure the routing information of the DHCP server on the current network node. Or, the server information obtaining module 51 can be specifically configured to obtain the routing information of the DHCP server according to the received broadcast message including the routing information of the DHCP server; the broadcast message includes: the first A subsequent announcement message, or other DHCP messages except the first relay announcement message.
可选的,本实施例提供的网络节点还可进一步包括:选举报文确定模块531、报文选举信息获取模块532和优先级确定模块533。Optionally, the network node provided in this embodiment may further include: an election packet determination module 531 , a packet election information acquisition module 532 and a priority determination module 533 .
选举报文确定模块531可用于确定所述第二定时器定时范围内接收到的所述第一中继选举报文。The election message determining module 531 may be configured to determine the first relay election message received within the timing range of the second timer.
报文选举信息获取模块532可用于获取确定的所述第一中继选举报文包括的所述第二网络节点的选举信息,所述第二网络节点的选举信息为所述第二网络节点的第二识别码。The packet election information acquisition module 532 may be configured to acquire the determined election information of the second network node included in the first relay election packet, where the election information of the second network node is the election information of the second network node Second identification code.
优先级确定模块533可用于通过比较所述第二识别码和所述第一识别码的大小,确定所述第二网络节点优先级和所述第一网络节点优先级的高低,例如:在所述第二识别码小于或大于所述当前网络节点的第一识别码时,确定所述第二网络节点的选举信息的优先级低于所述当前网络节点。The priority determining module 533 may be configured to determine the priority of the second network node and the priority of the first network node by comparing the size of the second identification code with the first identification code, for example: in the When the second identification code is smaller than or greater than the first identification code of the current network node, it is determined that the priority of the election information of the second network node is lower than that of the current network node.
本实施例提供的网络节点可获取DHCP服务器的路由信息,通过侦听第一中继宣告报文,来确定DHCP客户端所在子网内当前作为DHCP中继的第一网络节点的在线情况;通过侦听第一中继选举报文,来获取该子网内的第二网络节点参与DHCP中继选举的情况;并可通过广播第二中继选举报文来参与DHCP中继选举,以及通过广播第二中继宣告报文来自举为DHCP中继,由此在该子网内实现了DHCP中继的自动配置,省去了手动配置的繁琐,提高了DHCP中继配置的效率,并降低了配置DHCP中继所需的成本。The network node provided by this embodiment can obtain the routing information of the DHCP server, and determine the online status of the first network node currently serving as the DHCP relay in the subnet where the DHCP client is located by listening to the first relay announcement message; Listen to the first relay election message to obtain the participation of the second network node in the subnet in the DHCP relay election; and participate in the DHCP relay election by broadcasting the second relay election message, and by broadcasting The second relay announcement message is self-proclaimed as a DHCP relay, thereby realizing the automatic configuration of the DHCP relay in the subnet, eliminating the cumbersome manual configuration, improving the efficiency of the DHCP relay configuration, and reducing the The cost required to configure DHCP relay.
图6为本发明实施例五提供的中继配置的系统的结构示意图。如图6所示的系统包括:DHCP客户端61、第一DHCP中继62和DHCP服务器63。所述DHCP客户端61和所述第一DHCP中继62位于子网内,所述DHCP服务器63位于所述子网外。其中,第一DHCP中继62由所述子网包括的多个网络节点经选举产生,用于中继传输所述DHCP服务器和所述DHCP客户端交换的数据;参与选举所述第一DHCP中继的网络节点具有如图5对应实施例所述的网络节点的结构。FIG. 6 is a schematic structural diagram of a relay configuration system provided by Embodiment 5 of the present invention. The system shown in FIG. 6 includes: a DHCP client 61 , a first DHCP relay 62 and a DHCP server 63 . The DHCP client 61 and the first DHCP relay 62 are located in the subnet, and the DHCP server 63 is located outside the subnet. Wherein, the first DHCP relay 62 is elected by a plurality of network nodes included in the subnet, and is used to relay and transmit the data exchanged between the DHCP server and the DHCP client; participate in the election of the first DHCP The subsequent network nodes have the structure of the network nodes described in the corresponding embodiment in FIG. 5 .
可选的,如图6所示的系统还可包括:第二DHCP中继64。第二DHCP中继64的功能可与第一DHCP中继61的功能相同,即用于中继传输所述DHCP服务器63和所述DHCP客户端61交换的数据(如图6所示);或者,第二DHCP中继64的功能也可与第一DHCP中继61的功能不同,即用于中继传输客户端和除图6所示的DHCP服务器63之外的其他DHCP服务器交换的数据。所述第二DHCP中继64由所述子网包括的多个网络节点的任一网络节点经手动配置产生,且作为所述第二DHCP中继的网络节点,不参与所述第一DHCP中继的选举,其工作机理可参见图5中关于“正式DHCP中继”的相应记载,在此不再赘述。Optionally, the system shown in FIG. 6 may further include: a second DHCP relay 64 . The function of the second DHCP relay 64 can be the same as the function of the first DHCP relay 61, that is, for relaying the data exchanged between the DHCP server 63 and the DHCP client 61 (as shown in Figure 6); or , the function of the second DHCP relay 64 may also be different from that of the first DHCP relay 61, that is, it is used to relay data exchanged between the client and other DHCP servers except the DHCP server 63 shown in FIG. 6 . The second DHCP relay 64 is manually configured by any network node of a plurality of network nodes included in the subnet, and as a network node of the second DHCP relay, does not participate in the first DHCP For the election of the relay, its working mechanism can refer to the corresponding record about "official DHCP relay" in Fig. 5, and will not be repeated here.
本领域普通技术人员可以理解:附图只是一个实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of an embodiment, and the modules or processes in the accompanying drawing are not necessarily necessary for implementing the present invention.
本领域普通技术人员可以理解:实施例中的网络节点中的模块可以按照实施例描述分布于实施例的网络节点中,也可以进行相应变化位于不同于本实施例的一个或多个网络节点中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those of ordinary skill in the art can understand that: the modules in the network node in the embodiment can be distributed in the network node in the embodiment according to the description in the embodiment, and can also be changed accordingly and located in one or more network nodes different from this embodiment . The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210021061.7A CN102571594B (en) | 2012-01-30 | 2012-01-30 | Method of relay configuration, network node and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210021061.7A CN102571594B (en) | 2012-01-30 | 2012-01-30 | Method of relay configuration, network node and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102571594A CN102571594A (en) | 2012-07-11 |
CN102571594B true CN102571594B (en) | 2015-04-15 |
Family
ID=46416095
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210021061.7A Active CN102571594B (en) | 2012-01-30 | 2012-01-30 | Method of relay configuration, network node and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102571594B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131027A (en) * | 2018-10-31 | 2020-05-08 | 中兴通讯股份有限公司 | Mapping server processing method, device and storage medium |
CN111447568A (en) * | 2020-03-27 | 2020-07-24 | 深圳桔子智能科技发展有限公司 | Gateway competition method, system and gateway |
CN114827003B (en) * | 2022-03-21 | 2024-05-14 | 浪潮思科网络科技有限公司 | Topology election method, device, equipment and medium of distributed system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335652A (en) * | 2007-06-29 | 2008-12-31 | 华为技术有限公司 | A state detection method, device and system of a dynamic host configuration protocol |
-
2012
- 2012-01-30 CN CN201210021061.7A patent/CN102571594B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335652A (en) * | 2007-06-29 | 2008-12-31 | 华为技术有限公司 | A state detection method, device and system of a dynamic host configuration protocol |
Non-Patent Citations (1)
Title |
---|
基于Linux系统的VRRP for IPv6的研究与实现;刘永刚;《吉林大学硕士学位论文》;20041215;第13页第2段至第4段、第22页至第25页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102571594A (en) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5488642B2 (en) | Portable network connection device, setting method thereof, computer program, and recording medium | |
CN102594635B (en) | Based on the terminal access method of home gateway and system and home gateway | |
CN105359458B (en) | Network device communication method and network device | |
US8054839B2 (en) | Apparatus and method of processing stateful address auto-configuration protocol in IPv6 network | |
CN104283979A (en) | Method, device and system for message transmission in multicast domain name system | |
US10560378B2 (en) | Data link layer-based communication method, device, and system | |
CN104935564B (en) | Make the equipment based on mDNS agreements and service the method found mutually in a local network | |
CN101656725A (en) | Method for implementing safety access and access equipment | |
CN107277190A (en) | A kind of method of SDN equipment automatic wire charging, SDN equipment and controller | |
US9100215B2 (en) | Managing multiple virtual network memberships | |
WO2016192407A1 (en) | Domain name system address configuration method and apparatus, and computer storage medium | |
CN102571594B (en) | Method of relay configuration, network node and system | |
CN112929268B (en) | Automatic discovery of route reflection peer endpoints | |
CN103516599A (en) | Host finding method, network device, and host | |
EP2997717A1 (en) | Method and device for selecting a communication interface | |
WO2018006684A1 (en) | Message processing method and device, and router | |
CN114303346B (en) | Method and device for managing at least one communication of a terminal device in a communication network | |
CN112995038B (en) | Access method of PROFINET protocol in industrial SDN | |
CN115695306B (en) | A message transmission system, method, device, equipment and medium | |
CN106034078B (en) | Method and system for reducing DR change of PIM protocol | |
WO2014169590A1 (en) | Data service communication method, device, and system | |
CN102986186B (en) | Method for terminal network element registration, terminal network element and router | |
CN105813169B (en) | Wireless network deployment method and system | |
CN103975561B (en) | Message sending method, message receiving method, openflow controller, and first openflow switch | |
CN104717313B (en) | mDNS gateway address configuration method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |