CN101808145B - IP address distributing method and system - Google Patents

IP address distributing method and system Download PDF

Info

Publication number
CN101808145B
CN101808145B CN201010154193.8A CN201010154193A CN101808145B CN 101808145 B CN101808145 B CN 101808145B CN 201010154193 A CN201010154193 A CN 201010154193A CN 101808145 B CN101808145 B CN 101808145B
Authority
CN
China
Prior art keywords
address
network element
network
application
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010154193.8A
Other languages
Chinese (zh)
Other versions
CN101808145A (en
Inventor
魏小强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010154193.8A priority Critical patent/CN101808145B/en
Publication of CN101808145A publication Critical patent/CN101808145A/en
Application granted granted Critical
Publication of CN101808145B publication Critical patent/CN101808145B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses IP address distributing method and system. In the method, a current network element sends an IP address request message carrying identification information of the current network element to adjacent network elements; the current network element receives an IP address distributing messages which carry the identification information of the current network element and are from an IP address server from the adjacent network elements, acquires an IP address distributed by the IP address server for the current network element from the distributing messages and allocates the acquired IP address to the current network element; and the current network element is set to be an IP relay network element to act for other network elements to apply the IP address from the IP address server. The invention realizes the convenient and fast interworking among IP layers of communication equipment, increases the usability and flexibility of a system, and enhances the performance of the system.

Description

The distribution method of IP address and system
Technical field
The present invention relates to the communications field, in particular to distribution method and the system of a kind of IP address.
Background technology
In actual use, in order to realize the intercommunication of IP layer between communication apparatus, need to give communication apparatus distributing IP address.That is to say to have under the prerequisite of IP address, after communication apparatus powers on, can realize the intercommunication with other device IP layers.
At present, conventionally use DHCP (Dynamic Host ConfigurationProtocol, referred to as DHCP) to come distributing IP address.DHCP protocol requirement server and client side at a network segment, that is, need to carry out IP address assignment a local area network (LAN) inside.In order to solve the not problem in a local area network (LAN) of Dynamic Host Configuration Protocol server and terminal, expansion DHCP agreement is used DHCP relay technology, makes dhcp client and the server can be not a local area network (LAN) inside.But DHCP relay technological essence still requires IP address to be allocated and known network in the same network segment, its realization be local area network (LAN) intercommunication, and DHCP relay used also needs to be configured extraly in the process of distributing IP address.
In correlation technique, proposed a kind of with VLAN (Virtual Local AreaNetwork, referred to as VLAN) be the IP address assignment method of benchmark, before its limitation is distributing IP address, be necessary for the pre-configured VLAN of each port of communication apparatus, and VLAN is associated with IP address.Because VLAN need to be pre-configured, make to be not easy to automation configuration and the Remote configuration management to communication apparatus of IP address.
In correlation technique, a kind of IP address assignment method that depends on network topology structure has also been proposed, still, the prerequisite of its distributing IP address is to predict the network topology structure of network element place, IP to be allocated address communication network.
Summary of the invention
Main purpose of the present invention is to provide a kind of IP allocative decision of address, and having solved the in the situation that of can only or relying on some configuration information at the same network segment in correlation technique could be the problem of network element distributing IP address.
To achieve these goals, according to an aspect of the present invention, provide a kind of IP distribution method of address.
Distribution method according to IP of the present invention address, comprises the following steps: current network sends the IP application IP addresses message of the identification information that carries current network to its adjacent network element; Current network receives the IP address assignment message from the identification information that carries current network of IP address server from adjacent network element, from assignment message, obtain IP address server and be the IP address that current network is distributed, and by the IP address configuration of obtaining to current network; And current network is set to IP relaying network element, to act on behalf of other network elements to IP address server application IP address.
Further, in the non-existent situation of MAC Address of current network, before current network sends the IP application IP addresses message of the identification information that carries current network to its adjacent network element, also comprise: current network generates the interim MAC Address of current network according to random algorithm, and the identification information using interim MAC Address as current network.
Further, in the non-existent situation of MAC Address of current network, it is the IP address that current network is distributed that current network is obtained IP address server from assignment message, and the IP address configuration of obtaining is comprised to current network: it is the MAC Address that current network is distributed that current network is obtained IP address server from assignment message, and the MAC Address of distribution is configured to current network; And send request to IP address server the message that the MAC Address of distribution comes into force.
Further, IP address server saves as the IP address information that current network is distributed, and wherein, IP address information comprises: the IP address of the MAC Address of current network, current network and the interim MAC Address of current network.
Further, current network also comprises after being set to IP relaying network element: IP relaying network element, from adjacent network element receives the IP application IP addresses message from other network elements, is preserved identification information and its corresponding port information of other network elements; From adjacent network element, receiving the IP address assignment message of the identification information that carries other network elements from IP address server, IP relaying network element is searched the port information corresponding with the identification information of other network elements, and the IP address assignment message repeating that IP address server is carried to the identification information of other network elements is given other network elements.
Further, the MAC Address that identification information is current network.
Further, IP application IP addresses message comprises: identification information, MAC Address application mark and IP application IP addresses mark.
To achieve these goals, according to a further aspect in the invention, also provide a kind of IP distribution system of address.
According to the distribution system of IP of the present invention address, comprise a plurality of application network elements, wherein, each network element in a plurality of application network elements comprises: sending module, for send the IP application IP addresses message of the identification information that carries this network element to its adjacent network element; Receiver module, for receiving the IP address assignment message that carries identification information from IP address server from adjacent network element; Acquisition module, the IP address of distributing for this network element for obtain IP address server from assignment message; Configuration module, for and IP address configuration that acquisition module is obtained give this network element; And module is set, for this network element being set to IP relaying network element, to act on behalf of in a plurality of application network elements other network elements to IP address server application IP address.
Further, each network element in a plurality of application network elements also comprises: generation module, for in the non-existent situation of MAC Address of this network element, according to random algorithm, generate the interim MAC Address of this network element, and the identification information using interim MAC Address as this network element; The MAC Address that acquisition module also distributes for this network element for obtain IP address server from assignment message; Configuration module is also for configuring the MAC Address of distribution to this network element; And message from the MAC Address of distribution to IP address server that also come into force for send request of sending module.
Further, after a network element in a plurality of application network elements is set to this network element IP relaying network element, IP relaying network element comprises: preserve module, for in the situation that receive the IP application IP addresses message from other network elements from adjacent network element, preserve identification information and its corresponding port information of other network elements;
Search module, in the situation that receive from adjacent network element the IP address assignment message that carries the identification information of other network elements from IP address server, search the port information corresponding with the identification information of other network elements; And forwarding module, for IP address server being carried to the IP address assignment message repeating of the identification information of other network elements, give other network elements.
By the present invention, the network element that employing gets IP address is set to the mode of IP relaying network element, it can be automatically all communication apparatus distributing IP address in the network equipment, realized the intercommunication of the IP layer portable between communication apparatus, increase ease for use and the flexibility of system, improved systematic function.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the distribution method of the IP address of the embodiment of the present invention;
Fig. 2 is the IP application IP addresses message transmission processing flow chart of preferably implementing according to the present invention;
Fig. 3 is the form schematic diagram of the IP application IP addresses message preferably implemented according to the present invention;
Fig. 4 is the flow chart that the IP relaying network element preferably implemented according to the present invention forwards IP application IP addresses message processing procedure;
Fig. 5 is the IP application IP addresses tableau format schematic diagram of preferably implementing according to the present invention;
Fig. 6 is the IP address assignment tableau format schematic diagram of preferably implementing according to the present invention;
Fig. 7 is the form schematic diagram of the IP address assignment message preferably implemented according to the present invention;
Fig. 8 is the network element deployment schematic diagram of preferably implementing according to the present invention;
Fig. 9 is according to the structured flowchart of the distribution system of the IP address of the embodiment of the present invention;
Figure 10 is the structured flowchart of the network element of the distribution system of IP address according to the preferred embodiment of the invention.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
In embodiments of the present invention, provide a kind of IP distribution method of address, Fig. 1 is that as shown in Figure 1, the method comprises the following steps according to the flow chart of the distribution method of the IP address of the embodiment of the present invention:
Step S102, current network sends the IP application IP addresses message of the identification information that carries current network to its adjacent network element;
Step S104, current network receives the IP address assignment message from the identification information that carries current network of IP address server from its adjacent network element, from assignment message, obtain IP address server and be the IP address that current network is distributed, and by the IP address configuration of obtaining to current network; And
Step S106, current network is set to IP relaying network element, to act on behalf of other network elements to IP address server application IP address.
Pass through the embodiment of the present invention, the network element that employing gets IP address is set to the mode of IP relaying network element, it can be automatically all communication apparatus distributing IP address in the network equipment, having solved the in the situation that of can only or relying on some configuration information at the same network segment in correlation technique could be the problem of network element distributing IP address, realize the intercommunication of the IP layer portable between communication apparatus, increased ease for use and the flexibility of system.
Preferably, in step S102, in IP application IP addresses message, can comprise: identification information, MAC Address application mark and IP application IP addresses mark.For example, identification information is for each network element of unique identification network, whether the network element that MAC Address application mark is used to indicate transmission IP application IP addresses message needs to apply for that MAC Address (, whether need IP server to distribute MAC Address for it, particularly, can be in the situation that needs be applied for MAC Address, this MAC Address application mark is set to 1), whether the network element that IP application IP addresses mark is used to indicate transmission IP application IP addresses message needs to apply for IP address (, whether need IP server for its distributing IP address, particularly, can be in the situation that needs be applied for IP address, this IP application IP addresses mark is set to 1).The method can be so that IP address server be known the address style that application network element need to distribute, and the application message of network element is applied in response effectively, has improved the accuracy of system.
Preferably, in step S102, identification information can be the MAC Address of current network.Wherein, MAC Address can be the information for the hardware of marked net element device.Due to the MAC Address of network element can unique identification network element device hardware information, so, realize simple, workable.
Preferably, after step S102, before step S104, IP address server can save as the IP address information that current network is distributed, wherein, IP address information comprises: the IP address of the MAC Address of current network, current network and the interim MAC Address of current network.Wherein, IP address server refers to can be the network element of the network element distributing IP address in network.For example, in network autonomous system, certain network element can be set as required as IP address server.The method can increase the flexibility of system, improves system adaptive capacity.
Preferably, after step S106, IP relaying network element, from its adjacent network element receives the IP application IP addresses message from other network elements, is preserved identification information and its corresponding port information of other network elements; From it, adjacent network element receives the IP address assignment message of the identification information that carries other network elements from IP address server, IP relaying network element is searched the port information corresponding with the identification information of other network elements, and the IP address assignment message repeating that IP address server is carried to the identification information of other network elements is given other network elements.Wherein, IP relaying network element can be, after application network element obtains IP address, this network element is set to IP relaying network element, and it can act on behalf of zero-address network element to IP address server application IP address.
In this preferred embodiment, the network element self that gets IP address is set to IP relaying network element, the network element ID information of preserving by this locality and corresponding ports information, for the network element forwarding IP application IP addresses message of other application IP addresses and the assignment message of IP address server, realized the agent functionality of IP relaying network element, this IP address assignment method is spread in network element, and all network elements in not relying on the situation lower network of other configuration informations can obtain IP address information on secondary IP address server, and then realized the intercommunication of IP layer between all communication apparatus in network.
Preferably, in the non-existent situation of MAC Address of current network, before step S102, current network generates the interim MAC Address of current network according to random algorithm, and the identification information using interim MAC Address as current network.The method makes each network element in network have an identification information, can in network, operate targetedly better, has and utilizes the recognition capability of network element to the various messages that receive, and has improved the disposal ability of system.
Preferably, in the non-existent situation of MAC Address of current network, in step S 104, it is the MAC Address that current network is distributed that current network is obtained IP address server from assignment message, and the MAC Address of distribution is configured to current network; And send request to IP address server the message that the MAC Address of distribution comes into force.
This preferred embodiment, can be so that IP address server carries out organization and administration to the IP address of all network elements in network effectively, for example, for not having the network element of MAC Address to distribute its a identification information (, MAC Address) of unique identification in network, improved the performance of system.
It should be noted that, the embodiment of the present invention is applicable in point-to-point mode, communicate between various device, and IP relaying network element can be at the different network segments with application network element (that is, not having IP address need to apply for the network element of IP address).
Fig. 2 is the IP application IP addresses message transmission processing flow chart of preferably implementing according to the present invention, and as shown in Figure 2, this flow process comprises following treatment step:
Step S202, network element electrifying startup.
Step S204, after network element powers on, checks whether network element IP address exists.If network element has IP address, enter step S212; If network element does not have IP address, put the application of the application's network element IP address and be labeled as 1, enter step S206.
Step S206, checks whether network element exists MAC Address.If there is no network element MAC Address, enters step S208; If there is network element MAC Address, enter step S210.
Step S208, according to the interim MAC Address of random algorithm generation network element, the MAC Address mark application of simultaneously putting the application's network element is 1.
Step S210, network element sends IP application IP addresses message.For example, application network element can send IP application IP addresses message to adjacent network element by this network element all of the port, wherein, carries the identification information (that is, the interim MAC of this network element MAC Address or this network element) of this network element of unique identification in this IP address message.Particularly, if do not receive the IP address assignment response message of this network element of IP address server transmission in T in interval time, this network element need to send this IP application IP addresses message again so.Fig. 3 is the form schematic diagram of the IP application IP addresses message preferably implemented according to the present invention, as shown in Figure 3, in specific implementation process, this IP application IP addresses message content can comprise: network element MAC (6 bytes), network element MAC application mark (1 byte) and network element IP application mark (1 byte).
Step S212, IP application IP addresses message sends and finishes.
In specific implementation process, in network, only have network element to be seldom directly connected with IP address server, can allow IP address server directly receive the IP application IP addresses message of its transmission, thereby acquisition IP address also arranges certainly, as IP trunk network unit, act on behalf of other network elements to IP address server application IP address.And most network element does not all have to be directly connected with IP address server, that is to say, need to be by above-mentioned IP relaying network element to IP address server application IP address.
Fig. 4 is the flow chart that the IP relaying network element preferably implemented according to the present invention forwards IP application IP addresses message processing procedure, and as shown in Figure 4, this flow process comprises following treatment step:
Step S402, network element receives the IP application IP addresses message sending to IP address server.
Step S404, checks whether this network element is IP relaying network element.If not IP relaying network element, directly abandon this application message, enter step S410; If IP relaying network element enters step S406.
Step S406, checks in IP application IP addresses table whether had identical network element MAC in IP application IP addresses state.If had, belong to duplicate message, directly abandon this message, enter step S410; If no, enter step S408.Fig. 5 is the IP application IP addresses tableau format schematic diagram of preferably implementing according to the present invention, and as shown in Figure 5, IP application IP addresses table can comprise: application network element MAC (6 bytes) and application port (6 bytes).This IP application IP addresses table can record it for IP relaying network element and act on behalf of which network element to IP address server application IP address, so that forward IP application IP addresses message and in response to the IP address assignment message of IP application IP addresses message.
Step S408, network element MAC and the receiving port information of preserving this IP application IP addresses message arrive IP application IP addresses table.
Step S410, forwards IP application IP addresses message by network layer communication to IP address server.
IP address server is after receiving the IP application IP addresses message of application network element transmission, according to each field implication in this IP application IP addresses message (, application mark) for application network element distributes the information such as network element MAC (if necessary), network element IP address, subnet mask, and (these assignment information are sent to IP address relaying network element, the application network element that gets IP address can self be set to IP relaying network element, to act on behalf of other network elements to IP address server application IP address).In specific implementation process, these address informations that IP address server can be distributed to application network element are kept in an IP address assignment table, and wherein, the information in IP address assignment table can also comprise IP address server address except address above mentioned.
Fig. 6 is the IP address assignment tableau format schematic diagram of preferably implementing according to the present invention, as shown in Figure 6, the content of IP address assignment table can comprise: network element MAC (6 bytes), network element IP type (1 byte), network element IP address length (1 byte), network element IP address (4 bytes) and the interim MAC of network element (6 bytes).Wherein, IP address server, when certain application network element distributes address information, for the content not having in IP address assignment table, can be filled out " 0 " or vacancy.For example, application network element, when sending IP application IP addresses message, has the MAC Address of oneself, and, without generating interim MAC Address, now, " the interim MAC of the network element " unit in IP application IP addresses table can be set to " 0 ".
Fig. 7 is the form schematic diagram of the IP address assignment message preferably implemented according to the present invention, IP address server can be carried at the address information of distributing to application network element in IP address assignment message, to send to the IP relaying network element in network, then is transmitted to application network element by IP relaying network element.As shown in Figure 7, IP address assignment message can comprise: application network element MAC (6 bytes), network element network MAC are (, IP address server is distributed to the new MAC of zero-address network element, 6 bytes), network element IP address type (1 byte), network element IP address length (1 byte), network element IP address (4 bytes), IP address server address style (1 byte), IP address server address size (1 byte) and IP address server address (4 bytes).
IP address relaying network element receives after the IP that IP address server is assigned to, according to the object network element MAC in IP address assignment message (that is, the identification information of application network element), check IP application IP addresses table, find corresponding outbound port, send this IP address information to respective network elements.If secondary IP address application form is searched the outbound port failure of application network element to it, directly abandon this IP address assignment message.
IP application IP addresses network element receives behind the IP address being assigned to, the IP address that need to enable to be assigned to.Particularly, first check whether the object MAC (that is, application network element MAC) in the assignment message receiving is the MAC of this network element.If not, so directly abandon; If so, preserve network element IP address and network element MAC information to nonvolatile devices, configuration of IP resource information is to network element, and operation comes into force.Meanwhile, record IP server address, it is IP relaying network element that this network element is set.
It should be noted that, if (this network element applied for network element MAC from IP server, before network element application IP address, there is no MAC, carry the interim MAC application IP address of random generation, by IP address server for it has distributed a new network element network MAC), so after above-mentioned flow process completes, also need to send request message to IP address server, for deleting the interim MAC of this network element of IP address assignment table, the MAC that this network element is assigned to comes into force, that is to say, for any one network element in network, to only have its address of a MAC of unique identification.
This preferred embodiment can be network equipment distributing IP address automatically, and in the situation that the network equipment does not have the basic configuration information of network communication, still can on secondary IP address server, obtain IP address information, realizes IP layer intercommunication.
Fig. 8 is the network element deployment schematic diagram of preferably implementing according to the present invention, as shown in Figure 8, has 7 network elements, supposes that all network elements all do not have network element MAC Address, there is no IP relevant information, between link layer physical neighborhood, can reach.As example, below the implementation procedure of the preferred embodiment of the present invention is described in detail.
Step S801, selects network element 1 as IP address server, and configuration of IP address is 197.1.4.15/32, and network element MAC is 1:1:1:1:1:1.Wherein, IP address range to be allocated is 197.1.4.16/32~197.1.4.30/32 (note: 32 represent that IP address subnet mask is 255.255.255.255).
Step S802, non-ip address server network element powers on, and checks that this network element does not have IP address, enters step S803.
Step S803, is used random algorithm for this network element generation network element MAC.Particularly, suppose network element 2~network element 7, generate interim MAC Address respectively: 1:1:1:1:2:2,1:1:1:1:2:3,1:1:1:1:2:4,1:1:1:1:2:5,1:1:1:1:2:6,1:1:1:1:2:7.
Step S804, each network element sends IP Address requests message to adjacent network element respectively, puts network element MAC Address request marks: 1, IP Address requests mark: 1 simultaneously.
Step S805, each network element 2~7 receives respectively after adjacent network element IP Address requests, checks whether this network element is IP relaying network element.If not IP relaying network element, so direct dropping packets; If so, the relevant information in record application message in IP application form, and by this application message repeating to IP address server.
Step S806, when network element 2 and 7 IP Address requests message arrive IP address server, IP address server is that network element 2 and 7 distributes respectively address relevant information, can be referring to as following table.
The address information of network element 2 The address information of network element 7
Network element MAC 1:1:1:1:1:2 1:1:1:1:1:7
Network element IP address 197.14.22 197.14.27
Subnet mask 255.255.255.255 255.255.255.255
The interim MAC of network element 1:1:1:1:2:2 1:1:1:1:2:7
Step S807, network element 2 and 7 receives after the address information of asking to arrive, and configuration address information arrives this network element, and enables.Meanwhile, write down IP address server address 197.1.4.15, oneself is set for IP address relaying network element.Because network element 2 and 7 applications do not have MAC Address before IP addresses, so, after getting the MAC Address that IP address server distributes, need to send interim MAC removal request message to IP address server, make to distribute to network element 2 and come into force in 7MAC address.
Step S808, when the IP of network element 3 Address requests message arrives network element 2 again, network element 2 is relaying network elements, the IP Address requests message that network element 2 can forward network element 3 by network layer is to IP address server.In specific implementation process, network element 2 need to be registered this application information in IP application form, to forward and receive the IP address assignment message that IP server returns exactly, supposes it can is as information in following table.
Application MAC Application port
Network element 3 1:1:1:1:2:3 3
Step S809, IP address server receives after the request of network element 3, is network element 3 distributing IP address informations, particularly, can be as following table.
The address information of network element 3
Network element MAC 1:1:1:1:1:3
Network element IP address 197.14.23
Subnet mask 255.255.255.255
The interim MAC of network element 1:1:1:1:2:3
Step S810, network element 3 receives after the address information that IP address server is network element 3 distribution, configures and enable relevant information, sends message and notices the interim MAC of IP address server deletion network element (for example, 1:1:1:1:2:3).
Step S811, other network element IP address application method the like, repeat no more.
Step S812, in network, the allocation flow of the IP address of each network element finishes.
Corresponding to above-mentioned method, a kind of IP distribution system of address is also provided in the present embodiment, Fig. 9 is according to the structured flowchart of the distribution system of the IP address of the embodiment of the present invention, as shown in Figure 9, this system comprises a plurality of application network elements, wherein, each network element in a plurality of application network elements comprises: sending module 91, receiver module 92, acquisition module 93, configuration module 94 and module 95 is set, be elaborated to this structure below.
Sending module 91, for sending the IP application IP addresses message of the identification information that carries this network element to its adjacent network element; Receiver module 92, for receiving the IP address assignment message that carries identification information from IP address server from its adjacent network element; Acquisition module 93, is coupled to receiver module 92, the IP address of distributing for this network element for obtain IP address server from assignment message; Configuration module 94, is coupled to acquisition module 93, for and IP address configuration that acquisition module 93 is obtained give this network element; And module 95 is set, be coupled to configuration module 94, for this network element being set to IP relaying network element, to act on behalf of in a plurality of application network elements other network elements to IP address server application IP address.
Pass through the embodiment of the present invention, network element in network gets behind IP address, self be set to IP relaying network element, acting on behalf of other network elements has solved the in the situation that of can only or relying on some configuration information at the same network segment in correlation technique could to be the problem of network element distributing IP address, to have realized the intercommunication of the IP layer portable between communication apparatus in network to IP address server application IP address.
Figure 10 is the structured flowchart of the network element of the distribution system of IP address according to the preferred embodiment of the invention, as shown in figure 10, each network element in a plurality of application network elements also comprises: generation module 96, preserve module 97, search module 98 and forwarding module 99, below this is elaborated.
Generation module 96, is coupled to sending module 91, in the non-existent situation of the MAC Address at this network element, generates the interim MAC Address of this network element according to random algorithm, and the identification information using interim MAC Address as this network element; The MAC Address that acquisition module 93 also distributes for this network element for obtain IP address server from assignment message; Configuration module 94 is also for configuring the MAC Address of distribution to this network element; And message from the MAC Address of distribution to IP address server that also come into force for send request of sending module 91.
Preferably, after a network element in a plurality of application network elements is set to this network element IP relaying network element, IP relaying network element comprises: preserve module 97, be coupled to receiver module 92, for in the situation that receive the IP application IP addresses message from other network elements from its adjacent network element, preserve identification information and its corresponding port information of other network elements; Search module 98, be coupled to receiver module 92 and preserve module 97, for in the situation that receive from its adjacent network element the IP address assignment message that carries the identification information of other network elements from IP address server, search the port information corresponding with the identification information of other network elements; Forwarding module 99, is coupled to and searches module 98, for IP address server being carried to the IP address assignment message repeating of the identification information of other network elements, gives other network elements.
In sum, the embodiment of the present invention adopts the network element get IP address to be set to the mode of IP relaying network element, having solved the in the situation that of can only or relying on some configuration information at the same network segment in correlation technique could be the problem of network element distributing IP address, realized the intercommunication of the IP layer portable between communication apparatus, increase ease for use and the flexibility of system, improved systematic function.In addition, the scheme of the IP address assignment of the embodiment of the present invention is particularly useful in point-to-point mode, carrying out between various device the situation of communication.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a distribution method for IP address, is characterized in that, comprises the following steps:
Current network sends the IP application IP addresses message of the identification information that carries described current network to its adjacent network element;
Described current network receives the IP address assignment message from the identification information that carries described current network of IP address server from described adjacent network element, from described assignment message, obtaining described IP address server is the IP address that described current network is distributed, and gives described current network by the described IP address configuration of obtaining; And
Described current network is set to IP relaying network element, to act on behalf of other network elements to described IP address server application IP address.
2. method according to claim 1, is characterized in that, in the non-existent situation of MAC Address of described current network, described current network also comprises before sending the IP application IP addresses message of the identification information that carries described current network to its adjacent network element:
Described current network generates the interim MAC Address of described current network according to random algorithm, and the described identification information using described interim MAC Address as described current network.
3. method according to claim 2, it is characterized in that, in the non-existent situation of MAC Address of described current network, it is the IP address that described current network is distributed that described current network is obtained described IP address server from described assignment message, and comprises the described IP address configuration of obtaining to described current network:
It is the MAC Address that described current network is distributed that described current network is obtained described IP address server from described assignment message, and the MAC Address of described distribution is configured to described current network; And
The message that the MAC Address that sends request described distribution to described IP address server comes into force.
4. method according to claim 2, is characterized in that, described IP address server saves as the IP address information that described current network is distributed, and wherein, described IP address information comprises:
Described IP address server is MAC Address, the IP address of described current network and the interim MAC Address of described current network that described current network is distributed.
5. method according to claim 1, is characterized in that, described current network also comprises after being set to IP relaying network element:
Described IP relaying network element, from described adjacent network element receives the IP application IP addresses message from described other network elements, is preserved identification information and its corresponding port information of described other network elements;
Receive the IP address assignment message of the identification information that carries described other network elements from described IP address server from described adjacent network element, described IP relaying network element is searched the port information corresponding with the identification information of described other network elements, and described in described IP address server is carried, the IP address assignment message repeating of the identification information of other network elements is to described other network elements.
6. method according to claim 1, is characterized in that, the MAC Address that described identification information is described current network.
7. method according to claim 1, is characterized in that, described IP application IP addresses message comprises:
Described identification information, MAC Address application mark and IP application IP addresses mark.
8. a distribution system for IP address, comprises a plurality of application network elements, it is characterized in that, each network element in described a plurality of application network elements comprises:
Sending module, for sending the IP application IP addresses message of the identification information that carries this network element to its adjacent network element;
Receiver module, for receiving the IP address assignment message that carries described identification information from IP address server from described adjacent network element;
Acquisition module is the IP address that described network element distributes for obtain described IP address server from described assignment message;
Configuration module, gives described network element for IP address configuration that described acquisition module is obtained; And
Module is set, for described network element, is set to IP relaying network element, to act on behalf of in described a plurality of application network element other network elements to described IP address server application IP address.
9. system according to claim 8, is characterized in that, each network element in described a plurality of application network elements also comprises:
Generation module, in the non-existent situation of the MAC Address at described network element, generates the interim MAC Address of described network element according to random algorithm, and the described identification information using described interim MAC Address as described network element;
Described acquisition module is also the MAC Address that described network element distributes for obtain described IP address server from described assignment message; Described configuration module is also for configuring the MAC Address of described distribution to described network element; And message from described distribution to described IP address server that also come into force for the MAC Address that sends request of described sending module.
10. system according to claim 8, is characterized in that, after a network element in described a plurality of application network elements is set to this network element IP relaying network element, described IP relaying network element comprises:
Preserve module, in the situation that receive the IP application IP addresses message from described other network elements from described adjacent network element, preserve identification information and its corresponding port information of described other network elements;
Search module, in the situation that receive from described adjacent network element the IP address assignment message that carries the identification information of described other network elements from described IP address server, search the port information corresponding with the identification information of described other network elements; And
Forwarding module, for the IP address assignment message repeating of identification information that described IP address server carried to described other network elements to described other network elements.
CN201010154193.8A 2010-04-20 2010-04-20 IP address distributing method and system Expired - Fee Related CN101808145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010154193.8A CN101808145B (en) 2010-04-20 2010-04-20 IP address distributing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010154193.8A CN101808145B (en) 2010-04-20 2010-04-20 IP address distributing method and system

Publications (2)

Publication Number Publication Date
CN101808145A CN101808145A (en) 2010-08-18
CN101808145B true CN101808145B (en) 2014-11-05

Family

ID=42609764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010154193.8A Expired - Fee Related CN101808145B (en) 2010-04-20 2010-04-20 IP address distributing method and system

Country Status (1)

Country Link
CN (1) CN101808145B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469170B (en) * 2010-11-03 2014-04-16 英业达集团(天津)电子技术有限公司 Method for generating static Internet protocol (IP) address under disk operating system (DOS)
KR101490409B1 (en) * 2014-02-13 2015-02-05 현대자동차주식회사 Control unit for in-vehicle ethernet and method for controlling therof
CN105791458B (en) * 2016-02-29 2020-01-03 新华三技术有限公司 Address configuration method and device
CN109076020A (en) * 2016-03-30 2018-12-21 Idac控股公司 System and method for supporting Hypomobility equipment in next generation wireless network
CN113098702A (en) * 2019-12-23 2021-07-09 中兴通讯股份有限公司 Method for allocating and determining network element IP address, network element and management domain network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494669A (en) * 2009-03-10 2009-07-29 华为技术有限公司 Method and apparatus for distributing IP address for user terminal
CN101534328A (en) * 2009-04-14 2009-09-16 华为技术有限公司 Relay agent generation method, single boards and network equipment
CN101600156A (en) * 2009-06-03 2009-12-09 南京邮电大学 A kind of auto-allocation method of addresses of mobile ad hoc networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494669A (en) * 2009-03-10 2009-07-29 华为技术有限公司 Method and apparatus for distributing IP address for user terminal
CN101534328A (en) * 2009-04-14 2009-09-16 华为技术有限公司 Relay agent generation method, single boards and network equipment
CN101600156A (en) * 2009-06-03 2009-12-09 南京邮电大学 A kind of auto-allocation method of addresses of mobile ad hoc networks

Also Published As

Publication number Publication date
CN101808145A (en) 2010-08-18

Similar Documents

Publication Publication Date Title
CN106559292B (en) Broadband access method and device
CN101019381B (en) Maintaining secrecy of assigned unique local addresses for IPv6 nodes within a prescribed site during access of a wide area network
CN102577255B (en) Layer 2 seamless site extension of enterprises in cloud computing
US20130007233A1 (en) Device Abstraction in Autonomous Wireless Local Area Networks
US20110246663A1 (en) Broadband network access
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
CN101272305B (en) Access point/user set network entry method, access point and network management device
CN104104747A (en) Method and device for message transmission
CN101808145B (en) IP address distributing method and system
CN107147580B (en) Tunnel establishment method and communication system
CN107094110B (en) DHCP message forwarding method and device
KR20080016471A (en) Ipv6 support method for bridge extension using wireless communications system
CN101582888B (en) Method for creating neighbor discovery table item and server
CN110213148B (en) Data transmission method, system and device
CN103248720A (en) Method and device for inquiring physical address
CN101873320B (en) Client information verification method based on DHCPv6 relay and device thereof
CN101150517A (en) Packet transmission method and device
CN105187311A (en) Message forwarding method and message forwarding device
CN103973833A (en) Method and device for updating ARP cache
CN109495369A (en) A kind of message forwarding method and device
CN113938427A (en) Communication method and system, and routing node
US9866524B2 (en) Home gateway apparatus and packet transfer method
CN103037361A (en) Internet protocol (IP) distribution system in wireless Mesh network based on Ad-hoc and IP distribution method in the wireless Mesh network based on the Ad-hoc
CN102439918A (en) Method, device and system for transmittig message
CN106375489B (en) Method and device for processing Media Access Control (MAC) address

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200817

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Patentee after: Nanjing Zhongxing Software Co.,Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Patentee before: ZTE Corp.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141105

Termination date: 20210420