WO2018192241A1 - 实现网间互通的服务器部署结构及方法 - Google Patents

实现网间互通的服务器部署结构及方法 Download PDF

Info

Publication number
WO2018192241A1
WO2018192241A1 PCT/CN2017/115722 CN2017115722W WO2018192241A1 WO 2018192241 A1 WO2018192241 A1 WO 2018192241A1 CN 2017115722 W CN2017115722 W CN 2017115722W WO 2018192241 A1 WO2018192241 A1 WO 2018192241A1
Authority
WO
WIPO (PCT)
Prior art keywords
node server
server
request
read request
data corresponding
Prior art date
Application number
PCT/CN2017/115722
Other languages
English (en)
French (fr)
Inventor
丁凯
Original Assignee
深圳创维数字技术有限公司
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 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2018192241A1 publication Critical patent/WO2018192241A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present disclosure relates to the field of intelligent terminal technologies, for example, to a server deployment structure and inter-network communication method for implementing inter-network communication.
  • the server room is mainly deployed in the following two modes: one is a CDN (Content Delivery Network) deployment, and the other is a BGP (Border Gateway Protocol) room deployment.
  • the CDN deployment can redirect the user's request to the nearest service node based on the network traffic and the connection of multiple nodes, load status, and distance and response time to the user, thus achieving user and business server friendliness. interconnected.
  • the BGP is a routing protocol used to connect to a separate system on the Internet.
  • BGP is mainly used for the interconnection between autonomous systems (AS).
  • BGP Internet Data Center
  • CNNIC China Internet Information Center
  • APNIC Advanced Network Information Center
  • the present disclosure provides a server deployment structure and method for implementing inter-network communication, and solves the problem of high server deployment cost in the related art.
  • a server deployment structure that implements inter-network communication including:
  • the central node server configured to store data transmitted by the client, and synchronize the data to each Node server
  • the plurality of node servers are configured to be in one-to-one correspondence with the plurality of network operators of the access center node server, and both communicate with the user end, and the user end accesses through the network operator corresponding to the node server.
  • each of the node servers includes a plurality of web servers, and the plurality of web servers are connected in parallel and are connected to the central node server.
  • each of the node servers further includes a load balancing server configured to control the load of each web server, the load balancing servers being respectively connected to each web server.
  • the central node server is a border gateway protocol BGP central node server.
  • the central node server caches data input by the client by using a Redis cache method.
  • the central node server synchronizes data to each node server to synchronize data synchronized by each node server.
  • a method for interworking between networks including:
  • the method further includes: determining, by the type of operation of the access request, when the access request is a read request, the discovered node server responding to the access The requesting, processing the data corresponding to the access request, including: the found node server responding to the read request, and feeding back data corresponding to the read request to the client.
  • the searched node server in response to the read request, feeds back data corresponding to the read request to the user end, including:
  • the discovered node server is responsible for the equalization server to receive the read request, and reads the load status of the plurality of web servers included in the found node server;
  • the target web server responds to the read request to feed back data corresponding to the read request to the client.
  • the searched node server in response to the read request, feed back data corresponding to the read request to the client, including: when the data corresponding to the read request is cached in the searched When the node server is in the node, the found node server feeds back data corresponding to the read request to the client.
  • the searched node server in response to the read request, feeds back data corresponding to the read request to the user end, including:
  • the searched node server When the data corresponding to the read request is only cached in the central node server, the searched node server sends a request for acquiring data corresponding to the read request to the central node server, and the central node server according to the request Determining data corresponding to the read request, and transmitting data corresponding to the read request to the found node server;
  • the found node server feeds back data corresponding to the read request to the client.
  • the data corresponding to the read request is cached in the central node server by using a Redis cache technology.
  • sending the data corresponding to the read request to the discovered node server further includes:
  • the data corresponding to the read request is synchronized to each of the node servers in a master-slave replication manner.
  • the method further includes: determining a type of operation of the access request; and determining, when the access request is a write request, a time limit type of the write request, where The time limit type includes real-time operation and non-real-time operation;
  • the processing the data corresponding to the access request includes:
  • the method further includes:
  • the processing the data corresponding to the access request includes: caching data corresponding to the write request to a central node server, where the central node server and the network The node server connection corresponding to the carrier.
  • the method further includes:
  • the found node server synchronizes the data to a central node server such that the central node server synchronizes the data to each of the preset node servers.
  • the acquiring, by the network operator corresponding to the access request includes:
  • the domain name system parsing method is used to determine the network operator corresponding to the access request.
  • a computer readable storage medium storing computer executable instructions executable Instructions are used to perform the above methods.
  • the central node server only needs to communicate with the node server, which reduces the requirement of bandwidth resources, thereby saving costs.
  • FIG. 1 is a schematic structural diagram of a server deployment structure for implementing inter-network communication according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for inter-network communication provided by this embodiment.
  • FIG. 3 is a flowchart of another inter-network interworking method provided by this embodiment.
  • FIG. 4 is a flowchart of another inter-network interworking method provided by this embodiment.
  • the terminal device can be implemented in various forms.
  • the terminal described in this embodiment may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, and the like.
  • Mobile terminals such as fixed terminals such as digital TVs, desktop computers, and the like.
  • the configuration according to the present embodiment can be applied to a fixed type of terminal, in addition to elements particularly for mobile purposes.
  • FIG. 1 is a schematic structural diagram of a server deployment structure for implementing inter-network communication according to an embodiment of the present invention.
  • the server deployment structure includes: a central node server 100 and a plurality of node servers 200 each connected to the central node server 100, the central node server 100 is configured to store data transmitted by a user, and synchronize the data to Each of the node servers 200 has a one-to-one correspondence with the network operators of the access center node server 100, and each communicates with a client that accesses the network operator corresponding to the node server 200.
  • the user terminal only needs to communicate with the node server 200 corresponding to the network operator of the user end to implement high-speed access of the user end.
  • the central node server 100 only needs to communicate with the node server 200, which reduces the overhead of network resources, thereby saving costs.
  • the central node server 100 may be a BGP data center, and the BGP data center uses a Redis cache method to cache data, and the data cached by the BGP data center is the same. Steps to the node server 200, so that the client can obtain corresponding data by performing a read operation on the node server 200 corresponding to the client.
  • the central node server 100 synchronizes data to each node server 200, respectively, and the synchronized data is consistent. That is, the plurality of node servers 200 are respectively connected to the central node server 100, and the plurality of node servers 200 are connected in parallel without communicating with each other.
  • Each of the node servers 200 includes a plurality of web (website) servers 201 and a load balancing server 202, each of which is connected to the node server 200 and the load balancing server 202, respectively. That is, the plurality of web servers 201 are connected in parallel to form a web server 201 cluster, the web server 201 cluster and the load balancing server 202 constitute a node server 200, and the load balancing server 202 is used to control each web.
  • the load of the server 201 can ensure the access speed of each web server 201, thereby improving the access speed of the client.
  • the number of the node servers 200 may be the same as the number of network operators that receive the central node server 100. Moreover, one network operator corresponds to one node server 200, which is only used to process access by users of the network of its corresponding network operator. That is to say, there is a one-to-one correspondence between the plurality of node servers 200 and the network operators of the access center node server 100. For example, there are three network operators that receive the central node server 100, namely China Network, China Telecom, and China Railcom.
  • the node server 200 is also three, which are recorded as a first node server, a second node server, and a third node server, and the first node server, the second node server, and the third node server respectively
  • the Chinese network, China Telecom, and one of China Railcom correspond to each other, and each node server 200 corresponds to a different carrier.
  • the first node server corresponds to China Netcom
  • the second node server corresponds to China Telecom
  • the third node device corresponds to China Railcom.
  • the client accesses the server structure through China Netcom, the client communicates with the first node server corresponding to the China Netcom to read data from the first node server or write data to the first node server.
  • the first server acquires data to be read from the central node server 100 or synchronizes the write data to the central node server 100, so that the central node server 100 only needs to communicate with the node server 200, thereby reducing the overhead of network resources. Thereby saving costs.
  • This embodiment further provides an inter-network interworking method, which may be performed by the node server 200. As shown in FIG. 2, the method includes: S100-S300.
  • a DNS Domain Name System parsing method may be used to determine a network operator corresponding to the access request.
  • the network operator searches for a node server corresponding to the network operator according to the preset node server.
  • the access request may include a read request and a write request.
  • the access request is a read request, that is, the user end needs to determine data from a server structure.
  • the network operator searches for the node server corresponding to the network operator according to the network operator. This is because each node server is configured with the corresponding network operator. That is, when the network operator of the network operator corresponding to the node server is used to access the data center server, the node server processes the access.
  • the found node server responds to the read request to feed back data corresponding to the read request to the client.
  • the data corresponding to the read request may be already cached in the node server, or may be cached only in the central node server.
  • the node server feeds back the data to the client.
  • the node server sends a request for acquiring the data to the central node server, the central node server determines the data according to the request, and passes the Redis cache technology Caching is performed while synchronizing to each node server by means of master-slave replication, so that the node server feeds back the data to the client.
  • each of the node servers is a server cluster composed of multiple web servers, and each web server is connected to the central node server for accessing the network operator corresponding to the node server. deal with.
  • the node server cluster further includes a load balancing server, which is used to control the load of each web server, so that the load of each web server is balanced, thereby improving the access speed.
  • the queried node server responding to the read request to feed back the data corresponding to the read request to the user end and may include: S301-S303.
  • the searched node server is responsible for the equalization server to receive the read request, and reads the load condition of the web server included in the found node server.
  • a web server for responding to the read request is determined according to the load request, and the read request is sent to the web server.
  • the web server responds to the read request to feed back data corresponding to the read request to the client.
  • the access request in the inter-network interworking method may be a write request.
  • the inter-network interworking method may include: S410-S440.
  • the network operator searches for a corresponding node server in the preset node server.
  • the write request is a request to write data to the central node server.
  • the write request may include a real-time write request and a non-real-time write request; the real-time write request means that the write request needs to respond within a preset time, and the non-real-time write request refers to the write request may be Respond over a longer period of time.
  • the preset time may be preset, such as 20 seconds or the like.
  • the time limit type of the write request may also be determined according to the type of the write request, for example, the write request is a write request of a bank financial transaction.
  • a database of real-time operations may be established in advance, and when a write request is received, it is determined whether the write request is protected in the database and the time limit type of the write request is determined.
  • step S430 the method further includes:
  • the found node server synchronizes the data to a central node server, so that the central node server synchronizes the data to each node server.
  • the found node server synchronizes the data to a central node server that synchronizes the data to each node server to synchronize data within each node server.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the method for inter-network communication according to the above embodiments.
  • the disclosed system and method can be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not carried out.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in this embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform part of the steps of the method described in this embodiment.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), and a magnetic memory.
  • the method for inter-network communication enables the central node server to communicate only with the node server, thereby reducing the requirement of bandwidth resources, thereby saving costs.

Abstract

一种实现网间互通的服务器部署结构,包括:中心节点服务器以及均与所述中心节点服务器相连接的多个节点服务器,所述中心节点服务器设置为存储用户端传输的数据,并将所述数据同步至每个节点服务器;所述多个节点服务器设置为:与接入中心节点服务器的多个网络运营商一一对应,并均与用户端通讯,所述用户端通过所述节点服务器对应的网络运营商进行访问。

Description

实现网间互通的服务器部署结构及方法 技术领域
本公开涉及智能终端技术领域,例如涉及一种实现网间互通的服务器部署结构及网间互通方法。
背景技术
随着网络运营商的增多,网络运营商之间的竞争也越来越来激烈。这样导致在不同网络运营商服务器互访时,网络访问速度慢。为了解决该技术问题,服务器机房主要采用如下两种部署:一种是CDN(Content Delivery Network,内容分发网络)部署,另一种是BGP(Border Gateway Protocol,边界网关协议)机房部署。CDN部署能够实时地根据网络流量和多个节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上,从而达成用户和业务服务器的友好互联。所述BGP是用来连接Internet上的独立系统的路由选择协议。BGP主要用于互联网AS(autonomous system,自治系统)之间的互联,BGP的最主要功能在于控制路由的传播和选择最好的路由。中国联通、中国电信、中国铁通和一些大的民营IDC运营商都具有AS号,全国各大网络运营商多数都是通过BGP与自身的AS号来实现多线互联的。使用此方案来实现多线路互联,IDC(互联网数据中心,Internet Data Center)需要在CNNIC(中国互联网信息中心)或APNIC(亚太网络信息中心)申请自己的IP地址段和AS号,然后通过BGP协议将此段IP地址广播到其它的网络运营商的网络中。使用BGP协议互联后,网络运营商的所有骨干路由设备将会判断到IDC机房IP段的最佳路由,以保证不同网络运营商的用户的高速访问。但是,对于上述两种服务器的部署结构均存在部署成本高的问题。
发明内容
本公开提供了一种实现网间互通的服务器部署结构及方法,解决了相关技术中服务器部署成本高的问题。
一种实现网间互通的服务器部署结构,包括:
中心节点服务器以及均与所述中心节点服务器相连接的多个节点服务器,所述中心节点服务器设置为存储用户端传输的数据,并将所述数据同步至每个 节点服务器;
所述多个节点服务器设置为:与接入中心节点服务器的多个网络运营商一一对应,并均与用户端通讯,所述用户端通过所述节点服务器对应的网络运营商进行访问。
可选地,所述每个节点服务器均包含多个web服务器,所述多个web服务器并联并均与所述中心节点服务器相连接。
可选地,所述每个节点服务器还包括设置为控制每个web服务器负载的负载均衡服务器,所述负载均衡服务器分别与每个web服务器相连接。
可选地,所述中心节点服务器为边界网关协议BGP中心节点服务器。
可选地,所述中心节点服务器通过Redis缓存方法缓存用户端输入的数据。
可选地,所述中心节点服务器同步至每个节点服务器的数据一致,以同步每个节点服务器缓存的数据。
一种网间互通的方法,包括:
当接收到用户端的访问请求时,获取所述访问请求对应的网络运营商;
根据所述网络运营商,在预设节点服务器中查找所述网络运营商对应的节点服务器,以使查找到的节点服务器响应所述访问请求,并对所述访问请求对应的数据进行处理。
可选地,在所述接收到用户端的访问请求后,还包括:对所述访问请求的操作类型进行判断;当所述访问请求为读请求时,所述查找到的节点服务器响应所述访问请求,对所述访问请求对应的数据进行处理,包括:查找到的节点服务器响应所述读请求,将所述读请求对应的数据反馈至所述用户端。
可选地,所述查找到的节点服务器响应所述读请求,将所述读请求对应的数据反馈至所述用户端,包括:
查找到的节点服务器包含的负责均衡服务器接收所述读请求,并读取所述查到的节点服务器包含的多个web服务器的负载情况;
根据所述负载情况确定用于响应所述读请求的目标web服务器,并将所述读请求发送至所述目标web服务器;以及
所述目标web服务器响应所述读请求以将所述读请求对应的数据反馈至用户端。
可选地,所述查找到的节点服务器响应所述读请求,将所述读请求对应的数据反馈至所述用户端,包括:当所述读请求对应的数据缓存在所述查找到的 节点服务器内时,所述查找到的节点服务器将所述读请求对应的数据反馈给所述用户端。
可选地,所述查找到的节点服务器响应所述读请求,将所述读请求对应的数据反馈至所述用户端,包括:
当所述读请求对应的数据仅缓存在中心节点服务器时,所述查找到的节点服务器向所述中心节点服务器发送获取所述读请求对应的数据的请求,所述中心节点服务器根据所述请求确定所述读请求对应的数据,并将所述读请求对应的数据发送至所述查找到的节点服务器;以及
所述查找到的节点服务器将所述读请求对应的数据反馈至所述用户端。
可选地,所述读请求对应的数据是通过Redis缓存技术缓存在所述中心节点服务器。
可选地,将所述读请求对应的数据发送至所述查找到的节点服务器,还包括:
采用主从复制的方式将所述读请求对应的数据同步到每个所述节点服务器。可选地,在所述接收到用户端的访问请求后,还包括:对所述访问请求的操作类型进行判断;以及当所述访问请求为写请求时,判断所述写请求的时限类型,其中,所述时限类型包括实时操作和非实时操作;
当所述写请求为非实时操作时,所述对所述访问请求对应的数据进行处理,包括:
将所述写请求对应的数据缓存至所述查找到的节点服务器。
可选地,在所述判断所述写请求的时限类型之后,还包括:
当所述写请求为实时操作时,所述对所述访问请求对应的数据进行处理,包括:将所述写请求对应的数据缓存至中心节点服务器,其中,所述中心节点服务器与所述网络运营商对应的节点服务器连接。
可选地,所述将所述写请求对应的数据缓存至所述查找到的节点服务器之后,还包括:
所述查找到的节点服务器将所述数据同步至中心节点服务器,以使得所述中心节点服务器将所述数据同步至每个所述预设节点服务器。
可选地,所述获取所述访问请求对应的网络运营商,包括:
采用域名系统解析方法确定所述访问请求对应的网络运营商。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行 指令用于执行上述方法。
本实施例使得中心节点服务器仅需要与节点服务器进行通讯,降低了带宽资源的需求,从而节省了成本。
附图概述
图1为本实施例提供的实现网间互通的服务器部署结构的结构原理图。
图2为本实施例提供的网间互通方法的流程图。
图3为本实施例提供的另一网间互通方法的流程图。
图4为本实施例提供的另一网间互通方法的流程图。
具体实施方式
本实施例中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本实施例的说明,其本身并没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。
终端设备可以以各种形式来实施。例如,本实施例中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本实施方式的构造也能够应用于固定类型的终端。
请参照图1,图1为本实施例提供的实现网间互通的服务器部署结构的结构原理图。所述服务器部署结构包括:中心节点服务器100以及均与所述中心节点服务器100相连接的多个节点服务器200,所述中心节点服务器100用于存储用户传输的数据,并将所述数据同步至每个节点服务器200;所述多个节点服务器200与接入中心节点服务器100的网络运营商一一对应,并均与通过节点服务器200对应的网络运营商进行访问的用户端通讯。在本实施例中,所述用户端仅需要与该用户端的网络运营商对应的节点服务器200进行通讯,以实现所述用户端的高速访问。同时,所述中心节点服务器100仅需要与节点服务器200进行通讯,减少了网络资源的开销,进而节约了成本。
在本实施例中,所述中心节点服务器100可以为BGP数据中心,所述BGP数据中心采用Redis缓存方法缓存数据,并将所述BGP数据中心缓存的数据同 步至节点服务器200,使得所述用户端可以通过对所述用户端对应的节点服务器200进行读取操作而获取相应的数据。在实际应用中,为了使得不同网络运营商读取的数据相同,所述中心节点服务器100分别向每个节点服务器200同步数据,并且同步的数据一致。也就是说,所述多个节点服务器200分别与所述中心节点服务器100相连接,并所述多个节点服务器200并联而不相互通讯。
所述每个节点服务器200均包括多个web(网站)服务器201和一个负载均衡服务器202,所述每个web服务器201分别与节点服务器200和负载均衡服务器202相连接。也就是说,所述多个web服务器201并联构成一个web服务器201集群,所述web服务器201集群和所述负载均衡服务器202构成一个节点服务器200,所述负载均衡服务器202用于控制每个web服务器201的负载,这样可以保证每个web服务器201的访问速度,进而提高用户端的访问速度。
所述节点服务器200的个数可以与接收所述中心节点服务器100网络运营商的个数相同。并且,一个网络运营商对应一个节点服务器200,所述节点服务器200仅用于处理采用其对应的网络运营商的网络的用户端的访问。也就是说,所述多个节点服务器200与接入中心节点服务器100的网络运营商之间为一一对应的关系。例如,接收所述中心节点服务器100的网络运营商为3个,分别为中国网络、中国电信以及中国铁通。相应的,所述节点服务器200也为3个,记为第一节点服务器,第二节点服务器以及第三节点服务器,所述第一节点服务器,第二节点服务器以及第三节点服务器分别与所述中国网络、中国电信以及中国铁通中的一个运营商对应,且每个节点服务器200对应的运营商不同,例如,第一节点服务器对应中国网通,第二节点服务器对应中国电信,第三节点设备对应中国铁通。当用户端通过中国网通访问服务器结构时,所述用户端与所述中国网通对应的第一节点服务器进行通讯,以从所述第一节点服务器读取数据或者将数据写入至第一节点服务器,所述第一服务器从中心节点服务器100获取需要读取的数据或者将写入数据同步至中心节点服务器100,使得中心节点服务器100仅需要与节点服务器200进行通讯,减少了网络资源的开销,从而节约了成本。
本实施例还提供了一种网间互通方法,可以是由节点服务器200执行,如图2所示,该方法包括:S100-S300。
S100中,当接收到用户端的访问请求时,获取所述访问请求对应的网络运营商。
示例性的,可以采用DNS(Domain Name System,域名系统)解析方法确定所述访问请求对应的网络运营商。
S200中,当所述访问请求为读请求时,根据所述网络运营商在预设节点服务器中查找所述网络运营商对应的节点服务器。
本实施例中,所述访问请求可以包括读请求和写请求,在本实施例中,所述访问请求为读请求,即所述用户端需要从服务器结构确定数据。此时,根据所述网络运营商在所述预定服务器中查找所述网络运营商对应的节点服务器。这是由于每个节点服务器均预设配置了对应的网络运营商。也就是说,当采用所述节点服务器对应的网络运营商的网络访问数据中心服务器时,所述节点服务器处理所述访问。
S300中,所述查找到的节点服务器响应所述读请求以将所述读请求对应的数据反馈至用户端。
可选的,在该步骤中,所述读请求对应的数据可以是已经缓存在所述节点服务器内,也可以为仅缓存在中心节点服务器内。当所述数据缓存在所述节点服务器内时,所述节点服务器将所述数据反馈给所述用户端。当所述数据仅缓存在中心节点服务器内时,所述节点服务器向所述中心节点服务器发送获取所述数据的请求,所述中心节点服务器根据所述请求确定所述数据,并通过Redis缓存技术进行缓存,同时通过做主从复制的方式同步到每个节点服务器,以使得所述节点服务器将所述数据反馈给所述用户端。
可选的,所述每个节点服务器均为由多个web服务器构成的服务器集群,并且每个web服务器均与中心节点服务器相连接,用于对所述节点服务器对应的网络运营商的访问进行处理。并且,所述节点服务器集群还包括负载均衡服务器,所述均衡服务器用于控制每个web服务器的负载,以使得每个web服务器的负载均衡,进而提高访问速度。相应的,所述查找到的节点服务器响应所述读请求以将所述读请求对应的数据反馈至用户端,可以包括:S301-S303。
S301中,所述查找到的节点服务器包含的负责均衡服务器接收所述读请求,并读取所述查到的节点服务器包含的web服务器的负载情况。
S302中,根据所述负载请求确定用于响应所述读请求的web服务器,并将所述读请求发送至所述web服务器。
S303中,所述web服务器响应所述读请求以将所述读请求对应的数据反馈至用户端。
在本实施例的另一个实施例中,所述网间互通方法中的访问请求可以为写请求,相应的,如图3所示,所述网间互通方法可以是包括:S410-S440。
S410中,当接收到用户端的访问请求时,获取所述访问请求对应的网络运营商;
S420中,当所述访问请求为写请求时,判断所述写请求的时限类型,其中,所述时限类型包括实时操作和非实时操作;
S430中,当所述写请求为非实时操作时,根据所述网络运营商在预设节点服务器中查找其对应的节点服务器。
S440中,当所述写请求为实时操作时,将所述写请求对应的数据缓存至中心节点服务器。
本实施例中,所述写请求为向所述中心节点服务器写入数据的请求。所述写请求可以包括实时写请求和非实时写请求;所述实时写请求指的是所述写请求需要在预设时间内进行响应,所述非实时写请求指的是所述写请求可以在较长时间内进行响应。所述预设时间可以为预先设置,如20秒等。在实际应用中,还可以根据所述写请求的类型判断所述写请求的时限类型,例如,所述写请求为银行金融交易的写请求等。相应的,可以预先建立一个实时操作的数据库,当接收到写请求时,判断所述数据库内是否保护所述写请求而判定所述写请求的时限类型。
在一实施例中,在步骤S430之后还包括:
S450中,所述查找到的节点服务器将所述数据同步至中心节点服务器,以使得所述中心节点服务器将所述数据同步至每个节点服务器。
可选地,所述查找到的节点服务器将所述数据同步至中心节点服务器,中心节点服务器在将所述数据同步至每个节点服务器,以使得每个节点服务器内的数据同步。
本实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述实施例所述网间互通的方法。
在本实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不 执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本实施例所述方法的部分步骤。而前述的存储介质而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质,也可以是暂态存储介质。
工业实用性
本公开提供的网间互通的方法,使得中心节点服务器仅需要与节点服务器进行通讯,降低了带宽资源的需求,从而节省了成本。

Claims (18)

  1. 一种实现网间互通的服务器部署结构,包括:
    中心节点服务器以及均与所述中心节点服务器相连接的多个节点服务器,所述中心节点服务器设置为存储用户端传输的数据,并将所述数据同步至每个节点服务器;
    所述多个节点服务器设置为:与接入中心节点服务器的多个网络运营商一一对应,并均与用户端通讯,所述用户端通过所述节点服务器对应的网络运营商进行访问。
  2. 根据权利要求1所述实现网间互通的服务器部署结构,其中,所述每个节点服务器均包含多个web服务器,所述多个web服务器并联并均与所述中心节点服务器相连接。
  3. 根据权利要求2所述实现网间互通的服务器部署结构,其中,所述每个节点服务器还包括设置为控制每个web服务器负载的负载均衡服务器,所述负载均衡服务器分别与每个web服务器相连接。
  4. 根据权利要求1所述实现网间互通的服务器部署结构,其中,所述中心节点服务器为边界网关协议BGP中心节点服务器。
  5. 根据权利要求4所述实现网间互通的服务器部署结构,其中,所述中心节点服务器通过Redis缓存方法缓存用户端输入的数据。
  6. 根据权利要求1所述实现网间互通的服务器部署结构,其中,所述中心节点服务器同步至每个节点服务器的数据一致,以同步每个节点服务器缓存的数据。
  7. 一种网间互通的方法,包括:
    当接收到用户端的访问请求时,获取所述访问请求对应的网络运营商;
    根据所述网络运营商,在预设节点服务器中查找所述网络运营商对应的节点服务器,以使查找到的节点服务器响应所述访问请求,并对所述访问请求对应的数据进行处理。
  8. 根据权利要求7所述网间互通的方法,其中,在所述接收到用户端的访问请求后,还包括:对所述访问请求的操作类型进行判断;当所述访问请求为读请求时,所述查找到的节点服务器响应所述访问请求,对所述访问请求对应的数据进行处理,包括:查找到的节点服务器响应所述读请求,将所述读请求对应的数据反馈至所述用户端。
  9. 根据权利要求8所述网间互通的方法,其中,所述查找到的节点服务器 响应所述读请求,将所述读请求对应的数据反馈至所述用户端,包括:
    查找到的节点服务器包含的负责均衡服务器接收所述读请求,并读取所述查到的节点服务器包含的多个web服务器的负载情况;
    根据所述负载情况确定用于响应所述读请求的目标web服务器,并将所述读请求发送至所述目标web服务器;以及
    所述目标web服务器响应所述读请求以将所述读请求对应的数据反馈至用户端。
  10. 根据权利要求8所述网间互通的方法,其中,所述查找到的节点服务器响应所述读请求,将所述读请求对应的数据反馈至所述用户端,包括:当所述读请求对应的数据缓存在所述查找到的节点服务器内时,所述查找到的节点服务器将所述读请求对应的数据反馈给所述用户端。
  11. 根据权利要求8所述网间互通的方法,其中,所述查找到的节点服务器响应所述读请求,将所述读请求对应的数据反馈至所述用户端,包括:
    当所述读请求对应的数据仅缓存在中心节点服务器时,所述查找到的节点服务器向所述中心节点服务器发送获取所述读请求对应的数据的请求,所述中心节点服务器根据所述请求确定所述读请求对应的数据,并将所述读请求对应的数据发送至所述查找到的节点服务器;以及
    所述查找到的节点服务器将所述读请求对应的数据反馈至所述用户端。
  12. 根据权利要求11所述网间互通的方法,其中,所述读请求对应的数据是通过Redis缓存技术缓存在所述中心节点服务器。
  13. 根据权利要求11或12所述网间互通的方法,其中,将所述读请求对应的数据发送至所述查找到的节点服务器,还包括:
    采用主从复制的方式将所述读请求对应的数据同步到每个所述节点服务器。
  14. 根据权利要求7所述网间互通的方法,其中,在所述接收到用户端的访问请求后,还包括:对所述访问请求的操作类型进行判断;以及当所述访问请求为写请求时,判断所述写请求的时限类型,其中,所述时限类型包括实时操作和非实时操作;
    当所述写请求为非实时操作时,所述对所述访问请求对应的数据进行处理,包括:
    将所述写请求对应的数据缓存至所述查找到的节点服务器。
  15. 根据权利要求14所述网间互通的方法,其中,在所述判断所述写请求 的时限类型之后,还包括:
    当所述写请求为实时操作时,所述对所述访问请求对应的数据进行处理,包括:将所述写请求对应的数据缓存至中心节点服务器,其中,所述中心节点服务器与所述网络运营商对应的节点服务器连接。
  16. 根据权利要求14所述网间互通的方法,其中,所述将所述写请求对应的数据缓存至所述查找到的节点服务器之后,还包括:
    所述查找到的节点服务器将所述数据同步至中心节点服务器,以使得所述中心节点服务器将所述数据同步至每个所述预设节点服务器。
  17. 根据权利要求7所述网间互通的方法,其中,所述获取所述访问请求对应的网络运营商,包括:
    采用域名系统解析方法确定所述访问请求对应的网络运营商。
  18. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求7-17任一项所述的方法。
PCT/CN2017/115722 2017-04-21 2017-12-12 实现网间互通的服务器部署结构及方法 WO2018192241A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710266398.7 2017-04-21
CN201710266398.7A CN107094175B (zh) 2017-04-21 2017-04-21 一种实现网间互通的服务器部署系统及互通方法

Publications (1)

Publication Number Publication Date
WO2018192241A1 true WO2018192241A1 (zh) 2018-10-25

Family

ID=59637983

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/115722 WO2018192241A1 (zh) 2017-04-21 2017-12-12 实现网间互通的服务器部署结构及方法

Country Status (2)

Country Link
CN (1) CN107094175B (zh)
WO (1) WO2018192241A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040346A (zh) * 2021-09-22 2022-02-11 福建省新天地信勘测有限公司 一种基于5g网络的档案数字化信息管理系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094175B (zh) * 2017-04-21 2020-12-29 深圳创维数字技术有限公司 一种实现网间互通的服务器部署系统及互通方法
CN110012038A (zh) * 2019-05-29 2019-07-12 中国人民解放军战略支援部队信息工程大学 一种网络攻击防御方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299969A (zh) * 2011-09-16 2011-12-28 北京新媒传信科技有限公司 一种Web访问方法、七层交换设备和服务网络
CN103023903A (zh) * 2012-12-11 2013-04-03 北京奇虎科技有限公司 一种数据传输方法及服务器
CN103023902A (zh) * 2012-12-11 2013-04-03 北京奇虎科技有限公司 数据传输方法和系统
CN103379184A (zh) * 2012-04-23 2013-10-30 深圳市腾讯计算机系统有限公司 网络业务访问的方法及系统
CN104811323A (zh) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 一种数据请求方法、装置、节点服务器及cdn系统
CN107094175A (zh) * 2017-04-21 2017-08-25 深圳创维数字技术有限公司 一种实现网间互通的服务器部署结构及互通方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130935A (zh) * 2010-08-05 2011-07-20 华为技术有限公司 数据获取方法和装置以及网络存储方法和设备
CN102761607A (zh) * 2012-06-21 2012-10-31 深圳市谷米科技有限公司 一种应用于移动互联网高可用缓存群实现方法
CN202750113U (zh) * 2012-06-21 2013-02-20 深圳市谷米科技有限公司 一种应用于移动互联网高可用缓存系统
CN106101055A (zh) * 2016-04-29 2016-11-09 乐视控股(北京)有限公司 一种多数据库的数据访问方法及其系统和代理服务器

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299969A (zh) * 2011-09-16 2011-12-28 北京新媒传信科技有限公司 一种Web访问方法、七层交换设备和服务网络
CN103379184A (zh) * 2012-04-23 2013-10-30 深圳市腾讯计算机系统有限公司 网络业务访问的方法及系统
CN103023903A (zh) * 2012-12-11 2013-04-03 北京奇虎科技有限公司 一种数据传输方法及服务器
CN103023902A (zh) * 2012-12-11 2013-04-03 北京奇虎科技有限公司 数据传输方法和系统
CN104811323A (zh) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 一种数据请求方法、装置、节点服务器及cdn系统
CN107094175A (zh) * 2017-04-21 2017-08-25 深圳创维数字技术有限公司 一种实现网间互通的服务器部署结构及互通方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040346A (zh) * 2021-09-22 2022-02-11 福建省新天地信勘测有限公司 一种基于5g网络的档案数字化信息管理系统
CN114040346B (zh) * 2021-09-22 2024-02-06 福建省新天地信勘测有限公司 一种基于5g网络的档案数字化信息管理系统与管理方法

Also Published As

Publication number Publication date
CN107094175B (zh) 2020-12-29
CN107094175A (zh) 2017-08-25

Similar Documents

Publication Publication Date Title
US20200351235A1 (en) Network communication method and system, device, and storage medium
WO2020259509A1 (zh) 一种应用迁移方法及装置
JP6054484B2 (ja) 割り当てられたネットワークアドレスを有するデバイスにアクセスするクライアントローカルプロキシサーバを使用したシステムおよび方法
US8756296B2 (en) Method, device and system for distributing file data
US20210359972A1 (en) Content delivery network optimization system
EP2381647B1 (en) Session migration in content-centric networks
EP3275162B1 (en) Systems and techniques for web communication
US9148332B2 (en) Content delivery network
TWI535255B (zh) 一種發送業務請求訊息的方法及裝置
EP2262185A1 (en) Method and system for forwarding data among private networks
KR20150013860A (ko) 클라이언트 없는 클라우드 컴퓨팅
WO2018192241A1 (zh) 实现网间互通的服务器部署结构及方法
CN109729187B (zh) 一种代理通信方法、系统、装置及存储介质
WO2016011885A1 (zh) 一种信息传输方法及装置
WO2021104458A1 (zh) 域名查询方法以及相关设备
JP2008522464A (ja) 端末要求をエージェントがリダイレクトする方法及びシステム
US20170295131A1 (en) Resource identification through dynamic domain name system (dns) labels
CN111585786A (zh) 一种大数据集群免密搭建方法的实现
WO2017113816A1 (zh) 一种对等网络连接方法及装置
CN114218540A (zh) 项目访问方法及装置
CN114025009A (zh) 转发请求的方法、系统、代理服务器和装置
US11750716B2 (en) Methods for publishing resource, and gateway
WO2016095510A1 (zh) 一种路径选择方法、设备及系统
WO2018028345A1 (zh) 用于检测访问路径的方法和装置
US20180367452A1 (en) Information centric networking over multi-access network interfaces

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17905946

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17905946

Country of ref document: EP

Kind code of ref document: A1