CN107332857A - A kind of network data transmission method, device, system and storage medium - Google Patents

A kind of network data transmission method, device, system and storage medium Download PDF

Info

Publication number
CN107332857A
CN107332857A CN201710638670.XA CN201710638670A CN107332857A CN 107332857 A CN107332857 A CN 107332857A CN 201710638670 A CN201710638670 A CN 201710638670A CN 107332857 A CN107332857 A CN 107332857A
Authority
CN
China
Prior art keywords
host
protocol
interface
host protocol
upstream 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.)
Granted
Application number
CN201710638670.XA
Other languages
Chinese (zh)
Other versions
CN107332857B (en
Inventor
崔进
黄友昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710638670.XA priority Critical patent/CN107332857B/en
Publication of CN107332857A publication Critical patent/CN107332857A/en
Application granted granted Critical
Publication of CN107332857B publication Critical patent/CN107332857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/326Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the transport layer [OSI layer 4]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a kind of network data transmission method, device, system and storage medium;The present embodiment can obtain the first host-host protocol, and call corresponding first host-host protocol interface, then, the upstream data sent by the first host-host protocol interface terminal, and the configured transmission carried according to the upstream data determines corresponding service server and the second host-host protocol, hereafter, just the upstream data can be parsed using the first host-host protocol, and the upstream data after parsing is packaged using the second host-host protocol, to send service server to;The program can neatly call required protocol interface according to actual demand, and carry out flexible conversion to different agreement, can greatly improve development efficiency and the maintainability of product.

Description

A kind of network data transmission method, device, system and storage medium
Technical field
The present invention relates to communication technical field, and in particular to a kind of network data transmission method, device, system and storage are situated between Matter.
Background technology
The transmission means of existing network data mainly has two kinds, one be by the transmission between client and back-end services, Two be the transmission between webpage and back-end services.Wherein, client can be by setting up privately owned passage come to hair with back-end services Send request, and webpage then typically can be by HTTP (HTTP, the Hyper Text that calls back-end services to provide Transfer Protocol) interface realizes the purpose of data transfer, and this result in can not be for same back-end services simultaneously Client and the situation for calling demand of webpage are met, generally requires back-end services being packaged into client protocol and http protocol Two sockets.
In view of the above-mentioned problems, prior art has also been proposed the technology for providing interface to webpage by client, that is, work as webpage, such as HTML 5 (H5, Hyper Text Markup Language) page needs to carry out data transmission with back-end services When, the back-end services interface and data that the H5 pages can call needs are transmitted to client, are connected by client by privately owned chain Road calls back-end services, then adjusts back the data that back-end services are returned and gives the H5 pages, so, back-end services just can be not required to Two sets of protocol interfaces are provided, and the protocol interface between a set of client and background service need to be only provided.
Found in the research of prior art and practice process, existing scheme needs to ensure the H5 pages in client environment Lower operation, but be due to that the H5 pages are operated under client under the demands such as product and operation, many scenes, so as to lead No client-side interface is caused to call, so, back-end services remain a need for single HTTP interface and give H5 page invocations, Moreover, the H5 pages must also safeguard the interface interchange mode under two kinds of environment, realize complex, largely effect on development efficiency and production The maintainability of product.
The content of the invention
The embodiment of the present invention provides a kind of network data transmission method, device, system and storage medium, realizes simply, can To greatly improve the maintainability of development efficiency and product.
The embodiment of the present invention provides a kind of network data transmission method, including:
The first host-host protocol is obtained, and calls the first host-host protocol interface;
The upstream data of web page trigger, the upstream data are passed through by the terminal of the first host-host protocol interface one Carry configured transmission;
The corresponding service server of the configured transmission and the second host-host protocol are determined according to the configured transmission;
The upstream data is parsed using first host-host protocol, and using second host-host protocol to solution Upstream data after analysis is packaged, and obtains upstream data bag;
The upstream data bag is sent to by the service server according to second host-host protocol.
Accordingly, the embodiment of the present invention also provides a kind of network data transmission device, including:
Call unit, for obtaining the first host-host protocol, and calls the first host-host protocol interface;
Uplink receiving unit, for the upper line number for passing through web page trigger by the terminal of the first host-host protocol interface one According to the upstream data carries configured transmission;
Determining unit, for determining that the corresponding service server of the configured transmission and second is passed according to the configured transmission Defeated agreement;
Processing unit, for being parsed to the upstream data using first host-host protocol, and use described the Two host-host protocols are packaged to the upstream data after parsing, obtain upstream data bag;
Up transmitting element, takes for the upstream data bag to be sent into the business according to second host-host protocol Business device.
In addition, the embodiment of the present invention also provides a kind of network data transmission system, including terminal, service server and Network data transmission device;
The terminal, for sending upstream data to network data transmission device by webpage, the upstream data is carried Configured transmission;
The network data transmission device, for obtaining the first host-host protocol, and calls the first host-host protocol interface, passes through The first host-host protocol interface terminal is by the upstream data of web page trigger, the transmission carried according to the upstream data Parameter determines the corresponding service server of the configured transmission and the second host-host protocol, using first host-host protocol to described Upstream data is parsed, and the upstream data after parsing is packaged using second host-host protocol, obtains line number According to bag, the upstream data bag is sent to by the service server according to second host-host protocol;
The service server, the upstream data bag sent for receiving network data transmitting device.
The embodiment of the present invention also provides a kind of storage medium, and the storage medium is stored with a plurality of instruction, and the instruction is suitable Loaded in processor, to perform the step in any network data transmission method that the embodiment of the present invention is provided.
The embodiment of the present invention can obtain the first host-host protocol, and call corresponding first host-host protocol interface, then, lead to Cross the upstream data of the first host-host protocol interface terminal transmission, and the configured transmission determination pair carried according to the upstream data The service server and the second host-host protocol answered, hereafter, just can be parsed using the first host-host protocol to the upstream data, And the upstream data after parsing is packaged using the second host-host protocol, to send service server to;Because the program can With by calling the first host-host protocol interface come upstream data of the receiving terminal by web page trigger, then by the upstream data weight Newly be packaged, and service server is sent to by another host-host protocol, i.e., can be according to actual need by the program Ask and neatly call required protocol interface, and flexible conversion is carried out to different agreement, so, no matter for terminal or business Server, need to only safeguard a kind of interface interchange mode, relative to the existing side for needing to safeguard multiple interfaces method of calling For case, realization is more simple, can greatly improve development efficiency and the maintainability of product.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 a are the schematic diagram of a scenario of network data transmission system provided in an embodiment of the present invention;
Fig. 1 b are the flow charts of network data transmission method provided in an embodiment of the present invention;
Fig. 2 a are the structural representations of proxy server provided in an embodiment of the present invention;
Fig. 2 b are another flow charts of network data transmission method provided in an embodiment of the present invention;
Fig. 2 c are the schematic diagram of a scenario of network data transmission method provided in an embodiment of the present invention;
Fig. 2 d are the block schematic illustrations of network data transmission method provided in an embodiment of the present invention;
Fig. 3 is another block schematic illustration of network data transmission method provided in an embodiment of the present invention;
Fig. 4 a are the structural representations of network data transmission device provided in an embodiment of the present invention;
Fig. 4 b are another structural representations of network data transmission device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of network data transmission system provided in an embodiment of the present invention;
Fig. 6 is the structural representation of proxy server provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of network data transmission method, device, system and storage medium.
Wherein, the network data transmission system can include any network data transmission that the embodiment of the present invention is provided Device, the network data transmission device can be specifically integrated in the equipment such as proxy server or gateway.In addition, the network data Transmission system can also include other equipment, such as terminal and service server.
For example, so that the network data transmission device is integrated in proxy server as an example, participating in Fig. 1 a, the proxy server The first host-host protocol can be obtained, and calls corresponding first host-host protocol interface, such as obtains http protocol, and call HTTP Interface, then, by upstream data of the first host-host protocol interface such as HTTP interface receiving terminal by web page trigger, and root Corresponding service server and the second host-host protocol, such as socket agreements are determined according to the configured transmission carried in the upstream data, To be parsed using the first host-host protocol to the upstream data, and using second host-host protocol to up after parsing Data are packaged, subsequently, and the upstream data bag that the encapsulation is obtained is sent into the business service according to the second host-host protocol Device.
Hereafter, service server can also give the proxy server according to the downlink data of upstream data bag return, by Proxy server is parsed using the second host-host protocol to the downlink data, and using the first host-host protocol under after parsing Row data are packaged, then, and the downlink data packet that the encapsulation is obtained is sent into the terminal by the first host-host protocol interface, So as to reach on the premise of the protocol interface of terminal and service server is not changed, the purpose of protocol forward is realized.
It is described in detail individually below.It should be noted that the sequence number of following examples is not as to embodiment preferred sequence Restriction.
Embodiment one,
The present embodiment will be described from the angle of network data transmission device, and the network data transmission device specifically can be with It is integrated in agent equipment, such as the equipment such as agent service server or proxy gateway, or, business service can also be integrated in In the Agent layer of device, it will not be repeated here.
A kind of network data transmission method, including:The first host-host protocol is obtained, and calls the first host-host protocol interface, is led to Upstream data of the terminal of the first host-host protocol interface one by web page trigger is crossed, the upstream data carries configured transmission, root Service server and the second host-host protocol are determined according to the configured transmission, the upstream data is solved using the first host-host protocol Analysis, and the upstream data after parsing is packaged using second host-host protocol, upstream data bag is obtained, according to the second transmission The upstream data bag is sent to the service server by agreement.
Such as Fig. 1 b, the idiographic flow of the network data transmission method can be as follows:
101st, the first host-host protocol is obtained, and calls corresponding first host-host protocol interface.
For example, specifically the first host-host protocol can be obtained according to preset configuration, and according to calling first host-host protocol pair First host-host protocol interface answered, etc..
Wherein, first host-host protocol and the first host-host protocol interface can depending on the demand according to practical application, such as, Can be http protocol or FTP (FTP, File Transfer Protocol) etc..For convenience, this hair Bright embodiment will be illustrated so that the first host-host protocol is specially http protocol as an example.
Optionally, in order to improve flexibility, except that can obtain the first host-host protocol according to preset configuration and call the Outside one host-host protocol interface, it can also be called according to actual demand, i.e., in step " obtaining the first host-host protocol " Before, the network data transmission method can also include:
Receiving interface call request, is parsed according to default analytical algorithm to interface interchange request, to determine needs The interface message called.
Such as, the interface interchange request that client or other application are sent can be specifically received, then, according to default parsing Algorithm is parsed to interface interchange request, to determine the interface message for needing to call.
Then now, step " obtain the first host-host protocol, and call corresponding first host-host protocol interface " can include:Root The first host-host protocol of corresponding acquisition is obtained according to the interface message, and corresponding first host-host protocol is called according to interface message is stated Interface.
102nd, by upstream data of the first host-host protocol interface terminal by web page trigger, wherein, line number on this According to information such as carrying configured transmissions.
For example, specifically can be by HTTP request of the HTTP interface receiving terminal by webpage, such as the triggering of the H5 pages, should The information such as configured transmission can be carried in HTTP request.
Wherein, the configured transmission can include terminal iidentification and webserver mark etc., and the terminal iidentification can be wrapped Include terminal name, device number, port, and/or Internet protocol (IP, Internet Protocol Address) address etc., and industry Business server identification can include the letter such as title, device numbering, unit type, port, and/or IP address of service server Breath.
103rd, the corresponding service server of the configured transmission and the second host-host protocol are determined according to the configured transmission.
For example, specifically service profile information can be obtained according to the configured transmission, according to the service profile information got Determine service server and the second host-host protocol.
Wherein, second host-host protocol can be socket (socket) such as depending on the demand according to practical application Agreement.So-called socket, when referring to that two on network programs realize the exchange of data by a two-way communication connection, One end of this connection.By the socket agreements, webpage (such as H5 pages) can set up socket passages with service server, And by the socket passages, data are transmitted according to the proprietary protocol of agreement.
104th, the upstream data is parsed using the first host-host protocol, and using second host-host protocol to parsing after Upstream data be packaged, obtain upstream data bag.
For example, the corresponding first protocol processes process of first host-host protocol can be called, entered by the first protocol processes Journey is parsed to the upstream data, and calls the corresponding second protocol treatment progress of second host-host protocol, by this Two protocol processes processes are packaged to the upstream data after parsing, obtain upstream data bag.
Such as, it is specially http protocol with first host-host protocol, and exemplified by the second host-host protocol is socket agreements, then At this point it is possible to the corresponding http protocol treatment progress of http protocol be called, by the http protocol treatment progress to line number on this According to being parsed, and the corresponding socket protocol processes process of socket agreements is called, entered by the socket protocol processes Journey is packaged to the upstream data after parsing, obtains upstream data bag.
105th, the upstream data bag is sent to by the service server according to the second host-host protocol.
For example, can specifically set up corresponding second host-host protocol passage according to second host-host protocol, by this second The upstream data bag is sent to the service server by host-host protocol passage.
Such as, or so that second host-host protocol is specially socket agreements as an example, then at this point it is possible to according to the socket Agreement sets up corresponding socket passages, then, and by the socket passages, the upstream data bag is sent into the business service Device.
Optionally, it is sent to by the upstream data bag after the service server, service server can also be received and returned The data returned, the data are carried out after protocol conversion, terminal is sent to.Wherein, for convenience, in the embodiment of the present invention In, service server is returned to the data referred to as downlink data of terminal.I.e. in step, " upstream data bag is sent to business clothes After business device ", the network data transmission method can also include:
The downlink data that service server is returned according to the upstream data bag is received, it is descending to this using the second host-host protocol Data are parsed, and the downlink data after parsing is packaged using the first host-host protocol, are obtained downlink data packet, are passed through The downlink data packet is sent to the terminal by the first host-host protocol interface.
For example, be still specially http protocol with the first host-host protocol, and exemplified by the second host-host protocol is socket agreements, Then at this point it is possible to which the downlink data returned by socket channel receptions service server according to the upstream data bag, then, is adopted The downlink data is parsed with socket agreements, and the downlink data after parsing is packaged using http protocol, is obtained To downlink data packet, subsequently, the downlink data packet is sent to by the terminal by HTTP interface.
Optionally, if the network data transmission device is not recorded when sending upstream data bag to service server The corresponding relation of first host-host protocol and the second host-host protocol, such as, be that upstream data is entered using which kind of the first host-host protocol Row parsing, and information is packaged etc. to upstream data after parsing using which kind of the second host-host protocol, then at this point it is possible under Configured transmission is carried in row data, can be according to wherein taking so that network data transmission device is after the downlink data is received The configured transmission of band obtains corresponding terminal configuration information, and then determines corresponding terminal according to the terminal configuration information got With the first host-host protocol, so, just the downlink data after parsing can be subsequently packaged using first host-host protocol, and The downlink data packet that encapsulation is obtained is sent to the terminal of the determination.
From the foregoing, it will be observed that the present embodiment can obtain the first host-host protocol, and corresponding first host-host protocol interface is called, so Afterwards, the upstream data sent by the first host-host protocol interface terminal, and the configured transmission carried according to the upstream data Corresponding service server and the second host-host protocol are determined, hereafter, just the upstream data can be entered using the first host-host protocol Row parsing, and the upstream data after parsing is packaged using the second host-host protocol, to send service server to;Due to this Scheme can be then up by this by calling the first host-host protocol interface come upstream data of the receiving terminal by web page trigger Data re-start encapsulation, and are sent to service server by another host-host protocol, i.e., can be according to reality by the program The demand on border neatly calls required protocol interface, and carries out flexible conversion to different agreement, so, no matter for terminal also It is service server, need to only safeguards a kind of interface interchange mode, needs to safeguard multiple interfaces called side relative to existing For the scheme of formula, realization is more simple, can greatly improve development efficiency and the maintainability of product.
Embodiment two,
Citing, is described in further detail by the method according to described by embodiment one below.
In the present embodiment, it will be said so that the network data transmission device is specifically integrated in proxy server as an example It is bright.
As shown in Figure 2 a, the network data transmission device being integrated in proxy server can include mixed-media network modules mixed-media, association Discussing card module and service configuration module, (i.e. proxy server can include mixed-media network modules mixed-media, Protocol Plug module and service configuration Module), wherein, the function of modules respectively can be as follows:
(1) mixed-media network modules mixed-media;
Mixed-media network modules mixed-media, for transceiving data, such as upstream data and downlink data etc..
For example, with reference to Fig. 2 a, the mixed-media network modules mixed-media specifically can include the first protocol processes submodule and second protocol is handled Submodule, wherein:
First protocol processes submodule is used for the upstream data received and processing terminal is sent, is taken according in the upstream data The information such as the configured transmission of band, obtain corresponding service profile information from service configuration module, are matched somebody with somebody according to the service got Confidence breath determines corresponding service server and the second host-host protocol, and determines corresponding Protocol Plug and Protocol Plug Sequentially, the upstream data is sent to Protocol Plug module, so as to card module according to the order of Protocol Plug to line number on this According to being handled;In addition, the first protocol processes submodule can also call other and the first transmission by the first host-host protocol Protocol-dependent service.
And second protocol processing submodule then can by the second host-host protocol to service server send upstream data bag, And the downlink data that service server is returned is received, obtain corresponding whole from service configuration module according to the downlink data packet Configuration information is held, corresponding terminal and the first host-host protocol are determined according to the terminal configuration information got, and determine corresponding Order of Protocol Plug and Protocol Plug etc., sends the downlink data to the Protocol Plug module, so that card module is pressed Order according to Protocol Plug is handled the downlink data;In addition, second protocol processing submodule can also receive business clothes The interface interchange request that device or the other equipment of being engaged in are sent.
(2) Protocol Plug module;
The Protocol Plug module can include multiple Protocol Plugs, such as, referring to Fig. 2 a, can include Protocol Plug 1, association Discuss plug-in unit 2 ... ... Protocol Plug N, etc..Wherein, each Protocol Plug is independent, and can be arranged in pairs or groups between Protocol Plug Use, to realize the parsing and encapsulation (unpack and pack) to data.
For example, when the corresponding Protocol Plug of the first host-host protocol receives the upper line number of the first protocol processes subelement transmission According to rear, the upstream data can be parsed using the first host-host protocol, then send the upstream data after parsing to The corresponding Protocol Plug of two host-host protocols, by the corresponding Protocol Plug of the second host-host protocol using second host-host protocol to solution Upstream data after analysis is packaged, and obtains upstream data bag, then, sends the upstream data bag to second protocol processing Module.
In another example, when the corresponding Protocol Plug of the second host-host protocol receives the descending of second protocol processing subelement transmission After data, the downlink data can be parsed using the second host-host protocol, then send the downlink data after parsing to The corresponding Protocol Plug of first host-host protocol, first host-host protocol pair is used by the corresponding Protocol Plug of the first host-host protocol Downlink data after parsing is packaged, and obtains downlink data packet, then, sends the upstream data bag to first protocol processes Submodule.
(3) service configuration module;
The service configuration module can preserve multiple configuration informations corresponding with configured transmission, and each configuration information is used to remember End message or business server information are recorded, wherein, it is for convenience, individual in embodiments of the present invention, terminal will be have recorded The configuration information of information is referred to as terminal configuration information, and the configuration information that have recorded business server information is referred to as into service configuration letter Breath.
Wherein, terminal configuration information can be passed including used in terminal iidentification, the call address of terminal, the terminal first The information such as defeated agreement and the corresponding Protocol Plug of the terminal.
Service profile information can include service server mark, the call address of service server, service server institute The information such as the second host-host protocol and the order of the corresponding Protocol Plug of the service server and Protocol Plug that use.
To be specially the H5 pages with webpage below based on the structure of above-mentioned network data transmission device, upstream data is HTTP request, the first host-host protocol is specially http protocol, and the second host-host protocol be specially carry out exemplified by socket agreements it is detailed Describe in detail bright.
As shown in Figure 2 b, a kind of network data transmission method, idiographic flow can be as follows:
201st, terminal triggers HTTP request by the H5 pages.
Wherein, the information such as configured transmission are carried in the HTTP request, the configured transmission can include terminal iidentification and net Network server identification etc., the terminal iidentification can include terminal name, device number, port, and/or IP address etc., and business takes Device mark of being engaged in can include the information such as title, device numbering, unit type, port, and/or the IP address of service server.
202nd, the first protocol processes submodule in proxy server is obtained according to preset configuration from service configuration module Http protocol, and corresponding HTTP interface is called according to the http protocol.
Wherein, the preset configuration can according to the demand of practical application between proxy server and the H5 pages of terminal it is pre- First arranged.
203rd, the HTTP request that the first protocol processes submodule is sent by the HTTP interface receiving terminal called.
204th, the first protocol processes submodule extracts configured transmission from HTTP request, and according to configured transmission determination pair The order of service server, socket agreements, Protocol Plug and the Protocol Plug answered.
For example, with reference to Fig. 2 c, the first protocol processes submodule specifically can be according to the configured transmission from service configuration module It is middle to obtain corresponding service profile information, then, corresponding back-end services are determined according to the service profile information got, and then Obtain the information related to the back-end services, such as service server, socket agreements, Protocol Plug and Protocol Plug Order, etc..
205th, the HTTP request is sent to Protocol Plug module by the first protocol processes submodule, so as to Protocol Plug module The HTTP request is parsed and encapsulated according to the order of Protocol Plug, upstream data bag is obtained.
For example, with reference to Fig. 2 d, using the Protocol Plug as Protocol Plug 1 and plug-in unit 2, and the order of Protocol Plug is:Agreement Plug-in unit 1->Exemplified by Protocol Plug 2, then at this point it is possible to which the HTTP request to be sent to the Protocol Plug 1 in Protocol Plug module, The upstream data is parsed using http protocol by Protocol Plug 1, after parsing is finished, after Protocol Plug 1 will be parsed HTTP request send Protocol Plug 2 to, the HTTP request after parsing is sealed using socket agreements by Protocol Plug 2 Dress, obtains upstream data bag.
206th, Protocol Plug module sends obtained upstream data bag to second protocol processing submodule, by second protocol The upstream data bag is sent to the service server by processing submodule according to socket agreements.
For example, with reference to Fig. 2 c and Fig. 2 d, second protocol processing submodule specifically can be with socket passages, by the upstream data Bag is sent to the service server (i.e. back-end services).
It should be noted that, if in the absence of socket passages, second protocol processing submodule can be assisted according to the socket View sets up corresponding socket passages, then, by the socket passages of the foundation, the upstream data bag is sent into the business Server.
Optionally, the webserver is after the upstream data bag is received, and can also return to corresponding data to terminal, i.e., The network data transmission method can also include step 207 to 210, as follows:
207th, service server obtains downlink data according to the upstream data bag, and the downlink data is sent into agency's clothes Business device.
For example, service server is after the upstream data bag is received, it is possible to use socket agreements are to the upstream data Bag is parsed, and obtains HTTP request, then, corresponding web data is obtained according to the HTTP request, using socket agreements The web data is packaged, downlink data is obtained, hereafter, just can be returned to the downlink data by socket passages The second protocol processing submodule of proxy server, such as, reference can be made to Fig. 2 c.
208th, after the second protocol processing submodule of proxy server receives the downlink data, corresponding end is determined End, http protocol, the order of Protocol Plug and Protocol Plug.
For example, second protocol processing submodule can specifically obtain corresponding terminal with confidence from service configuration module Breath, corresponding terminal and http protocol are determined according to the terminal configuration information got, and determine corresponding Protocol Plug and Order of Protocol Plug etc..
It should be noted that, the Protocol Plug that is now used and used when being parsed and being encapsulated to upstream data Protocol Plug is consistent, but the order contrary of Protocol Plug, such as, if the Protocol Plug used when being parsed and being encapsulated Sequentially it is:Protocol Plug 1->Protocol Plug 2, then as shown in Figure 2 d, adopted when the downlink data is parsed and encapsulated The order of Protocol Plug can be:Protocol Plug 2->Protocol Plug 1, will not be repeated here.
209th, the downlink data is sent to Protocol Plug module by second protocol processing submodule, so as to Protocol Plug module The downlink data is parsed and encapsulated according to the order of Protocol Plug, downlink data packet is obtained.
If for example, the order of Protocol Plug is:Protocol Plug 2->Protocol Plug 1, then now, second protocol processing submodule Block can use socket agreements pair by the downlink data transmission to the Protocol Plug 2 in Protocol Plug module by Protocol Plug 2 The downlink data is carried out connecing information, and after parsing is finished, the downlink data after parsing is sent to Protocol Plug by Protocol Plug 1 1, the downlink data after the parsing is packaged using http protocol by Protocol Plug 1, downlink data packet is obtained.
210th, Protocol Plug module sends obtained downlink data packet to first protocol processes submodule, by the first agreement Downlink data packet is sent to the terminal by this by processing submodule by http protocol.
For example, the first protocol processes submodule can call corresponding HTTP interface according to http protocol, pass through the HTTP The downlink data packet is sent to the terminal by interface, such as, and referring to Fig. 2 c, the downlink data packet can be specifically sent to the terminal In the H5 pages, etc..
From the foregoing, it will be observed that the present embodiment can obtain http protocol, and call corresponding HTTP interface, then, pass through HTTP The HTTP request that interface terminal is sent, and the configured transmission carried according to the HTTP request determines corresponding service server With socket agreements, hereafter, just the HTTP request can be parsed using http protocol, and using socket agreements to solution HTTP request after analysis is packaged, to send service server to, similarly, can also lead to the data that service server is returned Cross similar mode and be sent to the H5 pages;Because the program can neatly call required agreement to connect according to actual demand Mouthful, and flexible conversion is carried out to different agreement, so, no matter for terminal or service server, it need to only safeguard that one kind connects Mouthful method of calling, relative to it is existing need to safeguard the scheme of multiple interfaces method of calling for, realize it is more simple, can be with Greatly improve development efficiency and the maintainability of product.
Embodiment three,
On the basis of embodiment two, optionally, in order to improve flexibility, except that can be matched somebody with somebody according to preset configuration from service Put and http protocol is obtained in module, and called according to the http protocol outside corresponding HTTP interface, can also be according to reality Demand is directly called to HTTP interface, that is, is performing step 202 (the first protocol processes submodule i.e. in proxy server Http protocol is obtained from service configuration module according to preset configuration, and corresponding HTTP interface is called according to the http protocol) Before, the network data transmission method can also include following processing:
(1) the HTTP interface information for needing to call is packaged by called side by specified protocol mode, obtains interface tune With request, then, interface interchange request is sent to proxy server.
For example, so that the protocol mode specified is socket agreements and called side is client as an example, then now, client The HTTP interface information that end can be called using socket agreements to needs is packaged, and obtains interface interchange request, then, will The second protocol processing submodule in proxy server is sent in interface interchange request.
(2) the second protocol processing submodule in proxy server is receiving the interface interchange request of called side transmission Afterwards, interface interchange request is sent to Protocol Plug module to be parsed, obtains HTTP interface information.
For example, using the corresponding Protocol Plug of socket agreements as Protocol Plug 2, and the corresponding Protocol Plug of http protocol is Exemplified by Protocol Plug 1, then as shown in figure 3, second protocol, which handles submodule, is receiving the interface interchange request of called side transmission Afterwards, corresponding service profile information can be obtained from service configuration module, determines that correspondence agreement is inserted according to service profile information Part, such as " Protocol Plug 2 and Protocol Plug 1 ", and Protocol Plug order for " Protocol Plug 2->Protocol Plug 1 ", then, will Interface interchange request is sent to Protocol Plug 2, is parsed by 2 pairs of interface interchange requests of Protocol Plug, and use agreement Data are packaged after 1 pair of parsing of plug-in unit, obtain HTTP interface information.
(3) HTTP interface information is sent to the first protocol process module by Protocol Plug module.
So, the first protocol process module just can be believed after the HTTP interface information is received according to the HTTP interface Breath obtains corresponding acquisition http protocol and HTTP interface.I.e. now, step 202 is specifically as follows:
First protocol processes submodule is according to the corresponding acquisition http protocol of the HTTP interface acquisition of information, and according to this HTTP interface information calls corresponding HTTP interface.
Hereafter, step 203 can be continued executing with to 206, optionally, step 207 is can also carry out to 210, wherein, step 203 to 210 execution for details, reference can be made to embodiment two, will not be repeated here.
Because the present embodiment can be supported inversely to call HTTP interface by called side, so, for client, still It can be called by privately owned link passage, it can't be influenceed to use, it is at the same time, this to call so that HTTP interface Outside can be not exposed to, therefore, security can also be improved, that is to say, that the present embodiment is except that can realize implementation Outside the beneficial effect of example two, flexibility and the security of its realization can also be improved.
Example IV,
In order to preferably implement above method, the embodiment of the present invention also provides a kind of network data transmission device, the network Data transmission device can be specifically integrated in agent equipment, such as the equipment such as agent service server or proxy gateway, or, It can also be integrated in the Agent layer of service server, will not be repeated here.
For example, as shown in fig. 4 a, the network data transmission device includes call unit 301, uplink receiving unit 302, really Order member 303, processing unit 304 and up transmitting element 305, it is as follows:
(1) call unit 301;
Call unit 301, for obtaining the first host-host protocol, and calls the first host-host protocol interface.
For example, call unit 301 specifically can be used for obtaining the first host-host protocol according to preset configuration, and according to calling this Corresponding first host-host protocol interface of first host-host protocol, etc..
Wherein, first host-host protocol and the first host-host protocol interface can depending on the demand according to practical application, such as, Can be http protocol or File Transfer Protocol etc..
(2) uplink receiving unit 302;
Uplink receiving unit 302, for the upper line number for passing through web page trigger by the first host-host protocol interface terminal According to the upstream data carries configured transmission.
For example, uplink receiving unit 302 specifically can be used for passing through webpage, such as H5 pages by HTTP interface receiving terminal The information such as configured transmission can be carried in the HTTP request of face triggering, the HTTP request.
Wherein, the configured transmission can include terminal iidentification and webserver mark etc., and the terminal iidentification can be wrapped Terminal name, device number, port, and/or IP address etc. are included, and service server mark can include the name of service server The information such as title, device numbering, unit type, port, and/or IP address.
(3) determining unit 303;
Determining unit 303, for determining that the corresponding service server of the configured transmission and second is passed according to the configured transmission Defeated agreement.
For example, the determining unit 303, specifically can be used for obtaining corresponding service profile information according to the configured transmission, Service profile information according to getting determines corresponding service server and the second host-host protocol.
Wherein, second host-host protocol can be socket agreements such as depending on the demand according to practical application.
(4) processing unit 304;
Processing unit 304, for being parsed using the first host-host protocol to the upstream data, and using second transmission Agreement is packaged to the upstream data after parsing, obtains upstream data bag.
For example, the processing unit 304, specifically can be used for calling corresponding first protocol processes of first host-host protocol to enter Journey, is parsed by the first protocol processes process to the upstream data;And call second host-host protocol corresponding Two protocol processes processes, are packaged to the upstream data after parsing by the second protocol treatment progress, obtain upstream data Bag.
Such as, it is specially http protocol with first host-host protocol, and exemplified by the second host-host protocol is socket agreements, then Now, processing unit 304 can call the corresponding http protocol treatment progress of http protocol, pass through the http protocol treatment progress The upstream data is parsed, and calls the corresponding socket protocol processes process of socket agreements, passes through the socket Protocol processes process is packaged to the upstream data after parsing, obtains upstream data bag.
(5) up transmitting element 305;
Up transmitting element 305, for the upstream data bag to be sent into the service server according to the second host-host protocol.
For example, the up transmitting element 305, specifically can be used for setting up corresponding second biography according to second host-host protocol Defeated protocol channel, the service server is sent to by the second host-host protocol passage by the upstream data bag.
Such as, or so that second host-host protocol is specially socket agreements as an example, then now, the up transmitting element 305 can set up corresponding socket passages according to the socket agreements, then, by the socket passages, by line number on this The service server is sent to according to bag.
Optionally, in order to improve flexibility, call unit 301 according to preset configuration except that can obtain the first transmission association Negotiation is called outside the first host-host protocol interface, can also be called according to actual demand, i.e.,:
The uplink receiving unit 302, can be also used for receiving interface call request.
Processing unit 304, can be also used for parsing interface interchange request according to default analytical algorithm, to determine Need the interface message called.
Then now, call unit 301, specifically can be used for obtaining the corresponding transmission of acquisition first association according to the interface message View, and call corresponding first host-host protocol interface according to interface message is stated.
Optionally, it is sent to by the upstream data bag after the service server, service server can also be received and returned The data returned, the data are carried out after protocol conversion, terminal is sent to.I.e. as shown in Figure 4 b, the network data transmission device is also Downlink reception unit 306 and descending transmitting element 307 can be included, it is as follows:
The downlink reception unit 306, can be used for receiving the lower line number that service server is returned according to the upstream data bag According to.
The processing unit 304, can be also used for parsing the downlink data using the second host-host protocol, and use One host-host protocol is packaged to the downlink data after parsing, obtains downlink data packet.
The descending transmitting element 307, can be used for the downlink data packet is sent into this by the first host-host protocol interface Terminal.
For example, be still specially http protocol with the first host-host protocol, and exemplified by the second host-host protocol is socket agreements, Then now, downlink reception unit 306 can be returned by socket channel receptions service server according to the upstream data bag Downlink data, then, is parsed, and use http protocol by processing unit 304 using socket agreements to the downlink data Downlink data after parsing is packaged, downlink data packet is obtained, subsequently, is connect by descending transmitting element 307 by HTTP The downlink data packet is sent to the terminal, etc. by mouth.
It when it is implemented, above unit can be realized as independent entity, can also be combined, be made Realized for same or several entities, for example, call unit 301, uplink receiving unit 302, determining unit 303, up hair Send unit 305, downlink reception unit 306 and descending transmitting element 307, specifically can in embodiment two mixed-media network modules mixed-media and Service configuration module realized, and processing unit 304 Protocol Plug module can then be realized, etc. in embodiment two;With The specific implementation of upper unit can be found in embodiment of the method above, will not be repeated here.
From the foregoing, it will be observed that the call unit 301 in the network data transmission device of the present embodiment, can obtain the first transmission association View, and corresponding first host-host protocol interface is called, then, connect by uplink receiving unit 302 by the first host-host protocol interface The upstream data that terminal is sent is received, and the configured transmission carried by determining unit 303 according to the upstream data determines corresponding industry Business server and the second host-host protocol, hereafter, just can be entered by processing unit 304 using the first host-host protocol to the upstream data Row parsing, and the upstream data after parsing is packaged using the second host-host protocol, industry is sent to by up transmitting element 305 Business server;Because the program can be by the upper line number of calling the first host-host protocol interface to pass through web page trigger come receiving terminal According to, the upstream data is then re-started into encapsulation, and service server is sent to by another host-host protocol, i.e., by this Scheme, can neatly call required protocol interface, and carry out flexible conversion, institute to different agreement according to actual demand No matter for terminal or service server, need to only safeguard a kind of interface interchange mode, dimension needed relative to existing For the scheme for protecting multiple interfaces method of calling, realize more simple, safeguarding for development efficiency and product can be greatly improved Property.
Embodiment five,
Accordingly, the embodiment of the present invention also provides a kind of network data transmission system, can include institute of the embodiment of the present invention Any network data transmission device provided, optionally, the network data transmission system can also include other equipment, than Such as terminal and service server.
For example, as shown in figure 5, with the network data transmission system include terminal 401, network data transmission device 402, with And exemplified by service server 403, then the function of each equipment specifically can be as follows:
The terminal 401, for sending upstream data to network data transmission device 402 by webpage, the upstream data is taken Band configured transmission.
The network data transmission device 402, for obtaining the first host-host protocol, and calls corresponding first host-host protocol to connect Mouthful, by upstream data of the first host-host protocol interface terminal 401 by web page trigger, carried according to the upstream data Configured transmission determines the corresponding host-host protocol of service server 403 and second of the configured transmission, using the first host-host protocol to this Upstream data is parsed, and the upstream data after parsing is packaged using second host-host protocol, obtains upstream data Bag, the service server 403 is sent to according to the second host-host protocol by the upstream data bag.
The service server 403, the upstream data bag sent for receiving network data transmitting device 402.
Optionally, network data transmission device 402 is sent to after the service server by the upstream data bag, may be used also To receive the data of the return of service server 403, the data are carried out after protocol conversion, terminal 401 are sent to, i.e.,:
The service server, can be also used for sending descending to network data transmission device 402 according to the upstream data bag Data
The network data transmission device 402, can be also used for receiving the downlink data that service server 403 is sent, uses Second host-host protocol is parsed to the downlink data, and the downlink data after parsing is sealed using the first host-host protocol Dress, obtains downlink data packet, the downlink data packet is sent into the terminal 401 by the first host-host protocol interface.
The terminal 401, can be also used for the downlink data packet of the transmission of receiving network data transmitting device 402.
Optionally, in order to improve flexibility, network data transmission device 402 according to preset configuration except that can obtain One host-host protocol and call outside the first host-host protocol interface, can also be called according to actual demand, i.e.,:
The service server 403, can be also used for the transmission interface call request of network data transmission device 402.
The network data transmission device 402, the interface interchange that specifically can be used for receiving the transmission of service server 403 please Ask, interface interchange request is parsed according to default analytical algorithm, to determine the interface message for needing to call, connect according to this Mouth acquisition of information is corresponding to obtain the first host-host protocol, and calls corresponding first host-host protocol interface according to interface message is stated.
Wherein, the first host-host protocol and the second host-host protocol can be configured according to the demand of practical application.It is each above The specific implementation of individual equipment can be found in embodiment above, will not be repeated here.
By the network data transmission system can include any network data transmission that the embodiment of the present invention is provided Device, it is thereby achieved that the beneficial effect achieved by any network data transmission device that the embodiment of the present invention is provided Really, embodiment above is for details, reference can be made to, be will not be repeated here.
Embodiment six,
The embodiment of the present invention also provides a kind of proxy server, as shown in fig. 6, it illustrates involved by the embodiment of the present invention Proxy server structural representation, specifically:
The proxy server can include the processor 501 of one or more than one processing core, one or one with The parts such as memory 502, power supply 503 and the input block 504 of upper computer-readable recording medium.Those skilled in the art can be with Understand, the proxy server structure shown in Fig. 6 does not constitute the restriction to proxy server, can include than illustrate it is more or Less part, either combines some parts or different parts arrangement.Wherein:
Processor 501 is the control centre of the proxy server, utilizes various interfaces and the whole agency service of connection The various pieces of device, software program and/or module in memory 502 are stored in by operation or execution, and call storage Data in memory 502, perform the various functions and processing data of proxy server, so as to be carried out to proxy server whole Body is monitored.Optionally, processor 501 may include one or more processing cores;It is preferred that, processor 501 can be at integrated application Device and modem processor are managed, wherein, application processor mainly handles operating system, user interface and application program etc., adjusts Demodulation processor processed mainly handles radio communication.It is understood that above-mentioned modem processor can not also it is integrated everywhere Manage in device 501.
Memory 502 can be used for storage software program and module, and processor 501 is stored in memory 502 by operation Software program and module, so as to perform various function application and data processing.Memory 502 can mainly include storage journey Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses what is created according to proxy server Data etc..In addition, memory 502 can include high-speed random access memory, nonvolatile memory can also be included, for example At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can be with Including Memory Controller, to provide access of the processor 501 to memory 502.
Proxy server also includes the power supply 503 powered to all parts, it is preferred that power supply 503 can pass through power supply pipe Reason system and processor 501 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 503 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
The proxy server may also include input block 504, and the input block 504 can be used for the numeral or word for receiving input Information is accorded with, and produces keyboard, mouse, action bars, optics or the trace ball relevant with user's setting and function control and is believed Number input.
Although not shown, proxy server can also will not be repeated here including display unit etc..Specifically in the present embodiment In, the processor 501 in proxy server can be according to following instruction, by the process pair of one or more application program The executable file answered is loaded into memory 502, and the application journey being stored in memory 502 is run by processor 501 Sequence, so that various functions are realized, it is as follows:
The first host-host protocol is obtained, and calls corresponding first host-host protocol interface, is connect by the first host-host protocol interface Upstream data of the terminal by web page trigger is received, determines that the configured transmission is corresponding according to the configured transmission that the upstream data is carried Service server and the second host-host protocol, are parsed using the first host-host protocol to the upstream data, and using second biography Defeated agreement is packaged to the upstream data after parsing, obtains upstream data bag, according to the second host-host protocol by the upstream data Bag is sent to the service server.
Wherein, the first host-host protocol and the second host-host protocol can be configured according to the demand of practical application, herein not Repeat again.
Optionally, it is sent to by the upstream data bag after the service server, service server can also be received and returned The data returned, the data are carried out after protocol conversion, being sent to terminal, i.e. processor 501 can also run and be stored in memory Application program in 502, to implement function such as:
The downlink data that service server is returned according to the upstream data bag is received, it is descending to this using the second host-host protocol Data are parsed, and the downlink data after parsing is packaged using the first host-host protocol, are obtained downlink data packet, are passed through The downlink data packet is sent to the terminal by the first host-host protocol interface.
Optionally, in order to improve flexibility, network data transmission device 402 according to preset configuration except that can obtain One host-host protocol and call outside the first host-host protocol interface, can also be called according to actual demand, i.e. processor 501 can also run the application program being stored in memory 502, to implement function such as:
The interface interchange request that service server is sent is received, the interface interchange is asked according to default analytical algorithm to carry out Parsing, to determine the interface message for needing to call, according to interface message acquisition the first host-host protocol of corresponding acquisition, and according to State interface message and call corresponding first host-host protocol interface.
The specific implementation of each operation can be found in embodiment above above, will not be repeated here.
From the foregoing, it will be observed that the proxy server of the present embodiment can obtain the first host-host protocol, and corresponding first is called to pass Defeated protocol interface, then, the upstream data sent by the first host-host protocol interface terminal, and taken according to the upstream data The configured transmission of band determines corresponding service server and the second host-host protocol, hereafter, just can use the first host-host protocol pair The upstream data is parsed, and the upstream data after parsing is packaged using the second host-host protocol, to send business to Server;Because the program can be by the upper line number of calling the first host-host protocol interface to pass through web page trigger come receiving terminal According to, the upstream data is then re-started into encapsulation, and service server is sent to by another host-host protocol, i.e., by this Scheme, can neatly call required protocol interface, and carry out flexible conversion, institute to different agreement according to actual demand No matter for terminal or service server, need to only safeguard a kind of interface interchange mode, dimension needed relative to existing For the scheme for protecting multiple interfaces method of calling, realize more simple, safeguarding for development efficiency and product can be greatly improved Property.
Embodiment seven,
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with Completed by instructing, or control related hardware to complete by instructing, the instruction can be stored in one and computer-readable deposit In storage media, and loaded and performed by processor.
Therefore, the embodiment of the present invention provides a kind of storage medium, wherein a plurality of instruction that is stored with, the instruction can be processed Device is loaded, to perform the step in any network data transmission method that the embodiment of the present invention is provided.For example, this refers to Order can perform following steps:
The first host-host protocol is obtained, and calls the first host-host protocol interface, by the first host-host protocol interface one eventually The upstream data by web page trigger is held, the upstream data carries configured transmission, the configured transmission is determined according to the configured transmission Corresponding service server and the second host-host protocol, are parsed using the first host-host protocol to the upstream data, and use should Second host-host protocol is packaged to the upstream data after parsing, obtains upstream data bag, according to the second host-host protocol by this Row packet is sent to the service server.
The specific implementation of each operation can be found in embodiment above above, will not be repeated here.
Wherein, the storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any network number that the embodiment of the present invention is provided can be performed According to the step in transmission method, it is thereby achieved that any network data transmission method institute that the embodiment of the present invention is provided The beneficial effect that can be realized, refers to embodiment above, will not be repeated here.
A kind of network data transmission method, device, system and the storage medium provided above the embodiment of the present invention enters Go and be discussed in detail, specific case used herein is set forth to the principle and embodiment of the present invention, and the above is implemented The explanation of example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for those skilled in the art, according to According to the thought of the present invention, it will change in specific embodiments and applications, in summary, this specification content It should not be construed as limiting the invention.

Claims (14)

1. a kind of network data transmission method, it is characterised in that including:
The first host-host protocol is obtained, and calls the first host-host protocol interface;
By upstream data of the terminal of the first host-host protocol interface one by web page trigger, the upstream data is carried Configured transmission;
The corresponding service server of the configured transmission and the second host-host protocol are determined according to the configured transmission;
The upstream data is parsed using first host-host protocol, and using second host-host protocol to parsing after Upstream data be packaged, obtain upstream data bag;
The upstream data bag is sent to by the service server according to second host-host protocol.
2. according to the method described in claim 1, it is characterised in that described that the configured transmission is determined according to the configured transmission Corresponding service server and the second host-host protocol, including:
Service profile information is obtained according to the configured transmission;
The service profile information according to getting determines service server and the second host-host protocol.
3. method according to claim 1 or 2, it is characterised in that it is described according to second host-host protocol will be described on Row packet is sent to the service server, including:
Second host-host protocol passage is set up according to second host-host protocol;
The upstream data bag is sent to by the service server by the second host-host protocol passage.
4. method according to claim 1 or 2, it is characterised in that before the host-host protocol of acquisition first, in addition to:
Receiving interface call request;
Interface interchange request is parsed according to default analytical algorithm, to determine the interface message for needing to call;
The first host-host protocol of the acquisition, and the first host-host protocol interface is called, including:First is obtained according to the interface message Host-host protocol, and call the first host-host protocol interface according to interface message is stated.
5. method according to claim 1 or 2, it is characterised in that described that the upstream data bag is sent to the industry It is engaged in after server, in addition to:
Receive the downlink data that the service server is returned according to the upstream data bag;
The downlink data is parsed using second host-host protocol, and using first host-host protocol to parsing after Downlink data be packaged, obtain downlink data packet;
The downlink data packet is sent to by the terminal by the first host-host protocol interface.
6. a kind of network data transmission device, it is characterised in that including:
Call unit, for obtaining the first host-host protocol, and calls the first host-host protocol interface;
Uplink receiving unit, for the upper line number for passing through web page trigger by the terminal of the first host-host protocol interface one According to the upstream data carries configured transmission;
Determining unit, for determining that the corresponding service server of the configured transmission and the second transmission are assisted according to the configured transmission View;
Processing unit, for being parsed using first host-host protocol to the upstream data, and is passed using described second Defeated agreement is packaged to the upstream data after parsing, obtains upstream data bag;
Up transmitting element, for the upstream data bag to be sent into the business service according to second host-host protocol Device.
7. device according to claim 6, it is characterised in that
The determining unit, specifically for obtaining service profile information according to the configured transmission, according to the clothes got Business configuration information determines service server and the second host-host protocol.
8. the device according to claim 6 or 7, it is characterised in that
The up transmitting element, specifically for setting up the second host-host protocol passage according to second host-host protocol, passes through institute State the second host-host protocol passage and the upstream data bag is sent to the service server.
9. the device according to claim 6 or 7, it is characterised in that
The uplink receiving unit, is additionally operable to receiving interface call request;
The processing unit, is additionally operable to parse interface interchange request according to default analytical algorithm, to determine needs The interface message called;
The call unit, specifically for obtaining the first host-host protocol of corresponding acquisition according to the interface message, and according to stating Interface message calls the first host-host protocol interface.
10. the device according to claim 6 or 7, it is characterised in that also including downlink reception unit and descending transmission list Member;
The downlink reception unit, for receiving the downlink data that service server is returned according to the upstream data bag;
The processing unit, is additionally operable to parse the downlink data using second host-host protocol, and using described First host-host protocol is packaged to the downlink data after parsing, obtains downlink data packet;
The descending transmitting element, for the downlink data packet to be sent into the end by the first host-host protocol interface End.
11. a kind of network data transmission system, it is characterised in that including terminal, service server and network data transmission dress Put;
The terminal, for sending upstream data to the network data transmission device by webpage, the upstream data is carried Configured transmission;
The network data transmission device, for obtaining the first host-host protocol, and calls the first host-host protocol interface, by described First host-host protocol interface terminal is by the upstream data of web page trigger, the configured transmission carried according to the upstream data The corresponding service server of the configured transmission and the second host-host protocol are determined, using first host-host protocol to described up Data are parsed, and the upstream data after parsing is packaged using second host-host protocol, obtain upstream data bag, The upstream data bag is sent to by the service server according to second host-host protocol;
The service server, for receiving the upstream data bag that the network data transmission device is sent.
12. system according to claim 11, it is characterised in that
The service server, is additionally operable to send lower line number to the network data transmission device according to the upstream data bag According to;
The network data transmission device, is additionally operable to receive the downlink data that the service server is sent, using described second Host-host protocol is parsed to the downlink data, and the downlink data after parsing is sealed using first host-host protocol Dress, obtains downlink data packet, the downlink data packet is sent into the terminal by the first host-host protocol interface;
The terminal, is additionally operable to receive the downlink data packet that the network data transmission device is sent.
13. the system according to claim 11 or 12, it is characterised in that
The service server, is additionally operable to the network data transmission device transmission interface call request;
The network data transmission device, the interface interchange sent specifically for receiving the service server is asked, according to pre- If analytical algorithm is parsed to interface interchange request, to determine the interface message for needing to call, believed according to the interface Breath obtains the first host-host protocol, and calls the first host-host protocol interface according to the interface message.
14. a kind of storage medium, it is characterised in that the storage medium is stored with a plurality of instruction, the instruction is suitable to processor Loaded, the step in the network data transmission method described in 1 to 5 any one is required with perform claim.
CN201710638670.XA 2017-07-31 2017-07-31 Network data transmission method, device, system and storage medium Active CN107332857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710638670.XA CN107332857B (en) 2017-07-31 2017-07-31 Network data transmission method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710638670.XA CN107332857B (en) 2017-07-31 2017-07-31 Network data transmission method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN107332857A true CN107332857A (en) 2017-11-07
CN107332857B CN107332857B (en) 2021-01-08

Family

ID=60227598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710638670.XA Active CN107332857B (en) 2017-07-31 2017-07-31 Network data transmission method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN107332857B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109560895A (en) * 2018-12-27 2019-04-02 北京百佑科技有限公司 Data transmission method and device
CN111431664A (en) * 2020-03-10 2020-07-17 浪潮通用软件有限公司 Dispatching data packet download method and device based on JSON data protocol
CN112866182A (en) * 2019-11-28 2021-05-28 浙江宇视科技有限公司 Data interfacing method, device and computer-readable storage medium
CN113382062A (en) * 2021-06-08 2021-09-10 北京天空卫士网络安全技术有限公司 Data transmission method, device and system
CN113992641A (en) * 2021-10-11 2022-01-28 北京达佳互联信息技术有限公司 Data processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140003248A1 (en) * 2012-06-27 2014-01-02 Qualcomm Incorporated Systems and methods for bearer independent protocol gateway optimization
CN104901919A (en) * 2014-03-03 2015-09-09 中辉世纪传媒发展有限公司 Method for adaption of accessing of different terminals and device thereof
CN106230805A (en) * 2016-07-27 2016-12-14 厦门中控生物识别信息技术有限公司 A kind of data processing method, server and data handling system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140003248A1 (en) * 2012-06-27 2014-01-02 Qualcomm Incorporated Systems and methods for bearer independent protocol gateway optimization
CN104901919A (en) * 2014-03-03 2015-09-09 中辉世纪传媒发展有限公司 Method for adaption of accessing of different terminals and device thereof
CN106230805A (en) * 2016-07-27 2016-12-14 厦门中控生物识别信息技术有限公司 A kind of data processing method, server and data handling system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109560895A (en) * 2018-12-27 2019-04-02 北京百佑科技有限公司 Data transmission method and device
CN112866182A (en) * 2019-11-28 2021-05-28 浙江宇视科技有限公司 Data interfacing method, device and computer-readable storage medium
CN112866182B (en) * 2019-11-28 2023-05-23 浙江宇视科技有限公司 Data docking method, device and computer readable storage medium
CN111431664A (en) * 2020-03-10 2020-07-17 浪潮通用软件有限公司 Dispatching data packet download method and device based on JSON data protocol
CN113382062A (en) * 2021-06-08 2021-09-10 北京天空卫士网络安全技术有限公司 Data transmission method, device and system
CN113992641A (en) * 2021-10-11 2022-01-28 北京达佳互联信息技术有限公司 Data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107332857B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN107332857A (en) A kind of network data transmission method, device, system and storage medium
CN105119974B (en) A kind of things system and implementation method of mixing cloud framework
CN104821925B (en) A kind of data interactive method, system and equipment
CN101909257B (en) Method and system for realizing concurrency access of multiple bearer protocols by M2M platform
CN102377814B (en) Remote assistance service method aiming at embedded operation system
CN102902537B (en) Based on the embedded type WEB MVC Development Framework of FastCGI and html template
CN106972974B (en) A kind of the Web network management systems and its terminal authentication method of electric power LTE wireless terminals
CN108880999A (en) A kind of method, equipment and the system of business routing
CN109587275A (en) A kind of method for building up and proxy server of communication connection
CN107483390A (en) A kind of cloud rendering web deployment subsystem, system and cloud rendering platform
CN103401754A (en) Stack link establishing method, equipment and system
CN108200165A (en) Ask Transmission system, method, apparatus and storage medium
CN206461640U (en) A kind of gateway system of compatible multiplex roles
CN101510793A (en) Method for implementing a plurality of Bluetooth device networking through Bluetooth server, software program and server
CN107979852A (en) Interworking for the EFM-OAM and CFM-OAM of Mobile backhaul network
CN107888613A (en) A kind of management system framework based on cloud platform
CN107529186A (en) The method and system of channel transmission upstream data, client, server
CN103986902B (en) Cloud video exchange conference device
CN107623752A (en) Network management and device based on link layer
US10225358B2 (en) Page push method, device, server and system
CN108023921A (en) The cut-in method and device of a kind of third-party platform
CN102647432A (en) Authentication information transmission method, device and authentication middleware
CN108184008A (en) A kind of terminal Communication Performance Evaluation method and apparatus
CN104769906A (en) Data transmission method, user device and proxy device
CN104539576B (en) Communication means and system based on IPv6 networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant