CN102118453B - Method, service device, client and communication system for automatic configuration of IP address - Google Patents
Method, service device, client and communication system for automatic configuration of IP address Download PDFInfo
- Publication number
- CN102118453B CN102118453B CN200910215385.2A CN200910215385A CN102118453B CN 102118453 B CN102118453 B CN 102118453B CN 200910215385 A CN200910215385 A CN 200910215385A CN 102118453 B CN102118453 B CN 102118453B
- Authority
- CN
- China
- Prior art keywords
- address
- client
- formal
- dhcp
- server
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明实施例公开了一种IP地址自动配置方法、服务端设备、客户机和通信系统。该方法包括在待配置正式IP地址的客户机所属的通信范围内,确定具有正式IP地址的客户机,所述正式IP地址为已配置的IP地址;向所述具有正式IP地址的客户机发送中继配置指示消息,所述中继配置指示消息中携带DHCP配置信息;当所述具有正式IP地址的客户机根据所述DHCP配置信息将本机配置成DHCP中继器后,通过配置成DHCP中继器的客户机,为所述待配置正式IP地址的客户机分配正式IP地址。本发明实施例可以在采用DHCP自动配置IP地址时,无需设置专用的DHCP中继器,降低系统的投入及维护成本。
The embodiment of the invention discloses an IP address automatic configuration method, a server device, a client computer and a communication system. The method includes determining a client computer with an official IP address within the communication range to which the client computer with the official IP address belongs, and the official IP address is a configured IP address; sending a message to the client computer with the official IP address A relay configuration indication message, the relay configuration indication message carries DHCP configuration information; when the client with the formal IP address configures the machine as a DHCP repeater according to the DHCP configuration information, it is configured as a DHCP The client computer of the repeater assigns a formal IP address to the client computer to be configured with a formal IP address. In the embodiment of the present invention, when the DHCP is used to automatically configure the IP address, there is no need to set up a dedicated DHCP repeater, thereby reducing system investment and maintenance costs.
Description
技术领域 technical field
本发明实施例涉及网络通信技术,尤其涉及一种IP地址自动配置方法、服务端设备、客户机和通信系统。The embodiment of the present invention relates to network communication technology, in particular to an IP address automatic configuration method, a server device, a client computer and a communication system.
背景技术 Background technique
互联网协议(Internet Protocol,IP)地址在IP网络中可以作为用户设备的标识和网络设备的标识,也可以作为IP包转发的标识,因此,IP地址的配置是整个IP网络的核心。IP地址包括IPv4地址和IPv6地址,以IPv4地址为例,IPv4地址是32位二进制码的地址,包括网络标识(Identify,ID)和主机ID两部分。不同的网络ID被配置给不同网关的网段,同一网络ID的所有主机挂在同一网关的同一网段下,因此,IP地址的配置不仅要唯一,而且还需要根据接入的网关的网段来规划对应的网络ID。进一步地,当客户机所属的网段被划分为多个虚拟局域网(Virtual Local AreaNetwork,VLAN)时,不同的VLAN采用不同的IP地址规划,此时,为客户机配置IP地址时,不仅要考虑网段信息,还要考虑VLAN信息。IP地址是一个逻辑地址,需要与设备的物理标识对应,例如,与设备的媒体接入控制(Media Access Control,MAC)地址对应,因此,IP地址配置时还需要与MAC地址进行关联。The Internet Protocol (IP) address can be used as the identification of user equipment and network equipment in the IP network, and can also be used as the identification of IP packet forwarding. Therefore, the configuration of the IP address is the core of the entire IP network. An IP address includes an IPv4 address and an IPv6 address. Taking an IPv4 address as an example, an IPv4 address is an address of 32-bit binary code, including two parts of a network identification (Identify, ID) and a host ID. Different network IDs are assigned to network segments of different gateways, and all hosts with the same network ID are linked to the same network segment of the same gateway. To plan the corresponding network ID. Furthermore, when the network segment to which the client belongs is divided into multiple virtual local area networks (Virtual Local Area Network, VLAN), different VLANs adopt different IP address plans. At this time, when configuring the IP address for the client, not only Network segment information, but also VLAN information. The IP address is a logical address that needs to correspond to the physical identifier of the device, for example, the Media Access Control (MAC) address of the device. Therefore, the IP address needs to be associated with the MAC address during configuration.
目前IP地址配置方案中有手工配置IP地址方式和自动获取IP地址的方式,其中,普遍采用的是自动获取IP地址的方式。动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)是目前IP网络中应有最广泛的自动IP地址配置技术。DHCP技术涉及服务器和客户机,由服务器集中管理IP网络的配置数据,并负责处理客户机的DHCP请求,为客户机配置IP地址;客户机使用服务器配置的IP地址。Currently, IP address configuration schemes include manual configuration of IP addresses and automatic acquisition of IP addresses, among which the automatic acquisition of IP addresses is commonly used. Dynamic Host Configuration Protocol (DHCP) is currently the most widely used automatic IP address configuration technology in IP networks. The DHCP technology involves a server and a client. The server centrally manages the configuration data of the IP network, and is responsible for processing the client's DHCP request and configuring an IP address for the client; the client uses the IP address configured by the server.
DHCP的流程大致如下:The process of DHCP is roughly as follows:
第一步,客户机发现本机上没有IP配置数据时,则向网络中广播一个DHCP搜索(DHCP DISCOVER)包;The first step, when the client computer finds that there is no IP configuration data on the local computer, it broadcasts a DHCP search (DHCP DISCOVER) packet in the network;
第二步,当DHCP服务器监听到客户机发送的DHCP搜索包后会给该客户机配置一个IP地址,将配置的IP地址及其余的IP配置数据携带在DHCP回应(DHCP OFFER)包中返回给客户机;In the second step, when the DHCP server monitors the DHCP search packet sent by the client computer, it will configure an IP address for the client computer, and carry the configured IP address and the rest of the IP configuration data in the DHCP response (DHCP OFFER) packet and return to the client. Client computer;
第三步,当客户机收到多个服务器返回的DHCP回应包后,在多个DHCP包中选择一个IP地址,或者,当客户机只收到一个服务器返回的DHCP回应包后,选择该DHCP包中的IP地址,并向网络广播一个DHCP广播(DHCP REQUEST)包,通知网络中的所有服务器该客户机选择的IP地址;In the third step, when the client computer receives the DHCP response packets returned by multiple servers, select an IP address among multiple DHCP packets, or, when the client computer only receives the DHCP response packets returned by one server, select the IP address of the DHCP server. IP address in the packet, and broadcast a DHCP broadcast (DHCP REQUEST) packet to the network, and notify all servers in the network of the IP address selected by the client;
第四步,服务器接收到DHCP广播包后,向客户机返回DHCP确认(DHCP ACK)包,以确认IP配置正式生效,结束整个DHCP过程。In the 4th step, after the server receives the DHCP broadcast packet, it returns a DHCP acknowledgment (DHCP ACK) packet to the client computer to confirm that the IP configuration is formally effective, and ends the entire DHCP process.
其中,上述流程中,当客户机和服务器位于不同的网段时,在该网络中还需要设置一个DHCP中继器(Relay),由DHCP中继器转发客户机和服务器之间传输的交互包,例如,上述的DHCP搜索包、DHCP回应包、DHCP广播包和DHCP确认包。Among them, in the above process, when the client and the server are located in different network segments, a DHCP relay (Relay) needs to be set in the network, and the DHCP relay forwards the interaction packets transmitted between the client and the server. , for example, the above-mentioned DHCP search packet, DHCP response packet, DHCP broadcast packet and DHCP confirmation packet.
现有技术中至少存在如下问题:当DHCP中的客户机和服务器位于不同的网段时,需要专用的DHCP中继器,而设置专用的DHCP中继器无疑会增加投入及维护成本。There are at least the following problems in the prior art: when the client and server in DHCP are located in different network segments, a dedicated DHCP repeater is required, and setting a dedicated DHCP repeater will undoubtedly increase investment and maintenance costs.
发明内容 Contents of the invention
本发明实施例提供了一种IP地址自动配置方法、服务端设备、客户机和通信系统,用以解决现有技术中存在的需要专用设置DHCP中继器引起的投入及维护成本较高的问题。The embodiment of the present invention provides an IP address automatic configuration method, a server device, a client computer and a communication system, which are used to solve the problem of high investment and maintenance costs caused by the need for a dedicated DHCP repeater in the prior art .
本发明实施例提供了一种IP地址自动配置方法,包括:服务端设备在待配置正式IP地址的客户机所属的通信范围内,确定具有正式IP地址的客户机,该正式IP地址为已配置的IP地址;该服务端设备向该具有正式IP地址的客户机发送中继配置指示消息,该中继配置指示消息中携带动态主机配置协议DHCP配置信息;当该具有正式IP地址的客户机根据该DHCP配置信息将本机配置成DHCP中继器后,该服务端设备通过配置成DHCP中继器的客户机,为该待配置正式IP地址的客户机分配正式IP地址。An embodiment of the present invention provides a method for automatically configuring an IP address, including: the server device determines the client with the official IP address within the communication range of the client to be configured with the official IP address, and the official IP address is configured. IP address; the server device sends a relay configuration indication message to the client with the official IP address, and the relay configuration indication message carries the DHCP configuration information of the dynamic host configuration protocol; when the client with the official IP address according to After the DHCP configuration information configures the machine as a DHCP repeater, the server device assigns a formal IP address to the client to be configured with a formal IP address through the client configured as a DHCP repeater.
本发明实施例还提供了一种IP地址自动配置方法,包括:已具有正式IP地址的客户机接收服务端设备发送的中继配置指示消息,该中继配置指示消息中携带动态主机配置协议DHCP配置信息,该已具有正式IP地址的客户机与待配置正式IP地址的客户机在同一个通信范围内;该已具有正式IP地址的客户机根据该DHCP配置信息将本机配置成DHCP中继器;配置成DHCP中继器的客户机提供DHCP中继功能,实现该服务端设备为该待配置正式IP地址的客户机分配正式IP地址。The embodiment of the present invention also provides a method for automatically configuring an IP address, including: a client having an official IP address receives a relay configuration indication message sent by a server device, and the relay configuration indication message carries a dynamic host configuration protocol DHCP Configuration information, the client that already has an official IP address and the client to be configured with an official IP address are within the same communication range; the client that already has an official IP address configures the machine as a DHCP relay according to the DHCP configuration information device; the client computer configured as a DHCP repeater provides a DHCP relay function, so that the server device assigns a formal IP address to the client computer to be configured with a formal IP address.
本发明实施例提供了一种服务端设备,包括:客户机确定模块,用于在待配置正式IP地址的客户机所属的通信范围内,确定具有正式IP地址的客户机,该正式IP地址为已配置的IP地址;发送模块,用于向该具有正式IP地址的客户机发送中继配置指示消息,该中继配置指示消息中携带动态主机配置协议DHCP配置信息;分配模块,用于当该具有正式IP地址的客户机根据该DHCP配置信息将本机配置成DHCP中继器后,通过配置成DHCP中继器的客户机,为该待配置正式IP地址的客户机分配正式IP地址。An embodiment of the present invention provides a server device, including: a client determining module, configured to determine a client with an official IP address within the communication range to which the client whose official IP address is to be configured belongs, and the official IP address is The configured IP address; the sending module is used to send a relay configuration instruction message to the client with the official IP address, and the relay configuration instruction message carries dynamic host configuration protocol DHCP configuration information; the distribution module is used when the client After the client computer with the official IP address configures itself as a DHCP repeater according to the DHCP configuration information, the client computer configured as the DHCP repeater assigns an official IP address to the client computer to be configured with an official IP address.
本发明实施例提供了一种客户机,包括:接收模块,用于接收服务端设备发送的中继配置指示消息,该中继配置指示消息中携带动态主机配置协议DHCP配置信息;配置模块,用于根据该DHCP配置信息将本机配置成DHCP中继器;中继模块,用于提供DHCP中继功能,实现该服务端设备为待配置正式IP地址的客户机分配正式IP地址。An embodiment of the present invention provides a client, including: a receiving module, configured to receive a relay configuration indication message sent by a server device, the relay configuration indication message carrying dynamic host configuration protocol DHCP configuration information; a configuration module, used to According to the DHCP configuration information, the local machine is configured as a DHCP repeater; the relay module is used to provide a DHCP relay function, and realize that the server device assigns a formal IP address to a client to be configured with a formal IP address.
本发明实施例提供了一种通信系统,包括:上述的服务端设备;以及上述的客户机。An embodiment of the present invention provides a communication system, including: the above-mentioned server device; and the above-mentioned client.
本发明实施例通过具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低。In the embodiment of the present invention, a client with a formal IP address is configured as a DHCP repeater. When DHCP is used to configure an IP address, a dedicated DHCP repeater does not need to be set in the network system, thereby reducing network investment and maintenance costs.
附图说明 Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明第一实施例的方法流程示意图;Fig. 1 is the schematic flow chart of the method of the first embodiment of the present invention;
图2为本发明第二实施例的方法流程示意图;Fig. 2 is a schematic flow chart of the method of the second embodiment of the present invention;
图3为本发明第三实施例的方法流程示意图;3 is a schematic flow diagram of a method according to a third embodiment of the present invention;
图4为本发明第三实施例对应的网络系统结构示意图;FIG. 4 is a schematic structural diagram of a network system corresponding to a third embodiment of the present invention;
图5为本发明第四实施例的方法流程示意图;5 is a schematic flow diagram of a method according to a fourth embodiment of the present invention;
图6为本发明第四实施例对应的网络系统结构示意图;FIG. 6 is a schematic structural diagram of a network system corresponding to a fourth embodiment of the present invention;
图7为本发明第五实施例的方法流程示意图;7 is a schematic flow chart of a method according to a fifth embodiment of the present invention;
图8为本发明第五实施例对应的网络系统结构示意图;FIG. 8 is a schematic structural diagram of a network system corresponding to a fifth embodiment of the present invention;
图9为本发明第六实施例的方法流程示意图;FIG. 9 is a schematic flow chart of a method according to a sixth embodiment of the present invention;
图10为本发明第六实施例对应的网络系统结构示意图;FIG. 10 is a schematic structural diagram of a network system corresponding to a sixth embodiment of the present invention;
图11为本发明第七实施例的服务端设备结构示意图;FIG. 11 is a schematic structural diagram of a server device according to a seventh embodiment of the present invention;
图12为本发明第八实施例的客户机结构示意图;FIG. 12 is a schematic structural diagram of a client computer according to an eighth embodiment of the present invention;
图13为本发明第九实施例的通信系统结构示意图。Fig. 13 is a schematic structural diagram of a communication system according to a ninth embodiment 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 creative efforts fall within the protection scope of the present invention.
图1为本发明第一实施例的方法流程示意图,包括:Fig. 1 is a schematic flow chart of the method of the first embodiment of the present invention, including:
步骤11:服务端设备在待配置正式IP地址的客户机所属的通信范围内,确定具有正式IP地址的客户机,该正式IP地址为已配置的IP地址。Step 11: The server device determines the client with the official IP address within the communication range of the client whose official IP address is to be configured, and the official IP address is the configured IP address.
其中,服务端设备可以包括DHCP单元,该DHCP单元能够提供DHCP服务器功能,即当客户机采用DHCP流程请求IP地址时,该DHCP单元可以为客户机提供对应的正式IP地址。Wherein, the server device may include a DHCP unit, which can provide a DHCP server function, that is, when the client computer uses the DHCP process to request an IP address, the DHCP unit can provide the client computer with a corresponding official IP address.
为了使DHCP过程顺利实施,该服务端设备还可以包括自动地址分配协议(IP Auto Configuration Protocol,IACP)单元,该IACP单元用于为客户机分配临时IP地址。In order to implement the DHCP process smoothly, the server device can also include an automatic address assignment protocol (IP Auto Configuration Protocol, IACP) unit, which is used to assign a temporary IP address to the client computer.
上述的DHCP单元和IACP单元可以位于同一个物理实体中,此时,服务端设备可以具体为该DHCP单元和IACP单元所属的物理实体;上述的DHCP单元和IACP单元也可以位于不同的物理实体中,此时,服务端设备可以具体包括DHCP单元所属的物理实体及IACP单元所属的物理实体。上述DHCP单元和IACP单元的具体功能及流程应用可以具体参见下述实施例。The above-mentioned DHCP unit and IACP unit can be located in the same physical entity. At this time, the server device can be specifically the physical entity to which the DHCP unit and IACP unit belong; the above-mentioned DHCP unit and IACP unit can also be located in different physical entities. , at this time, the server device may specifically include the physical entity to which the DHCP unit belongs and the physical entity to which the IACP unit belongs. For the specific functions and process applications of the above DHCP unit and IACP unit, reference may be made to the following embodiments.
其中,已配置的IP地址是指采用DHCP方式得到的IP地址,或者,采用人工配置的方式得到的IP地址,或者采用其他的动态IP地址分配方式得到的IP地址,该已配置的IP地址为通信系统中通常意义上的IP地址。而临时IP地址是为了获取正式IP地址而临时采用的IP地址。Among them, the configured IP address refers to the IP address obtained by DHCP, or the IP address obtained by manual configuration, or the IP address obtained by other dynamic IP address allocation methods. The configured IP address is An IP address in the usual sense in a communication system. The temporary IP address is an IP address temporarily used in order to obtain an official IP address.
其中,当系统不进行VLAN规划时,该通信范围为某一网段;当系统进行VLAN规划时,该通信范围为某一网段的某一VLAN。Wherein, when the system does not perform VLAN planning, the communication range is a certain network segment; when the system performs VLAN planning, the communication range is a certain VLAN of a certain network segment.
步骤12:该服务端设备向该具有正式IP地址的客户机发送中继配置指示消息,该中继配置指示消息中携带DHCP配置信息。Step 12: the server device sends a relay configuration indication message to the client with the official IP address, and the relay configuration indication message carries DHCP configuration information.
步骤13:当该具有正式IP地址的客户机根据该DHCP配置信息将该具有正式IP地址的客户机配置成DHCP中继器后,该服务端设备通过配置成DHCP中继器的客户机,为该待配置正式IP地址的客户机分配正式IP地址。Step 13: After the client computer with the official IP address configures the client computer with the official IP address as a DHCP repeater according to the DHCP configuration information, the server device is configured as the client computer of the DHCP repeater. The client computer whose official IP address is to be configured is assigned an official IP address.
本实施例通过具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低。In this embodiment, a client with an official IP address is configured as a DHCP repeater. When DHCP is used to configure an IP address, a dedicated DHCP repeater does not need to be set in the network system, thereby reducing network investment and maintenance costs.
图2为本发明第二实施例的方法流程示意图,包括:Fig. 2 is a schematic flow chart of a method according to a second embodiment of the present invention, including:
步骤21:已具有正式IP地址的客户机接收服务端设备发送的中继配置指示消息,该中继配置指示消息中携带DHCP配置信息,该已具有正式IP地址的客户机与待配置正式IP地址的客户机在同一个通信范围内;Step 21: The client computer that already has a formal IP address receives the relay configuration instruction message sent by the server device. The relay configuration instruction message carries DHCP configuration information. The client computer that already has a formal IP address and the official IP address to be configured The clients are within the same communication range;
步骤22:该已具有正式IP地址的客户机根据该DHCP配置信息将本机配置成DHCP中继器;Step 22: The client computer having the official IP address configures the client computer as a DHCP repeater according to the DHCP configuration information;
步骤23:配置成DHCP中继器的客户机提供DHCP中继功能,实现该服务端设备为该待配置正式IP地址的客户机分配正式IP地址。Step 23: The client configured as a DHCP repeater provides a DHCP relay function, so that the server device assigns a formal IP address to the client to be configured with a formal IP address.
进一步地,本实施例还可以包括:该已具有正式IP地址的客户机在具有正式IP地址之前,还包括获取正式IP地址的步骤;在获取正式IP地址后,该服务端设备发送正式IP地址指示消息,该服务端设备在接收到该正式IP地址指示消息后,发送该中继配置指示消息。Further, this embodiment may also include: before the client computer having the official IP address has the official IP address, it also includes the step of obtaining the official IP address; after obtaining the official IP address, the server device sends the official IP address An indication message, the server device sends the relay configuration indication message after receiving the official IP address indication message.
其中,该客户机获取正式IP地址包括:Wherein, the client obtains the official IP address including:
该客户机接收该服务端设备发送的探测包,该探测包中携带临时IP地址、该通信范围的网关的IP地址、服务端设备的IP地址和该通信范围的网络掩码;该客户机根据该临时IP地址、该通信范围的网关的IP地址、服务端设备的IP地址和该通信范围的网络掩码,向该服务端设备发送单播DHCP请求,接收该服务端设备根据该单播DHCP请求为该客户机分配的正式IP地址。The client computer receives the detection packet sent by the server device, which carries the temporary IP address, the IP address of the gateway of the communication range, the IP address of the server device and the network mask of the communication range; the client computer according to The temporary IP address, the IP address of the gateway of the communication range, the IP address of the server device and the network mask of the communication range, send a unicast DHCP request to the server device, and receive the server device according to the unicast DHCP request. Requests the official IP address assigned to this client.
本实施例通过具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低。In this embodiment, a client with an official IP address is configured as a DHCP repeater. When DHCP is used to configure an IP address, a dedicated DHCP repeater does not need to be set in the network system, thereby reducing network investment and maintenance costs.
本发明实施例主要基于如下思路:当DHCP客户机和DHCP服务器不在同一网段时,为了IP地址的顺利分配,系统中需要有DHCP中继器。而如果专用设置专用的DHCP中继器会增加成本,为了解决该问题,本发明实施例没有设置专用的DHCP中继器,而是将具有正式IP地址的客户机配置成DHCP中继器,当存在DHCP中继器后,便可以采用现有DHCP过程进行正式IP地址的分配。进一步地,由于在上述配置成DHCP中继器的过程中需要具有正式IP地址的客户机,而该通信范围内可能初始并没有任何具有正式IP地址的客户机,此时,需要首先为该通信范围内的至少一个客户机分配正式IP地址,以便该分配了正式IP地址的客户机可以被配置成DHCP中继器。本发明实施例是借助临时IP地址实现为该通信范围内的至少一个客户机分配正式IP地址,而临时IP地址是采用IACP过程实现的。The embodiment of the present invention is mainly based on the following idea: when the DHCP client and the DHCP server are not in the same network segment, a DHCP repeater is required in the system for the smooth allocation of IP addresses. And if the special-purpose DHCP repeater of special setting can increase cost, in order to solve this problem, the embodiment of the present invention does not set special-purpose DHCP repeater, but configures the client computer with official IP address as DHCP repeater, when After the DHCP repeater exists, the existing DHCP process can be used for formal IP address allocation. Further, since a client computer with an official IP address is required in the above-mentioned process of configuring as a DHCP repeater, and there may not be any client computer with an official IP address initially in the communication range, at this time, it is necessary to provide At least one client computer within the range is assigned a formal IP address, so that the client computer assigned a formal IP address can be configured as a DHCP relay agent. In the embodiment of the present invention, a formal IP address is allocated to at least one client within the communication range by means of a temporary IP address, and the temporary IP address is realized by using the IACP process.
IACP的具体流程可以如下实现:The specific process of IACP can be implemented as follows:
首先,客户端获取包括未分配IP地址的IP报文。例如,当该客户端和IP地址分配服务器不在同一个网段时,该客户端接收该客户端所在网段的接入路由器发送的第一地址解析协议ARP请求包;或,当该客户端和IP地址分配服务器在同一个网段时,该客户端接收该IP地址分配服务器发送的第二ARP请求包。First, the client obtains an IP packet including an unassigned IP address. For example, when the client and the IP address allocation server are not in the same network segment, the client receives the first address resolution protocol ARP request packet sent by the access router of the network segment where the client is located; or, when the client and When the IP address allocation server is in the same network segment, the client receives the second ARP request packet sent by the IP address allocation server.
其次,客户端探测获取到的IP报文中的未分配IP地址是否被占用。例如,向本网段的其他节点发送包括未分配IP地址的探测消息;根据本网段的其他节点回复的响应消息探测该的未分配IP地址是否被占用。Secondly, the client detects whether the unallocated IP address in the obtained IP packet is occupied. For example, send detection messages including unallocated IP addresses to other nodes in this network segment; detect whether the unallocated IP addresses are occupied according to response messages replied by other nodes in this network segment.
再次,如果未分配IP地址没有被占用,则判断是否由本客户端获得该的未分配IP地址,如果是,则获得该的未分配IP地址客户端获取包括未分配IP地址的IP报文。例如,根据接收的其他客户端发送的免费ARP请求包承载的比对信息,判断是否由本客户端获得该的未分配IP地址。Again, if the undistributed IP address is not occupied, it is judged whether the undistributed IP address is obtained by the client, and if so, the undistributed IP address client obtains the IP message comprising the undistributed IP address. For example, according to the received comparison information carried in the gratuitous ARP request packet sent by other clients, it is judged whether the client obtains the unallocated IP address.
其中,之所以选择具有正式IP地址的客户机,是因为只有客户机在具有正式IP地址之后,服务端设备才能按照正常的IP过程与客户机交互信息,例如,才可以将中继配置指示消息发送给客户机。Among them, the reason why the client computer with an official IP address is selected is that only after the client computer has an official IP address, the server device can exchange information with the client computer according to the normal IP process, for example, the relay configuration indication message sent to the client.
其中,在服务端设备中可以预先保存DHCP配置信息,且某一设备按照该DHCP配置信息进行配置后可以具有DHCP中继器的功能。因此,当服务端设备将DHCP配置信息发送给客户机时,该接收到DHCP的客户机可以根据该DHCP配置信息将自身配置成DHCP服务器。具体的DHCP配置信息的内容可以从现有DHCP中继器所需要的DHCP配置信息得到,不在本发明实施例的关注范围内。Wherein, the DHCP configuration information may be stored in advance in the server device, and a certain device may have the function of a DHCP repeater after being configured according to the DHCP configuration information. Therefore, when the server device sends the DHCP configuration information to the client computer, the client computer that receives the DHCP can configure itself as a DHCP server according to the DHCP configuration information. The content of the specific DHCP configuration information can be obtained from the DHCP configuration information required by the existing DHCP relay, which is not within the focus of the embodiments of the present invention.
从上述内容可知,本发明实施例可能需要IACP过程及DHCP过程,因此,在这种情况下,客户端和服务端分别需要同时具有IACP功能和DHCP功能。为此,下述实施例中,客户机可以为具有IACP功能和DHCP功能的客户机。而在服务端,具有IACP功能的单元和具有DHCP功能的单元可以设置在同一个物理实体中,此时,服务端设备为具有IACP功能和DHCP功能的服务器;或者,具有IACP功能的单元和具有DHCP功能的单元也可以设置在不同的物理实体中,此时,服务端设备包括具有IACP功能的IACP服务器和具有DHCP功能的DHCP服务器。下述实施例将分别以IACP功能和DHCP功能设置在同一个物理实体中、IACP功能和DHCP功能设置在不同的物理实体中为例进行说明。It can be seen from the above that the embodiment of the present invention may require the IACP process and the DHCP process. Therefore, in this case, the client and the server need to have both the IACP function and the DHCP function respectively. Therefore, in the following embodiments, the client computer may be a client computer having the IACP function and the DHCP function. On the server side, the unit with IACP function and the unit with DHCP function can be set in the same physical entity, at this time, the server device is a server with IACP function and DHCP function; or, the unit with IACP function and the unit with The units with the DHCP function may also be set in different physical entities. In this case, the server device includes an IACP server with the IACP function and a DHCP server with the DHCP function. The following embodiments will be described by taking the example that the IACP function and the DHCP function are set in the same physical entity, and that the IACP function and the DHCP function are set in different physical entities.
从上述内容还可以获知,网络系统可以不进行VLAN规划,此时,通信范围是指网段;也可以进行VLAN规划,此时通信范围为网段及该网段下的VLAN。下述实施例将分别以不进行VLAN规划、进行VLAN规则为例进行说明。It can also be known from the above content that the network system does not need to perform VLAN planning. At this time, the communication range refers to the network segment; VLAN planning can also be performed. At this time, the communication range is the network segment and the VLANs under the network segment. The following embodiments will be described by taking no VLAN planning and VLAN rules as examples respectively.
图3为本发明第三实施例的方法流程示意图,本实施例以不进行VLAN规划,且IACP功能和DHCP功能设置在同一个物理实体中为例。FIG. 3 is a schematic flowchart of a method according to the third embodiment of the present invention. In this embodiment, VLAN planning is not performed, and the IACP function and the DHCP function are set in the same physical entity as an example.
图4为本发明第三实施例对应的网络系统结构示意图,参见图4,包括至少一个的客户机41,该客户机通过以太网(Ethernet)42及路由器43,与IACP+DHCP服务器44通信,该IACP+DHCP服务器44可以具有IACP功能和DHCP功能。本实施例需要在待分配正式IP地址的客户机所属的网段内,配置DHCP中继器。Fig. 4 is the corresponding network system structure schematic diagram of the third embodiment of the present invention, referring to Fig. 4, comprises at least one
本实施例中如果不进行特别说明,网段是指待分配正式IP地址的客户机所属的网段。In this embodiment, unless otherwise specified, the network segment refers to the network segment to which the client to be assigned a formal IP address belongs.
参见图3,本实施例包括:Referring to Fig. 3, the present embodiment includes:
步骤301:IACP+DHCP服务器启动后,判断IACP+DHCP服务器与待分配正式IP地址的客户机是否属于同一个网段,若是,执行步骤311,否则,执行步骤302。Step 301: After the IACP+DHCP server is started, determine whether the IACP+DHCP server and the client computer to be assigned a formal IP address belong to the same network segment, if so, go to step 311, otherwise, go to step 302.
其中,IACP+DHCP服务器中保存有客户机的相关信息,该相关信息包含客户机所属网段的网段标识,因此,该IACP+DHCP服务器可以判断出IACP+DHCP服务器与待分配正式IP地址的客户机是否在同一个网段中。Wherein, the relevant information of the client computer is stored in the IACP+DHCP server, and the relevant information includes the network segment identifier of the network segment to which the client computer belongs. Whether the clients are in the same network segment.
步骤302:IACP+DHCP服务器判断待分配正式IP地址的客户机所属的网段内是否存在可用的DHCP中继器,若是,执行步骤310,否则,执行步骤303。Step 302: The IACP+DHCP server judges whether there is an available DHCP repeater in the network segment to which the client to be assigned an official IP address belongs, and if so, executes step 310; otherwise, executes step 303.
具体地,网络系统中的具有正式IP地址的客户机可以向IACP+DHCP服务器发送中继能力指示消息,该中继能力指示消息中携带网段标识和能力指示信息。Specifically, a client with an official IP address in the network system may send a relay capability indication message to the IACP+DHCP server, where the relay capability indication message carries the network segment identifier and capability indication information.
因此,IACP+DHCP服务器可以采用如下方式进行该网段内是否存在可用DHCP中继器的判断:Therefore, the IACP+DHCP server can use the following method to judge whether there is an available DHCP repeater in the network segment:
当IACP+DHCP服务器接收到客户机发送的中继能力指示消息,该中继能力指示消息中携带能力指示信息和网段标识,当该能力指示信息表明发送该中继能力指示消息的客户机具有中继能力,且该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个网段时,该IACP+DHCP服务器得到该网段存在可用的DHCP中继器;可以理解的是,这里的“可用的DHCP中继器”可以是具有正式IP地址的客户机配置而成的DHCP中继器,或者,也可能是现有技术中专用的DHCP中继器。When the IACP+DHCP server receives the relay capability indication message sent by the client, the relay capability indication message carries capability indication information and a network segment identifier, and when the capability indication information indicates that the client that sends the relay capability indication message has Relay capability, and the network segment identifier indicates that the client computer sending the official IP address indication message is in the same network segment as the client computer whose official IP address is to be configured, the IACP+DHCP server obtains that there is an available DHCP server in the network segment Repeater; It can be understood that the "available DHCP repeater" here can be a DHCP repeater configured by a client with a formal IP address, or it may be a dedicated DHCP repeater in the prior art. Repeater.
当该IACP+DHCP服务器未接收到该中继能力指示消息,或者,接收到该中继能力指示消息但该能力指示信息表明发送该中继能力指示消息的客户机不具有中继能力,或者,接收到该中继能力指示消息但该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个网段时,该IACP+DHCP服务器得到该网段内不存在可用的DHCP中继器。When the IACP+DHCP server does not receive the relay capability indication message, or receives the relay capability indication message but the capability indication information indicates that the client sending the relay capability indication message does not have relay capability, or, When the relay capability indication message is received but the network segment identifier indicates that the client computer sending the official IP address indication message is not in the same network segment as the client computer whose official IP address is to be configured, the IACP+DHCP server obtains the network segment There is no DHCP repeater available.
步骤303:IACP+DHCP服务器判断该网段内是否存在具有正式IP地址的客户机,若是,执行步骤307,否则,执行步骤304。Step 303: the IACP+DHCP server judges whether there is a client with a formal IP address in the network segment, if so, execute step 307, otherwise, execute step 304.
具体地,网络系统中的客户机在启动后,已被配置正式IP地址(例如,采用人工配置方式或者DHCP配置方式)的客户机可以向IACP+DHCP服务器发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识。Specifically, after the client computer in the network system is started, the client computer that has been configured with a formal IP address (for example, using a manual configuration method or a DHCP configuration method) can send a formal IP address indication message to the IACP+DHCP server. The network segment identifier is carried in the address indication message.
因此,IACP+DHCP服务器可以采用如下方式进行该网段内是否具有正式IP地址的客户机的判断:Therefore, the IACP+DHCP server can use the following methods to judge whether there is a client with a formal IP address in the network segment:
当该IACP+DHCP服务器接收到客户机发送的携带网段标识的正式IP地址指示消息,且该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个网段时,该IACP+DHCP服务器得到该网段内存在已被配置正式IP地址的客户机;When the IACP+DHCP server receives the official IP address indication message carrying the network segment identifier sent by the client, and the network segment identification indicates that the client computer sending the official IP address indication message is in the same relationship as the client computer with the official IP address to be configured In the same network segment, the IACP+DHCP server obtains that there is a client computer configured with a formal IP address in the network segment;
当该IACP+DHCP服务器未接收到该正式IP地址指示消息,或者,接收到该正式IP地址指示消息但该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个网段时,该IACP+DHCP服务器得到该网段内不存在已被配置正式IP地址的客户机。When the IACP+DHCP server does not receive the official IP address indication message, or, the official IP address indication message is received but the network segment identifier indicates that the client computer sending the official IP address indication message is related to the official IP address to be configured When the client computers are not in the same network segment, the IACP+DHCP server obtains that there is no client computer configured with a formal IP address in the network segment.
步骤304:IACP+DHCP服务器采用IACP为该网段内的临时客户机分配临时IP地址。Step 304: The IACP+DHCP server uses IACP to assign a temporary IP address to the temporary client in the network segment.
其中,IACP过程中,IACP服务器会为该网段分配IP地址,为了与DHCP过程分配的IP地址区分,将IACP服务器分配的IP地址称为临时IP地址,接收该临时IP地址的客户机称为临时客户机。Among them, during the IACP process, the IACP server will allocate an IP address for the network segment. In order to distinguish it from the IP address allocated by the DHCP process, the IP address allocated by the IACP server is called a temporary IP address, and the client receiving the temporary IP address is called a temporary IP address. Temporary client.
具体地,IACP是IACP服务器主动向客户机配置IP地址的协议。IACP服务器启动后,周期性的向目的网段发送探测包,其中,探测包中的目的地址为IACP服务器选择的尚未分配的IP地址,探测包中还携带目的网段内的网关的IP地址,目的网段的网络掩码及IACP服务器的IP地址。目的网段内的网关接收到该探测包后,向目的网段广播请求包,客户机接收到该请求包后,由尚未分配IP地址的客户机选举一个客户机接收该IACP服务器选择的IP地址,之后由该被选举出的客户机接收IACP服务器发送的探测包,获得IACP服务器分配的IP地址。Specifically, IACP is a protocol for an IACP server to actively configure an IP address for a client. After the IACP server is started, it periodically sends a detection packet to the destination network segment, wherein the destination address in the detection packet is an unallocated IP address selected by the IACP server, and the detection packet also carries the IP address of the gateway in the destination network segment. The netmask of the destination network segment and the IP address of the IACP server. After the gateway in the destination network segment receives the detection packet, it broadcasts the request packet to the destination network segment. After the client computer receives the request packet, the client computer that has not yet assigned an IP address elects a client computer to receive the IP address selected by the IACP server. , and then the selected client computer receives the detection packet sent by the IACP server, and obtains the IP address assigned by the IACP server.
步骤305:临时客户机根据探测包中的临时IP地址、网关的IP地址、网络掩码和IACP+DHCP服务器的IP地址,采用单播DHCP过程,从IACP+DHCP服务器获取正式IP地址。Step 305: The temporary client obtains the official IP address from the IACP+DHCP server by using the unicast DHCP process according to the temporary IP address in the detection packet, the IP address of the gateway, the network mask and the IP address of the IACP+DHCP server.
具体地,当临时客户机根据网络掩码获知自身和IACP+DHCP服务器在同一网段时,可以根据IACP+DHCP服务器的IP地址,向IACP+DHCP服务器发送DHCP搜索包,IACP+DHCP服务器接收到DHCP搜索包后分配正式IP地址,进行正常的DHCP流程。当临时客户机根据网络掩码获知自身与IACP+DHCP服务器不在同一个网段时,可以根据网关的IP地址及IACP+DHCP服务器的IP地址,通过网关向IACP+DHCP服务器发送DHCP搜索包,IACP+DHCP服务器接收到DHCP搜索包后分配正式IP地址,进行正常的DHCP流程。Specifically, when the temporary client knows that itself and the IACP+DHCP server are in the same network segment according to the network mask, it can send a DHCP search packet to the IACP+DHCP server according to the IP address of the IACP+DHCP server, and the IACP+DHCP server receives After the DHCP searches for the packet, the official IP address is assigned, and the normal DHCP process is performed. When the temporary client knows that it is not in the same network segment as the IACP+DHCP server according to the network mask, it can send a DHCP search packet to the IACP+DHCP server through the gateway according to the IP address of the gateway and the IP address of the IACP+DHCP server. + After receiving the DHCP search packet, the DHCP server assigns a formal IP address and proceeds with the normal DHCP process.
在临时客户机获取正式IP地址之后,临时客户机可以释放临时IP地址,IACP+DHCP服务器可以回收临时IP地址,这样的话,后续该临时IP地址依旧可以被再次使用。After the temporary client obtains the official IP address, the temporary client can release the temporary IP address, and the IACP+DHCP server can reclaim the temporary IP address. In this case, the temporary IP address can still be used again later.
步骤306:具有正式IP地址的客户机向IACP+DHCP服务器发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识。Step 306: The client with the official IP address sends an official IP address indication message to the IACP+DHCP server, and the official IP address indication message carries the network segment identifier.
之后,可以重复执行步骤303。Afterwards, step 303 may be repeatedly performed.
可以理解的是,当临时客户机获取正式IP地址后,该临时客户机也为具有正式IP地址的客户机。It can be understood that after the temporary client acquires the official IP address, the temporary client is also a client with the official IP address.
步骤307:IACP+DHCP服务器向具有正式IP地址的客户机发送中继配置指示消息,该中继配置指示消息中携带DHCP配置信息。Step 307: the IACP+DHCP server sends a relay configuration indication message to the client with the official IP address, and the relay configuration indication message carries DHCP configuration information.
步骤308:具有正式IP地址的客户机根据DHCP配置信息将自身配置成可用DHCP中继器。Step 308: the client with the official IP address configures itself as an available DHCP repeater according to the DHCP configuration information.
之后,可以重复执行步骤302。Thereafter, step 302 may be repeatedly performed.
步骤309:可用DHCP中继器向IACP+DHCP服务器发送中继能力指示消息,该中继能力指示消息中携带能力指示信息及网段标识。Step 309: The DHCP relay can be used to send a relay capability indication message to the IACP+DHCP server, and the relay capability indication message carries capability indication information and a network segment identifier.
可以理解的是,当具有正式IP地址的客户机被配置成可用DHCP中继器后,该具有正式IP地址的客户机也为可用DHCP中继器。It can be understood that, after the client computer with the official IP address is configured as an available DHCP repeater, the client computer with the official IP address is also an available DHCP repeater.
步骤310:IACP+DHCP服务器通过可用的DHCP中继器,为待分配正式IP地址的客户机分配正式IP地址。Step 310: the IACP+DHCP server assigns an official IP address to the client computer to be assigned an official IP address through an available DHCP repeater.
具体地,由于网络系统中存在了DHCP中继器,因此,可以按照正常的DHCP流程分配IP地址。Specifically, since there is a DHCP repeater in the network system, IP addresses can be allocated according to a normal DHCP process.
步骤311:IACP+DHCP服务器直接为待配置正式IP地址的客户机分配正式IP地址。Step 311: the IACP+DHCP server directly assigns the official IP address to the client computer to be configured with the official IP address.
具体地,由于待分配IP地址的客户机与IACP+DHCP服务器在同一个网段内,因此,可以按照正常的DHCP流程分配IP地址。Specifically, since the client computer to be assigned an IP address is in the same network segment as the IACP+DHCP server, the IP address can be assigned according to a normal DHCP process.
本实施例的技术方案,通过将具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低;In the technical solution of this embodiment, by configuring the client with a formal IP address as a DHCP repeater, when DHCP is used to configure the IP address, there is no need to set a dedicated DHCP repeater in the network system to realize network investment and maintenance. cost reduction;
进一步的,本实施例在进行相关判断时采用网段标识,可以适用于网络系统不进行VLAN规划的场景;Further, this embodiment adopts the network segment identifier when making related judgments, which can be applicable to scenarios where the network system does not perform VLAN planning;
另外,本实施例在IACP过程中的探测包中携带IACP+DHCP服务器的地址,可以适用于DHCP功能和IACP功能合成在同一个物理实体的场景。In addition, this embodiment carries the address of the IACP+DHCP server in the detection packet in the IACP process, which is applicable to a scenario where the DHCP function and the IACP function are combined in the same physical entity.
图5为本发明第四实施例的方法流程示意图,本实施例以不进行VLAN规划,且IACP功能和DHCP功能设置在不同的物理实体中为例。FIG. 5 is a schematic flowchart of a method according to a fourth embodiment of the present invention. In this embodiment, VLAN planning is not performed, and the IACP function and the DHCP function are set in different physical entities as an example.
图6为本发明第四实施例对应的网络系统结构示意图,参见图6,包括至少一个的客户机61,该客户机61通过以太网(Ethernet)62及路由器63,与IACP服务器64及DHCP服务器65通信,该IACP服务器64具有IACP功能,该DHCP服务器65具有DHCP功能。本实施例需要在待分配正式IP地址的客户机所属的网段内,配置DHCP中继器。Fig. 6 is the corresponding network system structure schematic diagram of the fourth embodiment of the present invention, referring to Fig. 6, comprises at least one client computer 61, and this client computer 61 passes Ethernet (Ethernet) 62 and
本实施例中如果不进行特别说明,网段是指待分配正式IP地址的客户机所属的网段。In this embodiment, unless otherwise specified, the network segment refers to the network segment to which the client to be assigned a formal IP address belongs.
参见图5,本实施例包括:Referring to Figure 5, this embodiment includes:
步骤501:判断设备判断DHCP服务器与待分配正式IP地址的客户机是否属于同一个网段,若是,执行步骤511,否则,执行步骤502。Step 501: The judging device judges whether the DHCP server and the client to be assigned a formal IP address belong to the same network segment, if yes, go to step 511, otherwise, go to step 502.
其中,判断设备可以为服务端设备中的功能模块,该判断设备可以位于IACP服务器中,或者,位于DHCP服务器中,或者,独立设置在IACP服务器和DHCP服务器之外。图5中以判断设备位于IACP服务器中为例。Wherein, the judging device may be a functional module in the server device, and the judging device may be located in the IACP server, or located in the DHCP server, or independently set outside the IACP server and the DHCP server. In Fig. 5, it is taken as an example to determine that the device is located in the IACP server.
其中,判断设备中保存有客户机的相关信息,该相关信息包含客户机所属网段的网段标识,因此,该判断设备可以判断出DHCP服务器与待分配正式IP地址的客户机是否在同一个网段中。Wherein, the relevant information of the client computer is stored in the judging device, and the related information includes the network segment identifier of the network segment to which the client computer belongs, so the judging device can judge whether the DHCP server and the client computer to be assigned a formal IP address are in the same network. network segment.
步骤502:判断设备判断待分配正式IP地址的客户机所属的网段内是否存在可用的DHCP中继器,若是,执行步骤510,否则,执行步骤503。Step 502: The judging device judges whether there is an available DHCP repeater in the network segment to which the client to be assigned an official IP address belongs, and if so, executes
具体地,网络系统中的具有正式IP地址的客户机可以向判断设备发送中继能力指示消息,该中继能力指示消息中携带网段标识和能力指示信息。Specifically, a client with an official IP address in the network system may send a relay capability indication message to the judging device, where the relay capability indication message carries a network segment identifier and capability indication information.
因此,判断设备可以采用如下方式进行该网段内是否存在可用DHCP中继器的判断:Therefore, the judging device can use the following method to judge whether there is an available DHCP repeater in the network segment:
当判断设备接收到客户机发送的中继能力指示消息,该中继能力指示消息中携带能力指示信息和网段标识,当该能力指示信息表明发送该中继能力指示消息的客户机具有中继能力,且该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个网段时,该判断设备得到该网段存在可用的DHCP中继器;可以理解的是,这里的“可用的DHCP中继器”可以是具有正式IP地址的客户机配置而成的DHCP中继器,或者,也可能是现有技术中专用的DHCP中继器。When the judging device receives the relay capability indication message sent by the client, the relay capability indication message carries capability indication information and network segment identification, when the capability indication information indicates that the client sending the relay capability indication message has a relay capability, and the network segment identifier indicates that the client computer sending the official IP address indication message is in the same network segment as the client computer whose official IP address is to be configured, the judging device obtains that there is an available DHCP repeater in the network segment; It can be understood that the "available DHCP repeater" here may be a DHCP repeater configured by a client with an official IP address, or may also be a dedicated DHCP repeater in the prior art.
当该判断设备未接收到该中继能力指示消息,或者,接收到该中继能力指示消息但该能力指示信息表明发送该中继能力指示消息的客户机不具有中继能力,或者,接收到该中继能力指示消息但该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个网段时,该判断设备得到该网段内不存在可用的DHCP中继器。When the judging device does not receive the relay capability indication message, or receives the relay capability indication message but the capability indication information indicates that the client that sends the relay capability indication message does not have the relay capability, or receives When the relay capability indication message but the network segment identifier indicates that the client computer sending the official IP address indication message is not in the same network segment as the client computer whose official IP address is to be configured, the judging device obtains that there is no available IP address in the network segment. DHCP repeater.
步骤503:判断设备判断该网段内是否存在具有正式IP地址的客户机,若是,执行步骤507,否则,执行步骤504。Step 503: The judging device judges whether there is a client with an official IP address in the network segment, if yes, go to step 507, otherwise, go to step 504.
具体地,网络系统中的客户机在启动后,已被配置正式IP地址(例如,采用人工配置方式或者DHCP配置方式)的客户机可以向判断设备发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识。Specifically, after the client in the network system is started, the client that has been configured with a formal IP address (for example, using manual configuration or DHCP configuration) can send a formal IP address indication message to the judging device, and the formal IP address indicates The network segment identifier is carried in the message.
因此,判断设备可以采用如下方式进行该网段内是否具有正式IP地址的客户机的判断:Therefore, the judging device can use the following method to judge whether there is a client with a formal IP address in the network segment:
当该判断设备接收到客户机发送的携带网段标识的正式IP地址指示消息,且该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个网段时,该判断设备得到该网段内存在已被配置正式IP地址的客户机;When the judging device receives the official IP address indication message sent by the client computer and carries the network segment identifier, and the network segment identifier indicates that the client computer sending the official IP address indication message is in the same network as the client computer whose official IP address is to be configured network segment, the judging device obtains that there is a client computer configured with a formal IP address in the network segment;
当该判断设备未接收到该正式IP地址指示消息,或者,接收到该正式IP地址指示消息但该网段标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个网段时,该判断设备得到该网段内不存在已被配置正式IP地址的客户机。When the judging device does not receive the official IP address indication message, or receives the official IP address indication message but the network segment identifier indicates that the client computer sending the official IP address indication message and the client computer with the official IP address to be configured When they are not in the same network segment, the judging device obtains that there is no client computer configured with a formal IP address in the network segment.
步骤504:判断设备触发IACP服务器启动后,IACP服务器采用IACP为该网段内的临时客户机分配临时IP地址。Step 504: After the judging device triggers the startup of the IACP server, the IACP server uses the IACP to assign a temporary IP address to the temporary client in the network segment.
由于本实施例IACP服务器和DHCP服务器是分开设置的,因此,本实施例中的探测包中服务端的地址为IACP服务器的IP地址和DHCP服务器的IP地址,其余内容具体可参见步骤304。Since the IACP server and the DHCP server in this embodiment are set separately, the address of the server in the detection packet in this embodiment is the IP address of the IACP server and the IP address of the DHCP server. Refer to step 304 for the rest of the content.
步骤505:临时客户机根据探测包中的临时IP地址、网关的IP地址、网络掩码和DHCP服务器的IP地址,采用单播DHCP过程,从DHCP服务器获取正式IP地址。Step 505: According to the temporary IP address in the detection packet, the IP address of the gateway, the netmask and the IP address of the DHCP server, the temporary client obtains the official IP address from the DHCP server through the unicast DHCP process.
具体地,当临时客户机根据网络掩码获知自身和DHCP服务器在同一网段时,可以根据DHCP服务器的IP地址,向DHCP服务器发送DHCP搜索包,DHCP服务器接收到DHCP搜索包后分配正式IP地址,进行正常的DHCP流程。当临时客户机根据网络掩码获知自身与DHCP服务器不在同一个网段时,可以根据网关的IP地址及DHCP服务器的IP地址,通过网关向DHCP服务器发送DHCP搜索包,DHCP服务器接收到DHCP搜索包后分配正式IP地址,进行正常的DHCP流程。Specifically, when the temporary client knows that itself and the DHCP server are in the same network segment according to the network mask, it can send a DHCP search packet to the DHCP server according to the IP address of the DHCP server, and the DHCP server assigns a formal IP address after receiving the DHCP search packet. , and proceed with the normal DHCP process. When the temporary client knows that it is not in the same network segment as the DHCP server according to the network mask, it can send a DHCP search packet to the DHCP server through the gateway according to the IP address of the gateway and the IP address of the DHCP server, and the DHCP server receives the DHCP search packet After assigning a formal IP address, proceed with the normal DHCP process.
在临时客户机获取正式IP地址之后,临时客户机可以释放临时IP地址,DHCP服务器可以回收临时IP地址,这样的话,后续该临时IP地址依旧可以被再次使用。After the temporary client computer obtains the official IP address, the temporary client computer can release the temporary IP address, and the DHCP server can reclaim the temporary IP address. In this way, the temporary IP address can still be used again later.
步骤506:具有正式IP地址的客户机向判断设备发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识。Step 506: The client with the official IP address sends an official IP address indication message to the judging device, and the official IP address indication message carries a network segment identifier.
之后,可以重复执行步骤503。Afterwards, step 503 may be repeatedly performed.
可以理解的是,当临时客户机获取正式IP地址后,该临时客户机也为具有正式IP地址的客户机。It can be understood that after the temporary client acquires the official IP address, the temporary client is also a client with the official IP address.
步骤507:判断设备向具有正式IP地址的客户机发送中继配置指示消息,该中继配置指示消息中携带DHCP配置信息。Step 507: The judging device sends a relay configuration indication message to the client with the official IP address, and the relay configuration indication message carries DHCP configuration information.
步骤508:具有正式IP地址的客户机根据DHCP配置信息将自身配置成可用DHCP中继器。Step 508: The client with the official IP address configures itself as an available DHCP repeater according to the DHCP configuration information.
之后,可以重复执行步骤502。Afterwards, step 502 may be repeatedly performed.
步骤509:可用DHCP中继器向IACP+DHCP服务器发送中继能力指示消息,该中继能力指示消息中携带能力指示信息及网段标识。Step 509: The DHCP relay can be used to send a relay capability indication message to the IACP+DHCP server, and the relay capability indication message carries capability indication information and a network segment identifier.
可以理解的是,当具有正式IP地址的客户机被配置成可用DHCP中继器后,该具有正式IP地址的客户机也为可用DHCP中继器。It can be understood that, after the client computer with the official IP address is configured as an available DHCP repeater, the client computer with the official IP address is also an available DHCP repeater.
步骤510:判断设备触发DHCP服务器启动后,DHCP服务器通过可用的DHCP中继器,为待分配正式IP地址的客户机分配正式IP地址。Step 510: After the judging device triggers the start of the DHCP server, the DHCP server assigns an official IP address to the client computer to be assigned an official IP address through an available DHCP repeater.
具体地,由于网络系统中存在了DHCP中继器,因此,可以按照正常的DHCP流程分配IP地址。Specifically, since there is a DHCP repeater in the network system, IP addresses can be allocated according to a normal DHCP process.
步骤511:判断设备触发DHCP服务器启动后,DHCP服务器直接为待配置正式IP地址的客户机分配正式IP地址。Step 511 : After determining that the device triggers the start of the DHCP server, the DHCP server directly assigns an official IP address to the client to be configured with an official IP address.
具体地,由于待分配IP地址的客户机与DHCP服务器在同一个网段内,因此,可以按照正常的DHCP流程分配IP地址。Specifically, since the client computer to be assigned an IP address is in the same network segment as the DHCP server, the IP address can be assigned according to a normal DHCP process.
本实施例的技术方案,通过将具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低;In the technical solution of this embodiment, by configuring the client with a formal IP address as a DHCP repeater, when DHCP is used to configure the IP address, there is no need to set a dedicated DHCP repeater in the network system to realize network investment and maintenance. cost reduction;
进一步地,本实施例在进行相关判断时采用网段标识,可以适用于网络系统不进行VLAN规划的场景;Further, this embodiment adopts the network segment identifier when making relevant judgments, which can be applicable to scenarios where the network system does not perform VLAN planning;
另外,本实施例在IACP过程中的探测包中携带IACP服务器和DHCP服务器的地址,可以适用于DHCP功能和IACP功能分开设置于不同物理实体的场景。In addition, this embodiment carries the addresses of the IACP server and the DHCP server in the detection packet in the IACP process, which may be applicable to a scenario where the DHCP function and the IACP function are separately set in different physical entities.
图7为本发明第五实施例的方法流程示意图,本实施例以进行VLAN规划,且IACP功能和DHCP功能设置在同一个物理实体中为例。FIG. 7 is a schematic flowchart of a method according to a fifth embodiment of the present invention. In this embodiment, VLAN planning is performed, and the IACP function and the DHCP function are set in the same physical entity as an example.
图8为本发明第五实施例对应的网络系统结构示意图,参见图8,包括至少一个的客户机81,存在多个客户机81的情况下,假设被分在不同的VLAN内。该客户机81通过以太网(Ethernet)82及路由器83,与IACP+DHCP服务器84通信,该IACP+DHCP服务器84可以具有IACP功能和DHCP功能。本实施例需要在待分配正式IP地址的客户机所属网段的所属VLAN内,配置DHCP中继器。FIG. 8 is a schematic structural diagram of a network system corresponding to the fifth embodiment of the present invention. Referring to FIG. 8 , it includes at least one
本实施例中如果不进行特别说明,VLAN是指待分配正式IP地址的客户机所属网段的所属VLAN。In this embodiment, unless otherwise specified, the VLAN refers to the VLAN of the network segment to which the client computer to which the official IP address belongs belongs.
参见图7,本实施例包括:Referring to Figure 7, this embodiment includes:
步骤701:IACP+DHCP服务器启动后,判断IACP+DHCP服务器与待分配正式IP地址的客户机是否属于同一个网段,若是,执行步骤711,否则,执行步骤702。Step 701: After the IACP+DHCP server is started, determine whether the IACP+DHCP server and the client computer to be assigned a formal IP address belong to the same network segment, if so, go to step 711, otherwise, go to step 702.
其中,IACP+DHCP服务器中保存有客户机的相关信息,该相关信息包含客户机所属网段的网段标识,因此,该IACP+DHCP服务器可以判断出IACP+DHCP服务器与待分配正式IP地址的客户机是否在同一个网段中。Wherein, the relevant information of the client computer is stored in the IACP+DHCP server, and the relevant information includes the network segment identifier of the network segment to which the client computer belongs. Whether the clients are in the same network segment.
步骤702:IACP+DHCP服务器判断待分配正式IP地址的客户机所属网段的所属VLAN内是否存在可用的DHCP中继器,若是,执行步骤710,否则,执行步骤703。Step 702: The IACP+DHCP server judges whether there is an available DHCP repeater in the VLAN of the network segment to which the client to be assigned a formal IP address belongs. If yes, execute
具体地,网络系统中的具有正式IP地址的客户机可以向IACP+DHCP服务器发送中继能力指示消息,该中继能力指示消息中携带网段标识及VLAN标识(网段标识+VLAN标识)和能力指示信息。Specifically, a client computer with a formal IP address in the network system can send a relay capability indication message to the IACP+DHCP server, and the relay capability indication message carries a network segment identifier and a VLAN identifier (network segment identifier+VLAN identifier) and Capability indication information.
因此,IACP+DHCP服务器可以采用如下方式进行该VLAN内是否存在可用DHCP中继器的判断:Therefore, the IACP+DHCP server can use the following method to judge whether there is an available DHCP repeater in the VLAN:
当IACP+DHCP服务器接收到客户机发送的中继能力指示消息,该中继能力指示消息中携带能力指示信息和网段标识+VLAN标识,当该能力指示信息表明发送该中继能力指示消息的客户机具有中继能力,且该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个VLAN时,该IACP+DHCP服务器得到该VLAN存在可用的DHCP中继器;可以理解的是,这里的“可用的DHCP中继器”可以是具有正式IP地址的客户机配置而成的DHCP中继器,或者,也可能是现有技术中专用的DHCP中继器。When the IACP+DHCP server receives the relay capability indication message sent by the client, the relay capability indication message carries capability indication information and network segment identifier+VLAN identifier, when the capability indication information indicates that the relay capability indication message is sent When the client has relay capability, and the network segment ID+VLAN ID indicates that the client sending the official IP address indication message is in the same VLAN as the client whose official IP address is to be configured, the IACP+DHCP server gets the VLAN There is an available DHCP repeater; it can be understood that the "available DHCP repeater" here may be a DHCP repeater configured by a client with a formal IP address, or may also be a DHCP repeater in the prior art Dedicated DHCP repeater.
当该IACP+DHCP服务器未接收到该中继能力指示消息,或者,接收到该中继能力指示消息但该能力指示信息表明发送该中继能力指示消息的客户机不具有中继能力,或者,接收到该中继能力指示消息但该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个VLAN时,该IACP+DHCP服务器得到该VLAN内不存在可用的DHCP中继器。When the IACP+DHCP server does not receive the relay capability indication message, or receives the relay capability indication message but the capability indication information indicates that the client sending the relay capability indication message does not have relay capability, or, When the relay capability indication message is received but the network segment identifier+VLAN identifier indicates that the client computer sending the official IP address instruction message is not in the same VLAN as the client computer whose official IP address is to be configured, the IACP+DHCP server obtains the There is no DHCP relay available within the VLAN.
步骤703:IACP+DHCP服务器判断该VLAN内是否存在具有正式IP地址的客户机,若是,执行步骤707,否则,执行步骤704。Step 703: The IACP+DHCP server judges whether there is a client with a formal IP address in the VLAN, if yes, execute
具体地,网络系统中的客户机在启动后,已被配置正式IP地址(例如,采用人工配置方式或者DHCP配置方式)的客户机可以向IACP+DHCP服务器发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识+VLAN标识。Specifically, after the client computer in the network system is started, the client computer that has been configured with a formal IP address (for example, using a manual configuration method or a DHCP configuration method) can send a formal IP address indication message to the IACP+DHCP server. The address indication message carries the network segment identifier+VLAN identifier.
因此,IACP+DHCP服务器可以采用如下方式进行该网段内是否具有正式IP地址的客户机的判断:Therefore, the IACP+DHCP server can use the following methods to judge whether there is a client with a formal IP address in the network segment:
当该IACP+DHCP服务器接收到客户机发送的携带网段标识+VLAN标识的正式IP地址指示消息,且该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个VLAN时,该IACP+DHCP服务器得到该VLAN内存在已被配置正式IP地址的客户机;When the IACP+DHCP server receives the formal IP address indication message carrying the network segment identifier+VLAN identifier sent by the client, and the network segment identifier+VLAN identifier indicates that the client computer sending the official IP address indication message is identical to the official IP address to be configured When the clients with the IP address are in the same VLAN, the IACP+DHCP server obtains that there is a client with a formal IP address configured in the VLAN;
当该IACP+DHCP服务器未接收到该正式IP地址指示消息,或者,接收到该正式IP地址指示消息但该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个VLAN时,该IACP+DHCP服务器得到该VLAN内不存在已被配置正式IP地址的客户机。When the IACP+DHCP server does not receive the official IP address indication message, or receives the official IP address indication message but the network segment identification+VLAN identification indicates that the client computer sending the official IP address indication message is not the same as the official IP address indication message to be configured. When the client computers with the IP addresses are not in the same VLAN, the IACP+DHCP server obtains that there is no client computer configured with a formal IP address in the VLAN.
步骤704:IACP+DHCP服务器采用IACP为该VLAN内的临时客户机分配临时IP地址。Step 704: The IACP+DHCP server uses IACP to assign a temporary IP address to the temporary client in the VLAN.
具体地可以采用类似步骤304的实现流程,只是需要将步骤304中的网段替换为待分配正式IP地址的客户机所属的VLAN。步骤705:临时客户机根据探测包中的临时IP地址、网关的IP地址、网络掩码和IACP+DHCP服务器的IP地址,采用单播DHCP过程,从IACP+DHCP服务器获取正式IP地址。Specifically, an implementation process similar to step 304 may be adopted, except that the network segment in step 304 needs to be replaced with the VLAN to which the client to be assigned a formal IP address belongs. Step 705: The temporary client obtains the official IP address from the IACP+DHCP server through the unicast DHCP process according to the temporary IP address in the detection packet, the gateway IP address, the netmask, and the IP address of the IACP+DHCP server.
具体地可以采用类似步骤305的实现流程,只是需要将步骤305中的网段替换为待分配正式IP地址的客户机所属的VLAN。Specifically, an implementation process similar to step 305 may be adopted, except that the network segment in step 305 needs to be replaced with the VLAN to which the client to be assigned a formal IP address belongs.
步骤706:具有正式IP地址的客户机向IACP+DHCP服务器发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识+VLAN标识。Step 706: The client with the official IP address sends an official IP address indication message to the IACP+DHCP server, and the official IP address indication message carries the network segment ID+VLAN ID.
之后,可以重复执行步骤703。Afterwards, step 703 may be repeatedly performed.
可以理解的是,当临时客户机获取正式IP地址后,该临时客户机也为具有正式IP地址的客户机。It can be understood that after the temporary client acquires the official IP address, the temporary client is also a client with the official IP address.
步骤707:与步骤307相同。Step 707: Same as step 307.
步骤708:具有正式IP地址的客户机根据DHCP配置信息将自身配置成可用DHCP中继器。Step 708: The client with the official IP address configures itself as an available DHCP repeater according to the DHCP configuration information.
之后,可以重复执行步骤702。Afterwards, step 702 may be repeatedly performed.
步骤709:可用DHCP中继器向IACP+DHCP服务器发送中继能力指示消息,该中继能力指示消息中携带能力指示信息及网段标识+VLAN标识。Step 709: The DHCP relay can be used to send a relay capability indication message to the IACP+DHCP server, and the relay capability indication message carries capability indication information and network segment ID+VLAN ID.
可以理解的是,当具有正式IP地址的客户机被配置成可用DHCP中继器后,该具有正式IP地址的客户机也为可用DHCP中继器。It can be understood that, after the client computer with the official IP address is configured as an available DHCP repeater, the client computer with the official IP address is also an available DHCP repeater.
步骤710:与步骤310相同。Step 710: Same as step 310.
步骤711:IACP+DHCP服务器直接为待配置正式IP地址的客户机分配正式IP地址。Step 711: The IACP+DHCP server directly assigns an official IP address to the client computer to be configured with an official IP address.
具体地,由于待分配IP地址的客户机与IACP+DHCP服务器在同一个网段的同一个VLAN内,因此,可以按照正常的DHCP流程分配IP地址。Specifically, since the client to be assigned an IP address is in the same VLAN on the same network segment as the IACP+DHCP server, the IP address can be assigned according to a normal DHCP process.
本实施例的技术方案,通过将具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低;In the technical solution of this embodiment, by configuring the client with a formal IP address as a DHCP repeater, when DHCP is used to configure the IP address, there is no need to set a dedicated DHCP repeater in the network system to realize network investment and maintenance. cost reduction;
进一步地,本实施例在进行相关判断时采用网段标识+VLAN标识,可以适用于网络系统进行VLAN规划的场景;Further, this embodiment adopts the network segment identifier+VLAN identifier when making relevant judgments, which can be applied to the scenario where the network system performs VLAN planning;
另外,本实施例在IACP过程中的探测包中携带IACP+DHCP服务器的地址,可以适用于DHCP功能和IACP功能合成在同一个物理实体的场景。In addition, this embodiment carries the address of the IACP+DHCP server in the detection packet in the IACP process, which is applicable to a scenario where the DHCP function and the IACP function are combined in the same physical entity.
图9为本发明第六实施例的方法流程示意图,本实施例以进行VLAN规划,且IACP功能和DHCP功能设置在不同的物理实体中为例。FIG. 9 is a schematic flowchart of a method according to the sixth embodiment of the present invention. In this embodiment, VLAN planning is performed and the IACP function and the DHCP function are set in different physical entities as an example.
图10为本发明第六实施例对应的网络系统结构示意图,参见图10,包括至少一个的客户机101,该客户机101通过以太网(Ethernet)102,或者,进一步通过网关103,与IACP服务器104及DHCP服务器105通信,该IACP服务器104具有IACP功能,该DHCP服务器105具有DHCP功能。本实施例需要在待分配正式IP地址的客户机所属的网段内,配置DHCP中继器。Fig. 10 is a schematic structural diagram of a network system corresponding to the sixth embodiment of the present invention. Referring to Fig. 10, it includes at least one
本实施例中如果不进行特别说明,VLAN是指待分配正式IP地址的客户机所属网段的所属VLAN。In this embodiment, unless otherwise specified, the VLAN refers to the VLAN of the network segment to which the client computer to which the official IP address belongs belongs.
参见图9,本实施例包括:Referring to Figure 9, this embodiment includes:
步骤901:DHCP服务器启动后,判断设备判断DHCP服务器与待分配正式IP地址的客户机是否属于同一个网段,若是,执行步骤911,否则,执行步骤902。Step 901: After the DHCP server is started, the judging device judges whether the DHCP server and the client to be assigned a formal IP address belong to the same network segment, if so, go to step 911, otherwise, go to step 902.
其中,判断设备为服务端设备中的功能模块,该判断设备可以位于IACP服务器中,或者,位于DHCP服务器中,或者,独立设置在IACP服务器和DHCP服务器之外。Wherein, the judging device is a functional module in the server device, and the judging device may be located in the IACP server, or located in the DHCP server, or independently set outside the IACP server and the DHCP server.
其中,判断设备中保存有客户机的相关信息,该相关信息包含客户机所属网段的网段标识,因此,该判断设备可以判断出DHCP服务器与待分配正式IP地址的客户机是否在同一个网段中。Wherein, the relevant information of the client computer is stored in the judging device, and the related information includes the network segment identifier of the network segment to which the client computer belongs, so the judging device can judge whether the DHCP server and the client computer to be assigned a formal IP address are in the same network. network segment.
步骤902:判断设备判断待分配正式IP地址的客户机所属网段的所属VLAN内是否存在可用的DHCP中继器,若是,执行步骤910,否则,执行步骤903。Step 902: The judging device judges whether there is an available DHCP repeater in the VLAN of the network segment to which the client to be assigned an official IP address belongs. If yes, go to step 910; otherwise, go to step 903.
具体地,网络系统中的具有正式IP地址的客户机可以向判断设备发送中继能力指示消息,该中继能力指示消息中携带网段标识+VLAN标识和能力指示信息。Specifically, a client with an official IP address in the network system may send a relay capability indication message to the judging device, where the relay capability indication message carries the network segment identifier+VLAN identifier and capability indication information.
因此,判断设备可以采用如下方式进行该网段内是否存在可用DHCP中继器的判断:Therefore, the judging device can use the following method to judge whether there is an available DHCP repeater in the network segment:
当判断设备接收到客户机发送的中继能力指示消息,该中继能力指示消息中携带能力指示信息和网段标识+VLAN标识,当该能力指示信息表明发送该中继能力指示消息的客户机具有中继能力,且该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个VLAN时,该判断设备得到该VLAN存在可用的DHCP中继器;可以理解的是,这里的“可用的DHCP中继器”可以是具有正式IP地址的客户机配置而成的DHCP中继器,或者,也可能是现有技术中专用的DHCP中继器。When the judging device receives the relay capability indication message sent by the client, the relay capability indication message carries the capability indication information and the network segment identifier+VLAN identifier, when the capability indication information indicates that the client sending the relay capability indication message With relay capability, and the network segment identifier + VLAN identifier indicates that the client sending the official IP address indication message is in the same VLAN as the client whose official IP address is to be configured, the judging device obtains that there is an available DHCP server in the VLAN. Repeater; It can be understood that the "available DHCP repeater" here can be a DHCP repeater configured by a client with a formal IP address, or it may be a dedicated DHCP repeater in the prior art. Repeater.
当该判断设备未接收到该中继能力指示消息,或者,接收到该中继能力指示消息但该能力指示信息表明发送该中继能力指示消息的客户机不具有中继能力,或者,接收到该中继能力指示消息但该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个VLAN时,该判断设备得到该VLAN内不存在可用的DHCP中继器。When the judging device does not receive the relay capability indication message, or receives the relay capability indication message but the capability indication information indicates that the client that sends the relay capability indication message does not have the relay capability, or receives When the relay capability indication message but the network segment ID+VLAN ID indicate that the client sending the official IP address indication message is not in the same VLAN as the client whose official IP address is to be configured, the judging device obtains that there is no Available DHCP repeater.
步骤903:判断设备判断该VALN内是否存在具有正式IP地址的客户机,若是,执行步骤907,否则,执行步骤904。Step 903: The judging device judges whether there is a client with a formal IP address in the VLAN, if yes, go to step 907, otherwise, go to step 904.
具体地,网络系统中的客户机在启动后,已被配置正式IP地址(例如,采用人工配置方式或者DHCP配置方式)的客户机可以向判断设备发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识+VLAN标识。Specifically, after the client in the network system is started, the client that has been configured with a formal IP address (for example, using manual configuration or DHCP configuration) can send a formal IP address indication message to the judging device, and the formal IP address indicates The message carries the network segment identifier + VLAN identifier.
因此,判断设备可以采用如下方式进行该网段内是否具有正式IP地址的客户机的判断:Therefore, the judging device can use the following method to judge whether there is a client with a formal IP address in the network segment:
当该判断设备接收到客户机发送的携带网段标识+VLAN标识的正式IP地址指示消息,且该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机在同一个VLAN时,该判断设备得到该VLAN内存在已被配置正式IP地址的客户机;When the judging device receives the official IP address indication message carrying the network segment identifier+VLAN identifier sent by the client, and the network segment identifier+VLAN identifier indicates that the client computer sending the official IP address indication message is the same as the official IP address to be configured When the clients are in the same VLAN, the judging device obtains that there is a client configured with a formal IP address in the VLAN;
当该判断设备未接收到该正式IP地址指示消息,或者,接收到该正式IP地址指示消息但该网段标识+VLAN标识表明发送该正式IP地址指示消息的客户机与该待配置正式IP地址的客户机不在同一个VLAN时,该判断设备得到该VLAN内不存在已被配置正式IP地址的客户机。When the judging device does not receive the official IP address indication message, or, receives the official IP address indication message but the network segment identifier+VLAN identifier indicates that the client computer sending the official IP address indication message is not the same as the official IP address to be configured When the clients are not in the same VLAN, the judging device obtains that there is no client configured with a formal IP address in the VLAN.
步骤904:判断设备触发IACP服务器启动后,IACP服务器采用IACP为该VLAN内的临时客户机分配临时IP地址。Step 904: After the judging device triggers the start of the IACP server, the IACP server uses the IACP to assign a temporary IP address to the temporary client in the VLAN.
具体地可以采用类似步骤504的实现流程,只是需要将步骤504中的网段替换为待分配正式IP地址的客户机所属的VLAN。Specifically, an implementation process similar to step 504 may be adopted, except that the network segment in
步骤905:临时客户机根据探测包中的临时IP地址、网关的IP地址、网络掩码和DHCP服务器的IP地址,采用单播DHCP过程,从DHCP服务器获取正式IP地址.Step 905: According to the temporary IP address in the detection packet, the IP address of the gateway, the network mask and the IP address of the DHCP server, the temporary client adopts the unicast DHCP process to obtain the official IP address from the DHCP server.
具体地可以采用类似步骤505的实现流程,只是需要将步骤505中的网段替换为待分配正式IP地址的客户机所属的VLAN。Specifically, an implementation process similar to step 505 may be adopted, except that the network segment in
步骤906:具有正式IP地址的客户机向判断设备发送正式IP地址指示消息,该正式IP地址指示消息中携带网段标识。Step 906: The client with the official IP address sends an official IP address indication message to the judging device, and the official IP address indication message carries a network segment identifier.
之后,可以重复执行步骤803。Afterwards, step 803 may be repeatedly performed.
可以理解的是,当临时客户机获取正式IP地址后,该临时客户机也为具有正式IP地址的客户机。It can be understood that after the temporary client acquires the official IP address, the temporary client is also a client with the official IP address.
步骤907:与步骤507相同。Step 907: Same as
步骤908:具有正式IP地址的客户机根据DHCP配置信息将自身配置成可用DHCP中继器。Step 908: The client with the official IP address configures itself as an available DHCP repeater according to the DHCP configuration information.
之后,可以重复执行步骤902。Afterwards, step 902 may be repeatedly performed.
步骤909:可用DHCP中继器向IACP+DHCP服务器发送中继能力指示消息,该中继能力指示消息中携带能力指示信息及网段标识+VLAN标识。Step 909: The DHCP relay can be used to send a relay capability indication message to the IACP+DHCP server, and the relay capability indication message carries capability indication information and network segment ID+VLAN ID.
可以理解的是,当具有正式IP地址的客户机被配置成可用DHCP中继器后,该具有正式IP地址的客户机也为可用DHCP中继器。It can be understood that, after the client computer with the official IP address is configured as an available DHCP repeater, the client computer with the official IP address is also an available DHCP repeater.
步骤910:与步骤510相同。Step 910: Same as
步骤911:IACP+DHCP服务器直接为待配置正式IP地址的客户机分配正式IP地址。Step 911: the IACP+DHCP server directly assigns a formal IP address to the client computer to be configured with a formal IP address.
具体地,由于待分配IP地址的客户机与IACP+DHCP服务器在同一个网段的同一个VLAN内,因此,可以按照正常的DHCP流程分配IP地址。本实施例的技术方案,通过将具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低;Specifically, since the client to be assigned an IP address is in the same VLAN on the same network segment as the IACP+DHCP server, the IP address can be assigned according to a normal DHCP process. In the technical solution of this embodiment, by configuring the client with a formal IP address as a DHCP repeater, when DHCP is used to configure the IP address, there is no need to set a dedicated DHCP repeater in the network system to realize network investment and maintenance. cost reduction;
进一步地,本实施例在进行相关判断时采用网段标识+VLAN标识,可以适用于网络系统进行VLAN规划的场景;Further, this embodiment adopts the network segment identifier+VLAN identifier when making relevant judgments, which can be applied to the scenario where the network system performs VLAN planning;
另外,本实施例在IACP过程中的探测包中携带IACP服务器和DHCP服务器的地址,可以适用于DHCP功能和IACP功能分开设置于不同物理实体的场景。In addition, this embodiment carries the addresses of the IACP server and the DHCP server in the detection packet in the IACP process, which may be applicable to a scenario where the DHCP function and the IACP function are separately set in different physical entities.
图11为本发明第七实施例的服务端设备结构示意图,包括客户机确定模块111、发送模块112和分配模块113。FIG. 11 is a schematic structural diagram of a server device according to a seventh embodiment of the present invention, including a
客户机确定模块111用于在待配置正式IP地址的客户机所属的通信范围内,确定具有正式IP地址的客户机,该正式IP地址为已配置的IP地址;发送模块112用于向该具有正式IP地址的客户机发送中继配置指示消息,该中继配置指示消息中携带DHCP配置信息;分配模块113用于当该具有正式IP地址的客户机根据该DHCP配置信息将该具有正式IP地址的客户机配置成DHCP中继器后,通过配置成DHCP中继器的客户机,为该待配置正式IP地址的客户机分配正式IP地址。The client
进一步地,本实施例还可以包括第一判断模块114,第一判断模块114用于判断该通信范围内是否存在已被配置正式IP地址的客户机;。Further, this embodiment may further include a
其中,客户机确定模块111可以包括第一单元1111和/或第二单元1112;第一单元1111用于当该第一判断模块114的判断结果为该通信范围内存在已被配置正式IP地址的客户机时,接收该已被配置正式IP地址的客户机发送的正式IP地址指示消息,将发送该正式IP地址指示消息的客户机确定为具有正式IP地址的客户机;第二单元1112用于当该通信范围内不存在已被配置正式IP地址的客户机时,分配临时IP地址,并将分配到该临时IP地址的客户机配置成具有正式IP地址的客户机。Wherein, the
具体地,第二单元1112可以包括IACP单元1113和DHCP单元1114,IACP单元1113用于向该通信范围内发送探测包,该探测包中携带临时IP地址、该通信范围的网关的IP地址、服务端设备的IP地址和该通信范围的网络掩码,该临时IP地址被配置给该通信范围内的客户机协商确定的临时客户机;DHCP单元1114用于接收该临时客户机发送的单播DHCP请求,并根据该单播DHCP请求为该临时客户机分配正式IP地址,将分配正式IP地址后的临时客户机被确定为具有正式IP地址的客户机,相应的,前述单播DHCP请求是该临时客户机根据该临时IP地址、该通信范围的网关的IP地址、服务端设备的IP地址和该通信范围的网络掩码发送的。Specifically, the
其中,本实施例中的该IACP单元1113和DHCP单元1114可以位于同一个物理实体中;此时,该IACP单元1113发送的服务端设备的IP地址为该物理实体的IP地址。或者,本实施例的该IACP单元1113和DHCP单元1114也可以位于不同的物理实体中,此时,该IACP单元1113发送的服务端设备的IP地址包括该IACP单元1113所属的物理实体的IP地址和该DHCP单元1114所属的物理实体的IP地址。Wherein, the
进一步地,本实施例还可以包括第二判断模块115,第二判断模块115用于判断该通信范围内是否存在可用的DHCP中继器;该第一判断模块114具体用于当该第二判断模块115判断得到该通信范围内不存在可用的DHCP中继器时,判断该通信范围内是否存在已被配置正式IP地址的客户机。进一步地,本实施例还可以包括第三判断模块116,第三判断模块116用于判断该服务端设备与该待配置正式IP地址的客户机是否在同一个网段中;该第二判断模块115具体用于当该第三判断模块116判断得到该服务端设备与该待配置IP地址的客户机不在同一个网段中时,判断该通信范围内是否存在可用的DHCP中继器。Further, this embodiment may also include a
本实施例通过将具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低;本实施例在IACP过程中的探测包中携带IACP单元及DHCP单元所属物理实体的地址,可以适用于DHCP功能和IACP功能合成在同一个物理实体或者分开在不同物理实体的场景。In this embodiment, by configuring the client with the official IP address as a DHCP repeater, when DHCP is used to configure the IP address, there is no need to set a dedicated DHCP repeater in the network system, thereby reducing network investment and maintenance costs; In this embodiment, the detection packet in the IACP process carries the addresses of the IACP unit and the physical entity to which the DHCP unit belongs, and may be applicable to a scenario where the DHCP function and the IACP function are combined in the same physical entity or separated in different physical entities.
图12为本发明第八实施例的客户机结构示意图,包括接收模块121、配置模块122和中继模块123。FIG. 12 is a schematic structural diagram of a client computer according to the eighth embodiment of the present invention, including a
接收模块121用于接收服务端设备发送的中继配置指示消息,该中继配置指示消息中携带DHCP配置信息;配置模块122用于根据该DHCP配置信息将本机配置成DHCP中继器;中继模块123用于提供DHCP中继功能,实现该服务端设备为待配置正式IP地址的客户机分配正式IP地址。The receiving
进一步地,本实施例还可以包括地址获取模块124和指示模块125,地址获取模块124用于获取正式IP地址;指示模块125用于在获取正式IP地址后,向该服务端设备发送正式IP地址指示消息,相应的,前述中继配置指示消息为该服务端设备在接收到该正式IP地址指示消息后发送的。Further, this embodiment may also include an
其中,该地址获取模块124可以包括第三单元1241和第四单元1242,第三单元1241用于接收该服务端设备发送的探测包,该探测包中携带临时IP地址、该通信范围的网关的IP地址、服务端设备的IP地址和该通信范围的网络掩码;第四单元1242用于根据该临时IP地址、该通信范围的网关的IP地址、服务端设备的IP地址和该通信范围的网络掩码,向该服务端设备发送单播DHCP请求,接收该服务端设备根据该单播DHCP请求分配的正式IP地址。Wherein, the
其中,客户机向服务器发送相关判断信息时携带网段标识,或者,网段标识及VLAN标识。即,当未规划VLAN时,需要判断的是:本实施例的该客户机与该待配置正式IP地址的客户机是否在同一个网段内;当规划VLAN时,需要判断的是:本实施例的该客户机与该待配置正式IP地址的客户机在同一个网段的同一个VLAN内。Wherein, the client computer carries the network segment identifier, or the network segment identifier and the VLAN identifier when sending the relevant judgment information to the server. That is, when no VLAN is planned, what needs to be judged is: whether the client computer of this embodiment and the client computer whose official IP address is to be configured are in the same network segment; when planning a VLAN, what needs to be judged is: this implementation In this example, the client computer and the client computer whose official IP address is to be configured are in the same VLAN on the same network segment.
本实施例通过将具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低;本实施例在进行相关判断时采用网段标识或者网段标识及VLAN标识,可以适用于网络系统不进行VLAN规划或者进行VLAN规划的场景。In this embodiment, by configuring the client with the official IP address as a DHCP repeater, when DHCP is used to configure the IP address, there is no need to set a dedicated DHCP repeater in the network system, thereby reducing network investment and maintenance costs; In this embodiment, a network segment identifier or a network segment identifier and a VLAN identifier are used in making relevant judgments, and may be applicable to scenarios where the network system does not perform VLAN planning or performs VLAN planning.
图13为本发明第九实施例的通信系统结构示意图,包括服务端设备131和客户机132,其中,服务端设备131可以如图11所示,客户机132可以如图12所示。另外,关于服务端设备和客户机的具体描述,可参见相关的设备实施例和/或方法实施例。FIG. 13 is a schematic structural diagram of a communication system according to a ninth embodiment of the present invention, including a
另外,关于服务端设备和客户机实施例,也可参见相关方法实施例,即,设备实施例提供的设备可以实现方法实施例中的流程或功能。In addition, regarding the embodiment of the server device and the client computer, reference may also be made to the relevant method embodiment, that is, the device provided by the device embodiment can implement the procedures or functions in the method embodiment.
本实施例通过将具有正式IP地址的客户机配置成DHCP中继器,可以在采用DHCP配置IP地址时,无需在网络系统中设置专用的DHCP中继器,实现网络投入及维护成本的降低;本实施例在进行相关判断时采用网段标识或者网段标识及VLAN标识,可以适用于网络系统不进行VLAN规划或者进行VLAN规划的场景。In this embodiment, by configuring the client with the official IP address as a DHCP repeater, when DHCP is used to configure the IP address, there is no need to set a dedicated DHCP repeater in the network system, thereby reducing network investment and maintenance costs; In this embodiment, a network segment identifier or a network segment identifier and a VLAN identifier are used in making relevant judgments, and may be applicable to scenarios where the network system does not perform VLAN planning or performs VLAN planning.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above 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 (22)
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910215385.2A CN102118453B (en) | 2009-12-31 | 2009-12-31 | Method, service device, client and communication system for automatic configuration of IP address |
PCT/CN2010/076796 WO2011029406A1 (en) | 2009-09-11 | 2010-09-10 | Ip address automatic assignment method, equipment and system |
EP10815008.7A EP2477361B1 (en) | 2009-09-11 | 2010-09-10 | Ip address automatic assignment method, equipment and system |
PCT/CN2010/080417 WO2011079786A1 (en) | 2009-12-31 | 2010-12-29 | Internet protocol (ip) address auto-configuration method, server device, client and communicaiton system |
US13/416,661 US9900183B2 (en) | 2009-09-11 | 2012-03-09 | IP address automatic assignment method, device, and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910215385.2A CN102118453B (en) | 2009-12-31 | 2009-12-31 | Method, service device, client and communication system for automatic configuration of IP address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102118453A CN102118453A (en) | 2011-07-06 |
CN102118453B true CN102118453B (en) | 2014-01-22 |
Family
ID=44217041
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910215385.2A Active CN102118453B (en) | 2009-09-11 | 2009-12-31 | Method, service device, client and communication system for automatic configuration of IP address |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102118453B (en) |
WO (1) | WO2011079786A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102355404B (en) * | 2011-08-09 | 2014-06-04 | 北京星网锐捷网络技术有限公司 | Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof |
CN102739819B (en) * | 2012-06-21 | 2015-01-21 | 华为技术有限公司 | Method, devices and system for establishing transmission channel |
CN102857587B (en) * | 2012-08-17 | 2016-02-03 | 福建三元达网络技术有限公司 | The method and system in dynamic address pond are shared under multi-VLAN environment |
CN105933465B (en) * | 2016-04-20 | 2019-04-30 | 北京小米移动软件有限公司 | Access the method and device of wireless network |
CN107592209B (en) * | 2016-07-08 | 2021-04-02 | 北京奇虎科技有限公司 | A method and system for automatically configuring IP address information for a multi-network card server |
CN106789165A (en) * | 2016-11-28 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | The network configuration system and method for a kind of batch cloud terminal device |
CN107370647B (en) * | 2017-07-25 | 2020-03-10 | 郑州云海信息技术有限公司 | Method for interconnecting local area internal controller systems and local area network system |
CN109257458B (en) * | 2018-10-31 | 2021-09-21 | 新华三技术有限公司 | Message forwarding method and device |
CN112804368B (en) * | 2020-12-08 | 2021-12-17 | 中国电子科技集团公司第三十研究所 | Method and system for automatically allocating IP and testing in batches |
CN116346780A (en) * | 2023-03-29 | 2023-06-27 | 杭州云合智网技术有限公司 | Method and device for automatically configuring node IP address in network |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949784A (en) * | 2005-10-12 | 2007-04-18 | 华为技术有限公司 | IP address requesting method for DHCP client by DHCP repeater |
CN101247356A (en) * | 2007-02-13 | 2008-08-20 | 华为技术有限公司 | Method and system for DHCP message transmission |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030236865A1 (en) * | 2002-06-20 | 2003-12-25 | Microsoft Corporation | Method and system for configuring remote access to a server |
US8230067B2 (en) * | 2003-10-31 | 2012-07-24 | Ericsson Ab | DHCP proxy in a subscriber environment |
CN101262384A (en) * | 2007-03-05 | 2008-09-10 | 中兴通讯股份有限公司 | Broadband access system and its used IP address allocation, continued lease and release method |
CN101534328B (en) * | 2009-04-14 | 2011-12-21 | 华为技术有限公司 | Relay agent generation method, single boards and network equipment |
-
2009
- 2009-12-31 CN CN200910215385.2A patent/CN102118453B/en active Active
-
2010
- 2010-12-29 WO PCT/CN2010/080417 patent/WO2011079786A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949784A (en) * | 2005-10-12 | 2007-04-18 | 华为技术有限公司 | IP address requesting method for DHCP client by DHCP repeater |
CN101247356A (en) * | 2007-02-13 | 2008-08-20 | 华为技术有限公司 | Method and system for DHCP message transmission |
Also Published As
Publication number | Publication date |
---|---|
CN102118453A (en) | 2011-07-06 |
WO2011079786A1 (en) | 2011-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102118453B (en) | Method, service device, client and communication system for automatic configuration of IP address | |
JP4723653B2 (en) | IP address assignment method and use thereof | |
CN102833732B (en) | System, data card and its implementation that a kind of IPv6 addresses stateless is automatically configured | |
CN101534329B (en) | Method and system for allocating IP addresses | |
JP5798598B2 (en) | IPv6 network host blocking and searching method | |
CN102025798B (en) | Address allocation processing method, device and system | |
CN102143247B (en) | Method for allocating and configuring address, address allocation server and host machine | |
EP2477361B1 (en) | Ip address automatic assignment method, equipment and system | |
CN101510902B (en) | Method, system and equipment for preventing wireless client terminal from disconnection during internet process | |
CN101106512A (en) | A processing method and device for QinQ termination configuration | |
CN104935564B (en) | Make the equipment based on mDNS agreements and service the method found mutually in a local network | |
CN100576852C (en) | Method and device for obtaining internet protocol address | |
WO2014086167A1 (en) | Mobile terminal and address allocation method and system thereof | |
CN105472048A (en) | Address allocating method, information aggregation method and related equipment | |
CN103561122A (en) | IPv6 address collocation method, IPv6 client and server | |
CN103516599A (en) | Host finding method, network device, and host | |
US7920577B2 (en) | Power saving in wireless packet based networks | |
JP2009529257A (en) | IPv6 address acquisition apparatus, method, and system | |
US9503418B2 (en) | Method and apparatus for obtaining remote IP address | |
CN102761425B (en) | Charging method and device | |
CN105827420A (en) | Method and device for identifying illegal servers | |
CN104243626B (en) | Information processing apparatus | |
CN106211141B (en) | A flow forwarding method and device for wireless local area network roaming stations | |
CN107172229A (en) | The collocation method and device of router | |
CN107770070B (en) | Information transmission method, equipment and system |
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 |