CN102970383B - A kind of method and device, method and device of information processing for distributing IP address - Google Patents

A kind of method and device, method and device of information processing for distributing IP address Download PDF

Info

Publication number
CN102970383B
CN102970383B CN201210453791.4A CN201210453791A CN102970383B CN 102970383 B CN102970383 B CN 102970383B CN 201210453791 A CN201210453791 A CN 201210453791A CN 102970383 B CN102970383 B CN 102970383B
Authority
CN
China
Prior art keywords
address
allocation model
distribution
network unit
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210453791.4A
Other languages
Chinese (zh)
Other versions
CN102970383A (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.)
ZTE Corp
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 CN201210453791.4A priority Critical patent/CN102970383B/en
Publication of CN102970383A publication Critical patent/CN102970383A/en
Application granted granted Critical
Publication of CN102970383B publication Critical patent/CN102970383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a kind of method and device, method and device of information processing for distributing IP address, the method for distributing IP address is applied to an optical network unit, which connects an electronic equipment, and this method includes:It receives the IP address that electronic equipment is sent and finds message, according to current IP address allocation model, distribute IP address electron equipment.It can ensure that electronic equipment receives desired IP address by this method, be conducive to the stability of network.

Description

A kind of method and device, method and device of information processing for distributing IP address
Technical field
The present invention relates to field of communication technology more particularly to a kind of distribute the method and device of IP address, information processing Method and device.
Background technology
GPON(Gigabit-capable Passive Optical Network, gigabit passive optical network)It is a kind of Using point-to-multipoint network structure, passive fiber transmission mode, based on GEM(GPON EncapsulationMethod, GPON envelopes Dress mode)Frame encapsulation, the broadband access technology for being capable of providing a variety of integrated services.
GPON is by local side apparatus OLT(Optical Line Terminal, optical line terminal), ustomer premises access equipment ONU (Optical Network Unit, optical network unit)With connection circuit ODN(Optical DistributeNetwork, light point Distribution network)Three parts form.Optical network unit provides online, IPTV to the user(InternetProtocol Television, Interactive Internet TV)、VoIP(Voice over Internet Protocol, the voice based on data network)Etc. a variety of industry The demand of business service.And the electronic equipment of optical network unit connection, such as PC, IPTV TV, voip phone machine, all there are one common Point needs to be assigned to an available IP address to realize network communication.Wherein, the IP address of electronic equipment can static state refer to It is fixed, DHCP can also be passed through(Dynamic Host Configure Protocol, dynamic host configuration protocol)Server dynamic Distribution.
When electronic equipment needs business service, an IP address assignment message is sent to optical network unit with broadcast mode, with After the optical network unit of electronic equipment connection receives IP address discovery message, IP address assignment message is passed through into passive optical network Network port is sent to optical line terminal, and IP address discovery message is sent to the DHCP service of outer net equipment by optical line terminal again Device, the Dynamic Host Configuration Protocol server of optical network unit and the Dynamic Host Configuration Protocol server of outer net equipment receive IP address and find message, all send IP Address electron equipment, electronic equipment generally select the IP address first received and find response message.
Present inventor during the embodiment of the present application technical solution is realized, at least hair exist in the prior art as Lower technical problem:
In the prior art, optical network unit can open Dynamic Host Configuration Protocol server, and IP address is distributed for example for electronic equipment 192.168.x.x, in the case where outer net equipment also opens Dynamic Host Configuration Protocol server, due to the electronic equipment of optical network unit connection IP address find message usually sent with broadcast mode, in this way, optical network unit and the Dynamic Host Configuration Protocol server of outer net equipment are all received The IP address that the electronic equipment connected to optical network unit is sent finds message, and then can respond IP address and find response report Text causes electronic equipment that will receive two IP address and finds response message, and electronic equipment generally selects the IP address first received It was found that response message, so, the IP address there are electronic equipment selection finds that response message may not be electronic equipment reality The IP address needed finds the technical issues of response message.
Further, due to finding that response message may not be the IP of electronic equipment actual needs there are the IP address of selection The technical issues of address discovery response message, so, find that response message is not electronic equipment actual needs receiving IP address Response message when, electronic equipment just will appear mistake during operation, cause electronic equipment can not obtain business clothes Business, and then there is technical issues that be unfavorable for network, and then the problem of poor user experience occur.
Invention content
The embodiment of the present application, which provides, a kind of distributes IP address, the method for information processing and distribution IP address, information processing Device, solve exist in the prior art selection IP address find response message may not be what electronic equipment was actually needed IP address finds the technical issues of response message.
On the one hand the embodiment of the present application provides a kind of distribution IP address method, applied to an optical network unit, the light Network element connects an electronic equipment, the method includes:It receives the IP address that the electronic equipment is sent and finds message;According to The current IP address allocation model, distribution IP address give the electronic equipment.
Preferably, described according to current IP address allocation model, distribution IP address is also wrapped to before the electronic equipment It includes:According to the property value of current IP address allocation model, current IP address allocation model is determined.
Preferably, the optical network unit has the first IP address distributor, the optical network unit passes through optical link Terminal is connect with the second IP address distributor, and described according to the current IP address allocation model, distribution IP address is to described Electronic equipment, specially:When the current IP address allocation model is default mode, by the first IP address distributor Or the second IP address distributor distribution IP address gives the electronic equipment.
Preferably, the optical network unit has the first IP address distributor, it is described according to the current IP address point With pattern, distribution IP address gives the electronic equipment, specially:When the current IP address allocation model is local mode, The electronic equipment is given by the first IP address distributor distribution IP address.
Preferably, the optical network unit is connect by optical line terminal with the second IP address distributor, the basis The current IP address allocation model, distribution IP address give the electronic equipment, specially:
When the current IP address allocation model is outer net pattern, by the second IP address distributor distribution IP The electronic equipment is given in location.
Preferably, described according to the current IP address allocation model, distribution IP address gives the electronic equipment, specifically For:When the current IP address allocation model is prohibited mode, abandons the IP address and find message.
One embodiment of the invention additionally provides a kind of method of information processing, applied to an optical network unit, the light net Network unit connects an electronic equipment and an optical line terminal respectively, the method includes:Obtain what the optical line terminal was sent IP address distributes information;Information is distributed based on the IP address, obtains the property value of IP address allocation model;Based on the IP The property value of location allocation model determines the current IP address allocation model of the optical network unit, wherein, according to the current IP Address allocation pattern distributes IP address to the electronic equipment.
Preferably, the optical network unit corresponds to a management entity, the management entity corresponds to IP address pattern, in institute It states before obtaining the IP address distribution information that the optical line terminal is sent, the method further includes:It is whole to receive the optical link Hold the interactive information sent;Based on the interactive information, an instance identification information is obtained;Based on the instance identification information, sentence Whether the instance identification information of breaking corresponds to the management entity;When the instance identification information corresponds to the management entity, Determine that the interactive information distributes information for the IP address.
Preferably, described distribute information based on the IP address, the property value of IP address allocation model is obtained, specially: Obtain the entity category information carried in the interactive information;Based on the entity category information, the IP address allocation model is obtained Property value.
Preferably, the property value based on the IP address allocation model, the current IP of the optical network unit is determined Address allocation pattern, specially:The property value of the IP address allocation model is configured to the agreement of distribution IP address.
Preferably, in the property value based on the IP address allocation model, the current of the optical network unit is determined After IP address allocation model, the method further includes:An IP address assignment response information is returned to the optical line terminal.
Another embodiment of the present invention also provides a kind of device for distributing IP address, applied to an optical network unit, the light Network element connects an electronic equipment, and the device of the distribution IP address includes:Receiving module, for receiving the electronic equipment The IP address of transmission finds message;Distribution module, for according to the current IP address allocation model, distribution IP address to be to described Electronic equipment.
Preferably, described device further includes:Determining module, for the property value according to current IP address allocation model, really Determine current IP address allocation model.
Preferably, described device have the first IP address distributor, the optical network unit by optical line terminal with Second IP address distributor connects, and the device of the distribution IP address further includes first processing module, described current for working as When IP address allocation model is default mode, the first IP address distributor or the second IP address distributor are controlled IP address is distributed to the electronic equipment.
Preferably, described device has the first IP address distributor, the device for distributing IP address further includes second processing Module, for when the current IP address allocation model is local mode, controlling the first IP address distributor distribution IP address gives the electronic equipment.
Preferably, described device is connect by optical line terminal with the second IP address distributor, the distribution IP address Device further include third processing module, for when the current IP address allocation model be outer net pattern when, the 2nd IP Address distributing device distribution IP address gives the electronic equipment.
Preferably, described device further includes:Fourth processing module, for working as the current IP address allocation model to forbid During pattern, abandon the IP address and find message.
Another embodiment of the present invention also provides a kind of device of information processing, applied to an optical network unit, the light net Network unit connects an electronic equipment and an optical line terminal respectively, and the device of described information processing includes:First obtains module, uses Information is distributed in the IP address for obtaining the optical line terminal transmission;Second obtains module, for being based on the IP address distribution Information obtains the property value of IP address allocation model;First determining module, for the attribute based on the IP address allocation model Value determines the current IP address allocation model of the optical network unit, wherein, according to the current IP address allocation model to institute State electronic equipment distribution IP address.
Preferably, the optical network unit corresponds to a management entity, the management entity is used to that the optical-fiber network list to be configured The IP address allocation model of member, described device further include:Information exchange module, for receiving the interaction letter of optical line terminal transmission Breath;Third obtains module, based on the interactive information, obtains an instance identification information;Judgment module, for being based on the example Identification information, judges whether the instance identification information corresponds to the management entity;Second determining module, for if for point The management entity with IP address obtains IP address distribution information.
Preferably, described device further includes:Acquisition module, for obtaining the entity class carried in the interactive information letter Breath;4th obtains module, for being based on the entity category information, obtains the property value of the IP address allocation model.
Preferably, described device further includes:Protocol module, for the property value of the IP address allocation model to be configured to Distribute the agreement of IP address.
Preferably, described device further includes:Module is returned to, for returning to an IP address assignment response information to the light Road terminal.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:This It invents in an embodiment, due to after the IP address discovery message that electronic equipment is sent is received, being divided according to the current IP address With pattern, distribution IP address solves the IP address discovery response that selection exists in the prior art to the electronic equipment Message may not be the technical issues of IP address of electronic equipment actual needs finds response message, and then ensure electronic equipment The IP address for receiving electronic equipment actual needs finds the technique effect of response message, i.e. IP address.
Further, since the IP address that electronic equipment receives finds the IP address that response message is electronic equipment actual needs It was found that response message, electronic equipment can be based on the IP address and find that response message obtains correct business service, and then can The technical issues of effectively solving that the stability for being unfavorable for network exists in the prior art realizes the technology for improving network stabilization Effect also improves user experience.
Further, due to can according to current IP address pattern allocation model, for example, default mode, local mode, Outer net pattern or prohibited mode find that message carries out different processing to IP address, have with disclosure satisfy that diversity distribution IP The technique effect of the demand of location, also further improves user experience.
Description of the drawings
Fig. 1 is the network structure that IP address is distributed in one embodiment of the application;
Fig. 2 is the flow chart of information processing method in one embodiment of the application;
Fig. 3 is the flow chart that IP address method is distributed in one embodiment of the application;
Fig. 4 is the Organization Chart of the device of information processing in one embodiment of the application;
Fig. 5 is the Organization Chart of the device of distribution IP address in one embodiment of the application.
Specific embodiment
The embodiment of the present application, which provides, a kind of distributes IP address, the method for information processing and distribution IP address, information processing Device, solve exist in the prior art selection IP address find response message may not be what electronic equipment was actually needed The technical issues of response message.
For the technical solution of one embodiment of the invention to solve the problem above-mentioned, general thought is as follows:
It receives the IP address that electronic equipment is sent and finds message;According to current IP address allocation model, distribution IP address is given Electronic equipment, thus solve exist in the prior art selection IP address find response message may not be electronic equipment reality The IP address that border needs finds the technical issues of response message, and then ensures that electronic equipment receives electronic equipment actual needs IP address finds the technique effect of response message, i.e. IP address.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper The method for stating the distribution IP address of technical solution is described in detail.
As shown in Figure 1, electronic equipment 11 is connect with optical network unit 12, optical network unit 12 by Optical Distribution Network 14 with Optical line terminal 15 connects, and the second IP address distributor 16 in outer net is connect with optical line terminal 15, and electronic equipment 11 is logical It crosses the first IP address distributor 13 or the second IP address distributor 16 obtains IP address, corresponded to so as to fulfill electronic equipment 11 Business.
The embodiment of the present application provides a kind of method of information processing, and applied to optical network unit 12, optical network unit 12 divides An electronic equipment 11 and an optical line terminal 15 are not connected.
It please refers to Fig.2, the method for the information processing in the embodiment of the present invention includes:
Step 201:Obtain the IP address distribution information that optical line terminal 15 is sent;
Step 202:Information is distributed based on IP address, obtains the property value of IP address allocation model;
Step 203:Based on the property value of IP address allocation model, the current IP address distribution mould of optical network unit 12 is determined Formula, wherein, distribute IP address according to current IP address allocation model electron equipment 11.
After above-mentioned steps 201, step 202, step 203, the method for the embodiment of the present application can just obtain currently IP address allocation model, the method to realize distribution IP address provide IP address allocation model.
In order to become apparent from the specific implementation process for the method for illustrating the embodiment of the present application information processing, now with electronic equipment 11 is illustrate for computer, optical network unit 12 connects computer.
Certainly, in another embodiment of the invention, electronic equipment 11 can also be set-top box, IPTV TV or VoIP The electronic equipments such as telephone set, the present invention are not restricted.
For step 201, i.e.,:Obtain the IP address distribution information that optical line terminal 15 is sent.In this example embodiment specific Realization process is as follows:
In one embodiment, when user is needed using online computing, computer needs to be assigned to an available IP address To realize network communication.After user opens computer, computer is in realization before net service business, by optical line terminal 15 It sends IP address and distributes information to optical network unit 12, optical network unit 12 receives IP address distribution information, i.e. optical link is whole What end 15 directly transmitted is exactly IP address distribution information, and optical network unit 12 can be directly obtained IP address distribution information.
After step 201 is performed, the method in the embodiment of the present invention enters step 202:Information is distributed based on IP address, Obtain the property value of IP address allocation model.
Continue along using an embodiment, step 202 the specific implementation process is as follows:
Optical network unit 12 distributes information based on the IP address received, obtains the property value of IP address allocation model, example Default mode such as is represented with 0, local mode is represented with 1, outer net pattern is represented with 2, prohibited mode is represented with 3.
After performing step 202, the method in the embodiment of the present invention enters step 203:Based on IP address allocation model Property value, determine the current IP address allocation model of optical network unit 12, wherein, according to current IP address allocation model to electricity Sub- equipment distributes IP address.
Continue along using an embodiment, step 203 the specific implementation process is as follows:
Property value of the optical network unit 12 based on IP address allocation model, with can determine the current IP of optical network unit 12 Location allocation model, such as when the property value of IP address allocation model is 1, determine the current IP address distribution mould of optical network unit 12 Formula is local mode.
In another embodiment, because optical line terminal 15 mainly passes through OMCI(ONT Managementand Control Interface, ONT management control interfaces)To manage and control optical network unit 12, the international standard of OMCI ITU-T G984.4 are mainly by defining a series of ME(ManagementEntity, management entity)And between them Relationship realize various different business, so in the present embodiment, increasing a ME newly, which is Extended Physical Path Termination Point UNI(The physical channel destination node Customer Premises Network interface of extension), Me class(Entity class)Value is defined as 253, and certainly, in other embodiments, which can also choose other values, for being configured The related additional data of physical channel destination node Customer Premises Network interface entities class(Such as the property value of IP address allocation model), Optical network unit 12 automatically creates the physical channel termination of an extension for each physical channel destination node Customer Premises Network interface Point Customer Premises Network interface, the ME define following two attributes:
Entity identifier:Each example of the ME is gathered around there are one unique ID, and passes through the ID, association physical channel termination One example of point Customer Premises Network interface entities class, which is read only attribute, forces to come into force, and length for example can be 2 Byte;
IP address allocation model:When optical network unit 12 opens IP address distribution function, and outer net equipment also opens IP During address allocation function, the attribute be used for control electronics 11 be from optical network unit 12 it is local obtain IP address or from Outer net IP address distributor obtains IP address, and the attribute value is for example as follows:
0:Default mode does not control the mode for obtaining IP address;
1:Local mode obtains IP address from the first IP address distributor 13 in optical network unit 12;
2:Outer net pattern obtains IP address from the second IP address distributor 16 of outer net equipment;
3:Prohibited mode is forbidden obtaining IP address.
When the ME is just created, the default value of the attribute is 0, and be read-write, and optional to come into force, length is, for example, 1 byte.
Therefore, in the present embodiment, before step 201 is performed, step is further included:Receive the friendship that optical line terminal is sent Mutual information;Based on interactive information, an instance identification information is obtained;Whether Case-based Reasoning identification information judges instance identification information Corresponding management entity;When instance identification information corresponds to management entity, determine that interactive information distributes information for IP address.
Continue along using an embodiment, step the specific implementation process is as follows:
Optical line terminal 15 sends an interactive information(E.g. OMCI message)To optical network unit 12, optical network unit 12 Based on the interactive information received, instance identification information is obtained(Such as above-mentioned described unique ID), e.g. numerical value 11, base Judge whether instance identification information corresponds to above-mentioned management entity in instance identification information 11, when instance identification information 11 correspond to it is above-mentioned During management entity, determine that the interactive information received distributes information for IP address.
When the interactive information for determining to receive distributes information for IP address, continue edge and use an embodiment, step 202 The specific implementation process is as follows:
The entity category information carried in interactive information is obtained, entity category information is used for the attribute of configuration of IP address allocation pattern Value based on entity category information, obtains the property value of IP address allocation model, such as represents default mode with 0, is represented with 1 local Pattern, outer net pattern is represented with 2, and prohibited mode is represented with 3, and in the present embodiment, such as the property value of carrying is 1.
Continue along using an embodiment, step 203 the specific implementation process is as follows:
Property value of the optical network unit 12 based on IP address allocation model determines the current IP address point of optical network unit 12 With pattern.Specifically, e.g. property value is configured in the agreement of distribution IP address.
After step 203 is performed, the method in the embodiment of the present invention further includes step:Return to an IP address assignment response Information is to optical line terminal.
Continue along an embodiment is used, after optical network unit 12 determines current IP address allocation model, with returning to an IP For location response message to optical line terminal, optical line terminal 15 can know that interactive information processing procedure terminates.
After IP address allocation model has been configured in the method in above-described embodiment, optical network unit 12 can be according to this IP address allocation model is distributed IP address for electronic equipment 11, please refers to Fig.3, the distribution IP address in the embodiment of the present invention Method includes:
Step 301:It receives the IP address that electronic equipment 11 is sent and finds message;
Step 302:According to current IP address allocation model, distribution IP address electron equipment 11.
After above-mentioned steps 301, step 302, the method for the embodiment of the present application just can effectively solve the problem that existing skill Find that response message may not be the technology for the response message that electronic equipment 11 is actually needed there are the IP address of selection in art Problem realizes that electronic equipment 11 receives the IP address discovery response message of the actual needs of electronic equipment 11.
Wherein, step 301 the specific implementation process is as follows:
Before computer realizes service on net business, computer will send an IP address and find message to optical network unit 12, for obtaining an available IP address, at this moment optical network unit 12 will receive the IP address discovery report of computer transmission Text.
After step 301 is performed, the method in the embodiment of the present invention enters step 302:It is distributed according to current IP address Pattern, distribution IP address electron equipment 11, specifically includes:Optical network unit 12 has the first IP address distributor 13, light Network element 12 is connect by optical line terminal 15 with the second IP address distributor 16, when current IP address allocation model is silent When recognizing pattern, IP address electron equipment 11 is distributed by the first IP address distributor 13 or the second IP address distributor 16; When current IP address allocation model is local mode, IP address electron equipment is distributed by the first IP address distributor 13 11;When current IP address allocation model is outer net pattern, distributes IP address electron by the second IP address distributor 16 and set Standby 11;When current IP address allocation model is prohibited mode, abandons IP address and find message.
Continue along using an embodiment, step 302 the specific implementation process is as follows:
As shown in Figure 1, optical network unit 12 has the first IP address distributor 13, such as the first Dynamic Host Configuration Protocol server, and In local unlatching, modification or the first Dynamic Host Configuration Protocol server can be closed, optical network unit 12 passes through 15 and the 2nd IP of optical line terminal Address distributing device 16, such as the connection of the second Dynamic Host Configuration Protocol server.
When current IP address allocation model is default mode, report is found since computer sends IP address with broadcast mode Text, computer directly transmit IP address and find message to optical network unit 12, and optical network unit 12 is receiving IP address discovery report After text, IP address is found that message is sent to optical line terminal 15 by passive optical network port, optical line terminal 15 again will IP address finds that message is forwarded to the second Dynamic Host Configuration Protocol server of outer net equipment, due to the first Dynamic Host Configuration Protocol server and the second DHCP service Device can receive IP and find message, so the first Dynamic Host Configuration Protocol server and the second Dynamic Host Configuration Protocol server can all respond IP address and find report Text, the first Dynamic Host Configuration Protocol server distribute IP address 192.168.1.2 for computer, and the second Dynamic Host Configuration Protocol server distributes IP address for computer 10.46.50.2, computer can not be accepted or rejected as needed, carry out choice IP address for example according to the first preset rules first to connect The IP address received is realizing network communication.
When current IP address allocation model is local mode, although computer still sends IP address with broadcast mode finds report Text, but after optical network unit 12 receives IP address discovery message, IP address will not be found that message be sent to second Dynamic Host Configuration Protocol server.Only the first Dynamic Host Configuration Protocol server receives IP address and finds message, the first dhcp server response IP address hair Existing message distributes IP address 192.168.1.2 for computer.
When current IP address allocation model is outer net pattern, computer sends IP address with broadcast mode and finds message, electricity Brain directly transmits IP address and finds message to optical network unit 12, optical network unit 12 receive IP address find message it Afterwards, IP address is found that message is sent to optical line terminal by passive optical network port, while optical network unit 12 abandons IP IP address discovery message is forwarded to the second Dynamic Host Configuration Protocol server of outer net equipment by address discovery message, optical line terminal 15 again, and second Dhcp server response IP address finds message, and IP address 10.46.50.2 is distributed for computer.
When current IP address allocation model is prohibited mode, one broadcast mode of computer sends IP address and finds message, light After network element receives IP address discovery message, directly abandon the IP address received and find message, do not make any processing, It is not responding to IP address and finds message.
Before step 302, step is further included:According to the property value of current IP address allocation model, with determining current IP Location allocation model.
Continue along using an embodiment, the step the specific implementation process is as follows:
According to the property value of current IP address allocation model, current IP address allocation model is determined, such as represent and give tacit consent to 0 Pattern represents local mode with 1, represents outer net pattern with 2, prohibited mode is represented with 3.Message point is found according to current IP address The numerical value of property value with pattern, it is possible to determine the current IP address allocation model of optical network unit 12.
Based on same inventive concept, another embodiment of the present invention provides a kind of device of information processing, applied to optical-fiber network Unit 12.The device of information processing is used to implement the method in Fig. 2 and its specific embodiment, please refers to Fig.4, and Fig. 4 is this implementation The Organization Chart of the device of example information processing.
As shown in figure 4, the device of information processing provided in this embodiment includes:First obtains module 401, for obtaining light The IP address distribution information that line terminal 15 is sent;Second obtains module 402, for being based on IP address distribution information, obtains IP The property value of address allocation pattern;First determining module 403 for the property value based on IP address allocation model, determines light net The current IP address allocation model of network unit 12, wherein, according to current IP address allocation model electron equipment 11 with distributing IP Location.
Wherein, optical network unit 12 corresponds to a management entity 43, and management entity 43 is used to be configured the IP of optical network unit 12 Address allocation pattern, the device of information processing further include:Information exchange module 404, for receiving the transmission of optical line terminal 15 Interactive information;Third obtains module 405, based on interactive information, obtains an instance identification information;Judgment module 406, for being based on Instance identification information, judges whether instance identification information corresponds to management entity;Second determining module 407, for if for point Management entity with IP address obtains IP address distribution information.
Wherein, device further includes:Acquisition module 408, for obtaining the entity category information carried in interactive information;4th obtains Module 409 is obtained, for being based on entity category information, obtains the property value of IP address allocation model.
Wherein, device further includes:Protocol module 410, for the property value based on IP address allocation model, configuration electronics is set The IP address that preparation is sent finds message.
Wherein, device further includes:Module 411 is returned to, for returning to an IP address assignment response information to optical line terminal 42。
Various change mode and specific example in method in previous embodiment are equally applicable to the information of the present embodiment The device of processing, by the detailed description of the aforementioned method to information processing, those skilled in the art are clear that this The implementation of the device of information processing in embodiment, so in order to illustrate the succinct of book, this will not be detailed here.
Another embodiment of the present invention provides a kind of device for distributing IP address, applied to optical network unit 12.With distributing IP The device of location is used to implement the method in Fig. 3 and its specific embodiment, please refers to Fig. 5, and Fig. 5 is that the present embodiment distributes IP address Device architecture figure.
The device of distribution IP address includes:Receiving module 501, the IP address for receiving the transmission of electronic equipment 11 distribute report Text;Distribution module 502, for according to current IP address allocation model, distribution IP address electron equipment 11.
Wherein, device further includes:First determination unit 503, for the property value according to current IP address allocation model, really Determine current IP address allocation model.
Wherein, device has the first IP address distributor 13, and the device for distributing IP address further includes first processing module 504, for when current IP address allocation model is default mode, controlling the first IP address distributor 13 or the second IP address Distributor 16 distributes IP address electron equipment.
Wherein, device has the first IP address distributor 13, and the device for distributing IP address further includes Second processing module 505, for when current IP address allocation model is local mode, control the first IP address distributor 13 distribution IP address to be given Electronic equipment.
Wherein, device has the first IP address distributor 13, and the device for distributing IP address further includes third processing module 506, for when current IP address allocation model is outer net pattern, the second IP address distributor 16 to distribute IP address electron Equipment.
Wherein, the device for distributing IP address further includes:Fourth processing module 507, for working as current IP address allocation model During for prohibited mode, abandon IP address and find message.
Various change mode and specific example in method in previous embodiment are equally applicable to the distribution of the present embodiment The device of IP address, by the aforementioned detailed description to distributing the method for IP address, those skilled in the art can clearly know The implementation of the device of IP address is distributed in road the present embodiment, so in order to illustrate the succinct of book, this will not be detailed here.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:This It invents in an embodiment, due to after the IP address discovery message that electronic equipment is sent is received, being divided according to the current IP address With pattern, distribution IP address solves the IP address discovery response that selection exists in the prior art to the electronic equipment Message may not be the technical issues of IP address of electronic equipment actual needs finds response message, and then ensure electronic equipment The IP address for receiving electronic equipment actual needs finds the technique effect of response message, i.e. IP address.
Further, since the IP address that electronic equipment receives finds the IP address that response message is electronic equipment actual needs It was found that response message, electronic equipment can be based on the IP address and find that response message obtains correct business service, and then can The technical issues of effectively solving that the stability for being unfavorable for network exists in the prior art realizes the technology for improving network stabilization Effect also improves user experience.
Further, due to can according to current IP address pattern allocation model, for example, default mode, local mode, Outer net pattern or prohibited mode find that message carries out different processing to IP address, have with disclosure satisfy that diversity distribution IP The technique effect of the demand of location, also further improves user experience.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (22)

1. a kind of method for distributing IP address, applied to an optical network unit, the optical network unit connects an electronic equipment, It is characterized in that, the method includes:
It receives the IP address that the electronic equipment is sent and finds message;
According to current IP address allocation model, distribution IP address gives the electronic equipment;
Wherein, a variety of IP address allocation models are preset in the optical network unit.
2. the method as described in claim 1, which is characterized in that described according to current IP address allocation model, distribution IP Location is given before the electronic equipment, further includes:
According to the property value of current IP address allocation model, current IP address allocation model is determined.
3. the method as described in claim 1, which is characterized in that the optical network unit has the first IP address distributor, The optical network unit is connect by optical line terminal with the second IP address distributor, described according to the current IP address point With pattern, distribution IP address gives the electronic equipment, specially:
When the current IP address allocation model is default mode, by the first IP address distributor or the 2nd IP Address distributing device distribution IP address gives the electronic equipment.
4. the method as described in claim 1, which is characterized in that the optical network unit has the first IP address distributor, It is described according to the current IP address allocation model, distribution IP address is to the electronic equipment, specially:
When the current IP address allocation model is local mode, given by the first IP address distributor distribution IP address The electronic equipment.
5. the method as described in claim 1, which is characterized in that the optical network unit is by optical line terminal and the 2nd IP Location distributor connection, described according to the current IP address allocation model, distribution IP address gives the electronic equipment, specifically For:
When the current IP address allocation model is outer net pattern, given by the second IP address distributor distribution IP address The electronic equipment.
6. the method as described in claim 1, which is characterized in that it is described according to the current IP address allocation model, distribute IP The electronic equipment is given in address, specially:
When the current IP address allocation model is prohibited mode, abandons the IP address and find message.
7. a kind of method of information processing, applied to an optical network unit, the optical network unit connects an electronic equipment respectively With an optical line terminal, which is characterized in that the method includes:
Obtain the IP address distribution information that the optical line terminal is sent;
Information is distributed based on the IP address, obtains the property value of IP address allocation model;
Based on the property value of the IP address allocation model, the current IP address allocation model of the optical network unit is determined, In, according to the current IP address allocation model IP address is distributed to the electronic equipment;
Wherein, a variety of IP address allocation models are preset in the optical network unit.
8. the method for claim 7, which is characterized in that the optical network unit corresponds to a management entity, the management Entity is used to be configured the IP address allocation model of the optical network unit, in the IP for obtaining the optical line terminal and sending Before location distribution information, the method further includes:
Receive the interactive information that the optical line terminal is sent;
Based on the interactive information, an instance identification information is obtained;
Based on the instance identification information, judge whether the instance identification information corresponds to the management entity;
When the instance identification information corresponds to the management entity, determine the interactive information for IP address distribution letter Breath.
9. method as claimed in claim 8, which is characterized in that it is described to distribute information based on the IP address, obtain IP address The property value of allocation model, specially:
Obtain the entity category information carried in the interactive information;
Based on the entity category information, the property value of the IP address allocation model is obtained.
10. method as claimed in claim 8, which is characterized in that the property value based on the IP address allocation model, really The current IP address allocation model of the fixed optical network unit, specially:
The property value of the IP address allocation model is configured to the agreement of distribution IP address.
11. the method for claim 7, which is characterized in that in the property value based on the IP address allocation model, After the current IP address allocation model for determining the optical network unit, the method further includes:
An IP address assignment response information is returned to the optical line terminal.
12. a kind of device for distributing IP address, applied to an optical network unit, the optical network unit connects an electronic equipment, It is characterized in that, the device of the distribution IP address includes:
Receiving module finds message for receiving the IP address that the electronic equipment is sent;
Distribution module, for according to current IP address allocation model, distribution IP address to give the electronic equipment;
Wherein, a variety of IP address allocation models are preset in the optical network unit.
13. device as claimed in claim 12, which is characterized in that the device of the distribution IP address further includes:
Determining module for the property value according to current IP address allocation model, determines current IP address allocation model.
14. device as claimed in claim 12, which is characterized in that the device of the distribution IP address is with the first IP address point With device, the optical network unit is connect by optical line terminal with the second IP address distributor, the distribution IP address Device further includes first processing module, for when the current IP address allocation model is default mode, controlling described first IP address distributor or the second IP address distributor distribution IP address give the electronic equipment.
15. device as claimed in claim 12, which is characterized in that the device of the distribution IP address is with the first IP address point With device, the device for distributing IP address further includes Second processing module, is local for working as the current IP address allocation model During pattern, the first IP address distributor distribution IP address is controlled to the electronic equipment.
16. device as claimed in claim 12, which is characterized in that it is described distribution IP address device by optical line terminal with Second IP address distributor connects, and the device of the distribution IP address further includes third processing module, described current for working as When IP address allocation model is outer net pattern, the second IP address distributor distribution IP address gives the electronic equipment.
17. device as claimed in claim 12, which is characterized in that the device of the distribution IP address further includes:
Fourth processing module, for when the current IP address allocation model is prohibited mode, abandoning the IP address and finding Message.
18. a kind of device of information processing, applied to an optical network unit, the optical network unit connects an electronic equipment respectively With an optical line terminal, which is characterized in that the device of described information processing includes:
First obtains module, and information is distributed for obtaining the IP address that the optical line terminal is sent;
Second obtains module, for being based on the IP address distribution information, obtains the property value of IP address allocation model;
First determining module for the property value based on the IP address allocation model, determines the current of the optical network unit IP address allocation model, wherein, according to the current IP address allocation model IP address is distributed to the electronic equipment;
Wherein, a variety of IP address allocation models are preset in the optical network unit.
19. device as claimed in claim 18, which is characterized in that the optical network unit corresponds to a management entity, the pipe Reason entity is used to be configured the IP address allocation model of the optical network unit, and the device of described information processing further includes:
Information exchange module, for receiving the interactive information of optical line terminal transmission;
Third obtains module, based on the interactive information, obtains an instance identification information;
For being based on the instance identification information, it is real to judge whether the instance identification information corresponds to the management for judgment module Body;
Second determining module, for when the instance identification information corresponds to the management entity, determining that the interactive information is The IP address distributes information.
20. device as claimed in claim 19, which is characterized in that the device of described information processing further includes:
Acquisition module, for obtaining the entity category information carried in the interactive information;
4th obtains module, for being based on the entity category information, obtains the property value of the IP address allocation model.
21. device as claimed in claim 19, which is characterized in that the device of described information processing further includes:
Protocol module, for the property value of the IP address allocation model to be configured to the agreement of distribution IP address.
22. device as claimed in claim 18, which is characterized in that the device of described information processing further includes:
Module is returned to, for returning to an IP address assignment response information to the optical line terminal.
CN201210453791.4A 2012-11-13 2012-11-13 A kind of method and device, method and device of information processing for distributing IP address Active CN102970383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210453791.4A CN102970383B (en) 2012-11-13 2012-11-13 A kind of method and device, method and device of information processing for distributing IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210453791.4A CN102970383B (en) 2012-11-13 2012-11-13 A kind of method and device, method and device of information processing for distributing IP address

Publications (2)

Publication Number Publication Date
CN102970383A CN102970383A (en) 2013-03-13
CN102970383B true CN102970383B (en) 2018-07-06

Family

ID=47800262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210453791.4A Active CN102970383B (en) 2012-11-13 2012-11-13 A kind of method and device, method and device of information processing for distributing IP address

Country Status (1)

Country Link
CN (1) CN102970383B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG10201909133YA (en) * 2015-09-05 2019-11-28 Mastercard Tech Canada Ulc Systems and methods for matching and scoring sameness

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585359A (en) * 2004-05-28 2005-02-23 港湾网络有限公司 Addressing section static batching distributing method between DSLAM apparatus
WO2005109768A1 (en) * 2004-05-10 2005-11-17 Lg Electronics Inc. Minimized ip connectivity establishment procedures
CN1889577A (en) * 2006-07-18 2007-01-03 Ut斯达康通讯有限公司 IP address distributing method based on DHCP extended attribute
CN1921496A (en) * 2005-08-24 2007-02-28 中兴通讯股份有限公司 Method for DHCP client terminal to identifying DHCP server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100527752C (en) * 2005-08-19 2009-08-12 杭州华三通信技术有限公司 DHCP address allocation method
CN101034938B (en) * 2007-04-05 2010-12-08 中兴通讯股份有限公司 Configuration method for remote management IP address of the ONU in the EPON network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005109768A1 (en) * 2004-05-10 2005-11-17 Lg Electronics Inc. Minimized ip connectivity establishment procedures
CN1585359A (en) * 2004-05-28 2005-02-23 港湾网络有限公司 Addressing section static batching distributing method between DSLAM apparatus
CN1921496A (en) * 2005-08-24 2007-02-28 中兴通讯股份有限公司 Method for DHCP client terminal to identifying DHCP server
CN1889577A (en) * 2006-07-18 2007-01-03 Ut斯达康通讯有限公司 IP address distributing method based on DHCP extended attribute

Also Published As

Publication number Publication date
CN102970383A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
US9762326B2 (en) Method, system and device for optical network termination configuration
CN102739426B (en) DPOE system and service auto-configuration method and network based on DPOE system
CN104604182B (en) Service channel collocation method and optical line terminal and EPON
US7876762B2 (en) Ethernet service configuration device, method, and system in passive optical network
EP1978654B1 (en) A method for mapping the service stream to the service transmission channel, system and optical network terminator thereof
CN107666627A (en) Data forwarding controlling method and its device in a kind of PON
CN104639413B (en) The method and agent node of access net virtualization
CN102100038B (en) From partner's management domain collection status information
US20070230480A1 (en) Method and system for controlling quality of service of IP packet in passive optical network system
EP3429160B1 (en) Method for processing packet in access network and network device
CN105338125B (en) Message processing method and device
CN102223352A (en) GPON (Gigabit Passive Optical Network) system and PPPoE (Point-to-point Protocol over Ethernet) configuration method for realizing same
CN105991318A (en) Configuration data distribution method and apparatus
CN103516760B (en) A kind of Virtual Networking System cut-in method, apparatus and system
CN103873271A (en) Gateway EoC terminal, and management system and management method thereof
CN105164973B (en) Optical fiber is to distribution point device and its communication means
CN102970383B (en) A kind of method and device, method and device of information processing for distributing IP address
CN102487396B (en) User position determining method and system
CN105591956B (en) Flow control methods and equipment based on User-Network Interface UNI
CN102395057B (en) A kind of collocation method and device of port locations form
CN102868545B (en) The collocation method and Element management system of EPON
TW201244396A (en) Method for performing network functions, telecommunication's access network, central unit, network-sided network termination unit, and subscriber-sided network access unit
CN102123331A (en) Method, device and system for configuring terminal identification
KR100786388B1 (en) Apparatus and method for managing traffic using VID in EPON
US9503193B2 (en) Method and system for using persistent identifiers in passive optical networking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant