Summary of the invention
Main purpose of the present invention provides a kind of moving advertising distribution method and system, is intended to solve the multicast distribution problem of obtaining location-based moving advertising in the Novel movable ad system, improves the user and experiences.
The invention provides a kind of moving advertising distribution method, may further comprise the steps:
Send the domain name server (DNS) query requests to external network;
Judge in the described DNS query requests and whether carry positional information; If, then receive and resolve the inquiry of the domain name result that external network returns, obtain multicast address; If not, then receive the inquiry of the domain name result that external network returns, according to the positional information in the described Query Result, the coupling multicast address;
Add corresponding multicast group according to described multicast address, and send the advertising business request to multicast source;
Receive the advertisement that described multicast source is sent out to described multicast component.
Preferably, described reception is also resolved the inquiry of the domain name result that external network returns, and the step of obtaining multicast address specifically comprises:
Resolve the inquiry of the domain name result, obtain multicast information;
According to described multicast information, from the domain name mapping result, extract the attribute information that is complementary with described multicast information;
According to described attribute information, obtain multicast address.
Preferably, described multicast information comprises current location information and the network information.
Preferably, described step to external network transmission DNS query requests specifically comprises:
According to the domain name that the network information is selected and the described network information is complementary, the analysis request of domain name is sent to the DNS client of described terminal;
The described analysis request of described DNS client is inquired about the parsing mapping item in the described DNS client terminal local buffer memory;
Judge the parsing mapping item that whether has domain name in the described local cache;
If not, then send the DNS query requests to external network.
Preferably, described multicast group has the uniquely identified Main Domain, and each multicast address under the multicast group is corresponding one by one with the subdomain name that described Main Domain makes up.
The present invention also provides a kind of moving advertising dissemination system, comprising:
Terminal is used for sending the DNS query requests to external network;
Described terminal also is used for, and when carrying positional information in described DNS query requests, receives the inquiry of the domain name result that external network returns, and obtains multicast address; When in described DNS query requests, not carrying positional information, according to the positional information in the described Query Result, the coupling multicast address; Add corresponding multicast group according to described multicast address, send the advertising business request to multicast source;
The positional information judge module is used for judging whether described DNS query requests carries positional information;
The advertisement module is used for receiving the advertisement that described multicast source is sent out to described multicast component.
Preferably, described terminal specifically comprises:
The query requests sending module is used for sending the DNS query requests to external network;
The multicast address acquisition module is used for when described DNS query requests is carried positional information, and reception is also resolved the inquiry of the domain name result that external network returns, and obtains multicast address;
The multicast address matching module is used for receiving the inquiry of the domain name result that external network returns when described DNS query requests is not carried positional information, according to the positional information in the described Query Result, and the coupling multicast address;
The advertising business request module is used for adding corresponding multicast group according to described multicast address, sends the advertising business request to multicast source;
Described advertising business request module specifically comprises:
The domain name mapping unit is used for resolving the inquiry of the domain name result, obtains multicast information;
Information extraction unit is used for according to described multicast information, extracts the attribute information that is complementary with described multicast information from the domain name mapping result;
Address acquisition unit is used for according to described attribute information, obtains multicast address.
Preferably, described multicast information comprises current location information and network side information.
Preferably, the query requests sending module of described terminal specifically comprises:
The domain names matching unit is used for the analysis request of domain name being sent to the DNS client of described terminal according to the domain name that the network information is selected and the described network information is complementary;
The DNS client is used for receiving described analysis request, inquires about the parsing mapping item in the described DNS client terminal local buffer memory; Judge the parsing mapping item that whether has domain name in the described local cache; When in described local cache, not having the parsing mapping item of domain name, send the DNS query requests to external network.
Preferably, described multicast group has the uniquely identified Main Domain, and each multicast address under the multicast group is corresponding one by one with the subdomain name that described Main Domain makes up.
The present invention is by sending the DNS query requests to external network, the inquiry of the domain name result that reception and parsing external network return obtains multicast address, add corresponding multicast group according to described multicast address, and after the request of multicast source transmission advertising business, receive the method for the advertisement that multicast source sends out to described multicast component, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, improved user's experience, effectively utilize air resource, alleviated the network pressure of operator.
Embodiment
Further specify technical scheme of the present invention below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 3, Fig. 3 is that user program in the prior art, DNS client and dns server concern schematic diagram.As shown in Figure 3, DNS (Domain Name Server, name server) operational process is as follows: terminal checks local cache information, if there is required multicast address in the local cache information, then directly uses described multicast address; If do not have described multicast address in the local cache information, then send the multicast address request to the local dns client; The local dns client checks cache information, if there is required multicast address in the local dns client, described multicast address is returned to terminal, if there is not required multicast address in the local dns client, then the local dns client sends the DNS query requests to dns server; After dns server is received described query requests, corresponding multicast address is returned to the DNS client, described DNS client sends to described terminal with described multicast address again; The multicast address that described terminal is needed by the acquisition of DNS client.
With reference to Fig. 4, Fig. 4 is communication network connection diagram of the present invention.Communication network connection diagram as shown in Figure 4 is the basic scene of moving advertising distribution method of the present invention and each embodiment of system.In the present invention, described multicast address refers to multicast IP (Internet Protocol, Internet protocol) address; In a preferred embodiment, the multicast IP address relevant with the position refers to multicast IP address is expanded, and the part in the multicast IP address is used for the expression positional information.In a preferred embodiment, the multicast IP address of chain-supermarket X releasing advertisements is 224.0.2.1~224.0.2.4, the multicast IP address of sales field, the city east releasing advertisements in wherein said supermarket is 224.0.2.1, the multicast IP address of sales field, west of a city releasing advertisements is 224.0.2.2, the multicast IP address of north of the city sales field releasing advertisements is 224.0.2.3, and the multicast IP address of sales field, south of a city releasing advertisements is 224.0.2.4.Above-mentioned multicast IP all regards the address several multicasts IP address under the described supermarket multicast group as.
With reference to Fig. 5, Fig. 5 is moving advertising distribution method one embodiment schematic flow sheet of the present invention.As shown in Figure 5, moving advertising distribution method of the present invention may further comprise the steps:
Step S01, send the DNS query requests to external network;
Terminal checks local cache information, if there is not the current required domain name of system in the local cache information, then terminal sends the DNS query requests to external network, in order to obtain needed domain name.In a preferred embodiment, can carry current location information and current network information in the described DNS query requests.
Step S02, judge in the described DNS query requests whether carry positional information; If, execution in step S03 then; If not, execution in step S04 then;
After terminal sent the DNS request to external network, the domain name that network side is resolved according to the needs that carry in the DNS query requests was resolved; Simultaneously, whether carry positional information in the described DNS query requests of terminal judges; Because whether terminal need to according to carrying positional information in the DNS query requests, and takes different modes to obtain multicast address;
Step S03, reception are also resolved the inquiry of the domain name result that external network returns, and obtain multicast address;
The external network dns server receives the inquiry of the domain name request of arrival DNS client, domain name is inquired about, and the Query Result of domain name is returned.If described terminal has been carried positional information in the DNS query requests of external network transmission, then terminal receives the inquiry of the domain name result that external network returns, and the domain name Query Result is resolved, with Query Result behind local cache, according to described analysis result, directly obtain multicast address
The inquiry of the domain name result that step S04, reception external network return, according to the positional information in the described Query Result, the coupling multicast address;
If described terminal is not carried positional information in the DNS query requests of external network transmission, then terminal is after having received the inquiry of the domain name result that external network returns, according to comprise in the domain name Query Result can the marking terminal on-position information, with network side coupling multicast address; In a preferred embodiment, described information that can the marking terminal on-position has BSSID (Basic Service Set Identifier, the primary service area identifier), SSID (Service Set Identifier, service set identifier) etc.
Step S05, add corresponding multicast group according to described multicast address, and send the advertising business request to multicast source;
According to the multicast address that obtains, described terminal sends the advertising business request to external network after adopting described multicast address to add corresponding multicast group.
The advertisement that step S06, the described multicast source of reception are sent out to described multicast component.
The advertising business request that multicast source receives and responding system sends is according to described advertising business request content, to described advertisement corresponding to system's distribution that has added corresponding multicast group; System receives the advertisement that multicast source is sent out to described multicast component.
Present embodiment moving advertising distribution method is by after sending the DNS query requests, obtain in different ways multicast address according to whether carrying positional information in the described query requests, adding corresponding multicast group and send the advertising business request to multicast source according to described multicast address to external network, receive the method for the advertisement that multicast source sends out to described multicast component, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, improved user's experience.
With reference to Fig. 6, Fig. 6 is in the moving advertising distribution method of the present invention, and reception is also resolved the inquiry of the domain name result that external network returns, and obtains multicast address one embodiment schematic flow sheet.As shown in Figure 6, in the moving advertising distribution method of the present invention, step S03, reception are also resolved the inquiry of the domain name result that external network returns, and the step of obtaining multicast address specifically comprises:
Step S11, parsing inquiry of the domain name result obtain multicast information;
Receive the inquiry of the domain name result that external network returns, and resolve the domain name Query Result; In a preferred embodiment, the pattern that described external network returns domain name Query Result SRV (Service position, service position) record is:
$ORIGIN xmarket.mobad.com.
west.xmarket.mobad.com A 224.0.2.1
east.xmarket.mobad.com A 224.0.2.2
north.xmarket.mobad.com A 224.0.2.3
south.xmarket.mobad.com A 224.0.2.4
From the domain name analysis result, extract the information that is complementary with described positional information, obtain multicast information; In a preferred embodiment, described multicast information comprises current location information of terminal and the network information.In a preferred embodiment, the positional information of current terminal is west.
Step S12, according to described multicast information, from the domain name mapping result, extract the attribute information that is complementary with described multicast information;
According to the positional information of the current terminal of obtaining among the step S11, from analysis result, extract the attribute information that is complementary with described positional information.In a preferred embodiment, obtaining current location information according to step S11 is west, from the domain name analysis result is to extract the attribute information that mates with described positional information in the above-mentioned SRV record namely to find corresponding clauses and subclauses west.xmarket.mobad.com.
Step S13, according to described attribute information, obtain multicast address.
According to the described attribute information that step S12 extracts, the query parse result according to described attribute information, obtains multicast address.In a preferred embodiment, according to the described attribute information west.xmarket.mobad.com that finds, the multicast address that obtains the correspondence after the parsing from the SRV record is 224.0.2.1.
Present embodiment moving advertising distribution method is by resolving the inquiry of the domain name result, obtain multicast information, according to described multicast information, from the domain name mapping result, extract the attribute information that is complementary with described multicast information and according to described attribute information, obtain the method for multicast address, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, further improved user's experience.
With reference to Fig. 7, Fig. 7 is in the moving advertising distribution method of the present invention, sends DNS query requests one embodiment schematic flow sheet to external network.As shown in Figure 7, in the moving advertising distribution method of the present invention, step S01, the step that sends the DNS query requests to external network specifically comprise:
Step S21, select the domain name that is complementary with the described network information according to the network information, the analysis request of domain name is sent to the DNS client of described terminal;
Terminal is obtained the network information of current access network, comprises the positional information of carrying AP (Accessing Point, access point) information in the described network information, such as the BSSID of AP; The request of external network response terminal, home position information.In a preferred embodiment, terminal is downloaded and is comprised the BSSID of AP and the configuration list item of positional information corresponding relation from AAA (Authentication Authorization Account, Certificate Authority book keeping operation) server in verification process; Or by the application server responses request that location-based service is provided in the external network, according to the AP information of carrying in the request, such as the BSSID of AP, return corresponding positional information.In a preferred embodiment, the SSID of described current access network is ssid_1; Terminal is according to the described network information, selects the domain name with described network information case coupling, and domain name is mail to the DNS client, and request DNS client is resolved domain name; In a preferred embodiment, terminal wishes to accept the moving advertising of supermarket X, and the domain name of supermarket X is xmarket.mobad.com.Simultaneously, the network information that terminal obtains is ssid_1, and terminal is selected ssid_1.xmarket.mobad.com conduct and the domain name that the network information is complementary, and this domain name is mail to the DNS client, and request DNS client is resolved.
Step S22, the described analysis request of described DNS client are inquired about the parsing mapping item in the described DNS client terminal local buffer memory;
After described DNS client receives the domain name mapping request of self terminal, the parsing mapping item in the inquiry DNS client terminal local buffer memory;
Step S23, judge the parsing mapping that whether has domain name in the described local cache; If, execution in step S24 then; If not, execution in step S25 then;
Existing domain name in step S24, the use local cache;
Step S25, send the DNS query requests to external network.
The DNS client is judged the parsing mapping item that whether has domain name in the described local cache, if there is not the domain name mapping mapping item of terminal request in the described local cache, then the DNS client sends domain name to external network, and request DNS inquires about.In a preferred embodiment, behind the DNS client query local cache, do not find the parsing mapping of the domain name ssid_1.xmarket.mobad.com of request analysis among the step S21, then the DNS client mails to external network with domain name and carries out the DNS inquiry.If have the domain name mapping mapping item of terminal request in the described local cache, then use existing domain name in the local cache.
When present embodiment moving advertising distribution method judges that by the DNS client parsing mapping item that whether has domain name in the described local cache and the parsing that does not have domain name in local cache are shone upon item, send the method for DNS query requests to external network, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, improved further user's experience, effectively utilize air resource, alleviated the network pressure of operator.
With reference to Fig. 8, Fig. 8 is moving advertising dissemination system one example structure schematic diagram of the present invention.As shown in Figure 8, moving advertising dissemination system of the present invention comprises:
Terminal 01 is used for sending the DNS query requests to external network;
Described terminal 01 also is used for, and when carrying positional information in described DNS query requests, receives the inquiry of the domain name result that external network returns, and obtains multicast address; When in described DNS query requests, not carrying positional information, according to the positional information in the described Query Result, the coupling multicast address; Add corresponding multicast group according to described multicast address, send the advertising business request to multicast source;
Positionalinformation judge module 02 is used for judging whether described DNS query requests carries positional information;
Terminal 01 checks local cache information, if there is not the current required domain name of system in the local cache information, then terminal 01 sends the DNS query requests to external network, in order to obtain needed domain name.In a preferred embodiment, can carry current location information and current network information in the described DNS query requests.After terminal 01 sent the DNS request to external network, the domain name that network side is resolved according to the needs that carry in the DNS query requests was resolved; The positional information judge module 02 of terminal 01 judges in the described DNS query requests whether carry positional information simultaneously; Because whether terminal 01 need to according to carrying positional information in the DNS query requests, and takes different modes to obtain multicast address; The external network dns server receives the inquiry of the domain name request of self terminal 01, domain name is inquired about, and the Query Result of domain name is returned terminal 01.If described terminal 01 has been carried positional information in the DNS query requests of external network transmission, then terminal 01 receives the inquiry of the domain name result that external network returns, and the domain name Query Result resolved, with Query Result behind local cache, according to described analysis result, directly obtain multicast address; If described terminal 01 is not carried positional information in the DNS query requests of external network transmission, then terminal 01 is after having received the inquiry of the domain name result that external network returns, according to comprise in the domain name Query Result can the marking terminal on-position information, the coupling multicast address; In a preferred embodiment, described information that can the marking terminal on-position has BSSID, SSID etc.Simultaneously, according to the multicast address that obtains, after described terminal 01 adopts described multicast address to add corresponding multicast group, initiate the advertising business request to multicast source.
Advertisement module 03 is used for receiving the advertisement that described multicast source is sent out to described multicast component.
After describedterminal 01 adds corresponding multicast group according to the multicast address that obtains, multicast source to external network sends the advertising business request, multicast source receives and responds the advertising business request that describedterminal 01 sends, to describedadvertisement module 03 distributing advertisement that has added corresponding multicast group; Describedadvertisement module 03 receives the advertisement that multicast source is sent out to described multicast component.
Present embodiment moving advertising dissemination system is by obtaining in different ways multicast address according to whether carrying positional information in the described query requests, adding corresponding multicast group and receive the method for the advertisement that multicast source sends out to described multicast component according to described multicast address, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, improved user's experience.
With reference to Fig. 9, Fig. 9 is service request module one example structure schematic diagram in the moving advertising dissemination system of the present invention.As shown in Figure 9, in the moving advertising dissemination system of the present invention, terminal 01 specifically comprises:
Queryrequests sending module 011 is used for sending the DNS query requests to external network;
Multicastaddress acquisition module 012 is used for when described DNS query requests is carried positional information, and reception is also resolved the inquiry of the domain name result that external network returns, and obtains multicast address;
Multicastaddress matching module 013 is used for receiving the inquiry of the domain name result that external network returns when described DNS query requests is not carried positional information, according to the positional information in the described Query Result, and the coupling multicast address;
Advertisingbusiness request module 014 is used for adding corresponding multicast group according to described multicast address, sends the advertising business request to multicast source;
The external network dns server receives the inquiry of the domain name request of arrival DNS client, domain name is inquired about, and the Query Result of domain name is returned.When multicast address acquisition module 021 carries positional information in described DNS query requests, receive the inquiry of the domain name result that external network returns, Query Result behind local cache, is resolved the domain name Query Result, and according to described analysis result, obtain multicast address; Multicastaddress matching module 013 when not carrying positional information in described DNS query requests, receives the inquiry of the domain name result that external network returns, according to the positional information in the described Query Result, and the coupling multicast address; Advertisingbusiness request module 014 is according to the multicast address that obtains, adopt described multicast address to add corresponding multicast group after, send the advertising business request to external network.
Present embodiment moving advertising dissemination system is by obtaining in different ways multicast address according to whether carrying positional information in the described query requests, adding corresponding multicast group and receive the method for the advertisement that multicast source sends out to described multicast component according to described multicast address, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, improved user's experience.
With reference to Figure 10, Figure 10 is advertising business request module one example structure schematic diagram in the moving advertising dissemination system of the present invention; As shown in figure 10, advertisingbusiness request module 014 specifically comprises described in the ad delivery systems of the present invention:
Domainname mapping unit 141 is used for resolving the inquiry of the domain name result, obtains multicast information;
Domainname mapping unit 141 receives the inquiry of the domain name result that external network returns, and resolves the domain name Query Result; In a preferred embodiment, the pattern that described external network returns domain name Query Result SRV (Service position, service position) record is:
$ORIGIN xmarket.mobad.com.
……
west xmarket mobad com A 224021
east.xmarket.mobad.com A 224.0.2.2
north.xmarket.mobad.com A 224.0.2.3
south.xmarket.mobad.com A 224.0.2.4
Domainname mapping unit 141 extracts the information that is complementary with described positional information from the domain name analysis result, obtain multicast information; In a preferred embodiment, described multicast information comprises current location information of terminal and the network information.In a preferred embodiment, the positional information of current terminal is west.
Information extraction unit 142 is used for according to described multicast information, extracts the attribute information that is complementary with described multicast information from the domain name mapping result;
The positional information of the current terminal of obtaining according to domainname mapping unit 141,information extraction unit 142 extracts the attribute information that is complementary with described positional information from analysis result.In a preferred embodiment, obtaining current location information according to domainname mapping unit 141 is west, andinformation extraction unit 142 is to extract the attribute information that mates with described positional information in the above-mentioned SRV record namely to find corresponding clauses and subclauses west.xmarket.mobad.com from the domain name analysis result.
Address acquisition unit 143 is used for according to described attribute information, obtains multicast address.
According to the described attribute information thatinformation extraction unit 142 is extracted,address acquisition unit 143 query parse results according to described attribute information, obtain multicast address.In a preferred embodiment,address acquisition unit 143 is according to the described attribute information west.xmarket.mobad.com that finds, the multicast address that obtains the correspondence after the parsing from the SRV record is 224.0.2.1.
Present embodiment moving advertising dissemination system is by resolving the inquiry of the domain name result, obtain multicast information, according to described multicast information, from the domain name mapping result, extract the attribute information that is complementary with described multicast information and according to described attribute information, obtain the method for multicast address, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, further improved user's experience.
With reference to Figure 11, Figure 11 is the query requests sending module one example structure schematic diagram of terminal in the moving advertising dissemination system of the present invention.As shown in figure 11, in the moving advertising dissemination system of the present invention, the queryrequests sending module 011 of terminal 01 specifically comprises:
Domain names matching unit 111 is used for the analysis request of domain name being sent to the DNS client of described terminal according to the domain name that the network information is selected and the described network information is complementary;
The domain names matching unit 111 of terminal obtains the network information of current access network, comprise in the described network information and carry AP (Accessing Point, access point) positional information of information, BSSID (Basic Service Set Identifier, primary service area identifier) such as AP; The request of external network response terminal, home position information.In a preferred embodiment, terminal is downloaded and is comprised the BSSID of AP and the configuration list item of positional information corresponding relation from AAA (Authentication Authorization Account, Certificate Authority book keeping operation) server in verification process; Or by the application server responses request that location-based service is provided in the external network, according to the AP information of carrying in the request, such as the BSSID of AP, return corresponding positional information.In a preferred embodiment, the SSID of described current access network (Service Set Identifier, service set identifier) is ssid_1; The domain names matching unit 111 of terminal is according to the described network information, selects the domain name with described network information case coupling, and domain name is mail to DNS client 112, and 112 pairs of domain names of request DNS client are resolved; In a preferred embodiment, domain names matching unit 111 wishes to accept the moving advertising of supermarket X, and the domain name of supermarket X is xmarket.mobad.com.Simultaneously, the network information that domain names matching unit 111 obtains is ssid_1, domain names matching unit 111 is selected ssid_1.xmarket.mobad.com conduct and the domain name that the network information is complementary, and this domain name is mail to DNS client 112, and request DNS client 112 is resolved.
DNS client 112 is used for receiving described analysis request, the parsing mapping item in the inquiry local cache; Judge the parsing mapping item that whether has domain name in the described local cache; When in described local cache, not having the parsing mapping item of domain name, send the DNS query requests to external network.
After DNS client 112 is received domain name mapping request from domain names matching unit 111, the parsing mapping in inquiry DNS client 112 local caches; DNS client 112 is judged the parsing mapping item that whether has domain name in the described local cache, if there is not the domain name mapping mapping item of domain names matching unit 111 requests in the described local cache, then DNS client 112 sends domain name to external network, request DNS inquiry.In a preferred embodiment, behind the DNS client 112 inquiry local caches, do not have the parsing mapping of the domain name ssid_1.xmarket.mobad.com of discovering network domain name matching unit 111 request analysis, then DNS client 112 mails to external network with domain name and carries out the DNS inquiry.If have the domain name mapping mapping item of domain names matching unit 111 requests in the described local cache, then use existing domain name in the local cache.
When present embodiment moving advertising dissemination system judges that by the DNS client parsing mapping item that whether has domain name in the described local cache and the parsing that does not have domain name in local cache are shone upon item, send the method for DNS query requests to external network, correct advertisement user's beneficial effect can distinguish and can determine the moving advertising that adheres to diverse location separately to the multicast source of having realized multicast group in the Novel movable ad system, improved further user's experience, effectively utilize air resource, alleviated the network pressure of operator.
The above only is the preferred embodiments of the present invention; be not so limit its claim; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.