CN109729053A - The exchange method and device of data between intranet and extranet - Google Patents
The exchange method and device of data between intranet and extranet Download PDFInfo
- Publication number
- CN109729053A CN109729053A CN201711047273.1A CN201711047273A CN109729053A CN 109729053 A CN109729053 A CN 109729053A CN 201711047273 A CN201711047273 A CN 201711047273A CN 109729053 A CN109729053 A CN 109729053A
- Authority
- CN
- China
- Prior art keywords
- intranet
- response
- data
- preset rules
- request data
- 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
Links
Abstract
The invention discloses the exchange methods and device of data between a kind of intranet and extranet, are related to network technique field, invent mainly between intranet and extranet in the interactive process of data, improving the interactive efficiency of data between intranet and extranet.The method comprise the steps that receiving solicited message from outer net, the solicited message is for requesting intranet data;The solicited message is handled by the first preset rules, obtains the request data package of preset language form and preset format;The request data package is sent to Intranet end by the first optical gate.The present invention is used for the interaction of data between intranet and extranet.
Description
Technical field
The present invention relates to the exchange methods and device of data between network technique field more particularly to a kind of intranet and extranet.
Background technique
With the rapid development of internet, the interaction of the network information is further frequent, and the interaction between across a network gradually increases.It is logical
In normal situation, be generally divided into Intranet and outer net during network is set up, for example, government Intranet and the outer net outside government.By
In the information security the problem of, Intranet is not usually open to outer net, goes out active to avoid internal significant data and data, is stolen
Or the problems such as being attacked.But the gradually concern with people to information announcing and transparency information, people need to pass through outer net
To obtain the data of Intranet or access some resources of Intranet.As a result, under the premise of guaranteeing intranet data safety, it is
Meets the needs of extranet access intranet data as far as possible, it will usually which it is outer to meet that sync data service device is arranged in outer net
Net the demand of access.
Currently, sync data service device is set usually in outer net in order to meet the data interaction needs between intranet and extranet, and
The intranet data for needing synchronization is synchronized in the sync data service device in the outer net at a certain time interval, it is outer in this way
The user of net can be accessed or be obtained corresponding Intranet information by the sync data service device.However, in practical application
In, since data have real-time, when obtaining intranet data by the sync data service device in outer net, be frequently present of due to
Server fails the expired problem of data caused by timely synchronization, and therefore, data of the prior art between carrying out intranet and extranet are handed over
When mutual, influence of the timeliness vulnerable to synchronous efficiency in sync data service device, and then lead to the number between carrying out intranet and extranet
Poor according to interaction real-time, data between intranet and extranet interactive efficiencies are lower.
Summary of the invention
In view of the above problems, the present invention provides the exchange method and device of data between a kind of intranet and extranet, main purpose in order to
Between intranet and extranet in the interactive process of data, solves the prior art when carrying out the data interaction between intranet and extranet, timeliness
Vulnerable to the influence problem of synchronous efficiency in sync data service device, the interactive efficiency of data between intranet and extranet is improved.
In order to solve the above technical problems, in a first aspect, being answered the present invention provides a kind of exchange method of data between intranet and extranet
For outer net end, this method comprises:
Solicited message is received from outer net, the solicited message is for requesting intranet data;
The solicited message is handled by the first preset rules, obtains asking for preset language form and preset format
Seek data packet;
The request data package is sent to Intranet end by the first optical gate.
Optionally, the method also includes:
Receive the response data packet sent from Intranet end;
The response data packet is restored by the 4th preset rules, obtains corresponding response message, the described 4th
There are corresponding relationship, the third preset rules are that Intranet end handles the response message for preset rules and third preset rules
For the processing rule of the response data packet, the response message is the letter that Intranet service is responded according to the solicited message
Breath;
The response message is exported, so that the response message to be sent to the request of the corresponding response message
Side.
Optionally, the response data packet is restored described by the 4th preset rules, obtains corresponding response
Before information, the method also includes:
Judge whether to receive multiple grouping response data packets;
If so, the multiple grouping response data packet is integrated, the response data packet after being integrated;
It is described to restore the response data packet by the 4th preset rules, obtain corresponding response message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the response data packet after the integration;
If the response data packet after the integration is passed through the response data packet after the integration by integrity verification
4th preset rules are restored, and corresponding response message is obtained.
Optionally, the solicited message is handled described by the first preset rules, obtains preset language form
And after the request data package of preset format, the method also includes:
Whether the data volume for judging the request data package is more than propagation threshold;
If so, the request data package is split, multiple grouping request data packages are obtained;
It is described that the request data package is sent to by Intranet end by the first optical gate, comprising:
By the first optical gate, the multiple grouping request data package is successively sent to Intranet end.
Second aspect, the present invention provides a kind of exchange methods of data between intranet and extranet, are applied to Intranet end, this method packet
It includes:
Receive the request data package sent from outer net end;
The request data package is restored by the second preset rules, obtains corresponding solicited message, described second
There are corresponding relationship, first preset rules are that outer net end handles the solicited message for preset rules and the first preset rules
For the processing rule of the request data package;
Corresponding Intranet service is called according to the solicited message, to obtain corresponding to the response letter of the solicited message
Breath.
Optionally, the method also includes:
Response message is received from Intranet, the response message is the letter that Intranet service is responded according to solicited message
Breath;
The response message is handled by third preset rules, obtains the sound of preset language form and preset format
Answer data packet;
The response data packet is sent to outer net end by the second optical gate.
Optionally, the response message is being handled by third preset rules, is obtaining preset language form and pre-
If after the response data packet of format, the method also includes:
Whether the data volume for judging the response data packet is more than propagation threshold;
If so, the response data packet is split, multiple grouping response data packets are obtained;
It is described that the response data packet is sent to by outer net end by the second optical gate, comprising:
By the second optical gate, the multiple grouping response data packet is successively sent to outer net end.
Optionally, the request data package is restored described by the second preset rules, obtains corresponding request
Before information, the method also includes:
Judge whether to receive multiple grouping request data packages;
If so, the multiple grouping request data package is integrated, the request data package after being integrated;
It is described to restore the request data package by the second preset rules, obtain corresponding solicited message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the request data package after the integration;
If the request data package after the integration is passed through the request data package after the integration by integrity verification
Second preset rules are restored, and corresponding solicited message is obtained.
The third aspect, the present invention also provides a kind of interactive devices of data between intranet and extranet, are applied to outer net end, the device
Include:
First receiving unit, for receiving solicited message from outer net, the solicited message is for requesting intranet data;
First processing units, for carrying out the received solicited message of the first receiving unit by the first preset rules
Processing, obtains the request data package of preset language form and preset format;
First transmission unit, for being sent to the request data package that the first processing units obtain by the first optical gate
Intranet end.
Optionally, described device further include:
Third receiving unit, for receiving the response data packet sent from Intranet end;
Second reduction unit, the response data packet for receiving the third receiving unit pass through the 4th preset rules
It being restored, obtains corresponding response message, the 4th preset rules and third preset rules are there are corresponding relationship, and described the
Three preset rules, which are Intranet end, handles the processing rule for the response data packet for the response message, and the response message is
The information that Intranet service is responded according to the solicited message;
Output unit, the response message for obtaining second reduction unit export, so as to by the response
Information is sent to the requesting party of the corresponding response message.
Optionally, described device further include:
First judging unit receives multiple grouping response data packets for judging whether;
First integral unit will if receiving multiple grouping response data packets for first judging unit judgement
The multiple grouping response data packet is integrated, the response data packet after being integrated;
Second reduction unit, comprising:
Authentication module, for being carried out to the response data packet after the integration complete according to data integrity validation strategy
Property verifying;
Recovery module, if passing through the integrity verification of the authentication module for the response data packet after the integration,
Response data packet after the integration is restored by the 4th preset rules, obtains corresponding response message.
Optionally, described device further include:
Second judgment unit, for judging whether the data volume of the request data package is more than propagation threshold;
First split cells, if judging that the data volume of the request data package is more than transmission for the second judgment unit
Threshold value then splits the request data package, obtains multiple grouping request data packages;
First transmission unit is specifically used for through the first optical gate, multiple points that first split cells is obtained
Group request data package is successively sent to Intranet end.
Fourth aspect, the present invention also provides a kind of interactive devices of data between intranet and extranet, are applied to Intranet end, the device
Include:
Second receiving unit, for receiving the request data package sent from outer net end;
First reduction unit, the request data package for receiving second receiving unit pass through the second preset rules
It being restored, obtains corresponding solicited message, second preset rules and the first preset rules are there are corresponding relationship, and described the
One preset rules, which are outer net end, handles the solicited message processing rule for the request data package;
Call unit, the solicited message for being obtained according to first reduction unit call corresponding Intranet service, with
Just obtain corresponding to the response message of the solicited message.
Optionally, described device further include:
4th receiving unit, for receiving response message from Intranet, the response message is Intranet service according to request
The information that information is responded;
The second processing unit, for carrying out the received response message of the 4th receiving unit by third preset rules
Processing, obtains the response data packet of preset language form and preset format;
Second transmission unit, for being sent to the response data packet that described the second processing unit obtains by the second optical gate
Outer net end.
Optionally, described device further include:
Third judging unit, for judging whether the data volume of the response data packet is more than propagation threshold;
Second split cells, if judging that the data volume of the response data packet is more than transmission for the third judging unit
Threshold value then splits the response data packet, obtains multiple grouping response data packets;
Second transmission unit is specifically used for through the second optical gate, multiple points that second split cells is obtained
Group response data packet is successively sent to outer net end.
Optionally, described device further include:
4th judging unit receives multiple grouping request data packages for judging whether;
Second integral unit will if receiving multiple grouping request data packages for the 4th judging unit judgement
The multiple grouping request data package is integrated, the request data package after being integrated;
First reduction unit, comprising:
Authentication module, for being carried out to the request data package after the integration complete according to data integrity validation strategy
Property verifying;
Recovery module, if passing through the integrity verification of the authentication module for the request data package after the integration,
Request data package after the integration is restored by the second preset rules, obtains corresponding solicited message.
5th aspect, the present invention also provides a kind of interactive system of data between intranet and extranet, the system include outer net end and
Intranet end,
The outer net end passes through the first preset rules for receiving solicited message from outer net, and by the solicited message
It is handled, obtains the request data package of preset language form and preset format, by the first optical gate by the request data package
It is sent to Intranet end;
The Intranet end passes through for receiving the request data package sent from outer net end, and by the request data package
Two preset rules are restored, and corresponding solicited message is obtained, and call corresponding Intranet service according to the solicited message, so as to
Obtain corresponding to the response message of the solicited message;
The Intranet end is also used to receive response message from Intranet, and the response message is passed through the default rule of third
It is then handled, obtains the response data packet of preset language form and preset format, by the second optical gate by the response data
Packet is sent to outer net end;
The outer net end is also used to receive the response data packet sent from Intranet end, and the response data packet is passed through
4th preset rules are restored, and corresponding response message is obtained, and the response message is exported, so as to by the response
Information is sent to the requesting party of the corresponding response message.
To achieve the goals above, according to the sixth aspect of the invention, a kind of storage medium, the storage medium are provided
Program including storage, wherein equipment where controlling the storage medium in described program operation executes in described above
The exchange method of data between outer net.
To achieve the goals above, according to the seventh aspect of the invention, a kind of processor is provided, the processor is used for
Run program, wherein described program executes the exchange method of data between intranet and extranet described above when running.
By above-mentioned technical proposal, the exchange method and device of data between intranet and extranet provided by the invention, for existing skill
Art is between intranet and extranet in the interactive process of data, influence there are timeliness vulnerable to synchronous efficiency in sync data service device,
And then the problem for causing the data interaction real-time between carrying out intranet and extranet poor, the present invention is firstly, pass through outer net end from outer net
Middle reception solicited message handles the solicited message by the first preset rules, obtains preset language form and presets
The request data package of format, and the request data package is sent to by Intranet end by the first optical gate.Then, it is received at Intranet end
The request data package sent from outer net end, the request data package is restored by the second preset rules, is obtained corresponding
Solicited message, and corresponding Intranet service is called according to the solicited message, to obtain corresponding to the response of the solicited message
Information.Later, after Intranet end receives response message from Intranet, the response message is carried out by third preset rules
Processing, obtains the response data packet of preset language form and preset format, and send out the response data packet by the second optical gate
It send to outer net end.Finally, the response data packet is passed through after outer net end receives the response data packet sent from Intranet end
4th preset rules are restored, and obtain corresponding response message, and the response message is exported, so as to by the sound
It answers information to be sent to the requesting party of the corresponding response message, and then realizes the interactive function of data between intranet and extranet, and solve
Influence because of the synchronous efficiency of sync server between data interaction efficiency intranet and extranet in the prior art, improves interactive efficiency.
Wherein, the present invention is handled solicited message, response message by preset rules, it can be ensured that solicited message, response message
It can be transmitted by optical gate, and then the characteristic that can use optical gate controls the data interaction intranet and extranet.In addition, passing through
The transmission of data packet, response data packet is made requests using the first optical gate and the second optical gate, it can be ensured that by light between intranet and extranet
Lock be isolated in the case where realize data interactive function, and then can while realizing the data interaction function between intranet and extranet,
Ensure the safety of intranet data.In addition, by the corresponding relationship between the first preset rules and the second preset rules, energy
Enough ensure, when being restored by the second preset rules, to obtain through the first preset rules treated solicited message, response message
To original solicited message, response message, and then ensure the accuracy of interaction data.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the exchange method stream of data between a kind of intranet and extranet applied to outer net end provided in an embodiment of the present invention
Cheng Tu;
Fig. 2 shows the exchange method streams of data between a kind of intranet and extranet applied to Intranet end provided in an embodiment of the present invention
Cheng Tu;
Fig. 3 shows data between a kind of intranet and extranet for being respectively applied to outer net end and Intranet end provided in an embodiment of the present invention
Exchange method flow chart;
Fig. 4 shows the interactive device of data between a kind of intranet and extranet applied to outer net end provided in an embodiment of the present invention
Composition block diagram;
Fig. 5 shows the interactive device of data between a kind of intranet and extranet applied to Intranet end provided in an embodiment of the present invention
Composition block diagram;
Fig. 6 shows the interactive device of data between another intranet and extranet for being applied to outer net end provided in an embodiment of the present invention
Composition block diagram;
Fig. 7 shows the interactive device of data between another intranet and extranet for being applied to Intranet end provided in an embodiment of the present invention
Composition block diagram;
Fig. 8 shows the composition block diagram of the interactive system of data between a kind of intranet and extranet provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention
It is fully disclosed to those skilled in the art.
In order to improve the interactive efficiency of data between intranet and extranet, the embodiment of the invention provides a kind of friendships of data between intranet and extranet
Mutual method is applied to outer net end, is mainly used for the request message transmission process of outer net to Intranet, specifically as shown in Figure 1, the party
Method includes:
101, solicited message is received from outer net.
In general, user can carry out some operation behaviors when accessing Website page on webpage, carry out these
When operation behavior, it can all be carried out in a manner of request.Wherein, solicited message described in the embodiment of the present invention is for requesting interior netting index
According to.
Therefore, when the user in outer net has carried out the request of intranet data, the request of corresponding intranet data can be generated
Information.In embodiments of the present invention, the reception of the solicited message in outer net end progress outer net can be passed through.Specifically, receiving
Mode can be carried out according to any mode in the prior art, also, the solicited message includes but is not limited only to
HTTP request, wherein HTTP request is a kind of solicited message based on http protocol.
HTTP, being called hypertext transfer protocol (Hyper Text Transfer Protocol, abbreviation HTTP) is interconnection
A kind of most commonly used network protocol of web-based applications.All WWW files must comply with this standard.It is initial to design HTTP
The method that purpose is to provide for a kind of publication and reception html page.Nineteen sixty American Ted Nelson contemplates a kind of logical
The method for crossing computer disposal text information, and referred to as hypertext, this becomes http hypertext transfer protocol standard architecture
Development foundation.TedNelson organizes and coordinates world wide web association (World Wide Web Consortium) and Internet Engineering
Cooperate work group (Internet Engineering Task Force) research, has finally issued a series of RFC,
Wherein famous RFC 2616 defines HTTP 1.1.The agreement is a kind of two-way agreement, including requests and respond two parts.
Under normal conditions, when carrying out network access, what the mode of typically request and the response of the agreement based on the HTTP carried out.
Therefore, in this step, can be used to receive the solicited message in outer net by the program that receives preset in outer net,
It is performed corresponding processing so as to subsequent.
102, the solicited message is handled by the first preset rules, obtains preset language form and preset format
Request data package.
After the method in abovementioned steps 101, the solicited message received can be handled.Due to this hair
What the data in bright embodiment between intranet and extranet were realized when transmitting based on optical gate, therefore, the spy according to optical gate is needed in this step
Property the first presetting rule of setting, and the solicited message is handled according to first presetting rule, changes its solicited message
Linguistic form and file format, to obtain meeting the request data package of the first preset rules.Specifically, this can also be asked
It asks information to carry out the encapsulation and packing of data with package system in the prior art, obtains corresponding request data package.In the letter
Contain total data in originally requested content information in breath packet, for example, Supplicant Address, the information on services of request, request clothes
Business address etc. is one kind of multiple.Specifically, in treated request data package data content and type do not do herein specifically
Restriction, can determines according to actual conditions, it should be understood that, it is to be ensured that include in the request data package obtained after processing
Total data content in former solicited message, to avoid there is the case where loss of data.
103, the request data package is sent to by Intranet end by the first optical gate.
After step 102 handles solicited message by the first preset rules, the request that can will be obtained after processing
Data packet is sent, and in embodiments of the present invention, the transmission of request data package is transmitted according to the first optical gate.Its
In, optical gate, English abbreviation FGAP, be it is a kind of by develop on the basis of safety isolation network gate (GAP) form, the one-way based on light
One-way isolation software and hardware system is mainly used in the data exchange scene of the network high to security requirement, such as concerning security matters network
Between non-concerning security matters network, between industry Intranet and public network.Therefore, the individual event conduction based on optical gate can pass through
One optical gate makes requests the data transmission of data packet, and the request data package is sent in corresponding Intranet to realize.Specifically
, in the transmission process for making requests data packet, it can be carried out according to sending method in the prior art, not limited herein
The case where fixed, but the mode for being ensured that outer net end is sent can be identified by Intranet end, be avoided the occurrence of loss of data.
Further, the embodiment of the invention provides a kind of exchange methods of data between intranet and extranet, are applied to Intranet end, main
Be used for the request message transmission process of outer net to Intranet, it is specific as shown in Fig. 2, this method comprises:
201, the request data package sent from outer net end is received.
Due to having sent the corresponding request data package of solicited message in the step 103 of previous embodiment, in this hair
In bright embodiment the request data package as transmitted by outer net end can be received at Intranet end.Specifically, the mode of reception can have now
Have in technology any number of mode to carry out, it is not limited here, but receive mode should in step 103 in previous embodiment
Sending method is corresponding.
202, the request data package is restored by the second preset rules, obtains corresponding solicited message.
Wherein, in method described in the embodiment of the present invention, method described in second preset rules and previous embodiment
In the first preset rules there are corresponding relationships.Due to the embodiment of the present invention be in order to realize the data interaction between intranet and extranet, and
Processing operation has been carried out to solicited message in the aforementioned embodiment.Therefore, in embodiments of the present invention, need to having carried out place
The request data package of the corresponding requests information obtained after reason operation carries out restoring operation, to obtain corresponding solicited message.By
This, needs to carry out restoring operation according to the second preset rules in this step, wherein in order to ensure the solicited message reduction result
Accuracy, carrying out described in this step needing to choose the second preset rules, i.e. root according to the first preset rules in method
The also meta-rule of corresponding " request data package-solicited message " is selected according to the processing rule of " solicited message-request data package ".
Specifically, reduction mode can be that the data format of request data package and written form are reduced to the corresponding data of solicited message
Format and written form.Wherein, the written form between solicited message and request data package and the corresponding relationship of data format, can
Can also be determined according to each different setting of user, herein by being determined in preset processing rule configuration file
Without limitation, the method for determination of corresponding relationship can be selected according to the actual situation.
203, corresponding Intranet service is called according to the solicited message, to obtain corresponding to the response of the solicited message
Information.
Since there are different services in Intranet, it is possible thereby to according to the solicited message restored in step 202, in Intranet
Intranet data needed for calling corresponding service to carry out acquisition request information.Since Intranet and outer net have no area in text protocol
Not, therefore, the access of data is carried out in Intranet and obtains and can also be carried out according to http protocol, therefore, is having invoked phase
After the service answered, Intranet can feed back the response message of the corresponding solicited message.
The exchange method of data between intranet and extranet provided in an embodiment of the present invention, transmission process including outer net solicited message and
The transmission process of Intranet response message is respectively applied to Intranet end and outer net end, for the prior art between intranet and extranet data
In interactive process, influence there are timeliness vulnerable to synchronous efficiency in sync data service device, and then cause inside and outside progress
The poor problem of data interaction real-time between net, the present invention are handled solicited message, response message by preset rules,
It can ensure that solicited message, response message can be transmitted by optical gate, and then can use the characteristic of optical gate to intranet and extranet
Data interaction is controlled.In addition, passing through the hair for making requests data packet, response data packet using the first optical gate and the second optical gate
It send, it can be ensured that realize the interactive function of data between intranet and extranet in the case where being isolated by optical gate, and then can be inside and outside realization
While data interaction function between net, it is ensured that the safety of intranet data.In addition, by the first preset rules and second
Corresponding relationship between preset rules, it can be ensured that through the first preset rules treated solicited message, response message in quilt
When second preset rules are restored, original solicited message, response message are obtained, and then ensures the accurate of interaction data
Property.
Further, as the refinement and extension to Fig. 1 and embodiment illustrated in fig. 2, the embodiment of the invention also provides another
The exchange method of data between a kind of intranet and extranet, transmission process and Intranet response message including outer net solicited message are transmitted across
Journey is respectively applied to outer net end and Intranet end, as shown in figure 3, its specific steps includes:
301, outer net end receives solicited message from outer net.
In embodiments of the present invention, since the data transmission procedure between intranet and extranet is realized based on optical gate, when with
When family issues the solicited message of request intranet data, it is necessary first to receive the solicited message in outer net by outer net end, wherein described
Solicited message is a kind of for carrying out the solicited message of data acquisition or access into Intranet.Since the data in internet are handed over
It is realized when mutually based on hypertext transfer protocol, i.e. http protocol.Based on the agreement, data need in interactive process by requesting
And response is realized that therefore, in embodiments of the present invention, received request information can be HTTP request.
It should be noted that the transportation level in the interaction of data, either outer net or Intranet, data interaction
Transport protocol can be realized according to http protocol.Certainly, in embodiments of the present invention, received in outer net by outer net end
HTTP request reception mode, can be realized according to any number of mode in the prior art, it is not limited here.
302, outer net end handles the solicited message by the first preset rules, obtains preset language form and pre-
If the request data package of format.
It in this step, can be before the method described in example of the present invention for handling the processing rule of solicited message
It is configured, and exists in the regular configuration file of scheduled processing, to choose corresponding when handling the solicited message
Processing rule.In addition, in this step, the processing rule specifically can be understood as the file of original solicited message
Format and linguistic form are converted.In embodiments of the present invention, due to the File Transfer Protocol inside Intranet and inside outer net
It is to be realized by http protocol, and http protocol is to need to make requests and respond two-way progress, while of the invention real
Apply and need to realize the data interaction between intranet and extranet using optical gate in example, individual event based on optical gate is connected property, http protocol without
Therefore the mode that method meets this individual event transmission can transmit data by udp protocol in this step in optical gate.
UDP, also known as User Datagram Protocol, (User Datagram Protocol, abbreviation UDP), is OSI (Open
System Interconnection, open system interconnection) a kind of connectionless transport layer protocol in reference model, face is provided
Simple unreliable information transmission service to affairs, IETF RFC768 is the formal specification of UDP.Protocol number of the UDP in IP packet
It is 17.Since it is not necessarily to consider feedback information in transmission process, there is one-way transmission property.
Due to the difference of both agreements, needed in this step to the HTTP request received in original outer net
The file format and linguistic form to support udp protocol are handled by the first preset rules.
Further, after being handled the solicited message by the first preset rules, since data are being transmitted across
The case where considering data volume is needed in journey, it therefore, can be the following steps are included: first, it is determined that described ask after this step
Whether the data volume for seeking data packet is more than propagation threshold;Then, however, it is determined that the data volume of the request data package is more than threshold value, then
The request data package is split, multiple grouping request data packages are obtained.In addition, when splitting, it can be suitable according to splitting
Sequence is that multiple grouping request data packages are carried out label, the accuracy of data result when ensuring subsequent integrate.
As a result, by being handled solicited message for the supported file format of optical gate and language shape using the first preset rules
The request data package of formula has achieved the effect that solicited message being transmitted to Intranet by optical gate, is then subsequent request information
Response is laid a good foundation, and data interaction function between intranet and extranet is realized.Also, by solicited message handle for request data package it
Afterwards, by judging whether the data volume of current request data package is greater than propagation threshold, and when being greater than propagation threshold to request
Data packet is split, and is avoided because of data volume excessive the problem of causing subsequent transmission to fail, and ensures that number between intranet and extranet
According to interactive stability.
303, the request data package is sent to Intranet end by the first optical gate by outer net end.
In embodiments of the present invention, first optical gate, the second optical gate are respectively the identical different optical gates of two attributes, by
There is one-way conduction property in optical gate, therefore, in order to realize the interaction of inside and outside network data, need to set up two different optical gates point
Not Zhi Hang different directions data transmission.Therefore, first optical gate is then for from outer net end to Intranet end in this step
Request data package transmission.
Wherein, if determining in step 302, the data volume of request data package is more than the request data after propagation threshold
Packet is actually split as multiple grouping request data packages, therefore, in this step, it is specific that request data is sent to Intranet end
It can be with are as follows: by the multiple grouping request data package by the first optical gate, be respectively sent to Intranet end.Specifically, in this step
In can also will before multiple grouping request data packages are sent, can for grouping request data package add Data Identification, with
Ensure when to send the corresponding multiple and different grouping request data packages of multiple and different solicited messages, it can be according to its Data Identification
It distinguishes, avoids the problem that subsequent data misinformation occur.
In this step, when need send be multiple grouping request data packages when, by by multiple request data packages according to
It is secondary to be sent, it can be ensured that each grouping request data package is transferred in Intranet end, and then ensure that multiple indexing requests
The accuracy of request message transmission corresponding to data packet, and then ensure that the standard of data interaction result between intranet and extranet on the whole
True property.
304, Intranet end receives the request data package sent from outer net end.
After step 303, due in abovementioned steps 303 outer net end request data had sent to Intranet end by optical gate
Packet, therefore, needs to receive the request data package in this step.Specific reception mode needs and the hair in abovementioned steps 303
Send mode corresponding, it is not limited here.In addition, in this step, can also ensure data in such a way that information encrypts
Safety, and can when data encryption mode is wrong or without cipher mode refusal execute subsequent step, to ensure
The safety of Intranet.Certainly, specific reception mode can be chosen according to actual needs, and selected reception mode needs
Sending method in abovementioned steps is corresponding.
Wherein, in this step, the request data package is identified when being sent according to abovementioned steps 303, therefore,
In this step, when the transmission of abovementioned steps 303 is multiple grouping request data packages, then before step 305, this step is judged
In whether receive be multiple grouping request data packages.If it is determined that receiving is multiple grouping request data packages, then need
Multiple grouping request data packages are integrated, the request data package after being integrated.
As a result, when receiving request data package, multiple grouping request data packages are received by judging whether, and receiving
It is integrated after to multiple grouping request data packages, it is ensured that the accuracy of request data package, and then for it is subsequent on the whole
The accuracy of the interaction results of data provides guarantee between intranet and extranet.
305, Intranet end restores the request data package by the second preset rules, obtains corresponding request letter
Breath.
In this step, as restoring request data package obtained in abovementioned steps, original request is obtained
Information, therefore the needs of the second preset rules described in this step are corresponding with the first preset rules in abovementioned steps 302, with
Guarantee that solicited message is reduced into original solicited message by treated, guarantees the accuracy of its requested content.Example
Such as, if being that solicited message encapsulation is packaged into TXT text by preset rules in abovementioned steps, need in this step by
It selects that TXT text can be unsealed to the also meta-rule unpacked as original HTTP file.
In addition, obtained in the step 304 by the integration request data package after multiple grouping request data packages integration when, then
Before carrying out restoring operation in this step, need to be verified according to integrity verification strategy first, to ensure that the integration is asked
Seek the accuracy of the data of data packet.Wherein, request data package after determining the integration has passed through verifying, then continues this step
The restoring operation obtains original solicited message.
In this step, by selecting the second preset rules of corresponding first preset rules to go back request data package
It is former, it is ensured that the accuracy of reduction result then makes the accuracy of the data interaction result between subsequent intranet and extranet be protected.
Meanwhile when receiving is multiple grouping request data packages, using integrity verification strategy to the request data package after integration
Integrity verification is carried out, and carries out restoring operation after integrity verification passes through, further ensures the accurate of reduction result
Property, and then the accuracy of data interaction between intranet and extranet is improved on the whole.
306, corresponding Intranet service is called according to the solicited message in Intranet end, to obtain corresponding to the solicited message
Response message.
The method as described in the embodiment of the present invention be in order to realize data interaction function between a kind of efficient Intranet, because
This, when in abovementioned steps 305 after Intranet end reduces HTTP request, can be according to the request content in the HTTP request including
Corresponding service is called in net, to obtain requesting corresponding http response.Wherein, calling described in this step is corresponding
The mode of Intranet service can determine according to the particular content in HTTP request, it is not limited here.
307, Intranet end receives response message from Intranet.
After step 306 has invoked the service of corresponding Intranet, according to hypertext transfer protocol, corresponding service is called
After will do it response, that is, feed back the http response of corresponding HTTP request, the content in specific response message is believed according to request
What the content in breath determined, it is not limited here.As a result, after Intranet service feedback response message, Intranet in this step
End needs to receive the response message that the service is fed back.
308, Intranet end handles the response message by third preset rules, obtains preset language form and pre-
If the response data packet of format.
In this step, since obtained response message is the response message based on http protocol, due to Intranet end to
Outer net end transmit during there is still a need for the transmission of optical gate, and the property of optical gate cause http response can not by optical gate, therefore,
There is still a need for the received response message in Intranet end is handled the file format supported for optical gate and linguistic form in this step.Specifically
Processing mode actually in abovementioned steps 302 handle the mode of solicited message it is consistent, details are not described herein.
In addition, after this step handles the response message, since there are data volumes in data transmission procedure
The problem of size, when data volume is excessive to be transmitted, it is understood that there may be transmission deletion causes to transmit data or file corruption, because
This, summarizes also need to judge whether the data volume of current response data packet has been more than propagation threshold in this step.It should when determining
When response data packet is more than propagation threshold, then needs to carry out fractured operation to the response data packet, obtain multiple grouping number of responses
According to packet.In addition, can be that multiple grouping response data packets are carried out to label according to fractionation sequence when splitting, it is subsequent to ensure
The accuracy of data result when integrating.
Therefore, in this step, response message is handled into the response data that can be transmitted for optical gate by third preset rules
Packet has reached the function using optical gate transmission response information.In addition, the data volume by judging response data packet before being transmitted
Whether it has been more than propagation threshold, and the response data packet has been split when being more than propagation threshold, has obtained multiple grouping responses
Data packet, it can be ensured that the stability of subsequent transmission process improves the stability of data interaction between intranet and extranet on the whole.
309, the response data packet is sent to outer net end by the second optical gate by Intranet end.
It, can be according to the unidirectional of optical gate after obtaining response data packet when processing of the response message through abovementioned steps 308
Property is connected, which is transmitted, so that the response data packet is sent to outer net end.Specifically, of the invention
The contents such as optical gate as described in the examples, transmission mode are consistent with the description in step 303 in previous embodiment, no longer superfluous herein
It states.
In addition, when the data volume of the response data packet in abovementioned steps 308 has been more than propagation threshold, then in this step
After actually needing to split in abovementioned steps 308 respectively by the second optical gate obtained multiple grouping response data packets once into
Row is sent.Also, Data Identification can also be added for grouping response data packet, to ensure that when needing to send be multiple and different sound
When answering different grouping response data packet corresponding to information, it is able to carry out differentiation, when avoiding subsequent integration grouping response data packet
Mistake integration problem.
310, outer net end receives the response data packet sent from Intranet end.
In this step, when being received, it is also necessary to whether judgement currently receives multiple grouping response data packets, when
When determination has received multiple grouping response data packets, then need to integrate multiple grouping response data packets, after obtaining integration
Response data packet.Specifically, can be distinguished according to the Data Identification of grouping response data packet, and identical data is identified
Grouping response data packet integrated.
311, outer net end restores the response data packet by the 4th preset rules, obtains corresponding response letter
Breath.
Since the data transmission between outer net is to be carried out based on http protocol, and 310 speed of abovementioned steps is received for support
Therefore the response data packet of udp protocol needs for the response data packet to be reduced to original response message in this step.By
This, can be according to there are the 4th preset rules of corresponding relationship to be restored with third preset rules.
It should be noted that in embodiments of the present invention, due to being to carry out reduction behaviour to response data packet in this step
Make, and restoring operation be it is corresponding with the processing operation in aforementioned implementation steps, therefore, the rule and abovementioned steps of restoring operation
In the rule of processing operation there are corresponding relationships.Further, since being based on optical gate when the embodiment of the present invention is handled and restored
Characteristic considered, because thus existing HTTP request information and http response information can not be needed by optical gate to this
Solicited message and response message are handled by preset rules, so, in specific execute, to the place of HTTP request information
The processing rule of reason rule and http response information, may be the same or different, i.e. the first preset rules and the default rule of third
Then can be identical, certainly, it can specifically determine according to actual needs.Since the first preset rules and the second preset rules are deposited
In corresponding relationship, there is also corresponding relationships with the 4th preset rules for third preset rules, therefore, when the first preset rules and third
When preset rules are identical, then the 4th preset rules can also be identical with the second preset rules in this step.
After judgement has received multiple grouping response data packets in abovementioned steps 310, then need in this step pair
Response data packet after integration is restored.In order to ensure the accuracy of response message after reduction, reduction behaviour is carried out in this step
Before work, it is also necessary to be verified by integrity verification strategy to the response data packet after integration, the sound after integration
It answers data packet by verifying, then illustrates not there are problems that shortage of data in the data packet, subsequent operation can be carried out, therefore
Restoring operation can be carried out to the response data packet after the integration.
Wherein, integrity verification strategy described in the embodiment of the present invention includes but is not limited to following methods: in request data
Packet can recorde the number of packet of the grouping request data package after splitting, be transmitted after record when being split, when receiving
When multiple grouping request data packages, the number of packet can be determined before integration, or is determined after integration whole when integrating
A quantity, so that it is determined that whether the two consistent, if unanimously, illustrate the request data package after being split, being transmitted and being integrated,
There is not the problem of data-bag lost, integrality is guaranteed.It certainly, can also for the verification mode of response data packet
To be executed according to foregoing manner.
The method according to this step, by the way that there are the progress of the 4th preset rules of corresponding relationship with third preset rules
Reduction, it can be ensured that the accuracy of the response message after reduction then improves data interaction result between intranet and extranet on the whole
Accuracy.In addition, passing through the response data packet before reduction when need to carry out restoring operation is the response data packet after integration
Integrality verified, further ensure reduction after response message accuracy, to further improve intranet and extranet
Between data interaction accuracy.
312, outer net end exports the response message, so that the response message is sent to the corresponding response
The requesting party of information.
Due to including the address information of requesting party in http response, the information content that can according to response in information,
Send the response to corresponding requesting party.As a result, after step 311, when outer net end restores to have obtained original Intranet
After response message, the response message can be exported according to hypertext transfer protocol, so that requesting party obtains the response message.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiment of the invention also provides between a kind of intranet and extranet
The interactive device of data is applied to outer net end, for realizing to above-mentioned method shown in FIG. 1.The Installation practice is with before
It is corresponding to state embodiment of the method, be it is easy to read, present apparatus embodiment no longer carries out the detail content in preceding method embodiment
It repeats one by one, it should be understood that the device in the present embodiment can correspond to the full content realized in preceding method embodiment.Such as
Shown in Fig. 4, which includes: the first receiving unit 41, first processing units 42, the first transmission unit 43, wherein
First receiving unit 41 can be used for receiving solicited message from outer net, and the solicited message is for requesting Intranet
Data.
First processing units 42 can be used for presetting the received solicited message of first receiving unit 31 by first
Rule is handled, and the request data package of preset language form and preset format is obtained.
First transmission unit 43 can be used for the request data for obtaining the first processing units 32 by the first optical gate
Packet is sent to Intranet end.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiment of the invention also provides between a kind of intranet and extranet
The interactive device of data is applied to Intranet end, for realizing to above-mentioned method shown in Fig. 2.The Installation practice is with before
It is corresponding to state embodiment of the method, be it is easy to read, present apparatus embodiment no longer carries out the detail content in preceding method embodiment
It repeats one by one, it should be understood that the device in the present embodiment can correspond to the full content realized in preceding method embodiment.Such as
Shown in Fig. 5, which includes: the second receiving unit 51, the first reduction unit 52, call unit 53, wherein
Second receiving unit 51 can be used for receiving the request data package sent from outer net end.
First reduction unit 52, the request data package that can be used for receiving second receiving unit 51 pass through second
Preset rules are restored, and corresponding solicited message is obtained, and second preset rules are closed with the first preset rules there are corresponding
System.
Call unit 53, the solicited message that can be used for being obtained according to first reduction unit 52 call corresponding Intranet
Service, to obtain corresponding to the response message of the solicited message.
Further, as the realization to method shown in above-mentioned Fig. 3, the embodiment of the invention also provides another intranet and extranet
Between data interactive device, be applied to outer net end, for being realized to above-mentioned method shown in Fig. 3.The Installation practice with
Preceding method embodiment is corresponding, be it is easy to read, present apparatus embodiment no longer to the detail content in preceding method embodiment into
Row repeats one by one, it should be understood that the device in the present embodiment can correspond to the full content realized in preceding method embodiment,
Can with as shown in fig. 6, the device includes: the first receiving unit 601, first processing units 602, the first transmission unit 603,
In,
First receiving unit 601 can be used for receiving solicited message from outer net, and the solicited message is for requesting Intranet
Data.
First processing units 602 can be used for the received solicited message of first receiving unit 601 is pre- by first
If rule is handled, the request data package of preset language form and preset format is obtained.
First transmission unit 603 can be used for the number of request for obtaining the first processing units 602 by the first optical gate
Intranet end is sent to according to packet.
Further, described device further include:
Third receiving unit 604 can be used for receiving the response data packet sent from Intranet end;
Second reduction unit 605, the response data packet that can be used for receiving the third receiving unit 604 pass through the
Four preset rules are restored, and obtain corresponding response message, there are corresponding with third preset rules for the 4th preset rules
Relationship, the third preset rules, which are Intranet end, handles the processing rule for the response data packet, institute for the response message
Stating response message is the information that Intranet service is responded according to the solicited message;
Output unit 606 can be used for exporting the response message that second reduction unit 605 obtains, so as to
The response message is sent to the requesting party of the corresponding response message.
Further, described device further include:
First judging unit 607 can be used for judging whether receiving multiple grouping response data packets;
First integral unit 608, if can be used for the judgement of the first judging unit 607 receives multiple grouping number of responses
According to packet, then the multiple grouping response data packet is integrated, the response data packet after being integrated is single so as to the second reduction
Member 605 is restored;
Second reduction unit 605, comprising:
Authentication module 6051 can be used for according to data integrity validation strategy, to the response data packet after the integration
Carry out integrity verification;
Recovery module 6052, if can be used for the response data packet after the integration passes through the complete of the authentication module 6051
Integrity verification is then restored the response data packet after the integration by the 4th preset rules, obtains corresponding response letter
Breath.
Optionally, described device further include:
Second judgment unit 609 can be used for judging whether the data volume of the request data package is more than propagation threshold;
First split cells 610, if can be used for the data that the second judgment unit 609 judges the request data package
Amount is more than propagation threshold, then splits the request data package, obtain multiple grouping request data packages;
First transmission unit 603 is specifically used for obtaining first split cells 610 by the first optical gate
Multiple grouping request data packages are successively sent to Intranet end.
Further, as the realization to method shown in above-mentioned Fig. 3, the embodiment of the invention also provides another intranet and extranet
Between data interactive device, be applied to Intranet end, for being realized to above-mentioned method shown in Fig. 4.The Installation practice with
Preceding method embodiment is corresponding, be it is easy to read, present apparatus embodiment no longer to the detail content in preceding method embodiment into
Row repeats one by one, it should be understood that the device in the present embodiment can correspond to the full content realized in preceding method embodiment,
It can be as shown in fig. 7, the device includes: the second receiving unit 701, the first reduction unit 702, call unit 703, wherein
Second receiving unit 701 can be used for receiving the request data package sent from outer net end.
First reduction unit 702, the request data package that can be used for receiving second receiving unit 701 pass through the
Two preset rules are restored, and obtain corresponding solicited message, there are corresponding with the first preset rules for second preset rules
Relationship.
Call unit 703, the solicited message that can be used for being obtained according to first reduction unit 702 are called in corresponding
Net service, to obtain corresponding to the response message of the solicited message.
Further, described device further include:
4th receiving unit 704, can be used for receiving response message from Intranet, and the response message is that Intranet services root
The information responded according to solicited message;
The second processing unit 705 can be used for the received response message of the 4th receiving unit 704 is pre- by third
If rule is handled, the response data packet of preset language form and preset format is obtained;
Second transmission unit 706 can be used for the number of responses for obtaining described the second processing unit 705 by the second optical gate
Outer net end is sent to according to packet.
Further, described device further include:
Third judging unit 707 can be used for judging whether the data volume of the response data packet is more than propagation threshold;
Second split cells 708, if can be used for the data that the third judging unit 707 judges the response data packet
Amount is more than propagation threshold, then splits the response data packet, obtain multiple grouping response data packets;
Second transmission unit 706 can be specifically used for obtaining second split cells 708 by the second optical gate
To multiple grouping response data packets be successively sent to outer net end.
Further, described device further include:
4th judging unit 709 can be used for judging whether receiving multiple grouping request data packages;
Second integral unit 710, if can be used for the 4th judging unit 709 judgement receives multiple grouping number of requests
According to packet, then the multiple grouping request data package is integrated, the request data package after being integrated, also so as to described first
Former unit 702 carries out sequential reduction operation;
First reduction unit 702, comprising:
Authentication module 7021 can be used for according to data integrity validation strategy, to the request data package after the integration
Carry out integrity verification;
Recovery module 7022, if can be used for the request data package after the integration passes through the complete of the authentication module 7021
Integrity verification is then restored the request data package after the integration by the second preset rules, obtains corresponding request letter
Breath.
Further, the embodiment of the invention also provides a kind of interactive systems of data between intranet and extranet, as shown in figure 8, should
System includes outer net end 81, Intranet end 82, wherein
The outer net end 81 can be used for receiving solicited message from outer net, and the solicited message is pre- by first
If rule is handled, the request data package of preset language form and preset format is obtained, by the first optical gate by the request
Data packet is sent to Intranet end 82;
The Intranet end 82 can be used for receiving the request data package sent from outer net end 81, and by the request data
Packet is restored by the second preset rules, obtains corresponding solicited message, calls corresponding Intranet according to the solicited message
Service, to obtain corresponding to the response message of the solicited message;
The Intranet end 82 can be also used for receiving response message from Intranet, and the response message passed through third
Preset rules are handled, and the response data packet of preset language form and preset format is obtained, by the second optical gate by the sound
Data packet is answered to be sent to outer net end;
The outer net end 81, can be also used for receiving the response data packet sent from Intranet end 82, and by the number of responses
It is restored according to packet by the 4th preset rules, obtains corresponding response message, the response message is exported, to incite somebody to action
The response message is sent to the requesting party of the corresponding response message.
By above-mentioned technical proposal, the embodiment of the present invention provides the exchange method and device of data between a kind of intranet and extranet.It is right
In the prior art between intranet and extranet in the interactive process of data, there are timeliness vulnerable to synchronous efficiency in sync data service device
Influence, and then the problem for causing the data interaction real-time between carrying out intranet and extranet poor.The present invention passes through preset rules pair
Solicited message, response message are handled, it can be ensured that solicited message, response message can be transmitted by optical gate, and then can be with
The data interaction intranet and extranet is controlled using the characteristic of optical gate.In addition, by using the first optical gate and the second optical gate into
The transmission of row request data package, response data packet, it can be ensured that realize data between intranet and extranet in the case where being isolated by optical gate
Interactive function, and then can be while realizing the data interaction function between intranet and extranet, it is ensured that the safety of intranet data.This
Outside, by the corresponding relationship between the first preset rules and the second preset rules, it can be ensured that at through the first preset rules
It solicited message after reason and is restored through third preset rules treated response message by the second, the 4th preset rules
When, original solicited message, response message are obtained, and then ensure the accuracy of interaction data.
Meanwhile by the way that solicited message is handled as the supported file format of optical gate and language shape using the first preset rules
The request data package of formula has achieved the effect that solicited message being transmitted to Intranet by optical gate, is then subsequent request information
Response is laid a good foundation, and data interaction function between intranet and extranet is realized.Also, by solicited message handle for request data package it
Afterwards, by judging whether the data volume of current request data package is greater than propagation threshold, and when being greater than propagation threshold to request
Data packet is split, and is avoided because of data volume excessive the problem of causing subsequent transmission to fail, and ensures that number between intranet and extranet
According to interactive stability.In addition, when need send be multiple grouping request data packages when, by by multiple request data packages according to
It is secondary to be sent, it can be ensured that each grouping request data package is transferred in Intranet end, and then ensure that multiple indexing requests
The accuracy of request message transmission corresponding to data packet, and then ensure that the standard of data interaction result between intranet and extranet on the whole
True property.Further, when receiving request data package, multiple grouping request data packages are received by judging whether, and connecing
It is integrated after receiving multiple grouping request data packages, it is ensured that the accuracy of request data package, and then be subsequent entirety
The accuracy of the interaction results of data provides guarantee between upper intranet and extranet.In addition, by selecting the of corresponding first preset rules
Two preset rules restore request data package, it is ensured that the accuracy of reduction result then makes the number between subsequent Intranet
It is protected according to the accuracy of delivery result.Meanwhile when receiving is multiple grouping request data packages, tested using integrality
Card strategy carries out integrity verification to the request data package after integration, and restoring operation is carried out after integrity verification passes through, into
The accuracy for ensuring reduction result of one step, and then the accuracy of data interaction between intranet and extranet is improved on the whole.
Further, response message is handled into the response data packet that can be transmitted for optical gate by the first preset rules, reached
The function using optical gate transmission response information is arrived.In addition, by judge before being transmitted response data packet data volume whether
It has been more than propagation threshold, and the response data packet has been split when being more than propagation threshold, has obtained multiple grouping response datas
Packet, it can be ensured that the stability of subsequent transmission process improves the stability of data interaction between intranet and extranet on the whole.In addition, logical
Cross that there are the second preset rules of corresponding relationship to be restored with the first preset rules, it can be ensured that response message after reduction
Accuracy then improves the accuracy of data interaction result between intranet and extranet on the whole.In addition, being when restoring operation need to be carried out
It when response data packet after integration, is verified, is further ensured also by the integrality of the response data packet before reduction
The accuracy of response message after original, to further improve the accuracy of data interaction between intranet and extranet.
The interactive device of data includes processor and memory between the intranet and extranet applied to front-end server, above-mentioned to obtain
Unit and transmission unit etc. is taken in memory, to be executed by processor stored in memory above-mentioned as program unit storage
Program unit realizes corresponding function.
The interactive device of data includes processor and memory between the intranet and extranet applied to back-end server, and above-mentioned
One receiving unit, first processing units and first transmission unit etc. are stored as program unit in memory, by processor
Above procedure unit stored in memory is executed to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, improve the timeliness of the interaction of data between intranet and extranet by adjusting kernel parameter, improves interactive efficiency.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM), memory includes at least one storage
Chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The exchange method of data between the existing intranet and extranet.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation
The exchange method of data between intranet and extranet described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment applied to outer net end, equipment includes processor, memory and storage
On a memory and the program that can run on a processor, processor are performed the steps of when executing program and are received from outer net
Solicited message, the solicited message is for requesting intranet data;The solicited message is handled by the first preset rules,
Obtain the request data package of preset language form and preset format;The request data package is sent to Intranet by the first optical gate
End.
Further, the method also includes:
Receive the response data packet sent from Intranet end;
The response data packet is restored by the 4th preset rules, obtains corresponding response message, the described 4th
There are corresponding relationship, the third preset rules are that Intranet end handles the response message for preset rules and third preset rules
For the processing rule of the response data packet, the response message is the letter that Intranet service is responded according to the solicited message
Breath;
The response message is exported, so that the response message to be sent to the request of the corresponding response message
Side.
Further, the response data packet is restored described by the 4th preset rules, obtains corresponding sound
Before answering information, the method also includes:
Judge whether to receive multiple grouping response data packets;
If so, the multiple grouping response data packet is integrated, the response data packet after being integrated;
It is described to restore the response data packet by the 4th preset rules, obtain corresponding response message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the response data packet after the integration;
If the response data packet after the integration is passed through the response data packet after the integration by integrity verification
4th preset rules are restored, and corresponding response message is obtained.
Further, the solicited message is handled described by the first preset rules, obtains preset language shape
After formula and the request data package of preset format, the method also includes:
Whether the data volume for judging the request data package is more than propagation threshold;
If so, the request data package is split, multiple grouping request data packages are obtained;
It is described that the request data package is sent to by Intranet end by the first optical gate, comprising:
By the first optical gate, the multiple grouping request data package is successively sent to Intranet end.
Equipment in the embodiment of the present invention can be server, PC, PAD, mobile phone etc..
The embodiment of the invention provides a kind of equipment applied to Intranet end, equipment includes processor, memory and storage
On a memory and the program that can run on a processor, processor perform the steps of reception from outer net end when executing program
The request data package of transmission;The request data package is restored by the second preset rules, obtains corresponding solicited message,
There are corresponding relationships with the first preset rules for second preset rules;Corresponding Intranet clothes are called according to the solicited message
Business, to obtain corresponding to the response message of the solicited message.
Further, the method also includes:
Response message is received from Intranet, the response message is the letter that Intranet service is responded according to solicited message
Breath;
The response message is handled by third preset rules, obtains the sound of preset language form and preset format
Answer data packet;
The response data packet is sent to outer net end by the second optical gate.
Further, the response message is being handled by third preset rules, obtain preset language form and
After the response data packet of preset format, the method also includes:
Whether the data volume for judging the response data packet is more than propagation threshold;
If so, the response data packet is split, multiple grouping response data packets are obtained;
It is described that the response data packet is sent to by outer net end by the second optical gate, comprising:
By the second optical gate, the multiple grouping response data packet is successively sent to outer net end.
Further, the request data package is restored described by the second preset rules, obtains corresponding ask
Before seeking information, the method also includes:
Judge whether to receive multiple grouping request data packages;
If so, the multiple grouping request data package is integrated, the request data package after being integrated;
It is described to restore the request data package by the second preset rules, obtain corresponding solicited message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the request data package after the integration;
If the request data package after the integration is passed through the request data package after the integration by integrity verification
Second preset rules are restored, and corresponding solicited message is obtained.
The embodiment of the invention also provides a kind of computer program products applied to outer net end, when in data processing equipment
When upper execution, it is adapted for carrying out the program of initialization there are as below methods step: receives solicited message, the solicited message from outer net
For requesting intranet data;The solicited message is handled by the first preset rules, obtains preset language form and pre-
If the request data package of format;The request data package is sent to Intranet end by the first optical gate.
Further, the method also includes:
Receive the response data packet sent from Intranet end;
The response data packet is restored by the 4th preset rules, obtains corresponding response message, the described 4th
There are corresponding relationship, the third preset rules are that Intranet end handles the response message for preset rules and third preset rules
For the processing rule of the response data packet, the response message is the letter that Intranet service is responded according to the solicited message
Breath;
The response message is exported, so that the response message to be sent to the request of the corresponding response message
Side.
Further, the response data packet is restored described by the 4th preset rules, obtains corresponding sound
Before answering information, the method also includes:
Judge whether to receive multiple grouping response data packets;
If so, the multiple grouping response data packet is integrated, the response data packet after being integrated;
It is described to restore the response data packet by the 4th preset rules, obtain corresponding response message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the response data packet after the integration;
If the response data packet after the integration is passed through the response data packet after the integration by integrity verification
4th preset rules are restored, and corresponding response message is obtained.
Further, the solicited message is handled described by the first preset rules, obtains preset language shape
After formula and the request data package of preset format, the method also includes:
Whether the data volume for judging the request data package is more than propagation threshold;
If so, the request data package is split, multiple grouping request data packages are obtained;
It is described that the request data package is sent to by Intranet end by the first optical gate, comprising:
By the first optical gate, the multiple grouping request data package is successively sent to Intranet end.
The embodiment of the invention also provides a kind of computer program products applied to Intranet end, when in data processing equipment
When upper execution, it is adapted for carrying out the program of initialization there are as below methods step: receiving the request data package sent from outer net end;By institute
It states request data package to be restored by the second preset rules, obtains corresponding solicited message, second preset rules and the
There are corresponding relationships for one preset rules;Corresponding Intranet service is called according to the solicited message, to ask described in being corresponded to
Seek the response message of information.
Further, the method also includes:
Response message is received from Intranet, the response message is the letter that Intranet service is responded according to solicited message
Breath;
The response message is handled by third preset rules, obtains the sound of preset language form and preset format
Answer data packet;
The response data packet is sent to outer net end by the second optical gate.
Further, the response message is being handled by third preset rules, obtain preset language form and
After the response data packet of preset format, the method also includes:
Whether the data volume for judging the response data packet is more than propagation threshold;
If so, the response data packet is split, multiple grouping response data packets are obtained;
It is described that the response data packet is sent to by outer net end by the second optical gate, comprising:
By the second optical gate, the multiple grouping response data packet is successively sent to outer net end.
Further, the request data package is restored described by the second preset rules, obtains corresponding ask
Before seeking information, the method also includes:
Judge whether to receive multiple grouping request data packages;
If so, the multiple grouping request data package is integrated, the request data package after being integrated;
It is described to restore the request data package by the second preset rules, obtain corresponding solicited message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the request data package after the integration;
If the request data package after the integration is passed through the request data package after the integration by integrity verification
Second preset rules are restored, and corresponding solicited message is obtained.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (11)
1. the exchange method of data between a kind of intranet and extranet is applied to outer net end characterized by comprising
Solicited message is received from outer net, the solicited message is for requesting intranet data;
The solicited message is handled by the first preset rules, obtains the number of request of preset language form and preset format
According to packet;
The request data package is sent to Intranet end by the first optical gate.
2. the method according to claim 1, wherein the method also includes:
Receive the response data packet sent from Intranet end;
The response data packet is restored by the 4th preset rules, obtains corresponding response message, the described 4th is default
For rule with third preset rules there are corresponding relationship, the third preset rules are that Intranet end handles the response message for institute
The processing rule of response data packet is stated, the response message is the information that Intranet service is responded according to the solicited message;
The response message is exported, so that the response message to be sent to the requesting party of the corresponding response message.
3. according to the method described in claim 2, it is characterized in that, the response data packet is passed through the 4th default rule described
Then restored, before obtaining corresponding response message, the method also includes:
Judge whether to receive multiple grouping response data packets;
If so, the multiple grouping response data packet is integrated, the response data packet after being integrated;
It is described to restore the response data packet by the 4th preset rules, obtain corresponding response message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the response data packet after the integration;
If the response data packet after the integration is passed through the 4th by integrity verification by the response data packet after the integration
Preset rules are restored, and corresponding response message is obtained.
4. method according to any one of claims 1 to 3, which is characterized in that the solicited message is passed through the described
One preset rules are handled, after obtaining preset language form and the request data package of preset format, the method also includes:
Whether the data volume for judging the request data package is more than propagation threshold;
If so, the request data package is split, multiple grouping request data packages are obtained;
It is described that the request data package is sent to by Intranet end by the first optical gate, comprising:
By the first optical gate, the multiple grouping request data package is successively sent to Intranet end.
5. the exchange method of data between a kind of intranet and extranet is applied to Intranet end characterized by comprising
Receive the request data package sent from outer net end;
The request data package is restored by the second preset rules, obtains corresponding solicited message, described second is default
For rule with the first preset rules there are corresponding relationship, first preset rules are that outer net end handles the solicited message for institute
State the processing rule of request data package;
Corresponding Intranet service is called according to the solicited message, to obtain corresponding to the response message of the solicited message.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Response message is received from Intranet, the response message is the information that Intranet service is responded according to solicited message;
The response message is handled by third preset rules, obtains the number of responses of preset language form and preset format
According to packet;
The response data packet is sent to outer net end by the second optical gate.
7. according to the method described in claim 6, it is characterized in that, the response message is carried out by third preset rules
Processing, after obtaining preset language form and the response data packet of preset format, the method also includes:
Whether the data volume for judging the response data packet is more than propagation threshold;
If so, the response data packet is split, multiple grouping response data packets are obtained;
It is described that the response data packet is sent to by outer net end by the second optical gate, comprising:
By the second optical gate, the multiple grouping response data packet is successively sent to outer net end.
8. according to the described in any item methods of claim 5 to 7, which is characterized in that pass through the request data package described
Second preset rules are restored, before obtaining corresponding solicited message, the method also includes:
Judge whether to receive multiple grouping request data packages;
If so, the multiple grouping request data package is integrated, the request data package after being integrated;
It is described to restore the request data package by the second preset rules, obtain corresponding solicited message, comprising:
According to data integrity validation strategy, integrity verification is carried out to the request data package after the integration;
If the request data package after the integration is passed through second by integrity verification by the request data package after the integration
Preset rules are restored, and corresponding solicited message is obtained.
9. the interactive device of data between a kind of intranet and extranet is applied to outer net end characterized by comprising
First receiving unit, for receiving solicited message from outer net, the solicited message is for requesting intranet data;
First processing units, for by the received solicited message of the first receiving unit by the first preset rules at
Reason, obtains the request data package of preset language form and preset format;
First transmission unit, for the request data package that the first processing units obtain to be sent to Intranet by the first optical gate
End.
10. the interactive device of data between a kind of intranet and extranet is applied to Intranet end characterized by comprising
Second receiving unit, for receiving the request data package sent from outer net end;
First reduction unit, the request data package for receiving second receiving unit are carried out by the second preset rules
Reduction, obtaining corresponding solicited message, second preset rules and the first preset rules, there are corresponding relationship, described first is pre-
The solicited message is handled to processing rule for the request data package if rule is outer net end;
Call unit, the solicited message for being obtained according to first reduction unit call corresponding Intranet service, so as to
To the response message of the correspondence solicited message.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require between intranet and extranet described in any one of 1-4, claim 5-8
The exchange method of data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047273.1A CN109729053A (en) | 2017-10-31 | 2017-10-31 | The exchange method and device of data between intranet and extranet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047273.1A CN109729053A (en) | 2017-10-31 | 2017-10-31 | The exchange method and device of data between intranet and extranet |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109729053A true CN109729053A (en) | 2019-05-07 |
Family
ID=66293715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711047273.1A Pending CN109729053A (en) | 2017-10-31 | 2017-10-31 | The exchange method and device of data between intranet and extranet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109729053A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111211876A (en) * | 2020-01-02 | 2020-05-29 | 支付宝(杭州)信息技术有限公司 | Method and device for sending response message aiming at data request and block chain system |
CN111444029A (en) * | 2020-03-05 | 2020-07-24 | 中国司法大数据研究院有限公司 | Cross-domain micro-service calling method and system based on file exchange |
CN112583918A (en) * | 2020-12-11 | 2021-03-30 | 广州润普网络科技有限公司 | Intranet and extranet document interaction system, method and storage medium |
CN113141372A (en) * | 2021-04-30 | 2021-07-20 | 平安国际智慧城市科技股份有限公司 | Request calling method, device, equipment and storage medium based on one-way optical gate |
CN115242422A (en) * | 2022-05-17 | 2022-10-25 | 阿里巴巴(中国)有限公司 | Data intercommunication processing method and device and information management system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102006307A (en) * | 2010-12-16 | 2011-04-06 | 中国电子科技集团公司第三十研究所 | Application proxy-based network management system isolation control device |
US20130077130A1 (en) * | 2011-09-27 | 2013-03-28 | Ricoh Company, Ltd. | Printing control system, printing control method, and image processor |
US8718087B1 (en) * | 2006-10-24 | 2014-05-06 | Marvell International Ltd. | Processing architecture for passive optical network |
CN104125240A (en) * | 2014-08-15 | 2014-10-29 | 国家电网公司 | Information external network, information internal network, and system and method for data interaction between internal network and external network |
CN104270344A (en) * | 2014-09-12 | 2015-01-07 | 北京天行网安信息技术有限责任公司 | Quintillion gatekeeper |
CN105812387A (en) * | 2016-05-09 | 2016-07-27 | 北京航天数控系统有限公司 | Unidirectional safe data exchange device |
CN106685992A (en) * | 2017-02-14 | 2017-05-17 | 厦门畅享信息技术有限公司 | Over-network safe exchange and interactive application system based on unidirectional transmission technology, and method thereof |
-
2017
- 2017-10-31 CN CN201711047273.1A patent/CN109729053A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8718087B1 (en) * | 2006-10-24 | 2014-05-06 | Marvell International Ltd. | Processing architecture for passive optical network |
CN102006307A (en) * | 2010-12-16 | 2011-04-06 | 中国电子科技集团公司第三十研究所 | Application proxy-based network management system isolation control device |
US20130077130A1 (en) * | 2011-09-27 | 2013-03-28 | Ricoh Company, Ltd. | Printing control system, printing control method, and image processor |
CN104125240A (en) * | 2014-08-15 | 2014-10-29 | 国家电网公司 | Information external network, information internal network, and system and method for data interaction between internal network and external network |
CN104270344A (en) * | 2014-09-12 | 2015-01-07 | 北京天行网安信息技术有限责任公司 | Quintillion gatekeeper |
CN105812387A (en) * | 2016-05-09 | 2016-07-27 | 北京航天数控系统有限公司 | Unidirectional safe data exchange device |
CN106685992A (en) * | 2017-02-14 | 2017-05-17 | 厦门畅享信息技术有限公司 | Over-network safe exchange and interactive application system based on unidirectional transmission technology, and method thereof |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111211876A (en) * | 2020-01-02 | 2020-05-29 | 支付宝(杭州)信息技术有限公司 | Method and device for sending response message aiming at data request and block chain system |
CN111211876B (en) * | 2020-01-02 | 2021-10-12 | 支付宝(杭州)信息技术有限公司 | Method and device for sending response message aiming at data request and block chain system |
CN111444029A (en) * | 2020-03-05 | 2020-07-24 | 中国司法大数据研究院有限公司 | Cross-domain micro-service calling method and system based on file exchange |
CN112583918A (en) * | 2020-12-11 | 2021-03-30 | 广州润普网络科技有限公司 | Intranet and extranet document interaction system, method and storage medium |
CN112583918B (en) * | 2020-12-11 | 2022-11-18 | 广州润普网络科技有限公司 | Intranet and extranet document interaction system, method and storage medium |
CN113141372A (en) * | 2021-04-30 | 2021-07-20 | 平安国际智慧城市科技股份有限公司 | Request calling method, device, equipment and storage medium based on one-way optical gate |
CN115242422A (en) * | 2022-05-17 | 2022-10-25 | 阿里巴巴(中国)有限公司 | Data intercommunication processing method and device and information management system |
CN115242422B (en) * | 2022-05-17 | 2024-01-02 | 阿里巴巴(中国)有限公司 | Data intercommunication processing method and device and informationized management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109729053A (en) | The exchange method and device of data between intranet and extranet | |
CN107508796B (en) | A kind of data communications method and device | |
CN108551443A (en) | A kind of application login method, device, terminal device and storage medium | |
CN104503745B (en) | A kind of method and apparatus generated using channel packet | |
CN112039824B (en) | Communication method, system, device and computer readable storage medium | |
CN105260292B (en) | A kind of log recording method, apparatus and system | |
CN102227718A (en) | Hardware acceleration for remote desktop protocol | |
CN109495434A (en) | A kind of document transmission method and device | |
CN108512821A (en) | Data transmission method, device and system and gateway and transaction data storage method | |
CN108959864A (en) | Funcall authentication, the method and apparatus of calling function and authority information method for building up | |
Grevers Jr et al. | Application Acceleration and WAN Optimization Fundamentals: Appli Accel WAN Optim Funda | |
CN109272324A (en) | A kind of business function implementation method, system, equipment and computer storage medium | |
CN108650093A (en) | A kind of interface realizing method based on idempotence | |
CN109428682A (en) | A kind of Message Processing confirmation method and device | |
CN109670100A (en) | A kind of page data grasping means and device | |
CN110413354A (en) | It is a kind of to realize the method, equipment and storage medium interacted with third-party platform | |
CN107026828A (en) | A kind of anti-stealing link method cached based on internet and internet caching | |
CN109639437A (en) | Monitoring and managing method and device, equipment, medium based on trust data source | |
CN108512889A (en) | A kind of application response method for pushing and proxy server based on HTTP | |
CN108777603A (en) | A kind of data transmission method, device, storage medium and electronic equipment | |
CN106878252A (en) | Foundation is exempted from the method for close login relation, removes the method and its device of account | |
JP6755539B2 (en) | Methods and equipment for publishing copyrighted works on networks | |
CN114157997B (en) | IROS topic bridging method, equipment and medium | |
CN110022332A (en) | A kind of Hyper text transfer security protocol Proxy Method, device, equipment and medium | |
CN104935650B (en) | Document transmission method, system and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190507 |