CN107635022A - Across intranet and extranet service access methods and device - Google Patents

Across intranet and extranet service access methods and device Download PDF

Info

Publication number
CN107635022A
CN107635022A CN201610567634.4A CN201610567634A CN107635022A CN 107635022 A CN107635022 A CN 107635022A CN 201610567634 A CN201610567634 A CN 201610567634A CN 107635022 A CN107635022 A CN 107635022A
Authority
CN
China
Prior art keywords
service
isp
outer net
address information
intranet
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
CN201610567634.4A
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.)
Huawei Technologies Co Ltd
Huawei Software Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610567634.4A priority Critical patent/CN107635022A/en
Publication of CN107635022A publication Critical patent/CN107635022A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of across intranet and extranet service access methods and device.Including:ISP sends the service registration message for including the mapping relations between the Service name of the available service of ISP and the address information of ISP to service register center, wherein, the address information of ISP includes:The internal address information of the protocol IP that interconnects and Intranet port numbers between the inner-mesh network of ISP is represented, and, represent the outer net address informations of the protocol IP and outer net port numbers interconnected between the outer net network of ISP.Because ISP to service register center while have registered internal address information and outer net address information, realize that outer net service caller finds the service that the ISP in Intranet provides automatically, and the ISP in Intranet can be directly accessed to obtain required service, effectively increase security.

Description

Across intranet and extranet service access methods and device
Technical field
The present invention relates to the communication technology, more particularly to a kind of across intranet and extranet service access methods and device.
Background technology
Internet era, crushed to ensure that operation system is not accessed by magnanimity, while again in order to ensure higher resource Utilization rate, tradition application all start to migrate on cloud, and in addition to running environment can use cloud main frame, in general Technical Architecture is all abided by (Distribute Service Framework, it is referred to as from distributed service framework:DSF), because only that such framework The elastic telescopic applied on cloud could be realized.
Fig. 1 show DSF configuration diagram, as shown in figure 1, independent service register center is introduced in DSF, so as to take Being engaged in supplier can be by Intranet to service register center registration, so that service caller can subscribe to service register center feels emerging The service of interest, and the service list that can be accessed of service register center push is received, and then service caller provides from service Person calls required service, to realize the discovery of service and route.
And in mega project, because there is Distributed collaborative product development, strange land joint debugging is frequently necessary to, the needs between service Across public network Intranet mutually accesses.
Specifically, as shown in Figure 2:First, IP be (10.xx.xx.xx) ISP by DSF to service registry The service identifiers of oneself available service are registered at center, and form is generally the (Service name of the available service of ISP: The IP address of ISP), it is (service 1 in Fig. 2:10.xx.xx.xx);And then IP is the outer net of (14.145.xx.xx) Service caller can be mapped by the IP of DSF and gateway accesses service register center, is subscribed to service register center interested Service, and receive service register center push the service list that can be accessed;Intranet service caller with service due to noting Volume center can directly pass through DSF and access service register center with Intranet, and clothes interested are subscribed to service register center Business, and receive the service list that can be accessed of service register center push;Although outer net service caller and Intranet service are adjusted User can obtain the service identifiers of each service provider registers from service register center, but outer net service caller because With ISP in different segment, so outer net service caller can not access ISP, so as to it can not obtain needed for Service content.
In the prior art, by configuring two service register centers, so that outer net service caller can access place In the ISP of Intranet, to obtain required service.
Fig. 3 is shown in the prior art by configuring two service register centers, so that outer net service caller can To access the flow chart of the ISP in Intranet, as shown in Figure 3:
S1:ISP registers the service identifiers of oneself available service to Intranet service register center, and form is (the Service name of the available service of ISP:The IP address of internal network of ISP) be in figure:(service 1: 10.xx.xx.xx);
S2:ISP registers the service identifiers of oneself available service to outer net service register center, and form is (the Service name of the available service of ISP:The outer net IP address of ISP) be in figure:(service 1: 14.145.xx.xx);
S3:The mapping of the internal address information of gateway configuration service supplier and the outer net address information of ISP is closed System, realizes the mapping to internal address information by outer net address information, wherein, the internal address information of ISP includes clothes Be engaged in the Intranet IP and Intranet port numbers of supplier, the outer net address information of ISP include ISP outer net IP and Outer net port numbers;
S4:Outer net service caller subscribes to service interested to outer net service register center, and receives in service registry The information on services that can be accessed of heart push, form are:(Service name:The outer net IP address of ISP);
S5:Outer net service caller accesses ISP by the outer net IP address of ISP, and gateway is according to S2 Configuration the outer net IP address of ISP is changed into the IP address of internal network of ISP, realize to real Intranet service Access;
S6:Intranet service caller subscribes to service interested to service register center, and receives service register center and push away The information on services that can be accessed sent, form are:(Service name:The IP address of internal network of ISP);
S7:Intranet service caller directly accesses ISP by the information on services that S6 is obtained in the Intranet network segment.
By above-mentioned method can outer net service caller access in Intranet ISP, to obtain The service needed, but access of the ISP in Intranet to the outer net service register center in outer net occurs in S2, So as to which safety problem can be brought.
The content of the invention
The embodiment of the present invention provides a kind of across intranet and extranet service access methods and device, with overcome in the prior art in order to for The safety problem for causing outer net service caller to access the ISP in Intranet and bringing.
First aspect present invention provides a kind of across intranet and extranet service access methods, including:ISP is to service registry Center sends service registration message, and service registration message includes:The Service name of the available service of ISP and service Mapping relations between the address information of supplier, the address information of ISP include:The internal address of ISP Information and the outer net address information of ISP, the internal address information of ISP include:The Intranet of ISP The protocol IP and Intranet port numbers interconnected between network, the outer net address information of ISP include:ISP's is outer The protocol IP and outer net port numbers interconnected between net network.
In the present embodiment, because ISP to service register center while have registered internal address information and outer entoilage Location information, realize that outer net service caller finds the service that the ISP in Intranet provides automatically, and can directly access interior ISP in net effectively increases security to obtain required service.
In some embodiments of the invention, the above method also includes:ISP matches somebody with somebody to gateway send configuration message Putting message includes:Mapping relations between the internal address information of ISP and the outer net address information of ISP.
In the present embodiment, by configure the ISP in gateway internal address information and ISP it is outer Mapping relations between net address information, include the request message of outer net address information when gateway receives service caller transmission Afterwards, corresponding internal address information can be obtained by mapping relations, so as to which request message is passed through into corresponding interior entoilage Location information is sent to ISP, so as to avoid the situation that outer net directly accesses Intranet, effectively increases security.
In some embodiments of the invention, ISP receives the service invocation request forwarding message that gateway is sent, Service invocation request forwarding message includes:The first service name and first service name of the service of outer net service caller request are right The internal address information of the ISP answered;ISP determines service content corresponding with first service name;Service carries Donor sends service content corresponding with first service name to outer net service caller.
In the present embodiment, by configuring the internal address information of the ISP in gateway and the outer net of ISP Mapping relations between address information, include the request message of outer net address information when gateway receives service caller transmission Afterwards, corresponding internal address information can be obtained by mapping relations, so as to which request message is passed through into corresponding interior entoilage Location information is sent to ISP, so as to avoid the situation that outer net directly accesses Intranet, effectively increases security.
Second aspect of the present invention provides a kind of across intranet and extranet service access methods, including:
Service register center receives the service registration message that ISP sends, and service registration message includes:Service Mapping relations between the Service name of the available service of supplier and the address information of ISP, the ground of ISP Location information includes:The internal address information of ISP and the outer net address information of ISP, ISP's is interior Net address information includes:The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP, ISP's Outer net address information includes:The protocol IP and outer net port numbers interconnected between the outer net network of ISP;
Service register center preserves service registration information.
In the present embodiment, because ISP to service register center while have registered internal address information and outer entoilage Location information, realize that outer net service caller finds the service that the ISP in Intranet provides automatically, and can directly access interior ISP in net effectively increases security to obtain required service.
In some embodiments of the invention, after service register center preserves service registration information, in addition to:First, Service register center receives the first request message that outer net service caller is sent, and the first request message includes outer net service tune First keyword of user's required service;Then, service register center according to service registration message and the first keyword determine to A few Service name corresponding with the first keyword;Finally, service register center sends the first request to outer net service caller Response message, the first request response include:At least one Service name corresponding with the first keyword and each with first Mapping relations between the outer net address information of ISP corresponding to Service name corresponding to keyword.
In the present embodiment, the first request message that service register center can be sent according to outer net service caller, only At least one Service name corresponding with the first keyword and each corresponding with the first keyword is fed back to outer net service caller Mapping relations between the outer net address information of ISP corresponding to Service name, without appointing to outer net service caller feedback What message related to internal address information, data are carried out so as to reduce between service register center and outer net service caller Interactive time delay.
In some embodiments of the invention, after service register center preserves service registration information, in addition to:First, Service register center receives the second request message that Intranet service caller is sent, and the second request message includes Intranet service and adjusted Second keyword of user's required service;Then, service register center according to service registration message and the second keyword determine to A few Service name corresponding with the second keyword;Finally, service register center sends the second request to Intranet service caller Response message, the second request response include:At least one Service name corresponding with the second keyword and each with second Mapping relations between the internal address information of ISP corresponding to Service name corresponding to keyword.
In the present embodiment, the second request message that service register center can be sent according to Intranet service caller, only At least one Service name corresponding with the second keyword and each corresponding with the second keyword is fed back to Intranet service caller Mapping relations between the internal address information of ISP corresponding to Service name, without appointing to Intranet service caller feedback What message related to outer net address information, data are carried out so as to reduce between service register center and Intranet service caller Interactive time delay.
The aspect of the present invention three provides a kind of across intranet and extranet service access methods, including:First, outer net service caller configures The address of service register center is outer net address;Then, outer net service caller is sent out by outer net address to service register center The first request message is sent, the first request message includes:First keyword of outer net service caller required service, the first request Message is used at least one Service name corresponding with the first keyword that acquisition request service register center preserves and each with the Mapping relations between the outer net address information of ISP corresponding to Service name corresponding to one keyword, each closed with first The outer net address information of ISP corresponding to Service name corresponding to key word includes:Each service corresponding with the first keyword The protocol IP and outer net port numbers interconnected between the outer net network of ISP corresponding to name;Finally, outer net service caller The first request response that service register center is sent is received, the first request response includes:It is at least one with first The outer net address letter of Service name corresponding to keyword and each ISP corresponding to Service name corresponding with the first keyword Mapping relations between breath.
In the present embodiment, outer net service caller sends the first request message by outer net address to service register center, It is only anti-to outer net service caller so as to the first request message that service register center can be sent according to outer net service caller Present at least one Service name corresponding with the first keyword and each service corresponding to Service name corresponding with the first keyword carry Mapping relations between the outer net address information of donor, without any with internal address information phase to outer net service caller feedback The message of pass, so as to reduce the time delay that data interaction is carried out between service register center and outer net service caller.
In some embodiments of the invention, outer net service caller receives the request response that service register center is sent and disappeared After breath, in addition to:Outer net service caller sends first service call request message to gateway, wherein, first service calls Request message includes:The outer net address information of ISP corresponding to first service name and first service name, so that gateway Determined according to the outer net address information of ISP corresponding to configuration message and first service name corresponding with first service name The internal address information of ISP, and send service invocation request forwarding to ISP corresponding with first service name Message, service invocation request forwarding message include:The Intranet of ISP corresponding to first service name and first service name Address information, any one in the entitled at least one Service name corresponding with the first keyword of first service;Outer net service call Person receives the service content corresponding with first service name that ISP sends.
In the present embodiment, by configuring the internal address information of the ISP in gateway and the outer net of ISP Mapping relations between address information, include the request of outer net address information when gateway receives outer net service caller and sent and disappear After breath, corresponding internal address information can be obtained by mapping relations, so as to which request message is passed through into corresponding Intranet Address information is sent to ISP, so as to avoid the situation that outer net directly accesses Intranet, effectively increases security.
Fourth aspect present invention provides a kind of across intranet and extranet service access methods, including:First, Intranet service caller is matched somebody with somebody The address for putting service register center is internal address;Then, Intranet service caller sends the second request to service register center Message, the second request message include:Second keyword of the service needed for Intranet service caller, the second request message are used for At least one Service name corresponding with the second keyword for being preserved in acquisition request service register center and each crucial with second Mapping relations between the internal address information of ISP corresponding to Service name corresponding to word, each with the second keyword pair The internal address information of ISP corresponding to the Service name answered includes:Each with the second keyword corresponding to Service name it is corresponding ISP inner-mesh network between the protocol IP and Intranet port numbers that interconnect;Finally, Intranet service caller receives clothes The second request response that business registration center sends, the second request response include:At least one and the second keyword Between corresponding Service name and each the outer net address information of ISP corresponding to Service name corresponding with the second keyword Mapping relations.
In the present embodiment, Intranet service caller sends the second request message to service register center, so as to service note The second request message that volume center can be sent according to Intranet service caller, only fed back to Intranet service caller at least one Service name corresponding with the second keyword and each Intranet of ISP corresponding to Service name corresponding with the second keyword Mapping relations between address information, without feeding back any message related to outer net address information to Intranet service caller, So as to reduce the time delay that data interaction is carried out between service register center and Intranet service caller.
In some embodiments of the invention, Intranet service caller receives the second request that service register center is sent and rung After answering message, in addition to:Intranet service caller sends second service call request message to ISP, wherein, the Two service invocation request message include:The second service name and second service name of the service of Intranet service caller request are corresponding ISP internal address information;Intranet service caller receive ISP send with Intranet service caller Service content corresponding to the second service name of the service of request.
Fifth aspect present invention provides a kind of across intranet and extranet service access apparatus, and device is applied to the service of ISP In device, including:Sending module, for sending service registration message to service register center, service registration message includes:Service Mapping relations between the Service name of the available service of supplier and the address information of ISP, the ground of ISP Location information includes:The internal address information of ISP and the outer net address information of ISP, ISP's is interior Net address information includes:The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP, ISP's Outer net address information includes:The protocol IP and outer net port numbers interconnected between the outer net network of ISP.
In some embodiments of the invention, sending module, it is additionally operable to, to gateway send configuration message, configure message package Include:Mapping relations between the internal address information of ISP and the outer net address information of ISP.
In some embodiments of the invention, device also includes:Receiving module and determining module,
Receiving module, the service invocation request for receiving gateway transmission forward message, service invocation request forwarding message Include:The Intranet of ISP corresponding to the first service name and first service name of the service of outer net service caller request Address information;
Determining module, for determining service content corresponding with first service name;
Sending module, it is additionally operable to send service content corresponding with first service name to outer net service caller.
Sixth aspect present invention provides a kind of across intranet and extranet service access apparatus, and across intranet and extranet service access apparatus are applied to In service register center, device includes:
Receiving module, for receiving the service registration message of ISP's transmission, service registration message includes:Service Mapping relations between the Service name of the available service of supplier and the address information of ISP, the ground of ISP Location information includes:The internal address information of ISP and the outer net address information of ISP, ISP's is interior Net address information includes:The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP, ISP's Outer net address information includes:The protocol IP and outer net port numbers interconnected between the outer net network of ISP;
Preserving module, for preserving service registration information.
In some embodiments of the invention, device also includes:Determining module and sending module,
Receiving module, it is additionally operable to after preserving module preserves service registration information, receives outer net service caller and send The first request message, the first request message includes the first keyword of outer net service caller required service;
Determining module, it is at least one corresponding with the first keyword for being determined according to service registration message and the first keyword Service name;
Sending module, for sending the first request response to outer net service caller, in the first request response Including:Service corresponding at least one Service name corresponding with the first keyword and each Service name corresponding with the first keyword Mapping relations between the outer net address information of supplier.
In some embodiments of the invention, receiving module is additionally operable to:After preserving module preserves service registration information, The second request message that Intranet service caller is sent is received, the second request message includes Intranet service caller required service The second keyword;
Determining module, it is additionally operable to determine at least one and the second keyword pair according to service registration message and the second keyword The Service name answered;
Service register center sends the second request response to Intranet service caller, is wrapped in the second request response Include:At least one Service name corresponding with the second keyword and each service corresponding to Service name corresponding with the second keyword carry Mapping relations between the internal address information of donor.
Seventh aspect present invention provides a kind of across intranet and extranet service access apparatus, and across intranet and extranet service access apparatus are applied to In the server of outer net service caller, device includes:
Configuration module, the address for configuration service registration center are outer net address;
Sending module, for sending the first request message, the first request message to service register center by outer net address Include:First keyword of outer net service caller required service, the first request message are used in acquisition request service registry At least one Service name corresponding with the first keyword that the heart preserves and each corresponding to Service name corresponding with the first keyword Mapping relations between the outer net address information of ISP, each service corresponding to Service name corresponding with the first keyword The outer net address information of supplier includes:Each outer net net of ISP corresponding to Service name corresponding with the first keyword The protocol IP and outer net port numbers interconnected between network;
Receiving module, for receiving the first request response of service register center transmission, the first request response Include:Clothes corresponding at least one Service name corresponding with the first keyword and each Service name corresponding with the first keyword Mapping relations between the outer net address information of supplier of being engaged in.
In some embodiments of the invention, sending module, it is additionally operable to receive service register center transmission in receiving module Request response after, to gateway send first service call request message, wherein, in first service call request message Including:The outer net address information of ISP corresponding to first service name and first service name, so that gateway disappears according to configuration The outer net address information of ISP determines ISP corresponding with first service name corresponding to breath and first service name Internal address information, and to ISP corresponding with first service name send service invocation request forwarding message, service Call request forwarding message includes:The internal address information of ISP corresponding to first service name and first service name, Any one in the entitled at least one Service name corresponding with the first keyword of first service;
Receiving module, it is additionally operable to receive the service content corresponding with first service name that ISP sends.
Eighth aspect present invention provides a kind of across intranet and extranet service access apparatus, and across intranet and extranet service access apparatus are applied to In the server of Intranet service caller, device includes:
Configuration module, the address for configuration service registration center are internal address;
Sending module, for sending the second request message to service register center, the second request message includes:Intranet takes Be engaged in caller needed for service the second keyword, the second request message be used for acquisition request service register center in preserve to A few Service name corresponding with the second keyword and each ISP corresponding to Service name corresponding with the second keyword Internal address information between mapping relations, each ISP's corresponding to Service name corresponding with the second keyword is interior Net address information includes:Each interconnected between the inner-mesh network of ISP corresponding to Service name corresponding with the second keyword Protocol IP and Intranet port numbers;
Receiving module, for receiving the second request response of service register center transmission, the second request response Include:Clothes corresponding at least one Service name corresponding with the second keyword and each Service name corresponding with the second keyword Mapping relations between the outer net address information of supplier of being engaged in.
In some embodiments of the invention, sending module, it is additionally operable to receive service register center transmission in receiving module The second request response after, to ISP send second service call request message, wherein, second service call Request message includes:Service corresponding to the second service name and second service name of the service of Intranet service caller request provides The internal address information of person;
Receiving module, it is additionally operable to receive the second clothes with the service of Intranet service caller request that ISP sends Service content corresponding to name of being engaged in.
In the embodiment of the present invention, ISP sends to service register center includes the available service of ISP Service name and ISP address information between mapping relations service registration message, wherein, ISP's Address information includes:Represent the internal address letter of the protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP Breath, and, represent the outer net address informations of the protocol IP and outer net port numbers interconnected between the outer net network of ISP.By Internal address information and outer net address information are have registered simultaneously to service register center in ISP, realizes that outer net service is adjusted User has found the service that the ISP in Intranet provides automatically, and can directly access the ISP in Intranet to obtain Required service, effectively increases security.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 show DSF configuration diagram;
Fig. 2 show the schematic diagram that across public network Intranet mutually accesses;
Fig. 3 is shown in the prior art by configuring two service register centers;
Fig. 4 show system architecture diagram provided in an embodiment of the present invention;
Fig. 5 show the flow chart provided in an embodiment of the present invention across intranet and extranet service access method;
Fig. 6 show the concrete application schematic diagram provided in an embodiment of the present invention across intranet and extranet service access method;
Fig. 7 show across intranet and extranet service access apparatus one provided in an embodiment of the present invention;
Fig. 8 show across intranet and extranet service access apparatus two provided in an embodiment of the present invention;
Fig. 9 show across intranet and extranet service access apparatus three provided in an embodiment of the present invention;
Figure 10 show across intranet and extranet service access apparatus four provided in an embodiment of the present invention;
Figure 11 show across intranet and extranet service access apparatus five provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is described.
The network architecture and business scenario of description of the embodiment of the present invention are in order to which more clearly the explanation present invention is implemented The technical scheme of example, does not form the restriction for technical scheme provided in an embodiment of the present invention, those of ordinary skill in the art Understand, with the differentiation of the network architecture and the appearance of new business scene, technical scheme provided in an embodiment of the present invention is for similar Technical problem, it is equally applicable.
Specification, claims and the term " first " in above-mentioned accompanying drawing of the present invention, " second ", etc. be to be used to distinguish Similar object, without for describing specific order or precedence.It should be appreciated that the data so used are in appropriate feelings Can be exchanged under condition, so as to embodiments of the invention example described herein can with except illustrate or describe herein those with Outer order is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover non-exclusive bag Contain, for example, contain the process of series of steps, method, need not comprising a series of units, the system of module, product or equipment Be limited to those steps or the unit clearly listed, but may include not list clearly or for these processes, method, The intrinsic other steps of product or equipment or unit.Involved " at least one " refers to one kind in the present invention, or a variety of The meaning.
Several nouns involved in the embodiment of the present invention are explained first:
Remote procedure call protocol (Remote Procedure Call Protocol, referred to as:RPC):It is a kind of logical Cross network and service is asked from remote computer program, the agreement without understanding underlying network technology.RPC agreements assume certain The presence of a little host-host protocols, such as:Transmission control protocol (Transmission Control Protocol, referred to as:TCP) or UDP (User Datagram Protocol, referred to as:UDP), information data is carried between signal procedure. (Open System Interconnection, it is referred to as in open system interconnection:OSI) in network communication models, RPC across Transport layer and application layer are got over.The application program that RPC to develop including network distribution type multiprogram is more prone to.
Distributed service framework (Distribute Service Framework, referred to as:DSF):It is to RPC frameworks Further encapsulation, RPC be typically only capable of solve two processes between point-to-point telecommunication, and Distributed Services access framework except Outside point-to-point telecommunication framework, the metadata schema of service is also defined, while introduces independent service register center, Help ISP to realize that service is registered to Centroid, support service caller obtains from service register center can access Service list, realize discovery and the route of service.
Internet era, because Operational Visit amount is difficult precognition, crushed together to ensure that operation system is not accessed by magnanimity When again in order to ensure higher resource utilization, tradition application all starts to migrate on cloud, except running environment can use cloud master Outside machine, in general Technical Architecture all defers to distributed stateless framework, is applied because only that such framework could be realized on cloud Elastic telescopic.
Further, in order to realize system decoupling, improve the production capacity of delivery, realize more team's concurrent developments, it is quick on Line, distributed structure/architecture is further to micro services architecture evolution.The important technology feature of micro services framework is exactly One function one Process, mutually accessed by telecommunication between process, so the RPC communication framework of light weight turns into the core skill of micro services framework Art.Technical background of the present invention is exactly to solve the technical problem that the RPC communication framework of light weight is encountered, namely the RPC of light weight The technical problem that DSF frameworks in communications framework are encountered.
The present invention uses Intranet by the improvement to DSF frameworks when being registered using ISP to service register center The method that address information and outer net address information are registered simultaneously, while according to the mapping of internal address information and outer net address information Relation configures gateway, realizes that outer net service caller finds the service that the ISP in Intranet provides automatically, and can be direct The ISP in Intranet is accessed to obtain required service, without in access of the Intranet to outer net, effectively improving Security.
Fig. 4 show system architecture diagram provided in an embodiment of the present invention, as shown in figure 4, the framework includes:Outer net service Caller, ISP, service register center, RPC communication framework and RPCSDK,
Wherein, outer net service caller:For the service for calling ISP to provide;
ISP:For providing service;
RPC communication framework:Communication between the process of being responsible for, the access communication between servicing;
RPCSDK:The Core Feature such as embedded SDK, the responsible registration serviced, subscription, push, route, stream control;
Service register center:It is responsible for registration, storage and the push of service, is responsible for supervising state of a process where cluster service Control, reach the standard grade with it is offline.
The implication of subscription and push in this framework is identical with Fig. 2, has different statement sides in the examples below Formula, but purpose is identical.
The idiographic flow provided by the invention across intranet and extranet service access method is shown below based on above-mentioned framework.
Fig. 5 show the flow chart provided in an embodiment of the present invention across intranet and extranet service access method, as shown in figure 5, institute The network element for stating method application has:ISP, service register center, gateway, outer net service caller and Intranet service call Person, this method include:
S101:ISP sends service registration message to service register center, and service registration message includes:Service Mapping relations between the Service name of the available service of supplier and the address information of ISP, the ground of ISP Location information includes:The internal address information of ISP and the outer net address information of ISP, ISP's is interior Net address information includes:The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP, ISP's Outer net address information includes:The protocol IP and outer net port numbers interconnected between the outer net network of ISP.
S102:Service register center receives the service registration message that ISP sends, and service registration message includes: Mapping relations between the Service name of the available service of ISP and the address information of ISP, ISP Address information include:The internal address information of ISP and the outer net address information of ISP, ISP Internal address information include:The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP, service provide The outer net address information of person includes:The protocol IP and outer net port numbers interconnected between the outer net network of ISP;And service Registration center preserves service registration information.
In actual applications, there can be multiple ISPs, therefore, service register center can receive multiple services and provide The service registration message that person sends, can now safeguard mapping table as shown in table 1 in service register center, when receiving After the service registration message that any one ISP sends, the content of service registration message need to be only added in table 1:
Table 1
In order to allow ISP to learn, being serviced registration center is properly received for the service registration message of transmission, and avoids ISP resends the service registration message,
In a kind of achievable mode of the present invention, a time threshold can be preset, when ISP is to service registry After center sends the service registration message, in above-mentioned time threshold, if being not received by service register center transmission Any message, then default service registration center be successfully received the service registration message.
In another achievable mode of invention, service register center can send service registry to ISP and ring Message is answered, the service registry response message is used to indicate that service register center has been successfully received service registration message, and when clothes Business supplier receives the service registry response message that service register center is sent.
The transmission time of above-mentioned service registration message can be:Service register center is received after service registration message And before service register center preserves the service registration message that receives;Or, service register center preserves the service note received After volume message, the present invention is not any limitation as to it.
It is worth noting that, the service register center in the present embodiment refers to Intranet service register center.
After ISP sends service registration message to service register center, methods described also includes:
S103:ISP is also needed to gateway send configuration message, wherein, configuration message includes:ISP's Mapping relations between internal address information and the outer net address information of ISP.
S104:Gateway receives the configuration message that ISP sends, and preserves.
Can be safeguarded in a kind of achievable mode, in gateway one be used for preserve configure the table of message, when receiving After the configuration message that ISP sends, directly the configuration message is stored in the table of maintenance, the table can be the shape of table 2 Formula:
Table 2
The internal address information of ISP 1 The outer net address information of ISP 1
ISP n internal address information ISP n internal address information
So far, configuration process is completed, and after the completion of configuration process introduced below, outer net service caller obtains from ISP Take the flow chart of required service:
It is emerging that oneself sense is subscribed in the service registration message that outer net service caller needs to preserve from service register center first The service of interest, and receive the Service name and the clothes that include the service interested of outer net service caller of service register center transmission Mapping relations between the outer net address information of ISP corresponding to name of being engaged in.Specifically:
S201:The address of outer net service caller configuration service registration center is outer net address;
In this step, outer net service caller can be outer net address by the address of DSF configuration services registration center, And in this step, outer net service caller can the address of explicitly configuration service registration center be outer net address.
S202:Outer net service caller sends the first request message by outer net address to service register center, and first please Message is asked to include:First keyword of outer net service caller required service, the first request message are used for acquisition request service At least one Service name for including the first keyword that registration center preserves is corresponding with each Service name comprising the first keyword ISP outer net address information between mapping relations, service corresponding to each Service name comprising the first keyword The outer net address information of supplier includes:The outer net network of ISP corresponding to each Service name comprising the first keyword Between the protocol IP and outer net port numbers that interconnect;
When service register center receive that outer net service caller sends include outer net service caller required service the After first request message of one keyword, service register center determines at least one according to service registration message and the first keyword The Service name of the first keyword is included, and then, perform step 203:
S203:Service register center sends the first request response to outer net service caller, and the first request response disappears Breath includes:Corresponding at least one Service name corresponding with the first keyword and each Service name corresponding with the first keyword Mapping relations between the outer net address information of ISP.
So that outer net service caller receives the first request response that service register center is sent.
Such as:First keyword of outer net service caller required service is film, now, what service register center preserved For table 3,
Table 3
After service register center receives the first request message, search it is corresponding with film service entitled Hong Kong and Taiwan's film and Domestic film, then service register center is sent to outer net service caller includes (Hong Kong and Taiwan's film and outer net address information 1, state Shadow and the first request response of outer net address information 2 are produced electricity, because in S201, outer net service caller configuration service is noted The address at volume center is outer net address, so now only sending outer net address information corresponding to ISP.
When outer net service caller receive service register center transmission the first request response after preserve this first Request response, due to including multiple Service names in first request response, now, outer net service caller can be with Oneself service interested is therefrom selected, and service content corresponding to the service is obtained from corresponding ISP.Specifically:
S204:Outer net service caller sends first service call request message to gateway, wherein, first service calls please Message is asked to include:The outer net address information of ISP corresponding to first service name and first service name, so that gateway root Clothes corresponding with first service name are determined according to the outer net address information of ISP corresponding to configuration message and first service name The internal address information of business supplier, and send service invocation request forwarding to ISP corresponding with first service name and disappear Breath, service invocation request forwarding message include:The interior entoilage of ISP corresponding to first service name and first service name Location information, any one in the entitled at least one Service name for including the first keyword of first service;
S205:ISP receives the service invocation request forwarding message that gateway is sent, and service invocation request forwarding disappears Breath includes:ISP's is interior corresponding to the first service name and first service name of the service of outer net service caller request Net address information.
After the service invocation request forwarding message that gateway is sent is received, ISP determines corresponding with first service name Service content.
S206:ISP sends service content corresponding with first service name to outer net service caller.
So that outer net service caller can receive the service content corresponding with first service name of ISP's transmission, So as to realize access of the outer net service caller to the ISP in Intranet.
Continue, according to above-mentioned example, after outer net service caller receives the first request response, it is found that sense is emerging Interest for domestic film, now, outer net service caller needs to call content corresponding with domestic film, but due to domestic film The ISP 2 at place is in Intranet, and therefore, now, outer net service caller can send first service calling to gateway please Message is sought, the first service call request message kind includes outer net address information 2 corresponding to domestic film and domestic film, works as net After pass receives the first service call request message, the configuration message in S104, it is determined that corresponding with outer net address information 2 Internal address information 2, and to ISP 2 send service invocation request forwarding message, the service invocation request forwarding disappears Breath includes:Internal address information 2 corresponding to domestic film and domestic film, asked when ISP 2 receives service call After seeking forwarding message, it is determined that content corresponding with domestic film, and it is corresponding with domestic film to the transmission of outer net service caller Content, and then outer net service caller receives the content corresponding with domestic film that ISP 2 sends, so as to realize outer net Access of the service caller to the ISP 2 in Intranet, it is notable that now the ISP in Fig. 5 is ISP 2.
Above-mentioned step 201 to step 206 is the execution flow chart related to outer net service caller, configuration introduced below After the completion of process, Intranet service caller obtains the flow chart of required service from ISP:
S301:The address of Intranet service caller configuration service registration center is internal address;
In this step, outer net service caller can be internal address by the address of DSF configuration services registration center, And in this step, Intranet service caller can the address of explicitly configuration service registration center be internal address.
S302:The Intranet service caller sends the second request message to the service register center, and described second please Message is asked to include:Second keyword of the service needed for the Intranet service caller, second request message is used for please Ask and obtain at least one Service name comprising second keyword preserved in the service register center and each include institute The mapping relations between the internal address information of ISP corresponding to the Service name of the second keyword are stated, it is each comprising described The internal address information of ISP corresponding to the Service name of second keyword includes:Each comprising second keyword The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP corresponding to Service name;
After service register center receives the second request message that Intranet service caller is sent, service register center according to Service registration message and the second keyword determine it is at least one include the Service name of the second keyword, and perform step 303:
S303:Service register center sends the second request response to Intranet service caller, the second request response Message includes:At least one Service name for including the second keyword clothes corresponding with each Service name comprising the second keyword Mapping relations between the internal address information of supplier of being engaged in;
So that Intranet service caller receives the second request response that service register center is sent, and preserve second and ask Seek response message.
Continue the example according to above-mentioned table 3, the first keyword of Intranet service caller required service is variety, works as service After registration center receives the second request message, search it is corresponding with variety services entitled variety, then service register center to Intranet service caller sends the first request response for including (variety with internal address information 3), interior due in S301 The address of net service caller configuration service registration center is internal address, so now only sending corresponding to ISP Internal address information.
When Intranet service caller receive service register center transmission the first request response after preserve this first Request response, due to including multiple Service names in first request response, now, Intranet service caller can be with Oneself service interested is therefrom selected, and service content corresponding to the service is obtained from corresponding ISP.Specifically:
S304:Intranet service caller sends second service call request message to ISP, wherein, second service Call request message includes:Serviced corresponding to the second service name and second service name of the service of Intranet service caller request The internal address information of supplier;So that ISP receives the second service call request that Intranet service caller is sent and disappeared Cease and determine service content corresponding with second service name.
S305:ISP sends service content corresponding with second service name to Intranet service caller.
So that Intranet service caller can receive the service content corresponding with first service name of ISP's transmission, So as to realize access of the Intranet service caller to the ISP in Intranet.
Continue according to above-mentioned example, after Intranet service caller receives the second request response, Intranet service Caller needs to call content corresponding with variety, but because the ISP 3 where variety is in Intranet, now, Intranet Service caller directly can send second service call request message, the second service call request message to ISP 3 Kind includes internal address information 3 corresponding to variety and variety, when ISP 3 receives second service call request message Afterwards, it is determined that content corresponding with variety, and content corresponding with variety is sent to Intranet service caller, when Intranet service call Person receives the content corresponding with variety that ISP 3 sends, so as to realize Intranet service caller to the clothes in Intranet The access of business supplier 3, it is notable that now the ISP in Fig. 5 is ISP 3.
In the present embodiment, ISP sends the clothes for including the available service of ISP to service register center The service registration message of mapping relations between name of being engaged in and the address information of ISP, wherein, the address of ISP Information includes:The internal address information of the protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP is represented, And represent the outer net address information of the protocol IP and outer net port numbers interconnected between the outer net network of ISP.Due to ISP have registered internal address information and outer net address information simultaneously to service register center, realize outer net service call Person has found the service that the ISP in Intranet provides automatically, and can directly access the ISP in Intranet to obtain The service needed, effectively increases security.
Fig. 6 show the concrete application schematic diagram provided in an embodiment of the present invention across intranet and extranet service access method, with reference to Fig. 4 and Fig. 5 description, as shown in fig. 6,
S11:ISP sends service registration message by DSF to Intranet service register center, and form is (service carries The Service name of the available service of donor:The outer net address information of the internal address information service provider of ISP) figure In be:(service 1:10.xx.xx.xx 14.145.xx.xx);
S12:ISP by DSF to gateway send configuration message so that gateway takes according to the configuration message arrangement The mapping relations of the internal address information of supplier of being engaged in and the outer net address information of ISP;
S13:The Intranet service register center address that outer net service caller explicitly configures DSF is outer net address (in figure It is not shown);
S14:Outer net service caller subscribes to service interested to Intranet service register center, with to Intranet service registry Center sends the first request message because step S13 configurations is outer net address, DSF from Intranet service register center from It is dynamic to obtain (Service name:Outer net IP) as information give outer net service caller, be (service 1 in figure:14.145.xx.xx);
S15:The service that outer net service caller is obtained by DSF invocation steps S14, gateway is according to step S12 by outer net Address information is gone in internal address information, realizes the target of extranet access Intranet service;
S16:The Intranet service register center address that Intranet service caller explicitly configures DSF is internal address (in figure It is not shown);
S17:Intranet service caller subscribes to service interested to Intranet service register center, with to Intranet service registry Center sends the second request message, and receives the information on services that can be accessed of Intranet service register center push, because step S16 configurations are internal address, so DSF obtains (Service name automatically from Intranet service register center:Intranet IP) such believe Cease and give Intranet service caller, be (service 1 in figure:10.xx.xx.xx);;
S18:The service that Intranet service caller is obtained by DSF invocation steps S17, because all in Intranet, directly Receiving is asked.
The detailed step of information exchange refers to embodiment corresponding to Fig. 5 in above-described embodiment, and the present embodiment repeats no more.
It is worth noting that, the Service name corresponding with the first keyword described in the embodiment of the present invention, can be to include The Service name of first keyword, or with the first key word type identical Service name, such as:First keyword is electricity Shadow, then Service name corresponding with the first keyword can be Hong Kong and Taiwan's film, all birds paying homage to the phoenix, clothes corresponding with the second keyword Name of being engaged in is similar to the above.
Fig. 7 show across intranet and extranet service access apparatus one provided in an embodiment of the present invention, the device that the present embodiment provides Applied in the server of ISP, including:
Sending module 21, for sending service registration message to service register center, the service registration message includes: Mapping relations between the Service name of the available service of ISP and the address information of the ISP, institute Stating the address information of ISP includes:The internal address information of the ISP and the outer net of the ISP Address information, the internal address information of the ISP include:Interconnected between the inner-mesh network of the ISP Protocol IP and Intranet port numbers, the outer net address information of the ISP include:The outer net network of the ISP Between the protocol IP and outer net port numbers that interconnect.
Optionally, the sending module 21, is additionally operable to:
To gateway send configuration message, the configuration message includes:The internal address information of the ISP and institute State the mapping relations between the outer net address information of ISP.
Above-mentioned device also includes:Receiving module 22 and determining module 23,
The receiving module 22, the service invocation request for receiving gateway transmission forward message, and the service call please Forwarding message is asked to include:The first service name and the first service name of the service of the outer net service caller request are corresponding ISP internal address information;
The determining module 23, for determining service content corresponding with the first service name;
The sending module 21, it is additionally operable to send clothes corresponding with the first service name to the outer net service caller Business content.
The device of the present embodiment, it can be used for performing the ISP as shown in above-mentioned embodiment and perform across intranet and extranet clothes The technical scheme for access method embodiment of being engaged in, its implementing principle and technical effect is similar, and here is omitted.
Fig. 8 show across intranet and extranet service access apparatus two provided in an embodiment of the present invention, this implementation provide across inside and outside Net service access apparatus is applied in service register center, as shown in figure 8, described device includes:
Receiving module 31, for receiving the service registration message of ISP's transmission, wrapped in the service registration message Include:Mapping between the Service name of the available service of ISP and the address information of the ISP is closed System, the address information of the ISP include:The internal address information of the ISP and the ISP Outer net address information, the internal address information of the ISP includes:Between the inner-mesh network of the ISP The protocol IP and Intranet port numbers of interconnection, the outer net address information of the ISP include:The ISP's is outer The protocol IP and outer net port numbers interconnected between net network;
Preserving module 32, for preserving the service registration information.
Fig. 9 show across intranet and extranet service access apparatus three provided in an embodiment of the present invention, as shown in figure 9, in Fig. 8 base On plinth, above-mentioned device also includes:Determining module 33 and sending module 34,
The receiving module 31, it is additionally operable to after the preserving module 32 preserves the service registration information, receives outer The first request message that net service caller is sent, first request message include taking needed for the outer net service caller First keyword of business;
The determining module 33, for according to the service registration message and first keyword determine it is at least one with Service name corresponding to first keyword;
The sending module 34, for the outer net service caller send the first request response, described first Request response includes:At least one Service name corresponding with first keyword and each with first keyword Mapping relations between the outer net address information of ISP corresponding to corresponding Service name.
Optionally, the receiving module 31 is additionally operable to:After the preserving module 32 preserves the service registration information, The second request message that Intranet service caller is sent is received, second request message includes the Intranet service caller Second keyword of required service;
The determining module 33, it is additionally operable to be determined according to the service registration message and second keyword at least one Service name corresponding with second keyword;
The service register center sends the second request response, second request to the Intranet service caller Response message includes:At least one Service name corresponding to second keyword and each corresponding with second keyword Service name corresponding to ISP internal address information between mapping relations.
The device of the present embodiment, it can be used for performing the service register center as shown in above-mentioned embodiment and perform across intranet and extranet The technical scheme of service access method embodiment, its implementing principle and technical effect is similar, and here is omitted.
Figure 10 show across intranet and extranet service access apparatus four provided in an embodiment of the present invention, as shown in Figure 10, this implementation Across the intranet and extranet service access apparatus that example provides are applied in the server of outer net service caller, and described device includes:
Configuration module 41, the address for configuration service registration center are outer net address;
Sending module 42, for sending the first request message, institute to the service register center by the outer net address Stating the first request message includes:First keyword of the outer net service caller required service, first request message For at least one Service name corresponding with first keyword of service register center preservation described in acquisition request and each Mapping relations between the outer net address information of ISP corresponding to Service name corresponding with first keyword, each The outer net address information of the ISP includes corresponding to Service name corresponding with first keyword:Each with it is described The protocol IP and outer net port numbers interconnected between the outer net network of ISP corresponding to Service name corresponding to first keyword;
Receiving module 43, the first request response sent for receiving the service register center, described first please Response message is asked to include:At least one Service name corresponding with first keyword and each with first keyword pair Mapping relations between the outer net address information of ISP corresponding to the Service name answered.
Optionally, the sending module 42, it is additionally operable to receive the service register center transmission in the receiving module 43 Request response after, to gateway send first service call request message, wherein, the first service call request disappears Breath includes:The outer net address information of ISP corresponding to first service name and the first service name, so that the net The outer net address information for closing the ISP according to corresponding to configuration message and the first service name determines and the described first clothes The internal address information of ISP corresponding to name of being engaged in, and send and take to ISP corresponding with the first service name Business call request forwarding message, the service invocation request forwarding message include:The first service name and first clothes The internal address information of ISP corresponding to name of being engaged in, the first service are entitled at least one with first keyword pair Any one in the Service name answered;
The receiving module 43, it is additionally operable to receive the clothes corresponding with the first service name that the ISP sends Business content.
The device of the present embodiment, it can be used for performing the outer net service caller as shown in above-mentioned embodiment and perform across inside and outside The technical scheme of net service access method embodiment, its implementing principle and technical effect is similar, and here is omitted.
Figure 11 show across intranet and extranet service access apparatus five provided in an embodiment of the present invention, as shown in figure 11, this implementation Across the intranet and extranet service access apparatus that example provides are applied in the server of Intranet service caller, and described device includes:
Configuration module 51, the address for configuration service registration center are internal address;
Sending module 52, for sending the second request message to the service register center, in second request message Including:Second keyword of the service needed for the Intranet service caller, second request message are used for acquisition request institute State at least one Service name corresponding with second keyword preserved in service register center and each closed with described second Mapping relations between the internal address information of ISP corresponding to Service name corresponding to key word, each closed with described second The internal address information of ISP corresponding to Service name corresponding to key word includes:It is each corresponding with second keyword The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP corresponding to Service name;
Receiving module 53, the second request response sent for receiving the service register center, described second please Response message is asked to include:At least one Service name corresponding with second keyword and each with second keyword pair Mapping relations between the outer net address information of ISP corresponding to the Service name answered.
Optionally, the sending module 52, it is additionally operable to receive the service register center transmission in the receiving module 53 The second request response after, to ISP send second service call request message, wherein, the second service Call request message includes:The second service name and the second service name of the service of the Intranet service caller request are right The internal address information of the ISP answered;
The receiving module 53, it is additionally operable to receive asking with the Intranet service caller for ISP's transmission Service second service name corresponding to service content.
The device of the present embodiment, it can be used for performing the Intranet service caller as shown in above-mentioned embodiment and perform across inside and outside The technical scheme of net service access method embodiment, its implementing principle and technical effect is similar, and here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:Read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD Etc. it is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (20)

  1. A kind of 1. across intranet and extranet service access methods, it is characterised in that including:
    ISP sends service registration message to service register center, and the service registration message includes:The service Mapping relations between the Service name of the available service of supplier and the address information of the ISP, the service carry The address information of donor includes:The internal address information of the ISP and the outer net address letter of the ISP Breath, the internal address information of the ISP include:The protocol IP interconnected between the inner-mesh network of the ISP With Intranet port numbers, the outer net address information of the ISP includes:Between the outer net network of the ISP mutually Protocol IP and outer net port numbers even.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    The ISP includes to gateway send configuration message, the configuration message:The interior entoilage of the ISP Mapping relations between location information and the outer net address information of the ISP.
  3. 3. according to the method for claim 2, it is characterised in that
    The ISP receives the service invocation request forwarding message that the gateway is sent, the service invocation request forwarding Message includes:Serviced corresponding to the first service name and the first service name of the service of the outer net service caller request The internal address information of supplier;
    The ISP determines service content corresponding with the first service name;
    The ISP sends service content corresponding with the first service name to the outer net service caller.
  4. A kind of 4. across intranet and extranet service access methods, it is characterised in that including:
    Service register center receives the service registration message that ISP sends, and the service registration message includes:It is described Mapping relations between the Service name of the available service of ISP and the address information of the ISP, the clothes The address information of business supplier includes:The internal address information of the ISP and the outer net address of the ISP Information, the internal address information of the ISP include:The agreement interconnected between the inner-mesh network of the ISP IP and Intranet port numbers, the outer net address information of the ISP include:Between the outer net network of the ISP The protocol IP and outer net port numbers of interconnection;
    The service register center preserves the service registration information.
  5. 5. according to the method for claim 4, it is characterised in that the service register center preserves the service registration information Afterwards, in addition to:
    The service register center receives the first request message that outer net service caller is sent, and is wrapped in first request message Include the first keyword of the outer net service caller required service;
    The service register center determines at least one with described the according to the service registration message and first keyword Service name corresponding to one keyword;
    The service register center sends the first request response, the first request response to the outer net service caller Message includes:At least one Service name corresponding with first keyword and each clothes corresponding with first keyword Mapping relations between the outer net address information of ISP corresponding to name of being engaged in.
  6. 6. the method according to claim 4 or 5, it is characterised in that the service register center preserves the service registry After information, in addition to:
    The service register center receives the second request message that Intranet service caller is sent, and is wrapped in second request message Include the second keyword of the Intranet service caller required service;
    The service register center determines at least one with described the according to the service registration message and second keyword Service name corresponding to two keywords;
    The service register center sends the second request response, the second request response to the Intranet service caller Message includes:At least one Service name corresponding with second keyword and each clothes corresponding with second keyword Mapping relations between the internal address information of ISP corresponding to name of being engaged in.
  7. A kind of 7. across intranet and extranet service access methods, it is characterised in that including:
    The address of outer net service caller configuration service registration center is outer net address;
    The outer net service caller sends the first request message by the outer net address to the service register center, described First request message includes:First keyword of the outer net service caller required service, first request message are used In described in acquisition request service register center preserve at least one Service name corresponding with first keyword and each with Mapping relations between the outer net address information of ISP corresponding to Service name corresponding to first keyword, Mei Geyu The outer net address information of the ISP includes corresponding to Service name corresponding to first keyword:Each with described The protocol IP and outer net port numbers interconnected between the outer net network of ISP corresponding to Service name corresponding to one keyword;
    The outer net service caller receives the first request response that the service register center is sent, first request Response message includes:At least one Service name corresponding to first keyword and each corresponding with first keyword Service name corresponding to ISP outer net address information between mapping relations.
  8. 8. according to the method for claim 7, it is characterised in that the outer net service caller is received in the service registry After the request response that the heart is sent, in addition to:
    The outer net service caller sends first service call request message to gateway, wherein, the first service calls please Message is asked to include:The outer net address information of ISP corresponding to first service name and the first service name, so that institute The outer net address information for stating gateway ISP according to corresponding to configuration message and the first service name determines and described the The internal address information of ISP corresponding to one Service name, and sent out to ISP corresponding with the first service name Service invocation request is sent to forward message, the service invocation request forwarding message includes:The first service name and described The internal address information of ISP corresponding to one Service name, the first service is entitled at least one and described first is crucial Any one in Service name corresponding to word;
    The outer net service caller receives the service content corresponding with the first service name that the ISP sends.
  9. A kind of 9. across intranet and extranet service access methods, it is characterised in that including:
    The address of Intranet service caller configuration service registration center is internal address;
    The Intranet service caller sends the second request message to the service register center, is wrapped in second request message Include:Second keyword of the service needed for the Intranet service caller, second request message are used for described in acquisition request At least one Service name corresponding with second keyword for being preserved in service register center and each crucial with described second Mapping relations between the internal address information of ISP corresponding to Service name corresponding to word, it is each crucial with described second The internal address information of ISP corresponding to Service name corresponding to word includes:Each clothes corresponding with second keyword The protocol IP and Intranet port numbers interconnected between the inner-mesh network of ISP corresponding to business name;
    The Intranet service caller receives the second request response that the service register center is sent, second request Response message includes:At least one Service name corresponding to second keyword and each corresponding with second keyword Service name corresponding to ISP outer net address information between mapping relations.
  10. 10. according to the method for claim 9, it is characterised in that the Intranet service caller receives the service registry After the second request response that center is sent, in addition to:
    The Intranet service caller sends second service call request message to ISP, wherein, the second service Call request message includes:The second service name and the second service name of the service of the Intranet service caller request are right The internal address information of the ISP answered;
    The Intranet service caller receives the service with Intranet service caller request that the ISP sends Second service name corresponding to service content.
  11. 11. a kind of across intranet and extranet service access apparatus, it is characterised in that described device is applied to the server of ISP In, including:
    Sending module, for sending service registration message to service register center, the service registration message includes:The clothes The mapping relations being engaged between the Service name of the available service of supplier and the address information of the ISP, the service The address information of supplier includes:The internal address information of the ISP and the outer net address letter of the ISP Breath, the internal address information of the ISP include:The protocol IP interconnected between the inner-mesh network of the ISP With Intranet port numbers, the outer net address information of the ISP includes:Between the outer net network of the ISP mutually Protocol IP and outer net port numbers even.
  12. 12. device according to claim 11, it is characterised in that the sending module, be additionally operable to:
    To gateway send configuration message, the configuration message includes:The internal address information of the ISP and the clothes Mapping relations between the outer net address information of supplier of being engaged in.
  13. 13. device according to claim 12, it is characterised in that described device also includes:Receiving module and determining module,
    The receiving module, the service invocation request for receiving gateway transmission forward message, the service invocation request forwarding Message includes:Serviced corresponding to the first service name and the first service name of the service of the outer net service caller request The internal address information of supplier;
    The determining module, for determining service content corresponding with the first service name;
    The sending module, it is additionally operable to send in service corresponding with the first service name to the outer net service caller Hold.
  14. 14. a kind of across intranet and extranet service access apparatus, it is characterised in that across the intranet and extranet service access apparatus are applied to service In registration center, described device includes:
    Receiving module, for receiving the service registration message of ISP's transmission, the service registration message includes:It is described Mapping relations between the Service name of the available service of ISP and the address information of the ISP, the clothes The address information of business supplier includes:The internal address information of the ISP and the outer net address of the ISP Information, the internal address information of the ISP include:The agreement interconnected between the inner-mesh network of the ISP IP and Intranet port numbers, the outer net address information of the ISP include:Between the outer net network of the ISP The protocol IP and outer net port numbers of interconnection;
    Preserving module, for preserving the service registration information.
  15. 15. device according to claim 14, it is characterised in that described device also includes:Determining module and sending module,
    The receiving module, it is additionally operable to after the preserving module preserves the service registration information, receives outer net service and adjust The first request message that user sends, first request message include the first of the outer net service caller required service Keyword;
    The determining module, it is at least one with described for being determined according to the service registration message and first keyword Service name corresponding to one keyword;
    The sending module, for sending the first request response to the outer net service caller, first request rings Message is answered to include:At least one Service name corresponding with first keyword and each corresponding with first keyword Mapping relations between the outer net address information of ISP corresponding to Service name.
  16. 16. the device according to claims 14 or 15, it is characterised in that the receiving module is additionally operable to:In the preservation After module preserves the service registration information, the second request message that Intranet service caller is sent is received, described second please Message is asked to include the second keyword of the Intranet service caller required service;
    The determining module, be additionally operable to according to the service registration message and second keyword determine it is at least one with it is described Service name corresponding to second keyword;
    The service register center sends the second request response, the second request response to the Intranet service caller Message includes:At least one Service name corresponding with second keyword and each clothes corresponding with second keyword Mapping relations between the internal address information of ISP corresponding to name of being engaged in.
  17. 17. a kind of across intranet and extranet service access apparatus, it is characterised in that across the intranet and extranet service access apparatus are applied to outer net In the server of service caller, described device includes:
    Configuration module, the address for configuration service registration center are outer net address;
    Sending module, for by the outer net address to the service register center send the first request message, described first Request message includes:First keyword of the outer net service caller required service, first request message is used for please Ask obtain at least one Service name corresponding with first keyword that the service register center preserves and each with it is described Mapping relations between the outer net address information of ISP corresponding to Service name corresponding to first keyword, each with it is described The outer net address information of the ISP corresponding to Service name corresponding to first keyword includes:Each closed with described first The protocol IP and outer net port numbers interconnected between the outer net network of ISP corresponding to Service name corresponding to key word;
    Receiving module, the first request response sent for receiving the service register center, the first request response Message includes:At least one Service name corresponding with first keyword and each clothes corresponding with first keyword Mapping relations between the outer net address information of ISP corresponding to name of being engaged in.
  18. 18. device according to claim 17, it is characterised in that the sending module, be additionally operable in the receiving module After receiving the request response that the service register center is sent, first service call request message is sent to gateway, its In, the first service call request message includes:ISP corresponding to first service name and the first service name Outer net address information so that the gateway according to configuration message and the first service name corresponding to ISP outer net Address information determines the internal address information of corresponding with first service name ISP, and to the first service ISP corresponding to name sends service invocation request forwarding message, and the service invocation request forwarding message includes:Institute The internal address information of ISP corresponding to first service name and the first service name is stated, the first service is entitled extremely Any one in a Service name corresponding with first keyword less;
    The receiving module, it is additionally operable to receive in the service corresponding with the first service name that the ISP sends Hold.
  19. 19. a kind of across intranet and extranet service access apparatus, it is characterised in that across the intranet and extranet service access apparatus are applied to Intranet In the server of service caller, described device includes:
    Configuration module, the address for configuration service registration center are internal address;
    Sending module, for sending the second request message to the service register center, second request message includes:Institute The second keyword of the service needed for Intranet service caller is stated, second request message is used to service note described in acquisition request Service name corresponding at least one and second keyword that preserves and each corresponding with second keyword in volume center Service name corresponding to ISP internal address information between mapping relations, it is each corresponding with second keyword Service name corresponding to the internal address information of ISP include:Each Service name pair corresponding with second keyword The protocol IP and Intranet port numbers interconnected between the inner-mesh network of the ISP answered;
    Receiving module, the second request response sent for receiving the service register center, the second request response Message includes:At least one Service name corresponding with second keyword and each clothes corresponding with second keyword Mapping relations between the outer net address information of ISP corresponding to name of being engaged in.
  20. 20. device according to claim 19, it is characterised in that the sending module, be additionally operable in the receiving module After receiving the second request response that the service register center is sent, sending second service calling to ISP please Message is sought, wherein, the second service call request message includes:The second of the service of the Intranet service caller request The internal address information of ISP corresponding to Service name and the second service name;
    The receiving module, it is additionally operable to receive the service with Intranet service caller request that the ISP sends Second service name corresponding to service content.
CN201610567634.4A 2016-07-18 2016-07-18 Across intranet and extranet service access methods and device Pending CN107635022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610567634.4A CN107635022A (en) 2016-07-18 2016-07-18 Across intranet and extranet service access methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610567634.4A CN107635022A (en) 2016-07-18 2016-07-18 Across intranet and extranet service access methods and device

Publications (1)

Publication Number Publication Date
CN107635022A true CN107635022A (en) 2018-01-26

Family

ID=61112472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610567634.4A Pending CN107635022A (en) 2016-07-18 2016-07-18 Across intranet and extranet service access methods and device

Country Status (1)

Country Link
CN (1) CN107635022A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110224997A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 Service process for exposing, device and terminal device based on gateway
CN110247944A (en) * 2018-03-09 2019-09-17 阿里巴巴集团控股有限公司 Trans-regional service calling method, device, system and electronic equipment
CN110493134A (en) * 2018-05-15 2019-11-22 视联动力信息技术股份有限公司 A kind of public network address acquisition methods and device
CN110995733A (en) * 2019-12-12 2020-04-10 江苏亨通工控安全研究院有限公司 Intrusion detection system in industrial control field based on remote measuring technology
CN110995728A (en) * 2019-12-06 2020-04-10 上海上讯信息技术股份有限公司 RCP calling method and device of mapping network and electronic equipment
WO2020094021A1 (en) * 2018-11-05 2020-05-14 中兴通讯股份有限公司 Communication method and system under micro-service architecture
CN111431956A (en) * 2019-01-10 2020-07-17 阿里巴巴集团控股有限公司 Cross-network service access method, device, system and storage medium
CN112383473A (en) * 2020-06-12 2021-02-19 支付宝(杭州)信息技术有限公司 Method for establishing P2P direct connection by nodes in auxiliary block chain network
CN112583891A (en) * 2020-11-19 2021-03-30 联通智网科技有限公司 Interface document acquisition method and device and server
CN112804343A (en) * 2021-01-28 2021-05-14 杉德银卡通信息服务有限公司 Distributed service management method, system and computer readable medium thereof
CN112801504A (en) * 2021-01-28 2021-05-14 国网浙江省电力有限公司信息通信分公司 Power grid service processing method based on micro-service architecture
CN112929401A (en) * 2019-12-06 2021-06-08 华为技术有限公司 Registration method and device
CN113254227A (en) * 2020-02-11 2021-08-13 千寻位置网络有限公司 Method and system for remote method call across data centers
CN114448686A (en) * 2022-01-14 2022-05-06 武汉三江中电科技有限责任公司 Cross-network communication device and method based on micro-service

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247944A (en) * 2018-03-09 2019-09-17 阿里巴巴集团控股有限公司 Trans-regional service calling method, device, system and electronic equipment
CN110493134A (en) * 2018-05-15 2019-11-22 视联动力信息技术股份有限公司 A kind of public network address acquisition methods and device
CN110493134B (en) * 2018-05-15 2022-02-25 视联动力信息技术股份有限公司 Method and device for obtaining public network address
WO2020094021A1 (en) * 2018-11-05 2020-05-14 中兴通讯股份有限公司 Communication method and system under micro-service architecture
CN111431956B (en) * 2019-01-10 2022-07-05 阿里巴巴集团控股有限公司 Cross-network service access method, device, system and storage medium
CN111431956A (en) * 2019-01-10 2020-07-17 阿里巴巴集团控股有限公司 Cross-network service access method, device, system and storage medium
CN110224997A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 Service process for exposing, device and terminal device based on gateway
CN112929401B (en) * 2019-12-06 2023-12-19 华为云计算技术有限公司 Registration method and device
CN110995728A (en) * 2019-12-06 2020-04-10 上海上讯信息技术股份有限公司 RCP calling method and device of mapping network and electronic equipment
CN112929401A (en) * 2019-12-06 2021-06-08 华为技术有限公司 Registration method and device
CN110995733A (en) * 2019-12-12 2020-04-10 江苏亨通工控安全研究院有限公司 Intrusion detection system in industrial control field based on remote measuring technology
CN113254227B (en) * 2020-02-11 2022-07-26 千寻位置网络有限公司 Method and system for remote method call across data centers
CN113254227A (en) * 2020-02-11 2021-08-13 千寻位置网络有限公司 Method and system for remote method call across data centers
CN112383473A (en) * 2020-06-12 2021-02-19 支付宝(杭州)信息技术有限公司 Method for establishing P2P direct connection by nodes in auxiliary block chain network
CN112583891A (en) * 2020-11-19 2021-03-30 联通智网科技有限公司 Interface document acquisition method and device and server
CN112583891B (en) * 2020-11-19 2021-07-06 联通智网科技有限公司 Interface document acquisition method and device and server
CN112801504A (en) * 2021-01-28 2021-05-14 国网浙江省电力有限公司信息通信分公司 Power grid service processing method based on micro-service architecture
CN112804343A (en) * 2021-01-28 2021-05-14 杉德银卡通信息服务有限公司 Distributed service management method, system and computer readable medium thereof
CN114448686A (en) * 2022-01-14 2022-05-06 武汉三江中电科技有限责任公司 Cross-network communication device and method based on micro-service
CN114448686B (en) * 2022-01-14 2024-01-05 武汉三江中电科技有限责任公司 Cross-network communication device and method based on micro-service

Similar Documents

Publication Publication Date Title
CN107635022A (en) Across intranet and extranet service access methods and device
CN111052711B (en) Method for discovering services provided by a network repository function
US11765057B2 (en) Systems and methods for performing end-to-end link-layer and IP-layer health checks between a host machine and a network virtualization device
CN106850746B (en) The method and device of smooth service upgrading
US8073810B2 (en) Shared view of customers across business support systems (BSS) and a service delivery platform (SDP)
US7469138B2 (en) Method and system for providing location information for mobile internet calling devices
CN103888928B (en) Business strategy control method and system
EP3170284B1 (en) Enhanced operations between service layer and management layer in an m2m system by allowing the execution of a plurality of commands on a plurality of devices
CN103841134B (en) Based on API transmission, the method for receive information, apparatus and system
CN110198363A (en) A kind of selection method of mobile edge calculations node, apparatus and system
CN103945000B (en) A kind of load-balancing method and load equalizer
CN105991694B (en) A kind of method and apparatus realizing Distributed Services and calling
CN106664537A (en) Suppressing third party registration and third party deregistration actions
CN109639636A (en) Business datum forwarding, business data processing method, device and electronic equipment
CN103312661A (en) Method and device for service accessing
CN109474936A (en) Applied to the Internet of Things means of communication and system between multiple lora gateways
CN109391502A (en) A kind of information configuring methods and administrative unit
EP2621243A1 (en) Method and system for configuring and managing third party software, and management server
CN111431818B (en) Cross-domain request flow distribution method and device, storage medium and computer equipment
CN204695386U (en) Towards the management information system of many tenants
CN107766149B (en) Method and device for ZooKeeper cluster configuration based on DUBBO
US11533596B2 (en) API publish method and apparatus
CN107402862A (en) For realizing the method and apparatus of resource layout in client
CN109889625A (en) Access method, equipment and the computer readable storage medium of server
CN107105004B (en) Cross-platform service calling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180126

WD01 Invention patent application deemed withdrawn after publication