Embodiment
Fig. 1 is the network architecture schematic diagram of expression according to the network address converting system 10 of the embodiment of the invention.Under preferable situation, this network architecture comprises network address management server 11, display unit 13, portable telephone device 15 and personal computer 17.Wherein, display unit 13, portable telephone device 15 and personal computer 17 can entity online (wired-connection), wireless or mix the online and wireless mode of entity and be connected to network address management server 11.Under preferable situation, network address management server 11 is DynamicHost address setting protocol server (Dynamic Host Configuration Protocol, DHCP server).Perhaps must be and have the knack of the binding that this skill person all understands 17 of network address management server 11, display unit 13, portable telephone device 15 and personal computers by a plurality of intermediary node, for example, WAP (wireless access point) (accesspoint), base station (base station), hub (hub), bridger (bridge), router (router) or other intermediary node in order to processing network service.Under preferable situation, network address management server 11, display unit 13, portable telephone device 15 meet DLNA (DigitalLiving Network Alliance, the cross-platform integration guilding principle of DLNA DLNA) (guideline) with personal computer 17.Under preferable situation, network address management server 11, display unit 13, portable telephone device 15 have dhcp client with personal computer 17, make when device is connected to network for the first time, possess the function of searching Dynamic Host Configuration Protocol server in addition.
Fig. 2 is the hardware structure figure that be applied to network address management server 11 or personal computer 17 of expression according to the embodiment of the invention.In network address management server 11 and the personal computer 17 one comprises processing unit 21, internal memory 22, storage device 23, output device 24, input unit 25, communicator 26, and uses bus 27 that it is linked together.In addition, haveing the knack of this skill personage also can be implemented on person one of in network address management server 11 and the personal computer 17 on other computer system configurations (configuration), for example, multicomputer system, based on microprocessor or programmable consumption electronic products (microprocessor-based or programmable consumer electronics), network computer, mini-computer, mainframe, mobile computer and similar equipment.Processing unit 21 can comprise a single CPU (central-processing unit; CPU) or close a plurality of parallel processing units be connected in parallel computing environment (parallel processing environment).Internal memory 22 comprises read-only memory (read only memory; ROM), flash memory (flash ROM) with and/or dynamic access internal memory (randomaccess memory; RAM), can be in order to store for the program module and the data of processing unit 21 execution.Generally speaking, program module comprises Chang Xu (routines), program (program), object (object), assembly (component) etc., in order to carry out the network address translation function.The present invention can also be implemented on the distributed arithmetic environment, and it is performed that its computing work is linked to the teleprocessing equipment of telecommunication network by one.In distributed environment, perhaps person's function executing is finished jointly by this locality and multi-section remote computer system one of in network address management server 11 and the personal computer 17.Storage device 23 comprises hard disk unit, diskette unit, optical disc apparatus or walkman device, in order to read the program module that stores in hard disk, floppy disk, CD, the walkman with and/or data.Communicator 26 can be the cable network card or meets the wireless network card of GPRS, 802.11, blue bud (bluetooth) specification.
Fig. 3 is the system architecture diagram of expression according to the portable telephone device of the embodiment of the invention.Portable telephone device 15 can comprise digital signal processing unit (Digital Signal Processor, DSP) 31, Analog Baseband (Analog Baseband) 32, radio frequency unit (Radio Frequency section, RF section) 33, antenna 34, control unit 35, screen 36, keyboard (key pad) 37, Power Management Unit 38 and storage device 39.In addition, haveing the knack of this skill personage also can be with the invention process in the configuration (configuration) of other handheld apparatus, for example personal digital assistant (digital personal assistant, PDA), digital music player (MP3player), walkman or Portable consumption electronic products etc.Control unit 35 can be microprocessing unit (Micro Processing Unit; MPU), in order to from 39 fetch program of storage device module, and carry out the program module that is read and finish the network address translation function.Storage device 39 comprises read-only memory (read only memory; ROM), flash memory (flash ROM) with and/or dynamic access internal memory (randomaccess memory; RAM), can be in order to store for the program module of control unit 35 execution.
Fig. 4 is the system architecture diagram of expression according to the liquid crystal indicator 13 of the embodiment of the invention, comprises digital signal input end 41, input end of analog signal 43, drive integrated circult (ScalarIC) 45, processing unit 46, storage device 47, communicator 48 and panel of LCD 49.In addition, haveing the knack of this skill personage also can be with the invention process on other display device configurations (configuration), for example, crt display (CRT displayer), plasma scope (plasma display panel displayer, PDP displayer), organic light emitting diode display (organic light-emitting diode displayer, OLED displayer) and other similar display unit.Storage device 47 can comprise read-only memory (read only memory; ROM), flash memory (flash ROM) with and/or dynamic access internal memory (randomaccess memory; RAM), the program module that storage can be carried out for processing unit 46 when being used to program module and being loaded and carrying out, provides the network address translation function.
First embodiment
Fig. 5 is the method flow diagram of expression according to the network address conversion of first embodiment of the invention.The shown method of Fig. 5 is three zones by cutting, the Regional Representative on the left side is by the performed method of personal computer 17, middle Regional Representative is by the performed method of network address management server 11, and the Regional Representative on the right is by the performed method of display unit 13 or portable telephone device 15.Three zones are separated by two dotted lines, to increase its readability.Suppose to exist the network address in two subnet territories, be respectively 192.192.1.x and 203.62.x.x, and network address management server 11 is in order to store and to distribute network address in the 192.192.1.x subnet territory one of to give in display unit 13, portable telephone device 15 and the personal computer 17 person.The person has obtained a network address (maybe can abbreviate D-address as) the 192.192.1.x subnet territory as oneself unit address from network address management server 11 one of in display unit 13 and the portable telephone device 15.And personal computer 17 has just connected upward network, and manages to obtain a network address.
As step S5111, personal computer 17 broadcasting network address detection informations (network address probemessage) wherein, comprise the network address (maybe can abbreviate A-address as) in the 203.62.x.x subnet territory.Whether the network address detection information comprises inquiry and exists network address in the use to be same as the information of particular web site wherein.
As step S5311, network address management server 11 carries out step S5313 after receiving broadcasting network address detection informations, closes response function, during the solicited message that transmits in order to person one of in receiving display unit 13 and portable telephone device 15, ignores this solicited message.
Afterwards, as step S5511, the person transmits solicited messages to network address management server 11 one of in display unit 13 and the portable telephone device 15.As step S5315, after network address management server 11 receives solicited message, carry out step S5317, ignored request information.
Second embodiment
Fig. 6 is the method flow diagram of expression according to the network address conversion of second embodiment of the invention.The shown method of Fig. 6 is three zones by cutting, the Regional Representative on the left side is by the performed method of personal computer 17, middle Regional Representative is by the performed method of network address management server 11, and the Regional Representative on the right is by the performed method of display unit 13 or portable telephone device 15.Three zones are separated by two dotted lines, to increase its readability.The network address that has two subnet territories again in the present embodiment, be respectively 192.192.1.x and 203.62.x.x, and network address management server 11 in order to the terminal installation that stores and distribute network address in the 192.192.1.x subnet territory to give to enter this LAN in advance as display unit 13, portable telephone device 15 and personal computer 17.The person has obtained a network address (maybe can abbreviate D-address as) the 192.192.1.x subnet territory as oneself unit address from network address management server 11 one of in display unit 13 and the portable telephone device 15.And personal computer 17 has just started the network connections LAN, and manages to obtain an available network address from network address management server 11.
At step S6111, personal computer 17 broadcasting server detection informations (server discoverymessage) are in order to detect the server that whether has a management network address on the network.This server detection information is the DHCPDISCOVER information that meets the DHCP standard under preferable situation.In ideal conditions, personal computer 17 can receive server and have information (server offer message), and representative has the server of a management network address.It is the DHCPOFFER information that meets the DHCP standard under preferable situation that there is information in this server.At step S6311, network address management server 11 receives the server detection information.At step S6313, if the network address that stores in the network address management server 11 has all dispensed or other is former thereby any network address that decision is not allocated in the 192.192.1.x subnet territory is given personal computer 17, therefore, network address management server 11 is ignored this server detection information, does not respond any information and gives personal computer 17.Another kind of way, network address management server 11 are sent the refusal information (discovery rejection message) of surveying, and in order to notice personal computer 17, the server detection information that it sent is refused.This surveys refusal information is the DHCPNAK information that meets the DHCP standard under preferable situation.
At step S6121, personal computer 17 judges whether the server detection fails, and is the then processing of execution in step S6131.In step S6121, personal computer 17 can be when arriving the overtime time (time-out) and not receiving that any network address is granted information, again broadcasting server detection information, then, at the broadcast capability again of carrying out set number of times and when not receiving that any network address is granted information, judge that server surveys failure.In another case, personal computer 17 can be judged server detection failure when receiving detection refusal information.
At step S6131, personal computer 17 is carried out automatic network address setting program, personal computer 17 is selected a network address (maybe can abbreviate A-address as) randomly from default regional subnet territory 203.62.x.x, under preferable situation the Internet communication protocol (Internet Protocol, IP) address; Regional subnet territory 203.62.x.x herein is for being pre-stored among personal computer 17 in the present embodiment, display unit 13 and the portable telephone device 15, aim at said apparatus and carry out automatic network address setting program, because of it is used for the application of LAN, operable network address can be very big.At step S6133, whether personal computer 17 broadcasting comprises the network address detection information (network address probe message) of selecting network address, exists the employed network address of any device to be same as the network address of newly choosing in order to inquire.This network address detection information under preferable situation for meeting address resolution communication protocol (Address Resolution Protocol, ARP) the ARP probe information of standard.In ideal conditions, personal computer 17 can not receive any network address conflict (address conflict) information, otherwise, if exist the employed network address of arbitrary device to be same as the selected network address that arrives, personal computer 17 can receive network address conflict (address conflict) information.At step S6135, judge whether the network address of choosing is available, is the processing of then carrying out step S6137, otherwise carries out the processing of step S6131.In step S6131, personal computer 17 can be when arriving the overtime time and not receiving any network address conflicting information, judges that the network address of choosing can use.In another case, personal computer 17 can be broadcasted the network address detection information, then again when arriving the overtime time and not receiving any network address conflicting information, at the broadcast capability again of carrying out set number of times and when not receiving any network address conflicting information, judge that the network address of choosing can use.At step S6137, broadcasting comprises the network address declaration information (network address announcement message) of selecting network address, installs its employed network address (A-address) in order to inform all.This network address declaration information under preferable situation for meeting address resolution communication protocol (Address Resolution Protocol, ARP) the ARPannouncement information of standard.
At step S6321, network address management server 11 receives the network address detection information.At step S6323, close the query-response function, in order to when receiving any network address management server inquiry message (networkaddress management server querymessage), ignore network address management server inquiry message, that is be not reply network address management server response message (network address management serveracknowledge message).
At step S6511, the person receives the network address detection information one of in display unit 13 and the portable telephone device 15.At step S6513, transmit network address management server inquiry message, in order to detect the whether normal operation of network address management server.Network address management server inquiry message is the DHCPINFO information that meets the DHCP standard under preferable situation.Under normal situation, the person can receive network address management server response message one of in display unit 13 and the portable telephone device 15, otherwise, if do not receive network address management server response message, represent the inefficacy of network address management server.Network address management server response message is the DHCPACK information that meets the DHCP standard under preferable situation.At step S6331, network address management server 11 receives network address management server inquiry message, yet, owing to the query-response function is closed, thus network address management server inquiry message ignored, that is be not reply network address management server response message.At step S6521, judge whether the network address management server lost efficacy, be the then processing of execution in step S6531.In step S6531, the person can be when arriving the overtime time (time-out) and not receiving any network address management server response message one of in display unit 13 and the portable telephone device 15, the network address that retransfers management server inquiry message, then, carrying out the function and when not receiving any network address management server response message of retransferring of set number of times, judge that the network address management server lost efficacy.
At step S6531, the person carries out automatic network address setting program one of in display unit 13 and the portable telephone device 15, promptly selecting a network address (maybe can abbreviate A-address as) randomly from regional subnet territory 203.62.x.x, is the Internet communication protocol address under preferable situation.Whether at step S6533, broadcasting comprises the network address detection information of selecting network address, have the network address of any device to be same as the selected network address that arrives in order to inquiry.In ideal conditions, the person can not receive any network address conflicting information one of in display unit 13 and the portable telephone device 15, otherwise, if exist the employed network address of any device to be same as the selected network address that arrives, the person can receive the network address conflicting information one of in display unit 13 and the portable telephone device 15.At step S6535, judge whether the network address of choosing is available, is the processing of then carrying out step S6537, otherwise carries out the processing of step S6531.In step S6535, the person can be when arriving the overtime time and not receiving any network address conflicting information one of in display unit 13 and the portable telephone device 15, judges that the network address of choosing can use.In another case, the person can be when arriving the overtime time and not receiving any network address conflicting information one of in display unit 13 and the portable telephone device 15, again broadcast the network address detection information, then, at the broadcast capability again of carrying out set number of times and when not receiving any network address conflicting information, judge that the network address of choosing can use.At step S6537, broadcasting comprises the network address declaration information of selecting network address, installs its employed network address (A-address) in order to inform all.
In addition at step S6311, after network address management server 11 receives the server detection information, network address management server 11 can send inquiry message to having distributed the electronic installation of 192.192.1.x on the consolidated network according to the information of internal reservoir, confirm that these electronic installations are still using the network address of 192.192.1.x, if the affirmation of in a scheduled time, not receiving these electronic installations, then reclaim the network address of these electronic installations unconfirmed, and distribute suitable network address to give the personal computer 17 of just carrying out network entry, if can't reclaim the network address of any 192.192.1.x, execution in step S6313 still then.
Must be noted that if considering network address management server 11 is not present in the network or network address management server 11 when being in the situation of inefficacy all method steps described in the zone in the middle of can ignoring.
The 3rd embodiment
Fig. 7 is the method flow diagram of expression according to the network address conversion of third embodiment of the invention.The shown method of Fig. 7 is three zones by cutting, the Regional Representative on the left side is by the performed method of personal computer 17, middle Regional Representative is by the performed method of network address management server 11, and the Regional Representative on the right is by the performed method of display unit 13 or portable telephone device 15.Three zones are separated by two dotted lines, to increase its readability.Suppose to exist the network address in two subnet territories, be respectively 192.192.1.x and 203.62.x.x, and network address management server 11 one of is given in display unit 13, portable telephone device 15 and the personal computer 17 person in order to distribute network address in the 192.192.1.x subnet territory.The person has obtained a network address (maybe can abbreviate D-address as) the 192.192.1.x subnet territory as oneself unit address from network address management server 11 one of in display unit 13 and the portable telephone device 15.And personal computer 17 has just connected upward network, and manages to obtain a network address.
At step S7111, personal computer 17 broadcasting server detection informations (server discoverymessage) are in order to detect the server that whether has a management network address on the network.This server detection information is the DHCPDISCOVER information that meets the DHCP standard under preferable situation.In ideal conditions, personal computer 17 can receive server and have information (server offer message), and representative has the server of a management network address.It is the DHCPOFFER information that meets the DHCP standard under preferable situation that there is information in this server.At step S7311, network address management server 11 receives the server detection information.At step S7313, any network address that decision can't be allocated in the 192.192.1.x subnet territory is given personal computer 17, therefore, ignores this server detection information, does not respond any information and gives personal computer 17.In another case, network address management server 11 sends the refusal information (discoveryrejection message) of surveying, and in order to notice personal computer 17, the server detection information that it sent is refused.This surveys refusal information is the DHCPNAK information that meets the DHCP standard under preferable situation.
At step S7121, personal computer 17 judges whether the server detection fails, and is the then processing of execution in step S7131.In step S7121, personal computer 17 can be when arriving the overtime time (time-out) and not receiving that any network address is granted information, again broadcasting server detection information, then, at the broadcast capability again of carrying out set number of times and when not receiving that any network address is granted information, judge that server surveys failure.In another case, personal computer 17 can be judged server detection failure when receiving detection refusal information.
At step S7131, personal computer 17 is carried out automatic network address setting program, selects a network address (maybe can abbreviate A-address as) randomly from regional subnet territory 203.62.x.x, is the Internet communication protocol address under preferable situation.At step S7133, whether personal computer 17 broadcasting comprise the network address detection information of selecting network address, exist the employed network address of any device to be same as the network address of newly choosing in order to inquiry.This network address detection information is the ARPprobe information that meets the ARP standard under preferable situation.In ideal conditions, personal computer 17 can not receive any network address conflict (address conflict) information, otherwise, if exist the employed network address of arbitrary device to be same as the selected network address that arrives, personal computer 17 can receive network address conflict (address conflict) information.At step S7135, judge whether the network address of choosing is available, is the processing of then carrying out step S7137, otherwise carries out the processing of step S7131.In step S7131, personal computer 17 can be when arriving the overtime time and not receiving any network address conflicting information, judges that the network address of choosing can use.In another case, personal computer 17 can be broadcasted the network address detection information, then again when arriving the overtime time and not receiving any network address conflicting information, at the broadcast capability again of carrying out set number of times and when not receiving any network address conflicting information, judge that the network address of choosing can use.At step S7137, broadcasting comprises the network address declaration information of selecting network address, installs its employed network address (A-address) in order to inform all.This network address declaration information is the ARPannouncement information that meets the ARP standard under preferable situation.
At step S7321, network address management server 11 receives the network address detection information.At step S7323, close the network address distribution function, in order to when receiving any website address request information, ignore website address request information, that is be distribution network location and do not reply request approval information not.At step S7325, transmit network address lastest imformation (network address renew message) and one of give in display unit 13 and the portable telephone device 15 person, obtain a new network address to network address management server 11 again in order to one of to force in display unit 13 and the portable telephone device 15 person.
At step S7521, the person receives network address update notification information one of in display unit 13 and the portable telephone device 15.At step S7523, transmit website address request information (address request message) and give network address management server 11, in order to obtain a new network address from network address management server 11.This website address request information is the DHCPREQUEST information that meets the DHCP standard under preferable situation.At step S7331, network address management server 11 receives website address request information, yet, owing to the network address distribution function is closed, so ignore website address request information; In another case, network address management server 11 sends the refusal information (discoveryrejection message) of surveying, in order to notice display unit 13 or portable telephone device 15, the server detection information that it sent is refused, that is is that display unit 13 or portable telephone device 15 are not given in the distribution network location.This request approval information is the DHCPACK information that meets the DHCP standard under preferable situation.At step S7531, judge whether website address request fails, be the then processing of execution in step S7541.In step S7541, the person can be when arriving the overtime time (time-out) and not receiving any request approval information one of in display unit 13 and the portable telephone device 15, the website address request that retransfers information, then, carrying out the function and when not receiving any request approval information of retransferring of set number of times, judge the website address request failure.
At step S7541, the person selects a network address (maybe can abbreviate A-address as) randomly from regional subnet territory 203.62.x.x one of in display unit 13 and the portable telephone device 15, is the Internet communication protocol address under preferable situation.Whether at step S7543, broadcasting comprises the network address detection information of selecting network address, have the network address of any device to be same as the selected network address that arrives in order to inquiry.In ideal conditions, the person can not receive any network address conflicting information one of in display unit 13 and the portable telephone device 15, otherwise, if exist the employed network address of any device to be same as the selected network address that arrives, the person can receive the network address conflicting information one of in display unit 13 and the portable telephone device 15.At step S7545, judge whether the network address of choosing is available, is the processing of then carrying out step S7547, otherwise carries out the processing of step S7541.In step S7545, the person can be when arriving the overtime time and not receiving any network address conflicting information one of in display unit 13 and the portable telephone device 15, judges that the network address of choosing can use.In another case, the person can be when arriving the overtime time and not receiving any network address conflicting information one of in display unit 13 and the portable telephone device 15, again broadcast the network address detection information, then, at the broadcast capability again of carrying out set number of times and when not receiving any network address conflicting information, judge that the network address of choosing can use.At step S7547, broadcasting comprises the network address declaration information of selecting network address, installs its employed network address (A-address) in order to inform all.
Moreover the embodiment of the invention more proposes a kind of computer-readable storage media, and in order to store a computer program, aforementioned calculation machine program is in order to realize the network address conversion method, and these methods can be carried out aforesaid step.Fig. 8 is the computer-readable storage media schematic diagram of expression according to the network address conversion of the embodiment of the invention.This Storage Media 80, in order to store network address coordinate conversion computer program 820, its computer program comprises four logics, is respectively that reception server is surveyed, network address is surveyed, inquiry of network address management server or network address declaration infologic 821, judges whether to exist any available network address logic 822, closes response function logic 823 and transmit network address refusal infologic 824.
The 4th embodiment
Fig. 9 is the module diagram of expression according to the network address management server of fourth embodiment of the invention.This
EmbodimentThe network address that has two subnet territories, be respectively 192.192.1.x and 203.62.x.x, and network address management server 11 is in order to store and to distribute network address in the 192.192.1.x subnet territory one of to give in display unit 13, portable telephone device 15 and the personal computer 17 person.The person has obtained a network address (maybe can abbreviate D-address as) the 192.192.1.x subnet territory as oneself unit address from network address management server 11 one of in display unit 13 and the portable telephone device 15.And personal computer 17 has just connected upward network, and manages to obtain a network address.The person all stores the network address in the 203.62.x.x subnet territory one of in display unit 13, portable telephone device 15 and the personal computer 17.
Network address management server 11 comprises storage module 91, setting module 93, control module 95 and respond module 97.Storage module 91 is in order to store the network address in the 192.192.1.x subnet territory.Setting module 93 uses a network address in the 192.192.1.x subnet territory in order to one of to set in display unit 13, portable telephone device 15 and the personal computer 17 person.Respond module 97 is in order to receive and to reply the information that display unit 13, portable telephone device 15 and personal computer 17 are transmitted.Control module 95 is in order to a network address detection information that receives personal computer 17 and judges when not having available network address in the storage module 91, close the response function of respond module 97, one of make in personal computer 17, display unit 13 and the portable telephone device 15 person use the network address in the 203.62.x.x subnet territory to communicate by letter.
In one case, control module 95 can distribute the network address in a plurality of 192.192.1.x subnets territory to the display unit 13, the portable telephone device 15 and personal computer 17 that are connected on the network respectively, and when receiving the server detection information, respectively this display unit 13, portable telephone device 15 are sent inquiry with personal computer 17, if in a scheduled time, do not receive the affirmation information of portions of electronics device, then regain the network address of these electronic installations unconfirmed.The server detection information comprises the information whether inquiry network address management server 11 exists.Control module 95 can be ignored this server detection information or respond a detection refusal information.The network address detection information is for personal computer 17 sends after carrying out an automatic network address setting program, and this automatic network address setting program startup is not obtain the response of network address management server 11 or obtain starting after this detection refusal information for personal computer 17 sends behind this server detection information one scheduled time of wait opportunity.
In one case, after receiving the network address detection information, control module 93 more can transmit network address update notification information and one of comprise one of in display unit 13, portable telephone device 15 and the personal computer 17 person, network address update notification information to force in display unit 13, portable telephone device 15 and the personal computer 17 person to obtain the information of the new network address in the 192.192.1.x subnet territory again to network address management server 11.
In one case, the person does not obtain this control module 95 responses one of in display unit 13 and portable telephone device 15, and the person sends a network address detection information one of in display unit 13 and the portable telephone device 15.Control module 95 can more receive this network address detection information, and this network address detection information one of is relevant in display unit 13 and the portable telephone device 15 information that the person selects network address in the 203.62.x.x subnet territory for use.
Though embodiments of the invention disclose as above; right its is not in order to qualification the present invention, any those who are familiar with this art, without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking accompanying the claim person of defining.