CN111770121A - Method and device for service access based on directional flow - Google Patents

Method and device for service access based on directional flow Download PDF

Info

Publication number
CN111770121A
CN111770121A CN201910256818.2A CN201910256818A CN111770121A CN 111770121 A CN111770121 A CN 111770121A CN 201910256818 A CN201910256818 A CN 201910256818A CN 111770121 A CN111770121 A CN 111770121A
Authority
CN
China
Prior art keywords
address
service
access
party
domain name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910256818.2A
Other languages
Chinese (zh)
Inventor
曾文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910256818.2A priority Critical patent/CN111770121A/en
Publication of CN111770121A publication Critical patent/CN111770121A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/53Network services using third party service providers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for service access based on directional flow, and relates to the technical field of computers. One embodiment of the method comprises: receiving a service access request sent by a user, wherein the service access request at least comprises an address for accessing a service; the service access request is a request for accessing a third-party service or a request for accessing a self-service, and the third-party service is embedded in the self-service; modifying the address to access the directional flow processing server through the modified address; and the directional flow processing server reversely modifies the modified address to realize service access. The method can smoothly realize access to all third-room services embedded in the local service and realize non-charging access based on the directional flow packet.

Description

Method and device for service access based on directional flow
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for service access based on directional flow.
Background
In internet service, when a user accesses a service of an enterprise by using a mobile phone without wifi, the mobile phone traffic will reach a gateway of an operator first and then be forwarded to a server of the enterprise. One service that enterprises may develop in this regard is directed traffic packet service in cooperation with the operator. The operation mode of the service is as follows: for a service provided by a mobile phone, such as an APP, an enterprise of the APP provides a batch of fixed IP (Internet Protocol Address) of a server to an operator, and the operator configures the batch of fixed IP. The service is a service for performing service access based on the directional traffic.
In the prior art, for service access based on directional traffic, an IP layer communication mechanism of a mobile phone application program is usually modified. When a user accesses a certain service (the home service), service access of the directional flow is carried out according to the backup IP address and the port of the directional service included in the access request data packet sent by the user. However, there is a problem that a third-party service embedded in the service cannot be accessed or cannot be accessed based on the directed traffic. For example, if the local service has a literal link of http:// www.abd.com, when the user clicks the link based on the local service, the user can directly access the http:// www.abd.com, and cannot go to the fixed IP provided by the local service, so that the operator can be charged for the access.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for performing service access based on directional traffic, so as to achieve access smoothly for all third-room services embedded in the local service, and achieve non-charging access based on a directional traffic packet.
To achieve the above object, according to an aspect of the embodiments of the present invention, a method for service access based on directed traffic is provided.
The method for performing service access based on the directional flow comprises the following steps: receiving a service access request sent by a user, wherein the service access request at least comprises an address for accessing a service; the service access request is a request for accessing a third-party service or a request for accessing a self-service, and the third-party service is embedded in the self-service; modifying the address to access the directional flow processing server through the modified address; and the directional flow processing server reversely modifies the modified address to realize service access.
Optionally, the address is a domain name; then
Modifying the address so that the step of accessing the directional traffic processing server through the modified address comprises: modifying the domain name of the access service according to preset domain name resolution, so that the modified domain name is used for accessing the directional flow processing server; the domain name resolution is directed to the directed traffic handling server.
Optionally, the method further comprises: according to the data calculation amount of the access service, dividing the address corresponding to the service into two types, namely an address modification type and an address non-modification type; then
After receiving a service access request sent by a user and before modifying the address, the method further comprises the following steps: determining a category to which the address belongs, and determining that the category to which the address belongs is the address modification category.
Optionally, the address modification class includes, but is not limited to: the system comprises an interface access address, a static resource address, a third-party content distribution address, a third-party operation support system address and a third-party file picture address; the address non-modification class includes, but is not limited to: a third party video address.
Optionally, the directional traffic processing server is an Nginx server.
To achieve the above object, according to another aspect of the embodiments of the present invention, an apparatus for service access based on directed traffic is provided.
The device for performing service access based on the directional flow comprises the following steps:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a service access request sent by a user, and the service access request at least comprises an address for accessing a service; the service access request is a request for accessing a third-party service or a request for accessing a self-service, and the third-party service is embedded in the self-service;
the address modification module is used for modifying the address so as to access the directional flow processing server through the modified address;
and the reverse proxy module is used for reversely modifying the modified address through the directional flow processing server so as to realize service access.
Optionally, the address modification module is further configured to modify a domain name for accessing a service according to a preset domain name resolution, so that the modified domain name is used to access the directional traffic processing server; the domain name resolution points to the directional traffic processing server; wherein the address is a domain name.
Optionally, the system further comprises a pre-classification module, configured to classify addresses corresponding to the services into two classes, namely an address modification class and an address non-modification class, according to the data computation amount of the access service; and determining the category to which the address belongs, and determining the category to which the address belongs as the address modification category.
Optionally, the address modification class includes, but is not limited to: the system comprises an interface access address, a static resource address, a third-party content distribution address, a third-party operation support system address and a third-party file picture address; the address non-modification class includes, but is not limited to: a third party video address.
Optionally, the directional traffic processing server is an Nginx server.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
The electronic device of the embodiment of the invention comprises: one or more processors; a storage device, configured to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement any of the above methods for directed traffic based service access.
To achieve the above object, according to a further aspect of the embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, wherein the computer program is configured to implement any one of the above methods for service access based on directed traffic when executed by a processor.
One embodiment of the above invention has the following advantages or benefits: and modifying the address in the access request to enable the user to access the directional traffic processing server, and forwarding all accesses performed by the user through the mobile phone through the directional traffic processing server. This all access includes not only access to the present service but also access to third party services through the present service. And the IP of the directional traffic processing server is reported to the operator, and the directional traffic processing server reversely modifies the received address, so that the request can be sourced back to the real domain name which the user wants to access, and the service access is realized. Therefore, for the access of all the third-room services embedded in the local service, the access can be smoothly realized and the access is not charged based on the directional flow packet.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a method for service access based on directed traffic according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system for implementing the method for service access based on directional traffic according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a method for service access based on directed traffic, according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a method for service access based on directed traffic, according to an embodiment of the invention;
FIG. 5 is a schematic diagram of the main modules of an apparatus for service access based on directed traffic, according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a method for performing service access based on directional traffic according to an embodiment of the present invention, and as shown in fig. 1, the method for performing service access based on directional traffic according to the embodiment of the present invention mainly includes:
step S101: and receiving a service access request sent by a user, wherein the service access request at least comprises an address for accessing the service. The service access request is a request for accessing a third-party service or a request for accessing the self-service, and the third-party service is embedded in the self-service. The present service is a service that a user directly accesses through a mobile phone, and the third-party service is compared with the present service and embedded in the present service. For example, the video of the "love art" is accessed through the application program "QQ music", the "QQ music" serves as the present party, and the "love art" serves as the third party.
Step S102: and modifying the address so that the directional flow processing server is accessed through the modified address. The directed traffic handling server is a server that has been provisioned to the operator, and the access forwarded through the server is performable based on the directed traffic.
Step S103: and the directional flow processing server reversely modifies the modified address to realize service access.
According to the embodiment of the invention, the address in the access request is modified, so that the directional traffic processing server can be accessed, and all accesses performed by a user through a mobile phone are forwarded through the directional traffic processing server. This all access includes not only access to the present service but also access to third party services through the present service. And the IP of the directional traffic processing server is reported to the operator, and the directional traffic processing server reversely modifies the received address, so that the request can be sourced back to the real domain name which the user wants to access, and the service access is realized. Therefore, for the access of all the third-room services embedded in the local service, the access can be smoothly realized and the access is not charged based on the directional flow packet.
FIG. 2 is a schematic diagram of a system for implementing the method for service access based on directional traffic according to an embodiment of the present invention; fig. 3 is a schematic diagram of a method for service access based on directed traffic according to an embodiment of the present invention.
As shown in fig. 3, the method for performing service access based on directional traffic according to the embodiment of the present invention includes:
step S301: receiving a service access request sent by a user, wherein the service access request at least comprises a domain name for accessing a service. Because the IP address is a digital mark and is difficult to memorize and write when in use, a symbolic address scheme is developed on the basis of the IP address to replace a digital IP address. Each of the symbolized addresses corresponds to a particular IP address, so that resources on the network are much easier to access. This character-type address, which corresponds to a numeric IP address on the network, is called a domain name.
Step S302: and modifying the domain name of the access service according to the preset domain name resolution, so that the directional flow processing server is accessed through the modified domain name. The domain name resolution points to a directed traffic handling server. Domain name resolution is a service that directs domain names to a website space IP, allowing people to conveniently access the website through the registered domain names. For example, the domain name of the local service of the mobile phone is a.com, the preset domain name resolution is daili.a.com, and the domain name resolution is daili.a.com, which points to a fixed IP, which may be called a directional traffic IP. The directional traffic IP is fixed, and the fixed directional traffic IP is an IP with balanced load, followed by a plurality of processing servers to form a forwarding cluster.
And providing the directional traffic IP of the directional traffic processing server to an operator, the traffic cost of a user for accessing the IP can be reduced. And modifying all domain names accessed by the user through the client and domain names in all display contents in webview of the client, so that the modified domain names access the quantitative traffic processing server. Since the data flow is based on my services, such as displaying pages to webview, the data is actually webview flowing from my server to client. In the process of data outflow, all domain names are required to be matched regularly, and then the matched domain names are replaced by the proxy domain names of the same party in sequence. For example, a b.com.daili.a.com need to be accessed, then the b.com.daili.a.com is sent to the directional traffic IP since the daili.a.com is resolved to the directional traffic IP by the domain name.
Step S303: and the directional flow processing server reversely modifies the modified domain name to realize service access. And the directional flow processing server receives any access request and then reversely modifies the domain name. For example, in the above example, the directional traffic processing server receives b.com.daili.a.com, and the reverse modification process is: and removing the daili.A.com to obtain the real domain name to be accessed, namely the B.com. So, the request is sourced back to the domain name that the real one wants to access, i.e. upstream to b.com in the embodiment of the present invention.
The above process needs to be implemented using nginnx in combination with lua programming, and the core configuration in nginnx is as follows:
Figure BDA0002013978240000071
Figure BDA0002013978240000081
in the reverse proxy for processing domain name forwarding, the server is required to support a tcp layer proxy, the service program is required to support the reverse proxy, the service program is required to support extended programming, and the like. Nginx (engine x) is a high performance HTTP and reverse proxy server, and is also an IMAP/POP3/SMTP server. upstream: nginx back source configuration item.
The data flow is from app flow to forwarding domain name, to load balance, to forwarding cluster, and to reverse proxy to correct access domain name. Com, the goal is to access the service xxx.com through the cell phone app, as shown in fig. 2. Specifically, the visited domain name is modified and replaced with xxx.com.daili.a.com, and then the operator and the cluster of quantitative traffic processing servers are reached. And if the quantitative flow processing server cluster carries out reverse modification on the quantitative flow processing server cluster, the request can be sourced back to the real domain name which the user wants to access, and the service access is realized. Therefore, for the access of all the third-room services embedded in the local service, the access can be smoothly realized and the access is not charged based on the directional flow packet.
According to the embodiment of the invention, all domain names which need to be accessed by the mobile phone client app are directionally forwarded through a certain rule, so that the landing of a directional flow packet is realized. And the out-link file, the out-link picture, the out-link video and the like in the webview can be normally displayed and downloaded. In addition, the third-party service purchased by the service can be normally displayed, and the problem that the third-party service purchased by the user cannot be accessed in the prior art, for example, live video of the third party is used and is redirected to the server of the user, and the live data cannot be obtained is solved. To address this problem, the prior art is to replace the IP and port. Thus, for example, if my live video is a walking love art, then the data stream would be the IP and port of the server going to love art. If my party replaces the IP and port of their server, it is out of service and no access is possible. If not, it becomes a billing service. The embodiment of the invention can perform corresponding processing on the live video, so that service access is realized based on the directional flow. The problem that the video of the picture accessing the external link file in the webview embedded in the prior art is charged is solved.
Fig. 4 is a schematic diagram of a method for service access based on directed traffic according to an embodiment of the present invention. As shown in fig. 4, the method for performing service access based on directional traffic according to the embodiment of the present invention includes:
step S401: receiving a service access request sent by a user, wherein the service access request at least comprises an address for accessing a service; the service access request is a request for accessing a third-party service or a request for accessing the self-service, and the third-party service is embedded in the self-service.
Step S402: and determining the category of the address, and judging whether to modify the address according to the category. If yes, go to step S403; otherwise, step S405 is performed. According to the data calculation amount of the access service, addresses corresponding to the service are divided into two types, namely an address modification type and an address non-modification type. The address modification classes include, but are not limited to: the system comprises an interface access address, a static resource address, a third-party content distribution address, a third-party operation support system address and a third-party file picture address. The address non-modifying class includes, but is not limited to: a third party video address.
The interface access address can be an api domain name, and the api domain name is calculated by local background service; the static resource address can be a static resource domain name, and the static resource domain name refers to a static resource on a server of the domain name accessed last. The third party content distribution address is the Cdn cache domain name, which means that the resource that is ultimately accessed is not in the local domain name but in the third party Cdn. The third party operation support system address is an Oss domain name, which means that the third party Oss domain name is directly accessed. The third party file picture address can be an external picture domain name, which refers to various third party pictures needing to be accessed in the output data. The full name of DN is Content Delivery Network, namely Content distribution Network, and the Operation support system OSS is an integrated support system for telecommunication operators and information resource sharing.
The third party video address in the address unmodified class may be an external video domain name, such as video on demand or live video, which may be an arcade. The domain names are classified, the processing before different classes of domain name agents may be different, for example, video streams, and due to the large data volume, a mode of coordinating a third party to provide a fixed IP is adopted. Although feasible, reverse proxy may generate various network problems due to the large amount of data on one hand and cause relatively large computational stress on the own proxy server on the other hand.
Step S403: and modifying the address so that the directional flow processing server is accessed through the modified address.
And determining the processing mode of the address according to the category of the address. For example, due to the computational data volume of video streaming, a way of coordinating third party service IP has to be taken. For different addresses, the processing method is as follows:
resource classification Treatment method
1. api domain name api.A.com Modified to api.A.com.daili.A.com
2. Static resource domain name static.A.com Modified to static.a.com.daili.a.com.
3. cdn part cdn.A.com Modified to cdn.A.com.daili.A.com
4. os part os.a.com Modified to os.a.com.daili.a.com.
5. Com. external picture XXX Modified to XXX.com.daili.A.com
Step S404: and the directional flow processing server reversely modifies the modified address to realize service access.
Step S405: and analyzing the directional flow IP in the address, and realizing service access according to the directional flow IP. For example, the amount of data of the calculated amount of the video stream is large, and a way of coordinating the IP of the third-party service can be adopted. Specifically, the coordination service provider provides several fixed IPs for the local service to send video streams of the local service, and adds the fixed IPs into the directional traffic IP of the operator, so as to reduce the traffic cost of the user for accessing the IPs.
According to the embodiment of the invention, all domain names which need to be accessed by the mobile phone client app are directionally forwarded through a certain rule, so that the landing of a directional flow packet is realized. And the out-link file, the out-link picture, the out-link video and the like in the webview can be normally displayed and downloaded. In addition, the third-party service purchased by the service can be normally displayed, and the problem that the third-party service purchased by the user cannot be accessed in the prior art, for example, live video of the third party is used and is redirected to the server of the user, and the live data cannot be obtained is solved. To address this problem, the prior art is to replace the IP and port. Thus, for example, if my live video is a walking love art, then the data stream would be the IP and port of the server going to love art. If my party replaces the IP and port of their server, it is out of service and no access is possible. If not, it becomes a billing service. The embodiment of the invention can perform corresponding processing on the live video, so that service access is realized based on the directional flow. The problem that the video of the picture accessing the external link file in the webview embedded in the prior art is charged is solved.
Fig. 5 is a schematic diagram of main modules of an apparatus for performing service access based on directed traffic according to an embodiment of the present invention, and as shown in fig. 5, an apparatus 500 for performing service access based on directed traffic according to an embodiment of the present invention includes a receiving module 501, an address modification module 502, and a reverse proxy module 503.
The receiving module 501 is configured to receive a service access request sent by a user, where the service access request at least includes an address for accessing a service. The service access request is a request for accessing a third-party service or a request for accessing the self-service, and the third-party service is embedded in the self-service.
The address modification module 502 is configured to modify an address, so that the directional traffic processing server is accessed through the modified address. The address modification module is also used for modifying the domain name of the access service according to the preset domain name resolution, so that the directional traffic processing server is accessed through the modified domain name; the domain name resolution points to a directed traffic handling server. Wherein, the address is a domain name.
The reverse proxy module 503 is configured to modify the modified address in the reverse direction through the directional traffic processing server, so as to implement service access. The directional traffic handling server is a Nginx server.
The device for service access based on the directional flow also comprises a pre-classification module, a service access module and a service access module, wherein the pre-classification module is used for classifying the addresses corresponding to the services into two classes, namely an address modification class and an address non-modification class according to the data calculation amount of the access service; and determining the category to which the address belongs, and determining that the category to which the address belongs is an address modification category. The address modification classes include, but are not limited to: the system comprises an interface access address, a static resource address, a third-party content distribution address, a third-party operation support system address and a third-party file picture address; the address non-modifying class includes, but is not limited to: a third party video address.
According to the embodiment of the invention, the address in the access request is modified, so that the directional traffic processing server can be accessed, and all accesses performed by a user through a mobile phone are forwarded through the directional traffic processing server. This all access includes not only access to the present service but also access to third party services through the present service. And the IP of the directional traffic processing server is reported to the operator, and the directional traffic processing server reversely modifies the received address, so that the request can be sourced back to the real domain name which the user wants to access, and the service access is realized. Therefore, for the access of all the third-room services embedded in the local service, the access can be smoothly realized and the access is not charged based on the directional flow packet.
Fig. 6 illustrates an exemplary system architecture 600 of a method for service access based on directed traffic or an apparatus for service access based on directed traffic, to which an embodiment of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. The terminal devices 601, 602, 603 may have installed thereon various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 601, 602, 603. The background management server can analyze and process the received data such as the product information inquiry request and feed back the processing result to the terminal equipment.
It should be noted that the method for performing service access based on directed traffic provided by the embodiment of the present invention is generally executed by the server 605, and accordingly, the apparatus for performing service access based on directed traffic is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an acquisition receiving module, an address modification module, and a reverse proxy module. The names of these modules do not in some cases form a limitation on the module itself, and for example, a receiving module may also be described as a "module that receives a service access request sent by a user".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving a service access request sent by a user, wherein the service access request at least comprises an address for accessing a service; the service access request is a request for accessing a third-party service or a request for accessing a local service, and the third-party service is embedded in the local service; modifying the address to access the directional flow processing server through the modified address; and the directional flow processing server reversely modifies the modified address to realize service access.
According to the embodiment of the invention, the address in the access request is modified, so that the directional traffic processing server can be accessed, and all accesses performed by a user through a mobile phone are forwarded through the directional traffic processing server. This all access includes not only access to the present service but also access to third party services through the present service. And the IP of the directional traffic processing server is reported to the operator, and the directional traffic processing server reversely modifies the received address, so that the request can be sourced back to the real domain name which the user wants to access, and the service access is realized. Therefore, for the access of all the third-room services embedded in the local service, the access can be smoothly realized and the access is not charged based on the directional flow packet.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for service access based on directional traffic, comprising:
receiving a service access request sent by a user, wherein the service access request at least comprises an address for accessing a service; the service access request is a request for accessing a third-party service or a request for accessing a self-service, and the third-party service is embedded in the self-service;
modifying the address to access the directional flow processing server through the modified address;
and the directional flow processing server reversely modifies the modified address to realize service access.
2. The method of claim 1, wherein the address is a domain name; then
Modifying the address so that the step of accessing the directional traffic processing server through the modified address comprises:
modifying the domain name of the access service according to preset domain name resolution, so that the modified domain name is used for accessing the directional flow processing server; the domain name resolution is directed to the directed traffic handling server.
3. The method of claim 1, further comprising: according to the data calculation amount of the access service, dividing the address corresponding to the service into two types, namely an address modification type and an address non-modification type; then
After receiving a service access request sent by a user and before modifying the address, the method further comprises the following steps:
determining a category to which the address belongs, and determining that the category to which the address belongs is the address modification category.
4. The method of claim 3, wherein the address modification class includes but is not limited to: the system comprises an interface access address, a static resource address, a third-party content distribution address, a third-party operation support system address and a third-party file picture address; the address non-modification class includes, but is not limited to: a third party video address.
5. The method of claim 1, wherein the directed traffic handling server is an Nginx server.
6. An apparatus for service access based on directed traffic, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a service access request sent by a user, and the service access request at least comprises an address for accessing a service; the service access request is a request for accessing a third-party service or a request for accessing a self-service, and the third-party service is embedded in the self-service;
the address modification module is used for modifying the address so as to access the directional flow processing server through the modified address;
and the reverse proxy module is used for reversely modifying the modified address through the directional flow processing server so as to realize service access.
7. The apparatus according to claim 6, wherein the address modification module is further configured to modify a domain name for accessing the service according to a preset domain name resolution, so that the directional traffic processing server is accessed through the modified domain name; the domain name resolution points to the directional traffic processing server;
wherein the address is a domain name.
8. The apparatus of claim 6, further comprising a pre-classification module, configured to classify addresses corresponding to the services into two classes, namely an address modified class and an address unmodified class, according to the data computation amount of the access service; and determining the category to which the address belongs, and determining the category to which the address belongs as the address modification category.
9. The apparatus of claim 8, wherein the address modification class includes but is not limited to: the system comprises an interface access address, a static resource address, a third-party content distribution address, a third-party operation support system address and a third-party file picture address; the address non-modification class includes, but is not limited to: a third party video address.
10. The apparatus of claim 6, wherein the directed traffic processing server is an Nginx server.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201910256818.2A 2019-04-01 2019-04-01 Method and device for service access based on directional flow Pending CN111770121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910256818.2A CN111770121A (en) 2019-04-01 2019-04-01 Method and device for service access based on directional flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910256818.2A CN111770121A (en) 2019-04-01 2019-04-01 Method and device for service access based on directional flow

Publications (1)

Publication Number Publication Date
CN111770121A true CN111770121A (en) 2020-10-13

Family

ID=72718713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910256818.2A Pending CN111770121A (en) 2019-04-01 2019-04-01 Method and device for service access based on directional flow

Country Status (1)

Country Link
CN (1) CN111770121A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666841A (en) * 2020-12-22 2022-06-24 中国联合网络通信集团有限公司 Flow-free method and flow-free system for directional flow

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090070873A1 (en) * 2007-09-11 2009-03-12 Yahoo! Inc. Safe web based interactions
US20120209990A1 (en) * 2011-02-13 2012-08-16 Openwave Systems Inc. Method and system for providing a zero rating service to an end-user device
CN103686198A (en) * 2013-12-30 2014-03-26 优视科技有限公司 Video data processing method, device and system
CN107948329A (en) * 2018-01-03 2018-04-20 湖南麓山云数据科技服务有限公司 A kind of cross-domain processing method and system
CN108616835A (en) * 2018-04-26 2018-10-02 腾讯科技(深圳)有限公司 Internet resources acquisition methods, device, system and storage medium based on browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090070873A1 (en) * 2007-09-11 2009-03-12 Yahoo! Inc. Safe web based interactions
US20120209990A1 (en) * 2011-02-13 2012-08-16 Openwave Systems Inc. Method and system for providing a zero rating service to an end-user device
CN103686198A (en) * 2013-12-30 2014-03-26 优视科技有限公司 Video data processing method, device and system
CN107948329A (en) * 2018-01-03 2018-04-20 湖南麓山云数据科技服务有限公司 A kind of cross-domain processing method and system
CN108616835A (en) * 2018-04-26 2018-10-02 腾讯科技(深圳)有限公司 Internet resources acquisition methods, device, system and storage medium based on browser

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666841A (en) * 2020-12-22 2022-06-24 中国联合网络通信集团有限公司 Flow-free method and flow-free system for directional flow

Similar Documents

Publication Publication Date Title
US10574771B2 (en) Methods and systems for rewriting scripts to redirect web requests
CN113037869B (en) Method and apparatus for back-sourcing of content distribution network system
CN109729040B (en) Method, apparatus and computer readable medium for selection of a protocol
US10158548B2 (en) Methods and systems for signing resource identifiers
CN106302445A (en) For the method and apparatus processing request
US8868680B2 (en) Methods for recommending personalized content based on profile and context information and devices thereof
CN111427701A (en) Workflow engine system and business processing method
JP2024521149A (en) Information display method, device and electronic device
CN111478781B (en) Message broadcasting method and device
CN112003945A (en) Service request response method and device
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN113364887B (en) File downloading method based on FTP, proxy server and system
US9679262B2 (en) Image index routing
US9083803B2 (en) Systems and methods for allocation of telephony resources on-demand
CN111010453B (en) Service request processing method, system, electronic device and computer readable medium
CN111770121A (en) Method and device for service access based on directional flow
CN110247847B (en) Method and device for back source routing between nodes
US9912563B2 (en) Traffic engineering of cloud services
CN111953718A (en) Page debugging method and device
US20190036835A1 (en) Client side information to influence service level for client system
CN116861397A (en) Request processing method, device, electronic equipment and computer readable medium
CN111866100A (en) Method, device and system for controlling data transmission rate
CN113556370A (en) Service calling method and device
US20190007355A1 (en) Communicating with client devices using over-the-top communication channels
CN112436951A (en) Method and device for predicting flow path

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