CN102970383A - Method and device for allocating internet protocol (IP) addresses and method and device for processing information - Google Patents

Method and device for allocating internet protocol (IP) addresses and method and device for processing information Download PDF

Info

Publication number
CN102970383A
CN102970383A CN2012104537914A CN201210453791A CN102970383A CN 102970383 A CN102970383 A CN 102970383A CN 2012104537914 A CN2012104537914 A CN 2012104537914A CN 201210453791 A CN201210453791 A CN 201210453791A CN 102970383 A CN102970383 A CN 102970383A
Authority
CN
China
Prior art keywords
address
distributing
electronic equipment
current
network unit
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.)
Granted
Application number
CN2012104537914A
Other languages
Chinese (zh)
Other versions
CN102970383B (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

Images

Landscapes

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

Abstract

The invention discloses a method and a device for allocating internet protocol (IP) addresses and a method and a device for processing information. The method for allocating the IP addresses is applied to an optical network unit which is connected with an electronic device. The method includes receiving an IP address discovered message sent by the electronic device, and allocating the IP addresses to the electronic device according to a current IP address allocation model. By means of the method, the electronic device can receive the expected IP addresses so that stability of networks is facilitated.

Description

Method and the device of the method for a kind of distributing IP address and device, information processing
Technical field
The present invention relates to communication technical field, relate in particular to method and the device of the method for a kind of distributing IP address and device, information processing.
Background technology
GPON(Gigabit-capable Passive Optical Network, gigabit passive optical network) be a kind of employing point-to-multipoint network structure, passive fiber transmission means, based on GEM(GPON EncapsulationMethod, the GPON packaged type) the frame encapsulation, can provide the broadband access technology of multiple integrated service.
GPON is by local side apparatus OLT(Optical Line Terminal, optical line terminal), ustomer premises access equipment ONU(Optical Network Unit, optical network unit) and connection line ODN(Optical DistributeNetwork, Optical Distribution Network) three parts form.Optical network unit provides online, IPTV(InternetProtocol Television, IPTV for the user), VoIP(Voice over Internet Protocol, the voice of based on data network) etc. the demand of multiple business service.And the electronic equipment that optical network unit connects has a common ground such as PC, IPTV TV, voip phone machine, namely need to be assigned to one can with the IP address realize network service.Wherein, the IP address of electronic equipment can staticly be specified, and also can pass through DHCP(Dynamic Host Configure Protocol, DHCP) the server dynamic assignment.
When electronic equipment needs business service, send an IP address assignment message to optical network unit with broadcast mode, the optical network unit that is connected with electronic equipment receives after the IP address discovery message, the IP address assignment message is sent to optical line terminal by passive optical network port, optical line terminal sends to IP address discovery message the Dynamic Host Configuration Protocol server of outer net equipment again, the Dynamic Host Configuration Protocol server of the Dynamic Host Configuration Protocol server of optical network unit and outer net equipment receives IP address discovery message, all send the IP address to electronic equipment, the IP address discovery response message that the common selection of electronic equipment is received first.
The present application people finds to have to have following technical problem in the technology in the process that realizes the embodiment of the present application technical scheme at least:
In the prior art, optical network unit can be opened Dynamic Host Configuration Protocol server, be electronic equipment distributing IP address 192.168.x.x for example, also opened at outer net equipment in the situation of Dynamic Host Configuration Protocol server, because the IP address discovery message of the electronic equipment that optical network unit connects sends with broadcast mode usually, like this, optical network unit is connected the IP address discovery message that electronic equipment that Dynamic Host Configuration Protocol server receives that all optical network unit connects sends with outer net equipment, and then all can respond IP address discovery response message, cause electronic equipment will receive two IP address discovery response messages, the IP address discovery response message that the common selection of electronic equipment is received first, so the IP address discovery response message that exists electronic equipment to select may not be the technical problem of the IP address discovery response message of electronic equipment actual needs.
Further, because having the IP address discovery response message of selecting may not be the technical problem of the IP address discovery response message of electronic equipment actual needs, so, when receiving that IP address discovery response message is not the response message of electronic equipment actual needs, electronic equipment mistake will occur in the process of operation, cause electronic equipment can not obtain business service, and then have the technical problem of the stability that is unfavorable for network, and then the problem of poor user experience occurs.
Summary of the invention
The embodiment of the present application provides the device of the method for a kind of distributing IP address, information processing and distributing IP address, information processing, has solved that to have the IP address discovery response message of selecting in the prior art may not be the technical problem of the IP address discovery response message of electronic equipment actual needs.
The embodiment of the present application provides a kind of distributing IP address approach on the one hand, is applied to an optical network unit, and described optical network unit connects an electronic equipment, and described method comprises: receive the IP address discovery message that described electronic equipment sends; According to described current IP address allocation model, described electronic equipment is given in the distributing IP address.
Better, according to the current IP address allocation model, the distributing IP address is given before the described electronic equipment, also comprises: according to the property value of current IP address allocation model, determine the current IP address allocation model described.
Better, described optical network unit has the first IP address assignment device, described optical network unit is connected with the second IP address assignment device by optical line terminal, described according to described current IP address allocation model, described electronic equipment is given in the distributing IP address, be specially: when described current IP address allocation model is default mode, give described electronic equipment by described the first IP address assignment device or described the second IP address assignment device distributing IP address.
Better, described optical network unit has the first IP address assignment device, described according to described current IP address allocation model, described electronic equipment is given in the distributing IP address, be specially: when described current IP address allocation model is local mode, give described electronic equipment by described the first IP address assignment device distributing IP address.
Better, described optical network unit is connected with the second IP address assignment device by optical line terminal, and is described according to described current IP address allocation model, and described electronic equipment is given in the distributing IP address, is specially:
When described current IP address allocation model is the outer net pattern, give described electronic equipment by described the second IP address assignment device distributing IP address.
Better, described according to described current IP address allocation model, described electronic equipment is given in the distributing IP address, is specially: when described current IP address allocation model is prohibited mode, abandon described IP address discovery message.
One embodiment of the invention also provides a kind of method of information processing, be applied to an optical network unit, described optical network unit connects respectively an electronic equipment and an optical line terminal, and described method comprises: obtain the IP address assignment information that described optical line terminal sends; Based on described IP address assignment information, obtain the property value of IP address assignment pattern; Based on the property value of described IP address assignment pattern, determine the current IP address allocation model of described optical network unit, wherein, give described electronic equipment distributing IP address according to described current IP address allocation model.
Better, the corresponding management entity of described optical network unit, described management entity is corresponding to the IP address pattern, and before the IP address assignment information that the described optical line terminal of described acquisition sends, described method also comprises: receive the interactive information that described optical line terminal sends; Based on described interactive information, obtain an instance identification information; Based on described instance identification information, judge whether corresponding described management entity of described instance identification information; When the corresponding described management entity of described instance identification information, determine that described interactive information is described IP address assignment information.
Better, described based on described IP address assignment information, the property value of acquisition IP address assignment pattern is specially: obtain the entity class information of carrying in the described interactive information; Based on described entity class information, obtain the property value of described IP address assignment pattern.
Better, described property value based on described IP address assignment pattern is determined to be specially the current IP address allocation model of described optical network unit: the agreement that the property value of described IP address assignment pattern is configured to the distributing IP address.
Better, at described property value based on described IP address assignment pattern, determine that described method also comprises after the current IP address allocation model of described optical network unit: return an IP address assignment response message to described optical line terminal.
Another embodiment of the present invention also provides the device of a kind of distributing IP address, be applied to an optical network unit, described optical network unit connects an electronic equipment, and the device of described distributing IP address comprises: receiver module is used for receiving the IP address discovery message that described electronic equipment sends; Distribution module is used for according to described current IP address allocation model, and described electronic equipment is given in the distributing IP address.
Better, described device also comprises: determination module, be used for the property value according to the current IP address allocation model, and determine the current IP address allocation model.
Better, described device has the first IP address assignment device, described optical network unit is connected with the second IP address assignment device by optical line terminal, the device of described distributing IP address also comprises the first processing module, be used for when described current IP address allocation model is default mode, control described the first IP address assignment device or described the second IP address assignment device distributing IP address to described electronic equipment.
Better, described device has the first IP address assignment device, the device of distributing IP address also comprises the second processing module, is used for when described current IP address allocation model is local mode, controls described the first IP address assignment device distributing IP address to described electronic equipment.
Better, described device is connected with the second IP address assignment device by optical line terminal, the device of described distributing IP address also comprises the 3rd processing module, be used for when described current IP address allocation model is the outer net pattern, described electronic equipment is given in described the second IP address assignment device distributing IP address.
Better, described device also comprises: the manages module everywhere, is used for abandoning described IP address discovery message when described current IP address allocation model is prohibited mode.
Another embodiment of the present invention also provides a kind of device of information processing, be applied to an optical network unit, described optical network unit connects respectively an electronic equipment and an optical line terminal, the device of described information processing comprises: first obtains module, is used for obtaining the IP address assignment information that described optical line terminal sends; Second obtains module, is used for based on described IP address assignment information, obtains the property value of IP address assignment pattern; The first determination module is used for the property value based on described IP address assignment pattern, determines the current IP address allocation model of described optical network unit, wherein, gives described electronic equipment distributing IP address according to described current IP address allocation model.
Better, the corresponding management entity of described optical network unit, described management entity is used for disposing the IP address assignment pattern of described optical network unit, and described device also comprises: the information interaction module is used for receiving the interactive information that optical line terminal sends; The 3rd obtains module, based on described interactive information, obtains an instance identification information; Judge module is used for based on described instance identification information, judges whether corresponding described management entity of described instance identification information; The second determination module if be used for the described management entity of distributing IP address, obtains IP address assignment information.
Better, described device also comprises: acquisition module is used for obtaining the entity class information that described interactive information is carried; The 4th obtains module, is used for based on described entity class information, obtains the property value of described IP address assignment pattern.
Better, described device also comprises: protocol module, and for the agreement that the property value of described IP address assignment pattern is configured to the distributing IP address.
Better, described device also comprises: return module, be used for returning an IP address assignment response message to described optical line terminal.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage: in one embodiment of the invention, because behind the IP address discovery message that receives the electronic equipment transmission, according to described current IP address allocation model, described electronic equipment is given in the distributing IP address, and then the IP address discovery response message that has solved existence selection in the prior art may not be the technical problem of the IP address discovery response message of electronic equipment actual needs, and then guarantee that electronic equipment receives the IP address discovery response message of electronic equipment actual needs, the i.e. technique effect of IP address.
Further, because the IP address discovery response message that electronic equipment receives is the IP address discovery response message of electronic equipment actual needs, electronic equipment can obtain correct business service based on this IP address discovery response message, and then can effectively solve the technical problem that has the stability that is unfavorable for network in the prior art, realize improving the technique effect of network stabilization, also improved user's experience.
Further, because can be according to current IP address mode assignments pattern, for example be default mode, local mode, outer net pattern or prohibited mode, IP address discovery message is carried out different processing, technique effect with the demand that can satisfy diversity distributing IP address has also further improved user's experience.
Description of drawings
Fig. 1 is the network structure of distributing IP address among the application one embodiment;
Fig. 2 is the flow chart of information processing method among the application one embodiment;
Fig. 3 is the flow chart of distributing IP address approach among the application one embodiment;
Fig. 4 is the Organization Chart of the device of information processing among the application one embodiment;
Fig. 5 is the Organization Chart of the device of distributing IP address among the application one embodiment.
Embodiment
The embodiment of the present application provides the device of the method for a kind of distributing IP address, information processing and distributing IP address, information processing, has solved that to have the IP address discovery response message of selecting in the prior art may not be the technical problem of the response message of electronic equipment actual needs.
The technical scheme of one embodiment of the invention is for solving the above problems, and general thought is as follows:
Receive the IP address discovery message that electronic equipment sends; According to the current IP address allocation model, the distributing IP address is to electronic equipment, so having solved the IP address discovery response message that existence is selected in the prior art may not be the technical problem of the IP address discovery response message of electronic equipment actual needs, and then guarantee that electronic equipment receives the IP address discovery response message of electronic equipment actual needs, the i.e. technique effect of IP address.
In order better to understand technique scheme, be described in detail below in conjunction with Figure of description and the concrete execution mode method to the distributing IP address of technique scheme.
As shown in Figure 1, electronic equipment 11 is connected with optical network unit 12, optical network unit 12 is connected with optical line terminal 15 by Optical Distribution Network 14, the second IP address assignment device 16 in the outer net is connected with optical line terminal 15, electronic equipment 11 obtains the IP address by the first IP address assignment device 13 or the second IP address assignment device 16, thereby realizes the business of electronic equipment 11 correspondences.
The embodiment of the present application provides a kind of method of information processing, is applied to optical network unit 12, and optical network unit 12 connects respectively an electronic equipment 11 and an optical line terminal 15.
Please refer to Fig. 2, the method for the information processing in the embodiment of the invention comprises:
Step 201: obtain the IP address assignment information that optical line terminal 15 sends;
Step 202: based on IP address assignment information, obtain the property value of IP address assignment pattern;
Step 203: based on the property value of IP address assignment pattern, determine the current IP address allocation model of optical network unit 12, wherein, according to the current IP address allocation model to electronic equipment 11 distributing IP addresses.
After above-mentioned steps 201, step 202, step 203, the method for the embodiment of the present application just can obtain the current IP address allocation model, for the method that realizes the distributing IP address provides the IP address assignment pattern.
For the specific implementation process of the method that more clearly demonstrates the embodiment of the present application information processing, describe take electronic equipment 11 as computer as example now, optical network unit 12 connects computers.
Certainly, in another embodiment of the present invention, electronic equipment 11 can also be the electronic equipments such as set-top box, IPTV television set or voip phone machine, and the present invention is not restricted.
For step 201, that is: obtain the IP address assignment information that optical line terminal 15 sends.Specific implementation process in this example is as follows:
In one embodiment, when the user need to use online computing, computer need to be assigned to an available IP address in order to realize network service.After the user opens computer, computer is in realization before the net service business, send IP address assignment information to optical network unit 12 by optical line terminal 15, optical network unit 12 receives IP address assignment information, what be that optical line terminal 15 directly sends is exactly IP address assignment information, and optical network unit 12 can directly get access to IP address assignment information.
After execution in step 201, the method in the embodiment of the invention enters step 202: based on IP address assignment information, obtain the property value of IP address assignment pattern.
Continue to continue to use an embodiment, the specific implementation process of step 202 is as follows:
Optical network unit 12 is based on the IP address assignment information that receives, and obtains the property value of IP address assignment pattern, for example represents default mode with 0, represents local mode with 1, represents the outer net pattern with 2, represents prohibited mode with 3.
After execution in step 202, method in the embodiment of the invention enters step 203: based on the property value of IP address assignment pattern, determine the current IP address allocation model of optical network unit 12, wherein, according to the current IP address allocation model to electronic equipment distributing IP address.
Continue to continue to use an embodiment, the specific implementation process of step 203 is as follows:
Optical network unit 12 is based on the property value of IP address assignment pattern, can determine the current IP address allocation model of optical network unit 12, for example the property value when the IP address assignment pattern is 1, and the current IP address allocation model of determining optical network unit 12 is local mode.
In another embodiment, because optical line terminal 15 mainly is by OMCI(ONT Managementand Control Interface, ONT manages control interface) manage and control optical network unit 12, the international standard ITU-T G984.4 of OMCI mainly is by having defined a series of ME(ManagementEntity, management entity) and the relation between them realize various different business, so in the present embodiment, newly-increased ME, this ME interface is the physical channel destination node Customer Premises Network interface of Extended Physical Path Termination Point UNI(expansion), Me class(entity class) value is defined as 253, certainly, in other embodiments, this value also can be chosen other value, be used for the relevant additional data (property value of for example IP address assignment pattern) of configures physical passage destination node Customer Premises Network interface entities class, optical network unit 12 is the physical channel destination node Customer Premises Network interface that each physical channel destination node Customer Premises Network interface creates an expansion automatically, and this ME has defined following two attributes:
Entity identification: each example of this ME has a unique ID, and by this ID, an example of related physical channel destination node Customer Premises Network interface entities class, this attribute is read only attribute, forces to come into force, length for example can be 2 bytes;
IP address assignment pattern: when optical network unit 12 is opened the IP address assignment function, and when outer net equipment has also been opened the IP address assignment function, it is to obtain the IP address from optical network unit 12 this locality that this attribute is used for controlling electronic equipment 11, or obtain the IP address from outer net IP address assignment device, this attribute value is for example as follows:
0: default mode, do not control the mode of obtaining the IP address;
1: local mode, the first IP address assignment device 13 from optical network unit 12 obtains the IP address;
2: the outer net pattern, obtain the IP address from the second IP address assignment device 16 of outer net equipment;
3: prohibited mode, forbid obtaining the IP address.
When this ME had just created, the default value of this attribute was 0, and is read-write, optional coming into force, and length for example is 1 byte.
Therefore, in the present embodiment, before execution in step 201, also comprise step: receive the interactive information that optical line terminal sends; Based on interactive information, obtain an instance identification information; Based on instance identification information, judge whether corresponding management entity of instance identification information; When the corresponding management entity of instance identification information, determine that interactive information is IP address assignment information.
Continue to continue to use an embodiment, the specific implementation process of step is as follows:
Optical line terminal 15 sends an interactive information (for example being OMCI message) to optical network unit 12, optical network unit 12 is based on the interactive information that receives, obtain instance identification information (for example above-mentioned said unique ID), for example be numerical value 11, judge whether corresponding above-mentioned management entity of instance identification information based on instance identification information 11, when instance identification information 11 corresponding above-mentioned management entity, determine that the interactive information that receives is IP address assignment information.
When the interactive information of determining to receive is IP address assignment information, continue to continue to use an embodiment, the specific implementation process of step 202 is as follows:
Obtain the entity class information of carrying in the interactive information, entity class information is used for the property value of configuration of IP address allocation model, based on entity class information, obtain the property value of IP address assignment pattern, for example represent default mode with 0, represent local mode with 1, represent the outer net pattern with 2, represent prohibited mode with 3, in the present embodiment, the property value that for example carries is 1.
Continue to continue to use an embodiment, the specific implementation process of step 203 is as follows:
Optical network unit 12 is determined the current IP address allocation model of optical network unit 12 based on the property value of IP address assignment pattern.Specifically, for example be that property value is configured in the agreement of distributing IP address.
After execution in step 203, the method in the embodiment of the invention also comprises step: return an IP address assignment response message to optical line terminal.
Continue to continue to use an embodiment, optical network unit 12 is determined to return an IP address response message to optical line terminal after the current IP address allocation model, and optical line terminal 15 can know that the interactive information processing procedure finishes.
After the method in above-described embodiment configured the IP address assignment pattern, optical network unit 12 just can come to please refer to Fig. 3 for electronic equipment 11 distributing IP addresses according to this IP address assignment pattern, and the method for the distributing IP address in the embodiment of the invention comprises:
Step 301: receive the IP address discovery message that electronic equipment 11 sends;
Step 302: according to the current IP address allocation model, the distributing IP address is to electronic equipment 11.
After above-mentioned steps 301, step 302, it may not be the technical problem of the response message of electronic equipment 11 actual needs that the method for the embodiment of the present application just can efficiently solve the IP address discovery response message that existence is selected in the prior art, realizes that electronic equipment 11 receives the IP address discovery response message of electronic equipment 11 actual needs.
Wherein, step 301 specific implementation process is as follows:
Before computer was realized the service on net business, computer will send an IP address discovery message to optical network unit 12, was used for obtaining an available IP address, and at this moment optical network unit 12 will receive the IP address discovery message that computer sends.
After execution in step 301, method in the embodiment of the invention enters step 302: according to the current IP address allocation model, the distributing IP address is to electronic equipment 11, specifically comprise: optical network unit 12 has the first IP address assignment device 13, optical network unit 12 is connected with the second IP address assignment device 16 by optical line terminal 15, when the current IP address allocation model is default mode, by the first IP address assignment device 13 or the second IP address assignment device 16 distributing IP addresses to electronic equipment 11; When the current IP address allocation model is local mode, by the first IP address assignment device 13 distributing IP addresses to electronic equipment 11; When the current IP address allocation model is the outer net pattern, by the second IP address assignment device 16 distributing IP addresses to electronic equipment 11; When the current IP address allocation model is prohibited mode, abandon IP address discovery message.
Continue to continue to use an embodiment, the specific implementation process of step 302 is as follows:
As shown in Figure 1, optical network unit 12 has the first IP address assignment device 13, the first Dynamic Host Configuration Protocol server for example, and can open, revise or close the first Dynamic Host Configuration Protocol server in this locality, optical network unit 12 is by optical line terminal 15 and the second IP address assignment device 16, and for example the second Dynamic Host Configuration Protocol server connects.
When the current IP address allocation model is default mode, because computer sends IP address discovery message with broadcast mode, computer direct receives and sends IP address discovery message to optical network unit 12, optical network unit 12 is after receiving IP address discovery message, IP address discovery message is sent to optical line terminal 15 by passive optical network port, optical line terminal 15 is again with second Dynamic Host Configuration Protocol server of IP address discovery message repeating to outer net equipment, because the first Dynamic Host Configuration Protocol server and the second Dynamic Host Configuration Protocol server can both receive IP and find message, so the first Dynamic Host Configuration Protocol server and the second Dynamic Host Configuration Protocol server all can respond IP address discovery message, the first Dynamic Host Configuration Protocol server is computer distributing IP address 192.168.1.2, the second Dynamic Host Configuration Protocol server is computer distributing IP address 10.46.50.2, computer can't be accepted or rejected as required, according to the first preset rules accept or reject the IP address for example with the IP address that receives first in order to realize network service.
When the current IP address allocation model was local mode, although computer still sends IP address discovery message with broadcast mode, optical network unit 12 received after the IP address discovery message, IP address discovery message can be sent to the second Dynamic Host Configuration Protocol server.Only have the first Dynamic Host Configuration Protocol server to receive IP address discovery message, the first dhcp server response IP address discovery message is computer distributing IP address 192.168.1.2.
When the current IP address allocation model is the outer net pattern, computer sends IP address discovery message with broadcast mode, computer direct receives and sends IP address discovery message to optical network unit 12, optical network unit 12 is after receiving IP address discovery message, IP address discovery message is sent to optical line terminal by passive optical network port, optical network unit 12 abandons IP address discovery message simultaneously, optical line terminal 15 again with IP address discovery message repeating to outer net equipment the second Dynamic Host Configuration Protocol server, the second dhcp server response IP address discovery message is computer distributing IP address 10.46.50.2.
When the current IP address allocation model is prohibited mode, computer one broadcast mode sends IP address discovery message, after optical network unit receives IP address discovery message, directly abandons the IP address discovery message that receives, do not do any processing, do not respond IP address discovery message yet.
Before step 302, also comprise step: according to the property value of current IP address allocation model, determine the current IP address allocation model.
Continue to continue to use an embodiment, the specific implementation process of this step is as follows:
According to the property value of current IP address allocation model, determine the current IP address allocation model, for example represent default mode with 0, represent local mode with 1, represent the outer net pattern with 2, represent prohibited mode with 3.Find the numerical value of the property value of message allocation model according to current IP address, just can 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, is applied to optical network unit 12.The device of information processing is used for realizing the method for Fig. 2 and specific embodiment thereof, please refer to Fig. 4, and Fig. 4 is the Organization Chart of the device of present embodiment information processing.
As shown in Figure 4, the device of the information processing that present embodiment provides comprises: first obtains module 401, is used for obtaining the IP address assignment information that optical line terminal 15 sends; Second obtains module 402, is used for based on IP address assignment information, obtains the property value of IP address assignment pattern; The first determination module 403 is used for the property value based on the IP address assignment pattern, determines the current IP address allocation model of optical network unit 12, wherein, according to the current IP address allocation model to electronic equipment 11 distributing IP addresses.
Wherein, optical network unit 12 corresponding management entities 43, management entity 43 is used for the IP address assignment pattern of configuration optical network unit 12, and the device of information processing also comprises: information interaction module 404 is used for receiving the interactive information that optical line terminal 15 sends; The 3rd obtains module 405, based on interactive information, obtains an instance identification information; Judge module 406 is used for based on instance identification information, judges whether corresponding management entity of instance identification information; The second determination module 407 if be used for the management entity of distributing IP address, obtains IP address assignment information.
Wherein, device also comprises: acquisition module 408 is used for obtaining the entity class information that interactive information is carried; The 4th obtains module 409, is used for based on entity class information, obtains the property value of IP address assignment pattern.
Wherein, device also comprises: protocol module 410 is used for the property value based on the IP address assignment pattern, the IP address discovery message that the configuration electronic equipment sends.
Wherein, device also comprises: return module 411, be used for returning an IP address assignment response message to optical line terminal 42.
The device of the information processing that the various variation patterns in the method in the previous embodiment and instantiation are equally applicable to present embodiment, detailed description by aforementioned method to information processing, those skilled in the art can clearly know the implementation method of the device of information processing in the present embodiment, so succinct for specification is not described in detail in this.
Another embodiment of the present invention provides the device of a kind of distributing IP address, is applied to optical network unit 12.The device of distributing IP address is used for realizing the method for Fig. 3 and specific embodiment thereof, please refer to Fig. 5, and Fig. 5 is the device architecture figure of present embodiment distributing IP address.
The device of distributing IP address comprises: receiver module 501 is used for receiving the IP address assignment message that electronic equipment 11 sends; Distribution module 502 is used for according to the current IP address allocation model, and the distributing IP address is to electronic equipment 11.
Wherein, device also comprises: the first determining unit 503, be used for the property value according to the current IP address allocation model, and determine the current IP address allocation model.
Wherein, device has the first IP address assignment device 13, the device of distributing IP address also comprises the first processing module 504, is used for controlling the first IP address assignment device 13 or the second IP address assignment device 16 distributing IP addresses to electronic equipment when the current IP address allocation model is default mode.
Wherein, device has the first IP address assignment device 13, and the device of distributing IP address also comprises the second processing module 505, is used for controlling the first IP address assignment device 13 distributing IP addresses to electronic equipment when the current IP address allocation model is local mode.
Wherein, device has the first IP address assignment device 13, and the device of distributing IP address also comprises the 3rd processing module 506, is used for when the current IP address allocation model is the outer net pattern, and the second IP address assignment device 16 distributing IP addresses are to electronic equipment.
Wherein, the device of distributing IP address also comprises: the manages module 507 everywhere, is used for abandoning IP address discovery message when the current IP address allocation model is prohibited mode.
The device of the distributing IP address that the various variation patterns in the method in the previous embodiment and instantiation are equally applicable to present embodiment, detailed description by aforementioned method to the distributing IP address, those skilled in the art can clearly know the implementation method of the device of distributing IP address in the present embodiment, so succinct for specification is not described in detail in this.
The one or more technical schemes that provide in the embodiment of the present application have following technique effect or advantage at least:
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage: in one embodiment of the invention, because behind the IP address discovery message that receives the electronic equipment transmission, according to described current IP address allocation model, described electronic equipment is given in the distributing IP address, and then the IP address discovery response message that has solved existence selection in the prior art may not be the technical problem of the IP address discovery response message of electronic equipment actual needs, and then guarantee that electronic equipment receives the IP address discovery response message of electronic equipment actual needs, the i.e. technique effect of IP address.
Further, because the IP address discovery response message that electronic equipment receives is the IP address discovery response message of electronic equipment actual needs, electronic equipment can obtain correct business service based on this IP address discovery response message, and then can effectively solve the technical problem that has the stability that is unfavorable for network in the prior art, realize improving the technique effect of network stabilization, also improved user's experience.
Further, because can be according to current IP address mode assignments pattern, for example be default mode, local mode, outer net pattern or prohibited mode, IP address discovery message is carried out different processing, technique effect with the demand that can satisfy diversity distributing IP address has also further improved user's experience.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (22)

1. the method for a distributing IP address is applied to an optical network unit, and described optical network unit connects an electronic equipment, it is characterized in that, described method comprises:
Receive the IP address discovery message that described electronic equipment sends;
According to the current IP address allocation model, described electronic equipment is given in the distributing IP address.
2. the method for claim 1 is characterized in that, according to the current IP address allocation model, the distributing IP address is given before the described electronic equipment, also comprises described:
According to the property value of current IP address allocation model, determine the current IP address allocation model.
3. the method for claim 1, it is characterized in that, described optical network unit has the first IP address assignment device, described optical network unit is connected with the second IP address assignment device by optical line terminal, described according to described current IP address allocation model, described electronic equipment is given in the distributing IP address, is specially:
When described current IP address allocation model is default mode, give described electronic equipment by described the first IP address assignment device or described the second IP address assignment device distributing IP address.
4. the method for claim 1 is characterized in that, described optical network unit has the first IP address assignment device, and is described according to described current IP address allocation model, and described electronic equipment is given in the distributing IP address, is specially:
When described current IP address allocation model is local mode, give described electronic equipment by described the first IP address assignment device distributing IP address.
5. the method for claim 1 is characterized in that, described optical network unit is connected with the second IP address assignment device by optical line terminal, and is described according to described current IP address allocation model, and described electronic equipment is given in the distributing IP address, is specially:
When described current IP address allocation model is the outer net pattern, give described electronic equipment by described the second IP address assignment device distributing IP address.
6. the method for claim 1 is characterized in that, and is described according to described current IP address allocation model, and described electronic equipment is given in the distributing IP address, is specially:
When described current IP address allocation model is prohibited mode, abandon described IP address discovery message.
7. the method for an information processing is applied to an optical network unit, and described optical network unit connects respectively an electronic equipment and an optical line terminal, it is characterized in that, described method comprises:
Obtain the IP address assignment information that described optical line terminal sends;
Based on described IP address assignment information, obtain the property value of IP address assignment pattern;
Based on the property value of described IP address assignment pattern, determine the current IP address allocation model of described optical network unit, wherein, give described electronic equipment distributing IP address according to described current IP address allocation model.
8. method as claimed in claim 7, it is characterized in that, the corresponding management entity of described optical network unit, described management entity is used for disposing the IP address assignment pattern of described optical network unit, before the IP address assignment information that the described optical line terminal of described acquisition sends, described method also comprises:
Receive the interactive information that described optical line terminal sends;
Based on described interactive information, obtain an instance identification information;
Based on described instance identification information, judge whether corresponding described management entity of described instance identification information;
When the corresponding described management entity of described instance identification information, determine that described interactive information is described IP address assignment information.
9. method as claimed in claim 8 is characterized in that, and is described based on described IP address assignment information, obtains the property value of IP address assignment pattern, is specially:
Obtain the entity class information of carrying in the described interactive information;
Based on described entity class information, obtain the property value of described IP address assignment pattern.
10. method as claimed in claim 8 is characterized in that, described property value based on described IP address assignment pattern is determined to be specially the current IP address allocation model of described optical network unit:
The property value of described IP address assignment pattern is configured to the agreement of distributing IP address.
11. method as claimed in claim 7 is characterized in that, at described property value based on described IP address assignment pattern, determines that described method also comprises after the current IP address allocation model of described optical network unit:
Return an IP address assignment response message to described optical line terminal.
12. the device of a distributing IP address is applied to an optical network unit, described optical network unit connects an electronic equipment, it is characterized in that, the device of described distributing IP address comprises:
Receiver module is used for receiving the IP address discovery message that described electronic equipment sends;
Distribution module is used for according to the current IP address allocation model, and described electronic equipment is given in the distributing IP address.
13. device as claimed in claim 12 is characterized in that, the device of described distributing IP address also comprises:
Determination module is used for the property value according to the current IP address allocation model, determines the current IP address allocation model.
14. device as claimed in claim 12, it is characterized in that, the device of described distributing IP address has the first IP address assignment device, described optical network unit is connected with the second IP address assignment device by optical line terminal, the device of described distributing IP address also comprises the first processing module, be used for when described current IP address allocation model is default mode, control described the first IP address assignment device or described the second IP address assignment device distributing IP address to described electronic equipment.
15. device as claimed in claim 12, it is characterized in that, the device of described smooth distributing IP address has the first IP address assignment device, the device of distributing IP address also comprises the second processing module, be used for when described current IP address allocation model is local mode, control described the first IP address assignment device distributing IP address to described electronic equipment.
16. device as claimed in claim 12, it is characterized in that, the device of described distributing IP address is connected with the second IP address assignment device by optical line terminal, the device of described distributing IP address also comprises the 3rd processing module, be used for when described current IP address allocation model is the outer net pattern, described electronic equipment is given in described the second IP address assignment device distributing IP address.
17. device as claimed in claim 12 is characterized in that, the device of described distributing IP address also comprises:
The manages module everywhere, is used for abandoning described IP address discovery message when described current IP address allocation model is prohibited mode.
18. the device of an information processing is applied to an optical network unit, described optical network unit connects respectively an electronic equipment and an optical line terminal, it is characterized in that, the device of described information processing comprises:
First obtains module, is used for obtaining the IP address assignment information that described optical line terminal sends;
Second obtains module, is used for based on described IP address assignment information, obtains the property value of IP address assignment pattern;
The first determination module is used for the property value based on described IP address assignment pattern, determines the current IP address allocation model of described optical network unit, wherein, gives described electronic equipment distributing IP address according to described current IP address allocation model.
19. device as claimed in claim 18 is characterized in that, the corresponding management entity of described optical network unit, and described management entity is used for disposing the IP address assignment pattern of described optical network unit, and the device of described information processing also comprises:
The information interaction module is used for receiving the interactive information that optical line terminal sends;
The 3rd obtains module, based on described interactive information, obtains an instance identification information;
Judge module is used for based on described instance identification information, judges whether corresponding described management entity of described instance identification information;
The second determination module is used for determining that described interactive information is described IP address assignment information when the corresponding described management entity of described instance identification information.
20. device as claimed in claim 19 is characterized in that, the device of described information processing also comprises:
Acquisition module is used for obtaining the entity class information that described interactive information is carried;
The 4th obtains module, is used for based on described entity class information, obtains the property value of described IP address assignment pattern.
21. device as claimed in claim 19 is characterized in that, the device of described information processing also comprises:
Protocol module is for the agreement that the property value of described IP address assignment pattern is configured to the distributing IP address.
22. device as claimed in claim 18 is characterized in that, the device of described information processing also comprises:
Return module, be used for returning an IP address assignment response message to described 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 true CN102970383A (en) 2013-03-13
CN102970383B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108885659A (en) * 2015-09-05 2018-11-23 万事达卡技术加拿大无限责任公司 The system and method that the phase same sex is matched and scored

Citations (6)

* 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
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method
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
CN101034938A (en) * 2007-04-05 2007-09-12 中兴通讯股份有限公司 Configuration method for remote management IP address of the ONU in the EPON network

Patent Citations (6)

* 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
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method
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
CN101034938A (en) * 2007-04-05 2007-09-12 中兴通讯股份有限公司 Configuration method for remote management IP address of the ONU in the EPON network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108885659A (en) * 2015-09-05 2018-11-23 万事达卡技术加拿大无限责任公司 The system and method that the phase same sex is matched and scored
CN108885659B (en) * 2015-09-05 2022-02-11 万事达卡技术加拿大无限责任公司 Computer-implemented method and system for analyzing first digital interaction or mobile device application interaction

Also Published As

Publication number Publication date
CN102970383B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
US7697547B2 (en) Internet protocol video delivery in passive optical networks
US7636354B2 (en) Deriving passive optical network port identifiers
US9918151B2 (en) Optical network unit, and communications system and method
CN108965497B (en) Method for virtualizing access network and proxy node
US10374714B2 (en) Method for online switching of operation mode of ONT, ONT and OLT
US20070230480A1 (en) Method and system for controlling quality of service of IP packet in passive optical network system
US10574572B2 (en) Packet processing method and apparatus
CN101997725A (en) System and device for bearing data over cable service interface specification (DOCSIS) service based on passive optical network (PON)
WO2016062103A1 (en) Business automatic classification method, device, and system in gpon system
CN102394776A (en) Method for OLT to carry out dynamic network configuration on ONU in passive optical network
US8406627B2 (en) Stacking of units in a passive optical network
EP2765735A1 (en) Method, system and apparatus for implementing intercommunication multicast in passive optical network
CN101047454B (en) Flow mapping method in passive optical network system
CN102970383A (en) Method and device for allocating internet protocol (IP) addresses and method and device for processing information
CN105721963A (en) Method for connecting out-of-limit number of ONUs (Optical Network Units) with EPON-OLT (Ethernet Passive Optical Network-Optical Line Terminal)
CN113938771A (en) Service distribution method of passive optical network
US8305920B2 (en) Method, system and terminal for determining QoS level
WO2017167076A1 (en) Device management method and apparatus
CN109981324A (en) Fault Locating Method, device, equipment and the medium of Interactive Internet TV
CN102868545A (en) Passive optical network configuration method and element management system
CN102123331A (en) Method, device and system for configuring terminal identification
US9503193B2 (en) Method and system for using persistent identifiers in passive optical networking
CN102932187A (en) Equipment scanning method based on EPON network management
US11984930B2 (en) Communication apparatus and communication method
CN111614970A (en) Method and system for controlling terminal to access live broadcast resources

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