CN111431818B - Cross-domain request flow distribution method and device, storage medium and computer equipment - Google Patents

Cross-domain request flow distribution method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN111431818B
CN111431818B CN202010127860.7A CN202010127860A CN111431818B CN 111431818 B CN111431818 B CN 111431818B CN 202010127860 A CN202010127860 A CN 202010127860A CN 111431818 B CN111431818 B CN 111431818B
Authority
CN
China
Prior art keywords
service
service request
network domain
domain
flow
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.)
Active
Application number
CN202010127860.7A
Other languages
Chinese (zh)
Other versions
CN111431818A (en
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.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai 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 Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN202010127860.7A priority Critical patent/CN111431818B/en
Publication of CN111431818A publication Critical patent/CN111431818A/en
Application granted granted Critical
Publication of CN111431818B publication Critical patent/CN111431818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a method and a device for distributing traffic of a cross-domain request, a storage medium and computer equipment, and relates to the technical field of cross-domain access. The method comprises the following steps: acquiring a service request sent by a network domain of a requesting party, wherein the service request carries a service code and a name identifier of the network domain of the requesting party; acquiring a service class corresponding to the service request according to the service code; acquiring flow proportioning information corresponding to a service request according to the name identification of a requesting network domain and the service category corresponding to the service request; and distributing the service request to a service unit of the target network domain according to the preset proportion for processing according to the flow proportioning information corresponding to the service request. The method can avoid that all cross-domain accesses are concentrated into one or more service units, lighten the processing load of the target network domain on the cross-domain service request, effectively shorten the access time of the cross-domain service request and strengthen the stability of the requester network domain and the target network domain in the cross-domain access.

Description

Cross-domain request flow distribution method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of cross-domain access technologies, and in particular, to a method and apparatus for distributing traffic of a cross-domain request, a storage medium, and a computer device.
Background
Cross-domain access, also referred to as cross-network domain access, refers to the manner in which resources of one domain are requested from another domain. Typically, services between different network types cannot be self-discovered and accessed, so cross-domain access is to be deployed by means of third party tools or services, and generally, cross-domain access is mainly achieved by means of application layer gateways.
On the other hand, many service systems currently tend to employ a unitized deployment mode in which each service unit is capable of independently completing the operation of all services under a certain partition.
In the prior art, when cross-domain access is performed on a network domain deployed in a unitized manner, a requester gateway generally selects one or a plurality of service units to perform service call in a given or random manner, and regardless of the unit splitting logic of a target network domain, all service requests are concentrated on one or a plurality of service units, and the cross-domain access mode can increase the access time of the service requests, and can cause the service units of the target network domain to generate overload operation pressure, thereby aggravating the processing burden of the service requests of the target network domain and even causing serious consequences of breakdown and paralysis of the target network domain.
Disclosure of Invention
In view of this, the present application provides a method, a system, a storage medium and a computer device for distributing a flow of a cross-domain request, which mainly aims to solve the technical problem in the prior art that the cross-domain request has a longer access time and a service unit of a target network domain has a heavier burden.
According to a first aspect of the present invention, there is provided a method for traffic distribution of a cross-domain request, the method comprising:
acquiring a service request sent by a network domain of a requesting party, wherein the service request carries a service code and a name identifier of the network domain of the requesting party;
acquiring a service class corresponding to the service request according to the service code;
acquiring flow proportioning information corresponding to a service request according to the name identification of a requesting network domain and the service category corresponding to the service request;
and distributing the service request to a service unit of the target network domain according to the preset proportion for processing according to the flow proportioning information corresponding to the service request.
In one embodiment, the method further comprises: and acquiring flow ratio information of each name identifier of the requesting network domain under each service class according to the current time and a preset flow configuration plan.
In one embodiment, according to the current time and a preset traffic configuration plan, obtaining traffic proportioning information of each name identifier of the requesting network domain under each service class includes: when the current time is the same as the time node in the flow configuration plan, acquiring a flow configuration file corresponding to the time node in a database; and analyzing the flow configuration file to obtain flow proportioning information of each name identifier of the requesting network domain under each service class.
In one embodiment, before obtaining the service class corresponding to the service request according to the service code, the method further includes: acquiring configuration information of each service code from a database; acquiring the service category corresponding to the service request according to the service code, including: and acquiring the service category corresponding to the service request from the configuration information of each service code according to the service code.
In one embodiment, according to the name identifier of the requesting network domain and the service class corresponding to the service request, obtaining the traffic proportioning information corresponding to the service request includes: generating a flow proportioning identifier according to the name identifier of the requesting network domain and the service class corresponding to the service request; and acquiring the flow proportioning information corresponding to the service request from the flow proportioning information of each name identifier of the requesting network domain under each service class according to the flow proportioning identifier.
In one embodiment, according to traffic proportioning information corresponding to a service request, the method for distributing the service request to a service unit of a target network domain includes: obtaining the name and distribution proportion of the service unit of the target network domain to be distributed according to the flow proportioning information corresponding to the service request; and sending the service request to the service unit of the target network domain under the name according to the distribution proportion according to the name and the distribution proportion of the service unit of the target network domain to be distributed.
In one embodiment, the method further comprises: and receiving a service processing result of the service request sent by the service unit of the target network domain.
According to a second aspect of the present invention, there is provided a traffic distribution device for cross-domain requests, the device comprising:
the service request acquisition module is used for acquiring a service request sent by a network domain of a requester, wherein the service request carries a service code and a name identifier of the network domain of the requester;
the request information extraction module is used for acquiring the service category corresponding to the service request according to the service code;
the flow ratio acquisition module is used for acquiring flow ratio information corresponding to the service request according to the name identification of the network domain of the requesting party and the service category corresponding to the service request;
and the service request distribution module is used for distributing the service request to the service unit of the target network domain according to the preset proportion according to the flow proportioning information corresponding to the service request for processing.
In one embodiment, the device further includes a traffic proportioning update module, where the traffic proportioning update module is configured to obtain traffic proportioning information of each name identifier of the requesting network domain under each service class according to the current time and a preset traffic configuration plan.
In one embodiment, the flow proportioning updating module is specifically configured to obtain, when the current time is the same as a time node in the flow configuration plan, a flow configuration file corresponding to the time node in the database; and analyzing the flow configuration file to obtain flow proportioning information of each name identifier of the requesting network domain under each service class.
In one embodiment, the device further comprises a configuration information acquisition module, wherein the configuration information acquisition module is used for acquiring the configuration information of each service code in the database; the request information extraction module is specifically configured to obtain, according to the service codes, service categories corresponding to the service requests from configuration information of each service code.
In one embodiment, the flow proportioning information obtaining module is specifically configured to generate a flow proportioning identifier according to a name identifier of a network domain of a requester and a service class corresponding to the service request; and acquiring the flow proportioning information corresponding to the service request from the flow proportioning information of each name identifier of the requesting network domain under each service class according to the flow proportioning identifier.
In one embodiment, the service request distribution module is specifically configured to obtain, according to flow proportioning information corresponding to a service request, a name and a distribution proportion of a service unit of a target network domain to be distributed; and sending the service request to the service unit of the target network domain under the name according to the distribution proportion according to the name and the distribution proportion of the service unit of the target network domain to be distributed.
In one embodiment, the apparatus further includes a processing result receiving module, where the processing result receiving module is configured to receive a service processing result of the service request sent by the service unit of the target network domain.
According to a third aspect of the present invention, there is provided a storage medium having stored thereon a computer program which when executed by a processor implements the above-described method of traffic distribution for cross-domain requests.
According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above-described method of traffic distribution for cross-domain requests when executing the program.
The invention provides a method, a device, a storage medium and a computer device for distributing the flow of a cross-domain request, which are characterized in that firstly, a service request which is sent by a requesting network domain and carries a service code is obtained, then, a name identifier and a service class of the service request are obtained according to the service code, then, flow proportioning information corresponding to the service request is obtained by utilizing the name identifier and the service class, and finally, the service request is distributed to a service unit of a target network domain according to the flow proportioning information according to a preset proportion, so that the flow distribution of the cross-domain access from the requesting network domain to the target network domain is realized. According to the method, service requests with different name identifications and service categories can be distributed to service units of different target network domains according to the service characteristics of the service requests, so that all cross-domain accesses are prevented from being concentrated to one or more service units, the processing load of the target network domain on the cross-domain service requests is reduced, the access time of the cross-domain service requests is effectively shortened, and the stability of the requesting network domain and the target network domain in the cross-domain access is enhanced.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a flow diagram of a flow allocation method of a cross-domain request according to an embodiment of the present invention;
fig. 2 is a flow chart illustrating another flow allocation method of cross-domain request according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a scenario of a method for distributing traffic of a cross-domain request according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a flow distribution device for cross-domain request according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another flow distribution device for cross-domain request according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
In one embodiment, as shown in fig. 1, a method for distributing traffic of a cross-domain request is provided, and the method is applied to a requesting network domain gateway for illustration, and includes the following steps:
101. and acquiring a service request sent by the network domain of the requesting party, wherein the service request carries a service code and a name identifier of the network domain of the requesting party.
Specifically, the service request refers to a request message from the front end to the server, and the server responds to the front end request according to the request message, that is, the server executes the call of a plurality of applications according to the request message and returns a corresponding call result. In this embodiment, the service request sent by the requesting domain refers to a cross-domain service request from the front end of the requesting domain to the target domain server, where the cross-domain service request carries a service code, and when cross-domain access is performed, a requesting domain gateway deployed in an application layer may acquire the service request and extract the service code corresponding to the service request, and at the same time, the requesting domain gateway may also extract a name identifier of the requesting domain from the service request.
102. And acquiring the service category corresponding to the service request according to the service code.
Specifically, each type of service request has a unique service code, and through the service code, a service class corresponding to the service request can be obtained, wherein one type of service request refers to a service request with the same application and interface. Before acquiring the service request, the requesting party domain gateway can acquire configuration information of all service codes in a database, and then find a service class corresponding to the service request in the configuration information of each service code according to the service code carried in the service request.
103. And acquiring flow proportioning information corresponding to the service request according to the name identification of the network domain of the requesting party and the service class corresponding to the service request.
Specifically, the gateway of the network domain of the requesting party can generate a traffic proportioning identifier according to the name identifier of the network domain of the requesting party and the service category corresponding to the service request, and then acquire traffic proportioning information corresponding to the service request from the locally cached traffic proportioning information of the gateway of the network domain of the requesting party according to the traffic proportioning identifier, wherein in the traffic proportioning information, the unit name and the distribution proportion of the service request sent to the target network domain are recorded.
104. And distributing the service request to a service unit of the target network domain according to the preset proportion for processing according to the flow proportioning information corresponding to the service request.
Specifically, the request gateway may obtain the name and the distribution ratio of the service unit of the target network domain to be distributed according to the flow proportioning information corresponding to the service request, and then send the service request to the service unit of the target network domain under the corresponding name according to the name and the distribution ratio of the service unit of the target network domain to be distributed according to the preset distribution ratio.
According to the flow distribution method of the cross-domain request, firstly, the service request which is sent by the network domain of the requesting party and carries the service code is obtained, then the name identification and the service class of the service request are obtained according to the service code, then the flow proportioning information corresponding to the service request is obtained by utilizing the name identification and the service class, and finally the service request is distributed to the service unit of the target network domain according to the flow proportioning information according to the preset proportion, so that the cross-domain access from the network domain of the requesting party to the target network domain is realized. According to the method, service requests with different name identifications and service categories can be distributed to service units of different target network domains according to the service characteristics of the service requests, so that all cross-domain accesses are prevented from being concentrated to one or more service units, the processing load of the target network domain on the cross-domain service requests is reduced, the access time of the cross-domain service requests is effectively shortened, and the stability of the requesting network domain and the target network domain in the cross-domain access is enhanced.
Further, as a refinement and extension of the foregoing embodiment, in order to fully describe the implementation process of this embodiment, a method for distributing traffic of a cross-domain request is provided, as shown in fig. 2, where the method includes the following steps:
201. and acquiring flow ratio information of each name identifier of the requesting network domain under each service class according to the current time and a preset flow configuration plan.
Specifically, when the current time of the requester domain gateway is the same as a certain time node in the traffic configuration plan, the requester domain gateway may acquire a traffic configuration file corresponding to the time node in the database, and then analyze the traffic configuration file to obtain traffic proportioning information of each name identifier of the requester domain under each service class.
For example, in the scenario shown in fig. 3, the requesting domain and the target domain are both deployed in a unitized manner, where the requesting domain is deployed with a machine room in both sides of A, B, where each of the two machine rooms has a plurality of service units to perform service operations in different partitions, and because of different numbers of servers in the two machine rooms, the number of service requests received in the two machine rooms of A, B may be divided, for example, a ground may receive 60% of the total service requests, B ground may receive 40% of the total service requests, in this embodiment, the name identifier of the requesting domain may be the unit name of the service unit of the requesting domain, such as unit 1a, unit 2a, unit 3a, unit 1B, or unit 2B, and the service types of the service requests may be four types of ratio, ratio1, ratio2, and ratio 3.
Accordingly, the traffic proportioning information of each name identification of the requesting network domain under each service class may include the following contents: the service requests of the units 1a, 2a and 3a are all distributed to the units 1C of the machine room of the destination domain a under the four service categories of ratio, ratio1, ratio2 and ratio3, the service requests of the units 1b and 2b under the service category of ratio1 are distributed to the units 1C of the machine room of the a, 1d of the machine room of the C, 2b under the service category of ratio2 are distributed to the units 2d and 3d of the machine room of the C, 2b and 2b under the service category of ratio3 are all distributed to the units 3d of the machine room of the C, etc., as shown in fig. 3, the flow ratio of the service requests of the respective service units transmitted from the requesting domain to the destination domain is 1 within a time range: 2:1:2.
in this embodiment, according to the change of the time node, the traffic proportioning information is also adjusted accordingly to balance the service processing pressure of each service unit in the target network domain. It will be appreciated that in other scenarios, the requesting domain may also be non-unitized deployed, in which case the name identification of the requesting domain may be the requesting domain's own name and code.
202. And acquiring configuration information of each service code from a database.
Specifically, the requesting gateway may acquire the configuration information of each service code from the database, record the service class corresponding to each service code in the configuration information, and when the configuration information of the service code is changed, the requesting gateway may reacquire the configuration information of each service code and replace the previous configuration information.
203. And acquiring a service request sent by the network domain of the requesting party, wherein the service request carries a service code and a name identifier of the network domain of the requesting party.
Specifically, when cross-domain access is performed, a requesting party domain gateway deployed in an application layer can acquire a service request sent by a requesting party domain, extract a service code corresponding to the service request, and meanwhile, the requesting party domain gateway can also extract a name identifier of the requesting party domain from the service request.
204. And acquiring the service category corresponding to the service request according to the service code.
Each type of service request has a unique service code, through which a service class corresponding to the service request can be obtained. Specifically, the request party network domain gateway can search the service category corresponding to the service request in the configuration information of each service code according to the service code carried in the service request.
205. And acquiring flow proportioning information corresponding to the service request according to the name identification of the network domain of the requesting party and the service class corresponding to the service request.
Specifically, the gateway of the network domain of the requesting party can generate a flow proportioning identifier according to the name identifier of the network domain of the requesting party and the service category corresponding to the service request, and then acquire the flow proportioning information corresponding to the flow proportioning identifier from the flow proportioning information according to the flow proportioning identifier. In this embodiment, the format of the traffic proportioning identifier needs to correspond to the format of the traffic proportioning information, for example, the format of the traffic proportioning information in the traffic proportioning information, which indicates that a name identifier is in a certain service class, is: name identification # traffic class { cell name 1: flow ratio1, unit name 2: flow ratio 2}, the flow ratio identifier may be a name identifier # service class, for example, the unit 1a # ratio1, and according to the flow ratio identifier, the corresponding flow ratio information may be found in the flow ratio information of each name identifier under each service class.
206. And distributing the service request to the service unit of the target network domain according to the traffic proportioning information corresponding to the service request.
Specifically, the request gateway may obtain the name and the distribution ratio of the service unit of the target network domain to be distributed according to the flow proportioning information corresponding to the service request, and then send the service request to the service unit of the target network domain under the corresponding name according to the name and the distribution ratio of the service unit of the target network domain to be distributed according to the preset distribution ratio.
For example, the name of the requesting domain of a service request is identified as the unit 2b, the type is ratio2, according to the traffic proportioning information corresponding to the service request, the service request can be distributed to the unit 2d or the unit 3d of the C-place machine room according to the ratio of 2:3, if only one service request is distributed to the unit 2d at this time, the probability of being distributed to the unit 2d is 2/5, if the service request is distributed to the unit 3d at this time, the probability of being distributed to the unit 3d is 3/5, if 50 service requests are distributed to this time, the number of service requests distributed to the unit 2d is about 20, and the number of service requests distributed to the unit 3d is about 30.
207. And receiving a service processing result of the service request sent by the service unit of the target network domain.
Specifically, the requester domain gateway may receive a service processing result of the service request sent back by the service unit of the target domain, so as to complete processing of the cross-domain service request.
According to the flow distribution method of the cross-domain request, the flow proportioning information can be automatically updated according to the time node, the processing burden of the target network domain on the cross-domain service request at each time point is balanced, the access time of the cross-domain service request is shortened, and the stability of the requester network domain and the target network domain in the cross-domain access is enhanced.
Further, as a specific implementation of the method shown in fig. 1 to fig. 3, the present embodiment provides a device for distributing traffic of a cross-domain request, as shown in fig. 4, where the device includes: a service request acquisition module 31, a request information extraction module 32, a flow proportioning acquisition module 33 and a service request distribution module 34.
The service request obtaining module 31 is configured to obtain a service request sent by a network domain of a requester, where the service request carries a service code and a name identifier of the network domain of the requester;
the request information extraction module 32 is configured to obtain a service class corresponding to the service request according to the service code;
the flow ratio obtaining module 33 is configured to obtain flow ratio information corresponding to the service request according to the name identifier of the requesting network domain and the service class corresponding to the service request;
the service request distribution module 34 may be configured to distribute the service request to the service unit of the target network domain according to the preset proportion according to the traffic proportioning information corresponding to the service request for processing.
In a specific application scenario, as shown in fig. 5, the apparatus further includes a traffic proportioning update module 35, where the traffic proportioning update module 35 is specifically configured to obtain traffic proportioning information of each name identifier of the requesting network domain under each service class according to the current time and a preset traffic configuration plan.
In a specific application scenario, the flow proportioning updating module 35 may be specifically configured to obtain, when the current time is the same as a time node in the flow configuration plan, a flow configuration file corresponding to the time node in the database; and analyzing the flow configuration file to obtain flow proportioning information of each name identifier of the requesting network domain under each service class.
In a specific application scenario, as shown in fig. 5, the apparatus further includes a configuration information obtaining module 36, where the configuration information obtaining module 36 is specifically configured to obtain configuration information of each service code in a database; the request information extraction module 32 is specifically configured to obtain, according to the service codes, a service class corresponding to the service request from configuration information of each service code.
In a specific application scenario, the flow proportioning information obtaining module 33 may be specifically configured to generate a flow proportioning identifier according to a name identifier of a requesting network domain and a service class corresponding to a service request; and acquiring the flow proportioning information corresponding to the service request from the flow proportioning information of each name identifier of the requesting network domain under each service class according to the flow proportioning identifier.
In a specific application scenario, the service request distribution module 34 may be specifically configured to obtain, according to flow proportioning information corresponding to a service request, a name and a distribution proportion of a service unit of a target network domain to be distributed; and sending the service request to the service unit of the target network domain under the name according to the distribution proportion according to the name and the distribution proportion of the service unit of the target network domain to be distributed.
In a specific application scenario, as shown in fig. 5, the apparatus further includes a processing result receiving module 37, where the processing result receiving module 37 may be configured to receive a service processing result of the service request sent by the service unit of the target network domain.
It should be noted that, for other corresponding descriptions of each functional unit related to the flow distribution device for cross-domain request provided in this embodiment, reference may be made to corresponding descriptions in fig. 1 to 3, and no further description is given here.
Based on the above methods shown in fig. 1 and fig. 2, correspondingly, the present embodiment further provides a storage medium, on which a computer program is stored, where the program, when executed by a processor, implements the above method for distributing traffic of the cross-domain request shown in fig. 1 and fig. 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, where the software product to be identified may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disc, a mobile hard disk, etc.), and include several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the method described in each implementation scenario of the present application.
Based on the method shown in fig. 1 to 3 and the embodiments of the flow distribution device for cross-domain request shown in fig. 4 and 5, in order to achieve the above objective, this embodiment further provides an entity device for flow distribution of cross-domain request, which may specifically be a personal computer, a server, a smart phone, a tablet computer, a smart watch, or other network devices, etc., where the entity device includes a storage medium and a processor; a storage medium storing a computer program; a processor for executing a computer program to implement the method as shown in fig. 1 and 2.
Optionally, the physical device may further include a user interface, a network interface, a camera, radio Frequency (RF) circuitry, sensors, audio circuitry, WI-FI modules, and the like. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), etc.
It will be appreciated by those skilled in the art that the structure of the entity device for traffic distribution of a cross-domain request provided in this embodiment is not limited to the entity device, and may include more or fewer components, or some components may be combined, or different component arrangements.
The storage medium may also include an operating system, a network communication module. The operating system is a program for managing the entity equipment hardware and the software resources to be identified, and supports the operation of the information processing program and other software and/or programs to be identified. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the information processing entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware. By applying the technical scheme of the application, the flow distribution of the cross-domain access from the requesting network domain to the target network domain can be realized. Compared with the prior art, the method can distribute service requests with different name identifications and service categories into service units of different target network domains according to the service characteristics of the service requests, avoid centralizing all cross-domain accesses into one or more service units, lighten the processing burden of the target network domain on the cross-domain service requests, effectively shorten the access time of the cross-domain service requests and enhance the stability of the requester network domain and the target network domain in the cross-domain access.
Those skilled in the art will appreciate that the drawings are merely schematic illustrations of one preferred implementation scenario, and that the modules or flows in the drawings are not necessarily required to practice the present application. Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The foregoing application serial numbers are merely for description, and do not represent advantages or disadvantages of the implementation scenario. The foregoing disclosure is merely a few specific implementations of the present application, but the present application is not limited thereto and any variations that can be considered by a person skilled in the art shall fall within the protection scope of the present application.

Claims (16)

1. A method for traffic distribution of cross-domain requests, the method comprising:
acquiring a service request sent by a network domain of a requester, wherein the service request carries a service code and a name identifier of the network domain of the requester, and the service request is a cross-domain service request;
acquiring a service class corresponding to the service request according to the service code;
acquiring flow proportioning information corresponding to the service request according to the name identification of the requesting network domain and the service class corresponding to the service request, wherein the flow proportioning information comprises the name and the distribution proportion of the service unit of the service request sent to the target network domain;
and distributing the service request to a service unit of a target network domain according to a preset proportion for processing according to the flow proportioning information corresponding to the service request.
2. The method according to claim 1, wherein the method further comprises:
and acquiring flow ratio information of each name identifier of the requesting network domain under each service class according to the current time and a preset flow configuration plan.
3. The method according to claim 2, wherein the obtaining the traffic proportioning information of each name identifier of the requesting network domain under each traffic class according to the current time and the preset traffic configuration plan includes:
when the current time is the same as a time node in the flow configuration plan, acquiring a flow configuration file corresponding to the time node in a database;
and analyzing the flow configuration file to obtain flow proportioning information of each name identifier of the requesting network domain under each service class.
4. The method of claim 3, wherein before the service class corresponding to the service request is obtained according to the service code, the method further comprises:
acquiring configuration information of each service code from a database;
the obtaining the service category corresponding to the service request according to the service code includes:
and acquiring the service category corresponding to the service request from the configuration information of each service code according to the service code.
5. The method of claim 4, wherein the obtaining traffic proportioning information corresponding to the service request according to the name identifier of the requesting network domain and the service class corresponding to the service request comprises:
generating a flow ratio identifier according to the name identifier of the requesting network domain and the service category corresponding to the service request;
and acquiring flow proportioning information corresponding to the service request from the flow proportioning information of each name identifier of the requesting network domain under each service class according to the flow proportioning identifier.
6. The method according to claim 5, wherein the distributing the service request to the service unit of the target network domain according to the traffic proportioning information corresponding to the service request includes:
obtaining the name and distribution proportion of the service unit of the target network domain to be distributed according to the flow proportioning information corresponding to the service request;
and sending the service request to the service unit of the target network domain under the name according to the distribution proportion according to the name and the distribution proportion of the service unit of the target network domain to be distributed.
7. The method of claim 6, wherein the method further comprises:
and receiving a service processing result of the service request sent by the service unit of the target network domain.
8. A traffic distribution device for cross-domain requests, the device comprising:
the service request acquisition module is used for acquiring a service request sent by a network domain of a requester, wherein the service request carries a service code and a name identifier of the network domain of the requester, and the service request is a cross-domain service request;
the request information extraction module is used for acquiring the service category corresponding to the service request according to the service code;
the traffic proportioning acquisition module is used for acquiring traffic proportioning information corresponding to the service request according to the name identification of the requesting network domain and the service category corresponding to the service request, wherein the traffic proportioning information comprises the name and the distribution proportion of the service unit of the service request sent to the target network domain;
and the service request distribution module is used for distributing the service request to the service unit of the target network domain according to the flow proportioning information corresponding to the service request and processing the service request according to the preset proportion.
9. The apparatus of claim 8, further comprising a traffic proportioning update module configured to obtain traffic proportioning information for each name identifier of the requesting network domain under each traffic class according to a current time and a preset traffic configuration plan.
10. The apparatus of claim 9, wherein the
The flow ratio updating module is specifically configured to obtain, when the current time is the same as a time node in the flow configuration plan, a flow configuration file corresponding to the time node in a database;
and analyzing the flow configuration file to obtain flow proportioning information of each name identifier of the requesting network domain under each service class.
11. The apparatus of claim 10, further comprising a configuration information acquisition module, wherein,
the configuration information acquisition module is used for acquiring the configuration information of each service code in the database;
the request information extraction module is specifically configured to obtain, according to the service codes, a service class corresponding to the service request from configuration information of each service code.
12. The apparatus of claim 11, wherein the
The flow proportioning information acquisition module is specifically used for generating a flow proportioning identifier according to the name identifier of the requesting network domain and the service category corresponding to the service request;
and acquiring flow proportioning information corresponding to the service request from the flow proportioning information of each name identifier of the requesting network domain under each service class according to the flow proportioning identifier.
13. The apparatus of claim 12, wherein the
The service request distribution module is specifically configured to obtain a name and a distribution proportion of a service unit of a target network domain to be distributed according to flow proportioning information corresponding to the service request;
and sending the service request to the service unit of the target network domain under the name according to the distribution proportion according to the name and the distribution proportion of the service unit of the target network domain to be distributed.
14. The apparatus of claim 13, further comprising a processing result receiving module configured to receive a service processing result of the service request sent by the service unit of the target network domain.
15. A storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method of any of claims 1 to 7.
16. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program when executed by the processor implements the steps of the method according to any one of claims 1 to 7.
CN202010127860.7A 2020-02-28 2020-02-28 Cross-domain request flow distribution method and device, storage medium and computer equipment Active CN111431818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010127860.7A CN111431818B (en) 2020-02-28 2020-02-28 Cross-domain request flow distribution method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010127860.7A CN111431818B (en) 2020-02-28 2020-02-28 Cross-domain request flow distribution method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111431818A CN111431818A (en) 2020-07-17
CN111431818B true CN111431818B (en) 2023-06-09

Family

ID=71551572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010127860.7A Active CN111431818B (en) 2020-02-28 2020-02-28 Cross-domain request flow distribution method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111431818B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500542A (en) * 2020-11-12 2022-05-13 中移信息技术有限公司 Service flow distribution method, device, equipment and computer storage medium
CN112751717B (en) * 2021-01-05 2021-11-05 北京大禹智芯科技有限公司 Service flow management system and method
CN115242723B (en) * 2022-07-20 2024-03-01 中国银行股份有限公司 Cross-system current limiting method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209030A (en) * 2011-05-19 2011-10-05 中兴通讯股份有限公司 Service traffic splitting method, device and system
CN102487530A (en) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 Data distribution method and system
CN105515884A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Method and apparatus for counting flow
CN109344045A (en) * 2018-07-27 2019-02-15 阿里巴巴集团控股有限公司 Operation system switching method, device, electronic equipment and storage medium
WO2019184727A1 (en) * 2018-03-26 2019-10-03 华为技术有限公司 Service upgrade management method, apparatus, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056333A (en) * 2009-11-05 2011-05-11 中国移动通信集团河南有限公司 WAP (wireless application protocol) gateway, service processing method thereof and WAP proxy server
CN103391299B (en) * 2012-05-08 2016-09-28 深圳市腾讯计算机系统有限公司 Load-balancing method and SiteServer LBS
CN105898794B (en) * 2016-04-08 2019-07-26 努比亚技术有限公司 Data transmission device and method
CN107734017B (en) * 2017-09-30 2020-12-15 平安科技(深圳)有限公司 Data service method and system
CN108491267B (en) * 2018-03-13 2022-02-08 百度在线网络技术(北京)有限公司 Method and apparatus for generating information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487530A (en) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 Data distribution method and system
CN102209030A (en) * 2011-05-19 2011-10-05 中兴通讯股份有限公司 Service traffic splitting method, device and system
CN105515884A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Method and apparatus for counting flow
WO2019184727A1 (en) * 2018-03-26 2019-10-03 华为技术有限公司 Service upgrade management method, apparatus, and storage medium
CN109344045A (en) * 2018-07-27 2019-02-15 阿里巴巴集团控股有限公司 Operation system switching method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111431818A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US11743699B2 (en) Method of discovering services provided by a network repository function
CN111431818B (en) Cross-domain request flow distribution method and device, storage medium and computer equipment
EP3968702A1 (en) Communication method and apparatus, entity and computer readable storage medium
EP3327992A1 (en) Method of selecting network slice and system utilizing same
US11070433B2 (en) Network function NF management method and NF management device
EP2590382B1 (en) Method and apparatus for tracking device management data changes
CN103781055A (en) Data downloading method and associated device
CN108243631B (en) Network access method and equipment
CN101925158A (en) System and method for obtaining number detail
CN112583880A (en) Server discovery method and related equipment
CN105224541A (en) The uniqueness control method of data, information storage means and device
CN110830492B (en) Method and system for mutually scheduling edge applications based on CoreDNS registration service
CN112104680B (en) Method, device and equipment for determining edge application and storage medium
CN112150030A (en) Account management method based on multiple units and multiple identities, terminal equipment and storage medium
CN112788518A (en) Location service processing method and related equipment
CN108667647B (en) Method and device for setting device parameters and server
CN112188591B (en) Network access method, device, computer equipment and storage medium
CN114157720A (en) Method, device, electronic equipment and medium for processing service request
CN111163237B (en) Call service flow control method and related device
WO2016131257A1 (en) Method and device for information storage, acquisition, and processing
CN110545333B (en) Message processing method and device and network system
US20140372610A1 (en) Core network and access point for filtering information, and information filtering method thereof
JP2021101501A (en) Device management device, device management method, and program
CN117520004A (en) Number determining method, device and storage medium
CN116866880A (en) User terminal management method, device, storage medium and server

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