CN109996201A - A kind of Network Access Method and the network equipment - Google Patents
A kind of Network Access Method and the network equipment Download PDFInfo
- Publication number
- CN109996201A CN109996201A CN201810000824.7A CN201810000824A CN109996201A CN 109996201 A CN109996201 A CN 109996201A CN 201810000824 A CN201810000824 A CN 201810000824A CN 109996201 A CN109996201 A CN 109996201A
- Authority
- CN
- China
- Prior art keywords
- address
- request
- service request
- service
- cache server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/47—Fraud detection or prevention means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of Network Access Method and the network equipment, method includes: in the header fields for detect the service request that user terminal is sent with the presence or absence of IP address;If it exists, then IP address is extracted, and when meeting preset condition, determines that service request is redirection request;According to IP address, redirection request is reverted into initial service request;According to default charging matching rule, determine whether the requested target service of initial service request is call charge service.It whether there is IP address in the header fields of the service request of network equipment detection user terminal of the invention, and if it exists, redirection request is then identified according to IP address.Redirection request can also be reverted to initial service request by the network equipment, determine whether target service is call charge service further according to initial service request, to solve the charging matching problem of redirection business request, guarantee the correct matching of redirection business request, current charge matching rule can be continued to use again, avoid flow fraud.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of Network Access Methods and the network equipment.
Background technique
Service billing is one of the core function of Operator Core Network gateway, wherein the gateway entity with billing function
It include: packet data network gateway (Packet Data Network Gateway, PGW) entity and General Packet Radio Service
(General Packet Radio Service, GPRS) gateway support node (Gateway GPRS Support Node,
GGSN) entity.Service billing is initially applied to operator and has examining and making cuts for service traffics by oneself, i.e., own business exempts from flow, to be promoted
Own business attraction and competitiveness.Operator is to promote Flow Value in recent years, is proposed orientation flow package (such as: appointing me
See), Xiang Tongfu (such as: content supplier checks for customer flow) many characteristic services after flow, this kind of business needs to know
Other subscriber service class, distinguishes charging, use be exactly Operator Core Network gateway content charging function.
Wherein, service billing function is deep-packet detection (Deep Packet Inspection, DPI) energy based on gateway
What power was realized.Specifically, hypertext transfer protocol (Hyper Text in extractable seven layer protocol of business data packet out of DPI technology
Transfer Protocol, HTTP) uniform resource locator (Uniform Resource Locator, URL) word in head
Section, and matched with the service URL rule pre-defined, to realize the identification of type of service.With Xiang Tongfu after flow
For business: assuming that Sina's sport carry out promoting service, user can in case flow access Sina's sport page, the URL of the business
Rule are as follows: " sports.sina.com.cn/* ", core network gateway parse the url field in the HTTP head of user data package, when
The URL of user can match " sports.sina.com.cn/* ", then the business data flow is identified as Sina by core network gateway
Xiang Tongfu business after the flow of sport, mark is specific in the ticket (core network gateway is responsible for generating flow ticket) of the data flow
Service identifiers (service ID), business operation support system (Business&Operation Support System,
BOSS) system carries out freely customer flow according to Service ID after receiving ticket, generates flow ticket to Sina.
In order to avoid illegal website construction URL gains free/third-party charging flow by cheating, such as: if backward system pays charging URL
Rule are as follows: " * sports.sina.com.cn* ", as the URL of access business are as follows: " http://www.fakesite.com/
Above-mentioned backward system can be equally matched when fakedir/sports.sina.com.cn/fakecontent " pays charging regulation.For
Avoid it is such happen, charging regulation matching way are as follows: in URL HOST part cannot use full asterisk wildcard " * " substitution,
Asterisk wildcard " * " in HOST cannot wildcard "/", advised to avoid content in the path for service request URL occur and content charging
Then the case where keyword match in middle URL HOST.
Further, in order to improve the access speed of customer access network content, user is needed frequently access by core net
Web content be stored in from user compared in close, the faster network node of access speed, wherein caching (cache) server is
Storage frequently accesses the server of content.Content distributing network (Content Delivery Network, CDN) is relied on and is deployed in
The Edge Server of various regions obtains user nearby by functional modules such as the load balancing, content distribution, scheduling of central platform
Required content is taken, network congestion is reduced, improves user's access response speed and hit rate.The basic principle of CDN is to be widely used
These cache servers are distributed to user and accessed in area or the network of Relatively centralized by various cache servers, are visited in user
When asking website, the access of user is directed toward on the nearest cache server working properly of distance using global load technology, is had
Cache server is requested directly in response to user.
Wherein, the cache or CDN of video flow generally use redirection mode and are redirected to the access request of user just
Close cache server or CDN node, concrete mode are as follows: interception user access request replys 302 and jumps message to user, disappears
It include modified Redirect URL in breath.Wherein, the modification mode of Redirect URL is to retain original URL, and start in URL and add
The IP address of cache server or CDN node.Assuming that the former URL for request are as follows: " http: //
apk.r1.market.hiapk.com/data/upload/apkres/2017/6_28/12/com.hnzx.hnrb_
122813.apk ", then, modified Redirect URL are as follows: " http: // 112.17.27.140/
apk.r1.market.hiapk.com/data/upload/apkres/2017/6_28/12/com.hnzx.hnrb_
122813.apk? wsiphost=local " is added to " 112.17.27.140/ " before former URL, this IP address is cache
It, can be according to IP address after the IP address of server or CDN node, cache server or CDN node receive the redirection request
URL afterwards returns to the cache contents that user needs.
When charging URL rule is " apk.r1.market.hiapk.com/*.apk ", former URL can be matched correctly, but
It is that modified URL is redirected by cache server or CDN node is " http: // 112.17.27.140/
apk.r1.market.hiapk.com/data/upload/apkres/2017/6_28/12/com.hnzx.hnrb_
122813.apk? wsiphost=local " can not be matched correctly.If by charging URL rules modification be " */
The URL of apk.r1.market.hiapk.com/*.apk ", redirection can be matched correctly, but not can avoid flow fraud row
For the charging matching rule of " * " substitution cannot be used by not meeting the part HOST in URL.Therefore, a kind of new charging match party is needed
Formula can not only guarantee the correct matching of Redirect URL, but also can be to avoid flow fraud.
Summary of the invention
The present invention provides a kind of Network Access Method and the network equipment, solve Redirect URL identification in the prior art with
The problem of charging matches.
The embodiment of the present invention provides a kind of Network Access Method, comprising:
It detects and whether there is IP address in the header fields for the service request that user terminal is sent;
If it exists, then IP address is extracted, and when IP address meets preset condition, determines that service request is asked to redirect
It asks;
According to IP address, redirection request is reverted into initial service request;
According to default charging matching rule, determine whether the requested target service of initial service request is call charge service.
Wherein, the step of whether there is IP address in the header fields for the service request that detection user terminal is sent, comprising:
Receive the service request for the request target business that user terminal is sent;
It detects in the header fields of service request with the presence or absence of the pointing character of instruction IP address.
Wherein, detection detection user terminal send service request header fields in whether there is IP address the step of it
Afterwards, further includes:
If it does not exist, then forwarding service is requested.
Wherein, when IP address meets preset condition, the step of service request is redirection request is determined, comprising:
Detecting IP address whether there is in preset IP address list;Wherein, comprising all slow in preset IP address list
Deposit the IP address of server and/or content distributing network CDN node;
If so, determining that service request is redirection request;Otherwise forwarding service is requested.
Wherein, before detection IP address is with the presence or absence of the step in preset IP address list, further includes:
Obtain the IP address of each cache server and/or CDN node;
According to cache server and/or the IP address of CDN node, preset IP address list is generated.
Wherein, according to IP address, the step of redirection request is reverted into initial service request, comprising:
According to the default corresponding relationship of the IP address and parameter information of cache server and/or CDN node, determines and redirect
The parameter information of the corresponding target cache server of request and/or target CDN node;Wherein, one is preset in corresponding relationship
The IP address of cache server or CDN node corresponds to the parameter information of same cache server or CDN node;
Whether the parameter letter of instruction target cache server and/or target CDN node is carried in detection redirection request
The parameter field of breath;
If carrying parameter field, the header fields of redirection request and parameter field are removed, initial service is obtained
Request.
Wherein, it according to the default corresponding relationship of the IP address and parameter information of cache server and/or CDN node, determines
Before the step of target cache server corresponding to redirection request and/or the parameter information of target CDN node, further includes:
Obtain the IP address and parameter information of each cache server and/or CDN node;
According to cache server and/or the IP address and parameter information of CDN node, the pre- of IP address and parameter information is generated
If corresponding relationship.
Wherein, according to default charging matching rule, determine whether the requested target service of initial service request is charging
The step of business, comprising:
With the presence or absence of the billing flag field defined with default charging matching rule in detection initial service request;
If it exists, it is determined that whether the requested target service of initial service request is call charge service, is otherwise determined initial
Whether the requested target service of service request is coin free service.
The embodiments of the present invention also provide a kind of network equipments, comprising:
First detection module, for detect user terminal transmission service request header fields in the presence or absence of IP
Location;
First processing module, for if it exists, then extracting IP address, and when IP address meets preset condition, determine industry
Business request is redirection request;
Recovery module, for according to IP address, redirection request to be reverted to initial service request;
Accounting module, for determining that the requested target service of initial service request is according to charging matching rule is preset
No is call charge service.
Wherein, first detection module includes:
First receiving submodule, the service request of the request target business for receiving user terminal transmission;
First detection sub-module, with the presence or absence of the instruction word of instruction IP address in the header fields for detecting service request
Symbol.
Wherein, the network equipment further include:
First forwarding module, for if it does not exist, then forwarding service to be requested.
Wherein, first processing module includes:
Second detection sub-module whether there is in preset IP address list for detecting IP address;Wherein, with presetting IP
IP address in the list of location comprising whole cache servers and/or content distributing network CDN node;
First processing submodule is used for if so, determining that service request is redirection request;Otherwise forwarding service is requested.
Wherein, first processing module further include:
First acquisition submodule, for obtaining the IP address of each cache server and/or CDN node;
First generates submodule, for the IP address according to cache server and/or CDN node, generates preset IP address
List.
Wherein, recovery module includes:
Second processing submodule, for according to the IP address of cache server and/or CDN node and presetting for parameter information
Corresponding relationship determines target cache server and/or the parameter information of target CDN node corresponding to redirection request;Wherein,
The IP address of a cache server or CDN node corresponds to the ginseng of same cache server or CDN node in default corresponding relationship
Number information;
Third detection sub-module, for detect whether carried in redirection request instruction target cache server and/or
The parameter field of the parameter information of target CDN node;
Restore submodule, if removing the header fields of redirection request and parameter field for carrying parameter field
It removes, obtains initial service request.
Wherein, recovery module further include:
Second acquisition submodule, for obtaining the IP address and parameter information of each cache server and/or CDN node;
Second generates submodule, for the IP address and parameter information according to cache server and/or CDN node, generates
The default corresponding relationship of IP address and parameter information.
Wherein, accounting module includes:
4th detection sub-module, for detecting in initial service request with the presence or absence of defining with default charging matching rule
Billing flag field;
Charging submodule, for if it exists, it is determined that whether the requested target service of initial service request is charging industry
Otherwise business determines whether the requested target service of initial service request is coin free service.
The embodiments of the present invention also provide a kind of network equipments, comprising: processor;The storage being connected with processor
Device, and the transceiver being connected with processor;Wherein, processor be used to call and execute the program that is stored in memory and
Data, the step of realizing above-mentioned Network Access Method.
The beneficial effect of above-mentioned technical proposal of the invention is: the network equipment detects user after receiving service request
It whether there is IP address in the header fields of the service request of terminal, there are when IP address in the header fields of service request,
Determine whether the service request is redirection request according to IP address, to realize the identification to redirection request.This outer network is set
It is standby also redirection request to be reverted to initial service request, determine that requested target service is further according to initial service request
No is call charge service, solves the charging matching problem of redirection business request, guarantees the correct matching of redirection business request, again
Current charge matching rule can be continued to use, flow fraud is avoided.
Detailed description of the invention
Fig. 1 shows the flow diagrams of the Network Access Method of the embodiment of the present invention;
Fig. 2 indicates the module diagram of the network equipment of the embodiment of the present invention;
The network equipment block diagram of Fig. 3 expression embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.In the following description, such as specific configuration is provided and the specific detail of component is only
In order to help comprehensive understanding the embodiment of the present invention.It therefore, it will be apparent to those skilled in the art that can be to reality described herein
Example is applied to make various changes and modifications without departing from scope and spirit of the present invention.In addition, for clarity and brevity, it is omitted pair
The description of known function and construction.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment
A particular feature, structure, or characteristic is included at least one embodiment of the present invention.Therefore, occur everywhere in the whole instruction
" in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, knot
Structure or characteristic can combine in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be appreciated that the size of the serial number of following each processes is not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
In addition, the terms " system " and " network " are often used interchangeably herein.
In embodiment provided herein, it should be appreciated that " B corresponding with A " indicates that B is associated with A, can be with according to A
Determine B.It is also to be understood that determine that B is not meant to determine B only according to A according to A, it can also be according to A and/or other information
Determine B.
As shown in Figure 1, the embodiment provides a kind of Network Access Methods, specifically includes the following steps:
Step 11: whether there is IP address in the header fields for the service request that detection user terminal is sent.
Wherein, the network equipment is referred here to when receiving the service request of user terminal transmission, is detected the business and is asked
It whether there is IP address in the header fields asked.Wherein, the network equipment especially refer to the GGSN entity with billing function or
P-GW entity.Service request mentioned here is obtaining uniform resource position mark URL after GGSN entity or P-GW entity resolution,
When user terminal has service request generation, when especially having HTTP request generation, GGSN entity or P-GW entity pass through parsing
Seven layers of URL obtain the URL of the target access address of the HTTP request, can determine whether out that the HTTP is asked according to the target access address
It asks and any class business is belonged to, and be classified to corresponding charge operation or coin free service.In embodiments of the present invention, GGSN entity or
P-GW entity is also equipped in the HOST field (header fields) of detection URL other than above-mentioned analytic ability with the presence or absence of character type
The IP address of IP address format.
Step 12: if it exists, then extracting IP address, and when IP address meets preset condition, determine that service request is attached most importance to
Orientation request.
If it exists, then the identification function of redirection request is triggered, if it does not exist, then directly according to default charging matching rule
Charging matching is carried out, i.e., according to charging matching rule is preset, determines whether the requested target service of the service request is charging
Business, and forward the service request.Wherein, redirection request identification process are as follows: in GGSN entity or P-GW entity extraction URL
IP address in HOST field, and when the IP address meets preset condition, which is determined as redirection request.
Step 13: according to IP address, redirection request being reverted into initial service request.
It refers here to, the network equipment is also equipped in addition to having redirection request identification function and restores redirection request
For the recovery function of initial service request.Specifically, GGSN entity or P-GW entity extract IP address from redirection request,
Redirection request is reverted into initial service request.
Step 14: according to default charging matching rule, determining whether the requested target service of initial service request is meter
Take business.
Wherein, presetting charging matching rule is the matching rule cheated with anti-flow, such as the URL referred in background technique
In HOST field asterisk wildcard " * " cannot be used to substitute entirely, the asterisk wildcard " * " in HOST cannot wildcard "/", to avoid appearance
The case where keyword match in the path of service request URL in content and content charging rule in URL HOST.According to default
Charging matching rule matches the initial service request of redirection request, determines that the requested business of redirection request is
No is call charge service.
Specifically, step 11 specifically includes: receiving the service request for the request target business that user terminal is sent;Detect industry
It is engaged in the header fields of request with the presence or absence of the pointing character of instruction IP address.When user terminal has service request generation, especially
It is when having HTTP request generation, and GGSN entity or P-GW entity receive the TTTP request that user terminal is sent, and pass through parsing
Seven layers of URL, obtain the URL of the target access address of the HTTP request, and GGSN entity or P-GW entity further detect URL's
It whether there is the IP address of character type IP address format in HOST field (header fields).If it exists, then redirection request is triggered
Identification function then triggers common charging matching feature if it does not exist.
Specifically, step 12 includes: that detection IP address whether there is in preset IP address list;If so, determining industry
Business request is redirection request;Otherwise forwarding service is requested.Wherein, whole cache servers are included in preset IP address list
And/or the IP address of content distributing network CDN node.That is, GGSN entity or P-GW entity are in the HOST for detecting URL
There are when the IP address of character type IP address format in field, the character type IP address in the HOST of URL is extracted, is handled
The preset IP address list with CACHE server and/or CDN node compares afterwards, if the IP address not in lists, triggers general
Amount to expense matching feature;If the IP address is in lists, then it represents that this URL is the URL after CACHE/CDN is redirected, and triggering is just
The recovery function of beginning service request, i.e. calling URL restoring function.
Wherein, it is worth noting that, before detection IP address is with the presence or absence of the step in preset IP address list, also wraps
It includes: obtaining the IP address of each cache server and/or CDN node;According to cache server and/or the IP address of CDN node,
Generate preset IP address list.That is, content charging gateway entity, i.e. GGSN entity or P-GW entity, setting CACHE is taken
The preset IP address list of business device and CDN node, the preset IP address list is according to CACHE server and CDN node address column
Table real-time update.
Trigger the recovery function of initial service request, i.e., after calling URL restoring function, GGSN entity or P-GW entity according to
Redirection request is reverted to initial service request by the IP address.Specifically, step 14 include: according to cache server and/or
The IP address of CDN node and the default corresponding relationship of parameter information, determine target cache server corresponding to redirection request
And/or the parameter information of target CDN node;Detection redirection request in whether carry instruction target cache server and/or
The parameter field of the parameter information of target CDN node;If carrying parameter field, by the header fields and ginseng of redirection request
Digital section removal, obtains initial service request, otherwise removes the header fields of redirection request, obtains initial service request.
Wherein, it presets the IP address of a cache server or CDN node in corresponding relationship and corresponds to same cache server or CDN node
Parameter information.
Specifically, in order to preferably be matched in cache server and/or CDN node, increase in redirection request and refer to
Show the parameter field of the parameter information of target cache server and/or target CDN node.One CACHE server or CDN node
With unique IP address, in addition, a CACHE server or CDN node are also possible to have at least one parameter information.One
There is default corresponding relationship between CACHE server or the IP address and parameter information of CDN node, i.e. a cache server or
The IP address of CDN node corresponds to the parameter information of same cache server or CDN node.Restore process in initial service request
In, GGSN entity or P-GW entity determine that redirection request may be taken according to the default corresponding relationship of IP address and parameter information
The parameter information of band;It detects in the redirection request received with the presence or absence of the parameter field of the only parameter information;If it exists,
The parameter field of the header fields that IP address is indicated in redirection request and instruction parameter information then is removed to obtain the just beginning of the school year
Business request;If it does not exist, then only it will indicate that the header fields of IP address remove to obtain initial service request in redirection request.
Wherein, it according to the default corresponding relationship of the IP address and parameter information of cache server and/or CDN node, determines
Before the step of target cache server corresponding to redirection request and/or the parameter information of target CDN node further include: obtain
Take the IP address and parameter information of each cache server and/or CDN node;According to cache server and/or the IP of CDN node
Address and parameter information generate the default corresponding relationship of IP address and parameter information.That is, content charging gateway entity,
That is GGSN entity or P-GW entity are arranged default corresponding between CACHE server and the IP address and parameter information of CDN node
Relationship, this presets corresponding relationship according to the address list real-time update of CACHE server and CDN node.
Step 14 specifically includes: with the presence or absence of the charging defined with default charging matching rule in detection initial service request
Tag field;If it exists, it is determined that whether the requested target service of initial service request is call charge service, is otherwise determined initial
Whether the requested target service of service request is coin free service.Assuming that default charging matching rule are as follows: in the URL of service request
HOST field asterisk wildcard " * " cannot be used to substitute entirely, the asterisk wildcard " * " in HOST cannot wildcard "/", backward system pays a charging
Tag field is " sports.sina.com.cn* ", as the URL of access business are as follows: " http://www.fakesite.com/
When fakedir/sports.sina.com.cn/fakecontent ", above-mentioned backward system can not be matched and pay charging regulation, avoided
The case where keyword match in the path of service request URL in content and content charging rule in URL HOST.
In Network Access Method of the invention, the network equipment detects the business of user terminal after receiving service request
It whether there is IP address in the header fields of request, there are when IP address in the header fields of service request, according to IP address
Determine whether the service request is redirection request, to realize the identification to redirection request.Furthermore the network equipment can also be by weight
Orientation request reverts to initial service request, determines whether requested target service is charging industry further according to initial service request
Business solves the charging matching problem of redirection business request, guarantees the correct matching of redirection business request, and can continue to use current
Charging matching rule avoids flow fraud.
Above embodiments respectively just Network Access Method of the invention make introduction, below the present embodiment will be in conjunction with attached drawing pair
Its corresponding network equipment is described further.
Specifically, as shown in Fig. 2, the network equipment 200 of the embodiment of the present invention, comprising:
First detection module 210, with the presence or absence of IP in the header fields of the service request for detecting user terminal transmission
Address;
First processing module 220 is determined for if it exists, then extracting IP address, and when IP address meets preset condition
Service request is redirection request;
Recovery module 230, for according to IP address, redirection request to be reverted to initial service request;
Accounting module 240, for determining the requested target service of initial service request according to charging matching rule is preset
It whether is call charge service.
Wherein, first detection module 210 includes:
First receiving submodule, the service request of the request target business for receiving user terminal transmission;
First detection sub-module, with the presence or absence of the instruction word of instruction IP address in the header fields for detecting service request
Symbol.
Wherein, the network equipment 200 further include:
First forwarding module, if for IP address, forwarding service request to be not present in the header fields of service request.
Wherein, first processing module 220 includes:
Second detection sub-module whether there is in preset IP address list for detecting IP address;Wherein, with presetting IP
IP address in the list of location comprising whole cache servers and/or content distributing network CDN node;
First processing submodule is used for if so, determining that service request is redirection request;Otherwise forwarding service is requested.
Wherein, first processing module 220 further include:
First acquisition submodule, for obtaining the IP address of each cache server and/or CDN node;
First generates submodule, for the IP address according to cache server and/or CDN node, generates preset IP address
List.
Wherein, recovery module 230 includes:
Second processing submodule, for according to the IP address of cache server and/or CDN node and presetting for parameter information
Corresponding relationship determines target cache server and/or the parameter information of target CDN node corresponding to redirection request;Wherein,
The IP address of a cache server or CDN node corresponds to the ginseng of same cache server or CDN node in default corresponding relationship
Number information;
Third detection sub-module, for detect whether carried in redirection request instruction target cache server and/or
The parameter field of the parameter information of target CDN node;
Restore submodule, if removing the header fields of redirection request and parameter field for carrying parameter field
It removes, obtains initial service request.
Wherein, recovery module 230 further include:
Second acquisition submodule, for obtaining the IP address and parameter information of each cache server and/or CDN node;
Second generates submodule, for the IP address and parameter information according to cache server and/or CDN node, generates
The default corresponding relationship of IP address and parameter information.
Wherein, accounting module 240 includes:
4th detection sub-module, for detecting in initial service request with the presence or absence of defining with default charging matching rule
Billing flag field;
Charging submodule, for if it exists, it is determined that whether the requested target service of initial service request is charging industry
Otherwise business determines whether the requested target service of initial service request is coin free service.
Network equipment embodiment of the invention is, the institute in above method embodiment corresponding with the embodiment of the above method
There is realization rate suitable for the embodiment of the network equipment, can also reach identical technical effect.The network equipment is connecing
After receiving service request, detect with the presence or absence of IP address in the header fields of the service request of user terminal, in service request
There are when IP address in header fields, determine whether the service request is redirection request according to IP address, to realize to resetting
To the identification of request.Furthermore redirection request can also be reverted to initial service request by the network equipment, be asked further according to initial service
It asks and determines whether requested target service is call charge service, solve the charging matching problem of redirection business request, guarantee weight
The correct matching of service request is oriented, and current charge matching rule can be continued to use, avoids flow fraud.
In order to preferably realize above-mentioned purpose, as shown in figure 3, the embodiments of the present invention also provide a kind of network equipment,
The network equipment includes: processor 300;The memory 320, Yi Jitong being connected by bus interface with the processor 300
Cross the transceiver 310 that bus interface is connected with processor 300;The memory 320 is being executed for storing the processor
Used program and data when operation;Data information or pilot tone are sent by the transceiver 310, also passes through the transmitting-receiving
Machine 310 receives uplink control channel;When processor 300 calls and executes the program and data stored in the memory 320
When, it implements function such as:
Processor 300 is used to read the program in memory 320, executes following process: the industry that detection user terminal is sent
It is engaged in whether there is IP address in the header fields of request;
If it exists, then IP address is extracted, and when IP address meets preset condition, determines that service request is asked to redirect
It asks;
According to IP address, redirection request is reverted into initial service request;
According to default charging matching rule, determine whether the requested target service of initial service request is call charge service.
Transceiver 310, for sending and receiving data under the control of processor 300.
Specifically, transceiver 310 are specifically used for: receiving for sending and receiving data under the control of processor 300
The service request for the request target business that user terminal is sent;
Processor 300 is also used to: being detected in the header fields of service request with the presence or absence of the pointing character of instruction IP address.
Specifically, processor 300 is also used to: if not having in the header fields of service request, there are IP address, forward industry
Business request.
Specifically, processor 300 is also used to: detection IP address whether there is in preset IP address list;Wherein, it presets
IP address in IP address list comprising whole cache servers and/or content distributing network CDN node;
If so, determining that service request is redirection request;Otherwise forwarding service is requested.
Specifically, processor 300 is also used to: obtaining the IP address of each cache server and/or CDN node;
According to cache server and/or the IP address of CDN node, preset IP address list is generated.
Specifically, processor 300 is also used to: according to the IP address and parameter information of cache server and/or CDN node
Default corresponding relationship, determines target cache server and/or the parameter information of target CDN node corresponding to redirection request;
Wherein, it presets the IP address of a cache server or CDN node in corresponding relationship and corresponds to same cache server or CDN node
Parameter information;
Whether the parameter letter of instruction target cache server and/or target CDN node is carried in detection redirection request
The parameter field of breath;
If carrying parameter field, the header fields of redirection request and parameter field are removed, initial service is obtained
Request.
Specifically, processor 300 is also used to: obtaining the IP address and parameter letter of each cache server and/or CDN node
Breath;
According to cache server and/or the IP address and parameter information of CDN node, the pre- of IP address and parameter information is generated
If corresponding relationship.
Specifically, processor 300 is also used to: with the presence or absence of fixed with default charging matching rule in detection initial service request
The billing flag field of justice;
If it exists, it is determined that whether the requested target service of initial service request is call charge service, is otherwise determined initial
Whether the requested target service of service request is coin free service.
Wherein, in Fig. 3, bus architecture may include the bus and bridge of any number of interconnection, specifically by processor 300
The various circuits for the memory that the one or more processors and memory 320 of representative represent link together.Bus architecture is also
Various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like can be linked together, these are all
It is it is known in the art, therefore, it will not be further described herein.Bus interface provides interface.Transceiver 310 can
To be multiple element, that is, includes transmitter and transceiver, the list for communicating over a transmission medium with various other devices is provided
Member.Processor 300, which is responsible for management bus architecture and common processing, memory 320, can store processor 300 and is executing operation
When used data.
It will be understood by those skilled in the art that realize above-described embodiment all or part of step can by hardware come
It completes, relevant hardware can also be indicated by computer program to complete, the computer program includes executing above-mentioned side
The instruction of some or all of step of method;And the computer program can store in a readable storage medium storing program for executing, storage medium
It may be any type of storage medium.
In addition it should be pointed out that in the apparatus and method of the present invention, it is clear that each component or each step are can to divide
It solves and/or reconfigures.These, which decompose and/or reconfigure, should be regarded as equivalent scheme of the invention.Also, execute above-mentioned system
The step of column processing, can execute according to the sequence of explanation in chronological order naturally, but not need centainly suitable according to the time
Sequence executes, and certain steps can execute parallel or independently of one another.For those of ordinary skill in the art, it is to be understood that this
The whole or any steps or component of the method and apparatus of invention, can any computing device (including processor, storage
Medium etc.) perhaps to be realized with hardware, firmware, software or their combination in the network of computing device, this is this field
Basic programming skill of the those of ordinary skill in the case where having read explanation of the invention with them can be achieved with.
Therefore, the purpose of the present invention can also by run on any computing device a program or batch processing come
It realizes.The computing device can be well known fexible unit.Therefore, the purpose of the present invention can also include only by offer
The program product of the program code of the method or device is realized to realize.That is, such program product is also constituted
The present invention, and the storage medium for being stored with such program product also constitutes the present invention.Obviously, the storage medium can be
Any well known storage medium or any storage medium that developed in the future.It may also be noted that of the invention
In device and method, it is clear that each component or each step can be decomposed and/or be reconfigured.These decomposition and/or again group
Conjunction should be regarded as equivalent scheme of the invention.Also, the step of executing above-mentioned series of processes can be naturally according to the sequence of explanation
It executes in chronological order, but does not need centainly to execute sequentially in time.Certain steps can parallel or independently of one another
It executes.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (17)
1. a kind of Network Access Method characterized by comprising
It detects and whether there is IP address in the header fields for the service request that user terminal is sent;
If it exists, then the IP address is extracted, and when the IP address meets preset condition, determines that the service request is attached most importance to
Orientation request;
According to the IP address, the redirection request is reverted into initial service request;
According to default charging matching rule, determine whether the requested target service of the initial service request is call charge service.
2. Network Access Method according to claim 1, which is characterized in that the business that the detection user terminal is sent is asked
The step of whether there is IP address in the header fields asked, comprising:
Receive the service request for the request target business that user terminal is sent;
It detects in the header fields of the service request with the presence or absence of the pointing character of instruction IP address.
3. Network Access Method according to claim 1, which is characterized in that the business that the detection user terminal is sent is asked
After the step of whether there is IP address in the header fields asked, further includes:
If it does not exist, then the service request is forwarded.
4. Network Access Method according to claim 1, which is characterized in that when the IP address meets preset condition,
Determine the step of service request is redirection request, comprising:
Detecting the IP address whether there is in preset IP address list;Wherein, comprising complete in the preset IP address list
The IP address of portion's cache server and/or content distributing network CDN node;
If so, determining that the service request is redirection request;Otherwise the service request is forwarded.
5. Network Access Method according to claim 4, which is characterized in that the detection IP address whether there is in
Before step in preset IP address list, further includes:
Obtain the IP address of each cache server and/or CDN node;
According to the cache server and/or the IP address of CDN node, preset IP address list is generated.
6. Network Access Method according to claim 1, which is characterized in that it is described according to the IP address, it will be described heavy
The step of orientation request reverts to initial service request, comprising:
According to the default corresponding relationship of the IP address and parameter information of cache server and/or CDN node, the redirection is determined
The parameter information of the corresponding target cache server of request and/or target CDN node;Wherein, in the default corresponding relationship
The IP address of one cache server or CDN node corresponds to the parameter information of same cache server or CDN node;
The parameter letter that instruction target cache server and/or target CDN node whether are carried in the redirection request detected
The parameter field of breath;
If carrying parameter field, the header fields of the redirection request and parameter field are removed, initial service is obtained
Request.
7. Network Access Method according to claim 6, which is characterized in that described to be saved according to cache server and/or CDN
The IP address of point and the default corresponding relationship of parameter information, determine target cache server corresponding to the redirection request
And/or target CDN node parameter information the step of before, further includes:
Obtain the IP address and parameter information of each cache server and/or CDN node;
According to the cache server and/or the IP address and parameter information of CDN node, the pre- of IP address and parameter information is generated
If corresponding relationship.
8. Network Access Method according to claim 1, which is characterized in that the basis presets charging matching rule, really
The step of whether fixed requested target service of initial service request is call charge service, comprising:
It detects in the initial service request with the presence or absence of the billing flag field defined with the default charging matching rule;
If it exists, it is determined that whether the requested target service of initial service request is call charge service, otherwise determine described in
Whether the requested target service of initial service request is coin free service.
9. a kind of network equipment characterized by comprising
First detection module, with the presence or absence of IP address in the header fields of the service request for detecting user terminal transmission;
First processing module, for if it exists, then extracting the IP address, and when the IP address meets preset condition, really
The fixed service request is redirection request;
Recovery module, for according to the IP address, the redirection request to be reverted to initial service request;
Accounting module, for determining that the requested target service of the initial service request is according to charging matching rule is preset
No is call charge service.
10. the network equipment according to claim 9, which is characterized in that the first detection module includes:
First receiving submodule, the service request of the request target business for receiving user terminal transmission;
First detection sub-module, with the presence or absence of the instruction word of instruction IP address in the header fields for detecting the service request
Symbol.
11. the network equipment according to claim 9, which is characterized in that the network equipment further include:
First forwarding module, if forwarding the business to ask for IP address to be not present in the header fields of the service request
It asks.
12. the network equipment according to claim 9, which is characterized in that first processing module includes:
Second detection sub-module whether there is in preset IP address list for detecting the IP address;Wherein, described default
IP address in IP address list comprising whole cache servers and/or content distributing network CDN node;
First processing submodule is used for if so, determining that the service request is redirection request;Otherwise the business is forwarded to ask
It asks.
13. the network equipment according to claim 12, which is characterized in that the first processing module further include:
First acquisition submodule, for obtaining the IP address of each cache server and/or CDN node;
First generates submodule, for the IP address according to the cache server and/or CDN node, generates preset IP address
List.
14. the network equipment according to claim 9, which is characterized in that the recovery module includes:
Second processing submodule, for according to the default corresponding of the IP address of cache server and/or CDN node and parameter information
Relationship determines target cache server and/or the parameter information of target CDN node corresponding to the redirection request;Wherein,
The IP address of a cache server or CDN node corresponds to same cache server or CDN node in the default corresponding relationship
Parameter information;
Third detection sub-module, for detect whether carried in the redirection request instruction target cache server and/or
The parameter field of the parameter information of target CDN node;
Restore submodule, if removing the header fields of the redirection request and parameter field for carrying parameter field
It removes, obtains initial service request.
15. the network equipment according to claim 14, which is characterized in that the recovery module further include:
Second acquisition submodule, for obtaining the IP address and parameter information of each cache server and/or CDN node;
Second generates submodule, for the IP address and parameter information according to the cache server and/or CDN node, generates
The default corresponding relationship of IP address and parameter information.
16. the network equipment according to claim 9, which is characterized in that the accounting module includes:
4th detection sub-module, for detecting in the initial service request with the presence or absence of fixed with the default charging matching rule
The billing flag field of justice;
Charging submodule, for if it exists, it is determined that whether the requested target service of initial service request is charging industry
Business, otherwise determines whether the requested target service of the initial service request is coin free service.
17. a kind of network equipment characterized by comprising processor;The memory being connected with the processor, Yi Jiyu
The transceiver that processor is connected;Wherein, the processor be used to call and execute the program that is stored in the memory and
Data, the step of realizing Network Access Method as claimed in any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810000824.7A CN109996201B (en) | 2018-01-02 | 2018-01-02 | Network access method and network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810000824.7A CN109996201B (en) | 2018-01-02 | 2018-01-02 | Network access method and network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109996201A true CN109996201A (en) | 2019-07-09 |
CN109996201B CN109996201B (en) | 2021-01-15 |
Family
ID=67128326
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810000824.7A Active CN109996201B (en) | 2018-01-02 | 2018-01-02 | Network access method and network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109996201B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110705978A (en) * | 2019-08-30 | 2020-01-17 | 深圳壹账通智能科技有限公司 | Interface service method and device |
CN110830564A (en) * | 2019-10-30 | 2020-02-21 | 北京金山云网络技术有限公司 | CDN scheduling method, device, system and computer readable storage medium |
CN111224952A (en) * | 2019-12-24 | 2020-06-02 | 中移(杭州)信息技术有限公司 | Network resource acquisition method and device for directional flow and storage medium |
CN111953761A (en) * | 2020-08-04 | 2020-11-17 | Oppo广东移动通信有限公司 | Data processing method and device, electronic equipment and storage medium |
CN114785778A (en) * | 2022-03-10 | 2022-07-22 | 聚好看科技股份有限公司 | Gateway apparatus and content distribution method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585346A (en) * | 2004-05-28 | 2005-02-23 | 南京邮电学院 | Method for realizing chaff network data flow heavy orientation |
WO2011140419A1 (en) * | 2010-05-06 | 2011-11-10 | Desvio, Inc. | Method and system for monitoring and redirecting http requests away from unintended web sites |
CN102970669A (en) * | 2012-11-15 | 2013-03-13 | 大唐移动通信设备有限公司 | Phone bill sending and processing method and device |
CN104243344A (en) * | 2014-10-11 | 2014-12-24 | 网宿科技股份有限公司 | Effective data packet capturing method and request redirection server |
CN105338187A (en) * | 2015-11-16 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105516165A (en) * | 2015-12-22 | 2016-04-20 | 华为技术有限公司 | Method, device and system for identifying illegal proxy for charging fraud |
-
2018
- 2018-01-02 CN CN201810000824.7A patent/CN109996201B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585346A (en) * | 2004-05-28 | 2005-02-23 | 南京邮电学院 | Method for realizing chaff network data flow heavy orientation |
WO2011140419A1 (en) * | 2010-05-06 | 2011-11-10 | Desvio, Inc. | Method and system for monitoring and redirecting http requests away from unintended web sites |
CN102970669A (en) * | 2012-11-15 | 2013-03-13 | 大唐移动通信设备有限公司 | Phone bill sending and processing method and device |
CN104243344A (en) * | 2014-10-11 | 2014-12-24 | 网宿科技股份有限公司 | Effective data packet capturing method and request redirection server |
CN105338187A (en) * | 2015-11-16 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105516165A (en) * | 2015-12-22 | 2016-04-20 | 华为技术有限公司 | Method, device and system for identifying illegal proxy for charging fraud |
Non-Patent Citations (2)
Title |
---|
袁春阳、徐娜、王明华: "僵尸网络的类型、危害及防范措施", 《现代电信科技》 * |
阮一荻: "基于综合网关的移动互联网缓存新方案", 《电信技术》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110705978A (en) * | 2019-08-30 | 2020-01-17 | 深圳壹账通智能科技有限公司 | Interface service method and device |
CN110830564A (en) * | 2019-10-30 | 2020-02-21 | 北京金山云网络技术有限公司 | CDN scheduling method, device, system and computer readable storage medium |
CN110830564B (en) * | 2019-10-30 | 2022-11-01 | 北京金山云网络技术有限公司 | CDN scheduling method, device, system and computer readable storage medium |
CN111224952A (en) * | 2019-12-24 | 2020-06-02 | 中移(杭州)信息技术有限公司 | Network resource acquisition method and device for directional flow and storage medium |
CN111953761A (en) * | 2020-08-04 | 2020-11-17 | Oppo广东移动通信有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111953761B (en) * | 2020-08-04 | 2023-07-25 | Oppo广东移动通信有限公司 | Data processing method, device, electronic equipment and storage medium |
CN114785778A (en) * | 2022-03-10 | 2022-07-22 | 聚好看科技股份有限公司 | Gateway apparatus and content distribution method |
CN114785778B (en) * | 2022-03-10 | 2023-09-01 | 聚好看科技股份有限公司 | Gateway device and content distribution method |
Also Published As
Publication number | Publication date |
---|---|
CN109996201B (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109996201A (en) | A kind of Network Access Method and the network equipment | |
US8909664B2 (en) | System and method for creating a list of shared information on a peer-to-peer network | |
CN108259425A (en) | The determining method, apparatus and server of query-attack | |
CN108337652B (en) | Method and device for detecting flow fraud | |
CN109088909B (en) | Service gray level publishing method and device based on merchant type | |
CN104823470A (en) | System and method for correlating network information with subscriber information in mobile network environment | |
CN102239673A (en) | Method and system for profiling data traffic in telecommunications networks | |
CN102783099A (en) | Method and device for controlling service transmission | |
CN106899549B (en) | Network security detection method and device | |
CN103269479A (en) | Call ticket processing method, device and system | |
CN102111453A (en) | Method and system for extracting Internet user network behaviors | |
CN104219230B (en) | Identify method and the device of malicious websites | |
US9295070B2 (en) | Quality of service level adaptation for visual services in mobile communication networks | |
CN109413069B (en) | Application method and device of virtual website firewall based on block chain | |
CN105451207A (en) | PCC-framework-based service function chain control method and device | |
CN103888539A (en) | P2P cache guiding method and device and P2P cache system | |
US7782881B1 (en) | Method and apparatus for traffic quality and billing authorization by request token insertion | |
US10225358B2 (en) | Page push method, device, server and system | |
CN106572454A (en) | PCRF addressing method and addressing system | |
CN105184559B (en) | A kind of payment system and method | |
CN112073512B (en) | Data processing method and device | |
WO2016101595A1 (en) | Method, apparatus and system for accessing third-party resource through application | |
JP6828818B2 (en) | Traffic optimizer, communication system, traffic optimization method and program | |
EP3412047B1 (en) | Method and network entity for control of charging for value added service (vas) | |
CN109525682B (en) | Service processing method, device, network element entity and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |