Nothing Special   »   [go: up one dir, main page]

CN116095002A - SaaS access optimization method, device, equipment and storage medium - Google Patents

SaaS access optimization method, device, equipment and storage medium Download PDF

Info

Publication number
CN116095002A
CN116095002A CN202310365514.6A CN202310365514A CN116095002A CN 116095002 A CN116095002 A CN 116095002A CN 202310365514 A CN202310365514 A CN 202310365514A CN 116095002 A CN116095002 A CN 116095002A
Authority
CN
China
Prior art keywords
saas
transmission optimization
accessed
domain name
optimization channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310365514.6A
Other languages
Chinese (zh)
Other versions
CN116095002B (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.)
Nanling Technology Co ltd
Original Assignee
Nanling 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 Nanling Technology Co ltd filed Critical Nanling Technology Co ltd
Priority to CN202310365514.6A priority Critical patent/CN116095002B/en
Publication of CN116095002A publication Critical patent/CN116095002A/en
Application granted granted Critical
Publication of CN116095002B publication Critical patent/CN116095002B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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 SaaS access optimization method, a device, equipment and a storage medium. According to the method, the domain name of the SaaS service to be accessed is obtained according to the DNS request; inquiring an initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing a DNS request into the initial transmission optimization channel; when receiving a DNS response of an initial transmission optimization channel, acquiring a network identification address pool; obtaining a target transmission optimization channel according to a preset routing table and a network identification address pool; acquiring a construction data packet; when the target identification address of the constructed data packet is a preset address, the constructed data packet is imported into a target transmission optimization channel based on a preset routing table so as to access the service flow of the SaaS service to be accessed, and the optimized routing of the corresponding SaaS service can be completed without providing an IP address pool in advance or manually analyzing the domain name through the domain name of the SaaS service, so that the configuration of the SaaS service is simplified, and the accuracy of analysis is improved.

Description

SaaS access optimization method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of SaaS service, in particular to a SaaS access optimization method, a SaaS access optimization device, saaS access optimization equipment and a storage medium.
Background
The SD-WAN (Software Defined Wide Area Network ) system solves the problem of interconnection of sites of an enterprise. With the increasing popularity of SaaS (Software-as-a-Service) services, business traffic of enterprise access to the SaaS is increasing, and as the SaaS business is generally distributed in each cloud and the clouds are located in different geographic locations, problems of slow access to the SaaS Service by enterprise sites, poor experience and the like are brought, especially when domestic enterprise sites access to the SaaS located in overseas clouds, or overseas enterprise sites access to the SaaS located in domestic clouds, the access experience is poor due to congestion of an international network outlet of an operator, and therefore optimization of the SaaS access Service is required.
Optimizing transmission paths for different SaaS services is the best way to accelerate the SaaS services, and conventional solutions specify different optimized transmission channels at the enterprise egress routers according to different destination IP addresses (Internet Protocol Address, internet protocol addresses). However, most SaaS services provide domain names instead of IP addresses, in order to obtain an IP address corresponding to a domain name of the SaaS service, a local resolution of the domain name is generally adopted to obtain an IP address pool or an IP address pool provided by a SaaS service provider is used, which causes the following problems: (1) Local resolution uses a local domain name resolution server, the results of which may not be desired or optimal due to CDN (Content Delivery Network ) or dynamic DNS (Domain Name System, domain name system) resolution. (2) The IP address corresponding to the SaaS service domain name cannot be obtained in real time. The corresponding IP of the SaaS service based on the domain name may change, and once the corresponding IP is changed, the configuration needs to be updated, which often causes problems in use and can not be found until a fault is reported. These problems all result in the SaaS service access failing to properly import the designated optimized transmission channel, thereby affecting the experience of the SaaS service access.
Disclosure of Invention
The invention mainly aims to provide a SaaS access optimization method, a device, equipment and a storage medium, and aims to solve the technical problem that the SaaS service access optimization effect is poor in the prior art.
In order to achieve the above purpose, the present invention provides a SaaS access optimization method, which includes the following steps:
acquiring a domain name of the SaaS service to be accessed according to the DNS request;
inquiring an initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request into the initial transmission optimization channel;
when receiving the DNS response of the initial transmission optimization channel, acquiring a network identification address pool;
obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool;
obtaining a construction data packet, wherein the construction data packet comprises a target identification address;
and when the target identification address of the constructed data packet is a preset address, importing the constructed data packet into the target transmission optimization channel based on the preset routing table so as to access the service flow of the SaaS service to be accessed.
Optionally, before the obtaining the target transmission optimization channel according to the preset routing table and the network identification address pool, the method further includes:
acquiring original network identification address pool data and routing data;
obtaining route next-hop data according to the route data;
and establishing a first mapping relation between the network identification address pool and the route next hop according to the original network identification address pool data and the route next hop data to obtain a preset routing table.
Optionally, the obtaining the target transmission optimization channel according to the preset routing table and the network identifier address pool includes:
inquiring a preset routing table based on the network identification address pool to obtain a next route hop corresponding to the network identification address pool;
and taking the route next hop as a target transmission optimization channel.
Optionally, when the target identifier address of the configuration data packet is a preset address, the importing the configuration data packet into the target transmission optimization channel based on the preset routing table to access the service traffic of the SaaS service to be accessed includes:
receiving the construction data packet and analyzing the construction data packet;
obtaining a target identification address of the construction data packet according to the analysis result;
when the target identification address of the construction data packet is the address in the network identification address pool, determining that the target identification address of the construction data packet is a preset address;
taking the route next hop corresponding to the network identification address pool as a target transmission optimization channel based on the preset routing table;
and importing the constructed data packet into the target transmission optimization channel, and accessing the service flow of the SaaS service to be accessed through the target transmission optimization channel.
Optionally, before the querying the initial transmission optimization channel of the SaaS service to be accessed according to the domain name, the method further includes:
acquiring original SaaS service data to be accessed and original transmission optimization channel data;
obtaining the domain name of the SaaS service to be accessed according to the original SaaS service data to be accessed;
setting a transmission optimization channel corresponding to the SaaS service to be accessed in the original transmission optimization channel data based on the domain name of the SaaS service to be accessed;
and establishing a second mapping relation between the domain name of the SaaS service to be accessed and the transmission optimization channel.
Optionally, the querying the initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request to the initial transmission optimization channel includes:
inquiring a transmission optimization channel corresponding to the domain name according to the second mapping relation and the domain name;
and taking the transmission optimization channel as an initial transmission optimization channel of the SaaS service to be accessed, and importing the DNS request into the initial transmission optimization channel.
Optionally, the obtaining the network identifier address pool when receiving the DNS reply of the initial transmission optimization channel includes:
detecting whether domain name response exists in the DNS response when the DNS response of the initial transmission optimization channel is received;
and when detecting that the domain name response exists in the DNS response, extracting a network identification address pool from the domain name response.
In addition, in order to achieve the above object, the present invention also provides a SaaS access optimization device, which includes:
the acquisition module is used for acquiring the domain name of the SaaS service to be accessed according to the DNS request;
the inquiry module is used for inquiring the initial transmission optimization channel of the SaaS service to be accessed according to the domain name and importing the DNS request into the initial transmission optimization channel;
the receiving module is used for acquiring a network identification address pool when receiving the DNS response of the initial transmission optimization channel;
the acquisition module is further used for obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool;
the acquisition module is further used for acquiring a construction data packet, wherein the construction data packet comprises a target identification address;
and the access module is used for importing the constructed data packet into the target transmission optimization channel based on the preset routing table when the target identification address of the constructed data packet is a preset address so as to access the service flow of the SaaS service to be accessed.
In addition, to achieve the above object, the present invention also proposes a SaaS access optimization apparatus, including: the system comprises a memory, a processor and a SaaS access optimization program stored on the memory and capable of running on the processor, wherein the SaaS access optimization program is configured to realize the steps of the SaaS access optimization method.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a SaaS access optimization program, which when executed by a processor, implements the steps of the SaaS access optimization method as described above.
According to the method, the domain name of the SaaS service to be accessed is obtained according to the DNS request; inquiring an initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request into the initial transmission optimization channel; when receiving the DNS response of the initial transmission optimization channel, acquiring a network identification address pool; obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool; obtaining a construction data packet, wherein the construction data packet comprises a target identification address; when the target identification address of the construction data packet is a preset address, the construction data packet is imported into the target transmission optimization channel based on the preset routing table so as to access the service flow of the SaaS service to be accessed, and the optimized routing of the corresponding SaaS service can be completed by acquiring the domain name of the SaaS service without providing an IP address pool in advance or manually resolving the domain name, so that the configuration of the SaaS service is simplified, the problem of updating the IP address pool is solved, and the DNS request also passes through the obtained target transmission optimization channel, thereby improving the resolving accuracy.
Drawings
FIG. 1 is a schematic structural diagram of a SaaS access optimization device of a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of the SaaS access optimization method of the present invention;
FIG. 3 is a flowchart of a second embodiment of the SaaS access optimization method of the present invention;
FIG. 4 is a flowchart of a third embodiment of the SaaS access optimization method of the present invention;
FIG. 5 is a flowchart of a fourth embodiment of the SaaS access optimization method of the present invention;
FIG. 6 is a diagram illustrating a relationship between a domain name and a transmission optimization channel and an egress router in an embodiment of the SaaS access optimization method of the present invention;
fig. 7 is a block diagram of a first embodiment of the SaaS access optimization device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a SaaS access optimization device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the SaaS access optimization device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 does not constitute a limitation of the SaaS access optimization device, and may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a SaaS access optimization program may be included in the memory 1005 as one type of storage medium.
In the SaaS access optimization device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the SaaS access optimization device of the present invention may be provided in the SaaS access optimization device, where the SaaS access optimization device calls the SaaS access optimization program stored in the memory 1005 through the processor 1001, and executes the SaaS access optimization method provided by the embodiment of the present invention.
The embodiment of the invention provides a SaaS access optimization method, and referring to FIG. 2, FIG. 2 is a flow chart of a first embodiment of the SaaS access optimization method.
In this embodiment, the SaaS access optimization method includes the following steps:
step S10: and acquiring the domain name of the SaaS service to be accessed according to the DNS request.
It should be noted that, the execution body of the embodiment is a SaaS access optimized router, and may be other devices that may implement the same or similar functions, which is not limited in this embodiment, and the SaaS access optimized router is described as an example in this embodiment.
In an implementation, the DNS (Domain Name server, domain name service) request is sent by the user host, and the router may determine the domain name to access the SaaS service according to the sending of the user host.
Specifically, obtaining the domain name of the SaaS service to be accessed according to the DNS request specifically includes: when receiving the SaaS service request, determining to-be-accessed SaaS service; and when a DNS request sent by a user host is received, acquiring the domain name of the SaaS service to be accessed according to the DNS request.
It should be understood that the SaaS service request is initiated by a user at the back end of the enterprise exit router, and when the user needs to access the SaaS service, the SaaS service request is initiated, so that the SaaS service that the user needs to access, i.e. the SaaS service to be accessed, can be determined according to the SaaS service request. After the user sends the SaaS service request, the user host initiates a DNS request according to the SaaS service to be accessed, so that the IP address of the SaaS service to be accessed can be inquired through the DNS request, and when the exit router receives the DNS request sent by the user host, the domain name of the SaaS service to be accessed can be read out according to the DNS request.
Step S20: and inquiring the initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request into the initial transmission optimization channel.
It should be understood that a mapping relationship is established between the domain name and the transmission optimization channel of the SaaS service to be accessed, and the related transmission optimization channel can be configured in advance according to the domain name.
In this embodiment, for example, a transmission optimization channel of a SaaS service to be accessed with a domain name of a.com is set as an optimization channel 1, a transmission optimization channel of a SaaS service to be accessed with a domain name of b.com is set as an optimization channel 2, and the like, which is not limited in this embodiment, and a mapping relationship between the domain name and the transmission optimization channel of the SaaS service to be accessed is established, so that the transmission optimization channel of the SaaS service to be accessed can be quickly queried according to the domain name, and is used as an initial transmission optimization channel of the SaaS service to be accessed, and meanwhile, a received DNS request is imported into the initial transmission optimization channel.
Step S30: and when the DNS response of the initial transmission optimization channel is received, acquiring a network identification address pool.
It should be noted that, after the DNS request is led into the initial transmission optimization channel, the egress router monitors the DNS response in the initial transmission optimization channel in real time, and when the DNS response of the initial transmission optimization channel is received, the network identification address pool can be obtained according to the DNS response of the initial transmission optimization channel, where the network identification address pool is an IP address pool IP1, IP 1= [ IP1, IP2, ].
Further, the step of acquiring the network identifier address pool when the DNS reply of the initial transmission optimization channel is received specifically includes: detecting whether domain name response exists in the DNS response when the DNS response of the initial transmission optimization channel is received; and when detecting that the domain name response exists in the DNS response, extracting a network identification address pool from the domain name response.
It should be understood that when the egress router receives the DNS reply of the initial transmission optimization channel, it needs to determine whether there is a domain name reply according to the DNS reply, and when the egress router detects that there is a domain name reply, it parses the domain name reply, and extracts the network identifier address pool from the domain name reply. When the exit router receives the DNS response of the initial transmission optimization channel, resolving the DNS response to obtain CNAME (alias), then initiating a DNS request to the CNAME again, and monitoring the DNS response of the CNAME at the same time, thereby extracting a network identification address pool according to the DNS response of the CNAME.
Step S40: and obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool.
In this embodiment, the preset routing table is a mapping relationship table between a network identifier address pool and a target transmission optimization channel, which are established in advance, and the final target transmission optimization channel can be obtained according to the preset routing table and the network identifier address pool.
Step S50: and obtaining a construction data packet, wherein the construction data packet comprises a target identification address.
After receiving DNS response returned by the exit router, the user host constructs a data packet with the destination address as the destination identification address.
For example, a packet with a destination address ip1 is constructed, where ip1 belongs to the network identifier address pool. And after the user host computer is constructed, obtaining a constructed data packet, and sending the constructed data packet to the port router.
Step S60: and when the target identification address of the constructed data packet is a preset address, importing the constructed data packet into the target transmission optimization channel based on the preset routing table so as to access the service flow of the SaaS service to be accessed.
It should be understood that, after the egress router receives the configuration data packet sent by the user host, the configuration data packet may be parsed, a target identifier address of the configuration data packet may be determined, and whether the target identifier address of the configuration data packet is a preset address is determined, where the preset address is set in advance, for example, ip1 in the network identifier address pool, and when the target identifier address is the preset address, the configuration data packet may be imported into the target transmission optimization channel according to the preset routing table, so as to access the traffic flow of the SaaS service to be accessed.
According to the embodiment, a domain name of a SaaS service to be accessed is obtained according to a DNS request; inquiring an initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request into the initial transmission optimization channel; when receiving the DNS response of the initial transmission optimization channel, acquiring a network identification address pool; obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool; obtaining a construction data packet, wherein the construction data packet comprises a target identification address; when the target identification address of the construction data packet is a preset address, the construction data packet is imported into the target transmission optimization channel based on the preset routing table so as to access the service flow of the SaaS service to be accessed, and the optimized routing of the corresponding SaaS service can be completed by acquiring the domain name of the SaaS service without providing an IP address pool in advance or manually resolving the domain name, so that the configuration of the SaaS service is simplified, the problem of updating the IP address pool is solved, and the DNS request also passes through the obtained target transmission optimization channel, thereby improving the resolving accuracy.
Referring to fig. 3, fig. 3 is a flow chart of a second embodiment of the SaaS access optimization method of the present invention.
Based on the above-mentioned first embodiment, the SaaS access optimization method of this embodiment further includes, before the step S40:
step SA1: and acquiring the original network identification address pool data and the routing data.
It should be noted that, the original network identification address pool data is a large amount of network identification address pool data collected in the earlier stage, and the routing data is a large amount of collected routing data.
Step SA2: and obtaining the next hop data of the route according to the route data.
In a specific implementation, after the route data is collected, a route next hop of each route can be obtained according to each route in the route data, so that route next hop data is obtained in a summarizing mode.
Step SA3: and establishing a first mapping relation between the network identification address pool and the route next hop according to the original network identification address pool data and the route next hop data to obtain a preset routing table.
It should be understood that after the original network identification address pool data and the route next hop data are obtained, a mapping relationship between the network identification address pool and the route next hop, that is, a first mapping relationship, may be established according to the original network identification address pool data and the route next hop data, so as to obtain a preset routing table that characterizes the relationship between the network identification address pool and the route next hop. The first mapping relation is dynamically generated according to the original network identification address pool data and the route next hop data.
Specifically, after the preset routing table is established, the next route hop corresponding to the different network identifier address pools can be obtained by querying the preset routing table, and the step of obtaining the target transmission optimization channel according to the preset routing table and the network identifier address pools specifically includes: obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool; inquiring a preset routing table based on the network identification address pool to obtain a next route hop corresponding to the network identification address pool; and taking the route next hop as a target transmission optimization channel.
After a preset routing table is queried according to the network identification address pool, a next route jump corresponding to the network identification address pool as a target address can be obtained, and the next route jump is used as an optimal transmission optimization channel, namely a target transmission optimization channel. And constructing a routing table to enable a next hop of the route corresponding to the network identification address pool to be used as a target transmission optimization channel.
The embodiment obtains the original network identification address pool data and the routing data; obtaining route next-hop data according to the route data; and establishing a first mapping relation between the network identification address pool and the route next hop according to the original network identification address pool data and the route next hop data to obtain a preset route table, modifying the corresponding route table through the corresponding relation between the record domain and the IP, so that the destination address is the route next hop of the network identification address pool and is the optimized channel, and improving the optimized effect.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the SaaS access optimization method of the present invention.
Based on the first and second embodiments, step S60 of the SaaS access optimization method of the present embodiment specifically includes:
step S601: and receiving the construction data packet and analyzing the construction data packet.
Step S602: and obtaining the target identification address of the construction data packet according to the analysis result.
It should be understood that the destination identifier is included in the configuration data packet, so that after the egress router receives the configuration data packet sent by the user host, the configuration data packet may be parsed, so that the destination identifier of the configuration data packet may be obtained according to the parsing result.
Step S603: and when the target identification address of the construction data packet is the address in the network identification address pool, determining the target identification address of the construction data packet as a preset address.
In a specific implementation, when the destination identification address of the construction data packet is an address in the network identification address pool, the destination identification address of the construction data packet is determined to be a preset address. For example, if the destination identifier address of the constructed data packet is IP1, and IP1 belongs to the network identifier address pool IP1, it is determined that the destination identifier address of the constructed data packet is a preset address.
Step S604: and taking the route next hop corresponding to the network identification address pool as a target transmission optimization channel based on the preset routing table.
It should be understood that when the destination identifier address of the constructed data packet is a preset address, a route next hop corresponding to the destination identifier address may be obtained according to the constructed preset routing table, so that the route next hop is used as the destination transmission optimization channel.
Step S605: and importing the constructed data packet into the target transmission optimization channel, and accessing the service flow of the SaaS service to be accessed through the target transmission optimization channel.
After determining the optimal transmission optimization channel, the configuration data packet is imported into the target transmission optimization channel, so that the configuration data packet can be transmitted, and the service traffic of the SaaS service to be accessed can be accessed through the target transmission optimization channel.
The embodiment analyzes the construction data packet by receiving the construction data packet; obtaining a target identification address of the construction data packet according to the analysis result; when the target identification address of the construction data packet is the address in the network identification address pool, determining that the target identification address of the construction data packet is a preset address; taking the route next hop corresponding to the network identification address pool as a target transmission optimization channel based on the preset routing table; and importing the construction data packet into the target transmission optimization channel, accessing the service flow of the SaaS service to be accessed through the target transmission optimization channel, and modifying a corresponding routing table to enable the next hop of the reason of the target address IP to be the final optimization channel so as to improve the optimization effect of the SaaS access.
Referring to fig. 5, fig. 5 is a flowchart of a fourth embodiment of the SaaS access optimization method according to the present invention.
Based on the above first embodiment, the SaaS access optimization method of this embodiment further includes, before the step S20:
step S11: and acquiring the original SaaS service data to be accessed and the original transmission optimization channel data.
It should be noted that, the original SaaS service data to be accessed is different types of SaaS service data to be accessed, for example, the original SaaS service data to be accessed includes a SaaS service to be accessed with an access domain name of a.com, a SaaS service to be accessed with an access domain name of b.com, a SaaS service to be accessed with an access domain name of c.com, and the like, which is not limited in this embodiment. The original transmission optimization channel data refers to transmission optimization channels configured for different SaaS service data to be accessed, for example, the transmission optimization channel data configured for the SaaS service to be accessed with the access domain name of a.com is an optimization channel 1, the transmission optimization channel data configured for the SaaS service to be accessed with the access domain name of b.com is an optimization channel 2, and the like. As shown in fig. 6, fig. 6 is a graph of the relationship between domain names and transmission optimized channels and egress routers. According to the user demand, the transmission optimization channel with the domain name of a.com is set as an optimization channel 1, the transmission optimization channel with the domain name of b.com is set as an optimization channel 2, and the transmission optimization channels of other domain names can be set according to the user demand.
Step S12: and obtaining the domain name of the SaaS service to be accessed according to the original SaaS service data to be accessed.
In a specific implementation, after the original to-be-accessed SaaS service data is obtained, the original to-be-accessed SaaS service data can be analyzed to obtain domain names of the to-be-accessed SaaS services.
Step S13: setting a transmission optimization channel corresponding to the SaaS service to be accessed in the original transmission optimization channel data based on the domain name of the SaaS service to be accessed.
After obtaining the domain name of the SaaS service to be accessed, a transmission optimization channel corresponding to the SaaS service to be accessed can be set in the original transmission optimization channel data according to the domain name of the SaaS service to be accessed, the transmission optimization channel corresponding to the SaaS service to be accessed can be set according to the user requirement, for example, the transmission optimization channel with the domain name of a.com is set as an optimization channel 1, the transmission optimization channel with the domain name of b.com is set as an optimization channel 2, and the like, so that the transmission optimization channels corresponding to the domain names are set according to the user requirement.
Step S14: and establishing a second mapping relation between the domain name of the SaaS service to be accessed and the transmission optimization channel.
In a specific implementation, after the transmission optimization channels corresponding to the domain names are obtained, a second mapping relation between the domain names of the SaaS service to be accessed and the transmission optimization channels can be established, the transmission optimization channels corresponding to the domain names are configured according to the user requirements, and the domain names and the transmission optimization channels are in one-to-one correspondence, so that the transmission optimization channels corresponding to the domain names can be obtained according to the second mapping relation and the domain names, or the domain names corresponding to the transmission optimization channels can be obtained according to the second mapping relation and the transmission optimization channels.
Specifically, after a second mapping relationship between a domain name of a SaaS service to be accessed and a transmission optimization channel is established, querying an initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request into the initial transmission optimization channel specifically includes: inquiring a transmission optimization channel corresponding to the domain name according to the second mapping relation and the domain name; and taking the transmission optimization channel as an initial transmission optimization channel of the SaaS service to be accessed, and importing the DNS request into the initial transmission optimization channel.
It should be understood that the transmission optimization channel corresponding to the domain name can be queried according to the domain name and the second mapping relation, the transmission optimization channel obtained by query is used as the initial transmission optimization channel of the SaaS service to be accessed, and meanwhile, the DNS request is imported into the initial transmission optimization channel, so that the DNS request also passes through the initial transmission optimization channel, and the problem of inaccurate local analysis is avoided.
According to the embodiment, the SaaS service data to be accessed originally and the original transmission optimization channel data are obtained; obtaining the domain name of the SaaS service to be accessed according to the original SaaS service data to be accessed; setting a transmission optimization channel corresponding to the SaaS service to be accessed in the original transmission optimization channel data based on the domain name of the SaaS service to be accessed; the second mapping relation between the domain name of the SaaS service to be accessed and the transmission optimization channel is established, only the domain name of the SaaS service is required to be known, the network identification address pool is not required to be known in advance or obtained through local analysis, the problem that the network identification address pool is not updated timely is solved, the transmission optimization channel can be rapidly determined according to the domain name by establishing the mapping relation between the domain name and the optimization channel, and the transmission efficiency is improved.
Referring to fig. 7, fig. 7 is a block diagram illustrating a first embodiment of a SaaS access optimization device according to the present invention.
As shown in fig. 7, the SaaS access optimization device provided by the embodiment of the present invention includes:
and the obtaining module 10 is used for obtaining the domain name of the SaaS service to be accessed according to the DNS request.
And the query module 20 is configured to query the initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and import the DNS request to the initial transmission optimization channel.
And the receiving module 30 is configured to obtain a network identifier address pool when receiving the DNS reply of the initial transmission optimization channel.
The obtaining module 10 is further configured to obtain a target transmission optimization channel according to a preset routing table and the network identifier address pool.
The obtaining module 10 is further configured to obtain a configuration data packet, where the configuration data packet includes a target identifier address.
And the access module 40 is configured to, when the target identifier address of the configuration data packet is a preset address, import the configuration data packet into the target transmission optimization channel based on the preset routing table, so as to access the traffic of the SaaS service to be accessed.
According to the embodiment, a domain name of a SaaS service to be accessed is obtained according to a DNS request; inquiring an initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request into the initial transmission optimization channel; when receiving the DNS response of the initial transmission optimization channel, acquiring a network identification address pool; obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool; obtaining a construction data packet, wherein the construction data packet comprises a target identification address; when the target identification address of the construction data packet is a preset address, the construction data packet is imported into the target transmission optimization channel based on the preset routing table so as to access the service flow of the SaaS service to be accessed, and the optimized routing of the corresponding SaaS service can be completed by acquiring the domain name of the SaaS service without providing an IP address pool in advance or manually resolving the domain name, so that the configuration of the SaaS service is simplified, the problem of updating the IP address pool is solved, and the DNS request also passes through the obtained target transmission optimization channel, thereby improving the resolving accuracy.
In an embodiment, the query module 20 is further configured to obtain original network identifier address pool data and routing data; obtaining route next-hop data according to the route data; and establishing a first mapping relation between the network identification address pool and the route next hop according to the original network identification address pool data and the route next hop data to obtain a preset routing table.
In an embodiment, the obtaining module 10 is further configured to query a preset routing table based on the network identifier address pool to obtain a route next hop corresponding to the network identifier address pool; and taking the route next hop as a target transmission optimization channel.
In an embodiment, the access module 40 is further configured to receive the configuration data packet and parse the configuration data packet; obtaining a target identification address of the construction data packet according to the analysis result; when the target identification address of the construction data packet is the address in the network identification address pool, determining that the target identification address of the construction data packet is a preset address; taking the route next hop corresponding to the network identification address pool as a target transmission optimization channel based on the preset routing table; and importing the constructed data packet into the target transmission optimization channel, and accessing the service flow of the SaaS service to be accessed through the target transmission optimization channel.
In an embodiment, the query module 20 is further configured to obtain original SaaS service data to be accessed and original transmission optimization channel data; obtaining the domain name of the SaaS service to be accessed according to the original SaaS service data to be accessed; setting a transmission optimization channel corresponding to the SaaS service to be accessed in the original transmission optimization channel data based on the domain name of the SaaS service to be accessed; and establishing a second mapping relation between the domain name of the SaaS service to be accessed and the transmission optimization channel.
In an embodiment, the querying module 20 is further configured to query a transmission optimization channel corresponding to the domain name according to the second mapping relationship and the domain name; and taking the transmission optimization channel as an initial transmission optimization channel of the SaaS service to be accessed, and importing the DNS request into the initial transmission optimization channel.
In an embodiment, the receiving module 30 is further configured to, when receiving a DNS reply of the initial transmission optimization channel, detect whether a domain name reply exists in the DNS reply; and when detecting that the domain name response exists in the DNS response, extracting a network identification address pool from the domain name response.
In addition, to achieve the above object, the present invention also proposes a SaaS access optimization apparatus, including: the system comprises a memory, a processor and a SaaS access optimization program stored on the memory and capable of running on the processor, wherein the SaaS access optimization program is configured to realize the steps of the SaaS access optimization method.
The SaaS access optimizing device adopts all the technical schemes of all the embodiments, so that the SaaS access optimizing device has at least all the beneficial effects brought by the technical schemes of the embodiments, and is not described in detail herein.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a SaaS access optimization program, and the SaaS access optimization program realizes the steps of the SaaS access optimization method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details which are not described in detail in the present embodiment may refer to the SaaS access optimization method provided in any embodiment of the present invention, and are not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The SaaS access optimization method is characterized by comprising the following steps of:
acquiring a domain name of the SaaS service to be accessed according to the DNS request;
inquiring an initial transmission optimization channel of the SaaS service to be accessed according to the domain name, and importing the DNS request into the initial transmission optimization channel;
when receiving the DNS response of the initial transmission optimization channel, acquiring a network identification address pool;
obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool;
obtaining a construction data packet, wherein the construction data packet comprises a target identification address;
and when the target identification address of the constructed data packet is a preset address, importing the constructed data packet into the target transmission optimization channel based on the preset routing table so as to access the service flow of the SaaS service to be accessed.
2. The SaaS defined in claim 1, wherein before the target transmission optimization channel is obtained according to the preset routing table and the network identification address pool, the method further comprises:
acquiring original network identification address pool data and routing data;
obtaining route next-hop data according to the route data;
and establishing a first mapping relation between the network identification address pool and the route next hop according to the original network identification address pool data and the route next hop data to obtain a preset routing table.
3. The SaaS defined in claim 2, wherein the obtaining the target transmission optimization channel according to the preset routing table and the network identification address pool includes:
inquiring a preset routing table based on the network identification address pool to obtain a next route hop corresponding to the network identification address pool;
and taking the route next hop as a target transmission optimization channel.
4. The SaaS defined in claim 2, wherein when the destination identifier address of the configuration data packet is a preset address, importing the configuration data packet into the destination transmission optimization channel based on the preset routing table to access the traffic of the SaaS service to be accessed, the method comprises:
receiving the construction data packet and analyzing the construction data packet;
obtaining a target identification address of the construction data packet according to the analysis result;
when the target identification address of the construction data packet is the address in the network identification address pool, determining that the target identification address of the construction data packet is a preset address;
taking the route next hop corresponding to the network identification address pool as a target transmission optimization channel based on the preset routing table;
and importing the constructed data packet into the target transmission optimization channel, and accessing the service flow of the SaaS service to be accessed through the target transmission optimization channel.
5. The SaaS recited in claim 1, wherein before querying the initial transmission optimization channel of the SaaS service to be accessed according to the domain name, the method further comprises:
acquiring original SaaS service data to be accessed and original transmission optimization channel data;
obtaining the domain name of the SaaS service to be accessed according to the original SaaS service data to be accessed;
setting a transmission optimization channel corresponding to the SaaS service to be accessed in the original transmission optimization channel data based on the domain name of the SaaS service to be accessed;
and establishing a second mapping relation between the domain name of the SaaS service to be accessed and the transmission optimization channel.
6. The SaaS recited in claim 5, wherein querying an initial transmission optimization channel of the SaaS service to be accessed according to the domain name and importing the DNS request to the initial transmission optimization channel comprises:
inquiring a transmission optimization channel corresponding to the domain name according to the second mapping relation and the domain name;
and taking the transmission optimization channel as an initial transmission optimization channel of the SaaS service to be accessed, and importing the DNS request into the initial transmission optimization channel.
7. The SaaS access optimization method according to any one of claims 1 to 6, wherein the obtaining a network identification address pool when a DNS reply of the initial transmission optimization channel is received includes:
detecting whether domain name response exists in the DNS response when the DNS response of the initial transmission optimization channel is received;
and when detecting that the domain name response exists in the DNS response, extracting a network identification address pool from the domain name response.
8. A SaaS access optimization device, characterized in that the SaaS access optimization device comprises:
the acquisition module is used for acquiring the domain name of the SaaS service to be accessed according to the DNS request;
the inquiry module is used for inquiring the initial transmission optimization channel of the SaaS service to be accessed according to the domain name and importing the DNS request into the initial transmission optimization channel;
the receiving module is used for acquiring a network identification address pool when receiving the DNS response of the initial transmission optimization channel;
the acquisition module is further used for obtaining a target transmission optimization channel according to a preset routing table and the network identification address pool;
the acquisition module is further used for acquiring a construction data packet, wherein the construction data packet comprises a target identification address;
and the access module is used for importing the constructed data packet into the target transmission optimization channel based on the preset routing table when the target identification address of the constructed data packet is a preset address so as to access the service flow of the SaaS service to be accessed.
9. A SaaS access optimization device, characterized in that the SaaS access optimization device comprises: a memory, a processor, and a SaaS access optimization program stored on the memory and executable on the processor, the SaaS access optimization program configured to implement the SaaS access optimization method of any one of claims 1 to 7.
10. A storage medium, wherein a SaaS access optimization program is stored on the storage medium, and the SaaS access optimization program, when executed by a processor, implements the SaaS access optimization method according to any one of claims 1 to 7.
CN202310365514.6A 2023-04-07 2023-04-07 SaaS access optimization method, device, equipment and storage medium Active CN116095002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310365514.6A CN116095002B (en) 2023-04-07 2023-04-07 SaaS access optimization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310365514.6A CN116095002B (en) 2023-04-07 2023-04-07 SaaS access optimization method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116095002A true CN116095002A (en) 2023-05-09
CN116095002B CN116095002B (en) 2023-06-02

Family

ID=86204860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310365514.6A Active CN116095002B (en) 2023-04-07 2023-04-07 SaaS access optimization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116095002B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259237A (en) * 2018-01-05 2018-07-06 葛晗 Network access accelerated method, cloud dns server, CE and cloud IP accelerate network system
WO2019076292A1 (en) * 2017-10-16 2019-04-25 中兴通讯股份有限公司 Management method and device, gateway control plane network element, communication system, and storage medium
WO2021004144A1 (en) * 2019-07-11 2021-01-14 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019076292A1 (en) * 2017-10-16 2019-04-25 中兴通讯股份有限公司 Management method and device, gateway control plane network element, communication system, and storage medium
CN108259237A (en) * 2018-01-05 2018-07-06 葛晗 Network access accelerated method, cloud dns server, CE and cloud IP accelerate network system
WO2021004144A1 (en) * 2019-07-11 2021-01-14 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
章勇;: "基于SaaS的校园网监控平台的设计与实现", 中国教育网络, no. 12 *

Also Published As

Publication number Publication date
CN116095002B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US7228359B1 (en) Methods and apparatus for providing domain name service based on a client identifier
US8326980B2 (en) Using DNS reflection to measure network performance
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
US8065417B1 (en) Service provider registration by a content broker
US7343399B2 (en) Apparatus and method for managing internet resource requests
CN104158919A (en) Webpage access implementation method, server and client
CN108848205B (en) CNAME domain name resolution method for distinguishing IPv4 and IPv6
US9042406B2 (en) Method for obtaining IPV6 configuration information in IPV6 transition network, system and apparatus
US20130290563A1 (en) Answer augmentation system for authoritative dns servers
US20030028671A1 (en) Method and system for two-way initiated data communication with wireless devices
CN107613037B (en) Domain name redirection method and system
CN111447304B (en) Anycast node IP address enumeration method and system for anycast recursive domain name system
US6839755B1 (en) Network peripheral server discovery method
WO2024198419A1 (en) Decentralized application access method and apparatus, electronic device and storage medium
CN114338597B (en) Network access method and device
CN116095002B (en) SaaS access optimization method, device, equipment and storage medium
CN112887441B (en) Domain name resolution method, terminal and DNS (Domain name Server)
CN104079682A (en) Address translation method and device based on domain name system (DNS)
US20040153502A1 (en) Enhanced DNS server
CN110677512B (en) Address resolution method and device
CN105429880B (en) The network equipment and its method for carrying out routing forwarding
CN112532765B (en) Network access method and system thereof
KR100342107B1 (en) Methods for deciding Internet address groups distinguished by assigned organizations or locations and for resolving the geographical information for each address group, which are intended to set up Internet address supplementary system and its applications
US20020065936A1 (en) Multi-platform application
CN107592374B (en) Correction method and system for domain name error resolution

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