CN107517281A - Modified address obtains the method, apparatus and gateway device in source - Google Patents
Modified address obtains the method, apparatus and gateway device in source Download PDFInfo
- Publication number
- CN107517281A CN107517281A CN201610430931.4A CN201610430931A CN107517281A CN 107517281 A CN107517281 A CN 107517281A CN 201610430931 A CN201610430931 A CN 201610430931A CN 107517281 A CN107517281 A CN 107517281A
- Authority
- CN
- China
- Prior art keywords
- address
- targeted sites
- external equipment
- case
- gateway device
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5053—Lease time; Renewal aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides the method, apparatus and gateway device that a kind of modified address obtains source, by the present invention in the case where gateway device is restarted, judges whether the address that external equipment obtains is distributed by targeted sites;In the case where judged result is no, the message of non-targeted website transmission is abandoned according to default filtering rule;Obtain the address of targeted sites distribution, solve in correlation technique due to can not be hung under to each port it is standby distributing wrong source address, cause equipment can not normal transceiving data problem, reach equipment by obtaining correct source address, the effect of transceiving data.
Description
Technical field
The present invention relates to the communications field, in particular to the method, apparatus and gateway in a kind of modified address acquisition source
Equipment.
Background technology
Virtual network operator is deployed to the gateway device of subscriber household, can configure multiple LANs (Local Area
Network, abbreviation LAN) the different equipment of side ports carry.And home gateway dispatch from the factory configuration when, some ports can only walk two
Layer transmitting data flow, what is had can only walk to route transmitting data flow.
Port for that can only walk two layers of forwarding, the equipment of the port carry can only obtain address ability by internet
Normal forwarding data;, just can not normal transceiving data if home gateway is assigned with home gateway address to the equipment.
Port for that can only walk routing forwarding, the equipment of the port carry can only obtain address from home gateway could just
Often forwarding data;, may just can not normal transceiving data if equipment obtains address from internet.
Equipment for being hung under some LAN mouth, it is to obtain address from home gateway, or address is obtained from internet,
It is that can be configured by medium (tr069, web, omci).The configuration of gateway is handed down to by tr069 and web, being can be
Preserved in equipment;And for optical network unit management control interface (ONU Management and Control
Interface, abbreviation omci) configuration that issues, do not preserve in a device, need to re-issue after equipment is restarted and match somebody with somebody
Put.
For omci, configuration can be just issued after gateway is completed to restart, if a certain LAN mouths can only walk Layer 2 data
Stream, then occur as soon as such case:Before omci transmitting order to lower levels, under hang it is standby got address from home gateway, just
Address no longer is obtained from internet, is hung under causing for unanimously gateway address is used, it is impossible to surf the Net.
For in correlation technique due to can not be hung under to each port it is standby distributing wrong source address, cause equipment without
The problem of method normal transceiving data, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide the method, apparatus and gateway device that a kind of modified address obtains source, at least to solve
Certainly in correlation technique due to can not be hung under to each port it is standby distributing wrong source address, cause equipment not receive and dispatch normally
The problem of data.
According to one embodiment of present invention, there is provided a kind of method that modified address obtains source, including:Set in gateway
In the case of restarting, judge whether the address that external equipment obtains is distributed by targeted sites;In the situation that judged result is no
Under, the message according to the non-targeted website transmission of default filtering rule discarding;Obtain the address of targeted sites distribution.
Alternatively, judge whether the address that external equipment obtains is included by targeted sites distribution:Monitor present port configuration
Type;In the case where Configuration Type is optical network unit management control interface omci, omci Control Cooling is obtained;Judging
In the case that omci Control Cooling obtains address for control external equipment by targeted sites, the address that external equipment obtains is judged
Whether distributed by targeted sites.
Further, optionally, the message of non-targeted website transmission is abandoned according to default filtering rule to be included:In control class
In the case that type obtains address for control external equipment by targeted sites, the message that non-targeted website is sent is abandoned.
Optionally, before whether the address for judging external equipment acquisition is distributed by targeted sites, this method also includes:Will
The primary lease term of gateway device distribution address was revised as the second rental period, wherein, the second rental period was less than primary lease term, and second rents
Phase, for ensuring that external equipment re-rents address lease in preset time.
Further, optionally, this method also includes:Configure timer;After the completion of timer timing, by gateway device
The rental period of distribution address is recovered to primary lease term by the second rental period.
Optionally, timer timing includes:Countdown or add up timing.
According to another embodiment of the invention, there is provided a kind of modified address obtains the device in source, including:Judge mould
Block, in the case of restarting in gateway device, judge whether the address that external equipment obtains is distributed by targeted sites;Operation is held
Row module, in the case of being no in judged result, the message of non-targeted website transmission is abandoned according to default filtering rule;Obtain
Modulus block, for obtaining the address of targeted sites distribution.
Optionally, judge module includes:Monitoring unit, for monitoring present port Configuration Type;Acquiring unit, for
In the case that Configuration Type is optical network unit management control interface omci, omci Control Cooling is obtained;Judging unit, it is used for
In the case where the Control Cooling for judging omci obtains address for control external equipment by targeted sites, judge that external equipment obtains
Address whether distributed by targeted sites.
Further, optionally, operation executing module includes:Operation execution unit, for outer for control in Control Cooling
In the case of equipment is connect by targeted sites acquisition address, the message that non-targeted website is sent is abandoned.
Optionally, device also includes:Rental period modified module, for judging the address of external equipment acquisition whether by target
Before website distribution, the primary lease term that gateway device is distributed to address was revised as the second rental period, wherein, the second rental period was less than first
Rental period, and the second rental period, for ensuring that external equipment re-rents address lease in preset time.
Further, optionally, device also includes:Configuration module, for configuring timer;Rental period recovery module, is used for
After the completion of timer timing, the rental period that gateway device is distributed to address is recovered to primary lease term by the second rental period.
Optionally, timer timing includes:Countdown or add up timing.
According to still another embodiment of the invention, there is provided a kind of gateway device, including:Data processor and communication are total
Line, data processor are connected with communication bus, wherein, data processor, in the case of restarting in gateway device, judge outer
Whether the address for connecing equipment acquisition is distributed by targeted sites;Data processor, it is additionally operable in the case where judged result is no, according to
The message of non-targeted website transmission is abandoned according to default filtering rule;Communication bus, for obtaining the address of targeted sites distribution;Its
In, gateway device includes the device that a kind of above-mentioned modified address obtains source.
According to still a further embodiment, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used
In the program code for performing following steps:In the case where gateway device is restarted, judge external equipment obtain address whether by
Targeted sites are distributed;In the case where judged result is no, the message of non-targeted website transmission is abandoned according to default filtering rule;
Obtain the address of targeted sites distribution.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Judge that external equipment obtains
Whether the address taken is included by targeted sites distribution:Monitor present port Configuration Type;It is optical network unit pipe in Configuration Type
In the case of managing control interface omci, omci Control Cooling is obtained;In the Control Cooling for judging omci for control external equipment
In the case of obtaining address by targeted sites, judge whether the address that external equipment obtains is distributed by targeted sites.
Further, optionally, storage medium is also configured to the program code that storage is used to perform following steps:According to pre-
If filtering rule, which abandons the message that non-targeted website is sent, to be included:Obtained in Control Cooling for control external equipment by targeted sites
In the case of address, the message that non-targeted website is sent is abandoned.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Judging external equipment
Before whether the address of acquisition is distributed by targeted sites, this method also includes:The primary lease term of gateway device distribution address is repaiied
It was changed to for the second rental period, wherein, the second rental period was less than primary lease term, and the second rental period, for ensuring external equipment in preset time
Inside re-rent address lease.
Further, alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Configuration is fixed
When device;After the completion of timer timing, the rental period that gateway device is distributed to address is recovered to primary lease term by the second rental period.
By the present invention, in the case of restarting in gateway device, judge the address of external equipment acquisition whether by mesh
Labeling station point distributes;In the case where judged result is no, the message of non-targeted website transmission is abandoned according to default filtering rule;Obtain
The address for taking targeted sites to distribute, therefore, can solve in correlation technique due to standby dividing can not be hung under to each port
Mismatch source address, cause equipment can not normal transceiving data problem, reach equipment by obtaining correct source address, receive and dispatch
The effect of data.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the hardware configuration frame for the gateway device that a kind of modified address of the embodiment of the present invention obtains the method in source
Figure;
Fig. 2 is the flow chart for the method that modified address according to embodiments of the present invention obtains source;
Fig. 3 is the structural representation that modified address according to embodiments of the present invention obtains system architecture in the method in source;
Fig. 4 is the flow chart for the method that a kind of modified address according to embodiments of the present invention obtains source;
Fig. 5 is the flow chart for the method that another modified address according to embodiments of the present invention obtains source;
Fig. 6 is the structured flowchart for the device that modified address according to embodiments of the present invention obtains source;
Fig. 7 is the structural representation of gateway device according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
The embodiment of the method that the embodiment of the present application 1 is provided can be in gateway device, terminal or similar fortune
Calculate and performed in device.Exemplified by operating on gateway device, Fig. 1 is that a kind of modified address of the embodiment of the present invention obtains source
The hardware block diagram of the gateway device of method.(only show in figure as shown in figure 1, gateway device 10 can include one or more
Going out one) (processor 102 can include but is not limited to Micro-processor MCV or PLD FPGA's etc. to processor 102
Processing unit), the memory 104 for data storage and the transmitting device 106 for communication function.The common skill in this area
Art personnel are appreciated that the structure shown in Fig. 1 is only to illustrate, and it does not cause to limit to the structure of above-mentioned electronic installation.For example,
Gateway device 10 may also include more either less components than shown in Fig. 1 or have the configuration different from shown in Fig. 1.
Memory 104 can be used for the software program and module of storage application software, such as the amendment in the embodiment of the present invention
Programmed instruction/module corresponding to the method in address acquisition source, processor 102 are stored in soft in memory 104 by operation
Part program and module, so as to perform various function application and data processing, that is, realize above-mentioned method.Memory 104 can
Including high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories of person.In some instances, memory 104 can further comprise remote relative to processor 102
The memory that journey is set, these remote memories can pass through network connection to gateway device 10.The example of above-mentioned network includes
But it is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include
The wireless network that the communication providerses of gateway device 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to it is mutual
Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, and it is used
In wirelessly being communicated with internet.
A kind of method for running on above-mentioned gateway device is provided in the present embodiment, and Fig. 2 is according to embodiments of the present invention
Modified address obtain source method flow chart, as shown in Fig. 2 the flow comprises the following steps:
Step S202, in the case where gateway device is restarted, judge the address of external equipment acquisition whether by targeted sites
Distribution;
Step S204, in the case where judged result is no, abandon what non-targeted website was sent according to default filtering rule
Message;
Step S206, obtain the address of targeted sites distribution.
From the foregoing, it will be observed that with reference to step S202 into step S206, the modified address that the embodiment of the present application provides obtains source
Method go for being deployed with the communication network of gateway device, wherein, the gateway device can be with the embodiment of the present application
For family gateway equipment (Home Gateway, abbreviation HG), the external equipment in the embodiment of the present application can be any shifting here
Dynamic terminal, wherein, the mobile terminal can be:Smart mobile phone, notebook computer, PC (Personal Computer,
Abbreviation PC), palm commercial affairs, tablet personal computer or Intelligent worn device.
Specifically, gateway device, by taking HG as an example, external equipment illustrates by taking PC as an example, in the case where HG is restarted, sentence
Whether the address that disconnected PC is obtained is distributed by targeted sites, i.e., can only be in gateway (this due in the configuration process that is issued in omci
In can be HG) complete restart after can just issue configuration, if a certain LAN mouths can only walk Layer 2 data stream, then occur as soon as this
Kind situation:Before omci transmitting order to lower levels, external equipment (can be PC here) has got dynamic host configuration association from HG
(Dynamic Host Configuration Protocol, abbreviation DHCP) address is discussed, is not just obtaining address from internet
, it is therefore desirable to judge whether the address that current PC obtains is that the address that Internet is distributed (that is, judges in the embodiment of the present application
Whether the address that external equipment obtains is distributed by targeted sites);In the case where judged result is no, illustrate what current PC obtained
Address is not the address of Internet distribution, it is therefore desirable to the message of non-Internet contacts is abandoned according to default filtering rule,
That is, re-rent message for needing to be sent to home gateway address all to abandon, for needing the address for being transmitted to internet please
Message is sought, is all let pass.So hang down it is standby re-rent address will be unsuccessful, cause to reacquire address, the ground now obtained
Location is the address of internet distribution, can normally be surfed the Net.Based on above-mentioned, solve under the LAN mouths that can only walk Layer 2 data stream
Hang it is standby, formerly get gateway distribution address in the case of, it is internet that standby address sources are hung under amendment, under guarantee
Hang standby normal online.
The modified address that the embodiment of the present application provides is obtained in the method in source, due to situation about restarting in gateway device
Under, judge whether the address that external equipment obtains is distributed by targeted sites;In the case where judged result is no, foundation was preset
Filter rule abandons the message that non-targeted website is sent;The address of targeted sites distribution is obtained, therefore, can be solved in correlation technique
Due to can not be hung under to each port it is standby distributing wrong source address, cause equipment can not normal transceiving data problem, reach
To equipment by obtaining correct source address, the effect of transceiving data.
Alternatively, judge whether the address that external equipment obtains is included by targeted sites distribution in step S202:
Step1, monitor present port Configuration Type;
Step2, in the case where Configuration Type is optical network unit management control interface omci, obtain omci control class
Type;
Step3, in the case where the Control Cooling for judging omci obtains address for control external equipment by targeted sites, sentence
Whether the address that disconnected external equipment obtains is distributed by targeted sites.
Here in Step3, in the modified address for realizing the embodiment of the present application offer obtains the method in source, can first sentence
Whether disconnected omci Control Cooling is that control external equipment obtains address by targeted sites, further judges that the external equipment obtains
Whether the address taken is distributed by targeted sites.
Further, optionally, the message bag of non-targeted website transmission is abandoned in step S204 according to default filtering rule
Include:
Step1, in the case where Control Cooling obtains address for control external equipment by targeted sites, abandon non-targeted station
The message that point is sent.
Optionally, before judging whether the address of external equipment acquisition is distributed by targeted sites in step S202, this Shen
Please embodiment provide modified address obtain source method also include:
In step S200, the primary lease term that gateway device is distributed to address was revised as the second rental period, wherein, the second rental period is small
Primary lease term, and the second rental period, for ensuring that external equipment re-rents address lease in preset time.
Further, optionally, the method that the modified address that the embodiment of the present application provides obtains source also includes:
Step S201, configure timer;
Step S203, after the completion of timer timing, by gateway device distribute address rental period by the second rental period recover to
Primary lease term.
Optionally, timer timing includes:Countdown or add up timing.
To sum up, the method for obtaining source with reference to step S202 to step S206, the modified address that the embodiment of the present application provides
It is specific as follows:
Fig. 3 is the structural representation that modified address according to embodiments of the present invention obtains system architecture in the method in source,
As shown in figure 3, it can include in the modified address for realizing the embodiment of the present application offer obtains the method in source:Under hang over gateway
Internet servers that are standby, and being connected with gateway device are hung under under equipment, wherein, as shown in figure 3, the application is implemented
It can be PC that example is hung standby under providing, and gateway device can be family gateway equipment HG, based on Fig. 3, be formed by HG and PC
Network in obtain a local network LAN, HG is connected with Internet servers allows the PC for being connected to the HG to pass through this
HG accesses Internet servers.
Fig. 4 is the flow chart for the method that a kind of modified address according to embodiments of the present invention obtains source, as shown in figure 4,
The HG that the embodiment of the present application provides is illustrated exemplified by carrying linux kernel, and based on Fig. 4, HG is hung on the HG's under receiving
Device address request message, judge to hang the targeted sites of standby Address requests message under this, in the situation that the targeted sites are HG
Under, i.e. judge to hang whether standby Address requests message is sent to HG under this, if so, will then hang standby Address requests message under this
Send to HG, if it is not, then abandoning;In the case where the targeted sites are Internet servers, i.e. judge to hang under this standby
Whether Address requests message is sent to Internet servers, is sent out if so, will then hang standby Address requests message under this via HG
Internet servers are delivered to, if it is not, then abandoning.
Fig. 5 is the flow chart for the method that another modified address according to embodiments of the present invention obtains source, such as Fig. 5 institutes
Show, based on Fig. 4, in Figure 5, the method that the modified address that the embodiment of the present application provides obtains source distributes address by changing
In the rental period, shorten the rental period of each address, and the timer being pre-configured with is opened after HG is restarted, meanwhile, the HG is hung under detection
Under hang standby from the address that gateway obtains, determine whether the configuration that omci is issued, if so, then preset filtering rule,
Filter the message of non-Internet servers, and abandon the message, with hang under causing it is standby re-rent address failure, and then under hang
The standby address by reacquisition by Internet server-assignments, standby normal online is hung so as under;If it is not, hung under then judging
It is standby whether to need to re-rent the rental period of address, if so, obtaining address from gateway.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
The device that a kind of modified address obtains source is additionally provided in the present embodiment, and the device is used to realize above-mentioned implementation
Example and preferred embodiment, repeating no more for explanation was carried out.As used below, term " module " can be realized pre-
Determine the combination of the software and/or hardware of function.Although device described by following examples is preferably realized with software,
Hardware, or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 6 is the structured flowchart for the device that modified address according to embodiments of the present invention obtains source, as shown in fig. 6, should
Device includes:Judge module 62, operation executing module 64 and acquisition module 66, wherein,
Judge module 62, in the case of restarting in gateway device, judge the address of external equipment acquisition whether by mesh
Labeling station point distributes;
Operation executing module 64, in the case of being no in judged result, abandoned according to default filtering rule non-targeted
The message that website is sent;
Acquisition module 66, for obtaining the address of targeted sites distribution.
The modified address that the embodiment of the present application provides is obtained in the device in source, due to situation about restarting in gateway device
Under, judge whether the address that external equipment obtains is distributed by targeted sites;In the case where judged result is no, foundation was preset
Filter rule abandons the message that non-targeted website is sent;The address of targeted sites distribution is obtained, therefore, can be solved in correlation technique
Due to can not be hung under to each port it is standby distributing wrong source address, cause equipment can not normal transceiving data problem, reach
To equipment by obtaining correct source address, the effect of transceiving data.
Optionally, judge module 62 includes:Monitoring unit, acquiring unit and judging unit, wherein,
Monitoring unit, for monitoring present port Configuration Type;
Acquiring unit, in the case of being optical network unit management control interface omci in Configuration Type, obtain omci
Control Cooling;
Judging unit, for obtaining the feelings of address by targeted sites for control external equipment in the Control Cooling for judging omci
Under condition, judge whether the address that external equipment obtains is distributed by targeted sites.
Further, optionally, operation executing module 64 includes:Operation execution unit, wherein,
Operation execution unit, in the case of obtaining address by targeted sites in Control Cooling for control external equipment,
Abandon the message that non-targeted website is sent.
Optionally, the device that the modified address that the embodiment of the present application provides obtains source also includes:
Rental period modified module, for judge external equipment obtain address whether distributed by targeted sites before, by net
The primary lease term for closing equipment distribution address was revised as the second rental period, wherein, the second rental period was less than primary lease term, and the second rental period,
For ensuring that external equipment re-rents address lease in preset time.
Further, optionally, the device that the modified address that the embodiment of the present application provides obtains source also includes:
Configuration module, for configuring timer;
Rental period recovery module, for after the completion of timer timing, the rental period that gateway device is distributed to address to be rented by second
Phase recovered to primary lease term.
Optionally, timer timing includes:Countdown or add up timing.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 3
The embodiment of the present application provides a kind of gateway device, and Fig. 7 is the structure of gateway device according to embodiments of the present invention
Schematic diagram, as shown in fig. 7, comprises:Data processor 72 and communication bus 74, data processor 72 are connected with communication bus 74,
Wherein,
Data processor 72, in the case of restarting in gateway device, judge external equipment obtain address whether by
Targeted sites are distributed;
Data processor 72, it is additionally operable in the case where judged result is no, is abandoned according to default filtering rule non-targeted
The message that website is sent;
Communication bus 74, for obtaining the address of targeted sites distribution;
Wherein, the modified address that the gateway device that the embodiment of the present application provides is included shown in Fig. 6 obtains the device in source.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:
S1, in the case where gateway device is restarted, judge whether the address that external equipment obtains is distributed by targeted sites;
S2, in the case where judged result is no, the message of non-targeted website transmission is abandoned according to default filtering rule;
S3, obtain the address of targeted sites distribution.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, monitor present port Configuration Type;
S2, in the case where Configuration Type is optical network unit management control interface omci, obtain omci Control Cooling;
S3, in the case where the Control Cooling for judging omci obtains address for control external equipment by targeted sites, judge
Whether the address that external equipment obtains is distributed by targeted sites.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor is performed in control class according to the program code stored in storage medium
In the case that type obtains address for control external equipment by targeted sites, the message that non-targeted website is sent is abandoned.
Alternatively, in the present embodiment, processor is performed outside judging according to the program code stored in storage medium
Connect equipment acquisition address whether distributed by targeted sites before, the embodiment of the present application provide modified address obtain source side
Method also includes:The primary lease term of gateway device distribution address was revised as the second rental period, wherein, the second rental period was less than first and rented
Phase, and the second rental period, for ensuring that external equipment re-rents address lease in preset time.
Alternatively, in the present embodiment, processor performs configuration timing according to the program code stored in storage medium
Device;After the completion of timer timing, the rental period that gateway device is distributed to address is recovered to primary lease term by the second rental period.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment
Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (13)
1. a kind of method that modified address obtains source, it is characterised in that including:
In the case where gateway device is restarted, judge whether the address that external equipment obtains is distributed by targeted sites;
In the case where judged result is no, the message of the non-targeted sites transmission is abandoned according to default filtering rule;
Obtain the address of the targeted sites distribution.
2. according to the method for claim 1, it is characterised in that judge the address of external equipment acquisition whether by targeted sites
Distribution includes:
Monitor present port Configuration Type;
In the case where the Configuration Type is optical network unit management control interface omci, the control class of the omci is obtained
Type;
Obtain the feelings of the address by the targeted sites for the control external equipment in the Control Cooling for judging the omci
Under condition, judge whether the address that the external equipment obtains is distributed by the targeted sites.
3. according to the method for claim 2, it is characterised in that abandon the non-targeted sites hair according to default filtering rule
The message sent includes:
In the case where the Control Cooling is controls the external equipment to obtain the address by the targeted sites, abandon non-
The message that the targeted sites are sent.
4. according to the method for claim 1, it is characterised in that in the address for judging external equipment acquisition whether by mesh
Before the distribution of labeling station point, methods described also includes:
The primary lease term of gateway device distribution address was revised as the second rental period, wherein, second rental period is less than described
Primary lease term, and second rental period, for ensuring that the external equipment re-rents address lease in preset time.
5. according to the method for claim 4, it is characterised in that methods described also includes:
Configure timer;
After the completion of the timer timing, the rental period that the gateway device is distributed to address is recovered to institute by second rental period
State primary lease term.
6. according to the method for claim 5, it is characterised in that the timer timing includes:Countdown or add up to count
When.
7. a kind of modified address obtains the device in source, it is characterised in that including:
Judge module, in the case of restarting in gateway device, judge the address of external equipment acquisition whether by targeted sites
Distribution;
Operation executing module, in the case of being no in judged result, the non-Target Station is abandoned according to default filtering rule
The message that point is sent;
Acquisition module, for obtaining the address of the targeted sites distribution.
8. device according to claim 7, it is characterised in that the judge module includes:
Monitoring unit, for monitoring present port Configuration Type;
Acquiring unit, in the case of being optical network unit management control interface omci in the Configuration Type, described in acquisition
Omci Control Cooling;
Judging unit, for controlling the external equipment to be obtained by the targeted sites in the Control Cooling for judging the omci
In the case of the address, judge whether the address that the external equipment obtains is distributed by the targeted sites.
9. device according to claim 8, it is characterised in that the operation executing module includes:
Operation execution unit, for described by targeted sites acquisition for the control external equipment in the Control Cooling
In the case of location, the message that the non-targeted sites are sent is abandoned.
10. device according to claim 7, it is characterised in that described device also includes:
Rental period modified module, for it is described judge external equipment obtain address whether distributed by targeted sites before, by institute
The primary lease term for stating gateway device distribution address was revised as the second rental period, wherein, second rental period is less than the primary lease term,
And second rental period, for ensuring that the external equipment re-rents address lease in preset time.
11. device according to claim 10, it is characterised in that described device also includes:
Configuration module, for configuring timer;
Rental period recovery module, for after the completion of the timer timing, distributing the gateway device to the rental period of address by institute
Stated for the second rental period to recover to the primary lease term.
12. device according to claim 11, it is characterised in that the timer timing includes:Countdown or add up
Timing.
A kind of 13. gateway device, it is characterised in that including:Data processor and communication bus, the data processor with it is described
Communication bus connects, wherein,
The data processor, in the case of restarting in gateway device, judge the address of external equipment acquisition whether by mesh
Labeling station point distributes;
The data processor, it is additionally operable in the case where judged result is no, the non-mesh is abandoned according to default filtering rule
The message that labeling station point is sent;
The communication bus, for obtaining the address of the targeted sites distribution;
Wherein, the modified address that the gateway device is included any one of claim 7 to 12 obtains the device in source.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610430931.4A CN107517281A (en) | 2016-06-16 | 2016-06-16 | Modified address obtains the method, apparatus and gateway device in source |
PCT/CN2017/087090 WO2017215465A1 (en) | 2016-06-16 | 2017-06-02 | Method and device for correcting address acquisition source and gateway device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610430931.4A CN107517281A (en) | 2016-06-16 | 2016-06-16 | Modified address obtains the method, apparatus and gateway device in source |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107517281A true CN107517281A (en) | 2017-12-26 |
Family
ID=60664318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610430931.4A Pending CN107517281A (en) | 2016-06-16 | 2016-06-16 | Modified address obtains the method, apparatus and gateway device in source |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107517281A (en) |
WO (1) | WO2017215465A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150363B (en) * | 2022-06-27 | 2024-05-10 | 中兴通讯股份有限公司 | IP address updating method, gateway device, gateway down-hanging device and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621406B (en) * | 2009-07-28 | 2012-12-26 | 中兴通讯股份有限公司 | Method for configuring domestic gateways in batch, configuring equipment and domestic gateways |
CN101719927A (en) * | 2009-11-18 | 2010-06-02 | 中兴通讯股份有限公司 | Method and system thereof for carrying out remote management on gateway down-hanging device |
CN101860771B (en) * | 2010-06-02 | 2014-06-11 | 中兴通讯股份有限公司 | Home gateway identifying and networking method and system |
CN103795584A (en) * | 2012-10-30 | 2014-05-14 | 华为技术有限公司 | Client side identity detection method and gateway |
CN103701628A (en) * | 2013-10-12 | 2014-04-02 | 华为技术有限公司 | Home gateway configuration management method, virtual home gateway and optical network terminal |
-
2016
- 2016-06-16 CN CN201610430931.4A patent/CN107517281A/en active Pending
-
2017
- 2017-06-02 WO PCT/CN2017/087090 patent/WO2017215465A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2017215465A1 (en) | 2017-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102238230B (en) | Method and system for offloading tunnel packet processing in cloud computing | |
US11201814B2 (en) | Configuration of networks using switch device access of remote server | |
CN102576343B (en) | Department of computer science unifies virtual machine migration method | |
US8380819B2 (en) | Method to allow seamless connectivity for wireless devices in DHCP snooping/dynamic ARP inspection/IP source guard enabled unified network | |
EP2924950B1 (en) | Authentication of client devices in networks | |
US10033622B2 (en) | Controller-based dynamic routing in a software defined network environment | |
US9813291B2 (en) | Shortest path bridging (SPB) configuration of networks using client device access of remote | |
CN104350467A (en) | Elastic enforcement layer for cloud security using SDN | |
WO2015167597A1 (en) | Data plane to forward traffic based on communications from a software defined networking (sdn) controller during control plane failure | |
US20150271016A1 (en) | Configuration of networks with server cluster device | |
CN105141463A (en) | Router remote upgrade system and method based on server strategy | |
CN104767841A (en) | Method for updating address resolution protocol table item in software-defined network and gateway equipment | |
CN108141481A (en) | The enhanced neighbours of communication network have found | |
CN106506717A (en) | A kind of automatic discovering method and equipment | |
CN111934969B (en) | Maintenance method and device of MAC forwarding table | |
CN107517281A (en) | Modified address obtains the method, apparatus and gateway device in source | |
CN112667293B (en) | Method, device and storage medium for deploying operating system | |
CN111163463B (en) | Method, device, equipment and storage medium for wireless equipment to access router | |
RU2693903C1 (en) | Method, apparatus and processing system for expanded port | |
CN110086676B (en) | Configuration method of distributed router and related equipment | |
GB2518695A (en) | Enabling Configuration in Networks | |
CN107209504B (en) | Device for use in production and method for establishing production interactions | |
CN103986692B (en) | Data forwarding method and system based on wireless access point | |
CN113286011B (en) | IP address allocation method and device based on VXLAN | |
CN108259292B (en) | Method and device for establishing tunnel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171226 |