[go: up one dir, main page]

CN107196954A - A kind of service access method, apparatus and system - Google Patents

A kind of service access method, apparatus and system Download PDF

Info

Publication number
CN107196954A
CN107196954A CN201710451026.1A CN201710451026A CN107196954A CN 107196954 A CN107196954 A CN 107196954A CN 201710451026 A CN201710451026 A CN 201710451026A CN 107196954 A CN107196954 A CN 107196954A
Authority
CN
China
Prior art keywords
application server
service
provider
access
consumer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710451026.1A
Other languages
Chinese (zh)
Inventor
郑加奖
林更新
刘圳
任小伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201710451026.1A priority Critical patent/CN107196954A/en
Publication of CN107196954A publication Critical patent/CN107196954A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • 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/133Protocols for remote procedure calls [RPC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开一种服务访问方法、装置及系统,该方法包括:消费方应用服务器向配置中心发送订阅提供方应用服务器上的服务的请求;所述消费方应用服务器接收所述配置中心发送的认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限;所述消费方应用服务器根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务,该方法可以实现异构系统间的服务通信问题。

The invention discloses a service access method, device and system. The method includes: a consumer application server sends a request to a configuration center to subscribe to a service on a provider application server; the consumer application server receives the authentication certificate sent by the configuration center As a result, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has the right to access the service; the consumer application server according to the When it is determined that the authentication result has the right to access the service, the service on the application server of the provider is accessed. This method can realize the problem of service communication between heterogeneous systems.

Description

一种服务访问方法、装置及系统A service access method, device and system

技术领域technical field

本发明涉及通信领域,尤其涉及一种服务访问方法、装置及系统。The present invention relates to the communication field, in particular to a service access method, device and system.

背景技术Background technique

随着企业不断发展,企业内部系统越来越多,系统间的交互也越来越频繁,不同的系统不仅对内,同时也对外提供服务,不同的系统各自通过定义交互格式和通讯规则对外提供服务,导致不同系统间的交互方式越来越多,接口说明文档也伴随着多样化并难以理解,其中一些公共的基础模块,如:接口格式定义、通讯方式、日志记录无法得到统一定义和规范。With the continuous development of enterprises, there are more and more internal systems in enterprises, and the interaction between systems is becoming more and more frequent. Different systems not only provide services internally, but also provide services externally. Different systems provide external services by defining interaction formats and communication rules. Services lead to more and more ways of interacting between different systems, and the interface description documents are also diversified and difficult to understand. Some of the common basic modules, such as: interface format definition, communication methods, and log records cannot be uniformly defined and standardized .

为了解决系统间的交互问题,本发明提供一种服务访问系统,可以实现异构系统间的通信问题。In order to solve the problem of interaction between systems, the present invention provides a service access system, which can realize the problem of communication between heterogeneous systems.

发明内容Contents of the invention

本发明实施例提供一种服务访问方法、装置及系统,实现异构系统间的通信问题。Embodiments of the present invention provide a service access method, device and system to realize the communication problem between heterogeneous systems.

本发明方法包括一种服务访问方法,该方法包括:The method of the present invention includes a service access method, the method comprising:

消费方应用服务器向配置中心发送订阅提供方应用服务器上的服务的请求;The consumer application server sends a request to subscribe to the service on the provider application server to the configuration center;

所述消费方应用服务器接收所述配置中心发送的认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限;所述消费方应用服务器根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。The consumer application server receives the authentication result sent by the configuration center, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has access to the When the consumer application server determines that it has the permission to access the service according to the authentication result, it accesses the service on the provider application server.

基于同样的发明构思,本发明实施例提供一种服务器,包括:Based on the same inventive concept, an embodiment of the present invention provides a server, including:

发送单元,用于向配置中心发送订阅提供方应用服务器上的服务的请求;A sending unit, configured to send a request for subscribing to the service on the application server of the provider to the configuration center;

接收单元,用于接收所述配置中心发送的认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限;The receiving unit is configured to receive the authentication result sent by the configuration center, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has access to the service permissions;

访问单元,用于根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。An access unit, configured to access the service on the application server of the provider when it is determined to have the right to access the service according to the authentication result.

另外,本发明实施例还提供一种服务访问系统,该系统包括:消费方应用服务器、配置中心、提供方应用服务器;In addition, an embodiment of the present invention also provides a service access system, which includes: a consumer application server, a configuration center, and a provider application server;

所述消费方应用服务器,用于向配置中心发送订阅提供方应用服务器上的服务的请求;The consumer application server is configured to send a request for subscribing to the service on the provider application server to the configuration center;

所述配置中心,用于将所述请求发送至提供方应用服务器;The configuration center is configured to send the request to the provider application server;

所述提供方应用服务器,用于根据所述请求对所述消费方应用服务器进行认证,并将生成的认证结果发送至所述配置中心,所述认证结果用于指示所述消费方应用服务器是否具有访问所述服务的权限;The provider application server is configured to authenticate the consumer application server according to the request, and send the generated authentication result to the configuration center, where the authentication result is used to indicate whether the consumer application server have permission to access the Services;

所述配置中心,还用于将所述认证结果发送至所述消费方应用服务器;The configuration center is further configured to send the authentication result to the consumer application server;

所述消费方应用服务器,还用于根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。The consumer application server is further configured to access the service on the provider application server when it is determined to have access to the service according to the authentication result.

本发明实施例中通过配置中心,该配置中心作为一个服务化平台通过规范接口格式,定义各个组件间的数据交互方式。具体来说,服务的提供方应用服务器预先把自己的机器信息和所提供的服务登记到配置中心,然后消费方应用服务器在访问提供方应用服务器(即提供方应用服务器)上的服务之前,需要先在配置中心上完成认证,即向配置中心发送订阅提供方应用服务器上的服务的请求,配置中心向其发送认证的结果,消费方应用服务器认证通过时,才能访问所述提供方应用服务器上的所述服务,这样,就可以实现消费方应用服务器上的服务和提供方应用服务器上的服务通过配置中心进行交互,从而实现异构系统间的通信问题。In the embodiment of the present invention, through the configuration center, the configuration center, as a service platform, defines the data interaction mode between various components by standardizing the interface format. Specifically, the service provider application server pre-registers its own machine information and the services it provides to the configuration center, and then the consumer application server needs to First complete the authentication on the configuration center, that is, send a request to the configuration center to subscribe to the service on the provider's application server, and the configuration center sends the authentication result to it. Only when the consumer's application server passes the authentication can it access the provider's application server. In this way, the service on the consumer application server and the service on the provider application server can interact through the configuration center, so as to realize the communication problem between heterogeneous systems.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1为本发明实施例提供的一种访问系统架构示意图;FIG. 1 is a schematic diagram of an access system architecture provided by an embodiment of the present invention;

图2为本发明实施例提供的一种异构系统访问交互示意图;FIG. 2 is a schematic diagram of heterogeneous system access interaction provided by an embodiment of the present invention;

图3为本发明实施例提供的一种服务访问方法流程示意图一;FIG. 3 is a first schematic flow diagram of a service access method provided by an embodiment of the present invention;

图4为本发明实施例提供的一种流传输数据包协议示意图;FIG. 4 is a schematic diagram of a streaming data packet protocol provided by an embodiment of the present invention;

图5为本发明实施例提供的一种端口复用的原理示意图;FIG. 5 is a schematic diagram of the principle of port multiplexing provided by an embodiment of the present invention;

图6为本发明实施例提供的一种服务访问方法流程示意图二;FIG. 6 is a second schematic flow diagram of a service access method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种服务访问方法流程示意图三;FIG. 7 is a third schematic flow diagram of a service access method provided by an embodiment of the present invention;

图8为本发明实施例提供的一种访问装置示意图。Fig. 8 is a schematic diagram of an access device provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供一种服务访问系统,该系统包括:消费方应用服务器、配置中心、提供方应用服务器;其中:An embodiment of the present invention provides a service access system, the system includes: a consumer application server, a configuration center, and a provider application server; wherein:

所述消费方应用服务器,向配置中心发送订阅提供方应用服务器上的服务的请求;The consumer application server sends a request to subscribe to the service on the provider application server to the configuration center;

所述配置中心,将所述请求发送至提供方应用服务器;The configuration center sends the request to the provider application server;

所述提供方应用服务器,根据所述请求对所述消费方应用服务器进行认证,并将生成的认证结果发送至所述配置中心,所述认证结果用于指示所述消费方应用服务器是否具有访问所述服务的权限;The provider application server authenticates the consumer application server according to the request, and sends the generated authentication result to the configuration center, where the authentication result is used to indicate whether the consumer application server has access permissions for the Services;

所述配置中心,将所述认证结果发送至所述消费方应用服务器;The configuration center sends the authentication result to the consumer application server;

所述消费方应用服务器,认证通过时,访问所述提供方应用服务器上的所述服务。When the consumer application server passes the authentication, it accesses the service on the provider application server.

具体地,如图1所示,在图1所示的系统中,消费方应用服务器为Consumer-App所在的服务器,提供方应用服务器为Provider-App所在的服务器,配置中心、以及DNA控制台(Design and Architect platform,服务化平台)。其中,系统各组件的功能说明如下:Specifically, as shown in Figure 1, in the system shown in Figure 1, the consumer application server is the server where the Consumer-App is located, the provider application server is the server where the Provider-App is located, the configuration center, and the DNA console ( Design and Architect platform, service platform). Among them, the function description of each component of the system is as follows:

1.DNA控制台:主要负责服务的发布、订阅、审核和提供者管理,并定时从大数据平台获取上报的数据信息,统计汇总后形成报表。DNA控制台的开发工具为DNA-SDK,目前支持java和C++,开发人员通过SDK提供的API接口,可以快速发布服务或者调用其它组件的服务。1. DNA console: mainly responsible for service release, subscription, review and provider management, and regularly obtains reported data information from the big data platform, and forms reports after statistics and summary. The development tool of the DNA console is DNA-SDK, which currently supports java and C++. Developers can quickly publish services or call services of other components through the API interface provided by the SDK.

2.配置中心:主要负责收集提供者上报的地址信息,并把DNA控制台中的用户配置推送到指定的机器,目前支持sdn或http两种方式推送配置。2. Configuration Center: It is mainly responsible for collecting the address information reported by the provider, and pushing the user configuration in the DNA console to the designated machine. Currently, it supports sdn or http to push the configuration.

3.大数据平台:主要负责日志数据和告警数据的采集,为后期进行日志分析和数据统计提供基础。3. Big data platform: mainly responsible for the collection of log data and alarm data, providing a basis for later log analysis and data statistics.

上述系统各组件的交互过程如图2所示,具体步骤如下:The interaction process of each component of the above system is shown in Figure 2, and the specific steps are as follows:

步骤a、注册服务信息:提供方应用服务器对外提供的服务需要配置中心进行登记,主要登记信息有应用名称、服务名称、版本号,并上传服务定义的接口格式。Step a. Register service information: The service provided by the provider's application server needs to be registered by the configuration center. The main registration information includes the application name, service name, version number, and upload the interface format of the service definition.

步骤b、申请订阅服务:消费方应用服务器登录到配置中心,从配置中心选择需要使用提供方应用服务器所登记的服务,然后消费方应用服务器的用户填写某服务的订阅申请单,消费方应用服务器生成订阅提供方应用服务器上的服务的请求。Step b. Apply for a subscription service: the consumer application server logs in to the configuration center, selects the service registered by the provider application server from the configuration center, and then the user of the consumer application server fills in a subscription application form for a service, and the consumer application server Generates a request to subscribe to a service on a provider application server.

步骤c、审核消费者的订阅:提供方应用服务器有权决定是否通过消费方应用服务器的服务订阅请求,并限制消费者访问的IP地址。Step c. Reviewing the consumer's subscription: the provider's application server has the right to decide whether to pass the service subscription request of the consumer's application server, and limit the IP address accessed by the consumer.

步骤d、发布提供者信息:提供方应用服务器把自己的服务地址发布到配置中心,并且配置中心通过心跳信息实时监测提供方应用的状态,服务心跳丢失一段时间后,配置中心会主动剔除没有心跳的提供方应用服务器。Step d. Publish provider information: the provider application server publishes its own service address to the configuration center, and the configuration center monitors the status of the provider application in real time through the heartbeat information. The provider application server for .

步骤e、拉取配置信息:配置中心把消费方应用服务器订阅的服务的授权信息、提供方应用服务器的地址信息整合后生成配置信息保存到本地。Step e, pulling configuration information: the configuration center integrates the authorization information of the service subscribed by the consumer application server and the address information of the provider application server to generate configuration information and save it locally.

步骤f、调用服务:消费方应用服务器通过服务化平台提供的工具,根据从步骤e的配置信息,可以直接访问提供方应用服务器所提供的服务。Step f. Invoking services: the consumer application server can directly access the services provided by the provider application server through the tools provided by the service platform according to the configuration information from step e.

为了更加详细地描述图1和图2中的系统中的各个组件的处理过程,本发明实施例从消费者应用服务器侧、提供者应用服务器侧、以及配置中心侧分别进行描述。In order to describe the processing process of each component in the system in FIG. 1 and FIG. 2 in more detail, the embodiment of the present invention is described from the side of the consumer application server, the side of the provider application server, and the side of the configuration center.

如图3所示,本发明实施例提供一种服务访问方法流程示意图,具体地实现方法包括:As shown in Figure 3, the embodiment of the present invention provides a schematic flow diagram of a service access method, and the specific implementation method includes:

S101,消费方应用服务器向配置中心发送订阅提供方应用服务器上的服务的请求。S101. The consumer application server sends a request for subscribing to the service on the provider application server to the configuration center.

S102,所述消费方应用服务器接收所述配置中心发送的认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限;所述消费方应用服务器根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。S102. The consumer application server receives the authentication result sent by the configuration center, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has The authority to access the service; when the consumer application server determines that it has the authority to access the service according to the authentication result, access the service on the provider application server.

在上述步骤中,消费方应用服务器即消费方应用服务器,提供方应用服务器即提供方应用服务器。也就是说,消费方应用服务器要访问提供方应用服务器的服务,必须先要完成订阅,也就是通过配置中心订阅提供方应用服务器上服务,提供方应用服务器会根据授权信息对订阅请求进行认证,只有认证通过才能够从配置中心上获取提供方应用服务器的目的地址,才能够向提供方应用服务器发送访问请求,进而获取到服务。In the above steps, the consumer application server is the consumer application server, and the provider application server is the provider application server. In other words, to access the service of the provider application server, the consumer application server must first complete the subscription, that is, subscribe to the service on the provider application server through the configuration center, and the provider application server will authenticate the subscription request according to the authorization information. Only after passing the authentication can the destination address of the provider's application server be obtained from the configuration center, and an access request can be sent to the provider's application server to obtain services.

进一步地,若提供方应用服务器的目的地址发生变更,则消费方应用服务器可以从所述配置中心上获取配置文件,所述配置文件中包括所述提供方应用服务器的目的地址发生变更后的第一目的地址,并根据所述第一目的地址,访问所述提供方应用服务器上的所述服务。Further, if the destination address of the provider application server changes, the consumer application server can obtain a configuration file from the configuration center, and the configuration file includes the first address after the change of the destination address of the provider application server. A destination address, and access the service on the provider application server according to the first destination address.

具体来说,假设提供方应用服务是SaaS(Software-as-a-service,软件即服务)应用服务器,SaaS应用服务器的目的地址同步更新的过程如下:Specifically, assuming that the provider's application service is a SaaS (Software-as-a-service, software as a service) application server, the process of synchronously updating the destination address of the SaaS application server is as follows:

步骤a、SaaS应用服务器对应的用户通过控制台在配置管理中心登记消费者和提供者的机器地址信息。In step a, the user corresponding to the SaaS application server registers the machine address information of the consumer and the provider in the configuration management center through the console.

步骤b、在SaaS应用服务器启动后,通过调用SDK(Software Development Kit,软件开发工具包)插件把自己机器的IP地址上报到配置中心。Step b. After the SaaS application server is started, report the IP address of the own machine to the configuration center by calling the SDK (Software Development Kit, software development kit) plug-in.

步骤c、配置中心发现SaaS应用服务器地址发生变化时,及时重新生成消费者的配置信息,通过查找已经配置的关联机器列表,主动推送配置数据到消费方应用服务器。Step c. When the configuration center finds that the address of the SaaS application server has changed, it will regenerate the consumer's configuration information in time, and actively push the configuration data to the consumer's application server by looking up the list of associated machines that have been configured.

步骤d、消费方应用服务器直接监控本地机器的配置文件,在发现配置文件有发生变更时马上加载新的配置文件,利用新的配置文件的目的地址访问SaaS服务器。Step d, the consumer application server directly monitors the configuration file of the local machine, immediately loads a new configuration file when the configuration file is found to be changed, and uses the destination address of the new configuration file to access the SaaS server.

需要说明的是,消费方应用服务器可能先后利用先前记忆的目的地址访问SaaS应用服务器,若发现访问失败,才会进一步地从配置文件中获取提供方应用服务器最新的目的地址信息,这样做的目的是避免消费方应用服务器重复地读取配置文件,提高了访问的效率。It should be noted that the consumer application server may successively use the previously memorized destination address to access the SaaS application server. If the access fails, it will further obtain the latest destination address information of the provider application server from the configuration file. The purpose of this is It prevents the consumer application server from repeatedly reading the configuration file and improves access efficiency.

另外,如果认证没有通过,配置中心可以向所述消费方应用服务器发送认证失败的认证结果,如果认证通过,配置中心可以向所述消费方应用服务器发送认证成功的认证结果。In addition, if the authentication fails, the configuration center may send an authentication result of authentication failure to the consumer application server, and if the authentication passes, the configuration center may send an authentication result of successful authentication to the consumer application server.

进一步地,所述消费方应用服务器生成关于访问所述提供方应用服务器的日志,并将所述日志发送至大数据平台。Further, the consumer application server generates logs about accessing the provider application server, and sends the logs to the big data platform.

进一步地,本发明实施例进一步地提供一种端口复用逻辑,所述消费方应用服务器通过所述提供方应用服务器上的统一端口向所述提供方应用服务器发送服务访问请求报文,其中,所述服务访问请求报文中的头部包括协议标识,所述协议标识用于指示所述提供方应用服务器采用预设的解析策略对所述数据包进行解析,若所述协议标识中包括加密标识,则指示预设的解析策略为加密流协议;若所述协议标识包括超文本传输协议http头部标识,则指示预设的解析策略为http管理协议;若所述数据包无头部标识,则指示预设的解析策略为普通流协议。也就是说,在TCP的上层自定义stream通讯协议,支持多种不同格式的数据包同时通讯,可以把RPC数据包通讯、数据流通讯、http控制台访问、SSL加密通讯整合起来,不需要为不同的通讯类型提供单独的端口,这样消费者在选择提供者的不同协议时不需要重新选择提供者访问端口,方便客户端切换不同协议。也就是说,对于不同格式的数据包均有对应的数据包头进行区分。Furthermore, the embodiment of the present invention further provides a port multiplexing logic, wherein the consumer application server sends a service access request message to the provider application server through a unified port on the provider application server, wherein, The header in the service access request message includes a protocol identifier, and the protocol identifier is used to instruct the provider's application server to use a preset resolution strategy to analyze the data packet. If the protocol identifier includes encryption mark, it indicates that the preset resolution strategy is the encrypted stream protocol; if the protocol mark includes the hypertext transfer protocol http header mark, then it indicates that the preset resolution policy is the http management protocol; if the data packet has no head mark , indicating that the default parsing strategy is the common streaming protocol. That is to say, the stream communication protocol is customized on the upper layer of TCP, which supports simultaneous communication of multiple data packets in different formats, and can integrate RPC data packet communication, data stream communication, http console access, and SSL encrypted communication. Different communication types provide separate ports, so that consumers do not need to re-select the provider's access port when choosing different protocols of the provider, which is convenient for the client to switch between different protocols. That is to say, data packets of different formats have corresponding data packet headers to distinguish them.

因此,当所述消费方应用服务器向所述提供方应用服务器发送流传输数据包时,因为所述流传输数据包中包括流数据标识,所以提供方应用服务器可以采用预设的流传输协议进行解析流传输数据包,直至读取到所述流传输数据包中的流数据末尾标识时生成的要提供的服务的数据。Therefore, when the consumer application server sends a streaming data packet to the provider application server, because the streaming data packet includes a stream data identifier, the provider application server can use a preset streaming protocol for processing. The streaming data packet is parsed until the data of the service to be provided generated when the stream data end identifier in the streaming data packet is read.

其中,在流传输数据包定义时,使用特殊头部字节0A8,用于表示数据包的开头。如图4所示,如果发送方的数据经过SSL加密后,会产生SSL特定的头部几个字节,这些字节有别于特定0A8头部,所以接收方可以根据头部区分是否对数据进行解密,从而达到端口复用的效果。Wherein, when defining the streaming data packet, a special header byte 0A8 is used to indicate the beginning of the data packet. As shown in Figure 4, if the sender's data is encrypted by SSL, a few bytes of SSL-specific headers will be generated, which are different from the specific 0A8 headers, so the receiver can distinguish whether to encrypt the data based on the headers. Decryption is performed to achieve the effect of port multiplexing.

进一步地,本发明实施例进一步地提供图5所示的流程图说明端口复用的原理,具体如下:Further, the embodiment of the present invention further provides the flowchart shown in FIG. 5 to illustrate the principle of port multiplexing, specifically as follows:

S201,消费方应用服务器向提供方应用服务器发送访问请求消息。S201, the consumer application server sends an access request message to the provider application server.

S202,提供方应用服务器端监听请求,根据接收到请求的头部字节,根据数据内容进行判断数据包类型。S202, the provider application server monitors the request, and judges the data packet type according to the received header bytes of the request and the data content.

步骤203,提供方应用服务器判断如果请求包含加密头部,则走流加密协议进行解密,直到读取到流的末尾标志符后结束。In step 203, the application server of the provider judges that if the request contains an encrypted header, it will go through the stream encryption protocol to decrypt until the end identifier of the stream is read.

步骤204,提供方应用服务器判断如果是RPC(Remote Procedure Call Protocol,远程过程调用协议)请求,则直接发送请求访问的服务至消费方应用服务器。In step 204, the provider application server determines if the request is an RPC (Remote Procedure Call Protocol, remote procedure call protocol), and then directly sends the requested service to the consumer application server.

步骤205,如果没有加密,提供方应用服务器利用普通流协议进行解密,解密之后二应用服务器发送请求访问的服务至消费方应用服务器。Step 205, if there is no encryption, the provider application server uses the common stream protocol to decrypt, and after decryption, the second application server sends the requested service to the consumer application server.

步骤206,包头是http头部,则走sdk的http控制台管理协议。Step 206, if the packet header is an http header, then go through the http console management protocol of the sdk.

对应消费方应用服务器来说,可以完全根据需要,选择数据是否加密后连接到服务器端,不需要另外要求SaaS应用服务器端提供SSL的监听服务.整个加密过程无论是对服务器端,还是客户端都是透明的。For the consumer application server, you can choose whether the data is encrypted and then connect to the server according to your needs. There is no need to additionally require the SaaS application server to provide SSL monitoring services. The entire encryption process is for both the server and the client. is transparent.

基于相同的技术构思,本发明实施例从提供方应用服务器侧提供一种服务访问方法流程示意图,参见图6所示,具体地实现方法包括:Based on the same technical concept, the embodiment of the present invention provides a schematic flow diagram of a service access method from the provider application server side, as shown in Figure 6, and the specific implementation method includes:

S301,所述提供方应用服务器接收所述配置中心发送的订阅所述提供方应用服务器上的服务的请求,所述请求是所述配置中心接收的消费方应用服务器发送的请求;S301. The provider application server receives a request sent by the configuration center to subscribe to a service on the provider application server, where the request is a request received by the configuration center and sent by a consumer application server;

S302,所述提供方应用服务器对所述请求进行认证,并向所述配置中心发送认证结果,所述认证结果用于指示所述消费方应用服务器是否具有访问所述服务的权限;S302. The provider application server authenticates the request, and sends an authentication result to the configuration center, where the authentication result is used to indicate whether the consumer application server has permission to access the service;

S303,所述提供方应用服务器接收所述消费方应用服务器发送的服务访问请求,并向所述消费方应用服务器发送所述服务,所述服务访问请求是所述消费方应用服务器确定所述认证结果为认证成功时发送的。S303. The provider application server receives the service access request sent by the consumer application server, and sends the service to the consumer application server. The service access request is determined by the consumer application server The result is sent when the authentication is successful.

进一步,所述提供方应用服务器向所述配置中心发送配置文件,所述配置文件包括所述提供方应用服务器的目的地址发生变更后的第一目的地址;Further, the provider application server sends a configuration file to the configuration center, and the configuration file includes the first destination address after the destination address of the provider application server is changed;

所述提供方应用服务器接收所述消费方应用服务器根据所述第一目的地址发送的服务访问请求。The provider application server receives the service access request sent by the consumer application server according to the first destination address.

进一步地,所述提供方应用服务器采用预设的解析策略对所述服务访问请求对应的报文进行解析,其中,所述报文中的头部包括协议标识,所述协议标识用于指示所述提供方应用服务器采用预设的解析策略对所述数据包进行解析,若所述协议标识中包括加密标识,则指示预设的解析策略为加密流协议;若所述协议标识包括超文本传输协议http头部标识,则指示预设的解析策略为http管理协议;若所述数据包无头部标识,则指示预设的解析策略为普通流协议。Further, the provider application server uses a preset parsing strategy to parse the packet corresponding to the service access request, wherein the header in the packet includes a protocol identifier, and the protocol identifier is used to indicate the The application server of the provider uses a preset analysis strategy to analyze the data packet, and if the protocol identifier includes an encryption identifier, it indicates that the preset resolution strategy is an encrypted stream protocol; if the protocol identifier includes a hypertext transmission If the protocol http header identifier indicates that the default resolution strategy is the http management protocol; if the data packet has no header identifier, it indicates that the preset resolution strategy is the common stream protocol.

因配置中心所执行的动作与上述方法相对应,因此这里具体交互过程不再赘述。Since the actions performed by the configuration center correspond to the above methods, the specific interaction process will not be repeated here.

基于相同的技术构思,本发明实施例从配置中心侧提供一种服务访问方法流程示意图,参见图7所示,具体地实现方法包括:Based on the same technical concept, the embodiment of the present invention provides a schematic flow diagram of a service access method from the configuration center side, as shown in Figure 7, and the specific implementation method includes:

S401,配置中心接收消费方应用服务器发送的订阅提供方应用服务器上的服务的请求;S401. The configuration center receives a request from the application server of the consumer to subscribe to the service on the application server of the provider;

S402,所述配置中心向所述消费方应用服务器发送认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限。S402. The configuration center sends an authentication result to the consumer application server, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has access Permissions for said service.

进一步,所述配置中心接收所述提供方应用服务器发送的配置文件,所述配置文件包括所述提供方应用服务器的目的地址发生变更后的第一目的地址;Further, the configuration center receives the configuration file sent by the provider application server, and the configuration file includes the first destination address after the destination address of the provider application server is changed;

所述配置中心接收所述消费方应用服务器发送的获取配置文件的请求,并将所述配置文件发送至所述消费方应用服务器,以使所述消费方应用服务器根据所述配置文件中的第一目的地址访问所述提供方应用服务器。The configuration center receives the configuration file acquisition request sent by the consumer application server, and sends the configuration file to the consumer application server, so that the consumer application server A destination address accesses the provider application server.

另外,所述配置中心确定在设定时长内未接收到所述提供方应用服务器发送的心跳报文时,则确定所述提供方应用服务器发生故障,并停止与所述提供方应用服务器通信。这样有助于识别发生故障的提供方应用服务器。In addition, when the configuration center determines that the heartbeat message sent by the provider application server has not been received within a set time period, it determines that the provider application server has failed, and stops communicating with the provider application server. This helps identify failed provider application servers.

基于相同的技术构思,本发明实施例还提供一种服务器,该服务器可执行上述消费方应用服务器侧所执行的方法实施例。本发明实施例提供的服务器如图8所示,包括:发送单元401、接收单元402,访问单元403,其中:Based on the same technical concept, the embodiment of the present invention also provides a server, which can execute the method embodiment executed by the consumer application server side. The server provided by the embodiment of the present invention is shown in FIG. 8, and includes: a sending unit 401, a receiving unit 402, and an accessing unit 403, wherein:

发送单元401,用于向配置中心发送订阅提供方应用服务器上的服务的请求;A sending unit 401, configured to send a request for subscribing to a service on the application server of the provider to the configuration center;

接收单元402,用于接收所述配置中心发送的认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限;The receiving unit 402 is configured to receive the authentication result sent by the configuration center, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has access to the requested access to the services described above;

访问单元403,用于根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。The accessing unit 403 is configured to access the service on the application server of the provider when it is determined according to the authentication result that the service has the right to access the service.

进一步地,提供方应用服务器还包括:登记单元404,用于提供方应用服务器上的所述服务向配置中心进行登记,登记信息包括所述提供方应用服务器的所述服务地址信息,并定期向配置中心发送报文。Further, the provider application server further includes: a registration unit 404, configured to register the service on the provider application server with the configuration center, the registration information includes the service address information of the provider application server, and regularly reports to The configuration center sends the message.

进一步地,消费方应用服务器还包括:还包括:获取单元405,用于从所述配置中心上获取配置文件,所述配置文件中包括所述提供方应用服务器的服务地址发生变更后的第一目的地址;Further, the consumer application server further includes: an obtaining unit 405, configured to obtain a configuration file from the configuration center, and the configuration file includes the first service address of the provider application server changed. Destination address;

所述访问单元403具体用于:根据所述第一目的地址,访问所述提供方应用服务器上的所述服务。The access unit 403 is specifically configured to: access the service on the application server of the provider according to the first destination address.

进一步地,所述访问单元403具体用于:通过所述提供方应用服务器上的统一端口向所述提供方应用服务器发送服务访问请求报文,其中,所述服务访问请求报文中的头部包括协议标识,所述协议标识用于指示所述提供方应用服务器采用预设的解析策略对所述数据包进行解析,若所述协议标识中包括加密标识,则指示预设的解析策略为加密流协议;若所述协议标识包括超文本传输协议http头部标识,则指示预设的解析策略为http管理协议;若所述数据包无头部标识,则指示预设的解析策略为普通流协议。Further, the access unit 403 is specifically configured to: send a service access request message to the provider application server through a unified port on the provider application server, wherein the header in the service access request message Including a protocol identifier, the protocol identifier is used to instruct the provider application server to use a preset resolution strategy to analyze the data packet, if the protocol identifier includes an encryption identifier, it indicates that the preset resolution strategy is encryption stream protocol; if the protocol identifier includes a hypertext transfer protocol http header identifier, it indicates that the preset resolution strategy is the http management protocol; if the data packet has no header identifier, it indicates that the preset resolution strategy is an ordinary flow protocol.

进一步地,所述服务器还包括生成单元406,用于生成关于访问所述提供方应用服务器的日志,并将所述日志发送至数据管理服务器。Further, the server further includes a generation unit 406, configured to generate a log about accessing the application server of the provider, and send the log to the data management server.

进一步地,配置中心还包括删除单元407,用于根据所述定期发送的报文信息判定是否删除所述提供方应用服务器。Further, the configuration center further includes a deletion unit 407, configured to determine whether to delete the provider application server according to the message information sent periodically.

综上所述,本发明实施例中通过新增一个配置中心,该配置中心作为一个服务化平台通过规范接口格式,定义各个组件间的数据交互方式。具体来说,服务的提供方服务器预先把自己的机器信息和所提供的服务登记配置中心,然后消费方应用服务器即消费方应用服务器在访问提供方服务器(即提供方应用服务器)上的服务之前,需要先在配置中心上完成认证,即向配置中心发送订阅提供方应用服务器上的服务的请求,配置中心向其发送认证结果,消费方应用服务器认证通过时,访问所述提供方应用服务器上的所述服务,这样,就可以实现消费方应用服务器和提供方服务器都使用配置中心进行交互,从而实现异构系统间的服务通信问题。To sum up, in the embodiment of the present invention, a new configuration center is added, and as a service platform, the configuration center defines the data interaction mode between various components by standardizing the interface format. Specifically, the provider server of the service registers its own machine information and the services provided by the configuration center in advance, and then the consumer application server, that is, the consumer application server, accesses the service on the provider server (ie, the provider application server) , you need to complete the authentication on the configuration center first, that is, send a request to the configuration center to subscribe to the service on the provider's application server, and the configuration center will send it the authentication result. When the consumer's application server passes the authentication, it will access the In this way, both the consumer application server and the provider server can use the configuration center to interact with each other, so as to realize the problem of service communication between heterogeneous systems.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (13)

1.一种服务访问方法,其特征在于,该方法包括:1. A service access method, characterized in that the method comprises: 消费方应用服务器向配置中心发送订阅提供方应用服务器上的服务的请求;The consumer application server sends a request to subscribe to the service on the provider application server to the configuration center; 所述消费方应用服务器接收所述配置中心发送的认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限;所述消费方应用服务器根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。The consumer application server receives the authentication result sent by the configuration center, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has access to the When the consumer application server determines that it has the permission to access the service according to the authentication result, it accesses the service on the provider application server. 2.如权利要求1所述的方法,其特征在于,所述消费方应用服务器访问所述提供方应用服务器上的所述服务之前,还包括:2. The method according to claim 1, wherein before the consumer application server accesses the service on the provider application server, further comprising: 提供方应用服务器上的所述服务向配置中心进行登记,登记信息包括所述提供方应用服务器的所述服务地址信息,并定期向配置中心发送报文。The service on the application server of the provider registers with the configuration center, the registration information includes the service address information of the application server of the provider, and periodically sends messages to the configuration center. 3.如权利要求2所述的方法,其特征在于,所述消费方应用服务器访问所述提供方应用服务器上的所述服务之前,还包括:3. The method according to claim 2, wherein before the consumer application server accesses the service on the provider application server, further comprising: 所述消费方应用服务器从所述配置中心上获取配置文件,所述配置文件中包括所述提供方应用服务器的服务地址发生变更后的第一目的地址;The consumer application server obtains a configuration file from the configuration center, and the configuration file includes the first destination address after the change of the service address of the provider application server; 所述消费方应用服务器访问所述提供方应用服务器上的所述服务,包括:The consumer application server accesses the service on the provider application server, including: 所述消费方应用服务器根据所述第一目的地址,访问所述提供方应用服务器上的所述服务。The consumer application server accesses the service on the provider application server according to the first destination address. 4.如权利要求1或2所述的方法,其特征在于,所述消费方应用服务器访问所述提供方应用服务器上的所述服务,包括:4. The method according to claim 1 or 2, wherein the access of the consumer application server to the service on the provider application server comprises: 所述消费方应用服务器通过所述提供方应用服务器上的统一端口向所述提供方应用服务器发送服务访问请求报文,其中,所述服务访问请求报文中的头部包括协议标识,所述协议标识用于指示所述提供方应用服务器采用预设的解析策略对所述数据包进行解析,若所述协议标识中包括加密标识,则指示预设的解析策略为加密流协议;若所述协议标识包括超文本传输协议http头部标识,则指示预设的解析策略为http管理协议;若所述数据包无头部标识,则指示预设的解析策略为普通流协议。The consumer application server sends a service access request message to the provider application server through a unified port on the provider application server, wherein the header in the service access request message includes a protocol identifier, and the The protocol identifier is used to instruct the provider application server to use a preset parsing strategy to parse the data packet, if the protocol identifier includes an encryption identifier, it indicates that the preset parsing strategy is an encrypted stream protocol; if the If the protocol identifier includes the HTTP header identifier, it indicates that the preset resolution strategy is the http management protocol; if the data packet has no header identifier, it indicates that the preset resolution strategy is the common stream protocol. 5.如权利要求1或2所述的方法,其特征在于,所述消费方应用服务器访问所述提供方应用服务器上的所述服务之后,还包括:5. The method according to claim 1 or 2, wherein after the consumer application server accesses the service on the provider application server, further comprising: 所述消费方应用服务器生成关于访问所述提供方应用服务器的日志,并将所述日志发送至数据管理服务器。The consumer application server generates a log about access to the provider application server, and sends the log to a data management server. 6.如权利要求2所述的方法,其特征在于,所述配置中心根据所述定期发送的报文信息判定是否删除所述提供方应用服务器。6 . The method according to claim 2 , wherein the configuration center determines whether to delete the provider application server according to the periodically sent message information. 7.一种服务访问系统,其特征在于,该系统包括:消费方应用服务器、配置中心、提供方应用服务器;7. A service access system, characterized in that the system includes: a consumer application server, a configuration center, and a provider application server; 所述消费方应用服务器,用于向配置中心发送订阅提供方应用服务器上的服务的请求;The consumer application server is configured to send a request for subscribing to the service on the provider application server to the configuration center; 所述配置中心,用于将所述请求发送至提供方应用服务器;The configuration center is configured to send the request to the provider application server; 所述提供方应用服务器,用于根据所述请求对所述消费方应用服务器进行认证,并将生成的认证结果发送至所述配置中心,所述认证结果用于指示所述消费方应用服务器是否具有访问所述服务的权限;The provider application server is configured to authenticate the consumer application server according to the request, and send the generated authentication result to the configuration center, where the authentication result is used to indicate whether the consumer application server have permission to access the Services; 所述配置中心,还用于将所述认证结果发送至所述消费方应用服务器;The configuration center is further configured to send the authentication result to the consumer application server; 所述消费方应用服务器,还用于根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。The consumer application server is further configured to access the service on the provider application server when it is determined to have access to the service according to the authentication result. 8.一种服务器,其特征在于,包括:8. A server, characterized in that, comprising: 发送单元,用于向配置中心发送订阅提供方应用服务器上的服务的请求;A sending unit, configured to send a request for subscribing to the service on the application server of the provider to the configuration center; 接收单元,用于接收所述配置中心发送的认证结果,所述认证结果是所述提供方应用服务器对所述请求进行认证之后生成的,用于指示所述消费方应用服务器是否具有访问所述服务的权限;The receiving unit is configured to receive the authentication result sent by the configuration center, the authentication result is generated after the provider application server authenticates the request, and is used to indicate whether the consumer application server has access to the service permissions; 访问单元,用于根据所述认证结果确定具有访问所述服务的权限时,访问所述提供方应用服务器上的所述服务。An access unit, configured to access the service on the application server of the provider when it is determined to have the right to access the service according to the authentication result. 9.如权利要求8所述的服务器,其特征在于,还包括:9. The server according to claim 8, further comprising: 登记单元,用于提供方应用服务器上的所述服务向配置中心进行登记,登记信息包括所述提供方应用服务器的所述服务地址信息,并定期向配置中心发送报文。The registration unit is configured to register the service on the provider application server with the configuration center, the registration information includes the service address information of the provider application server, and periodically send messages to the configuration center. 10.如权利要求8所述的服务器,其特征在于,还包括:10. The server according to claim 8, further comprising: 获取单元,用于从所述配置中心上获取配置文件,所述配置文件中包括所述提供方应用服务器的服务地址发生变更后的第一目的地址;An acquisition unit, configured to acquire a configuration file from the configuration center, the configuration file including the first destination address after the change of the service address of the provider application server; 所述访问单元具体用于:根据所述第一目的地址,访问所述提供方应用服务器上的所述服务。The access unit is specifically configured to: access the service on the provider application server according to the first destination address. 11.如权利要求8或9所述的服务器,其特征在于,所述访问单元具体用于:11. The server according to claim 8 or 9, wherein the access unit is specifically used for: 通过所述提供方应用服务器上的统一端口向所述提供方应用服务器发送服务访问请求报文,其中,所述服务访问请求报文中的头部包括协议标识,所述协议标识用于指示所述提供方应用服务器采用预设的解析策略对所述数据包进行解析,若所述协议标识中包括加密标识,则指示预设的解析策略为加密流协议;若所述协议标识包括超文本传输协议http头部标识,则指示预设的解析策略为http管理协议;若所述数据包无头部标识,则指示预设的解析策略为普通流协议。Send a service access request message to the provider application server through a unified port on the provider application server, wherein the header in the service access request message includes a protocol identifier, and the protocol identifier is used to indicate the The application server of the provider uses a preset analysis strategy to analyze the data packet, and if the protocol identifier includes an encryption identifier, it indicates that the preset resolution strategy is an encrypted stream protocol; if the protocol identifier includes a hypertext transmission If the protocol http header identifier indicates that the default resolution strategy is the http management protocol; if the data packet has no header identifier, it indicates that the preset resolution strategy is the common stream protocol. 12.如权利要求8或9所述的服务器,其特征在于,还包括:12. The server according to claim 8 or 9, further comprising: 生成单元,用于生成关于访问所述提供方应用服务器的日志,并将所述日志发送至数据管理服务器。A generating unit, configured to generate a log about accessing the application server of the provider, and send the log to the data management server. 13.如权利要求9所述的服务器,其特征在于,删除单元,用于根据所述定期发送的报文信息判定是否删除所述提供方应用服务器。13. The server according to claim 9, wherein the deleting unit is configured to determine whether to delete the provider application server according to the message information sent periodically.
CN201710451026.1A 2017-06-15 2017-06-15 A kind of service access method, apparatus and system Pending CN107196954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710451026.1A CN107196954A (en) 2017-06-15 2017-06-15 A kind of service access method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710451026.1A CN107196954A (en) 2017-06-15 2017-06-15 A kind of service access method, apparatus and system

Publications (1)

Publication Number Publication Date
CN107196954A true CN107196954A (en) 2017-09-22

Family

ID=59879154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710451026.1A Pending CN107196954A (en) 2017-06-15 2017-06-15 A kind of service access method, apparatus and system

Country Status (1)

Country Link
CN (1) CN107196954A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120723A (en) * 2018-10-24 2019-01-01 南京燚麒智能科技有限公司 A kind of method for interchanging data and system based on http protocol
CN109769265A (en) * 2019-01-08 2019-05-17 深圳市网心科技有限公司 Application flow management method, system, device and computer medium
CN111240868A (en) * 2020-01-22 2020-06-05 阿里巴巴集团控股有限公司 Instance processing and calling method, device, system and storage medium
CN111314315A (en) * 2020-01-20 2020-06-19 重庆富民银行股份有限公司 Open platform multi-dimensional safety control system and method
CN111813615A (en) * 2020-06-30 2020-10-23 光大兴陇信托有限责任公司 An application system transaction exception handling method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263809A (en) * 2010-05-31 2011-11-30 中国移动通信集团贵州有限公司 A method and device for implementing service security management and control based on an enterprise service bus
CN103188212A (en) * 2011-12-27 2013-07-03 上海博泰悦臻电子设备制造有限公司 Security management method and service terminal of electronic wallet, and electronic wallet system
CN105357233A (en) * 2014-08-18 2016-02-24 阿里巴巴集团控股有限公司 Remote call method and device
CN106559389A (en) * 2015-09-28 2017-04-05 阿里巴巴集团控股有限公司 A kind of Service Source issue, call method, device, system and cloud service platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263809A (en) * 2010-05-31 2011-11-30 中国移动通信集团贵州有限公司 A method and device for implementing service security management and control based on an enterprise service bus
CN103188212A (en) * 2011-12-27 2013-07-03 上海博泰悦臻电子设备制造有限公司 Security management method and service terminal of electronic wallet, and electronic wallet system
CN105357233A (en) * 2014-08-18 2016-02-24 阿里巴巴集团控股有限公司 Remote call method and device
CN106559389A (en) * 2015-09-28 2017-04-05 阿里巴巴集团控股有限公司 A kind of Service Source issue, call method, device, system and cloud service platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨博雄: "《无线嵌入式互联网》", 1 June 2015 *
黄山良: "《防控探测预警系统与技术》", 1 November 2015 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120723A (en) * 2018-10-24 2019-01-01 南京燚麒智能科技有限公司 A kind of method for interchanging data and system based on http protocol
CN109769265A (en) * 2019-01-08 2019-05-17 深圳市网心科技有限公司 Application flow management method, system, device and computer medium
CN111314315A (en) * 2020-01-20 2020-06-19 重庆富民银行股份有限公司 Open platform multi-dimensional safety control system and method
CN111240868A (en) * 2020-01-22 2020-06-05 阿里巴巴集团控股有限公司 Instance processing and calling method, device, system and storage medium
CN111240868B (en) * 2020-01-22 2024-04-02 阿里巴巴集团控股有限公司 Instance processing and calling method, device, system and storage medium
CN111813615A (en) * 2020-06-30 2020-10-23 光大兴陇信托有限责任公司 An application system transaction exception handling method
CN111813615B (en) * 2020-06-30 2024-02-23 光大兴陇信托有限责任公司 Transaction exception processing method for application system

Similar Documents

Publication Publication Date Title
US20220086196A1 (en) Method and system for integrating real time communication features in applications
CN106534107B (en) An Internet of Things message service system
US8843618B2 (en) Cloud service information overlay
US10659441B2 (en) Dynamically managing, from a centralized service, valid cipher suites allowed for secured sessions
CN107196954A (en) A kind of service access method, apparatus and system
US20170093700A1 (en) Device platform integrating disparate data sources
US9590999B2 (en) Preview serving from an external preview service
CN104348870A (en) Data management method and system of cloud storage system based on trusted timestamp
CN108769743B (en) Video playing control method, system, node and computer storage medium
CN113872940B (en) Access control method, device and equipment based on NC-Link
CN108920111B (en) Data sharing method and distributed data sharing system
CN112560003A (en) User authority management method and device
CN102377792A (en) Home network monitoring system based on WEB
JP5043953B2 (en) Resource transmission method and information providing method
CN116668557B (en) Data transmission method, system, electronic equipment and readable storage medium
CN114338682A (en) Flow identity mark transmission method and device, electronic equipment and storage medium
Cui Comparison of IoT application layer protocols
CN109660568B (en) Method, equipment and system for realizing network talkback security mechanism based on SRTP
CN110519239B (en) Protocol configuration method, device, equipment and readable storage medium
US9064289B2 (en) Service mediation model
CN114095496B (en) Terminal application processing method, edge cloud application server and system, medium
US20130024543A1 (en) Methods for generating multiple responses to a single request message and devices thereof
CN113259436B (en) Network request processing method and device
CN102510431B (en) Method, system, device and user terminal for obtaining remote resource
CN113992734A (en) Session connection method, device and equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922