WO2011023136A1 - Method, device thereof and system thereof for automatically configuring internet protocol (ip) addresses - Google Patents

Method, device thereof and system thereof for automatically configuring internet protocol (ip) addresses Download PDF

Info

Publication number
WO2011023136A1
WO2011023136A1 PCT/CN2010/076442 CN2010076442W WO2011023136A1 WO 2011023136 A1 WO2011023136 A1 WO 2011023136A1 CN 2010076442 W CN2010076442 W CN 2010076442W WO 2011023136 A1 WO2011023136 A1 WO 2011023136A1
Authority
WO
WIPO (PCT)
Prior art keywords
network segment
address
packet
probe
client
Prior art date
Application number
PCT/CN2010/076442
Other languages
French (fr)
Chinese (zh)
Inventor
蓝海青
任蔚
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011023136A1 publication Critical patent/WO2011023136A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery

Definitions

  • IP address automatic configuration method, device and system thereof IP address automatic configuration method, device and system thereof.
  • the present invention relates to the field of communications, and in particular, to an IP address automatic configuration method, device, and system thereof.
  • IP address is an identifier for identifying user equipment and network equipment in an IP network, and is also an identifier used by an IP network for IP packet forwarding. Therefore, IP address allocation is the core of the entire IP network.
  • the IP address allocation method includes: Automatically obtaining an IP address.
  • the method of automatically obtaining an IP address means that: the client device does not need to manually pre-empt, and can automatically obtain the host IP address, gateway IP address, and network segment mask of the client device.
  • the main technology for automatically obtaining an IP address is the Dynamic Host Configuration Protocol (DHCP).
  • DHCP Dynamic Host Configuration Protocol
  • the prior art of automatically obtaining an IP address has the following disadvantages:
  • a DHCP client needs to be configured in the same network segment as the DHCP client.
  • Following (Relay) host the standard service of the IP network only provides the routing function and does not provide the automatic configuration of the IP address.
  • the DHCP relay host is configured with the automatic configuration of the IP address and is not a routing function. Therefore, the bearer network operator generally does not provide DHCP. Relay function.
  • the bearer network operator does not provide the DHCP relay function, and the client itself cannot configure and manage a DHCP relay or a DHCP server (Server) on each network segment. Therefore, it is difficult to implement the standard network service of the IP network. Automatic IP address configuration. Summary of the invention
  • An embodiment of the present invention provides a method for automatically configuring an IP address, where the method includes: receiving a network segment detection data packet sent by an address allocation server, where the network segment detection data packet includes configuration information, where the configuration information includes a client identifier in the network segment. An IP address corresponding to the client identifier; determining whether there is a probe packet corresponding to the network segment, and if it is determined that the probe packet corresponding to the network segment does not exist, generating a probe packet according to the network segment probe data packet, the probe packet
  • the configuration data includes the client identifier in the network segment and the IP address corresponding to the client identifier.
  • the probe packet is sent to the network segment, so that the client in the network segment receives the data. After the packet is detected, the data is configured according to the configuration data in the probe packet.
  • the embodiment of the present invention further provides an ip address automatic configuration method, where the method includes: if there is a client that does not complete the address allocation or the configuration data of the client that has completed the address allocation is modified, the network of the network segment where the client is located is generated.
  • the segment detection data packet, the network segment detection data packet includes configuration information, where the configuration information includes a client identifier in the network segment and an IP address corresponding to the client identifier; and the network segment probe data packet is sent to the management terminal.
  • the embodiment of the invention further provides a management terminal for automatically configuring an IP address, and the management terminal includes:
  • a data packet receiving unit configured to receive a network segment detection data packet sent by the address allocation server, where the network segment detection data packet includes configuration information of the network segment, where the configuration information includes a client identifier in the network segment and an IP corresponding to the client identifier Address
  • a message determining unit configured to determine whether a probe packet corresponding to the network segment exists
  • a packet processing unit configured to generate a probe packet according to the network segment probe data packet, where the probe packet includes configuration data, where the configuration data includes a client in the network segment, when the probe packet corresponding to the network segment is determined to be absent.
  • the message sending unit is configured to send the generated probe packet to the network segment, so that the client in the network segment receives the probe packet and performs data configuration according to the configuration data in the probe packet.
  • the embodiment of the present invention further provides an IP address allocation server, where the server includes: a data packet generating unit, configured to generate the client when there is a client that has not completed address allocation or a configuration data of a client that has completed address allocation is modified.
  • the network segment of the network segment where the terminal is located detects the data packet, and the network segment detection data packet includes configuration information, where the configuration information includes the client identifier and the IP address corresponding to the client identifier in the network segment.
  • a data packet sending unit configured to send the generated network segment probe data packet to the management terminal.
  • the AACP management terminal may generate a probe packet containing the configuration data according to the network segment detection data packet sent by the AACP address allocation server, and send the probe packet to the probe packet.
  • the corresponding network segment is sent, so that the client of the network segment obtains the configuration data sent by the AACP management terminal, and obtains the corresponding address from the configuration data, thereby automatically completing the address allocation.
  • the client and the AACP address allocation server may be in different network segments, and when the client and the AACP address allocation server are in different network segments, the relay server does not need to be set up in the DHCP mode. , thereby reducing the difficulty and cost of IP address allocation.
  • FIG. 2 is a flowchart of an automatic IP address allocation method according to Embodiment 2 of the present invention.
  • FIG. 3 is a flowchart of an automatic IP address setting method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of a data configuration system according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of an automatic IP address allocation method according to Embodiment 4 of the present invention
  • 6 is a schematic structural diagram of a probe packet in Embodiment 4 of the present invention
  • FIG. 7 is a flowchart of an automatic IP address setting method according to Embodiment 5 of the present invention.
  • FIG. 9 is a schematic structural diagram of a probe packet in Embodiment 6 of the present invention.
  • FIG. 13 is a schematic diagram showing the structure of an automatic IP address configuration apparatus according to Embodiment 9 of the present invention
  • FIG. 14 is a schematic diagram showing the structure of an automatic IP address configuration apparatus according to Embodiment 10 of the present invention
  • Figure 16 is a block diagram showing the structure of an automatic IP address configuration apparatus according to a twelfth embodiment of the present invention. detailed description
  • Embodiments of the present invention provide a method, an apparatus, and a system for automatically configuring an IP address.
  • the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
  • IP address auto-configuration technology introduced in the embodiment of the present invention may be named as AACP: Auto Addres s Conf iguration Protocol, and the ten-party negotiation is used for automatic IP address acquisition.
  • AACP Cl ient This is the AACP client (which can be called a "client"). This node needs to be assigned an IP address. In other words, the client is the host waiting to assign an IP address, such as a computer.
  • AACP Server AACP server (which can be called “address allocation server”), which provides IP address allocation services, including IP address pools, and IP address allocation policies; 3.
  • AACP Termina l AACP management terminal (referred to as "management terminal"), which provides the function of sending an IP address to AACC Client.
  • An embodiment of the present invention provides an automatic IP address configuration method. As shown in FIG. 1, the method includes:
  • the configuration data includes the client identifiers of the two clients, and correspondingly, the configuration data further includes the IP addresses corresponding to the two client identifiers.
  • the current probe packet received by the client may be from a management terminal.
  • Step 102 The client determines whether the client has been assigned an IP address. If the client determines that the IP address is not assigned, the client parses the current probe to obtain the configuration data.
  • the client determines that the client is not assigned an IP address
  • the client analyzes the received current probe packet and obtains the configuration data carried in the client.
  • Step 103 Obtain an IP address corresponding to the client from the configuration data according to the client identifier of the client, and perform data configuration according to the obtained IP address.
  • the configuration data may include other information in addition to the client identifier and the client identifier corresponding to the client identifier in the network segment: for example, a network segment address; or, a network segment mask. Length; or, network segment mask length and gateway address; or, including network segment address, network segment mask length, and gateway address.
  • the client may also obtain information including a network segment address, a network segment mask length, and a gateway address, and use the obtained information as the IP transmission configuration of the client. data.
  • the client can automatically obtain the IP address of the client according to the received probe packet of the network segment, even if the client and the server that allocates the IP address are in different network segments. Its IP address does not require a relay server as in the DHCP mode, so the difficulty and cost of IP address allocation can be reduced.
  • Embodiment 1 describes the AACP address allocation solution from the perspective of the client.
  • Embodiment 2 will be described from the perspective of the management terminal.
  • Step 201 The management terminal receives the network segment probe data packet sent by the address allocation server, where the network segment probe data packet includes configuration information of the specified network segment.
  • the configuration information can include different combinations of information, such as:
  • Step 202 The management terminal determines whether there is a detection packet corresponding to the network segment. If it is determined that the detection packet corresponding to the network segment does not exist, the detection packet is generated according to the received network segment detection data packet, and the detection packet is generated.
  • the text includes configuration data
  • the information of the configuration data may include: the client identifier in the network segment and the IP address corresponding to the client identifier; or the configuration information in step 201, which is not described here.
  • This configuration data can be used by the client during the data configuration process in subsequent steps.
  • the client may obtain the IP address after obtaining the configuration data. If the configuration data includes the configuration information in step 201, the client may obtain information such as a network segment address, a network segment mask length, and a gateway address in addition to the IP address, but is not limited thereto. Of course, other required information may also be included, as described in Embodiment 1, and details are not described herein again.
  • the management terminal can receive the network segment detection data packet sent by the address distribution server, and generate a corresponding detection packet according to the network segment detection data packet, and broadcast the detection packet to the corresponding network segment, so that the management terminal belongs to the network segment.
  • the client on the network segment obtains the probe packet and performs data configuration. Even if the client and the address distribution server are on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode, thereby reducing the difficulty and cost of IP address allocation.
  • Embodiment 1 describes the AACP address allocation solution from the perspective of the client.
  • Embodiment 2 will be described from the perspective of the management terminal.
  • the following Embodiment 3 describes from the perspective of the address allocation server.
  • Example 3 An embodiment of the present invention provides an automatic IP address configuration method. As shown in FIG. 3, the method includes:
  • Step 301 If the address allocation server determines that there is a client that has not completed the address allocation or the configuration data of the client that has completed the address allocation, the network segment detection data packet of the network segment where the client is located is generated, and the network segment detection data packet is generated. Including configuration information;
  • the configuration information may include the information in step 201, and details are not described herein again.
  • the configuration information may include one or a combination of the following information in addition to the information described in step 201: an IP address of the address distribution server, and an IP address of the operation and maintenance server.
  • Step 302 Send the generated network segment probe data packet to the management terminal.
  • the network segment when the address allocation server determines that there are still some clients in the network segment that have not completed the IP address allocation, or modified the configuration data of the client that has completed the IP address allocation in the address allocation server, the network segment is The unit generates the network segment probe data packet, and sends the generated network segment probe data packet to the management terminal, so that the management terminal receives the network segment probe data packet, generates a corresponding probe packet, and generates the probe packet.
  • the broadcast is performed on the destination network segment, so that the client that receives the probe packet obtains configuration data such as the corresponding IP address. Even if the client and the address distribution server are on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode, thereby reducing the difficulty and cost of IP address allocation.
  • the embodiment of the present invention provides a method for automatically configuring an IP address.
  • the following uses the client, the address allocation server, and the management terminal of the automatic address configuration protocol AACP as an example for description.
  • the address allocation server 401 when the address allocation server 401 determines that the client 403 does not complete the IP address allocation in some network segments, generates the network segment probe data packet in units of network segments, and Sending the generated network segment probe data packet to the management terminal 402;
  • the address allocation server 401 has been modified
  • the technical solution provided in this embodiment may be used, that is, the network segment detection data packet is generated in units of network segments, and the generated network segment detection data packet is sent to The terminal 402 is managed.
  • the embodiment of the present invention is mainly described in the scenario where the client 403 does not complete the IP address allocation, but is not limited thereto.
  • the management terminal 402 receives the network segment detection data packet sent by the address allocation server 401, and after receiving the network segment detection data packet, the management terminal 402 generates a corresponding detection packet, and the detection packet is in the management. Broadcasting in the network segment governed by the terminal 402;
  • the management terminal 402 can first determine whether there is a probe packet corresponding to the network segment. If it is determined that the probe packet corresponding to the network segment does not exist, the corresponding probe packet is generated and broadcasted.
  • the client 403 receives the probe packet broadcasted by the network segment management terminal 402, and obtains configuration data including the IP address according to the received probe packet.
  • the method includes:
  • Step 501 The address allocation server 401 configures related information.
  • the information about the configuration of the address allocation server 401 may include the information described in step 201, and details are not described herein again.
  • the related information may include, in addition to the information in step 201, related information such as an operation and maintenance (0M) server IP address.
  • related information such as an operation and maintenance (0M) server IP address.
  • Step 502 the address allocation server 401 determines whether there is a client that has not completed the IP address allocation, if the determination result is yes, step 503 is performed; if the determination result is no, proceed to step 502;
  • the address allocation server 401 may determine whether there is a client 403 that has not completed IP address allocation in the following manner: First, it is determined whether all network segments (all network segments managed by the address allocation server) exist or not yet Complete the network segment where all clients' IP addresses are allocated. If yes, determine whether there are any clients in the network segment that have not completed IP address allocation. It is to be noted that, in the case that the address allocation server 401 modifies the configuration data of the client 403 that has completed the IP address allocation, the technical solution provided in this embodiment may be used, and step 503 is performed. The embodiment of the present invention is mainly described in the scenario where the client 403 does not complete the IP address allocation, but is not limited thereto.
  • Step 503 If it is determined in step 502 that the result is that the client has an uncompleted IP address allocation, the address allocation server 401 generates a network segment probe data packet in a network segment, and the network segment probe data packet includes configuration information; The network segment detection data packet is sent to the management terminal 402, so that after receiving the network segment detection data packet, the management terminal 402 generates a detection packet of the network segment according to the configuration information in the network segment detection data packet, and finally The client 403 in the network segment performs corresponding data configuration according to the configuration data included in the probe packet.
  • the configuration information in the network segment detection packet includes the related information in step 501, and details are not described herein.
  • the IP address of the address assignment server can also be included.
  • the network segment probe data packet generated by the address server 401 can also carry information such as the current time stamp.
  • the structure of the network segment detection data packet is as shown in Table 1: Table 1
  • different methods for generating data packets are generated according to different scenarios:
  • the added IP address is added to the original network segment detection data packet, and the timestamp is updated to generate the network segment detection data packet.
  • the modification of the configuration data of the client 403 is not limited to modifying the IP address, and other configuration data, such as the network segment mask length and the gateway IP address, or the gateway address, may be modified.
  • Step 504 the address allocation server 401 transmits the generated network segment probe data packet to the management terminal 402.
  • the transmission mode can be manual or automatic, and the corresponding transmission mode can be selected according to actual needs.
  • Step 505 the management terminal 402 receives the network segment probe data packet transmitted by the address distribution server 401.
  • Step 506 determining whether there is a probe packet corresponding to the network segment, the probe packet is a probe IP data packet; if the determination result is the existence, step 509 is performed; if the determination result does not exist, step 507 is performed;
  • the network segment to which the network segment detection data packet belongs may be determined first, and then all the detection packets are searched according to the network segment. If the detection packet corresponding to the network segment is not found, the network may be determined to be absent. The probe packet corresponding to the segment, otherwise, the probe packet corresponding to the network segment is determined to exist.
  • the probe packet may be an IP packet
  • FIG. 6 is a schematic diagram of the structure of the probe packet.
  • the broadcast IP address of the network segment is the destination address, that is, the IP packet header of the IP packet is the broadcast IP address of the network segment; the data portion of the IP packet may include the network segment probe data packet. All the information, such as the information in step 503.
  • Step 508 The management terminal 402 broadcasts the probe packet to the network segment corresponding to the network segment address, so that the client 403 of the network segment can perform data configuration according to the information in the packet when receiving the probe packet.
  • the management terminal 402 can periodically send a probe packet to the network segment corresponding to the network segment address, and broadcast the probe packet on the network segment.
  • Step 509 If it is determined in step 506 that there is a probe packet corresponding to the network segment, the management terminal 402 further determines whether the probe packet needs to be updated. If the determination result is yes, step 510 is performed; if the determination result is no , step 512 is performed;
  • whether the probe packet needs to be updated is determined according to the timestamp of the probe packet and the timestamp corresponding to the existing probe packet. If the timestamp of the probe packet is later than the timestamp corresponding to the existing probe packet, it is determined to update the existing probe packet. If the timestamp of the probe packet is earlier than or equal to the timestamp corresponding to the probe packet, it is determined that the existing probe packet does not need to be updated.
  • Step 510 If it is determined in step 509 that the existing probe packet needs to be updated, a new probe packet is generated according to the received network segment probe data packet, and the existing probe packet is deleted.
  • Step 511 The management terminal 402 broadcasts the probe packet to the network segment corresponding to the network segment address.
  • the management terminal 402 periodically sends a probe packet to the network segment corresponding to the network segment address, so that the detection packet is
  • the client 403 of the network segment can perform data configuration according to the information in the packet.
  • Step 512 If it is determined in step 509 that the existing probe packet does not need to be updated, the packet is discarded. The currently detected network segment probe packet retains the existing probe packet.
  • step 513 the client 403 receives the probe packet of the network segment to which the management terminal 402 broadcasts.
  • the configuration data included in the probe packet is the information in step 501, and details are not described herein.
  • step 514 the client 403 determines whether an IP address has been assigned. If the determination result is yes, step 517 is performed. If the determination result is no, step 515 is performed.
  • Step 515 If the result of the determination in step 514 is no, the client 403 parses the probe packet to obtain the configuration data.
  • Step 516 Obtain configuration data including the IP address corresponding to the client from the configuration data according to the client identifier, so that the client 403 uses the configuration data to perform data configuration.
  • step 517 if the result of the determination in step 514 is YES, that is, the probe packet is received before receiving the probe packet, it is further determined whether the IP address needs to be updated. If the result of the determination is that the update is required, step 518 is performed. If the result is determined to be unnecessary, step 520 is performed;
  • Step 518 If the result of the determination in step 517 is that the IP address needs to be updated, the client 403 parses the probe packet to obtain the configuration data.
  • Step 519 Obtain an IP address corresponding to the client 403 from the configuration data according to the client identifier, and obtain other related information in the configuration data.
  • Step 520 if the result of the determination in step 517 is that the IP address does not need to be updated, the client End 403 discards the current probe.
  • the address assignment server 401 can transmit an address confirmation message that the acknowledgement address has been allocated. At this time, the address distribution server 401 can adjust its IP address allocation table based on the address confirmation information sent from the client 403. If the address assignment server 401 determines that the IP addresses of a certain network segment are all allocated, the address assignment server 401 sends an instruction to the management terminal 402 to stop transmitting the probe message. After receiving the instruction, the management terminal 402 stops transmitting the probe packet of the network segment.
  • the network segment detection packet including the client IP address can be generated by the address allocation server of the IP address, and the management terminal can generate a corresponding detection packet according to the network segment detection data packet, so that the client After receiving the probe packet, the IP address corresponding to the client is automatically obtained. Even if the client and the address allocation server that allocates the IP address are on different network segments, the relay server is not required to be obtained as in the DHCP mode. IP address, which reduces the difficulty and cost of IP address allocation.
  • the network segment detection data packet generated by the address allocation server may include other configuration data in addition to the IP address, so that the probe text generated by the management terminal may also include other configuration data, so that the client receives the probe packet. After that, the IP address and other configuration data corresponding to the client are automatically obtained for data configuration.
  • the embodiment of the present invention provides an automatic IP address allocation method.
  • data transmitted between the client 403, the address distribution server 401, and the management terminal 402 is encrypted in consideration of security of data transmission. That is, the sender encrypts the data, and the receiver decrypts the data.
  • the encryption method can use any existing method, such as encrypting the encrypted data with different passwords.
  • step 704 the address assignment server 401 encrypts the generated network segment probe data packet, and then transmits the encrypted network segment probe data packet to the management terminal 402.
  • step 705 after receiving the network segment probe data packet, the management terminal 402 decrypts the network segment probe data packet. After the probe packet is generated in steps 707 and 710, the generated probe packet is encrypted in steps 708 and 711, and the encrypted probe packet is broadcasted to the network segment corresponding to the network segment address.
  • step 713 after receiving the broadcast probe message, the client 403 first decrypts the probe message.
  • the address assignment server 401 determines that all the IP addresses of a certain network segment are allotted or for other reasons, the address assignment server 401 can encrypt the instruction to stop sending the probe message to the management terminal 402, and then send the encrypted command. To the management terminal 402. After receiving the instruction, the management terminal 402 decrypts the instruction first, and then stops sending the detection of the network segment.
  • the embodiment of the present invention provides an automatic IP address allocation method.
  • the address distribution server 401 can access the same network.
  • Clients 403 that are not assigned an IP address under the segment are grouped, and the group may be referred to as an AACCCl ient group.
  • the purpose of grouping is:
  • a new network segment probe packet is generated, including the AACP Cl ient group number and time.
  • the second type If the original IP address and the falsified IP address do not belong to the same network segment AACP Client group, the original IP address is deleted from the network segment probe data packet of the network segment AACP Cl ient group to which the original IP address belongs. Or delete the client ID corresponding to the original IP address in addition to deleting the original IP address. Then, determine whether the network segment detection packet of the AACP Cl ient group corresponding to the modified IP address exists, and if the modified IP address corresponds to the AACP Cl If the network segment detection packet of the ient group already exists, you can add the information corresponding to the modified IP address (such as the AACP client identifier) and the timestamp to the network segment probe packet to generate a new network segment probe packet. If the network segment detection packet of the AACP Client group corresponding to the modified IP address does not exist, a new network segment data packet may be generated, including the timestamp, the modified IP address, and the AACP client identifier.
  • IP0 IP1
  • IP1 IP1
  • IP0 and IP1 belong to different AAPC ient groups, you can delete the information corresponding to IP0 in the network segment detection packet of the network segment AACP Cl ient to which IP0 belongs.
  • the information corresponding to IP0 can include IP address and AACP client. End identification, etc., but is not limited to this.
  • the information corresponding to the IP1 may be added to the network segment data packet, thereby generating a new network segment detection data packet, including the timestamp; If the network segment detection packet of the AACP Client group corresponding to IP1 does not exist, a new network segment data packet may be generated, including the timestamp and the information corresponding to IP1.
  • the modification of the configuration data of the client 403 is not limited to modifying the IP address, and other configuration data, such as the network segment mask length and the gateway IP address, or the gateway address, may be modified.
  • the management terminal 402 determines whether there is a probe packet of the corresponding network segment, and may determine that the management terminal 402 can be based on the network segment. Determine the network segment where the address is located, or determine the network segment based on the network segment mask length and gateway IP address. Then check all probes according to the network segment and client group number. If the network segment and group number are not found. Corresponding 4 ⁇ , it can be determined that there is no such detection; otherwise, it can be determined that the probe is present.
  • the generated probe message may include the client group number in addition to the information in step 503.
  • the probe packet can be an IP packet
  • Figure 9 is a schematic diagram of the structure of the probe packet.
  • the IP address of the network segment is the destination address, that is, the IP packet header of the IP packet is the IP address of the network segment.
  • the data portion of the IP packet may include the network packet detection packet. All information, such as the information in step 503 and the client group number.
  • the address allocation server classifies the client that has not assigned the IP address, and generates the corresponding network segment probe data packet in units of groups, so that the management terminal obtains the data packet, and then according to the network.
  • the segment and the client group number check whether there is a probe packet corresponding to the network segment and the client group number. If it does not exist or exists but needs to be updated, a corresponding probe packet is generated according to the data packet, and periodically
  • the network segment broadcasts the network segment client to obtain the probe packet, so as to obtain configuration data including the IP address.
  • An embodiment of the present invention provides an apparatus for automatically configuring an IP address.
  • the apparatus includes a text receiving unit 1001, a text processing unit 1002, and a data acquiring unit 1003.
  • the message receiving unit 1001 is configured to receive a client.
  • the detection packet of the network segment, the detection packet includes configuration data, and the configuration data includes at least a client identifier in the network segment and an IP address corresponding to the client identifier;
  • the processing unit 1002 is configured to determine The client does not assign an IP address, Or determining that the IP address has been assigned and determining that the allocated IP address needs to be updated, the probe is parsed to obtain the configuration data;
  • the data obtaining unit 1003 is configured to obtain the configuration data according to the client identifier.
  • the IP address corresponding to the client is configured to receive a client.
  • the device may be an AACP client, and the configuration data including the IP address may be automatically obtained.
  • the client can automatically obtain the IP address of the client according to the received probe packet of the network segment, even if the client and the server that allocates the IP address are on different network segments,
  • the DHCP method sets the relay server to obtain the IP address, so the difficulty and cost of the IP address allocation can be reduced.
  • An embodiment of the present invention provides an apparatus for automatically configuring an IP address.
  • the apparatus includes a text receiving unit 1101, a text processing unit 1102, and a data obtaining unit 1103.
  • the function is similar to that of Embodiment 7, and details are not described herein. .
  • the configuration data may include other information in addition to the client identifier and the client identifier corresponding to the client identifier in the network segment: for example, a network segment address; or, a network segment mask. Length; or, network segment mask length and gateway address, or network segment address, network segment mask length, and gateway address.
  • the client may also obtain information including a network segment address, a network segment mask length, and a gateway address, and use the obtained information as the IP transmission configuration of the client. data.
  • the information included in the configuration data may also include other optional information required, for example: an address assigned to the IP address, an IP address of the server, and an operation and maintenance (0M) IP address of the server. , current timestamp and other information.
  • the data obtaining unit 1103 can obtain other configuration data other than the IP address, in addition to obtaining the IP address corresponding to the client, and performing automatic configuration of the IP address, according to the configuration.
  • the data is configured accordingly.
  • the device may further include a first decryption unit 1104, after the packet receiving unit 1101 receives the current probe packet of the network segment to which the client belongs, if the current The probe packet is encrypted, and the first decryption unit 1104 is configured to decrypt the current probe packet. Then, the message processing unit 1102 processes the decrypted message.
  • the apparatus when the device obtains an IP address, it can send an address confirmation message to the AACP server.
  • the apparatus further includes an information sending unit 1105, and is connected to the data acquiring unit 1103, and is configured to send, to the server, address confirmation information that the confirmation address has been allocated.
  • the apparatus further includes a first encryption unit 1106 for encrypting the address confirmation information; and the information transmission unit 1105 is configured to send the encrypted address confirmation information.
  • the processing unit 1102 may include an address determining unit 1201 and a text parsing unit 1202.
  • the address determining unit 1201 is configured to determine whether the client has assigned an IP address.
  • the parsing unit 1202 is configured to parse the current probe packet when the address determining unit 1201 determines that the client does not allocate an IP address, thereby acquiring configuration data.
  • the processing unit 1102 further includes an update determining unit 1203, configured to: when the address determining unit 1201 determines that the client has assigned an IP address, according to the current timestamp and the assigned IP address. The timestamp determines if the assigned IP address needs to be updated, as described in Embodiments 4 through 6. If the update determining unit 1203 determines that the allocated IP address needs to be updated, the message parsing unit 1202 is notified to parse the current probe message.
  • the device can be an AACP client.
  • the working process is as in the embodiments 4 to 6 The description is not repeated here.
  • the client can decrypt the received probe packet, and automatically obtain the IP address of the client according to the received probe packet of the network segment, even if the client and the IP address are allocated.
  • the server is on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode. Therefore, the difficulty and cost of IP address allocation can be reduced.
  • the client since the probe packet includes other configuration data, the client can perform data configuration according to other configuration data in the probe packet after receiving the probe packet of the network segment.
  • An embodiment of the present invention provides an apparatus for automatically configuring an IP address.
  • the apparatus includes a data packet receiving unit 1301, a message determining unit 1302, a packet processing unit 1303, and a packet sending unit 1304.
  • the data packet receiving unit 1301 is configured to receive a network segment detection data packet that is sent by the server, where the network segment detection data packet includes configuration information of the network segment, where the configuration information includes the information in step 503, and the network segment detection data packet is further The group number of the group where the client is located can be carried, and will not be described here.
  • the message determining unit 1302 is configured to determine whether there is a probe packet corresponding to the network segment
  • the data packet processing unit 1303 is configured to: when the text determining unit 1302 determines that the probe packet corresponding to the network segment does not exist, according to the network
  • the segment detection packet generates the probe packet, where the probe packet includes configuration data, where the information of the configuration data includes a client identifier in the network segment and an IP address corresponding to the client identifier, or the configuration data includes the data packet.
  • the message sending unit 1304 is configured to send the generated probe packet to the network segment, so that the client in the network segment receives the probe packet and performs data configuration according to the configuration data in the probe packet.
  • the packet sending unit 1304 can periodically broadcast the probe packet to the network segment corresponding to the network segment address.
  • the device may be an AACP management terminal, and the working process is as described in Embodiment 1, and details are not described herein again.
  • the AACP management terminal can receive the network segment detection data packet that is sent by the AACP address allocation server, including the client IP address, and generate a corresponding detection packet according to the network segment detection data packet, and send the detection packet to The corresponding network segment is broadcasted, so that the client of the network segment obtains the IP address corresponding to the client from the probe packet after obtaining the probe packet, even if the client and the server that allocates the IP address are different.
  • the network segment does not need to set the relay server to obtain the IP address as in the DHCP mode. Therefore, the difficulty and cost of IP address allocation can be reduced.
  • the network segment detection data packet and the probe packet may include other configuration data in addition to the client IP address, so that the AACP management terminal broadcasts the probe packet to the corresponding network segment, so that the network segment belongs to the network segment.
  • the client can obtain configuration data including the IP address from the probe packet, and perform data configuration according to the configuration data.
  • An embodiment of the present invention provides an apparatus for automatically configuring an IP address.
  • the apparatus includes a data packet receiving unit 1401, a message determining unit 1402, a data packet processing unit 1403, and a packet sending unit 1404.
  • Embodiment 9 is similar and will not be described here.
  • the device further includes a second decryption unit 1405, and is connected to the data packet receiving unit 1401, and configured to perform the current network segment detection data packet when the current network segment detection data packet is encrypted. Decrypt.
  • the device further includes a second encryption unit 1406, which is connected to the data packet processing unit 1403 and the message sending unit 1404, and configured to encrypt the generated probe message; then the message sending unit 1404 is configured to send Encrypted probe message.
  • a second encryption unit 1406, which is connected to the data packet processing unit 1403 and the message sending unit 1404, and configured to encrypt the generated probe message; then the message sending unit 1404 is configured to send Encrypted probe message.
  • the apparatus further includes an instruction receiving unit 1407 and a processing unit 1408.
  • the instruction receiving unit 1407 is configured to receive an instruction sent by the address allocation server to stop sending the probe message.
  • the processing unit 1408 is configured to: The sending of the probe message is stopped according to the instruction.
  • the apparatus may further include a third decryption unit 1409 for decrypting the instruction when the instruction to stop transmitting the probe message is encrypted.
  • the apparatus further includes a packet update determining unit 1410, configured to: when the packet determining unit 1402 determines that the probe packet corresponding to the network segment already exists, detect the time of the data packet according to the network segment.
  • the time stamp corresponding to the assigned IP address determines whether the existing probe message needs to be updated, as described in Embodiments 4 to 6; if the result of the determination is that the existing probe message needs to be updated, the message is notified.
  • the generating unit 1403 generates the probe text.
  • the apparatus may further include a packet discarding unit 1411, configured to discard the current network segment probe packet when the packet update determining unit 1410 determines that the existing probe packet does not need to be updated. .
  • the network segment detection data packet received by the data packet receiving unit 1401 may further carry the group number of the packet where the client is located.
  • the "3" text determining unit 1402 is configured to determine, according to the network segment address and the group number, or according to the network segment mask length and the gateway address, and the group number, whether there is a probe corresponding to the network segment. .
  • the device may be an AACP management terminal.
  • the working process is as described in Embodiments 4 to 6, and details are not described herein again.
  • the AACP management terminal can decrypt the received network segment detection data packet, and generate a corresponding detection packet according to the received network segment detection data packet, after being encrypted.
  • the probe packet is broadcast to a specific network segment, thereby enhancing the security of data transmission.
  • An embodiment of the present invention provides an apparatus for automatically configuring an IP address.
  • the apparatus includes a data packet generating unit 1501 and a data packet sending unit 1502.
  • the data packet generating unit 1501 is configured to: when a client that has not completed the address allocation, generate a network segment probe data packet of the network segment where the client is located, where the network segment probe data packet includes configuration information, where the configuration information is included in step 503. Information, or include the information and client in step 503 The group number of the group in which it is located, which will not be described here.
  • the data packet sending unit 1502 is configured to send the generated network segment probe data packet to the AACP management terminal, so that the AACP management terminal generates a corresponding probe according to the received network segment probe data packet.
  • the data packet generating unit 1501 may generate the network segment sounding data packet according to the related information previously input into the address allocation server.
  • the related information input in advance is as described in Embodiment 3, and details are not described herein again.
  • the device can be an AACP address allocation server.
  • the working process of the device is as described in Embodiments 3 and 6, and details are not described herein again.
  • the network segment probe packet is generated by using the network segment or the client group number, and the generated network is generated.
  • the segment probe data packet is sent to the AACP management terminal, so that the client of the network segment obtains the probe packet, and obtains the IP address corresponding to the client from the probe packet, even if the client and the IP address are assigned.
  • the server is on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode. Therefore, the difficulty and cost of IP address allocation can be reduced.
  • the network segment detection data packet and the probe packet may include other configuration data in addition to the client IP address, so that the AACP management terminal broadcasts the probe packet to the corresponding network segment, so that the network segment belongs to the network segment.
  • the client can obtain configuration data including the IP address from the probe packet, and perform data configuration according to the configuration data.
  • the apparatus can also include a configuration unit (not shown) for configuring information related to generating a network segment probe packet.
  • the apparatus further includes a third encryption unit 1606, configured to encrypt the generated network segment probe data packet; and the data packet sending unit 1602 is configured to send the encrypted network segment. Probe packets.
  • the apparatus further includes a fourth encryption unit 1607, configured to encrypt the instruction to stop sending the probe message; and the command sending unit 1605 is configured to send the encrypted instruction to stop sending the probe message.
  • the device can allocate a server for the AACP address.
  • the working process of the device is as described in Embodiments 4 to 6, and will not be described herein.
  • the address distribution server can encrypt and transmit the transmitted network probe data packet or the instruction to stop transmitting the probe message, thereby improving the security of data transmission.
  • the embodiment of the present invention provides a data configuration system. As shown in FIG. 5, the system includes a terminal 502.
  • the terminal may be configured by using the apparatus described in Embodiment 9 and Embodiment 10 or any combination thereof.
  • the system may further include an address assignment server 501, which may be constructed using the apparatus described in Embodiment 11 and Embodiment 12, or any combination thereof.
  • system further includes a client 503, wherein the composition of the client can use the apparatus described in Embodiment 7 and Embodiment 8, or any combination thereof.
  • the embodiment of the present invention can complete the automatic IP address allocation only by utilizing the most basic functions of the IP network, and improve the use range of the automatic configuration of the IP address, even if The client and the server that assigns the IP address do not need to set the relay server to obtain an IP address as in the DHCP mode on different network segments, thereby reducing the difficulty and cost of IP address allocation.
  • other configuration data may be included in the probe message including the IP address, so that other data can be configured while the IP address is configured.

Abstract

A method, device thereof and system thereof for automatically configuring Internet Protocol (IP) addresses are disclosed by the present invention. The method includes: receiving a network segment probe packet transmitted by an address allocation server, the network segment probe packet including configuration information which includes identifiers of clients in the network segment and the IP addresses corresponding to the identifiers; determining whether there is the probe message corresponding to the network segment, if no, generating, according to the network segment probe packet, the probe message including configuration data which include the identifiers of the clients in the network segment and the IP addresses corresponding to the identifiers; transmitting the probe message to the network segment so as to enable the clients in the network segment to implement data configuration according to the configuration data in the probe message. The difficulty and costs of IP address allocation can be reduced by the invention.

Description

IP地址自动配置方法及其装置、 系统 本申请要求于 2009 年 8 月 28 日提交中国专利局、 申请号为 200910166847.6、发明名称为' ΊΡ地址自动配置方法及其装置、 系统"的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  IP address automatic configuration method, device and system thereof. The present application claims to be filed on August 28, 2009 in the Chinese Patent Office, the application number is 200910166847.6, and the invention name is 'ΊΡ address automatic configuration method and its device, system" Priority, the entire contents of which are incorporated herein by reference.
本发明涉及通信领域, 特别涉及一种 IP地址自动配置方法及其装置、 系统。  The present invention relates to the field of communications, and in particular, to an IP address automatic configuration method, device, and system thereof.
背景技术 Background technique
互联网协议 ( Internet Protocol, 简称 IP )地址是 IP网络中标识用户设 备和网络设备的一种标识, 也是 IP 网络用于 IP 包转发的标识, 因此, IP 地址的分配是整个 IP网络的核心。  The Internet Protocol (IP) address is an identifier for identifying user equipment and network equipment in an IP network, and is also an identifier used by an IP network for IP packet forwarding. Therefore, IP address allocation is the core of the entire IP network.
目前 IP地址的分配方式包括: 自动获得 IP地址方式。 自动获得 IP地 址的方式是指: 客户端设备不需要人工千预, 可自动获得该客户端设备的 主机 IP地址、 网关 IP地址和网段掩码。 目前, 自动获得 IP地址的主要技 术是动态主机配置十办议 ( DHCP: Dynamic Host Configuration Protocol ) 。  Currently, the IP address allocation method includes: Automatically obtaining an IP address. The method of automatically obtaining an IP address means that: the client device does not need to manually pre-empt, and can automatically obtain the host IP address, gateway IP address, and network segment mask of the client device. Currently, the main technology for automatically obtaining an IP address is the Dynamic Host Configuration Protocol (DHCP).
但发明人在实现本发明的过程中发现自动获得 IP地址的现有技术的缺 陷在于: 当 DHCP服务器与 DHCP客户端不在同一个网段, 需要在 DHCP 客户端同一个网段内配置一个 DHCP中继(Relay )主机。 但一般情况下 IP 网络的标准业务只提供路由功能,不提供 IP地址自动配置功能,而该 DHCP Relay主机属于 IP地址自动配置的功能, 不属于路由功能, 因此, 承载网 运营商一般不提供 DHCP Relay功能。由于承载网运营商不提供 DHCP Relay 功能, 且客户端自己一般不可能在每个网段配置和管理一个 DHCP中继或 DHCP服务器(Server ) , 因此, 在 IP 网络的标准业务下, 较难实现自动 IP地址配置。 发明内容 However, in the process of implementing the present invention, the inventors found that the prior art of automatically obtaining an IP address has the following disadvantages: When the DHCP server and the DHCP client are not on the same network segment, a DHCP client needs to be configured in the same network segment as the DHCP client. Following (Relay) host. However, in general, the standard service of the IP network only provides the routing function and does not provide the automatic configuration of the IP address. The DHCP relay host is configured with the automatic configuration of the IP address and is not a routing function. Therefore, the bearer network operator generally does not provide DHCP. Relay function. The bearer network operator does not provide the DHCP relay function, and the client itself cannot configure and manage a DHCP relay or a DHCP server (Server) on each network segment. Therefore, it is difficult to implement the standard network service of the IP network. Automatic IP address configuration. Summary of the invention
本发明实施例的目的在于提供一种 IP地址自动配置方法及其装置、 系 统, 使得 IP地址分配的难度和成本得以降低。  It is an object of the embodiments of the present invention to provide an automatic IP address allocation method, apparatus, and system thereof, which can reduce the difficulty and cost of IP address allocation.
本发明实施例提供一种 IP地址自动配置方法, 该方法包括: 接收地址 分配服务器传送的网段探测数据包, 该网段探测数据包包括配置信息, 该 配置信息包括网段内的客户端标识和客户端标识对应的 IP地址; 确定是否 存在该网段对应的探测报文, 若确定不存在该网段对应的探测报文, 则根 据该网段探测数据包生成探测报文, 该探测报文包括配置数据, 该配置数 据包括该网段内的客户端标识和该客户端标识对应的 IP地址; 将该探测报 文向该网段发送, 以使该网段内的客户端接收到该探测报文后根据该探测 报文中的配置数据进行数据配置。  An embodiment of the present invention provides a method for automatically configuring an IP address, where the method includes: receiving a network segment detection data packet sent by an address allocation server, where the network segment detection data packet includes configuration information, where the configuration information includes a client identifier in the network segment. An IP address corresponding to the client identifier; determining whether there is a probe packet corresponding to the network segment, and if it is determined that the probe packet corresponding to the network segment does not exist, generating a probe packet according to the network segment probe data packet, the probe packet The configuration data includes the client identifier in the network segment and the IP address corresponding to the client identifier. The probe packet is sent to the network segment, so that the client in the network segment receives the data. After the packet is detected, the data is configured according to the configuration data in the probe packet.
本发明实施例还提供一种 ip地址自动配置方法, 该方法包括: 若存在 未完成地址分配的客户端或者修改了已完成地址分配的客户端的配置数 据, 则生成该客户端所在网段的网段探测数据包, 该网段探测数据包包括 配置信息, 该配置信息包括网段内的客户端标识和客户端标识对应的 IP地 址; 将该网段探测数据包向管理终端发送。  The embodiment of the present invention further provides an ip address automatic configuration method, where the method includes: if there is a client that does not complete the address allocation or the configuration data of the client that has completed the address allocation is modified, the network of the network segment where the client is located is generated. The segment detection data packet, the network segment detection data packet includes configuration information, where the configuration information includes a client identifier in the network segment and an IP address corresponding to the client identifier; and the network segment probe data packet is sent to the management terminal.
本发明实施例还提供一种 IP地址自动配置的管理终端, 该管理终端包 括:  The embodiment of the invention further provides a management terminal for automatically configuring an IP address, and the management terminal includes:
数据包接收单元, 用于接收地址分配服务器传送的网段探测数据包, 该网段探测数据包包括网段的配置信息 , 该配置信息包括网段内的客户端 标识和客户端标识对应的 IP地址;  a data packet receiving unit, configured to receive a network segment detection data packet sent by the address allocation server, where the network segment detection data packet includes configuration information of the network segment, where the configuration information includes a client identifier in the network segment and an IP corresponding to the client identifier Address
报文确定单元, 用于确定是否存在该网段对应的探测报文;  a message determining unit, configured to determine whether a probe packet corresponding to the network segment exists;
数据包处理单元, 用于在确定不存在该网段对应的探测报文时, 根据 该网段探测数据包生成探测报文, 该探测报文包括配置数据, 该配置数据 包括网段内的客户端标识和该客户端标识对应的 IP地址; 报文发送单元, 用于将生成的该探测报文向该网段发送, 以使该网段 内的客户端接收到该探测报文后根据该探测报文中的配置数据进行数据配 置。 a packet processing unit, configured to generate a probe packet according to the network segment probe data packet, where the probe packet includes configuration data, where the configuration data includes a client in the network segment, when the probe packet corresponding to the network segment is determined to be absent. The end identifier and the IP address corresponding to the client identifier; The message sending unit is configured to send the generated probe packet to the network segment, so that the client in the network segment receives the probe packet and performs data configuration according to the configuration data in the probe packet.
本发明实施例还提供一种 IP地址分配服务器, 该服务器包括: 数据包生成单元, 用于在存在未完成地址分配的客户端或者修改了已 完成地址分配的客户端的配置数据时 , 生成该客户端所在网段的网段探测 数据包, 该网段探测数据包包括配置信息, 该配置信息包括网段内的客户 端标识和客户端标识对应的 IP地址;  The embodiment of the present invention further provides an IP address allocation server, where the server includes: a data packet generating unit, configured to generate the client when there is a client that has not completed address allocation or a configuration data of a client that has completed address allocation is modified. The network segment of the network segment where the terminal is located detects the data packet, and the network segment detection data packet includes configuration information, where the configuration information includes the client identifier and the IP address corresponding to the client identifier in the network segment.
数据包发送单元, 用于将生成的该网段探测数据包向管理终端发送。 本发明实施例的有益效果在于, 通过本发明实施例的技术方案, AACP 管理终端可根据 AACP地址分配服务器发送的网段探测数据包生成包含配置 数据的探测报文, 并将该探测报文向相应网段发送, 使得所属网段的客户 端获得 AACP管理终端发送的配置数据, 从该配置数据中获得相应的地址, 从而自动完成地址分配。 本发明实施例的技术方案中, 该客户端和 AACP地 址分配服务器可以处于不同的网段, 并且当客户端和 AACP地址分配服务器 处于不同的网段时, 不需要如 DHCP方式那样设置中继服务器, 从而降低了 IP地址分配的难度和成本。 附图说明  And a data packet sending unit, configured to send the generated network segment probe data packet to the management terminal. The beneficial effects of the embodiment of the present invention are that, by using the technical solution of the embodiment of the present invention, the AACP management terminal may generate a probe packet containing the configuration data according to the network segment detection data packet sent by the AACP address allocation server, and send the probe packet to the probe packet. The corresponding network segment is sent, so that the client of the network segment obtains the configuration data sent by the AACP management terminal, and obtains the corresponding address from the configuration data, thereby automatically completing the address allocation. In the technical solution of the embodiment of the present invention, the client and the AACP address allocation server may be in different network segments, and when the client and the AACP address allocation server are in different network segments, the relay server does not need to be set up in the DHCP mode. , thereby reducing the difficulty and cost of IP address allocation. DRAWINGS
此处所说明的附图用来提供对本发明实施例的进一步理解 , 构成本申 请的一部分, 并不构成对本发明实施例的限定。 在附图中:  The drawings described herein are provided to provide a further understanding of the embodiments of the invention, and are not intended to limit the embodiments of the invention. In the drawing:
图 1是本发明实施例 1的 IP地址自动配置方法流程图;  1 is a flowchart of an automatic IP address configuration method according to Embodiment 1 of the present invention;
图 2是本发明实施例 2的 IP地址自动配置方法流程图;  2 is a flowchart of an automatic IP address allocation method according to Embodiment 2 of the present invention;
图 3是本发明实施例 3的 IP地址自动配置方法流程图;  3 is a flowchart of an automatic IP address setting method according to Embodiment 3 of the present invention;
图 4是本发明实施例的数据配置系统构成示意图;  4 is a schematic structural diagram of a data configuration system according to an embodiment of the present invention;
图 5是本发明实施例 4的 IP地址自动配置方法流程图; 图 6是本发明实施例 4中探测报文结构示意图; 5 is a flowchart of an automatic IP address allocation method according to Embodiment 4 of the present invention; 6 is a schematic structural diagram of a probe packet in Embodiment 4 of the present invention;
图 7是本发明实施例 5的 IP地址自动配置方法流程图;  7 is a flowchart of an automatic IP address setting method according to Embodiment 5 of the present invention;
图 8是本发明实施例 6的 IP地址自动配置方法流程图;  8 is a flowchart of an automatic IP address setting method according to Embodiment 6 of the present invention;
图 9是本发明实施例 6中探测报文结构示意图;  9 is a schematic structural diagram of a probe packet in Embodiment 6 of the present invention;
图 10是本发明实施例 7的 IP地址自动配置装置构成示意图; 图 11是本发明实施例 8的 IP地址自动配置装置构成示意图; 图 12是本发明实施例 8中报文处理单元构成示意图;  10 is a schematic diagram showing the structure of an IP address automatic configuration apparatus according to Embodiment 7 of the present invention; FIG. 11 is a schematic diagram showing the structure of an IP address automatic configuration apparatus according to Embodiment 8 of the present invention;
图 13是本发明实施例 9的 IP地址自动配置装置构成示意图; 图 14是本发明实施例 10的 IP地址自动配置装置构成示意图; 图 15是本发明实施例 11的 IP地址自动配置装置构成示意图; 图 16是本发明实施例 12的 IP地址自动配置装置构成示意图。 具体实施方式  FIG. 13 is a schematic diagram showing the structure of an automatic IP address configuration apparatus according to Embodiment 9 of the present invention; FIG. 14 is a schematic diagram showing the structure of an automatic IP address configuration apparatus according to Embodiment 10 of the present invention; Figure 16 is a block diagram showing the structure of an automatic IP address configuration apparatus according to a twelfth embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚明白, 下面结合 附图, 对本发明实施例作进一步详细说明。 在此, 本发明的示意性实施例 及其说明用于解释本发明, 但并不作为对本发明的限定。  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. The illustrative embodiments of the present invention and the description thereof are intended to be illustrative of the invention, and are not intended to limit the invention.
本发明实施例提供一种 IP地址自动配置方法、 装置和系统。 以下结合 附图对本发明实施例进行详细说明。  Embodiments of the present invention provide a method, an apparatus, and a system for automatically configuring an IP address. The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
本发明实施例所介绍的 IP地址自动配置技术可取名为 AACP : Auto Addres s Conf igurat ion Protocol (自动地址酉己置十办议) , 该十办议用于 IP 地址自动获取。  The IP address auto-configuration technology introduced in the embodiment of the present invention may be named as AACP: Auto Addres s Conf iguration Protocol, and the ten-party negotiation is used for automatic IP address acquisition.
本发明实施例的技术方案, 可能涉及三个功能节点:  The technical solution of the embodiment of the present invention may involve three functional nodes:
1. AACP Cl ient : 即 AACP客户端 (可筒称 "客户端" ) , 该节点需要 分配 IP地址。 换句话说, 客户端就是等待分配 IP地址的主机, 如计算机等。  1. AACP Cl ient: This is the AACP client (which can be called a "client"). This node needs to be assigned an IP address. In other words, the client is the host waiting to assign an IP address, such as a computer.
2. AACP Server: 即 AACP服务器端 (可筒称 "地址分配服务器" ) , 该节点提供 IP地址分配服务, 包括 IP地址池, 以及 IP地址分配策略; 3. AACP Termina l : AACP管理终端 (可简称 "管理终端"), 该节点提 供 IP地址下发到 AACP Cl ient的功能。 2. AACP Server: AACP server (which can be called "address allocation server"), which provides IP address allocation services, including IP address pools, and IP address allocation policies; 3. AACP Termina l: AACP management terminal (referred to as "management terminal"), which provides the function of sending an IP address to AACC Client.
以下分别从方法、 涉及的节点 (也可以称为 "网元,, 或装置) 以及系 统的角度, 对 AACP地址分配解决方案进行描述。  The following describes the AACP address allocation solution from the perspective of the method, the nodes involved (also referred to as "network elements," or devices) and the system.
实施例 1  Example 1
本发明实施例提供一种 IP地址自动配置方法, 如图 1所示, 该方法包 括:  An embodiment of the present invention provides an automatic IP address configuration method. As shown in FIG. 1, the method includes:
步驟 101 ,客户端接收该客户端所属网段的探测报文, 该探测报文包括 配置数据, 该配置数据包括该网段内的客户端标识和客户端标识对应的 IP 地址;  Step 101: The client receives the detection packet of the network segment to which the client belongs, and the detection packet includes configuration data, where the configuration data includes an IP address corresponding to the client identifier and the client identifier in the network segment.
在该步驟中, 比如, 该网段内有 2个未分配 IP地址的客户端(客户端 In this step, for example, there are 2 clients with unassigned IP addresses in the network segment (client)
1和客户端 2 ), 则配置数据中包括该 2个客户端的客户端标识, 相应的, 配置数据中还包括该 2个客户端标识所对应的 IP地址。 1 and the client 2), the configuration data includes the client identifiers of the two clients, and correspondingly, the configuration data further includes the IP addresses corresponding to the two client identifiers.
另外, 该客户端接收到的当前探测报文, 可以来自管理终端。  In addition, the current probe packet received by the client may be from a management terminal.
步骤 102 , 客户端判断该客户端是否已被分配了 IP地址, 若该客户端 确定未被分配 IP地址, 则该客户端对该当前探测 文进行解析, 以获取该 配置数据;  Step 102: The client determines whether the client has been assigned an IP address. If the client determines that the IP address is not assigned, the client parses the current probe to obtain the configuration data.
以该客户端是客户端 1 为例, 在本步驟中, 如果客户端确定自己未被 分配 IP地址, 则对接收到的当前探测报文进行解析, 获取其中携带的配置 数据。  For example, if the client is the client 1, in this step, if the client determines that the client is not assigned an IP address, the client analyzes the received current probe packet and obtains the configuration data carried in the client.
步驟 103,根据该客户端的客户端标识从该配置数据中获取该客户端对 应的 IP地址, 并根据获取的 IP地址进行数据配置。  Step 103: Obtain an IP address corresponding to the client from the configuration data according to the client identifier of the client, and perform data configuration according to the obtained IP address.
在本实施例中, 该客户端标识可为该客户端的物理标识, 如电子序列 号 (ESN: Electronic Ser ia l Number)、或者介质访问控制( MAC: Media Acces s Control )地址。 在本步驟中, 客户端 1从解析得到的配置数据中获取该客 户端 1所对应的 IP地址, 具体获取方式可以为: 才艮据自身的标识在该配置 数据中进行查找, 找到与其自身客户端标识对应的 IP地址。 之后, 客户端 可以用获取的 IP地址进行数据配置(具体可以是 IP地址配置)。 In this embodiment, the client identifier may be a physical identifier of the client, such as an Electronic Serial Number (ESN) or a Media Access Control (MAC) address. In this step, the client 1 obtains the IP address corresponding to the client 1 from the parsed configuration data, and the specific obtaining manner may be as follows: Look in the data and find the IP address corresponding to its own client ID. After that, the client can use the obtained IP address for data configuration (specifically, IP address configuration).
在本实施例中 , 该配置数据除了包括网段内的客户端标识和客户端标 识对应的 IP地址之外, 该配置数据还可包括其他信息: 比如, 网段地址; 或者, 网段掩码长度; 或者, 网段掩码长度和网关地址; 再或者, 包括网 段地址、 网段掩码长度和网关地址。  In this embodiment, the configuration data may include other information in addition to the client identifier and the client identifier corresponding to the client identifier in the network segment: for example, a network segment address; or, a network segment mask. Length; or, network segment mask length and gateway address; or, including network segment address, network segment mask length, and gateway address.
相应的, 该客户端除了获取该客户端对应的 IP地址外, 也可获取包括 网段地址、 网段掩码长度、 网关地址在内的信息, 并将获取的信息作为该 客户端的 IP传输配置数据。  Correspondingly, in addition to obtaining the IP address corresponding to the client, the client may also obtain information including a network segment address, a network segment mask length, and a gateway address, and use the obtained information as the IP transmission configuration of the client. data.
可以理解的是, 配置数据包括的信息还可包括其它需要的可选信息, 例如: 分配该 IP地址的地址分配服务器的 IP地址、 操作与维护 (0M )月良 务器的 IP地址、 当前的时间戳等信息。  It can be understood that the information included in the configuration data may also include other optional information required, for example: the IP address of the address allocation server to which the IP address is assigned, the operation and maintenance (0M) IP address of the server, and the current Information such as timestamps.
由上述实施例可知, 该客户端可根据接收到的所属网段的探测报文自 动获得该客户端的 IP地址, 即使该客户端和分配该 IP地址的服务器在不 同的网段时也可自动获得其 IP地址, 而不需要如 DHCP方式那样设置中继 服务器, 因此, 可降低 IP地址分配的难度和成本。  According to the foregoing embodiment, the client can automatically obtain the IP address of the client according to the received probe packet of the network segment, even if the client and the server that allocates the IP address are in different network segments. Its IP address does not require a relay server as in the DHCP mode, so the difficulty and cost of IP address allocation can be reduced.
实施例 1是从客户端的角度对 AACP地址分配解决方案进行描述, 以下 实施例 2将从管理终端的角度进行描述。  Embodiment 1 describes the AACP address allocation solution from the perspective of the client. The following Embodiment 2 will be described from the perspective of the management terminal.
实施例 2  Example 2
本发明实施例提供一种 IP地址自动配置方法, 如图 2所示, 该方法包 括:  An embodiment of the present invention provides an automatic IP address configuration method. As shown in FIG. 2, the method includes:
步骤 201 , 管理终端接收地址分配服务器传送的网段探测数据包, 该网 段探测数据包包括指定网段的配置信息;  Step 201: The management terminal receives the network segment probe data packet sent by the address allocation server, where the network segment probe data packet includes configuration information of the specified network segment.
该配置信息可以包括不同的信息组合, 比如:  The configuration information can include different combinations of information, such as:
( 1 ) 网段地址、 以及该网段内的客户端标识和该客户端标识对应的 IP 地址; 或者, (2 ) 网段掩码长度、 以及该网段内的客户端标识和该客户端 标识对应的 IP地址; 或者, (3 ) 网段掩码长度、 网关地址、 以及该网段内 的客户端标识和该客户端标识对应的 IP地址; 或者, (4 ) 网段地址、 网段 掩码长度、 网关地址、 以及该网段内的客户端标识和该客户端标识对应的 IP地址。 (1) the network segment address, and the client identifier in the network segment and the IP address corresponding to the client identifier; or, (2) the length of the network segment mask, and the client identifier and the client in the network segment. Identifying the corresponding IP address; or, (3) the network segment mask length, the gateway address, and the client identifier in the network segment and the IP address corresponding to the client identifier; or, (4) the network segment address, the network segment The mask length, the gateway address, and the client ID in the network segment and the IP address corresponding to the client ID.
步驟 202 , 管理终端确定是否存在与该网段所对应的探测报文, 若确定 不存在该网段对应的探测报文 , 则根据接收到的网段探测数据包生成探测 报文, 该探测报文包括配置数据;  Step 202: The management terminal determines whether there is a detection packet corresponding to the network segment. If it is determined that the detection packet corresponding to the network segment does not exist, the detection packet is generated according to the received network segment detection data packet, and the detection packet is generated. The text includes configuration data;
该配置数据的信息可以包括: 网段内的客户端标识和客户端标识对应 的 IP地址; 或者包括步驟 201中的配置信息, 此处不再赘述。 该配置数据 可以在后续步驟中为客户端在数据配置过程中所使用。  The information of the configuration data may include: the client identifier in the network segment and the IP address corresponding to the client identifier; or the configuration information in step 201, which is not described here. This configuration data can be used by the client during the data configuration process in subsequent steps.
步驟 203,将生成的该探测报文向该网段发送, 以使该网段内的客户端 接收到所述探测报文后 , 根据该探测报文中的配置数据进行数据配置。  Step 203: Send the generated probe packet to the network segment, so that the client in the network segment receives the probe packet, and performs data configuration according to the configuration data in the probe packet.
在本实施例中, 若该配置数据仅包括该网段内的客户端标识和该客户 端标识对应的 IP地址时, 该客户端在获得该配置数据后, 可获取其 IP地 址。 若该配置数据包括步骤 201中的配置信息时, 该客户端除了获得 IP地 址外, 还可获得网段地址、 网段掩码长度、 网关地址等信息, 但不限于此。 当然, 还可包括其它需要的信息, 如实施例 1所述, 此处不再赘述。  In this embodiment, if the configuration data includes only the client identifier in the network segment and the IP address corresponding to the client identifier, the client may obtain the IP address after obtaining the configuration data. If the configuration data includes the configuration information in step 201, the client may obtain information such as a network segment address, a network segment mask length, and a gateway address in addition to the IP address, but is not limited thereto. Of course, other required information may also be included, as described in Embodiment 1, and details are not described herein again.
由上述可知, 管理终端可接收地址分配服务器发送的网段探测数据包, 并根据该网段探测数据包生成相应的探测报文, 将该探测报文向相应的网 段广播, 从而使得所属该网段的客户端获得该探测报文并进行数据配置。 即使该客户端和地址分配服务器在不同的网段时也不需要如 DHCP方式那样 设置中继服务器来获得 IP地址, 因此, 可降低 IP地址分配的难度和成本。  According to the above, the management terminal can receive the network segment detection data packet sent by the address distribution server, and generate a corresponding detection packet according to the network segment detection data packet, and broadcast the detection packet to the corresponding network segment, so that the management terminal belongs to the network segment. The client on the network segment obtains the probe packet and performs data configuration. Even if the client and the address distribution server are on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode, thereby reducing the difficulty and cost of IP address allocation.
实施例 1是从客户端的角度对 AACP地址分配解决方案进行描述, 实施 例 2将从管理终端的角度进行描述, 以下实施例 3从地址分配服务器的角 度进行描述。  Embodiment 1 describes the AACP address allocation solution from the perspective of the client. Embodiment 2 will be described from the perspective of the management terminal. The following Embodiment 3 describes from the perspective of the address allocation server.
实施例 3 本发明实施例提供一种 IP地址自动配置方法, 如图 3所示, 该方法包 括: Example 3 An embodiment of the present invention provides an automatic IP address configuration method. As shown in FIG. 3, the method includes:
步驟 301 ,若地址分配服务器确定存在未完成地址分配的客户端或者修 改了已完成地址分配的客户端的配置数据, 则生成该客户端所在网段的网 段探测数据包, 该网段探测数据包包括配置信息;  Step 301: If the address allocation server determines that there is a client that has not completed the address allocation or the configuration data of the client that has completed the address allocation, the network segment detection data packet of the network segment where the client is located is generated, and the network segment detection data packet is generated. Including configuration information;
该配置信息可以包括步骤 201中的信息, 此处不再赘述。  The configuration information may include the information in step 201, and details are not described herein again.
此外, 该配置信息除了包括步驟 201 所述的信息外, 还可包括以下信 息其中之一或者其组合: 地址分配服务器的 IP地址、 以及操作与维护服务 器的 IP地址。  In addition, the configuration information may include one or a combination of the following information in addition to the information described in step 201: an IP address of the address distribution server, and an IP address of the operation and maintenance server.
步驟 302 , 将生成的该网段探测数据包向管理终端发送;  Step 302: Send the generated network segment probe data packet to the management terminal.
在本实施例中, 当该地址分配服务器确定有些网段内还存在客户端未 完成 IP地址分配、 或者修改了该地址分配服务器中已完成 IP地址分配的 客户端的配置数据时, 以网段为单位生成该网段探测数据包, 并将生成的 该网段探测数据包发送至管理终端, 使得该管理终端接收到该网段探测数 据包后, 生成相应的探测报文, 并将该探测报文在目的网段内进行广播, 使得接收到该探测报文的客户端获得相应的 IP地址等配置数据。 即使该客 户端和地址分配服务器在不同的网段时, 也不需要如 DHCP方式那样设置中 继服务器来获得 IP地址, 因此, 可降低 IP地址分配的难度和成本。  In this embodiment, when the address allocation server determines that there are still some clients in the network segment that have not completed the IP address allocation, or modified the configuration data of the client that has completed the IP address allocation in the address allocation server, the network segment is The unit generates the network segment probe data packet, and sends the generated network segment probe data packet to the management terminal, so that the management terminal receives the network segment probe data packet, generates a corresponding probe packet, and generates the probe packet. The broadcast is performed on the destination network segment, so that the client that receives the probe packet obtains configuration data such as the corresponding IP address. Even if the client and the address distribution server are on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode, thereby reducing the difficulty and cost of IP address allocation.
实施例 4  Example 4
本发明实施例提供一种 IP地址自动配置方法, 以下结合附图, 以采用 自动地址配置协议 AACP的客户端、 地址分配服务器、 管理终端为例进行说 明。  The embodiment of the present invention provides a method for automatically configuring an IP address. The following uses the client, the address allocation server, and the management terminal of the automatic address configuration protocol AACP as an example for description.
其中, 如图 4所示, 地址分配服务器 401 , 当该地址分配服务器 401确 定有些网段内还存在客户端 403未完成 IP地址分配时, 以网段为单位生成 该网段探测数据包, 并将生成的该网段探测数据包发送至管理终端 402;  As shown in FIG. 4, the address allocation server 401, when the address allocation server 401 determines that the client 403 does not complete the IP address allocation in some network segments, generates the network segment probe data packet in units of network segments, and Sending the generated network segment probe data packet to the management terminal 402;
值得说明的是, 还有一种情况是: 当地址分配服务器 401修改了已完 成 IP地址分配的客户端 403的配置数据的场景下, 也可以采用本实施例提 供的技术方案, 即以网段为单位生成网段探测数据包, 并将生成的网段探 测数据包发送至管理终端 402。 由于后续步驟类似, 本发明实施例主要以客 户端 403未完成 IP地址分配的场景进行描述, 但不限于此。 It is worth noting that there is another case: when the address allocation server 401 has been modified In the scenario of the configuration data of the client 403 for the IP address allocation, the technical solution provided in this embodiment may be used, that is, the network segment detection data packet is generated in units of network segments, and the generated network segment detection data packet is sent to The terminal 402 is managed. The embodiment of the present invention is mainly described in the scenario where the client 403 does not complete the IP address allocation, but is not limited thereto.
管理终端 402 ,接收该地址分配服务器 401发送的网段探测数据包, 并 在该管理终端 402接收到该网段探测数据包后, 生成相应的探测报文, 并 将该探测报文在该管理终端 402管辖的网段内进行广播;  The management terminal 402 receives the network segment detection data packet sent by the address allocation server 401, and after receiving the network segment detection data packet, the management terminal 402 generates a corresponding detection packet, and the detection packet is in the management. Broadcasting in the network segment governed by the terminal 402;
可以理解的是, 管理终端 402 可以先确定是否存在与该网段所对应的 探测报文, 若确定不存在该网段对应的探测报文, 则生成相应的探测报文 进行广播。  It can be understood that the management terminal 402 can first determine whether there is a probe packet corresponding to the network segment. If it is determined that the probe packet corresponding to the network segment does not exist, the corresponding probe packet is generated and broadcasted.
客户端 403,接收所属网段管理终端 402广播的探测报文,根据接收到 的探测报文获得包括 IP地址在内的配置数据。  The client 403 receives the probe packet broadcasted by the network segment management terminal 402, and obtains configuration data including the IP address according to the received probe packet.
如图 5所示, 该方法包括:  As shown in Figure 5, the method includes:
在地址分配服务器 401 :  At address allocation server 401:
步骤 501 , 该地址分配服务器 401配置相关信息;  Step 501: The address allocation server 401 configures related information.
该地址分配服务器 401配置的相关信息可包括步驟 201中所述的信息, 此处不再赘述。  The information about the configuration of the address allocation server 401 may include the information described in step 201, and details are not described herein again.
在本实施例中, 该相关信息除了包括步驟 201 中的信息外, 还可包括 操作与维护 (0M )服务器的 IP地址等相关信息。  In this embodiment, the related information may include, in addition to the information in step 201, related information such as an operation and maintenance (0M) server IP address.
步驟 502 , 该地址分配服务器 401确定是否存在尚未完成 IP地址分配 的客户端, 若确定结果为是, 则执行步驟 503; 若确定结果为否, 则继续执 行步骤 502;  Step 502, the address allocation server 401 determines whether there is a client that has not completed the IP address allocation, if the determination result is yes, step 503 is performed; if the determination result is no, proceed to step 502;
在本实施例中, 地址分配服务器 401 可以采用下述方式确定是否存在 尚未完成 IP地址分配的客户端 403: 首先确定在所有网段中 (该地址分配 服务器管理下的所有网段)是否存在尚未完成所有客户端的 IP地址分配的 网段,若存在,则再确定该网段内是否存在尚未完成 IP地址分配的客户端; 值得说明的是, 还有一种情况是: 若在地址分配服务器 401修改了已 完成 IP地址分配的客户端 403的配置数据的场景下, 也可以采用本实施例 提供的技术方案, 执行步驟 503。 由于后续步驟类似, 本发明实施例主要以 客户端 403未完成 IP地址分配的场景进行描述, 但不限于此。 In this embodiment, the address allocation server 401 may determine whether there is a client 403 that has not completed IP address allocation in the following manner: First, it is determined whether all network segments (all network segments managed by the address allocation server) exist or not yet Complete the network segment where all clients' IP addresses are allocated. If yes, determine whether there are any clients in the network segment that have not completed IP address allocation. It is to be noted that, in the case that the address allocation server 401 modifies the configuration data of the client 403 that has completed the IP address allocation, the technical solution provided in this embodiment may be used, and step 503 is performed. The embodiment of the present invention is mainly described in the scenario where the client 403 does not complete the IP address allocation, but is not limited thereto.
步驟 503, 若在步驟 502中确定结果为存在未完成 IP地址分配的客户 端, 则该地址分配服务器 401 以网段为单位生成网段探测数据包, 该网段 探测数据包包括配置信息; 并将该网段探测数据包向管理终端 402发送, 使得管理终端 402接收到该网段探测数据包后, 根据该网段探测数据包中 的配置信息生成该网段的探测报文, 最终使该网段内的客户端 403根据该 探测报文包括的配置数据进行相应的数据配置。  Step 503: If it is determined in step 502 that the result is that the client has an uncompleted IP address allocation, the address allocation server 401 generates a network segment probe data packet in a network segment, and the network segment probe data packet includes configuration information; The network segment detection data packet is sent to the management terminal 402, so that after receiving the network segment detection data packet, the management terminal 402 generates a detection packet of the network segment according to the configuration information in the network segment detection data packet, and finally The client 403 in the network segment performs corresponding data configuration according to the configuration data included in the probe packet.
其中, 该网段探测数据包中的配置信息包括步驟 501 中的相关信息, 此处不再赘述。 此外, 还可包括地址分配良务器的 IP地址。  The configuration information in the network segment detection packet includes the related information in step 501, and details are not described herein. In addition, the IP address of the address assignment server can also be included.
并且该地址服务器 401 生成的网段探测数据包还可以携带有当前的时 间戳等信息。  The network segment probe data packet generated by the address server 401 can also carry information such as the current time stamp.
例如, 在本发明实施例中, 该网段探测数据包的结构如表 1所示: 表 1
Figure imgf000012_0001
本实施例中, 根据不同的场景, 采用不同的生成网段探测数据包的方 式:
For example, in the embodiment of the present invention, the structure of the network segment detection data packet is as shown in Table 1: Table 1
Figure imgf000012_0001
In this embodiment, different methods for generating data packets are generated according to different scenarios:
( 1 ) 当存在尚未完成 IP地址分配的客户端 403时, 即地址分配服务器 401中有新增加的 IP地址需求分配, 可釆用如下方式:  (1) When there is a client 403 that has not completed the IP address allocation, that is, the address allocation server 401 has a newly added IP address demand allocation, the following method can be used:
若新增 IP地址属于原有某个网段探测数据包的网段, 则将该新增 IP 地址加入该原有的网段探测数据包,并更新时间戳, 从而生成网段探测数据 包。  If the newly added IP address belongs to the network segment of the original network segment detection packet, the added IP address is added to the original network segment detection data packet, and the timestamp is updated to generate the network segment detection data packet.
若新增 IP地址不属于任何一个原有网段探测数据包的网段, 则生成新 的网段探测数据包,其中包括时间戳。 If the newly added IP address does not belong to any network segment of the original network segment detection packet, a new network is generated. Network segment probe packets, including timestamps.
( 2 ) 当修改已分配 IP地址的 AACP客户端的配置数据时, 即在服务器 中对已有的配置数据进行了修改, 可采用如下方式:  (2) When modifying the configuration data of the AACP client with the assigned IP address, that is, modifying the existing configuration data in the server, the following methods can be used:
将原网段探测数据包中需要修改的配置数据更新为修改后的配置数 据, 并更新时间戳, 从而生成网段探测数据包。  Update the configuration data to be modified in the original network segment probe packet to the modified configuration data, and update the timestamp to generate the network segment probe data packet.
比如, 若将原网段探测数据包中的电子串号 (ESNO : Electronic ser iesnumber ) 的 IP地址由 IP(H 改为 IP1 , 则可先将原网段探测数据包 中 IP0改为 IP1 , 并且更新时间戳, 从而生成网段探测数据包。  For example, if the IP address of the electronic serial number (ESNO: Electronic ser iesnumber) in the original network segment detection packet is changed from IP (H to IP1), IP0 in the original network segment detection packet may be changed to IP1 first, and The timestamp is updated to generate a network segment probe packet.
在本实施例中,对客户端 403的配置数据的修改并不限于修改 IP地址, 还可以修改其他的配置数据, 如网段掩码长度和网关 IP地址、 或者网关地 址等。  In this embodiment, the modification of the configuration data of the client 403 is not limited to modifying the IP address, and other configuration data, such as the network segment mask length and the gateway IP address, or the gateway address, may be modified.
步驟 504 ,该地址分配服务器 401将生成的该网段探测数据包向管理终 端 402传送;  Step 504, the address allocation server 401 transmits the generated network segment probe data packet to the management terminal 402.
其中, 该传送方式可采用手动或自动方式, 可根据实际需要选择相应 的传送方式。  The transmission mode can be manual or automatic, and the corresponding transmission mode can be selected according to actual needs.
在管理终端 402:  At the management terminal 402:
步骤 505,该管理终端 402接收到地址分配服务器 401传送的网段探测 数据包。  Step 505, the management terminal 402 receives the network segment probe data packet transmitted by the address distribution server 401.
步骤 506 , 确定是否存在该网段对应的探测报文, 该探测报文为探测 IP数据包; 若确定结果为存在, 则执行步驟 509; 若确定结果不存在, 则 执行步驟 507;  Step 506, determining whether there is a probe packet corresponding to the network segment, the probe packet is a probe IP data packet; if the determination result is the existence, step 509 is performed; if the determination result does not exist, step 507 is performed;
在本实施例中, 可先确定该网段探测数据包所属网段, 然后根据该网 段查找所有的探测报文, 若未找到该网段对应的探测报文, 则可确定不存 在该网段对应的探测报文, 否则, 确定存在该网段对应的探测报文。  In this embodiment, the network segment to which the network segment detection data packet belongs may be determined first, and then all the detection packets are searched according to the network segment. If the detection packet corresponding to the network segment is not found, the network may be determined to be absent. The probe packet corresponding to the segment, otherwise, the probe packet corresponding to the network segment is determined to exist.
步驟 507 , 若在步驟 506中确定不存在该网段对应的探测报文, 则管理 终端 402根据接收到的该网段探测数据包生成相应的探测报文; 在本实施例中, 该探测报文包括配置数据, 该配置数据包括的信息为 步骤 503中的信息, 此处不再赘述。 并且该探测报文还可以携带时间戳。 Step 507: If it is determined in step 506 that the probe packet corresponding to the network segment does not exist, the management terminal 402 generates a corresponding probe packet according to the received network segment probe data packet. In this embodiment, the detection packet includes the configuration data, and the information included in the configuration data is the information in step 503, and details are not described herein again. The probe packet can also carry a timestamp.
在本实施例中, 该探测报文可为 IP报文, 图 6是探测报文的结构示意 图。 如图 6所示, 以该网段广播 IP地址为目的地址, 即该 IP报文的 IP包 头部为该网段广播 IP地址; 该 IP报文的数据部分可包括该网段探测数据 包中的所有信息, 如步骤 503中的信息。  In this embodiment, the probe packet may be an IP packet, and FIG. 6 is a schematic diagram of the structure of the probe packet. As shown in Figure 6, the broadcast IP address of the network segment is the destination address, that is, the IP packet header of the IP packet is the broadcast IP address of the network segment; the data portion of the IP packet may include the network segment probe data packet. All the information, such as the information in step 503.
步驟 508 , 管理终端 402向网段地址对应的网段广播该探测报文, 使得 所属该网段的客户端 403接收到该探测报文时, 可根据该报文中的信息进 行数据配置;  Step 508: The management terminal 402 broadcasts the probe packet to the network segment corresponding to the network segment address, so that the client 403 of the network segment can perform data configuration according to the information in the packet when receiving the probe packet.
在本实施例中, 管理终端 402可周期性地向与网段地址对应的网段发 送探测报文, 在该网段广播该探测报文。  In this embodiment, the management terminal 402 can periodically send a probe packet to the network segment corresponding to the network segment address, and broadcast the probe packet on the network segment.
步驟 509 , 若在步驟 506中, 确定存在该网段对应的探测报文, 则管理 终端 402 进一步判断是否需要更新该探测报文; 若判断结果为是, 则执行 步驟 510; 若判断结果为否, 则执行步驟 512;  Step 509: If it is determined in step 506 that there is a probe packet corresponding to the network segment, the management terminal 402 further determines whether the probe packet needs to be updated. If the determination result is yes, step 510 is performed; if the determination result is no , step 512 is performed;
在本实施例中, 可根据该探测报文的时间戳和已存在的探测报文对应 的时间戳来确定是否需要更新该探测报文。 若该探测报文的时间戳晚于已 存在的探测报文对应的时间戳, 则确定更新已存在的探测报文。 若该探测 报文的时间戳早于或等于已存在的该探测报文对应的时间戳, 则确定不需 要更新已存在的探测报文。  In this embodiment, whether the probe packet needs to be updated is determined according to the timestamp of the probe packet and the timestamp corresponding to the existing probe packet. If the timestamp of the probe packet is later than the timestamp corresponding to the existing probe packet, it is determined to update the existing probe packet. If the timestamp of the probe packet is earlier than or equal to the timestamp corresponding to the probe packet, it is determined that the existing probe packet does not need to be updated.
步驟 510, 若在步驟 509中确定需要更新已存在的探测报文, 则根据接 收到的该网段探测数据包生成新的探测报文, 且删除已存在的探测报文。  Step 510: If it is determined in step 509 that the existing probe packet needs to be updated, a new probe packet is generated according to the received network segment probe data packet, and the existing probe packet is deleted.
步骤 511 , 管理终端 402向该网段地址对应的网段广播该探测报文; 在本实施例中, 管理终端 402可周期性地向该网段地址对应的网段发 送探测报文, 使得所属该网段的客户端 403接收到该探测报文时, 可根据 该报文中的信息进行数据配置。  Step 511: The management terminal 402 broadcasts the probe packet to the network segment corresponding to the network segment address. In this embodiment, the management terminal 402 periodically sends a probe packet to the network segment corresponding to the network segment address, so that the detection packet is When receiving the probe packet, the client 403 of the network segment can perform data configuration according to the information in the packet.
步骤 512 , 若在步骤 509中确定不需要更新已存在的探测报文, 则丢弃 当前接收到的该网段探测数据包, 保留已存在的探测报文。 Step 512: If it is determined in step 509 that the existing probe packet does not need to be updated, the packet is discarded. The currently detected network segment probe packet retains the existing probe packet.
由上述可知, 在步骤 511或步骤 508中, 管理终端 402向网段地址对 应的网段广播探测报文。 这样, 该网段内的所有客户端 403 均可接收到该 探测 文, 以下以该网段内的一个客户端 403为例进行说明。  It can be seen from the above that in step 511 or step 508, the management terminal 402 broadcasts a probe message to the network segment corresponding to the network segment address. In this way, all the clients 403 in the network segment can receive the probe. The following uses a client 403 in the network segment as an example.
在客户端 403:  On the client side 403:
步骤 513, 客户端 403接收管理终端 402广播的所属网段的探测报文; 该探测报文包含的配置数据为步驟 501中的信息, 此处不再赘述。 步驟 514 , 客户端 403确定是否已被分配 IP地址, 若确定结果为是, 则执行步驟 517 , 若确定结果为否, 则执行步驟 515。  In step 513, the client 403 receives the probe packet of the network segment to which the management terminal 402 broadcasts. The configuration data included in the probe packet is the information in step 501, and details are not described herein. In step 514, the client 403 determines whether an IP address has been assigned. If the determination result is yes, step 517 is performed. If the determination result is no, step 515 is performed.
步驟 515 , 若在步驟 514中确定结果为否, 则客户端 403对该探测报文 进行解析, 以获取该配置数据。  Step 515: If the result of the determination in step 514 is no, the client 403 parses the probe packet to obtain the configuration data.
步驟 516 ,根据该客户端标识从该配置数据中获取该客户端对应的包括 IP地址在内的配置数据, 以使客户端 403利用该配置数据进行数据配置。  Step 516: Obtain configuration data including the IP address corresponding to the client from the configuration data according to the client identifier, so that the client 403 uses the configuration data to perform data configuration.
步驟 517 , 若在步驟 514中判断结果为是, 即在接收该探测报文之前接 收到探测报文, 则进一步判断该 IP地址是否需要更新, 若确定结果为需要 更新, 则执行步驟 518 , 若确定结果为不需要更新, 则执行步驟 520;  In step 517, if the result of the determination in step 514 is YES, that is, the probe packet is received before receiving the probe packet, it is further determined whether the IP address needs to be updated. If the result of the determination is that the update is required, step 518 is performed. If the result is determined to be unnecessary, step 520 is performed;
在本实施例中, 可根据该探测报文的时间戳和之前接收到的探测报文 对应的时间戳确定是否需要更新该 IP地址, 若该当前的时间戳晚于之前接 收到的探测报文对应的时间戳, 则可确定需要更新该 IP地址。 若该探测报 文的时间戳早于或等于之前接收到的探测报文对应的时间戳, 则可确定不 需要更新该 IP地址。  In this embodiment, it is determined whether the IP address needs to be updated according to the timestamp of the probe packet and the timestamp corresponding to the previously received probe packet, if the current timestamp is later than the previously received probe packet. Corresponding timestamp, it can be determined that the IP address needs to be updated. If the timestamp of the probe message is earlier than or equal to the timestamp corresponding to the previously received probe message, it may be determined that the IP address does not need to be updated.
步骤 518 , 若在步骤 517中判断结果为需要更新该 IP地址, 则客户端 403对该探测报文进行解析, 以获取该配置数据。  Step 518: If the result of the determination in step 517 is that the IP address needs to be updated, the client 403 parses the probe packet to obtain the configuration data.
步骤 519 , 根据客户端标识从该配置数据中获取该客户端 403对应的 IP地址、 以及获取该配置数据中的其它相关信息。  Step 519: Obtain an IP address corresponding to the client 403 from the configuration data according to the client identifier, and obtain other related information in the configuration data.
步骤 520, 若在步骤 517中判断结果为不需要更新该 IP地址, 则客户 端 403丢弃该当前探测才艮文。 Step 520, if the result of the determination in step 517 is that the IP address does not need to be updated, the client End 403 discards the current probe.
此外, 当客户端 403获取 IP地址后, 可向地址分配服务器 401发送确 认地址已经分配的地址确认信息。 这时, 地址分配服务器 401 可根据客户 端 403发来的地址确认信息调整其 IP地址分配表。 如果该地址分配服务器 401确定某个网段的 IP地址全部分配完毕, 该地址分配服务器 401向管理 终端 402发送停止发送探测报文的指令。 管理终端 402接收到该指令后, 停止发送该网段的探测报文。  Further, after the client 403 obtains the IP address, the address assignment server 401 can transmit an address confirmation message that the acknowledgement address has been allocated. At this time, the address distribution server 401 can adjust its IP address allocation table based on the address confirmation information sent from the client 403. If the address assignment server 401 determines that the IP addresses of a certain network segment are all allocated, the address assignment server 401 sends an instruction to the management terminal 402 to stop transmitting the probe message. After receiving the instruction, the management terminal 402 stops transmitting the probe packet of the network segment.
由上述可知,可通过分配 IP地址的地址分配月良务器生成包括客户端 IP 地址的网段探测数据包 , 管理终端可根据该网段探测数据包生成相应的探 测报文, 使得该客户端接收到该探测报文后, 自动获取该客户端对应的 IP 地址, 即使该客户端和分配该 IP地址的地址分配服务器在不同的网段时也 不需要如 DHCP方式那样设置中继服务器来获得 IP地址, 降低了 IP地址分 配的难度和成本。 此外, 地址分配服务器生成的网段探测数据包除了包括 IP地址外, 还可包括其它配置数据, 这样, 管理终端生成的探测 文中也 可包括其它配置数据, 使得该客户端接收到该探测报文后, 自动获取该客 户端对应的 IP地址和其它配置数据以进行数据配置。  According to the above, the network segment detection packet including the client IP address can be generated by the address allocation server of the IP address, and the management terminal can generate a corresponding detection packet according to the network segment detection data packet, so that the client After receiving the probe packet, the IP address corresponding to the client is automatically obtained. Even if the client and the address allocation server that allocates the IP address are on different network segments, the relay server is not required to be obtained as in the DHCP mode. IP address, which reduces the difficulty and cost of IP address allocation. In addition, the network segment detection data packet generated by the address allocation server may include other configuration data in addition to the IP address, so that the probe text generated by the management terminal may also include other configuration data, so that the client receives the probe packet. After that, the IP address and other configuration data corresponding to the client are automatically obtained for data configuration.
实施例 5  Example 5
本发明实施例提供一种 IP地址自动配置方法, 在实施例 4的基础上, 考虑到数据传输的安全性, 对该客户端 403、 地址分配服务器 401、 管理终 端 402之间传送的数据进行加密, 即发送端对数据进行加密, 接收端对数 据进行解密, 该加密方式可釆用现有的任何一种方式, 如釆用密码对待加 密数据进行异同加密。  The embodiment of the present invention provides an automatic IP address allocation method. On the basis of Embodiment 4, data transmitted between the client 403, the address distribution server 401, and the management terminal 402 is encrypted in consideration of security of data transmission. That is, the sender encrypts the data, and the receiver decrypts the data. The encryption method can use any existing method, such as encrypting the encrypted data with different passwords.
如图 7所示, 在步驟 704中, 地址分配服务器 401对生成的网段探测 数据包进行加密 , 然后将加密后的网段探测数据包发送至管理终端 402。  As shown in FIG. 7, in step 704, the address assignment server 401 encrypts the generated network segment probe data packet, and then transmits the encrypted network segment probe data packet to the management terminal 402.
在步驟 705 中, 管理终端 402接收到该网段探测数据包后, 对该网段 探测数据包进行解密。 在步驟 707、 710生成探测报文后, 在步驟 708、 711 中对生成的该探 测报文进行加密, 向与网段地址对应的网段广播加密的探测报文。 In step 705, after receiving the network segment probe data packet, the management terminal 402 decrypts the network segment probe data packet. After the probe packet is generated in steps 707 and 710, the generated probe packet is encrypted in steps 708 and 711, and the encrypted probe packet is broadcasted to the network segment corresponding to the network segment address.
在步驟 713中, 客户端 403接收到广播的探测报文后, 首先对该探测 报文进行解密。  In step 713, after receiving the broadcast probe message, the client 403 first decrypts the probe message.
图 7所示的其它步驟与实施例 5类似, 此处不再赘述。  The other steps shown in FIG. 7 are similar to those in Embodiment 5, and are not described herein again.
此外, 当客户端 403获取 IP地址后, 可对确认地址已经分配的地址确 认信息进行加密, 然后向地址分配服务器 401 发送加密的地址确认信息。 这时, 地址分配良务器 401 可首先对该加密的地址确认信息进行解密, 然 后根据客户端 403发来的地址确认信息调整其 IP地址分配表。  Further, after the client 403 obtains the IP address, the address confirmation information to which the confirmation address has been assigned can be encrypted, and then the encrypted address confirmation information is transmitted to the address distribution server 401. At this time, the address assigning server 401 may first decrypt the encrypted address confirmation information, and then adjust its IP address allocation table according to the address confirmation information sent from the client 403.
另外, 当地址分配服务器 401确定某个网段的 IP地址全部分配完毕或 者由于其它原因, 地址分配服务器 401可对向管理终端 402发送停止发送 探测报文的指令进行加密, 然后发送该加密的指令至管理终端 402。 管理终 端 402接收到该指令后, 先对该指令进行解密, 然后停止发送该网段的探 测才艮文。  In addition, when the address assignment server 401 determines that all the IP addresses of a certain network segment are allotted or for other reasons, the address assignment server 401 can encrypt the instruction to stop sending the probe message to the management terminal 402, and then send the encrypted command. To the management terminal 402. After receiving the instruction, the management terminal 402 decrypts the instruction first, and then stops sending the detection of the network segment.
由上述可知, 通过对客户端 403、 地址分配服务器 401、 管理终端 402 之间传送的数据进行加密, 可提高网络传输的安全性。  As apparent from the above, by encrypting data transmitted between the client 403, the address distribution server 401, and the management terminal 402, the security of network transmission can be improved.
实施例 6  Example 6
本发明实施例提供一种 IP地址自动配置方法, 在实施例 4和实施例 5 的基础上, 考虑生成的数据包和报文较大时对网络带宽的影响,地址分配服 务器 401可对同一网段下未分配 IP地址的客户端 403进行分组, 该组可称 为 AACPCl ient组。 其中, 分组的目的是:  The embodiment of the present invention provides an automatic IP address allocation method. On the basis of Embodiment 4 and Embodiment 5, considering the impact of the generated data packet and the large packet on the network bandwidth, the address distribution server 401 can access the same network. Clients 403 that are not assigned an IP address under the segment are grouped, and the group may be referred to as an AACCCl ient group. Among them, the purpose of grouping is:
1 )不会产生大的 IP包。 如果不分组, 大的网段产生的探测 IP报文长 度可能引起 IP包分片, 这样, 对设备会有影响和要求;  1) No large IP packets will be generated. If the packet is not grouped, the length of the probe IP packet generated by the large network segment may cause fragmentation of the IP packet, which may affect and require the device.
2 )减少对网络带宽的影响。 因为只要一个该 AACP Cl ient组的 IP地 址分配完毕后, 就停发针对该 AACP Cl ient组的探测 IP包, 不需要长时间 等待所有网段的 IP地址分配完成后, 才停发探测 IP包。 在本实施例中, 在实施例 5的基础上对本实施例进行说明。 如图 8所示,在步骤 803中,对同一网段下未分配 IP地址的客户端 403 进行分组, 该组可称为 AACP Cl ient 组, 每个 _客户端组对应一个 _客户端组 然后, 地址分配服务器 401以 AACP Cl ient组为单位生成相应的探测 数据包, 该探测数据包包括的信息步骤 503 中包括的信息, 此外, 该探测 数据包还可携带时间戳和 AACP客户端组号, 如表 2所示。 表 2
Figure imgf000018_0001
在本实施例中, 根据不同的场景, 采用不同的生成网段探测数据包的 方式:
2) Reduce the impact on network bandwidth. Because only the IP address of the AACP Cl ient group is allocated, the probe IP packet for the AACC Cl ient group is stopped, and the probe IP packet is not sent after waiting for the IP address allocation of all the network segments to be completed for a long time. . In the present embodiment, the present embodiment will be described on the basis of the fifth embodiment. As shown in FIG. 8, in step 803, clients 403 that are not assigned an IP address under the same network segment are grouped, and the group may be referred to as an AACP Client group, and each _ client group corresponds to a _client group and then The address allocation server 401 generates a corresponding probe data packet in units of AACP Cl ient groups, the probe data packet includes information included in the information step 503, and the probe data packet may further carry a time stamp and an AACP client group number. , As shown in table 2. Table 2
Figure imgf000018_0001
In this embodiment, different methods for generating data packets are generated according to different scenarios:
( 1 ) 当存在尚未完成 IP地址分配的客户端 403时, 即地址分配服务器 401中有新增加的 IP地址需求分配, 可采用如下方式:  (1) When there is a client 403 that has not completed the IP address allocation, that is, the address allocation server 401 has a newly added IP address demand allocation, the following manner may be adopted:
若新增 IP地址属于原有某个网段探测数据包的网段 AACP Cl ient组, 则将该新增 IP地址加入该原有的网段探测数据包,并更新时间戳, 从而生 成网段探测数据包;  If the newly added IP address belongs to the network segment AACP Cl ient group of the original network segment detection packet, add the added IP address to the original network segment detection data packet, and update the timestamp to generate the network segment. Probe packet
若新增 IP 地址不属于任何一个原有网段探测数据包的网段 AACP Cl ient组, 则生成新的网段探测数据包,其中包括 AACP Cl ient组号和时间  If the new IP address does not belong to the AACP Cl ient group of the original network segment probe packet, a new network segment probe packet is generated, including the AACP Cl ient group number and time.
( 2 ) 当修改已分配 IP地址的客户端 403的配置数据时, 即对地址分配 服务器 401中原有的客户端 403的配置数据进行修改, 可采用如下方式: (2) When modifying the configuration data of the client 403 to which the IP address has been assigned, that is, modifying the configuration data of the original client 403 in the address allocation server 401, the following manner may be adopted:
1 )若爹改客户端标识对应的 IP地址, 分以下几种情况:  1) If you tamper with the IP address corresponding to the client ID, you can divide it into the following cases:
第一种: 若原 I P地址和爹改后的 I P地址同属于一个网段 AACP Cl ient 组, 则可将原网段探测数据包中的 IP地址更新为修改后的 IP地址, 并更 新时间戳, 从而生成网段探测数据包。 The first type: If the original IP address and the falsified IP address belong to the AAPC Client group of the network segment, the IP address in the original network segment detection packet can be updated to the modified IP address, and A new timestamp is generated to generate a network segment probe packet.
第二种:若原 I P地址和爹改后的 I P地址不属于同一个网段 AACP Cl ient 组, 则首先在原 IP地址所属的网段 AACP Cl ient组的网段探测数据包中删 除原 IP地址, 或者除了删除原 IP地址外还删除原 IP地址对应的客户端标 识; 然后, 确定修改后的 IP地址对应的 AACP Cl ient组的网段探测数据包 是否存在, 若修改后 IP地址对应的 AACP Cl ient組的网段探测数据包已存 在,则可以在该网段探测数据包中增加修改后的 IP地址对应的信息(如 AACP 客户端标识)和时间戳, 从而生成新的网段探测数据包; 若修改后的 IP地 址对应的 AACP Cl ient组的网段探测数据包不存在, 则可以生成新的网段 数据包, 其中包含时间戳、 修改后的 IP地址和 AACP客户端标识。  The second type: If the original IP address and the falsified IP address do not belong to the same network segment AACP Client group, the original IP address is deleted from the network segment probe data packet of the network segment AACP Cl ient group to which the original IP address belongs. Or delete the client ID corresponding to the original IP address in addition to deleting the original IP address. Then, determine whether the network segment detection packet of the AACP Cl ient group corresponding to the modified IP address exists, and if the modified IP address corresponds to the AACP Cl If the network segment detection packet of the ient group already exists, you can add the information corresponding to the modified IP address (such as the AACP client identifier) and the timestamp to the network segment probe packet to generate a new network segment probe packet. If the network segment detection packet of the AACP Client group corresponding to the modified IP address does not exist, a new network segment data packet may be generated, including the timestamp, the modified IP address, and the AACP client identifier.
例如, ^ ESNO的 IP地址由 IP0改为 IP1 , 可采用如下方式:  For example, ^ ESNO's IP address is changed from IP0 to IP1, which can be used as follows:
若 IP0与 IP1同属于一个网段 AACP Cl ient组, 此时, 可以将原网段 探测数据包的 IP0改为 IP1 , 并更新时间戳, 从而生成网段探测数据包。  If IP0 and IP1 belong to the same AACP Client group, you can change the IP0 of the original network segment detection packet to IP1 and update the timestamp to generate the network segment detection packet.
若 IP0与 IP1属于不同网段 AACP Cl ient组, 则可以在 IP0所属的网 段 AACP Cl ient组的网段探测数据包中删除 IP0对应的信息, 该 IP0对应 的信息可以包括 IP地址与 AACP客户端标识等, 但不限于此。 此时, 如果 IP1对应的 AACP Cl ient组的网段探测数据包已存在, 则可以在该网段数据 包中增加 IP1 对应的信息, 从而生成新的网段探测数据包, 其中包括时间 戳; 如果 IP1对应的 AACP Cl ient组的网段探测数据包不存在, 则可以生 成新的网段数据包, 包含时间戳和 IP1对应的信息。  If IP0 and IP1 belong to different AAPC ient groups, you can delete the information corresponding to IP0 in the network segment detection packet of the network segment AACP Cl ient to which IP0 belongs. The information corresponding to IP0 can include IP address and AACP client. End identification, etc., but is not limited to this. At this time, if the network segment detection data packet of the AACP Client group corresponding to the IP1 already exists, the information corresponding to the IP1 may be added to the network segment data packet, thereby generating a new network segment detection data packet, including the timestamp; If the network segment detection packet of the AACP Client group corresponding to IP1 does not exist, a new network segment data packet may be generated, including the timestamp and the information corresponding to IP1.
在本实施例中 ,对客户端 403的配置数据的修改并不限于修改 IP地址, 还可以修改其他的配置数据, 如网段掩码长度和网关 IP地址、 或者网关地 址等。  In this embodiment, the modification of the configuration data of the client 403 is not limited to modifying the IP address, and other configuration data, such as the network segment mask length and the gateway IP address, or the gateway address, may be modified.
2 )若修改已分配 IP地址的客户端 403的其它配置数据(除了客户端 标识和对应的 IP地址之外的其他配置数据)时: 将原网段探测数据包中需 要修改的配置数据更新为修改后的配置数据, 并更新时间戳, 从而生成网 段探测数据包。 2) If other configuration data of the client 403 with the assigned IP address (other than the client identifier and the corresponding IP address) is modified: The configuration data to be modified in the original network segment probe packet is updated to Modified configuration data, and update the timestamp to generate a network Segment probe packet.
在步骤 806 中, 管理终端 402接收到该网段探测数据包并对该数据包 进行解密后, 确定是否存在相应网段的探测报文, 可采用如下方式确定: 管理终端 402可根据该网段地址确定所在的网段、 或者根据该网段掩 码长度和网关 IP地址确定所在的网段; 然后根据该网段和客户端组号检查 所有的探测 文, 若未找到该网段和組号对应的4艮文, 可确定不存在该探 测才艮文; 否则, 可确定存在该探测 文。  In step 806, after receiving the network segment probe data packet and decrypting the data packet, the management terminal 402 determines whether there is a probe packet of the corresponding network segment, and may determine that the management terminal 402 can be based on the network segment. Determine the network segment where the address is located, or determine the network segment based on the network segment mask length and gateway IP address. Then check all probes according to the network segment and client group number. If the network segment and group number are not found. Corresponding 4艮, it can be determined that there is no such detection; otherwise, it can be determined that the probe is present.
在步驟 807、 810中,生成的探测报文除了包括步驟 503中的信息之夕卜, 还可包括该客户端组号。 该探测报文可为 IP报文, 图 9是探测报文的结构 示意图。 如图 9所示, 以该网段广播 IP地址为目的地址, 即该 IP报文的 IP包头部为该网段广播 IP地址; 该 IP 文的数据部分可包括该网段探测 数据包中的所有信息, 如步驟 503中的信息和客户端组号。  In steps 807, 810, the generated probe message may include the client group number in addition to the information in step 503. The probe packet can be an IP packet, and Figure 9 is a schematic diagram of the structure of the probe packet. As shown in Figure 9, the IP address of the network segment is the destination address, that is, the IP packet header of the IP packet is the IP address of the network segment. The data portion of the IP packet may include the network packet detection packet. All information, such as the information in step 503 and the client group number.
其它步骤与实施例 5类似, 此处不再赘述。  Other steps are similar to those of Embodiment 5, and are not described herein again.
由上述可知,地址分配月良务器通过对未分配 IP地址的客户端进行分组, 并以组为单位生成相应的网段探测数据包, 使得管理终端获得该数据包后, 才艮据该网段和客户端组号检查是否存在与该网段和客户端组号对应的探测 报文, 若不存在、 或者存在但需要更新时, 根据该数据包生成相应的探测 报文, 并周期性向特定网段广播, 使得所属网段客户端获得该探测报文, 从而获取包括 IP地址在内的配置数据。 通过对该客户端进行分组, 可减少 对设备的影响, 且减少占用的网络带宽资源。  As can be seen from the above, the address allocation server classifies the client that has not assigned the IP address, and generates the corresponding network segment probe data packet in units of groups, so that the management terminal obtains the data packet, and then according to the network. The segment and the client group number check whether there is a probe packet corresponding to the network segment and the client group number. If it does not exist or exists but needs to be updated, a corresponding probe packet is generated according to the data packet, and periodically The network segment broadcasts the network segment client to obtain the probe packet, so as to obtain configuration data including the IP address. By grouping the clients, the impact on the device can be reduced and the occupied network bandwidth resources can be reduced.
实施例 7  Example 7
本发明实施例提供一种 IP地址自动配置装置, 如图 10所示, 该装置 包括 文接收单元 1001、 文处理单元 1002和数据获取单元 1003; 其中, 该报文接收单元 1001用于接收客户端所属网段的探测报文, 该探测报文包 括配置数据, 该配置数据至少包括该网段内的客户端标识和该客户端标识 对应的 IP地址; 该^艮文处理单元 1002用于在确定客户端未分配 IP地址、 或者确定已分配 IP地址且确定该已分配 IP地址需要更新时, 对该探测才艮 文进行解析, 以获取该配置数据; 该数据获取单元 1003用于根据该客户端 标识从该配置数据中获取该客户端对应的 IP地址。 An embodiment of the present invention provides an apparatus for automatically configuring an IP address. As shown in FIG. 10, the apparatus includes a text receiving unit 1001, a text processing unit 1002, and a data acquiring unit 1003. The message receiving unit 1001 is configured to receive a client. The detection packet of the network segment, the detection packet includes configuration data, and the configuration data includes at least a client identifier in the network segment and an IP address corresponding to the client identifier; the processing unit 1002 is configured to determine The client does not assign an IP address, Or determining that the IP address has been assigned and determining that the allocated IP address needs to be updated, the probe is parsed to obtain the configuration data; the data obtaining unit 1003 is configured to obtain the configuration data according to the client identifier. The IP address corresponding to the client.
在本实施例中, 该装置可为 AACP客户端, 可自动获取包括 IP地址在 内的配置数据。  In this embodiment, the device may be an AACP client, and the configuration data including the IP address may be automatically obtained.
该装置的工作过程如实施例 1所述, 此处不再赘述。  The working process of the device is as described in Embodiment 1, and details are not described herein again.
由上述实施例可知 , 该客户端可根据接收到的所属网段的探测报文自 动获得该客户端的 IP地址, 即使该客户端和分配该 IP地址的服务器在不 同的网段时也不需要如 DHCP方式那样设置中继服务器来获得 IP地址, 因 此, 可降氏 IP地址分配的难度和成本。  According to the foregoing embodiment, the client can automatically obtain the IP address of the client according to the received probe packet of the network segment, even if the client and the server that allocates the IP address are on different network segments, The DHCP method sets the relay server to obtain the IP address, so the difficulty and cost of the IP address allocation can be reduced.
实施例 8  Example 8
本发明实施例提供一种 IP地址自动配置装置, 如图 11所示, 该装置 包括 文接收单元 1101、 文处理单元 1102和数据获取单元 1103, 其作 用与实施例 7类似, 此处不再赘述。  An embodiment of the present invention provides an apparatus for automatically configuring an IP address. As shown in FIG. 11, the apparatus includes a text receiving unit 1101, a text processing unit 1102, and a data obtaining unit 1103. The function is similar to that of Embodiment 7, and details are not described herein. .
在本实施例中, 该配置数据除了包括网段内的客户端标识和客户端标 识对应的 IP地址之外, 该配置数据还可包括其他信息: 比如, 网段地址; 或者, 网段掩码长度; 再或者, 网段掩码长度和网关地址、 或者包括网段 地址、 网段掩码长度和网关地址。  In this embodiment, the configuration data may include other information in addition to the client identifier and the client identifier corresponding to the client identifier in the network segment: for example, a network segment address; or, a network segment mask. Length; or, network segment mask length and gateway address, or network segment address, network segment mask length, and gateway address.
相应的, 该客户端除了获取该客户端对应的 IP地址外, 也可获取包括 网段地址、 网段掩码长度、 网关地址在内的信息, 并将获取的信息作为该 客户端的 IP传输配置数据。  Correspondingly, in addition to obtaining the IP address corresponding to the client, the client may also obtain information including a network segment address, a network segment mask length, and a gateway address, and use the obtained information as the IP transmission configuration of the client. data.
可以理解的是 , 配置数据包括的信息还可包括其它需要的可选信息 , 例如: 分配该 IP地址的地址分配月良务器的 IP地址、 操作与维护 (0M )月良 务器的 IP地址、 当前的时间戳等信息。  It can be understood that the information included in the configuration data may also include other optional information required, for example: an address assigned to the IP address, an IP address of the server, and an operation and maintenance (0M) IP address of the server. , current timestamp and other information.
因此, 该数据获取单元 1103除了获取该客户端对应的 IP地址, 进行 IP地址自动配置外, 还可获取 IP地址之外的其它配置数据, 以根据该配置 数据进行相应的数据配置。 Therefore, the data obtaining unit 1103 can obtain other configuration data other than the IP address, in addition to obtaining the IP address corresponding to the client, and performing automatic configuration of the IP address, according to the configuration. The data is configured accordingly.
如图 11所示, 若接收到的探测报文加密, 则该装置还可包括第一解密 单元 1104 ,在该报文接收单元 1101接收客户端所属网段的当前探测报文之 后, 若该当前探测报文加密, 则该第一解密单元 1104用于对该当前探测报 文进行解密。 则该报文处理单元 1102对解密后的该报文进行处理。  As shown in FIG. 11, if the received probe packet is encrypted, the device may further include a first decryption unit 1104, after the packet receiving unit 1101 receives the current probe packet of the network segment to which the client belongs, if the current The probe packet is encrypted, and the first decryption unit 1104 is configured to decrypt the current probe packet. Then, the message processing unit 1102 processes the decrypted message.
此外, 当该装置获取 IP地址后, 可发送地址确认信息至 AACP服务器。 如图 11所示, 该装置还包括信息发送单元 1105 , 与该数据获取单元 1103 连接, 用于向服务器发送确认地址已经分配的地址确认信息。  In addition, when the device obtains an IP address, it can send an address confirmation message to the AACP server. As shown in FIG. 11, the apparatus further includes an information sending unit 1105, and is connected to the data acquiring unit 1103, and is configured to send, to the server, address confirmation information that the confirmation address has been allocated.
为了保证传输安全性 , 在本实施例中 , 在发送该地址确认信息之前 , 对该地址确认信息进行加密, 然后再通过该信息发送单元 1105 传送至该 AACP服务器。 这样, 如图 11所示, 该装置还包括第一加密单元 1106 , 用 于对该地址确认信息进行加密; 则该信息发送单元 1105用于发送加密后的 该地址确认信息。  In order to ensure transmission security, in the present embodiment, before the address confirmation information is transmitted, the address confirmation information is encrypted, and then transmitted to the AACP server through the information transmission unit 1105. Thus, as shown in FIG. 11, the apparatus further includes a first encryption unit 1106 for encrypting the address confirmation information; and the information transmission unit 1105 is configured to send the encrypted address confirmation information.
在本实施例中, 如图 12所示, 该^艮文处理单元 1102可包括地址确定 单元 1201、 文解析单元 1202; 其中, 该地址确定单元 1201用于确定客 户端是否已分配 IP地址; 文解析单元 1202用于在该地址确定单元 1201 确定客户端未分配 IP地址时, 对该当前探测报文进行解析, 从而获取配置 数据。  In this embodiment, as shown in FIG. 12, the processing unit 1102 may include an address determining unit 1201 and a text parsing unit 1202. The address determining unit 1201 is configured to determine whether the client has assigned an IP address. The parsing unit 1202 is configured to parse the current probe packet when the address determining unit 1201 determines that the client does not allocate an IP address, thereby acquiring configuration data.
如图 12所示, 该>¾文处理单元 1102还包括更新确定单元 1203, 用于 在该地址确定单元 1201确定客户端已分配 IP地址时, 根据该当前的时间 戳和已分配 IP地址对应的时间戳确定是否需要更新该已分配 IP地址, 如 实施例 4至 6所述。 若该更新确定单元 1203确定需要更新该已分配 IP地 址, 则通知该报文解析单元 1202用于对该当前探测报文进行解析。  As shown in FIG. 12, the processing unit 1102 further includes an update determining unit 1203, configured to: when the address determining unit 1201 determines that the client has assigned an IP address, according to the current timestamp and the assigned IP address. The timestamp determines if the assigned IP address needs to be updated, as described in Embodiments 4 through 6. If the update determining unit 1203 determines that the allocated IP address needs to be updated, the message parsing unit 1202 is notified to parse the current probe message.
如图 11所示, 该装置还包括 文丢弃单元 1107 , 用于在该更新确定单 元 1203确定该已分配 IP地址不需要更新时, 丢弃该当前探测报文。  As shown in FIG. 11, the apparatus further includes a discarding unit 1107, configured to discard the current probe packet when the update determining unit 1203 determines that the allocated IP address does not need to be updated.
在本实施例中, 该装置可为 AACP客户端。 其工作过程如实施例 4至 6 所述, 此处不再赘述。 In this embodiment, the device can be an AACP client. The working process is as in the embodiments 4 to 6 The description is not repeated here.
由上述实施例可知, 该客户端可对接收到的探测报文进行解密, 并根 据接收到的所属网段的探测报文自动获得该客户端的 IP地址, 即使该客户 端和分配该 IP地址的服务器在不同的网段时也不需要如 DHCP方式那样设 置中继服务器来获得 IP地址, 因此, 可降低 IP地址分配的难度和成本。 此外, 由于该探测报文中还包括其它配置数据, 因此, 该客户端在接收到 所属网段的探测报文后还可根据该探测报文中的其它配置数据进行数据配 置。  According to the foregoing embodiment, the client can decrypt the received probe packet, and automatically obtain the IP address of the client according to the received probe packet of the network segment, even if the client and the IP address are allocated. When the server is on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode. Therefore, the difficulty and cost of IP address allocation can be reduced. In addition, since the probe packet includes other configuration data, the client can perform data configuration according to other configuration data in the probe packet after receiving the probe packet of the network segment.
实施例 9  Example 9
本发明实施例提供一种 IP地址自动配置装置, 如图 13所示, 该装置 包括数据包接收单元 1301、 报文确定单元 1302、 数据包处理单元 1303和 才艮文发送单元 1304; 其中,  An embodiment of the present invention provides an apparatus for automatically configuring an IP address. As shown in FIG. 13, the apparatus includes a data packet receiving unit 1301, a message determining unit 1302, a packet processing unit 1303, and a packet sending unit 1304.
该数据包接收单元 1301用于接收服务器传送的网段探测数据包, 该网 段探测数据包包括网段的配置信息, 该配置信息包括步驟 503 中的信息, 此外, 该网段探测数据包还可携带客户端所在分组的组号, 此处不再赘述。  The data packet receiving unit 1301 is configured to receive a network segment detection data packet that is sent by the server, where the network segment detection data packet includes configuration information of the network segment, where the configuration information includes the information in step 503, and the network segment detection data packet is further The group number of the group where the client is located can be carried, and will not be described here.
报文确定单元 1302 , 用于确定是否存在该网段对应的探测报文; 该数据包处理单元 1303,用于在 文确定单元 1302确定不存在该网段 对应的探测报文时, 根据该网段探测数据包生成该探测报文, 该探测报文 包括配置数据, 该配置数据的信息包括该网段内的客户端标识和该客户端 标识对应的 IP地址、 或者该配置数据包括该数据包接收单元 1301接收的 该配置信息;  The message determining unit 1302 is configured to determine whether there is a probe packet corresponding to the network segment, and the data packet processing unit 1303 is configured to: when the text determining unit 1302 determines that the probe packet corresponding to the network segment does not exist, according to the network The segment detection packet generates the probe packet, where the probe packet includes configuration data, where the information of the configuration data includes a client identifier in the network segment and an IP address corresponding to the client identifier, or the configuration data includes the data packet. The configuration information received by the receiving unit 1301;
报文发送单元 1304 , 用于将生成的该探测报文向该网段发送, 以使该 网段内的客户端接收到该探测报文后根据该探测报文中的配置数据进行数 据配置。  The message sending unit 1304 is configured to send the generated probe packet to the network segment, so that the client in the network segment receives the probe packet and performs data configuration according to the configuration data in the probe packet.
在本实施例中, 该才艮文发送单元 1304可周期性地向网段地址对应的网 段广播该探测报文。 在本实施例中, 该装置可为 AACP管理终端, 其工作过程如实施例 1所 述, 此处不再赘述。 In this embodiment, the packet sending unit 1304 can periodically broadcast the probe packet to the network segment corresponding to the network segment address. In this embodiment, the device may be an AACP management terminal, and the working process is as described in Embodiment 1, and details are not described herein again.
由上述可知, 该 AACP管理终端可接收 AACP地址分配服务器发送的包 括客户端 IP地址的网段探测数据包, 可根据该网段探测数据包生成相应的 探测报文, 并将该探测报文向相应的网段广播, 从而使得所属网段的客户 端获得该探测报文后, 从该探测报文中获取该客户端对应的 IP地址, 即使 该客户端和分配该 IP地址的服务器在不同的网段时也不需要如 DHCP方式 那样设置中继服务器来获得 IP地址, 因此, 可降低 IP地址分配的难度和 成本。  As can be seen from the above, the AACP management terminal can receive the network segment detection data packet that is sent by the AACP address allocation server, including the client IP address, and generate a corresponding detection packet according to the network segment detection data packet, and send the detection packet to The corresponding network segment is broadcasted, so that the client of the network segment obtains the IP address corresponding to the client from the probe packet after obtaining the probe packet, even if the client and the server that allocates the IP address are different. The network segment does not need to set the relay server to obtain the IP address as in the DHCP mode. Therefore, the difficulty and cost of IP address allocation can be reduced.
此外, 该网段探测数据包和探测报文除了包括客户端 IP地址外, 还可 包括其它配置数据, 这样, AACP管理终端将该探测报文向相应的网段广播 后, 使得所属该网段的客户端可从该探测报文中获取包括该 IP地址在内的 配置数据, 以根据该配置数据进行数据配置。  In addition, the network segment detection data packet and the probe packet may include other configuration data in addition to the client IP address, so that the AACP management terminal broadcasts the probe packet to the corresponding network segment, so that the network segment belongs to the network segment. The client can obtain configuration data including the IP address from the probe packet, and perform data configuration according to the configuration data.
实施例 10  Example 10
本发明实施例提供一种 IP地址自动配置装置, 如图 14所示, 该装置 包括数据包接收单元 1401、 报文确定单元 1402、 数据包处理单元 1403和 才艮文发送单元 1404, 其作用与实施例 9类似, 此处不再赘述。  An embodiment of the present invention provides an apparatus for automatically configuring an IP address. As shown in FIG. 14, the apparatus includes a data packet receiving unit 1401, a message determining unit 1402, a data packet processing unit 1403, and a packet sending unit 1404. Embodiment 9 is similar and will not be described here.
考虑网络数据传输的安全性, 该装置还包括第二解密单元 1405 , 与该 数据包接收单元 1401连接, 用于在当前的网段探测数据包加密时, 对该当 前的网段探测数据包进行解密。  Considering the security of the network data transmission, the device further includes a second decryption unit 1405, and is connected to the data packet receiving unit 1401, and configured to perform the current network segment detection data packet when the current network segment detection data packet is encrypted. Decrypt.
此外, 该装置还包括第二加密单元 1406 , 与该数据包处理单元 1403和 该报文发送单元 1404连接, 用于对生成的该探测报文进行加密; 则该报文 发送单元 1404用于发送加密的该探测报文。  In addition, the device further includes a second encryption unit 1406, which is connected to the data packet processing unit 1403 and the message sending unit 1404, and configured to encrypt the generated probe message; then the message sending unit 1404 is configured to send Encrypted probe message.
如图 14所示, 该装置还包括指令接收单元 1407和处理单元 1408; 其 中, 该指令接收单元 1407用于接收该地址分配服务器发送的停止发送该探 测报文的指令; 该处理单元 1408用于根据该指令停止发送该探测报文。 此外, 该装置还可包括第三解密单元 1409 , 用于在该停止发送探测报 文的指令加密时, 对该指令进行解密。 As shown in FIG. 14, the apparatus further includes an instruction receiving unit 1407 and a processing unit 1408. The instruction receiving unit 1407 is configured to receive an instruction sent by the address allocation server to stop sending the probe message. The processing unit 1408 is configured to: The sending of the probe message is stopped according to the instruction. In addition, the apparatus may further include a third decryption unit 1409 for decrypting the instruction when the instruction to stop transmitting the probe message is encrypted.
如图 14所示, 该装置还包括 >¾文更新确定单元 1410 , 用于在该>¾文确 定单元 1402确定已存在该网段对应的探测报文时, 根据该网段探测数据包 的时间戳和已分配 I P地址对应的时间戳确定是否需要更新已存在的探测报 文, 如实施例 4至 6所述; 若确定结果为需要更新已存在的该探测报文, 则通知该^艮文生成单元 1403生成该探测 文。  As shown in FIG. 14, the apparatus further includes a packet update determining unit 1410, configured to: when the packet determining unit 1402 determines that the probe packet corresponding to the network segment already exists, detect the time of the data packet according to the network segment. The time stamp corresponding to the assigned IP address determines whether the existing probe message needs to be updated, as described in Embodiments 4 to 6; if the result of the determination is that the existing probe message needs to be updated, the message is notified. The generating unit 1403 generates the probe text.
此外, 如图 14所示, 该装置还可包括数据包丢弃单元 1411 , 用于在该 报文更新确定单元 1410确定不需要更新已存在的探测报文时, 丢弃该当前 的网段探测数据包。  In addition, as shown in FIG. 14, the apparatus may further include a packet discarding unit 1411, configured to discard the current network segment probe packet when the packet update determining unit 1410 determines that the existing probe packet does not need to be updated. .
在本实施例中, 该数据包接收单元 1401接收到的网段探测数据包中还 可以携带客户端所在分组的组号。 这样, 该"¾文确定单元 1402用于根据该 网段地址和该组号、 或者才艮据网段掩码长度和网关地址、 以及该组号确定 是否存在该网段对应的探测才艮文。  In this embodiment, the network segment detection data packet received by the data packet receiving unit 1401 may further carry the group number of the packet where the client is located. In this way, the "3" text determining unit 1402 is configured to determine, according to the network segment address and the group number, or according to the network segment mask length and the gateway address, and the group number, whether there is a probe corresponding to the network segment. .
在本实施例中, 该装置可为 AACP管理终端。 其工作过程如实施例 4至 6所述, 此处不再赘述。  In this embodiment, the device may be an AACP management terminal. The working process is as described in Embodiments 4 to 6, and details are not described herein again.
由上述实施例可知, 在实施例 9的基础上, 该 AACP管理终端可对接收 到的网段探测数据包进行解密, 并根据接收到的网段探测数据包生成相应 的探测报文, 加密后向特定网段广播该探测报文, 从而可增强数据传输的 安全性。  It can be seen from the foregoing embodiment that, on the basis of Embodiment 9, the AACP management terminal can decrypt the received network segment detection data packet, and generate a corresponding detection packet according to the received network segment detection data packet, after being encrypted. The probe packet is broadcast to a specific network segment, thereby enhancing the security of data transmission.
实施例 11  Example 11
本发明实施例提供一种 IP地址自动配置装置, 如图 15所示, 该装置 包括数据包生成单元 1501和数据包发送单元 1502; 其中,  An embodiment of the present invention provides an apparatus for automatically configuring an IP address. As shown in FIG. 15, the apparatus includes a data packet generating unit 1501 and a data packet sending unit 1502.
该数据包生成单元 1501用于在存在未完成地址分配的客户端时, 生成 该客户端所在网段的网段探测数据包, 该网段探测数据包包括配置信息, 该配置信息包括步骤 503中的信息, 或者包括步骤 503中的信息和客户端 所在分组的组号, 此处不再赘述。 The data packet generating unit 1501 is configured to: when a client that has not completed the address allocation, generate a network segment probe data packet of the network segment where the client is located, where the network segment probe data packet includes configuration information, where the configuration information is included in step 503. Information, or include the information and client in step 503 The group number of the group in which it is located, which will not be described here.
该数据包发送单元 1502用于将生成的该网段探测数据包向 AACP管理 终端发送, 使得 AACP管理终端根据接收到的网段探测数据包生成相应的探 测才艮文。  The data packet sending unit 1502 is configured to send the generated network segment probe data packet to the AACP management terminal, so that the AACP management terminal generates a corresponding probe according to the received network segment probe data packet.
在本实施例中, 该数据包生成单元 1501可根据预先输入到地址分配服 务器中的相关信息生成该网段探测数据包。 该预先输入的相关信息如实施 例 3所述, 此处不再赘述。  In this embodiment, the data packet generating unit 1501 may generate the network segment sounding data packet according to the related information previously input into the address allocation server. The related information input in advance is as described in Embodiment 3, and details are not described herein again.
在本实施例中, 该装置可为 AACP地址分配服务器。 该装置的工作过程 如实施例 3、 6所述, 此处不再赘述。  In this embodiment, the device can be an AACP address allocation server. The working process of the device is as described in Embodiments 3 and 6, and details are not described herein again.
由上述可知, 当 AACP地址分配服务器确定有些网段内还存在 AACP客 户端未完成 IP地址分配时, 以网段或者客户端组号为单位生成该网段探测 数据包, 并将生成的该网段探测数据包发送至 AACP管理终端, 从而使得所 属网段的客户端获得该探测报文后, 从该探测报文中获取该客户端对应的 IP地址,即使该客户端和分配该 IP地址的服务器在不同的网段时也不需要 如 DHCP方式那样设置中继服务器来获得 IP地址, 因此, 可降低 IP地址分 配的难度和成本。  It can be seen from the above that when the AACP address allocation server determines that the AACP client does not complete the IP address allocation in some network segments, the network segment probe packet is generated by using the network segment or the client group number, and the generated network is generated. The segment probe data packet is sent to the AACP management terminal, so that the client of the network segment obtains the probe packet, and obtains the IP address corresponding to the client from the probe packet, even if the client and the IP address are assigned. When the server is on different network segments, it is not necessary to set the relay server to obtain an IP address as in the DHCP mode. Therefore, the difficulty and cost of IP address allocation can be reduced.
此外, 该网段探测数据包和探测报文除了包括客户端 IP地址外, 还可 包括其它配置数据, 这样, AACP管理终端将该探测报文向相应的网段广播 后, 使得所属该网段的客户端可从该探测报文中获取包括该 IP地址在内的 配置数据, 以根据该配置数据进行数据配置。  In addition, the network segment detection data packet and the probe packet may include other configuration data in addition to the client IP address, so that the AACP management terminal broadcasts the probe packet to the corresponding network segment, so that the network segment belongs to the network segment. The client can obtain configuration data including the IP address from the probe packet, and perform data configuration according to the configuration data.
实施例 12  Example 12
本发明实施例提供一种 IP地址自动配置装置, 如图 16所示, 该装置 包括数据包生成单元 1601和数据包发送单元 1602 , 其作用与实施例 11类 似, 此处不再赘述。  The embodiment of the present invention provides an apparatus for automatically configuring an IP address. As shown in FIG. 16, the apparatus includes a data packet generating unit 1601 and a data packet sending unit 1602, which are similar to the embodiment 11 and are not described herein again.
如图 16 所示, 该装置还包括确认信息接收单元 1603、 信息调整单元 1604和指令发送单元 1605; 其中, 该确认信息接收单元 1603用于接收该 客户端发送的确认地址已经分配的地址确认信息; 该信息调整单元 1604用 于根据该地址确认信息调整地址分配信息; 该指令发送单元 1605用于在该 网段的地址分配完毕时, 发送停止发送探测报文的指令。 As shown in FIG. 16, the apparatus further includes an acknowledgement information receiving unit 1603, an information adjusting unit 1604, and an instruction transmitting unit 1605; wherein the confirmation information receiving unit 1603 is configured to receive the The address confirmation information sent by the client to the confirmation address has been allocated; the information adjustment unit 1604 is configured to adjust the address allocation information according to the address confirmation information; the command sending unit 1605 is configured to send the stop transmission when the address allocation of the network segment is completed. The instruction to detect the message.
此外, 该装置还可包括配置单元(未示出), 用于配置生成网段探测数 据包的相关信息。  Additionally, the apparatus can also include a configuration unit (not shown) for configuring information related to generating a network segment probe packet.
如图 16所示,该装置还包括第三加密单元 1606 ,该第三加密单元 1606 用于对生成的网段探测数据包进行加密; 且该数据包发送单元 1602用于发 送加密的该网段探测数据包。  As shown in FIG. 16, the apparatus further includes a third encryption unit 1606, configured to encrypt the generated network segment probe data packet; and the data packet sending unit 1602 is configured to send the encrypted network segment. Probe packets.
该装置还包括第四加密单元 1607 , 用于对该停止发送探测报文的指令 进行加密; 且该指令发送单元 1605用于发送加密后的该停止发送探测报文的 指令。  The apparatus further includes a fourth encryption unit 1607, configured to encrypt the instruction to stop sending the probe message; and the command sending unit 1605 is configured to send the encrypted instruction to stop sending the probe message.
在本实施例中, 该装置可为该 AACP地址分配服务器。 该装置的工作过 程如实施例 4至 6所述, 此处不再赘述。  In this embodiment, the device can allocate a server for the AACP address. The working process of the device is as described in Embodiments 4 to 6, and will not be described herein.
由上述可知, 在实施例 12的基础上, 地址分配服务器可对发送的网络 探测数据包或者停止发送探测报文的指令进行加密后发送, 从而可提高数 据传输的安全性。  As apparent from the above, on the basis of the embodiment 12, the address distribution server can encrypt and transmit the transmitted network probe data packet or the instruction to stop transmitting the probe message, thereby improving the security of data transmission.
实施例 13  Example 13
本发明实施例提供一种数据配置系统, 如图 5 所示, 该系统包括终端 502 , 其中, 该终端的构成可使用实施例 9和实施例 10所述的装置或者任 意一种组合。  The embodiment of the present invention provides a data configuration system. As shown in FIG. 5, the system includes a terminal 502. The terminal may be configured by using the apparatus described in Embodiment 9 and Embodiment 10 or any combination thereof.
如图 5所示, 该系统还可包括地址分配服务器 501 , 该地址分配服务器 的构成可使用实施例 11和实施例 12所述的装置或者任意一种组合。  As shown in FIG. 5, the system may further include an address assignment server 501, which may be constructed using the apparatus described in Embodiment 11 and Embodiment 12, or any combination thereof.
此外, 该系统还包括客户端 503 , 其中, 该客户端的构成可使用实施例 7和实施例 8所述的装置或者任意一种组合。  Further, the system further includes a client 503, wherein the composition of the client can use the apparatus described in Embodiment 7 and Embodiment 8, or any combination thereof.
由上述实施例可知, 本发明实施例只利用 IP网络的最基本的功能, 就 可以完成自动 IP地址分配, 并且提高 IP地址自动配置的使用范围, 即使 该客户端和分配该 IP地址的服务器在不同的网段时也不需要如 DHCP方式 那样设置中继服务器来获得 IP地址, 从而降低 IP地址分配的难度和成本。 此外,在包括 IP地址的探测报文中还可包括其它配置数据,从而在配置 IP 地址的同时还可进行其它数据的配置。 It can be seen from the above embodiments that the embodiment of the present invention can complete the automatic IP address allocation only by utilizing the most basic functions of the IP network, and improve the use range of the automatic configuration of the IP address, even if The client and the server that assigns the IP address do not need to set the relay server to obtain an IP address as in the DHCP mode on different network segments, thereby reducing the difficulty and cost of IP address allocation. In addition, other configuration data may be included in the probe message including the IP address, so that other data can be configured while the IP address is configured.
以上所述的具体实施例, 对本发明的目的、 技术方案和有益效果进行 了进一步详细说明 , 所应理解的是, 以上所述仅为本发明的具体实施例而 已, 并不用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所 做的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above described specific embodiments of the present invention are further described in detail, and are intended to be illustrative of the embodiments of the present invention. The scope of the protection, any modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权利要求 Rights request
1.一种 IP地址自动配置方法, 其特征在于, 所述方法包括: 接收地址分配服务器传送的网段探测数据包, 所述网段探测数据包包 括配置信息, 所述配置信息包括网段内的客户端标识和客户端标识对应的 A method for automatically configuring an IP address, the method comprising: receiving a network segment probe data packet transmitted by an address allocation server, where the network segment probe data packet includes configuration information, where the configuration information includes a network segment Client ID and client ID
IP地址; IP address;
确定是否存在所述网段对应的探测报文 , 若确定不存在所述网段对应 的探测报文, 则根据所述网段探测数据包生成探测报文, 所述探测报文包 括配置数据, 所述配置数据包括所述网段内的客户端标识和所述客户端标 识对应的 IP地址;  Determining whether there is a detection packet corresponding to the network segment, and if it is determined that the detection packet corresponding to the network segment does not exist, generating a detection packet according to the network segment detection data packet, where the detection packet includes configuration data. The configuration data includes a client identifier in the network segment and an IP address corresponding to the client identifier;
将所述探测报文向所述网段发送, 以使所述网段内的客户端接收到所 述探测报文后根据所述探测报文中的配置数据进行数据配置。  And sending the probe packet to the network segment, so that the client in the network segment performs data configuration according to the configuration data in the probe packet after receiving the probe packet.
2.根据权利要求 1 所述的方法, 其特征在于, 在接收地址分配服务器 传送的网段探测数据包之后, 所述方法还包括:  The method according to claim 1, wherein after receiving the network segment probe data packet transmitted by the address distribution server, the method further includes:
若确定已存在所述网段的探测报文, 则进一步判断是否需要对已存在 的探测报文进行更新, 若判断结果为是, 则根据当前接收到的网段探测数 据包生成探测报文, 并将生成的探测报文向所述网段发送。  If it is determined that the detection packet of the network segment already exists, it is further determined whether the existing detection packet needs to be updated, and if the determination result is yes, the detection packet is generated according to the currently received network segment detection data packet. And sending the generated probe packet to the network segment.
3.根据权利要求 2 所述的方法, 其特征在于, 所述网段内的客户端属 于一定的分组, 所述确定是否存在所述网段对应的探测报文包括:  The method according to claim 2, wherein the client in the network segment belongs to a certain group, and the determining whether the probe packet corresponding to the network segment exists includes:
根据是否存在所述客户端所在网段和所述分组对应的探测报文, 确定 是否存在所述网段对应的探测 文。  Determining whether there is a probe text corresponding to the network segment according to whether the network segment where the client is located and the probe packet corresponding to the packet are present.
4.根据权利要求 2或 3所述的方法, 其特征在于, 所述方法还包括: 接收所述地址分配服务器发送的停止发送所述探测报文的指令; 根据所述指令停止发送所述探测报文;  The method according to claim 2 or 3, wherein the method further comprises: receiving an instruction sent by the address allocation server to stop sending the probe message; stopping sending the probe according to the instruction Message
或,  Or,
接收所述地址分配服务器发送的加密后的停止发送所述探测报文的指 令; 对所述加密后的指令进行解密; Receiving an encrypted instruction to stop sending the probe message sent by the address allocation server; Decrypting the encrypted instruction;
根据所述解密后的指令停止发送所述探测报文。  Stop transmitting the probe message according to the decrypted instruction.
5.根据权利要求 4 所述的方法, 其特征在于, 所述配置信息和所述配 置数据还包括:  The method according to claim 4, wherein the configuration information and the configuration data further comprise:
网段地址; 或者  Network segment address; or
网段掩码长度; 或者  Segment length of the network segment; or
网段掩码长度和网关地址。  Segment mask length and gateway address.
6. —种 IP地址自动配置方法, 其特征在于, 所述方法包括: 若存在未完成地址分配的客户端或者修改了已完成地址分配的客户端 的配置数据, 则生成所述客户端所在网段的网段探测数据包, 所述网段探 测数据包包括配置信息 , 所述配置信息包括网段内的客户端标识和客户端 标识对应的 IP地址;  A method for automatically configuring an IP address, the method includes: if a client that has not completed address allocation or a configuration data of a client that has completed address allocation is modified, generating a network segment where the client is located The network segment detection data packet, the network segment detection data packet includes configuration information, where the configuration information includes a client identifier in the network segment and an IP address corresponding to the client identifier;
将所述网段探测数据包向管理终端发送。  Sending the network segment probe data packet to the management terminal.
7.根据权利要求 6所述的方法, 其特征在于, 所述方法还包括: 接收所述客户端发送的确认 IP地址已经分配的地址确认信息; 根据所述地址确认信息调整 IP地址分配信息;  The method according to claim 6, wherein the method further comprises: receiving address confirmation information that the acknowledgement IP address sent by the client has been allocated; and adjusting IP address allocation information according to the address confirmation information;
若所述网段的地址分配完毕, 则向所述管理终端发送停止发送探测报 文的指令。  If the address of the network segment is allocated, an instruction to stop sending the probe message is sent to the management terminal.
8.根据权利要求 7 所述的方法, 其特征在于, 在将所述网段探测数据 包进行发送之前, 所述方法还包括: 对所述网段探测数据包进行加密; 或者, 在发送停止发送探测报文的指令之前, 所述方法还包括: 对所 述停止发送探测报文的指令进行加密。  The method according to claim 7, wherein before the sending the network segment probe data packet, the method further comprises: encrypting the network segment probe data packet; or, stopping at the sending Before the instruction of the probe message is sent, the method further includes: encrypting the instruction to stop sending the probe message.
9.根据权利要求 6 所述的方法, 其特征在于, 所述配置信息和所述配 置数据还包括:  The method according to claim 6, wherein the configuration information and the configuration data further comprise:
网段地址; 或者  Network segment address; or
网段掩码长度; 或者 网段掩码长度和网关地址。 Segment length of the network segment; or Segment mask length and gateway address.
10.—种 IP地址自动配置的管理终端, 其特征在于, 所述管理终端包 括:  A management terminal for automatically configuring an IP address, wherein the management terminal comprises:
数据包接收单元, 用于接收地址分配服务器传送的网段探测数据包, 所述网段探测数据包包括网段的配置信息, 所述配置信息包括网段内的客 户端标识和客户端标识对应的 IP地址;  a data packet receiving unit, configured to receive a network segment detection data packet sent by the address allocation server, where the network segment detection data packet includes configuration information of the network segment, where the configuration information includes a client identifier and a client identifier corresponding to the network segment IP address;
报文确定单元, 用于确定是否存在所述网段对应的探测报文; 数据包处理单元, 用于在确定不存在所述网段对应的探测报文时, 根 据所述网段探测数据包生成探测报文, 所述探测报文包括配置数据, 所述 配置数据包括网段内的客户端标识和所述客户端标识对应的 IP地址; 文发送单元, 用于将生成的所述探测"¾文向所述网段发送, 以使所 述网段内的客户端接收到所述探测报文后根据所述探测报文中的配置数据 进行数据配置。  a packet determining unit, configured to determine whether a probe packet corresponding to the network segment exists; and a data packet processing unit, configured to: when determining that the probe packet corresponding to the network segment does not exist, detecting a data packet according to the network segment Generating a probe packet, where the probe packet includes configuration data, where the configuration data includes a client identifier in the network segment and an IP address corresponding to the client identifier, and a text sending unit, configured to generate the probe. The text is sent to the network segment, so that the client in the network segment performs data configuration according to the configuration data in the probe packet after receiving the probe packet.
11.根据权利要求 10所述的管理终端, 其特征在于, 所述管理终端还 包括: 应的探测报文时, 确定是否需要更新已存在的探测报文; 若确定结果为需 要更新已存在的所述探测报文, 则通知所述数据包处理单元生成所述探测 报文;  The management terminal according to claim 10, wherein the management terminal further comprises: determining whether it is necessary to update an existing probe message when the packet is to be detected; if the result of the determination is that the existing update needs to be updated Transmitting, by the packet processing unit, the data packet processing unit to generate the probe packet;
所述装置还包括数据包丢弃单元, 用于在所述报文更新确定单元确定 不需要更新已存在的探测报文时, 丟弃所述网段探测数据包。  The apparatus further includes a packet discarding unit, configured to discard the network segment probe data packet when the packet update determining unit determines that the existing probe packet does not need to be updated.
12.根据权利要求 10或 11所述的管理终端, 其特征在于, 所述网段内 的客户端属于一定的分组, 所述报文确定单元确定是否存在所述网段对应 的探测报文具体为: 根据是否存在所述客户端所在网段和所述分组对应的 探测 "¾文, 确定是否存在所述网段对应的探测 文。  The management terminal according to claim 10 or 11, wherein the client in the network segment belongs to a certain group, and the packet determining unit determines whether there is a specific detection packet corresponding to the network segment. The method is as follows: determining whether there is a probe text corresponding to the network segment according to whether the network segment where the client is located and the probe corresponding to the packet.
13.根据权利要求 10或 11所述的管理终端, 其特征在于, 所述管理终 端还包括: The management terminal according to claim 10 or 11, wherein the management terminal The terminal also includes:
第一指令接收单元, 用于接收所述地址分配服务器发送的停止发送所 述探测报文的停止发送指令;  a first instruction receiving unit, configured to receive a stop sending instruction sent by the address allocation server to stop sending the probe message;
第一处理单元 , 用于根据所述停止发送指令停止发送所述探测报文; 或者, 所述管理终端还包括:  a first processing unit, configured to stop sending the probe message according to the stop sending instruction; or, the management terminal further includes:
第二指令接收单元, 用于接收所述地址分配服务器发送的加密后的停 止发送所述探测报文的指令;  a second instruction receiving unit, configured to receive an encrypted instruction sent by the address allocation server to stop sending the probe message;
解密单元, 用于对所述加密后的指令进行解密;  a decryption unit, configured to decrypt the encrypted instruction;
第二处理单元, 用于根据所述解密后的指令停止发送所述探测报文。  And a second processing unit, configured to stop sending the probe message according to the decrypted instruction.
14.一种 IP地址分配服务器, 其特征在于, 所述服务器包括: 数据包生成单元, 用于在存在未完成地址分配的客户端或者修改了已 完成地址分配的客户端的配置数据时, 生成所述客户端所在网段的网段探 测数据包, 所述网段探测数据包包括配置信息, 所述配置信息包括网段内 的客户端标识和客户端标识对应的 I P地址;  An IP address allocation server, wherein the server comprises: a data packet generating unit, configured to generate, when a client that has not completed address allocation or a configuration data of a client that has completed address allocation is modified The network segment detection data packet of the network segment where the client is located, where the network segment detection data packet includes configuration information, where the configuration information includes a client identifier in the network segment and an IP address corresponding to the client identifier;
数据包发送单元, 用于将生成的所述网段探测数据包向管理终端发送。  And a data packet sending unit, configured to send the generated network segment probe data packet to the management terminal.
15.根据权利要求 14所述的服务器, 其特征在于, 所述服务器还包括: 确认信息接收单元, 用于接收所述客户端发送的确认地址已经分配的 地址确认信息;  The server according to claim 14, wherein the server further comprises: an acknowledgement information receiving unit, configured to receive address confirmation information that the acknowledgement address sent by the client has been allocated;
信息调整单元, 用于根据所述地址确认信息调整地址分配信息; 指令发送单元, 用于在所述网段的地址分配完毕时, 向所述管理终端 发送停止发送探测报文的指令。  The information adjusting unit is configured to adjust the address allocation information according to the address confirmation information; and the instruction sending unit is configured to send, to the management terminal, an instruction to stop sending the probe message when the address of the network segment is allocated.
16.根据权利要求 14或 15所述的服务器, 其特征在于, 所述服务器还包 括:  The server according to claim 14 or 15, wherein the server further comprises:
第一加密单元, 用于对生成所述网段探测数据包进行加密; 且所述数 据包发送单元用于发送加密的所述网段探测数据包; 或者,  a first encryption unit, configured to encrypt the network segment detection data packet, where the data packet sending unit is configured to send the encrypted network segment detection data packet; or
所述服务器还包括第二加密单元, 用于对所述停止发送探测报文的指令 进行加密; 且所述指令发送单元用于发送加密后的所述停止发送探测报文的 指令。 The server further includes a second encryption unit, configured to: execute the instruction to stop sending the probe message And performing the encryption; and the instruction sending unit is configured to send the encrypted instruction to stop sending the probe message.
17.—种 IP地址自动配置系统, 其特征在于, 所述系统包括如权利要 求 10至 13任一项所述的管理终端, 以及如权利要求 14至 16任一项所述 的 IP地址分配服务器。  17. An IP address automatic configuration system, characterized in that the system comprises the management terminal according to any one of claims 10 to 13, and the IP address distribution server according to any one of claims 14 to 16. .
18.根据权利要求 17 所述的系统, 其特征在于, 所述系统还包括客户 端, 所述客户端包括:  The system according to claim 17, wherein the system further comprises a client, the client comprising:
报文接收单元, 用于接收客户端所属网段的探测报文, 所述当前探测 报文包括配置数据, 所述配置数据包括所述网段内的客户端标识和所述客 户端标识对应的 IP地址;  a packet receiving unit, configured to receive a detection packet of a network segment to which the client belongs, where the current detection packet includes configuration data, where the configuration data includes a client identifier in the network segment and a corresponding identifier of the client identifier IP address;
才艮文处理单元, 用于在确定客户端未被分配 IP地址、 或者确定已分配 IP地址且确定所述已分配的 IP地址需要更新时,对所述当前探测报文进行 解析, 以获取所述配置数据;  The processing unit is configured to parse the current probe packet to obtain the location when the client is not assigned an IP address, or the IP address is determined to be determined, and the allocated IP address needs to be updated. Configuration data;
数据获取单元, 用于根据所述客户端标识从所述配置数据中获取所述 客户端对应的 IP地址。  And a data obtaining unit, configured to acquire, according to the client identifier, an IP address corresponding to the client from the configuration data.
19.根据权利要求 18所述的系统, 其特征在于, 所述客户端还包括: 确认信息发送单元, 用于向所述 IP地址分配服务器发送确认 IP地址 已经分配的地址确认信息。  The system according to claim 18, wherein the client further comprises: an acknowledgment information transmitting unit, configured to send, to the IP address allocation server, address confirmation information that the acknowledgment IP address has been allocated.
PCT/CN2010/076442 2009-08-28 2010-08-28 Method, device thereof and system thereof for automatically configuring internet protocol (ip) addresses WO2011023136A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009101668476A CN101651722B (en) 2009-08-28 2009-08-28 Method, device and system for automatically allocating IP address
CN200910166847.6 2009-08-28

Publications (1)

Publication Number Publication Date
WO2011023136A1 true WO2011023136A1 (en) 2011-03-03

Family

ID=41673824

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076442 WO2011023136A1 (en) 2009-08-28 2010-08-28 Method, device thereof and system thereof for automatically configuring internet protocol (ip) addresses

Country Status (2)

Country Link
CN (1) CN101651722B (en)
WO (1) WO2011023136A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447089A (en) * 2020-03-24 2020-07-24 深信服科技股份有限公司 Terminal asset identification method and apparatus, and computer-readable storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651722B (en) * 2009-08-28 2011-09-14 华为技术有限公司 Method, device and system for automatically allocating IP address
CN102244689B (en) 2010-05-13 2014-01-01 华为技术有限公司 Method and equipment for obtaining remote IP address
CN102143244B (en) * 2010-11-01 2013-08-07 华为技术有限公司 Method and device for configuring subnet mask
CN104580547A (en) * 2014-12-23 2015-04-29 曙光信息产业(北京)有限公司 IP (internet protocol) configuration method and device for Linux operation system
CN104461697B (en) * 2014-12-25 2017-09-22 中国科学院信息工程研究所 A kind of online IP address automatic capture system of virtual machine batch and method
CN106603735B (en) * 2015-10-19 2020-06-26 华为技术有限公司 Method, device and system for distributing communication addresses of intelligent instrument
CN109889613B (en) * 2019-04-24 2022-03-18 广州欢聊网络科技有限公司 Message pushing method and device and mobile terminal
CN112738295B (en) * 2021-01-07 2022-08-30 中国工商银行股份有限公司 IP address exception handling method, device, computer system and storage medium
CN114513492A (en) * 2022-04-18 2022-05-17 浙江国利网安科技有限公司 Method and device for configuring IP address

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854901A (en) * 1996-07-23 1998-12-29 Cisco Systems, Inc. Method and apparatus for serverless internet protocol address discovery using source address of broadcast or unicast packet
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN101047639A (en) * 2006-06-16 2007-10-03 华为技术有限公司 Method and system for base station automatic configuration
CN101098347A (en) * 2006-06-28 2008-01-02 华为技术有限公司 Method of assigning IP address for subscriber terminal
CN101651722A (en) * 2009-08-28 2010-02-17 华为技术有限公司 Method, device and system for automatically allocating IP address

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10319323B3 (en) * 2003-04-29 2004-12-16 Siemens Ag Method for automatic configuration of a communication device
CN1332539C (en) * 2003-06-12 2007-08-15 华为技术有限公司 Method for implementing automatic establishment of VPN address pool
CN101136946A (en) * 2006-08-31 2008-03-05 华为技术有限公司 Base station IP address assignment system and method, base station, access service network gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854901A (en) * 1996-07-23 1998-12-29 Cisco Systems, Inc. Method and apparatus for serverless internet protocol address discovery using source address of broadcast or unicast packet
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN101047639A (en) * 2006-06-16 2007-10-03 华为技术有限公司 Method and system for base station automatic configuration
CN101098347A (en) * 2006-06-28 2008-01-02 华为技术有限公司 Method of assigning IP address for subscriber terminal
CN101651722A (en) * 2009-08-28 2010-02-17 华为技术有限公司 Method, device and system for automatically allocating IP address

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447089A (en) * 2020-03-24 2020-07-24 深信服科技股份有限公司 Terminal asset identification method and apparatus, and computer-readable storage medium
CN111447089B (en) * 2020-03-24 2023-07-14 深信服科技股份有限公司 Terminal asset identification method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN101651722A (en) 2010-02-17
CN101651722B (en) 2011-09-14

Similar Documents

Publication Publication Date Title
WO2011023136A1 (en) Method, device thereof and system thereof for automatically configuring internet protocol (ip) addresses
CN110972103B (en) Communication method and device
JP4727126B2 (en) Providing secure network access for short-range wireless computing devices
KR100836028B1 (en) Method for multicast broadcast service
WO2013102412A1 (en) Data transmission method and device
AU2001288394A1 (en) Location-independent packet routing and secure access in a short-range wireless networking environment
US11153207B2 (en) Data link layer-based communication method, device, and system
US20070283149A1 (en) Home address auto-configuration during use of a mobile protocol authentication option protocol
CN109495594B (en) Data transmission method, PNF SDN controller, VNF SDN controller and system
CN113541989A (en) Network slice detection method, device and storage medium
KR101143898B1 (en) Method and apparatus for verification of dynamic host configuration protocol dhcp release message
US11343786B2 (en) Method for broadcast gateway signaling using cloud network and apparatus for the same
US20100106962A1 (en) Method, apparatus, and system for managing multimedia services
WO2018054272A1 (en) Data transmission method and device, and computer storage medium
EP3188492B1 (en) Multicast security control method and device based on dns
WO2014201783A1 (en) Encryption and authentication method, system and terminal for ad hoc network
CN108924826B (en) Data transmission control method and device
JP2010028622A (en) Network processing apparatus
WO2022270228A1 (en) Device and method for providing communication service for accessing ip network, and program therefor
JP7076051B1 (en) Devices, methods and programs for providing communication services to access IP networks
KR100684306B1 (en) Method for requesting, generating and distributing traffic encryption key according to services in wireless portable internet system and apparatus thereof, and protocol configuration method in the same
KR101156479B1 (en) System and method for assigning IP address based on user authentication
JP2023002448A (en) Device and method for providing communication service for accessing ip network, and program therefor
KR20160123102A (en) Virtual private network secuirity apparatus and operatoin method thereof
KR100987231B1 (en) Method for Accounting Broadcast Service in a Mobile Communication System

Legal Events

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

Ref document number: 10811296

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10811296

Country of ref document: EP

Kind code of ref document: A1